Patent ID: 11967289
Assignee: SHENZHEN GOODIX TECHNOLOGY CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 12:
13. An apparatus for detecting ambient light, comprising:
a screen light leakage detecting apparatus configured to determine a light leakage value of a screen, wherein the screen light leakage detecting apparatus comprises:
an acquiring module configured to acquire a brightness value of the screen and grayscale values of pixel points within a preset display region of the screen;
a clustering module configured to cluster the pixel points based on a plurality of preset grayscale value intervals and the grayscale values of the pixel points, to obtain a plurality of pixel point sets, wherein pixel points with grayscale values in a same grayscale value interval are clustered into a same pixel point set;
a light leakage computing module configured to obtain light leakage values corresponding to the pixel point sets based on the brightness value and fused grayscale values corresponding to the pixel point sets, wherein each of the fused grayscale values is obtained by fusing the grayscale values of the pixel points in the pixel point set corresponding to the fused grayscale value; and
a determining module configured to obtain a light leakage value of the screen based on the light leakage values corresponding to the pixel point sets;

an acquiring module configured to acquire a light sensitivity value detected by a light sensor provided below the screen; and
an ambient light computing module configured to determine an ambient light value based on the light sensitivity value and the light leakage value.