Ambient light intensity calibration method, device, electronic device and storage medium

By acquiring information from the detection device in the display screen and calculating the compensation brightness using a calibration relational library, the problem of backlight leakage affecting ambient light intensity detection is solved, thus improving detection accuracy and brightness adjustment precision.

CN114441033BActive Publication Date: 2024-11-22TCL COMM TECH (CHENGDU) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210089928.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-25
Publication Date
2024-11-22
Estimated Expiration
2042-01-25

AI Technical Summary

Technical Problem

With the development of full-screen technology, backlight leakage from the display screen is mixed with the ambient light intensity, causing the detection device to be unable to accurately detect the current ambient light intensity, thus affecting the accuracy of display brightness adjustment.

Method used

By acquiring the ambient light intensity, display brightness, and color information detected by the detection device, the target light leakage compensation value and brightness compensation coefficient are determined using a preset calibration relation library, and the compensation brightness is calculated to calibrate the detected ambient light intensity.

Benefits of technology

This improves the accuracy of the detection device in detecting ambient light intensity, ensuring the precision of display brightness adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114441033B_ABST
    Figure CN114441033B_ABST
Patent Text Reader

Abstract

The ambient light intensity calibration method, device, electronic device and storage medium provided by the embodiments of the present invention relate to the field of display technology. After obtaining the detection ambient light intensity detected by the detection device set in the display screen, and the display brightness and color information of the display area corresponding to the detection device, the embodiment of the present invention determines the target light leakage compensation value corresponding to the color information according to the preset calibration relationship library, obtains the brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen, and then determines the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrates the detection ambient light intensity according to the compensation brightness. In this way, the compensation brightness is obtained according to the color information and display brightness of the display area corresponding to the detection device, and the detection ambient light intensity detected by the detection device is calibrated, thereby improving the accuracy of the detection ambient light intensity detected by the detection device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of display technology, and in particular to an ambient light intensity calibration method, device, electronic equipment and storage medium. Background Art

[0002] In order to improve the user experience, mobile phones, tablet computers and other electronic devices are equipped with the function of automatically adjusting the display brightness. During use, the display brightness can be adjusted according to the ambient light intensity. However, with the advancement of technology, electronic devices are constantly pursuing the ultimate full-screen visual effect. While continuously increasing the screen-to-body ratio, they are also constantly squeezing the installation space of various components inside the display. For the detection device for detecting the ambient light intensity, the distance to the display screen is getting closer and closer. When performing ambient light intensity detection, the light leakage of the display backlight will be mixed into the actual ambient light intensity, resulting in the detection device being unable to accurately detect the actual ambient light intensity of the current environment. Summary of the invention

[0003] Based on the above research, an embodiment of the present invention provides an ambient light intensity calibration method, device, electronic device and storage medium, which can calibrate the detection ambient light intensity detected by the detection device according to the display brightness and color information of the display screen, thereby improving the accuracy of the detection ambient light intensity detected by the detection device.

[0004] In a first aspect, an embodiment of the present invention provides an ambient light intensity calibration method, the method comprising:

[0005] Acquire the detection environment light intensity detected by the detection device arranged in the display screen, and the display brightness and color information of the display area corresponding to the detection device;

[0006] Determine and obtain a target light leakage compensation value corresponding to the color information according to a preset calibration relationship library; wherein the calibration relationship library includes the color information and the target light leakage compensation value corresponding to the color information;

[0007] Obtaining a brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen;

[0008] The compensation brightness of the display area is determined according to the target light leakage compensation value and the brightness compensation coefficient, and the detection environment light intensity is calibrated according to the compensation brightness.

[0009] In an optional implementation, the calibration relationship library includes a grayscale calibration relationship library and a color calibration relationship library, and the step of determining a target light leakage compensation value corresponding to the color information according to the preset calibration relationship library includes:

[0010] Detecting whether all color channel values ​​included in the color information are less than or equal to or greater than or equal to a preset grayscale detection value;

[0011] If not, determining the target light leakage compensation value corresponding to the color information in the color calibration relationship library;

[0012] If so, the target light leakage compensation value corresponding to the color information is determined in the grayscale calibration relationship library.

[0013] In an optional implementation, the step of determining the target light leakage compensation value corresponding to the color information in the color calibration relationship library includes:

[0014] In the color calibration relationship library, a target sub-color space corresponding to the color information is determined; wherein the color calibration relationship library includes a light leakage compensation value corresponding to each target sub-color space;

[0015] Setting the light leakage compensation value corresponding to the target sub-color space to the target light leakage compensation value corresponding to the color information;

[0016] The step of determining the target light leakage compensation value corresponding to the color information in the grayscale calibration relationship library comprises:

[0017] In the grayscale calibration relationship library, a target grayscale level corresponding to the color information is determined; wherein the grayscale calibration relationship library includes a light leakage compensation value corresponding to each target grayscale level;

[0018] The light leakage compensation value corresponding to the target grayscale level is set as the target light leakage compensation value corresponding to the color information.

[0019] In an optional implementation, before determining the target light leakage compensation value corresponding to the color information in the color calibration relationship library, the method further includes:

[0020] According to a preset threshold, the preset RGB color space is divided into multiple sub-color spaces;

[0021] For each sub-color space, in a dark environment, the display brightness of the display screen is controlled to be the maximum display brightness, and the color of the display screen is the sub-color space, the light leakage brightness of the display screen is detected, and the light leakage compensation value of the display screen in the sub-color space is obtained;

[0022] An association relationship between each of the sub-color spaces and the corresponding light leakage compensation value is established, and the color calibration relationship library is obtained according to the association relationship.

[0023] In an optional implementation, before determining the target light leakage compensation value corresponding to the color information in the grayscale calibration relationship library, the method further includes:

[0024] For each preset grayscale level, in a dark environment, the display brightness of the display screen is controlled to be the maximum display brightness, and the color of the display screen is the grayscale level, the light leakage brightness of the display screen is detected, and the light leakage compensation value of the display screen at the grayscale level is obtained;

[0025] An association relationship between each of the grayscale levels and the corresponding light leakage compensation value is established, and the grayscale calibration relationship library is obtained according to the association relationship.

[0026] In an optional implementation, the step of determining the compensated brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient includes:

[0027] Obtaining a maximum light leakage value and a preset standard light leakage value of the display screen;

[0028] Obtaining a screen compensation coefficient according to a ratio of a maximum light leakage value of the display screen to a preset standard light leakage value;

[0029] The compensated brightness is determined according to the target light leakage compensation value, the brightness compensation coefficient and the screen compensation coefficient.

[0030] In an optional implementation, the step of determining the compensated brightness according to the target light leakage compensation value, the brightness compensation coefficient, and the screen compensation coefficient includes:

[0031] Obtaining transparency information of a display area corresponding to the detection device;

[0032] Determining a transparency compensation coefficient according to the transparency information and a preset corresponding relationship;

[0033] The compensated brightness is determined according to the target light leakage compensation value, the brightness compensation coefficient, the screen compensation coefficient, and the transparency compensation coefficient.

[0034] In a second aspect, an embodiment of the present invention provides an ambient light intensity calibration device, comprising:

[0035] An acquisition module, used to acquire the detection environment light intensity detected by a detection device arranged in the display screen, and the display brightness and color information of the display area corresponding to the detection device;

[0036] A search module, used to determine and obtain a target light leakage compensation value corresponding to the color information according to a preset calibration relationship library; wherein the calibration relationship library includes the color information and the target light leakage compensation value corresponding to the color information;

[0037] A first calculation module, used for obtaining a brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen;

[0038] The second calculation module is used to determine the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrate the detection environment light intensity according to the compensation brightness.

[0039] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the ambient light intensity calibration method described in any of the foregoing embodiments when executing the computer program.

[0040] In a fourth aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the ambient light intensity calibration method described in any of the aforementioned embodiments is implemented.

[0041] The ambient light intensity calibration method, device, electronic device and storage medium provided by the embodiment of the present invention, after obtaining the detection ambient light intensity detected by the detection device set in the display screen, and the display brightness and color information of the display area corresponding to the detection device, determine the target light leakage compensation value corresponding to the color information according to the preset calibration relationship library, obtain the brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen, and then determine the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrate the detection ambient light intensity according to the compensation brightness. In this way, the compensation brightness is obtained according to the color information and display brightness of the display area corresponding to the detection device, and the detection ambient light intensity detected by the detection device is calibrated, thereby improving the accuracy of the detection ambient light intensity detected by the detection device. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0043] Figure 1 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0044] Figure 2 A schematic diagram of a flow chart of an ambient light intensity calibration method provided in an embodiment of the present invention.

[0045] Figure 3 A block diagram of an ambient light intensity calibration device provided by an embodiment of the present invention.

[0046] Icon: 100 - electronic device; 10 - ambient light intensity calibration device; 11 - acquisition module; 12 - search module; 13 - first calculation module; 14 - second calculation module; 20 - memory; 30 - processor; 40 - communication unit; 50 - display unit. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0048] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0049] In the present invention, the word "exemplary" is used to mean "used as an example, illustration or description". Any embodiment described as "exemplary" in the present invention is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present invention.

[0050] With the development of technology, electronic devices such as mobile phones and tablets have the function of automatically adjusting display brightness according to the ambient light intensity. However, with the development of full-screen technology, the installation space of various components inside the mobile phone is getting smaller and smaller, and getting closer and closer to the screen. For the detection device for detecting the ambient light intensity, it is getting closer and closer to the screen. When the screen is displaying, the backlight leakage will be mixed into the actual ambient light intensity, affecting the accuracy of the ambient light intensity detected by the detection device.

[0051] Based on the above problems, the ambient light intensity calibration method, device, electronic device and storage medium provided by the embodiments of the present invention, after obtaining the detection ambient light intensity detected by the detection device set in the display screen, and the display brightness and color information of the display area corresponding to the detection device, determine the target light leakage compensation value corresponding to the color information according to the preset calibration relationship library, obtain the brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen, and then determine the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrate the detection ambient light intensity according to the compensation brightness. In this way, the compensation brightness is obtained according to the color information and display brightness of the display area corresponding to the detection device, and the detection ambient light intensity detected by the detection device is calibrated, thereby improving the accuracy of the detection ambient light intensity detected by the detection device.

[0052] See also Figure 1 , Figure 1 A schematic diagram of the structure of an electronic device provided in this embodiment. Figure 1 As shown, the electronic device 100 includes an ambient light intensity calibration device 10, a memory 20, a processor 30, a communication unit 40, and a display unit 50. The memory 20, the processor 30, the communication unit 40, and the display unit 50 are electrically connected to each other directly or indirectly to achieve signal transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.

[0053] In this embodiment, the ambient light calibration device 10 includes at least one software function module that can be stored in the memory 20 in the form of software or firmware. The processor 30 is used to execute the executable module (e.g., the software function module or computer program included in the ambient light calibration device 10) stored in the memory 20. When the electronic device 100 is running, the processor 30 communicates with the memory 20 via a bus, and the processor 30 executes the executable module or computer program to implement the ambient light calibration method described in this embodiment.

[0054] Among them, the memory 20 can be, but is not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.

[0055] The processor 30 is used to perform one or more functions described in this embodiment. In some embodiments, the processor 30 may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). By way of example only, the processor 30 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), an application specific instruction set processor (ASIP), a graphics processing unit (GPU), a physical processing unit (PPU), a digital signal processor (DSP), a field programmable gate array (FPGA), a programmable logic device (PLD), a controller, a microcontroller unit, a reduced instruction set computer (RISC) or a microprocessor, or any combination thereof.

[0056] For ease of description, only one processor is described in the electronic device 100. However, it should be noted that the electronic device 100 in this embodiment may also include multiple processors, so the steps performed by one processor described in this embodiment may also be performed jointly or individually by multiple processors. For example, if the processor of the electronic device performs step A and step B, it should be understood that step A and step B may also be performed jointly by two different processors or individually in one processor. For example, the processor performs step A and the second processor performs step B, or the processor and the second processor perform steps A and B together.

[0057] In this embodiment, the process definition method disclosed in any implementation manner may be applied to the processor 30 or implemented by the processor 30 .

[0058] The communication unit 40 is used to establish a communication connection between the electronic device 100 and other devices through a network, and to send and receive data through the network.

[0059] In some embodiments, the network may be any type of wired or wireless network, or a combination thereof. By way of example only, the network may include a wired network, a wireless network, a fiber optic network, a telecommunications network, an intranet, the Internet, a local area network (LAN), a wide area network (WAN), a wireless local area network (WLAN), a metropolitan area network (MAN), a wide area network (WAN), a public switched telephone network (PSTN), a Bluetooth network, a ZigBee network, or a near field communication (NFC) network, or any combination thereof.

[0060] In this embodiment, the display unit 50 provides an interactive interface (e.g., a user operation interface) between the electronic device 100 and the user for displaying image information. In this embodiment, the display unit 50 may be a liquid crystal display or a touch display. If it is a touch display, it may be a capacitive touch screen or a resistive touch screen that supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations generated from one or more locations on the touch display, and the sensed touch operations are handed over to the processor 30 for calculation and processing.

[0061] In order to facilitate the interaction between the user and the display unit 50, in this embodiment, the electronic device 100 may further include an input and output unit, which is used to provide input data to the user to realize the interaction between the user and the electronic device 100. The input and output unit may be, but is not limited to, a mouse and a keyboard.

[0062] In some embodiments, the electronic device 100 may include 1 or N display units 50 , where N is a positive integer greater than 1.

[0063] In this embodiment, the electronic device may be a device having a display screen and a detection device for detecting ambient light intensity, such as a mobile phone, a tablet computer, and the like, and there is no limitation on the specific type thereof.

[0064] Understandably, Figure 1 The structure shown is for illustration only. The electronic device 100 may also have Figure 1 More or fewer components than shown, or with Figure 1 Different configurations are shown. Figure 1 The components shown may be implemented in hardware, software or a combination thereof.

[0065] based on Figure 1 The present embodiment provides an ambient light intensity calibration method. Figure 1 The electronic equipment is executed based on Figure 1 The structure diagram of the electronic device 100 provided in the embodiment is used to describe the ambient light intensity calibration method provided in this embodiment in detail. Figure 2 The ambient light intensity calibration method provided in this embodiment includes steps S101 to S104.

[0066] S101: Acquire the detection environment light intensity detected by a detection device disposed in a display screen, and the display brightness and color information of a display area corresponding to the detection device.

[0067] The ambient light intensity calibration method provided in this embodiment can be used to calibrate the ambient light intensity detected by a detection device of an electronic device such as a mobile phone, a tablet computer, or a PDA. The detection device can be a detection device placed inside the electronic device, and can be set below the display screen. The detection device in this embodiment can be a light sensor, etc., a device for detecting ambient light intensity, which is not specifically limited in this embodiment.

[0068] In this embodiment, since the area where light leakage from the display screen has the greatest impact on the detection device is the area directly above the detection device, in order to minimize the amount of calculation, only the display brightness and color information of the display area corresponding to the detection device in the display screen is obtained. Among them, the display area is determined according to the size and installation position of the detection device, and can be a fixed-size area centered on the detection device, which is not specifically limited in this embodiment. For example, the display area can select a 200*200 pixel area directly above the light sensor.

[0069] The color information in this embodiment represents the color displayed in the display area corresponding to the detection device in the display screen.

[0070] Optionally, in this embodiment, the step of acquiring color information of a display area corresponding to the detection device in the display screen includes:

[0071] Read the RGB value of each pixel in the display area;

[0072] A reference value is calculated according to the RGB value of each pixel in the display area, and the reference value is the color information of the display area.

[0073] Specifically, the reference value may be an average value, a median value, a mode value, etc. of the RGB values ​​of each pixel in the display area, as long as it can represent the display color of the display area, and this embodiment does not limit this.

[0074] The display brightness is adjusted by the entire display screen. Therefore, in this embodiment, the display brightness of the display area is the current display brightness of the display screen, and the current display brightness of the display screen can be directly read.

[0075] S102: Determine and obtain a target light leakage compensation value corresponding to the color information according to a preset calibration relationship library; wherein the calibration relationship library includes the color information and the target light leakage compensation value corresponding to the color information.

[0076] In this embodiment, the target light leakage compensation value corresponding to the color information can be obtained from a preset calibration relationship library. The calibration relationship library can be stored in a memory of the electronic device and can be stored in the form of a file, etc. The calibration relationship library includes color information and the target light leakage compensation value corresponding to the color information.

[0077] In this embodiment, the target light leakage compensation value corresponding to the color information represents: when the display screen is in a dark environment, the display brightness of the display screen is the maximum display brightness, and the display color of the display screen corresponds to the color information, the light leakage brightness detected by the detection device. For example: the color information of the display area is the average of the RGB values ​​of each pixel in the display area, and the average is (100, 135, 232). The display screen is placed in the dark, and the display content of the display screen is adjusted. The RGB values ​​of all pixels of the display screen are (100, 135, 232). The brightness of the display screen is adjusted to the maximum brightness of 120 Lux. At this time, the light leakage brightness detected by the detection device is 10 Lux. Then, RGB (100, 135, 232) is determined in the calibration relationship library. The target light leakage compensation value corresponding to the color information is 10 Lux.

[0078] In this embodiment, since the transmittance of the display screens of different electronic devices is different, the corresponding relationship between the color information and the target light leakage compensation value in the calibration relationship libraries of different electronic devices is different. Before the electronic devices leave the factory, the display screens of each electronic device can be tested to determine the corresponding calibration relationship library, and the corresponding calibration relationship library can be stored in the memory of the electronic device for subsequent use. It is understandable that for ease of operation, a standard calibration relationship library can be constructed based on the display screen of the test electronic device. When other electronic devices use the standard calibration relationship library to calibrate the detection ambient light intensity of the detection device, the display screen differences between different devices can be considered and calibration can be performed.

[0079] S103: Obtaining a brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen;

[0080] Among them, in this embodiment, the target light leakage compensation value corresponding to the color information is the light leakage brightness detected by the detection device when the display screen is in a dark environment, the display brightness of the display screen is the maximum display brightness, and the display color of the display screen corresponds to the color information. The target light leakage compensation value corresponds to the light leakage brightness when the display brightness of the display screen is the maximum display brightness, but the current display brightness of the display screen is not necessarily the maximum display brightness. Therefore, it is necessary to calibrate according to the current display brightness and the maximum display brightness of the display screen. When calculating the brightness compensation coefficient, you can directly take the ratio of the current display brightness to the maximum display brightness, or you can pre-calculate the impact of the change in display brightness on the light leakage brightness to determine the brightness compensation coefficient. This embodiment is not specifically limited, as long as it can characterize the corresponding relationship between the current display brightness and the maximum display brightness.

[0081] In this embodiment, for the sake of simplicity in calculation, the ratio of the current display brightness of the display screen to the maximum display brightness of the display screen is directly calculated to obtain the brightness compensation coefficient.

[0082] S104: Determine the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrate the detection environment light intensity according to the compensation brightness.

[0083] Among them, in this embodiment, after obtaining the target light leakage compensation value and the brightness compensation coefficient, it is possible to determine the current display brightness of the display screen and the compensation brightness corresponding to the color information, that is, the brightness mixed into the actual ambient light intensity. Therefore, the detection ambient light intensity detected by the detection device needs to be subtracted from the compensation brightness to obtain the actual ambient light intensity. For example: the detection ambient light intensity is L, the target light leakage compensation value is L1, and the brightness compensation coefficient is C1 = current display brightness / maximum display brightness, then the compensation brightness determined is L C= L1*C1, then the actual ambient light intensity is L F =LL C .

[0084] In this embodiment, a preset calibration relationship library is used to determine the target light leakage compensation value corresponding to the color information of the display area, and then the target light leakage compensation value is calibrated according to the current display brightness to obtain the current display brightness of the display area and the compensation brightness corresponding to the color information, that is, the leakage brightness mixed in the actual ambient light intensity is obtained, which can calibrate the detection ambient light intensity detected by the detection device to ensure the accuracy of the electronic device automatically adjusting the brightness according to the detection ambient light intensity.

[0085] Optionally, in this embodiment, the calibration relationship library includes a grayscale calibration relationship library and a color calibration relationship library, and the step of determining a target light leakage compensation value corresponding to color information according to the preset calibration relationship library includes:

[0086] Detect whether all color channel values ​​included in the color information are less than or equal to or greater than or equal to a preset grayscale detection value;

[0087] If not, determining a target light leakage compensation value corresponding to the color information in a color calibration relationship library;

[0088] If so, a target light leakage compensation value corresponding to the color information is determined in the grayscale calibration relationship library.

[0089] In this embodiment, the calibration relationship library includes a grayscale calibration relationship library and a color calibration relationship library, and the grayscale calibration relationship library and the color calibration relationship library correspond to different color information respectively. When determining the target light leakage compensation value corresponding to the color information, it is necessary to first determine whether the values ​​of each color channel of the color information meet the preset grayscale detection value. If so, it is considered that the target light leakage compensation value corresponding to the color information is close to the target light leakage compensation value corresponding to the equivalent grayscale value. For the convenience of calculation, the target light leakage compensation value corresponding to the equivalent grayscale value can be set to the target light leakage compensation value corresponding to the color information. The determination of the equivalent grayscale value can use the color psychology formula: grayscale value = R*0.299+G*0.587+B*0.114, where R, G, and B are the values ​​corresponding to the R, G, and B color channels (red, green, and blue color channels) of the color information, respectively.

[0090] In this embodiment, the preset grayscale detection value can be determined by those skilled in the art through experiments. When the RGB value corresponding to the color information is greater than or equal to or less than or equal to the grayscale detection value at the same time, the target light leakage compensation value corresponding to the RGB value is close to the target light leakage compensation value corresponding to the equivalent grayscale value calculated using the color psychology formula. For example: the preset grayscale detection value is 128, the RGB value corresponding to the color information of the display area is (100, 120, 90), and the values ​​of the R, G, and B color channels are all less than or equal to 128. When the target light leakage compensation value corresponding to the RGB value is determined in the grayscale calibration relationship library, the grayscale value corresponding to the RGB value is calculated as Y=100*0.299+120*0.587+90*0.114=110.6≈111, then the equivalent grayscale value corresponding to the RGB value is (111, 111, 111), and the target light leakage compensation value corresponding to the equivalent grayscale value is found in the grayscale calibration relationship library, which is the target light leakage compensation value corresponding to the color information.

[0091] In this embodiment, when determining the target light leakage compensation value corresponding to the color information, it is first determined whether the color information meets the preset grayscale detection value. If so, the target light leakage compensation value corresponding to the color information is determined in the grayscale calibration relationship library. If not, the target light leakage compensation value corresponding to the color information is determined in the color calibration relationship library. This can improve efficiency and quickly determine the target light leakage compensation value corresponding to the color information.

[0092] Optionally, in this embodiment, in the color calibration relationship library, the step of determining the target light leakage compensation value corresponding to the color information includes:

[0093] In a color calibration relationship library, a target sub-color space corresponding to the color information is determined; wherein the color calibration relationship library includes a light leakage compensation value corresponding to each target sub-color space;

[0094] The light leakage compensation value corresponding to the target sub-color space is set to the target light leakage compensation value corresponding to the color information;

[0095] In the grayscale calibration relationship library, the step of determining the target light leakage compensation value corresponding to the color information includes:

[0096] In the grayscale calibration relationship library, a target grayscale level corresponding to the color information is determined; wherein the grayscale calibration relationship library includes a light leakage compensation value corresponding to each target grayscale level;

[0097] The light leakage compensation value corresponding to the target grayscale level is set as the target light leakage compensation value corresponding to the color information.

[0098] Among them, in the color calibration relationship library, when determining the target light leakage compensation value corresponding to the color information, it is necessary to first determine the target sub-color space corresponding to the color information, and in the color calibration relationship library, determine the light leakage compensation value corresponding to the target sub-color space, that is, the target light leakage compensation value corresponding to the color information.

[0099] Correspondingly, in this embodiment, when determining the target light leakage compensation value corresponding to the color information in the grayscale calibration relationship library, it is necessary to first determine the target grayscale level corresponding to the color information, and then determine the light leakage compensation value corresponding to the target grayscale level in the grayscale calibration relationship library, which is the target light leakage compensation value corresponding to the color information.

[0100] In this embodiment, when determining the target grayscale level corresponding to the color information, it is necessary to first calculate the corresponding equivalent grayscale value based on the color information using the color psychology formula described in the previous embodiment. The calculation method is the same as that in the previous embodiment and will not be repeated here. After obtaining the equivalent grayscale value corresponding to the color information, the target grayscale level corresponding to the equivalent grayscale value is determined, and the light leakage compensation value corresponding to the target grayscale level in the grayscale calibration relationship library is set as the target light leakage compensation value corresponding to the color information.

[0101] In this embodiment, the color information is judged using a preset grayscale detection value to determine the target light leakage compensation value corresponding to the color information in the grayscale calibration relationship library or the color calibration relationship library, which can improve the efficiency of determining the target light leakage compensation value corresponding to the color information.

[0102] Optionally, in this embodiment, before determining the target light leakage compensation value corresponding to the color information in the color calibration relationship library, the method further includes:

[0103] According to a preset threshold, the preset RGB color space is divided into multiple sub-color spaces;

[0104] For each sub-color space, in a dark environment, the display brightness of the display screen is controlled to be the maximum display brightness, and the color of the display screen is the sub-color space, the light leakage brightness of the display screen is detected, and the light leakage compensation value of the display screen in the sub-color space is obtained;

[0105] An association relationship between each sub-color space and the corresponding light leakage compensation value is established, and a color calibration relationship library is obtained according to the association relationship.

[0106] In this embodiment, the preset RGB color space represents: in a Cartesian coordinate system, a color space is established with R, G, B color channels (red, green, blue color channels) as axes, and each gray level of R, G, B is set to 256, so the color space is a 256*256*256 color space, and all red, green, and blue components can be combined to represent tens of millions of colors. If each color needs to calculate its corresponding light leakage compensation value, the amount of calculation is very large. Therefore, in this embodiment, when establishing a color calibration relationship library, in order to reduce the amount of calculation, the RGB color space is divided into multiple sub-color spaces according to a preset threshold value, and the light leakage compensation value of each sub-color space is calculated.

[0107] In this embodiment, when determining the light leakage brightness corresponding to each sub-color space, for each sub-color space, the display screen is placed in a dark environment, the display brightness of the display screen is adjusted to the maximum display brightness, and the display color of the display screen is the sub-color space. At this time, the light leakage brightness detected by the detection device is the light leakage compensation value corresponding to the characteristic value. Among them, the display color of the display screen is the RGB value corresponding to the characteristic value of the sub-color space, and the characteristic value is a value that can represent each sub-color space, such as the mean, mode, median, etc. of each RGB value in each sub-color space, which is not specifically limited in this embodiment. After determining the light leakage compensation value corresponding to the RGB value of each characteristic value, the association relationship between each sub-color space and the corresponding light leakage compensation value is determined, and a color calibration relationship library can be constructed based on the association relationship. For example, the preset threshold is 32*32*32, and after dividing the 256*256*256 space, 512 sub-color spaces can be obtained, and the light leakage brightness corresponding to the RGB value of the center point of each sub-color space is used as the target light leakage compensation value corresponding to each sub-color space.

[0108] In this embodiment, the RGB color space is divided according to a preset threshold to obtain multiple sub-color spaces. The light leakage brightness corresponding to the characteristic value of each sub-color space is used to characterize the light leakage compensation value corresponding to each sub-color space, which can be easily calculated and quickly build a color calibration relationship library.

[0109] Optionally, in this embodiment, before determining the target light leakage compensation value corresponding to the color information in the grayscale calibration relationship library, the method further includes:

[0110] For each preset grayscale level, in a dark environment, the display brightness of the display screen is controlled to be the maximum display brightness, and the color of the display screen is the grayscale level, the light leakage brightness of the display screen is detected, and the light leakage compensation value of the display screen at the grayscale level is obtained;

[0111] An association relationship between each grayscale level and the corresponding light leakage compensation value is established, and a grayscale calibration relationship library is obtained based on the association relationship.

[0112] Among them, when the values ​​of the three color channels R, G, and B are all equal, gray is displayed. When the values ​​of the three color channels are different, the grayscale levels are different. In this embodiment, the values ​​of the R, G, and B color channels are all 0-255, so there are 256 preset grayscale levels. The display screen is placed in a dark environment, the display brightness of the display screen is adjusted to the maximum display brightness, and the colors of 256 grayscale levels are displayed respectively. The light leakage brightness corresponding to the 256 grayscale levels can be detected, and the light leakage compensation value corresponding to each grayscale level can be obtained. The correlation relationship between the grayscale level and the light leakage compensation value is established. According to the correlation relationship, a grayscale calibration relationship library can be constructed.

[0113] In this embodiment, for ease of operation, a standard calibration relationship library is constructed based on the display screen of the tested electronic device. Since the light leakage of the display screens of different electronic devices is different, it is necessary to determine the screen compensation coefficients between different electronic devices.

[0114] Optionally, in this embodiment, the step of determining the compensated brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient includes:

[0115] Get the maximum light leakage value and the preset standard light leakage value of the display screen;

[0116] A screen compensation coefficient is obtained according to a ratio of a maximum light leakage value of the display screen to a preset standard light leakage value;

[0117] The compensated brightness is determined according to the target light leakage compensation value, the brightness compensation coefficient and the screen compensation coefficient.

[0118] Among them, since the transmittance of the display screens of different electronic devices is different, even if the same picture and brightness are displayed, the light leakage brightness of the display screen is different. If a corresponding calibration relationship library is established for each electronic device, the workload is huge. Therefore, in this embodiment, in order to simplify the calculation, a standard calibration relationship library is constructed based on the display screen of the test electronic device. When other electronic devices use this standard calibration relationship library to correct the ambient light intensity, calibration is performed according to the screen compensation coefficient between the display screens of different electronic devices.

[0119] Based on this, this embodiment calculates the ratio of the maximum light leakage value of the current display screen to the preset standard light leakage value to obtain the screen compensation coefficient, so as to calibrate the transmittance difference between the display screens of different electronic devices. Among them, the preset standard light leakage value represents the maximum light leakage value of the display screen of the tested electronic device. In this embodiment, the maximum light leakage value is the brightness of each light leakage detected by the detection device when the display screen is placed in a dark environment, the display brightness of the display screen is adjusted to the maximum brightness, and the display colors are pure white, pure red, pure green, and pure blue respectively.

[0120] Optionally, in this embodiment, the step of obtaining the screen compensation coefficient according to the ratio of the maximum light leakage value of the display screen to the preset standard light leakage value includes:

[0121] According to the maximum light leakage value of the display screen and the preset standard light leakage value, the light leakage brightness ratios when the display colors of the display screen are pure white, pure red, pure green, and pure blue are determined respectively;

[0122] The screen compensation coefficient is determined based on the color information and the light leakage brightness ratio corresponding to each display color.

[0123] Among them, when different display screens display the same color, the light leakage brightness will be different due to the difference in display screens. Therefore, in order to more accurately calibrate the differences between different devices, in this embodiment, in the grayscale calibration relationship library, when determining the target light leakage compensation value corresponding to the color information, it is only necessary to consider the light leakage brightness ratio corresponding to the pure white display color. The light leakage brightness ratio corresponding to the pure white display color is the screen compensation coefficient. In the color calibration relationship library, when determining the target light leakage compensation value corresponding to the color information, it is necessary to determine the weight of the brightness ratio of each display color according to the color information of the display screen, and then weight it to obtain the screen compensation coefficient. In this embodiment, the weight of the brightness ratio of each display color is not limited. In actual applications, the weight is determined by the R, G, and B color channel values ​​corresponding to the color information. For example: the calibration relationship library corresponding to the RGB value of the color information of the display area is the color calibration relationship library, the calculated light leakage brightness ratio corresponding to the pure red display color is r, the light leakage brightness ratio corresponding to the pure green display color is g, and the light leakage brightness ratio corresponding to the pure blue display color is b. The weights obtained according to the RGB values ​​corresponding to the color information of the display area are 0.5, 0.3, and 0.2, respectively. Then the screen compensation coefficient P = 0.5r + 0.3g + 0.2b.

[0124] After determining the screen compensation coefficient of the electronic device being calibrated, the compensation brightness of the display area can be determined according to the target light leakage compensation value, the brightness compensation coefficient and the screen compensation coefficient. For example, if the screen compensation coefficient is C2, the target light leakage compensation value is L1, and the brightness compensation coefficient is C1 = current display brightness / maximum display brightness, then the compensation brightness LC = L1*C1*C2.

[0125] In this embodiment, the screen compensation coefficient is obtained through the maximum light leakage value of the display screen and the preset standard light leakage value, and the target light leakage compensation value is calibrated. Taking into account the influence of the transmittance between different display screens, the detection environment light intensity detected by the detection device can be calibrated more accurately.

[0126] Optionally, in this embodiment, the step of determining the compensated brightness according to the target light leakage compensation value, the brightness compensation coefficient and the screen compensation coefficient includes:

[0127] Obtaining transparency information of a display area corresponding to the detection device;

[0128] Determine a transparency compensation coefficient according to the transparency information and a preset corresponding relationship;

[0129] The compensated brightness is determined according to the target light leakage compensation value, the brightness compensation coefficient, the screen compensation coefficient and the transparency compensation coefficient.

[0130] Among them, since the transparency of the display area will affect the light leakage of the screen, in this embodiment, when calibrating the detection environment light intensity of the detection device, the transparency of the display area is also considered. In this embodiment, when obtaining the transparency information corresponding to the detection device, the alpha value of each pixel in the display area is read, and the mean, mode, median, etc. of the alpha value of each pixel are calculated to characterize the transparency information of the entire display area. In this embodiment, the alpha channel is 8 bits, with 256 levels of translucency, and the alpha value is 0-255. The larger the value of the alpha channel, the lower the brightness.

[0131] In this embodiment, the effect of transparency information on light leakage is approximately equal to the gamma coefficient, so the preset corresponding relationship in this embodiment is [(255-current alpha value) / 255]^2.2.

[0132] In this embodiment, when the calibration relationship library corresponding to the test electronic device is used to calibrate the detection environment light intensity of other electronic devices, the compensation brightness is obtained according to the target light leakage compensation value, the brightness compensation coefficient, the screen compensation coefficient and the transparency compensation coefficient, and the detection environment light intensity detected by the detection device is calibrated using the compensation brightness, so that the detection environment light intensity detected by the detection device can be calibrated more accurately. For example: the transparency calibration coefficient is C3, the screen compensation coefficient is C2, the target light leakage compensation value is L1, and the brightness compensation coefficient is C1 = current display brightness / maximum display brightness, then the compensation brightness LC = L1*C1*C2*C3.

[0133] It can be understood that when the calibration relationship library corresponds to the calibrated electronic device one by one, the screen calibration coefficient is not required, and the compensated brightness is obtained directly according to the light leakage compensation value, the brightness compensation coefficient and the transparency compensation coefficient. For example: the transparency calibration coefficient is C3, the target light leakage compensation value is L1, and the brightness compensation coefficient is C1 = current display brightness / maximum display brightness, then the compensated brightness LC = L1*C1*C3.

[0134] The ambient light intensity calibration method provided by the embodiment of the present invention, after obtaining the detection ambient light intensity detected by the detection device set in the display screen, and the display brightness and color information of the display area corresponding to the detection device, determines the target light leakage compensation value corresponding to the color information according to the preset calibration relationship library, obtains the brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen, and then determines the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrates the detection ambient light intensity according to the compensation brightness. In this way, the compensation brightness is obtained according to the color information and display brightness of the display area corresponding to the detection device, and the detection ambient light intensity detected by the detection device is calibrated, thereby improving the accuracy of the detection ambient light intensity detected by the detection device.

[0135] Based on the same invention concept, please refer to Figure 3 This embodiment also provides an ambient light intensity calibration device 10, which is used Figure 1 The electronic equipment shown, such as Figure 3 As shown, the ambient light intensity calibration device provided in this embodiment includes:

[0136] An acquisition module 11 is used to acquire the detection environment light intensity detected by the detection device arranged in the display screen, and the display brightness and color information of the display area corresponding to the detection device;

[0137] A search module 12 is used to determine a target light leakage compensation value corresponding to the color information according to a preset calibration relationship library; wherein the calibration relationship library includes the color information and the target light leakage compensation value corresponding to the color information;

[0138] A first calculation module 13, used to obtain a brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen;

[0139] The second calculation module 14 is used to determine the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrate the detection environment light intensity according to the compensation brightness.

[0140] In an optional implementation, the search module 12 is further configured to:

[0141] Detect whether all color channel values ​​included in the color information are less than or equal to or greater than or equal to a preset grayscale detection value;

[0142] If not, determining a target light leakage compensation value corresponding to the color information in a color calibration relationship library;

[0143] If so, a target light leakage compensation value corresponding to the color information is determined in the grayscale calibration relationship library.

[0144] In an optional implementation, the search module 12 is further configured to:

[0145] In a color calibration relationship library, a target sub-color space corresponding to the color information is determined; wherein the color calibration relationship library includes a light leakage compensation value corresponding to each target sub-color space;

[0146] The light leakage compensation value corresponding to the target sub-color space is set to the target light leakage compensation value corresponding to the color information;

[0147] In the grayscale calibration relationship library, a target grayscale level corresponding to the color information is determined; wherein the grayscale calibration relationship library includes a light leakage compensation value corresponding to each target grayscale level;

[0148] The light leakage compensation value corresponding to the target grayscale level is set as the target light leakage compensation value corresponding to the color information.

[0149] In an optional implementation, the search module 12 is further configured to:

[0150] According to a preset threshold, the preset RGB color space is divided into multiple sub-color spaces;

[0151] For each sub-color space, in a dark environment, the display brightness of the display screen is controlled to be the maximum display brightness, and the color of the display screen is the sub-color space, the light leakage brightness of the display screen is detected, and the light leakage compensation value of the display screen in the sub-color space is obtained;

[0152] An association relationship between each sub-color space and the corresponding light leakage compensation value is established, and a color calibration relationship library is obtained according to the association relationship.

[0153] In an optional implementation, the search module 12 is further configured to:

[0154] For each preset grayscale level, in a dark environment, the display brightness of the display screen is controlled to be the maximum display brightness, and the color of the display screen is the grayscale level, the light leakage brightness of the display screen is detected, and the light leakage compensation value of the display screen at the grayscale level is obtained;

[0155] An association relationship between each grayscale level and the corresponding light leakage compensation value is established, and a grayscale calibration relationship library is obtained based on the association relationship.

[0156] In an optional implementation manner, the second calculation module 14 is further used for:

[0157] Get the maximum light leakage value and the preset standard light leakage value of the display screen;

[0158] A screen compensation coefficient is obtained according to a ratio of a maximum light leakage value of the display screen to a preset standard light leakage value;

[0159] The compensated brightness is determined according to the target light leakage compensation value, the brightness compensation coefficient and the screen compensation coefficient.

[0160] In an optional implementation manner, the second calculation module 14 is further used for:

[0161] Obtaining transparency information of a display area corresponding to the detection device;

[0162] Determine a transparency compensation coefficient according to the transparency information and a preset corresponding relationship;

[0163] The compensated brightness is determined according to the target light leakage compensation value, the brightness compensation coefficient, the screen compensation coefficient and the transparency compensation coefficient.

[0164] The ambient light intensity calibration device provided by the embodiment of the present invention, after obtaining the detection ambient light intensity detected by the detection device set in the display screen, and the display brightness and color information of the display area corresponding to the detection device, determines the target light leakage compensation value corresponding to the color information according to the preset calibration relationship library, obtains the brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen, and then determines the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrates the detection ambient light intensity according to the compensation brightness. In this way, the compensation brightness is obtained according to the color information and display brightness of the display area corresponding to the detection device, and the detection ambient light intensity detected by the detection device is calibrated, thereby improving the accuracy of the detection ambient light intensity detected by the detection device.

[0165] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the ambient light intensity calibration device 10 described above can refer to the corresponding process in the aforementioned method, and will not be described in detail here.

[0166] Based on the above, this embodiment provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the ambient light intensity calibration method of any of the aforementioned embodiments is implemented.

[0167] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the readable storage medium described above can refer to the corresponding process in the aforementioned method, and will not be described in detail here.

[0168] In summary, the ambient light intensity calibration method, device, electronic device and storage medium provided in the embodiments of the present invention, after obtaining the detection ambient light intensity detected by the detection device set in the display screen, and the display brightness and color information of the display area corresponding to the detection device, determine the target light leakage compensation value corresponding to the color information according to the preset calibration relationship library, obtain the brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen, and then determine the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrate the detection ambient light intensity according to the compensation brightness. In this way, the compensation brightness is obtained according to the color information and display brightness of the display area corresponding to the detection device, and the detection ambient light intensity detected by the detection device is calibrated, thereby improving the accuracy of the detection ambient light intensity detected by the detection device.

[0169] The above are only various embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for calibrating ambient light intensity, characterized in that: The method comprises: Acquire the detection environment light intensity detected by the detection device arranged in the display screen, and the display brightness and color information of the display area corresponding to the detection device; Determine and obtain a target light leakage compensation value corresponding to the color information according to a preset calibration relationship library; wherein the calibration relationship library includes the color information and the target light leakage compensation value corresponding to the color information; Obtaining a brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen; Determine the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrate the detection environment light intensity according to the compensation brightness; The step of determining the compensated brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient comprises: Obtaining a maximum light leakage value and a preset standard light leakage value of the display screen; Obtaining a screen compensation coefficient according to a ratio of a maximum light leakage value of the display screen to a preset standard light leakage value; The compensated brightness is determined according to the target light leakage compensation value, the brightness compensation coefficient and the screen compensation coefficient.

2. The ambient light intensity calibration method according to claim 1, characterized in that: The calibration relationship library includes a grayscale calibration relationship library and a color calibration relationship library. The step of determining a target light leakage compensation value corresponding to the color information according to the preset calibration relationship library includes: Detecting whether all color channel values ​​included in the color information are less than or equal to or greater than or equal to a preset grayscale detection value; If not, determining the target light leakage compensation value corresponding to the color information in the color calibration relationship library; If so, the target light leakage compensation value corresponding to the color information is determined in the grayscale calibration relationship library.

3. The ambient light intensity calibration method according to claim 2, characterized in that: The step of determining the target light leakage compensation value corresponding to the color information in the color calibration relationship library comprises: In the color calibration relationship library, a target sub-color space corresponding to the color information is determined; wherein the color calibration relationship library includes a light leakage compensation value corresponding to each target sub-color space; Setting the light leakage compensation value corresponding to the target sub-color space to the target light leakage compensation value corresponding to the color information; The step of determining the target light leakage compensation value corresponding to the color information in the grayscale calibration relationship library comprises: In the grayscale calibration relationship library, a target grayscale level corresponding to the color information is determined; wherein the grayscale calibration relationship library includes a light leakage compensation value corresponding to each target grayscale level; The light leakage compensation value corresponding to the target grayscale level is set as the target light leakage compensation value corresponding to the color information.

4. The ambient light intensity calibration method according to claim 2, characterized in that: Before determining the target light leakage compensation value corresponding to the color information in the color calibration relationship library, the method further includes: According to a preset threshold, the preset RGB color space is divided into multiple sub-color spaces; For each sub-color space, in a dark environment, the display brightness of the display screen is controlled to be the maximum display brightness, and the color of the display screen is the sub-color space, the light leakage brightness of the display screen is detected, and the light leakage compensation value of the display screen in the sub-color space is obtained; An association relationship between each of the sub-color spaces and the corresponding light leakage compensation value is established, and the color calibration relationship library is obtained according to the association relationship.

5. The ambient light intensity calibration method according to claim 2, characterized in that: Before determining the target light leakage compensation value corresponding to the color information in the grayscale calibration relationship library, the method further includes: For each preset grayscale level, in a dark environment, the display brightness of the display screen is controlled to be the maximum display brightness, and the color of the display screen is the grayscale level, the light leakage brightness of the display screen is detected, and the light leakage compensation value of the display screen at the grayscale level is obtained; An association relationship between each of the grayscale levels and the corresponding light leakage compensation value is established, and the grayscale calibration relationship library is obtained according to the association relationship.

6. The ambient light intensity calibration method according to claim 1, characterized in that: The step of determining the compensated brightness according to the target light leakage compensation value, the brightness compensation coefficient and the screen compensation coefficient comprises: Obtaining transparency information of a display area corresponding to the detection device; Determining a transparency compensation coefficient according to the transparency information and a preset corresponding relationship; The compensated brightness is determined according to the target light leakage compensation value, the brightness compensation coefficient, the screen compensation coefficient, and the transparency compensation coefficient.

7. An ambient light intensity calibration device, characterized in that: include: An acquisition module, used to acquire the detection environment light intensity detected by a detection device arranged in the display screen, and the display brightness and color information of the display area corresponding to the detection device; A search module, used to determine and obtain a target light leakage compensation value corresponding to the color information according to a preset calibration relationship library; wherein the calibration relationship library includes the color information and the target light leakage compensation value corresponding to the color information; A first calculation module, used for obtaining a brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen; A second calculation module is used to determine the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrate the detection environment light intensity according to the compensation brightness; The step of determining the compensated brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient comprises: Obtaining a maximum light leakage value and a preset standard light leakage value of the display screen; Obtaining a screen compensation coefficient according to a ratio of a maximum light leakage value of the display screen to a preset standard light leakage value; The compensated brightness is determined according to the target light leakage compensation value, the brightness compensation coefficient and the screen compensation coefficient.

8. An electronic device, characterized in that: The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the ambient light intensity calibration method according to any one of claims 1 to 6 is implemented.

9. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the ambient light intensity calibration method according to any one of claims 1 to 6 is implemented.