The following applies to the Android operating system.
I am trying to estimate how dark (or light) it is in the room where the phone is located using the camera.
The idea is that the camera can return a certain brightness level, which I can use to determine the amount of light in the surroundings of the phone.
My question is simple: how do I use the camera (either the front of back camera) to get this amount of brightness (the "amount of light")?
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…