The preset region may be preset on the display screen of the electronic device. The preset region is the region facing the ambient light sensor in the display screen. For example, the preset region may be located at the top left corner of the display region. At this time, the ambient light sensor in the electronic device is set facing the preset region. In some embodiment, the preset region may also be located at other position in the display region.
The control module 201 may control the display region of the display screen to display the predetermined picture. The predetermined picture is an image or a partial image preset in the electronic device. Color of any two points in the predetermined picture is the same. That is, the predetermined picture is a pure color picture, and color of all parts of the predetermined picture is the same. In some embodiments, the predetermined picture may be a full black image, and the color of the predetermined picture is black.
In some embodiments, the control module 201 may control the preset region of the display screen to display the predetermined picture when there is a need to detect the ambient light intensity. In some embodiments, the control module 201 may also control the preset region of the display screen to display the predetermined picture all the time.
The obtaining module 202 is configured to obtain an ambient light intensity value detected by the ambient light sensor.
When the preset region of the display screen of the electronic device displays the predetermined picture, the ambient light sensor may detect a current ambient light intensity value. The obtaining module 202 obtains the ambient light intensity value detected by the ambient light sensor.