Image property query

Hi guys,
How would you resolve to query the properties of an image, such as brightness?
This is how I would think to decide if there is something in a picture taken by a camera …

Thx your help