Calibration method, device and storage medium of ambient light sensor

By dividing the illuminance range of the ambient light sensor into multiple illuminance intervals and calibrating it using illuminance calibration coefficients and display brightness calibration coefficients, the problem of inaccurate measurement by the ambient light sensor is solved, and the accuracy and consistency of display brightness adjustment are achieved.

CN116412907BActive Publication Date: 2026-04-28BEIJING SUPERHEXA CENTURY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING SUPERHEXA CENTURY TECH CO LTD
Filing Date
2022-09-01
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

In existing technologies, there are significant differences in the illuminance measurement of ambient light sensors, resulting in insufficient sensitivity in adjusting the brightness of the display screen and failing to achieve optimal results. This is especially true due to the wide range of transmittance tolerances of the black semi-transparent film and the nonlinear illuminance-display brightness relationship.

Method used

By dividing the illuminance range of the ambient light sensor into multiple illuminance intervals, and using the target illuminance value and the actual illuminance value to determine the illuminance calibration coefficient and the display brightness calibration coefficient, calibration is performed to improve measurement accuracy.

Benefits of technology

It improves the accuracy of ambient light sensor in measuring illuminance, ensures the precision of display brightness adjustment, compensates for the tolerances of semi-permeable film transmittance and ambient light sensor device accuracy, and corrects the tolerances of display brightness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116412907B_ABST
    Figure CN116412907B_ABST
Patent Text Reader

Abstract

The application provides a calibration method, device and storage medium of an ambient light sensor. The calibration method comprises the following steps: acquiring a light intensity value range of the ambient light sensor, dividing the light intensity value range into a plurality of light intensity intervals; determining a target light intensity value of each light intensity interval and a target display brightness value corresponding to the target light intensity value of each light intensity interval; controlling a test light source to irradiate a terminal device with the target light intensity value of each light intensity interval, determining a light intensity calibration coefficient and a display brightness calibration coefficient corresponding to each light intensity interval; and calibrating the light intensity measured by the ambient light sensor based on the light intensity calibration coefficient and the display brightness calibration coefficient corresponding to each light intensity interval. The light intensity measured by the ambient light sensor is calibrated by using the determined light intensity calibration coefficient and display brightness calibration coefficient, so that the accuracy of the calibrated ambient light sensor in measuring light intensity is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of calibration technology, and in particular to a calibration method, apparatus and storage medium for an ambient light sensor. Background Technology

[0002] Terminal devices need to adjust the brightness of their displays based on ambient light levels. Currently, when ambient light shines on a terminal device, it typically uses an ambient light sensor to measure illuminance and adjusts the display brightness accordingly. During illuminance measurement, light passes through an IR (Infrared Radiation) aperture to the ambient light sensor. This aperture includes part of the display glass cover and a semi-transparent film. This semi-transparent film is generally black and is used to conceal internal components. The required light transmittance of this black semi-transparent film is 10%, but the transmittance tolerance is ±5%.

[0003] Currently, the relationship between ambient light illuminance and display brightness should be a non-linear, step-like relationship. Each range of illuminance values ​​corresponds to a display brightness value, with a wide range between the maximum and minimum illuminance values. This wide range between the two extremes of the illuminance range makes the display brightness adjustment less sensitive. Furthermore, the transmittance tolerance of the black semi-transparent film leads to significant differences in the illuminance measured by the ambient light sensor. This results in substantial discrepancies in the light data measured by the ambient light sensors of different terminal devices, preventing the display brightness adjustment from achieving optimal results. Therefore, how to calibrate the ambient light sensor has become a significant technical problem. Summary of the Invention

[0004] In view of this, the purpose of this application is to provide a calibration method, apparatus and storage medium for an ambient light sensor, which improves the accuracy of the ambient light sensor in measuring illuminance by calibrating the illuminance measured by the ambient light sensor using a determined illuminance calibration coefficient and a display brightness calibration coefficient.

[0005] This application provides a calibration method for an ambient light sensor, the calibration method comprising:

[0006] Obtain the illuminance value range of the ambient light sensor, and divide the illuminance value range into multiple illuminance intervals;

[0007] Determine the target illuminance value for each of the illuminance intervals and the target display brightness value corresponding to the target illuminance value for each of the illuminance intervals;

[0008] The test light source is controlled to illuminate the terminal device with a target illuminance value for each of the illuminance intervals, obtaining the actual illuminance value and the actual display brightness value. The illuminance calibration coefficient of the terminal device for each of the illuminance intervals is determined using the target illuminance value and the actual illuminance value, and the display brightness calibration coefficient of the terminal device for each of the illuminance intervals is determined using the target display brightness value and the actual display brightness value. The terminal device includes the ambient light sensor; the target display brightness value is determined based on the target illuminance value.

[0009] The illuminance measured by the ambient light sensor is calibrated based on the illuminance calibration coefficient and the display brightness calibration coefficient corresponding to each illuminance interval.

[0010] In one possible implementation, the step of acquiring the illuminance range of the ambient light sensor involves dividing the illuminance range into multiple illuminance intervals, including:

[0011] The range of illuminance values ​​is determined based on the human eye's perception characteristics of ambient light and display brightness, the nonlinear curve between ambient illuminance and display brightness, the illuminance of the test light source, the current environment of the terminal device, and the distance between the terminal device and the test light source.

[0012] After determining the range of illuminance values, the range of illuminance values ​​is divided into multiple illuminance intervals based on the nonlinear curve between ambient illuminance and display brightness.

[0013] In one possible implementation, the controlled test light source illuminates the terminal device with a target illuminance value for each of the illuminance intervals to obtain the actual illuminance value and the actual display brightness value. The target illuminance value and the actual illuminance value are then used to determine the illuminance calibration coefficient of the terminal device for each of the illuminance intervals, including:

[0014] Obtain the actual illuminance value measured by the terminal device under the target illuminance value in each illuminance interval;

[0015] Based on the quotient between the target illuminance value in the illuminance interval and the actual illuminance value measured by the terminal device, the illuminance calibration coefficient corresponding to the terminal device in each illuminance interval is determined.

[0016] In one possible implementation, the control utilizes the target display brightness value and the actual display brightness value to determine the display brightness calibration coefficient of the terminal device corresponding to each illuminance range, including:

[0017] Obtain the actual display brightness value of the terminal device under the target illuminance value in each illuminance interval;

[0018] Based on the quotient between the target display brightness value under the target illuminance value in the illuminance range and the actual display brightness value of the terminal device, the display brightness calibration coefficient of the terminal device corresponding to each illuminance range is determined.

[0019] In one possible implementation, calibrating the illuminance measured by the ambient light sensor based on the illuminance calibration coefficient corresponding to each of the illuminance intervals and the display brightness calibration coefficient includes:

[0020] When the ambient light sensor measures any illuminance, it determines the illuminance range corresponding to that illuminance.

[0021] Based on the illuminance calibration coefficient corresponding to the illuminance range, the display brightness calibration coefficient, and the product of the illuminance, the calibrated illuminance after calibrating the illuminance measured by the ambient light sensor is determined.

[0022] In one possible implementation, after calibrating the illuminance measured by the ambient light sensor based on the illuminance calibration coefficient corresponding to each of the illuminance intervals and the display brightness calibration coefficient, the calibration method further includes:

[0023] Based on the nonlinear curve between ambient illuminance and display brightness, the calibrated display brightness corresponding to the calibrated illuminance is determined;

[0024] The calibrated display brightness is the adjusted display brightness of the display screen included in the terminal device.

[0025] This application embodiment also provides a calibration device for an ambient light sensor, the calibration device comprising:

[0026] The acquisition module is used to acquire the illuminance value range of the ambient light sensor and divide the illuminance value range into multiple illuminance intervals;

[0027] The determining module is used to determine the target illuminance value for each of the illuminance intervals and the target display brightness value corresponding to the target illuminance value for each of the illuminance intervals;

[0028] A calibration coefficient determination module is used to control a test light source to illuminate the terminal device with a target illuminance value for each of the illuminance intervals, obtain the actual illuminance value and the actual display brightness value, and determine the illuminance calibration coefficient of the terminal device for each of the illuminance intervals using the target illuminance value and the actual illuminance value, and determine the display brightness calibration coefficient of the terminal device for each of the illuminance intervals using the target display brightness value and the actual display brightness value; wherein, the terminal device includes the ambient light sensor; a calibration module is used to calibrate the illuminance measured by the ambient light sensor based on the illuminance calibration coefficient and the display brightness calibration coefficient for each of the illuminance intervals.

[0029] In one possible implementation, when the determining module divides the illuminance range of the ambient light sensor into multiple illuminance intervals, it includes:

[0030] The range of illuminance values ​​is determined based on the human eye's perception characteristics of ambient light and display brightness, the nonlinear curve between ambient illuminance and display brightness, the illuminance of the test light source, the current environment of the terminal device, and the distance between the terminal device and the test light source.

[0031] After determining the range of illuminance values, the range of illuminance values ​​is divided into multiple illuminance intervals based on the nonlinear curve between ambient illuminance and display brightness.

[0032] This application embodiment also provides an electronic device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the steps of the calibration method for the ambient light sensor described above are performed.

[0033] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the ambient light sensor calibration method described above.

[0034] This application provides a calibration method, apparatus, and storage medium for an ambient light sensor. The calibration method includes: obtaining the illuminance value range of the ambient light sensor; dividing the illuminance value range into multiple illuminance intervals; and determining the target illuminance value for each illuminance interval and the target display brightness value corresponding to the target illuminance value for each illuminance interval.

[0035] The test light source is controlled to illuminate the terminal device with a target illuminance value for each illuminance interval, obtaining the actual illuminance value and the actual display brightness value. The illuminance calibration coefficient corresponding to the terminal device in each illuminance interval is determined using the target illuminance value and the actual illuminance value, and the display brightness calibration coefficient corresponding to the terminal device in each illuminance interval is determined using the target display brightness value and the actual display brightness value. The terminal device includes an ambient light sensor; the target display brightness value is determined based on the target illuminance value; and the illuminance measured by the ambient light sensor is calibrated based on the illuminance calibration coefficient and the display brightness calibration coefficient corresponding to each illuminance interval. By calibrating the illuminance measured by the ambient light sensor using the determined illuminance calibration coefficient and display brightness calibration coefficient, the accuracy of the calibrated ambient light sensor in measuring illuminance is improved.

[0036] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0037] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0038] Figure 1 This is one of the flowcharts for a calibration method of an ambient light sensor provided in an embodiment of this application;

[0039] Figure 2 A second flowchart illustrating a calibration method for an ambient light sensor provided in an embodiment of this application;

[0040] Figure 3 This is one of the structural schematic diagrams of a calibration device for an ambient light sensor provided in an embodiment of this application;

[0041] Figure 4 This is a second schematic diagram of the structure of a calibration device for an ambient light sensor provided in an embodiment of this application;

[0042] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0043] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.

[0044] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0045] To enable those skilled in the art to use the content of this application and, in conjunction with the specific application scenario of "calibrating an ambient light sensor," the following implementation method is provided. For those skilled in the art, the general principles defined herein can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application.

[0046] The methods, apparatus, electronic devices, or computer-readable storage media described in this application can be applied to any scenario requiring calibration of ambient light sensors. This application does not limit specific application scenarios, and any scheme using an ambient light sensor calibration method, apparatus, and storage medium provided in this application is within the protection scope of this application.

[0047] First, the applicable scenarios for this application will be introduced. This application can be applied to the field of calibration technology.

[0048] Research has revealed that the current relationship between ambient light illuminance and display brightness is a non-linear, step-like relationship. Each illuminance value range corresponds to a display brightness value, with a wide range between the maximum and minimum illuminance values. This wide range between the two extremes of the illuminance range makes the display brightness adjustment less sensitive. Furthermore, the transmittance of the black semi-transparent film has tolerances; when the transmittance of the black semi-transparent film is 5% and 15%, the illuminance measured by the ambient light sensor differs significantly. This leads to substantial differences in the light data measured by the ambient light sensors of different terminal devices, preventing the display brightness adjustment from achieving optimal results. Therefore, calibrating the ambient light sensor has become a significant technical challenge.

[0049] Based on this, this application provides a calibration method for an ambient light sensor. By using the determined illuminance calibration coefficient and display brightness calibration coefficient to calibrate the illuminance measured by the ambient light sensor, the accuracy of the calibrated ambient light sensor in measuring illuminance is improved.

[0050] Please see Figure 1 , Figure 1 This is one of the flowcharts illustrating a calibration method for an ambient light sensor provided in an embodiment of this application. Figure 1 As shown in the embodiments of this application, the calibration method includes:

[0051] S101: Obtain the illuminance value range of the ambient light sensor, and divide the illuminance value range into multiple illuminance intervals.

[0052] In this step, the illuminance range of the ambient light sensor is obtained, and the illuminance range is divided into multiple illuminance intervals.

[0053] Here, the illuminance range of the ambient light sensor in each terminal device is different in the same scene, and the relationship between ambient light illuminance and display brightness curve is also different for each ambient light sensor.

[0054] The unit for illuminance is lux.

[0055] In one possible implementation, the step of acquiring the illuminance range of the ambient light sensor involves dividing the illuminance range into multiple illuminance intervals, including:

[0056] A: The range of illuminance values ​​is determined based on the human eye's perception characteristics of ambient light and display brightness, the nonlinear curve between ambient light and display brightness, the illuminance of the test light source, the current environment of the terminal device, and the distance between the terminal device and the test light source.

[0057] Here, the range of illuminance values ​​for the ambient light sensor in the current environment is determined by utilizing the human eye's perception characteristics of ambient light and display brightness, the nonlinear curve between ambient illuminance and display brightness, the illuminance of the test light source, the current environment in which the terminal device is located, and the distance between the terminal device and the test light source. For example, the illuminance range is 10 lux to 10,000 lux, and the unit of illuminance is lux.

[0058] B: After determining the range of illuminance values, the range of illuminance values ​​is divided into multiple illuminance intervals based on the nonlinear curve between ambient illuminance and display brightness.

[0059] Here, after determining the range of illuminance values, the range is segmented using the non-linear curve between ambient illuminance and display brightness, resulting in multiple illuminance intervals. The segmentation of the illuminance range is not uniform; it takes into account the range of display brightness values ​​corresponding to the non-linear curve between ambient illuminance and display brightness. Generally, the segments are denser when the display brightness value is lower and sparser when the display brightness value is higher.

[0060] For example, the illuminance value range is [IL0, IL]. N The illuminance values ​​are divided into N+1 segments, with illuminance intervals of [IL0, IL1], [IL1, IL2], ..., [IL...]. N-1 IL N ].

[0061] S102: Determine the target illuminance value for each of the illuminance intervals and the target display brightness value corresponding to the target illuminance value for each of the illuminance intervals.

[0062] In this step, the target illuminance value for each illuminance interval and the target display brightness value corresponding to the target illuminance value for each illuminance interval are determined.

[0063] Here, the target illuminance value can be the midpoint value of the illuminance interval, such as (IL0+IL1) / 2, (IL1+IL2) / 2, ..., (ILN-1+ILN) / 2, or the maximum illuminance value of the illuminance interval, or the minimum illuminance value of the illuminance interval. The method for setting the target illuminance value is not limited here.

[0064] Once the target illuminance value is determined, the target display brightness value corresponding to each target illuminance value is determined using the non-linear curve between ambient light illuminance and display brightness.

[0065] The non-linear curve between ambient illuminance and display brightness is pre-set, with each illuminance corresponding to a display brightness value.

[0066] S103: Control the test light source to illuminate the terminal device with the target illuminance value of each illuminance interval to obtain the actual illuminance value and the actual display brightness value, and use the target illuminance value and the actual illuminance value to determine the illuminance calibration coefficient of the terminal device in each illuminance interval, and use the target display brightness value and the actual display brightness value to determine the display brightness calibration coefficient of the terminal device in each illuminance interval.

[0067] In this step, the test light source is adjusted to the target illuminance value for each illuminance interval to illuminate the terminal device. During the illumination process, an illuminance meter is used to determine the actual illuminance value. Based on the target illuminance value and the actual illuminance value, the illuminance calibration coefficient of the terminal device corresponding to each illuminance interval is determined. The test light source is adjusted to the target illuminance value for each illuminance interval to illuminate the terminal device. During the illumination process, an illuminance meter is used to determine the actual display brightness value. Based on the target display brightness value and the actual display brightness value, the display brightness calibration coefficient of the terminal device corresponding to each illuminance interval is determined.

[0068] Here, the terminal device can be a mobile phone, computer, or other electronic product.

[0069] The terminal device is equipped with an ambient light sensor. When the ambient light sensor receives the illuminance, the display screen of the terminal device will adjust the display brightness according to the illuminance.

[0070] The target display brightness value is determined based on the target illuminance value.

[0071] In one possible implementation, the controlled test light source illuminates the terminal device with a target illuminance value for each of the illuminance intervals, and the illuminance calibration coefficient of the terminal device corresponding to each of the illuminance intervals is determined using the target illuminance value and the actual illuminance value, including:

[0072] a: Obtain the actual illuminance value measured by the terminal device under the target illuminance value in each illuminance interval.

[0073] Here, the test light source is adjusted to the target illuminance value of each illuminance interval and irradiates the terminal device fixed at a preset position. The test program installed on the terminal device reads the actual illuminance value measured by the terminal device under the target illuminance value of each illuminance interval.

[0074] b: Based on the quotient between the target illuminance value in the illuminance interval and the actual illuminance value measured by the terminal device, determine the illuminance calibration coefficient of the terminal device in each illuminance interval.

[0075] Here, for each illuminance interval, the quotient obtained by dividing the target illuminance value of the illuminance interval by the actual illuminance value measured by the terminal device is determined as the illuminance calibration coefficient C1, C2, ..., CN of the terminal device in that illuminance interval, and the illuminance calibration coefficient corresponding to each illuminance interval is stored in a register.

[0076] In one possible implementation, determining the display brightness calibration coefficient of the terminal device for each illuminance range using the target display brightness value and the actual display brightness value includes:

[0077] I: Obtain the actual display brightness value of the terminal device under the target illuminance value in each illuminance range.

[0078] Here, the test light source is adjusted to the target illuminance value of each illuminance interval and irradiates the terminal device fixed at a preset position. The actual display brightness value of the terminal device under the target illuminance value of each illuminance interval is measured using an illuminance meter.

[0079] II: Based on the quotient between the target display brightness value under the target illuminance value in the illuminance range and the actual display brightness value of the terminal device, determine the display brightness calibration coefficient of the terminal device in each illuminance range.

[0080] Here, for each illuminance interval, the quotient of the target display brightness value under the target illuminance value of the illuminance interval divided by the actual display brightness value of the terminal device is determined as the display brightness calibration coefficient F1, F2, ..., FN of the terminal device in each illuminance interval, and the display brightness calibration coefficient corresponding to each illuminance interval is stored in a register.

[0081] S104: Based on the illuminance calibration coefficient and the display brightness calibration coefficient corresponding to each of the illuminance intervals, the illuminance measured by the ambient light sensor is calibrated.

[0082] In this step, the illuminance measured by the ambient light sensor is calibrated using the illuminance calibration coefficient corresponding to each illuminance range.

[0083] In one possible implementation, calibrating the illuminance measured by the ambient light sensor based on the illuminance calibration coefficient corresponding to each of the illuminance intervals and the display brightness calibration coefficient includes:

[0084] i: When the ambient light sensor measures any illuminance, it determines the illuminance range corresponding to that illuminance.

[0085] Here, when the ambient light sensor measures any illuminance, it determines the illuminance range in which that illuminance falls based on the illuminance.

[0086] ii: Based on the illuminance calibration coefficient corresponding to the illuminance range, the display brightness calibration coefficient, and the product of the illuminance, determine the calibrated illuminance after calibrating the illuminance measured by the ambient light sensor.

[0087] Here, the illuminance value calibration formula is: ILcal=ILx×Ci×Fi,(i=1,2,……,N), where ILcal is the calibration illuminance, ILx is the illuminance, Ci is the illuminance calibration coefficient, and Fi is the display brightness calibration coefficient.

[0088] In a specific embodiment, based on the device parameters of the terminal device, the perceptual characteristics of the human eye regarding ambient light and display brightness, and the nonlinear curve between ambient illuminance and display brightness, the range of ambient illuminance values ​​should include the corresponding values ​​for everyday use scenarios. The range should be selected based on the illuminance of the test light source and the distance to the testing device; for example, the illuminance range could be [10 lux, 10000 lux], with the unit being lux. After determining the illuminance value range, the data is segmented according to the range. The number of segments should consider the size of the value range, the shape of the ambient light brightness curve, and the test calibration time to select an appropriate number. Note that the segmentation of the illuminance value range is not uniform; the logarithmic curve shape of the ambient light brightness curve and the corresponding display brightness value range should be considered. Generally, segments are denser when the value is lower and sparser when the value is higher. For example, if the ambient illuminance value ranges from [IL0, ILN], the illuminance value is divided into N+1 segments: [IL0, IL1], [IL1, IL2], ..., [ILN-1, ILN]. The midpoint value of each segment is calculated as (IL0+IL1) / 2, (IL1+IL2) / 2, ..., (ILN-1+ILN) / 2. The corresponding display brightness values ​​for each segment are BL1, BL2, ..., BLN. The terminal device is placed in the black box test station, with appropriate distance and angle adjusted, and its position is fixed using a fixture. The test light source is adjusted to (IL0+IL1) / 2, (IL1+IL2) / 2, ..., (ILN-1+ILN) / 2. An illuminance meter can be used to measure the accurate value. The test program is installed on the terminal device to read the actual measured illuminance value, calculate the difference between the measured and test light source illuminance values, and obtain the illuminance calibration coefficients C1, C2, ..., CN. While adjusting the test light source, the brightness value of the terminal device's display screen is measured using an illuminance meter and compared with the target display brightness values ​​BL1, BL2, ..., BLN. The actual display brightness value and the target display brightness value are calculated to obtain the display brightness calibration coefficients F1, F2, ..., FN. The illuminance calibration coefficients C1, C2, ..., CN and the display brightness calibration coefficients F1, F2, ..., FN are written into registers for storage. The illuminance acquisition data is segmented. For example, when the illuminance value collected by the sensor is ILx, the illuminance range of the value is first determined. The corresponding illuminance calibration coefficient Ci and display brightness calibration coefficient Fi (i = 1, 2, ..., N) are called to multiply the acquired data by the illuminance calibration coefficient and the display brightness calibration coefficient respectively to obtain the calibrated illuminance value. The display screen adjusts the corresponding brightness level according to the calibrated illuminance value data.

[0089] Current technologies calibrate ambient light sensors using a single calibration value, leading to inaccuracies. Furthermore, current methods only consider the difference between the illuminance emitted by the test light source and the actual illuminance received by the sensor. Adjustments are made solely based on the illuminance calibration value, neglecting the tolerance issues caused by a cover glass plate with a black semi-transparent film obscuring the sensor. Therefore, this solution utilizes the non-linear optical system of the ambient light illuminance-display brightness curve, segmenting the illuminance range and setting different calibration coefficients within each segment. The ambient light sensor values ​​and display brightness values ​​are measured using both a lux meter and a luminance meter, compared to target values, and the difference is calculated to obtain the calibration coefficient, which is then stored in a register. Ultimately, the calibrated device compensates for the tolerances of the semi-transparent film transmittance and the ambient light sensor's accuracy, and corrects the display brightness tolerances. The calibrated device delivers accurate display performance.

[0090] This application provides a calibration method for an ambient light sensor. The calibration method includes: acquiring the illuminance range of the ambient light sensor; dividing the illuminance range into multiple illuminance intervals; determining a target illuminance value for each illuminance interval and a target display brightness value corresponding to the target illuminance value for each illuminance interval; controlling a test light source to illuminate a terminal device with the target illuminance value for each illuminance interval to obtain an actual illuminance value and an actual display brightness value; determining an illuminance calibration coefficient for the terminal device in each illuminance interval using the target illuminance value and the actual illuminance value; and determining a display brightness calibration coefficient for the terminal device in each illuminance interval using the target display brightness value and the actual display brightness value. The terminal device includes the ambient light sensor; the target display brightness value is determined based on the target illuminance value; and the illuminance measured by the ambient light sensor is calibrated based on the illuminance calibration coefficient and the display brightness calibration coefficient for each illuminance interval. By using the determined illuminance calibration coefficient and display brightness calibration coefficient to calibrate the illuminance measured by the ambient light sensor, the accuracy of the calibrated ambient light sensor in measuring illuminance is improved.

[0091] Please see Figure 2 , Figure 2 This is a second flowchart illustrating a calibration method for an ambient light sensor provided in an embodiment of this application. Figure 2 As shown in the embodiments of this application, the calibration method includes:

[0092] S201: Obtain the illuminance value range of the ambient light sensor, and divide the illuminance value range into multiple illuminance intervals.

[0093] S202: Determine the target illuminance value for each of the illuminance intervals and the target display brightness value corresponding to the target illuminance value for each of the illuminance intervals.

[0094] S203: Control the test light source to illuminate the terminal device with the target illuminance value for each of the illuminance intervals, obtain the actual illuminance value and the actual display brightness value, and determine the illuminance calibration coefficient of the terminal device for each of the illuminance intervals using the target illuminance value and the actual illuminance value, and determine the display brightness calibration coefficient of the terminal device for each of the illuminance intervals using the target display brightness value and the actual display brightness value. S204: Based on the illuminance calibration coefficient and the display brightness calibration coefficient for each of the illuminance intervals, calibrate the illuminance measured by the ambient light sensor.

[0095] The descriptions of S201 to S204 can be referred to those of S101 to S104, and the same technical effect can be achieved, so they will not be elaborated further.

[0096] S205: After calibrating the illuminance measured by the ambient light sensor based on the illuminance calibration coefficient corresponding to each of the illuminance intervals and the display brightness calibration coefficient, the calibration method further includes:

[0097] Based on the nonlinear curve between ambient illuminance and display brightness, the calibrated display brightness corresponding to the calibrated illuminance is determined; the display screen included in the terminal device adjusts the display brightness based on the calibrated display brightness.

[0098] In this step, the calibration display brightness corresponding to the calibration illuminance is determined based on the non-linear curve between ambient illuminance and display brightness. The display screen included in the terminal device adjusts the display brightness using the calibration display brightness to improve the accuracy of the display screen's brightness adjustment.

[0099] This application provides a calibration method for an ambient light sensor. The calibration method includes: obtaining the illuminance range of the ambient light sensor; dividing the illuminance range into multiple illuminance intervals; determining a target illuminance value for each illuminance interval and a target display brightness value corresponding to the target illuminance value for each illuminance interval; controlling a test light source to illuminate a terminal device with the target illuminance value for each illuminance interval to obtain actual illuminance values ​​and actual display brightness values; determining an illuminance calibration coefficient for the terminal device in each illuminance interval using the target illuminance value and the actual illuminance value; and determining a display brightness calibration coefficient for the terminal device in each illuminance interval using the target display brightness value and the actual display brightness value; and calibrating the illuminance measured by the ambient light sensor based on the illuminance calibration coefficient and the display brightness calibration coefficient for each illuminance interval. By calibrating the illuminance measured by the ambient light sensor using the determined illuminance calibration coefficient and display brightness calibration coefficient, the accuracy of the illuminance measured by the calibrated ambient light sensor is improved.

[0100] Please see Figure 3 , Figure 4 , Figure 3 This is one of the structural schematic diagrams of a calibration device for an ambient light sensor provided in an embodiment of this application; Figure 4 This is a second schematic diagram of a calibration device for an ambient light sensor provided in an embodiment of this application. Figure 3 As shown, the calibration device 300 includes:

[0101] The acquisition module 310 is used to acquire the illuminance value range of the ambient light sensor and divide the illuminance value range into multiple illuminance intervals.

[0102] The determining module 320 is used to determine the target illuminance value for each of the illuminance intervals and the target display brightness value corresponding to the target illuminance value for each of the illuminance intervals;

[0103] The calibration coefficient determination module 330 is used to control the test light source to illuminate the terminal device with the target illuminance value of each illuminance interval, obtain the actual illuminance value and the actual display brightness value, and determine the illuminance calibration coefficient of the terminal device corresponding to each illuminance interval using the target illuminance value and the actual illuminance value, and determine the display brightness calibration coefficient of the terminal device corresponding to each illuminance interval using the target display brightness value and the actual display brightness value; the calibration module 340 is used to calibrate the illuminance measured by the ambient light sensor based on the illuminance calibration coefficient and the display brightness calibration coefficient corresponding to each illuminance interval.

[0104] Furthermore, when the determining module 320 divides the illuminance range of the ambient light sensor into multiple illuminance intervals, it includes:

[0105] The range of illuminance values ​​is determined based on the human eye's perception characteristics of ambient light and display brightness, the nonlinear curve between ambient illuminance and display brightness, the illuminance of the test light source, the current environment of the terminal device, and the distance between the terminal device and the test light source.

[0106] After determining the range of illuminance values, the range of illuminance values ​​is divided into multiple illuminance intervals based on the nonlinear curve between ambient illuminance and display brightness.

[0107] Furthermore, when the calibration coefficient determination module 330 illuminates the terminal device with the target illuminance value for each of the illuminance intervals using the control test light source to obtain the actual illuminance value and the actual display brightness value, and determines the illuminance calibration coefficient of the terminal device corresponding to each of the illuminance intervals using the target illuminance value and the actual illuminance value, the illuminance calibration coefficient determination module 330 is specifically used for:

[0108] Obtain the actual illuminance value measured by the terminal device under the target illuminance value in each illuminance interval;

[0109] Based on the quotient between the target illuminance value in the illuminance interval and the actual illuminance value measured by the terminal device, the illuminance calibration coefficient corresponding to the terminal device in each illuminance interval is determined.

[0110] Furthermore, when the calibration coefficient determination module 340 determines the display brightness calibration coefficient of the terminal device in each illuminance range using the target display brightness value and the actual display brightness value, the calibration coefficient determination module 340 is specifically used for:

[0111] Obtain the actual display brightness value of the terminal device under the target illuminance value in each illuminance interval;

[0112] Based on the quotient between the target display brightness value under the target illuminance value in the illuminance range and the actual display brightness value of the terminal device, the display brightness calibration coefficient of the terminal device corresponding to each illuminance range is determined.

[0113] Furthermore, when the calibration module 340 calibrates the illuminance measured by the ambient light sensor based on the illuminance calibration coefficient corresponding to each of the illuminance intervals and the display brightness calibration coefficient, the calibration module 340 is specifically used for:

[0114] When the ambient light sensor measures any illuminance, it determines the illuminance range corresponding to that illuminance.

[0115] Based on the illuminance calibration coefficient corresponding to the illuminance range, the display brightness calibration coefficient, and the product of the illuminance, the calibrated illuminance after calibrating the illuminance measured by the ambient light sensor is determined.

[0116] Furthermore, such as Figure 4 As shown, the calibration device 300 also includes a brightness adjustment module 350, which is used for:

[0117] Based on the nonlinear curve between ambient illuminance and display brightness, the calibrated display brightness corresponding to the calibrated illuminance is determined;

[0118] The calibrated display brightness refers to the display brightness adjusted by the display screen included in the terminal device.

[0119] This application provides a calibration device for an ambient light sensor. The calibration device includes: an acquisition module for acquiring the illuminance range of the ambient light sensor and dividing the illuminance range into multiple illuminance intervals; a determination module for determining a target illuminance value for each illuminance interval and a target display brightness value corresponding to the target illuminance value for each illuminance interval; a calibration coefficient determination module for controlling a test light source to illuminate a terminal device with the target illuminance value for each illuminance interval, obtaining an actual illuminance value and an actual display brightness value, and determining an illuminance calibration coefficient for the terminal device in each illuminance interval using the target illuminance value and the actual illuminance value, and determining a display brightness calibration coefficient for the terminal device in each illuminance interval using the target display brightness value and the actual display brightness value; wherein the terminal device includes the ambient light sensor; the target display brightness value is determined based on the target illuminance value; and a calibration module for calibrating the illuminance measured by the ambient light sensor based on the illuminance calibration coefficient and the display brightness calibration coefficient corresponding to each illuminance interval. By using the determined illuminance calibration coefficient and display brightness calibration coefficient to calibrate the illuminance measured by the ambient light sensor, the accuracy of the calibrated ambient light sensor in measuring illuminance is improved.

[0120] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 5 As shown, the electronic device 500 includes a processor 510, a memory 520, and a bus 530.

[0121] The memory 520 stores machine-readable instructions executable by the processor 510. When the electronic device 500 is running, the processor 510 and the memory 520 communicate via the bus 530. When the machine-readable instructions are executed by the processor 510, they can perform the operations described above. Figure 1 as well as Figure 2 The steps of the ambient light sensor calibration method in the illustrated method embodiment can be found in the method embodiment for specific implementation, and will not be repeated here.

[0122] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can perform the above-described actions. Figure 1 as well as Figure 2 The steps of the ambient light sensor calibration method in the illustrated method embodiment can be found in the method embodiment for specific implementation, and will not be repeated here.

[0123] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0124] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0125] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0126] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0127] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0128] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The scope of protection of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A calibration method for an ambient light sensor, characterized in that, The calibration method includes: Obtain the illuminance value range of the ambient light sensor, and divide the illuminance value range into multiple illuminance intervals; Determine the target illuminance value for each of the illuminance intervals and the target display brightness value corresponding to the target illuminance value for each of the illuminance intervals; The test light source is controlled to illuminate the terminal device with a target illuminance value for each of the illuminance intervals, obtaining the actual illuminance value and the actual display brightness value. The illuminance calibration coefficient of the terminal device for each of the illuminance intervals is determined using the target illuminance value and the actual illuminance value, and the display brightness calibration coefficient of the terminal device for each of the illuminance intervals is determined using the target display brightness value and the actual display brightness value. The terminal device includes the ambient light sensor; the target display brightness value is determined based on the target illuminance value. The illuminance measured by the ambient light sensor is calibrated based on the illuminance calibration coefficient and the display brightness calibration coefficient corresponding to each illuminance interval. The controlled test light source illuminates the terminal device with the target illuminance value for each of the illuminance intervals to obtain the actual illuminance value and the actual display brightness value. The target illuminance value and the actual illuminance value are then used to determine the illuminance calibration coefficient of the terminal device for each of the illuminance intervals, including: Obtain the actual illuminance value measured by the terminal device under the target illuminance value in each illuminance interval; Based on the quotient between the target illuminance value in the illuminance interval and the actual illuminance value measured by the terminal device, the illuminance calibration coefficient of the terminal device in each illuminance interval is determined. The calibration of the illuminance measured by the ambient light sensor based on the illuminance calibration coefficient and the display brightness calibration coefficient corresponding to each of the illuminance intervals includes: When the ambient light sensor measures any illuminance, it determines the illuminance range corresponding to that illuminance. Based on the illuminance calibration coefficient corresponding to the illuminance range, the display brightness calibration coefficient, and the product of the illuminance, the calibrated illuminance after calibrating the illuminance measured by the ambient light sensor is determined.

2. The calibration method according to claim 1, characterized in that, The method of acquiring the illuminance range of the ambient light sensor is to divide the illuminance range into multiple illuminance intervals, including: The range of illuminance values ​​is determined based on the human eye's perception characteristics of ambient light and display brightness, the nonlinear curve between ambient illuminance and display brightness, the illuminance of the test light source, the current environment of the terminal device, and the distance between the terminal device and the test light source. After determining the range of illuminance values, the range of illuminance values ​​is divided into multiple illuminance intervals based on the nonlinear curve between ambient illuminance and display brightness.

3. The calibration method according to claim 1, characterized in that, The step of determining the display brightness calibration coefficient of the terminal device in each illuminance range using the target display brightness value and the actual display brightness value includes: Obtain the actual display brightness value of the terminal device under the target illuminance value in each illuminance interval; Based on the quotient between the target display brightness value under the target illuminance value in the illuminance range and the actual display brightness value of the terminal device, the display brightness calibration coefficient of the terminal device corresponding to each illuminance range is determined.

4. The calibration method according to claim 1, characterized in that, After calibrating the illuminance measured by the ambient light sensor based on the illuminance calibration coefficient and the display brightness calibration coefficient corresponding to each of the illuminance intervals, the calibration method further includes: Based on the nonlinear curve between ambient illuminance and display brightness, the calibrated display brightness corresponding to the calibrated illuminance is determined; the calibrated display brightness is the display brightness adjusted by the display screen included in the terminal device.

5. A calibration device for an ambient light sensor, characterized in that, The calibration device includes: The acquisition module is used to acquire the illuminance value range of the ambient light sensor and divide the illuminance value range into multiple illuminance intervals; The determining module is used to determine the target illuminance value for each of the illuminance intervals and the target display brightness value corresponding to the target illuminance value for each of the illuminance intervals; A coefficient determination module is used to control a test light source to illuminate the terminal device with a target illuminance value for each of the illuminance intervals, obtain the actual illuminance value and the actual display brightness value, and determine the illuminance calibration coefficient of the terminal device for each of the illuminance intervals using the target illuminance value and the actual illuminance value, and determine the display brightness calibration coefficient of the terminal device for each of the illuminance intervals using the target display brightness value and the actual display brightness value. The terminal device includes the ambient light sensor; the target display brightness value is determined based on the target illuminance value. The calibration module is used to calibrate the illuminance measured by the ambient light sensor based on the illuminance calibration coefficient and the display brightness calibration coefficient corresponding to each illuminance interval. The coefficient determination module is used to control the test light source to illuminate the terminal device with the target illuminance value for each of the illuminance intervals, obtain the actual illuminance value and the actual display brightness value, and use the target illuminance value and the actual illuminance value to determine the illuminance calibration coefficient of the terminal device for each of the illuminance intervals. Obtain the actual illuminance value measured by the terminal device under the target illuminance value in each illuminance interval; Based on the quotient between the target illuminance value in the illuminance interval and the actual illuminance value measured by the terminal device, the illuminance calibration coefficient of the terminal device in each illuminance interval is determined. The calibration module is used to calibrate the illuminance measured by the ambient light sensor based on the illuminance calibration coefficient and the display brightness calibration coefficient corresponding to each of the illuminance intervals. When the ambient light sensor measures any illuminance, it determines the illuminance range corresponding to that illuminance. Based on the illuminance calibration coefficient corresponding to the illuminance range, the display brightness calibration coefficient, and the product of the illuminance, the calibrated illuminance after calibrating the illuminance measured by the ambient light sensor is determined.

6. The calibration apparatus according to claim 5, characterized in that, When the determining module divides the illuminance range of the ambient light sensor into multiple illuminance intervals, it includes: The range of illuminance values ​​is determined based on the human eye's perception characteristics of ambient light and display brightness, the nonlinear curve between ambient illuminance and display brightness, the illuminance of the test light source, the current environment of the terminal device, and the distance between the terminal device and the test light source. After determining the range of illuminance values, the range of illuminance values ​​is divided into multiple illuminance intervals based on the nonlinear curve between ambient illuminance and display brightness.

7. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. The machine-readable instructions are executed by the processor to perform the steps of the calibration method for an ambient light sensor as described in any one of claims 1 to 4.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the calibration method for the ambient light sensor as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method and device for calibrating ambient light sensor

    CN108267223A

  • Electronic device for calibrating illuminance sensor

    WO2022059879A1