A method for controlling light emitting elements in a terminal device, comprising the steps of: obtaining a first light intensity value detected by an ambient light sensor in the 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 of the ambient light sensor corresponding to the second light intensity value according to a preset mapping between the second light intensity value and the standard light intensity value of the ambient light sensor, wherein the standard light intensity value of the ambient light sensor is obtained in advance under standard circumstances, wherein the standard circumstances refer to the same lighting conditions, that is, the intensity of light irradiated onto the ambient light sensor and the image capturing apparatus is the same, and the photosensitive zone of the ambient light sensor is free from interference caused by external pollutants or other obstacles; obtaining a calibration parameter for the ambient light sensor according to the first light intensity value and the standard light intensity value of the ambient light sensor, wherein the calibration parameter is a difference between the standard light intensity value of the ambient light sensor and the first 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; wherein the step of controlling the light emitting elements in the terminal device according to the detected light intensity value and the calibration parameter comprises the steps of: adding the detected light intensity value to the calibration parameter to obtain a corrected light intensity value; and adjusting luminance and/or display content of a light emitting element in the terminal device according to the corrected light intensity value. obtaining a first light intensity value detected by an ambient light sensor in the 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 of the ambient light sensor corresponding to the second light intensity value according to a preset mapping between the second light intensity value and the standard light intensity value of the ambient light sensor, wherein the standard light intensity value of the ambient light sensor is obtained in advance under standard circumstances, wherein the standard circumstances refer to the same lighting conditions, that is, the intensity of light irradiated onto the ambient light sensor and the image capturing apparatus is the same, and the photosensitive zone of the ambient light sensor is free from interference caused by external pollutants or other obstacles; obtaining a calibration parameter for the ambient light sensor according to the first light intensity value and the standard light intensity value of the ambient light sensor, wherein the calibration parameter is a difference between the standard light intensity value of the ambient light sensor and the first 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; wherein the step of controlling the light emitting elements in the terminal device according to the detected light intensity value and the calibration parameter comprises the steps of: adding the detected light intensity value to the calibration parameter to obtain a corrected light intensity value; and adjusting luminance and/or display content of a light emitting element in the terminal device according to the corrected light intensity value. adding the detected light intensity value to the calibration parameter to obtain a corrected light intensity value; and adjusting luminance and/or display content of a light emitting element in the terminal device according to the corrected light intensity value.