Thread: analyize jpeg brightness script
hi,
trying make script analyze jpeg images taken webcam. can image enough can't figure out way images average brightness number. suggestions?
after many hours head stuck in google stumbled across single reference want do:
http://stackoverflow.com/questions/4...ss-of-an-image
command is:
a black jpeg:code:convert /path/imagename.jpg -colorspace gray -format "%[fx:100*mean]%%" info:
user@ubox:~$ convert /data/downloads/black.jpg -colorspace gray -format "%[fx:100*mean]%%" info:
0%
white jpeg:
user@ubox:~$ convert /data/downloads/white.jpg -colorspace gray -format "%[fx:100*mean]%%" info:
100%
following grey jpeg
user@ubox:~$ convert /data/downloads/test.jpg -colorspace gray -format "%[fx:100*mean]%%" info:
49.8039%
have no idea how command works (feel free explain me) works i'm happy.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] analyize jpeg brightness script
Ubuntu
Comments
Post a Comment