摘要 |
A method and an apparatus for controlling light emitting elements in a terminal device and a terminal device are disclosed. The method includes: obtaining a first light intensity value detected by an ambient light sensor in a terminal device and obtaining a second light intensity value detected by an image capturing apparatus in the terminal device under same lighting conditions; determining a standard light intensity value corresponding to the second light intensity value according to a preset mapping between a light intensity value of the image capturing apparatus and a standard light intensity value of the ambient light sensor; obtaining a calibration parameter for the ambient light sensor according to the first light intensity value and the standard light intensity value; obtaining a detected light intensity value detected by the ambient light sensor when light emitting elements in the terminal device need to be controlled; and controlling the light emitting elements in the terminal device according to the detected light intensity value and the calibration parameter. With the present invention, the effectiveness of managing the light emitting elements can be improved. |