Method and apparatus for detecting ambient light, and terminal device and storage medium thereof
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorChaoxi Chen
Life of this patent
Estimating the term…
Abstract
A method for detecting ambient light, includes: acquiring a detection signal of an ambient light sensor; acquiring a luminance level of a screen region corresponding to the ambient light sensor; and determining an intensity of the ambient light based on the detection signal of the ambient light sensor and the luminance level of the screen region corresponding to the ambient light sensor.
Claims16
A method for detecting ambient light, comprising:
- acquiring a detection signal of an ambient light sensor;
- acquiring a luminance level of a screen region corresponding to the ambient light sensor;
- and
- determining an intensity of the ambient light based on the detection signal of the ambient light sensor and the luminance level of the screen region corresponding to the ambient light sensor, wherein determining the intensity of the ambient light comprises:
- when the luminance level is less than a threshold, determining the intensity of the ambient light based on the detection signal of the ambient light sensor;
- and
- when the luminance level is greater than or equal to the threshold, determining an interference signal based on the detection signal of the ambient light sensor, and determining the intensity of the ambient light based on the detection signal of the ambient light sensor and the interference signal.
An apparatus for detecting ambient light, comprising:
- a processor;
- and
- a memory storing instructions executable by the processor;
- wherein the processor is configured to:
- acquire a detection signal of an ambient light sensor;
- acquire a luminance level of a screen region corresponding to the ambient light sensor;
- and
- determine an intensity of the ambient light based on the detection signal of the ambient light sensor and the luminance level of the screen region corresponding to the ambient light sensor, wherein determining the intensity of the ambient light comprises:
- when the luminance level is less than a threshold, determining the intensity of the ambient light based on the detection signal of the ambient light sensor;
- and
- when the luminance level is greater than or equal to the threshold, determining an interference signal based on the detection signal of the ambient light sensor, and determining the intensity of the ambient light based on the detection signal of the ambient light sensor and the interference signal.
A non-transitory computer-readable storage medium having stored thereon instructions that, when executed by a processor of a device, cause the device to perform a method for detecting ambient light, the method comprising:
- acquiring a detection signal of an ambient light sensor;
- acquiring a luminance level of a screen region corresponding to the ambient light sensor;
- and
- determining an intensity of the ambient light based on the detection signal of the ambient light sensor and the luminance level of the screen region corresponding to the ambient light sensor, wherein determining the intensity of the ambient light comprises:
- when the luminance level is less than a threshold, determining the intensity of the ambient light based on the detection signal of the ambient light sensor;
- and
- when the luminance level is greater than or equal to the threshold, determining an interference signal based on the detection signal of the ambient light sensor, and determining the intensity of the ambient light based on the detection signal of the ambient light sensor and the interference signal.
Dependencies are inferred from the claim text.