Skip to main content

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:
code:
convert /path/imagename.jpg -colorspace gray -format "%[fx:100*mean]%%" info:
a black jpeg:
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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support