I'm building an application on Android using a Samsung Galaxy Tab 10.1". I want to get the value of the scene luminance using the back camera of the device.
Unfortunately I could not find a way to access readings from the light sensor on the back of the device directly. I am therefore currently estimating luminance manually by calculating the mean of each grayscale frame. However, this method is inaccurate due to auto-correction of frame exposure and white balance. For example, if you point the camera at a very bright source the camera will darken the entire image and the mean of the grayscale frame will be too low (because the area outside the bright source will now be very dark).
I searched for methods that would allow me to disable the automatic corrections I mentioned, but didn't find anything.
Is there a method that will allow me to get the value of the scene luminance using the back camera?