It can be seen that, the method for detecting ambient light intensity provided in embodiments of the present disclosure includes: controlling the preset region of the display screen to display the predetermined picture, obtaining the ambient light intensity value detected by the ambient light sensor, and controlling the display screen to respond according to the ambient light intensity value. The preset region is the region facing the ambient light sensor in the display screen. The predetermined picture is the pure color picture. With the method for detecting ambient light intensity provided in embodiments of the present disclosure, the preset region of the display screen is controlled to display the predetermined picture, such that light emitted from the preset region to into the ambient light sensor is reduced. Thus, influence of the display screen on the ambient light sensor may be reduced, and accuracy of the ambient light sensor detection may be improved.
Embodiments of the present disclosure further provide an apparatus for detecting ambient light intensity. The apparatus for detecting ambient light intensity may be integrated in an electronic device. The electronic device may be a smart phone, a tablet computer, or the like. The electronic device may be the electronic device 100 in any one of above mentioned embodiments.
As illustrated in
The control module 201 is configured to control a preset region of the display screen to display a predetermined picture. The preset region is a region facing the ambient light sensor in the display screen, and the predetermined picture is a pure color picture.