Determing contrast of LCD using a camera


I was wondering if someone know if it is possible to determine the contrast of a LCD using a simple camera (i.e. So the brightness/contrast of the LCD can be adapted with respect to the surrounding to make sure the LCD is most of the time easy to read.

Thanks in advance!