CN114441033A - Ambient light intensity calibration method and device, electronic equipment and storage medium - Google Patents

Ambient light intensity calibration method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114441033A
CN114441033A CN202210089928.6A CN202210089928A CN114441033A CN 114441033 A CN114441033 A CN 114441033A CN 202210089928 A CN202210089928 A CN 202210089928A CN 114441033 A CN114441033 A CN 114441033A
Authority
CN
China
Prior art keywords
brightness
light leakage
display
color
compensation value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210089928.6A
Other languages
Chinese (zh)
Inventor
蔡乐晟
梁斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Communication Technology Chengdu Ltd
Original Assignee
TCL Communication Technology Chengdu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Communication Technology Chengdu Ltd filed Critical TCL Communication Technology Chengdu Ltd
Priority to CN202210089928.6A priority Critical patent/CN114441033A/en
Publication of CN114441033A publication Critical patent/CN114441033A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/4204Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/44Electric circuits
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J3/00Spectrometry; Spectrophotometry; Monochromators; Measuring colours
    • G01J3/46Measurement of colour; Colour measuring devices, e.g. colorimeters
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/44Electric circuits
    • G01J2001/444Compensating; Calibrating, e.g. dark current, temperature drift, noise reduction or baseline correction; Adjusting

Landscapes

  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Sustainable Development (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention provides an ambient light intensity calibration method, an ambient light intensity calibration device, electronic equipment and a storage medium, and relates to the technical field of display. After the detection environment light intensity detected by the detection device arranged in the display screen, and the display brightness and the color information of the display area corresponding to the detection device are obtained, the target light leakage compensation value corresponding to the color information is determined according to the preset calibration relation library, the brightness compensation coefficient is obtained according to the display brightness and the maximum display brightness of the display screen, 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. Therefore, the compensation brightness is obtained according to the color information and the display brightness of the display area corresponding to the detection device, the detection environment light intensity detected by the detection device is calibrated, and the accuracy of the detection environment light intensity detected by the detection device is improved.

Description

Ambient light intensity calibration method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of display, in particular to an environmental light intensity calibration method and device, electronic equipment and a storage medium.
Background
Electronic equipment such as cell-phone, panel computer is provided with the function of automatically regulated display brightness in order to improve user experience, in the use, can adjust display brightness according to ambient light intensity. However, with the progress of technology, electronic devices are continuously pursuing an extremely comprehensive screen visual effect, and the installation space of each device inside the display screen is continuously extruded while the screen occupation ratio is continuously improved. For the detection device for detecting the light intensity of the environment, the distance between the detection device and the display screen is closer and closer, and when the light intensity of the environment is detected, the light leakage of the backlight of the display screen is doped into the light intensity of the actual environment, so that the detection device cannot accurately detect the light intensity of the actual environment of the current environment.
Disclosure of Invention
Based on the above research, embodiments of the present invention provide an ambient light intensity calibration method, an ambient light intensity calibration device, an electronic apparatus, and a storage medium, which can calibrate the detected 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 detected ambient light intensity detected by the detection device.
In a first aspect, an embodiment of the present invention provides an ambient light intensity calibration method, where the method includes:
acquiring the light intensity of a detection environment detected by a detection device arranged in a display screen, and the display brightness and color information of a display area corresponding to the detection device;
determining to obtain a target light leakage compensation value corresponding to the color information according to a preset calibration relation library; the calibration relation library comprises the color information and a 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;
and determining to obtain the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrating the light intensity of the detection environment according to the compensation brightness.
In an optional embodiment, the calibration relation library includes a gray calibration relation library and a color calibration relation library, and the step of determining, according to a preset calibration relation library, a target light leakage compensation value corresponding to the color information 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 gray detection value;
if not, determining the target light leakage compensation value corresponding to the color information in the color calibration relation library;
and if so, determining the target light leakage compensation value corresponding to the color information in the gray scale calibration relation library.
In an alternative embodiment, the step of determining the target light leakage compensation value corresponding to the color information in the color calibration relation library includes:
determining a target sub-color space corresponding to the color information in the color calibration relation library; wherein the color calibration relation library includes a light leakage compensation value corresponding to each target sub-color space;
setting a light leakage compensation value corresponding to the target sub-color space as a target light leakage compensation value corresponding to the color information;
the determining, in the gray calibration relation library, the target light leakage compensation value corresponding to the color information includes:
determining a target gray scale corresponding to the color information in the gray calibration relation library; wherein the gray scale calibration relation library includes a light leakage compensation value corresponding to each target gray scale level;
and setting the light leakage compensation value corresponding to the target gray scale as a target light leakage compensation value corresponding to the color information.
In an alternative embodiment, before determining the target light leakage compensation value corresponding to the color information in the color calibration relation library, the method further includes:
dividing a preset RGB color space into a plurality of sub-color spaces according to a preset threshold value;
for each sub-color space, in a dark environment, controlling the display brightness of the display screen to be the maximum display brightness, and the color of the display screen to be the sub-color space, and detecting the light leakage brightness of the display screen to obtain the light leakage compensation value of the display screen in the sub-color space;
and establishing an incidence relation between each sub-color space and the corresponding light leakage compensation value, and obtaining the color calibration relation library according to the incidence relation.
In an optional embodiment, before determining the target light leakage compensation value corresponding to the color information in the gray scale calibration relation library, the method further comprises:
aiming at each preset gray level, in a dark environment, controlling the display brightness of the display screen to be the maximum display brightness, and the color of the display screen to be the gray level, and detecting the light leakage brightness of the display screen to obtain the light leakage compensation value of the display screen at the gray level;
and establishing an incidence relation between each gray scale and the corresponding light leakage compensation value, and obtaining the gray scale calibration relation library according to the incidence relation.
In an alternative embodiment, the step of determining to obtain the compensated luminance of the display region according to the target light leakage compensation value and the luminance compensation coefficient includes:
acquiring a maximum light leakage value and a preset standard light leakage value of the display screen;
obtaining a screen compensation coefficient according to the ratio of the maximum light leakage value of the display screen to a preset standard light leakage value;
and determining to obtain the compensation brightness according to the target light leakage compensation value, the brightness compensation coefficient and the screen compensation coefficient.
In an alternative embodiment, the step of determining to obtain the compensated luminance according to the target light leakage compensation value, the luminance compensation coefficient, and the screen compensation coefficient includes:
acquiring transparency information of a display area corresponding to the detection device;
determining to obtain a transparency compensation coefficient according to the transparency information and a preset corresponding relation;
and determining to obtain the compensation brightness according to the target light leakage compensation value, the brightness compensation coefficient, the screen compensation coefficient and the transparency compensation coefficient.
In a second aspect, an embodiment of the present invention provides an ambient light intensity calibration apparatus, including:
the device comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring the detection environment light intensity detected by a detection device arranged in a display screen, and the display brightness and color information of a display area corresponding to the detection device;
the searching module is used for determining and obtaining a target light leakage compensation value corresponding to the color information according to a preset calibration relation library; the calibration relation library comprises the color information and a target light leakage compensation value corresponding to the color information;
the first calculation module is used for obtaining a brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen;
and the second calculation module is used for determining and obtaining the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrating the light intensity of the detection environment according to the compensation brightness.
In a third aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the ambient light intensity calibration method according to any one of the foregoing embodiments when executing the computer program.
In a fourth aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the ambient light intensity calibration method according to any one of the foregoing embodiments.
After obtaining the detected ambient light intensity detected by the detection device disposed in the display screen, and the display brightness and the color information of the display area corresponding to the detection device, the method and the device for calibrating the ambient light intensity, the electronic device and the storage medium provided by the embodiments of the present invention determine to obtain the target light leakage compensation value corresponding to the color information according to the preset calibration relation library, obtain the brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen, determine to obtain the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrate the detected ambient light intensity according to the compensation brightness. Therefore, the compensation brightness is obtained according to the color information and the display brightness of the display area corresponding to the detection device, the detection environment light intensity detected by the detection device is calibrated, and the accuracy of the detection environment light intensity detected by the detection device is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Fig. 2 is a schematic flowchart of an ambient light intensity calibration method according to an embodiment of the present invention.
Fig. 3 is a block diagram of an ambient light intensity calibration apparatus according to an embodiment of the present invention.
Icon: 100-an electronic device; 10-ambient light intensity calibration means; 11-an acquisition module; 12-a lookup module; 13-a first calculation module; 14-a second calculation module; 20-a memory; 30-a processor; 40-a communication unit; 50-display unit.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present disclosure, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the invention. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known structures and processes are not shown in detail to avoid obscuring the description of the invention with unnecessary detail. Thus, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
With the development of the technology, electronic equipment such as mobile phones and tablet computers has the function of automatically adjusting display brightness and can be adjusted according to the ambient light intensity. However, with the development of the full-screen technology, the installation space of each device inside the mobile phone is smaller and is closer to the screen, the detection device for detecting the light intensity of the environment is closer and closer to the screen, and when the screen displays, the backlight light leakage can be doped into the light intensity of the actual environment, which affects the accuracy of the light intensity of the environment detected by the detection device.
Based on the above problems, according to the ambient light intensity calibration method, the ambient light intensity calibration device, the electronic device, and the storage medium provided in the embodiments of the present invention, after obtaining the detected ambient light intensity detected by the detection device disposed in the display screen, and the display brightness and the color information of the display area corresponding to the detection device, a target light leakage compensation value corresponding to the color information is determined according to a preset calibration relation library, a brightness compensation coefficient is obtained according to the display brightness and the maximum display brightness of the display screen, then the compensation brightness of the display area is determined according to the target light leakage compensation value and the brightness compensation coefficient, and the detected ambient light intensity is calibrated according to the compensation brightness. Therefore, the compensation brightness is obtained according to the color information and the display brightness of the display area corresponding to the detection device, the detection environment light intensity detected by the detection device is calibrated, and the accuracy of the detection environment light intensity detected by the detection device is improved.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device provided in the present embodiment. As shown in fig. 1, the electronic device 100 comprises an ambient light intensity calibration apparatus 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 realize the transmission or interaction of signals. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
In this embodiment, the ambient light intensity calibration device 10 comprises at least one software functional module which can be stored in the memory 20 in the form of software or firmware. The processor 30 is used to execute executable modules (e.g. software functional modules or computer programs comprised by the ambient light intensity calibration device 10) stored in the memory 20. When the electronic device 100 is running, the processor 30 communicates with the memory 20 via the bus, and the processor 30 executes the executable module or the computer program to implement the ambient light intensity calibration method described in this embodiment.
The Memory 20 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 30 is configured to perform one or more of the functions described in the present embodiment. In some embodiments, processor 30 may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). Merely by way of example, 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 (Reduced Instruction Set computer, RISC), a microprocessor, or the like, or any combination thereof.
For ease of illustration, only one processor is depicted in electronic device 100. However, it should be noted that the electronic device 100 in this embodiment may also include multiple processors, and thus steps performed by one processor described in this embodiment may also be performed by multiple processors in combination or individually. For example, if the processors of the electronic device perform step a and step B, it should be understood that step a and step B may also be performed by two different processors together or separately 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.
In this embodiment, the method defined by the process disclosed in any of the embodiments can be applied to the processor 30, or implemented by the processor 30.
The communication unit 40 is used to establish a communication connection between the electronic apparatus 100 and another apparatus via a network, and to transmit and receive data via the network.
In some embodiments, the network may be any type of wired or wireless network, or combination thereof. Merely by way of example, 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, a Near Field Communication (NFC) Network, or the like, or any combination thereof.
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. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which 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 sent to the processor 30 for calculation and processing.
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, and the input and output unit is configured to provide data input to the user to enable the interaction between the user and the electronic device 100. The input/output unit may be, but is not limited to, a mouse, a keyboard, and the like.
In some embodiments, the electronic device 100 may include 1 or N display units 50, N being a positive integer greater than 1.
In this embodiment, the electronic device may be a device having a display screen and a detection device for detecting the light intensity of the environment, such as a mobile phone, a tablet computer, and the like, and the specific type thereof is not limited in any way.
It will be appreciated that the configuration shown in figure 1 is merely illustrative. Electronic device 100 may also have more or fewer components than shown in FIG. 1, or a different configuration than shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Based on the implementation architecture of fig. 1, the present embodiment provides an ambient light intensity calibration method, which is executed by the electronic device of fig. 1, and the following describes in detail the ambient light intensity calibration method provided by the present embodiment based on the structure diagram of the electronic device 100 provided by fig. 1. Referring to fig. 2, the method for calibrating the ambient light intensity provided by the present embodiment includes steps S101 to S104.
S101: and acquiring the detected ambient light intensity detected by a detection device arranged in the display screen, and the display brightness and color information of a display area corresponding to the detection device.
The ambient light intensity calibration method provided by this embodiment may be used to calibrate the ambient light intensity detected by the detection device of the electronic device, such as a mobile phone, a tablet computer, a palmtop computer, and the like. The detecting device may be a detecting device disposed inside the electronic device and may be disposed below the display screen, and the detecting device in this embodiment may be a light sensor or the like for detecting the ambient light intensity, which is not specifically limited in this embodiment.
In this embodiment, since the area where the light leakage of the display screen has the greatest influence on the detection device is the area directly above the detection device, only the display brightness and color information of the display area corresponding to the detection device in the display screen are obtained in consideration of reducing the calculation amount as much as possible. The display area is determined according to the size and the installation position of the detection device, and may be an area with a fixed size and centered on the detection device, which is not specifically limited in this embodiment. Such as: the display area may select a 200 x 200 pixel area directly above the light sensor.
The color information in this embodiment represents the displayed color of the display area corresponding to the detection device in the display screen.
Optionally, in this embodiment, the step of acquiring color information of a display area corresponding to the detection device in the display screen includes:
reading the RGB value of each pixel point in the display area;
and calculating a reference value according to the RGB value of each pixel point in the display area, wherein the reference value is the color information of the display area.
Specifically, the reference value may be an average value, a median value, a mode value, and the like of RGB values of each pixel point in the display area, as long as the reference value can represent a display color of the display area, and this embodiment is not limited.
The display brightness is the integral adjustment of the display screen, so 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.
S102: determining to obtain a target light leakage compensation value corresponding to the color information according to a preset calibration relation library; the calibration relation library comprises color information and a target light leakage compensation value corresponding to the color information.
In this embodiment, the target light leakage compensation value corresponding to the color information may be obtained from a preset calibration relation library. The calibration relation library may be stored in a memory of the electronic device and may be stored in the form of a file or the like. The calibration relation library comprises color information and a target light leakage compensation value corresponding to the color information.
In this embodiment, the target leak 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 value of RGB values of all pixel points of the display area, the average value is (100,135,232), the display screen is placed in the dark, the display content of the display screen is adjusted, the RGB values of all the pixel points of the display screen are (100,135,232), the brightness of the display screen is adjusted to be 120Lux with the maximum brightness, the light leakage brightness detected by the detection device is 10Lux, and the target light leakage compensation value corresponding to the color information is determined to be 10Lux by RGB (100,135,232) in a calibration relation library.
In this embodiment, since the display screen transmittances of different electronic devices are different, the corresponding relationship between the color information and the target light leakage compensation value in the calibration relationship library of different electronic devices is different. Before the electronic equipment leaves a factory, the display screen of each electronic equipment is tested respectively to determine the corresponding calibration relation library, and the corresponding calibration relation library is stored in the memory of the electronic equipment for subsequent use. It can be understood that, for simplicity and convenience of operation, a standard calibration relation library can be constructed based on the display screen of the electronic device to be tested, and when other electronic devices use the standard calibration relation library to calibrate the light intensity of the detection environment of the detection device, the difference of the display screens of different devices is considered, and the calibration is performed.
S103: obtaining a brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen;
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 leak light compensation value corresponds to the leak light luminance when the display luminance of the display panel is the maximum display luminance, but the current display luminance of the display panel is not necessarily the maximum display luminance, and therefore, it is necessary to perform calibration based on the current display luminance and the maximum display luminance of the display panel. When calculating the brightness compensation coefficient, the ratio of the current display brightness to the maximum display brightness may be directly obtained, or the influence of the change of the display brightness on the light leakage brightness may be calculated in advance to determine the brightness compensation coefficient.
In this embodiment, for simple and convenient 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.
S104: and determining to obtain the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrating the light intensity of the detection environment according to the compensation brightness.
In this embodiment, after the target light leakage compensation value and the luminance compensation coefficient are obtained, the current display luminance of the display screen and the compensation luminance corresponding to the color information, that is, the luminance doped into the actual ambient light intensity, can be determined. Therefore, the detected ambient light intensity detected by the detecting device needs to be subtracted by the compensation brightness, and is the actual ambient light intensity. For example: the detected ambient light intensity is L, and the target light leakage compensation value is L1The brightness compensation coefficient is C1When the current display brightness/the maximum display brightness is equal to the maximum display brightness, the obtained compensation brightness is determined to be LC=L1*C1Then the actual ambient light intensity LF=L-LC
In this embodiment, a preset calibration relation library is used to determine a target light leak compensation value corresponding to color information of a display area, and then the target light leak compensation value is calibrated according to current display brightness to obtain current display brightness of the display area and compensation brightness corresponding to the color information, that is, light leak brightness doped in actual ambient light intensity is obtained, and therefore detected ambient light intensity detected by a detection device can be calibrated, and accuracy of automatic brightness adjustment of electronic equipment according to the detected ambient light intensity is ensured.
Optionally, in this embodiment, the calibration relation library includes a gray calibration relation library and a color calibration relation library, and the step of determining to obtain the target light leakage compensation value corresponding to the color information according to a preset calibration relation 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 gray detection value;
if not, determining a target light leakage compensation value corresponding to the color information in a color calibration relation library;
and if so, determining a target light leakage compensation value corresponding to the color information in the gray scale calibration relation library.
In this embodiment, the calibration relation library includes a gray calibration relation library and a color calibration relation library, and the gray calibration relation library and the color calibration relation library respectively correspond to different color information. When determining the target light leakage compensation value corresponding to the color information, it is necessary to first determine whether each color channel value of the color information conforms to a preset gray level detection value, and if so, it is determined that the target light leakage compensation value corresponding to the color information is similar to the target light leakage compensation value corresponding to the equivalent gray level value. Wherein, the determination of the equivalent gray value can utilize a color psychology formula: the gray-level value R0.299 + G0.587 + B0.114, where R, G, B are values corresponding to R, G, B color channels (red, green, and blue color channels) of the color information.
In this embodiment, the preset gray detection value may be determined by a person skilled in the art through experiments, when the RGB values corresponding to the color information are simultaneously greater than or equal to or less than the gray detection value; the target light leakage compensation value corresponding to the RGB value is closer to the target light leakage compensation value corresponding to the equivalent gray value calculated by using the color psychology formula. For example: the preset gray scale detection value is 128, the RGB values corresponding to the color information of the display region are (100,120,90), the values of R, G, 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 gray scale calibration relation library, the gray scale value Y corresponding to the RGB value is calculated to be 100 ═ 0.299+120 × 0.587+90 ≈ 0.114 ≈ 110.6 ≈ 111, the equivalent gray scale value corresponding to the RGB value is (111 ), and the target light leakage compensation value corresponding to the equivalent gray scale value is searched in the gray scale calibration relation library to be the target light leakage compensation value corresponding to the color information.
In this embodiment, when determining the target light leakage compensation value corresponding to the color information, it is first determined whether the color information conforms to a preset gray level detection value, if so, the target light leakage compensation value corresponding to the color information is determined in the gray level calibration relation library, and if not, the target light leakage compensation value corresponding to the color information is determined in the color calibration relation library, so that efficiency can be improved, and the target light leakage compensation value corresponding to the color information can be quickly determined.
Optionally, in this embodiment, in the color calibration relation library, the step of determining the target light leakage compensation value corresponding to the color information includes:
determining a target sub-color space corresponding to the color information in a color calibration relation library; wherein the color calibration relation library includes a light leakage compensation value corresponding to each target sub-color space;
setting a light leakage compensation value corresponding to the target sub-color space as a target light leakage compensation value corresponding to the color information;
the determining of the target light leakage compensation value corresponding to the color information in the gamma calibration relation library includes:
determining a target gray level corresponding to the color information in a gray calibration relation library; wherein the gray calibration relation library comprises a light leakage compensation value corresponding to each target gray level;
the light leakage compensation value corresponding to the target gray level is set as a target light leakage compensation value corresponding to the color information.
When determining the color information to determine the corresponding target light leakage compensation value in the color calibration relation library, a target sub-color space corresponding to the color information needs to be determined first, and the light leakage compensation value corresponding to the target sub-color space is determined in the color calibration relation library, namely the target light leakage compensation value corresponding to the color information.
Accordingly, in this embodiment, when determining the target light leakage compensation value corresponding to the color information in the gray calibration relation library, the target gray scale corresponding to the color information needs to be determined first, and the light leakage compensation value corresponding to the target gray scale is determined in the gray calibration relation library, that is, the target light leakage compensation value corresponding to the color information.
In this embodiment, when determining the target gray scale corresponding to the color information, the equivalent gray scale corresponding to the color information needs to be calculated according to the color information by using the color psychology formula described in the foregoing embodiment. And after obtaining the equivalent gray value corresponding to the color information, determining a target gray level corresponding to the equivalent gray value, and setting the light leakage compensation value corresponding to the target gray level in the gray calibration relation library as the target light leakage compensation value corresponding to the color information.
In this embodiment, the preset gray detection value is used to determine the color information to determine the target light leakage compensation value corresponding to the color information in the gray calibration relation library or the color calibration relation library, so that the efficiency of determining the target light leakage compensation value corresponding to the color information can be improved.
Optionally, in this embodiment, before determining the target light leakage compensation value corresponding to the color information in the color calibration relation library, the method further includes:
dividing a preset RGB color space into a plurality of sub-color spaces according to a preset threshold value;
for each sub-color space, in a dark environment, controlling the display brightness of the display screen to be the maximum display brightness, and the color of the display screen to be the sub-color space, and detecting the light leakage brightness of the display screen to obtain the light leakage compensation value of the display screen in the sub-color space;
and establishing an incidence relation between each sub-color space and the corresponding light leakage compensation value, and obtaining a color calibration relation library according to the incidence relation.
In this embodiment, the preset RGB color space represents: in a cartesian coordinate system, R, G, B is defined as 256 for each gray scale in a color space created with R, G, B color channels (red, green, and blue color channels) as axes, so that the color space is a 256 × 256 color space, and the red, green, and blue components are all combined to represent tens of millions of colors, and if each color needs to calculate its corresponding light leakage compensation value, the calculation amount is very large. Therefore, in this embodiment, when the color calibration relation library is established, in order to reduce the calculation amount, the RGB color space is divided into a plurality of sub-color spaces according to a preset threshold, and the light leakage compensation value of each sub-color space is calculated.
In this embodiment, when the light leakage brightness corresponding to each sub-color space is determined, the display screen is placed in a dark environment for each sub-color space, the display brightness of the display screen is adjusted to be 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. The display color of the display screen is an RGB value corresponding to the feature value of the sub-color space, and the feature value is a value that can represent each sub-color space, such as a mean value, a mode value, a median value, and the like of each RGB value in each sub-color space. After the light leakage compensation value corresponding to the RGB value of each characteristic value is determined, the incidence relation between each sub-color space and the corresponding light leakage compensation value is determined, and a color calibration relation library can be constructed according to the incidence relation. Such as: the preset threshold is 32 × 32, and after the space of 256 × 256 is divided, 512 sub-color spaces can be obtained, and the light leakage luminance corresponding to the RGB value at the center point of each sub-color space is used as the target light leakage compensation value corresponding to each sub-color space.
In this embodiment, the RGB color space is divided according to the preset threshold to obtain a plurality of sub-color spaces, and the light leakage compensation values corresponding to the sub-color spaces are represented by the light leakage luminance corresponding to the characteristic value of each sub-color space, so that the calculation can be simple and convenient, and the color calibration relation library can be quickly constructed.
Optionally, in this embodiment, before determining the target light leakage compensation value corresponding to the color information in the gray calibration relation library, the method further includes:
aiming at each preset gray level, in a dark environment, controlling the display brightness of the display screen to be the maximum display brightness, and the color of the display screen to be the gray level, and detecting the light leakage brightness of the display screen to obtain the light leakage compensation value of the display screen at the gray level;
and establishing an incidence relation between each gray level and the corresponding light leakage compensation value, and obtaining a gray calibration relation library according to the incidence relation.
When R, G, B three color channel values are equal, gray is displayed, and the gray levels are different when the three color channel values are different. In this embodiment, the values of the R, G, B color channels are all 0 to 255, 256 preset gray scales are provided, the display screen is placed in a dark environment, the display brightness of the display screen is adjusted to the maximum display brightness, the colors of the 256 gray scales are respectively displayed, that is, the light leakage brightness corresponding to the 256 gray scales can be detected, the light leakage compensation value corresponding to each gray scale is obtained, the association relationship between the gray scale and the light leakage compensation value is established, and the gray calibration relation library can be established according to the association relationship.
In this embodiment, for simplicity and convenience in operation, when a standard calibration relation library is constructed based on a display screen of a test electronic device, screen compensation coefficients between different electronic devices need to be determined because light leakage of display screens of different electronic devices is different.
Optionally, in this embodiment, the step of determining to obtain the compensated luminance of the display region according to the target light leakage compensation value and the luminance compensation coefficient includes:
acquiring a maximum light leakage value and a preset standard light leakage value of a display screen;
obtaining a screen compensation coefficient according to the ratio of the maximum light leakage value of the display screen to a preset standard light leakage value;
and determining to obtain the compensation brightness according to the target light leakage compensation value, the brightness compensation coefficient and the screen compensation coefficient.
Since the transmittance of the display panels of different electronic devices is different, the light leakage luminance of the display panels is different even if the same screen and luminance are displayed. If the corresponding calibration relation libraries are respectively established according to each electronic device, the workload is huge, and therefore, in this embodiment, for simple calculation, a standard calibration relation library is established with reference to the display screen of the test electronic device. When other electronic equipment utilizes the standard calibration relation library to carry out the ambient light intensity correction, the calibration is carried out according to the screen compensation coefficients between the display screens of different electronic equipment.
Based on this, the present embodiment obtains the screen compensation coefficient by calculating the ratio of the maximum light leakage value of the current display screen to the preset standard light leakage value, so as to calibrate the transmittance difference between the display screens of different electronic devices. In this embodiment, the maximum light leakage value is each light leakage brightness 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.
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:
respectively determining the light leakage brightness ratio when the display color of the display screen is pure white, pure red, pure green and pure blue according to the maximum light leakage value of the display screen and a preset standard light leakage value;
and determining to obtain a screen compensation coefficient according to the color information and the light leakage brightness ratio corresponding to each display color.
When different display screens display the same color, the light leakage brightness is different due to the difference of the display screens. Therefore, in order to calibrate the difference between different devices more accurately, in this embodiment, when determining the target light leakage compensation value corresponding to the color information in the gray scale calibration relation library, only the light leakage luminance ratio corresponding to the pure white display color needs to be considered, and the light leakage luminance ratio corresponding to the pure white display color is the screen compensation coefficient. In the color calibration relation library, when a target light leakage compensation value corresponding to color information is determined, the weight of the brightness ratio of each display color needs to be determined according to the color information of the display screen, and then the weight is weighted to obtain a screen compensation coefficient. For example: the calibration relation library corresponding to the RGB values of the color information of the display area is a color calibration relation library, the calculated light leakage luminance ratio corresponding to the pure red display color is r, the light leakage luminance ratio corresponding to the pure green display color is g, the light leakage luminance 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, and then the screen compensation coefficient P is 0.5r +0.3g +0.2 b.
After the screen compensation coefficient of the calibrated electronic equipment is determined, the compensation brightness of the display area can be determined and obtained according to the target light leakage compensation value, the brightness compensation coefficient and the screen compensation coefficient. For example: screen compensation coefficient of C2Target light leakage compensation value of L1The brightness compensation coefficient is C1When the current display brightness/the maximum display brightness is equal to L, the compensation brightness LC is equal to L1*C1*C2
In this embodiment, through the maximum light leakage value and the predetermined standard light leakage value of display screen, obtain the screen compensation coefficient, calibrate target light leakage compensation value, considered the influence of the transmissivity between the different display screens, the detection environment light intensity that calibration detection device that can be more accurate detected.
Optionally, in this embodiment, the step of determining to obtain the compensated luminance according to the target light leakage compensation value, the luminance compensation coefficient, and the screen compensation coefficient includes:
acquiring transparency information of a display area corresponding to the detection device;
determining to obtain a transparency compensation coefficient according to the transparency information and a preset corresponding relation;
and determining to obtain the compensation brightness according to the target light leakage compensation value, the brightness compensation coefficient, the screen compensation coefficient and the transparency compensation coefficient.
In this embodiment, the transparency of the display region is also considered when calibrating the light intensity of the detection environment of the detection device, since the transparency of the display region affects the light leakage of the screen. In this embodiment, when the transparency information corresponding to the detection device is obtained, the alpha values of the pixel points in the display area are read, and the mean value, the mode value, the median value, and the like of the alpha values of the pixel points are calculated, so as to represent the transparency information of the entire display area. In this embodiment, the alpha channel is 8 bits and has 256 levels of translucency, the value of alpha is 0-255, and the larger the value of alpha channel is, the lower the brightness is.
In the present embodiment, the influence of the transparency information on the light leakage is approximately equal to the gamma coefficient, and the preset corresponding relationship in the present embodiment is [ (255-current alpha value)/255 ] ^ 2.2.
In this embodiment, when the calibration relation library corresponding to the test electronic device is used to calibrate the light intensity of the detection environment of the other electronic device, 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 light intensity of the detection environment detected by the detection device is calibrated by using the compensation brightness, so that the light intensity of the detection environment detected by the detection device can be calibrated more accurately. For example: a transparency calibration factor of C3The screen compensation coefficient is C2Target light leakage compensation value of L1The brightness compensation coefficient is C1When the current display brightness/the maximum display brightness is equal to L, the compensation brightness LC is equal to L1*C1*C2*C3
It can be understood that, when the calibration relation library corresponds to the calibrated electronic device, the compensated luminance is obtained directly according to the light leakage compensation value, the luminance compensation coefficient and the transparency compensation coefficient without the need of a screen calibration coefficient. For example: transparency calibration factor C3Target light leakage compensation value of L1The brightness compensation coefficient is C1When the current display brightness/the maximum display brightness is equal to L, the compensation brightness LC is equal to L1*C1*C3
According to the ambient light intensity calibration method provided by the embodiment of the invention, after the detected ambient light intensity detected by the detection device arranged in the display screen and the display brightness and the color information of the display area corresponding to the detection device are obtained, the target light leakage compensation value corresponding to the color information is determined and obtained according to the preset calibration relation library, the brightness compensation coefficient is obtained according to the display brightness and the maximum display brightness of the display screen, the compensation brightness of the display area is determined and obtained according to the target light leakage compensation value and the brightness compensation coefficient, and the detected ambient light intensity is calibrated according to the compensation brightness. Therefore, the compensation brightness is obtained according to the color information and the display brightness of the display area corresponding to the detection device, the detection environment light intensity detected by the detection device is calibrated, and the accuracy of the detection environment light intensity detected by the detection device is improved.
Based on the same inventive concept, please refer to fig. 3, the present embodiment further provides an ambient light intensity calibration apparatus 10, which is applied to the electronic device shown in fig. 1, as shown in fig. 3, the ambient light intensity calibration apparatus provided in the present embodiment includes:
the acquisition module 11 is configured to acquire the detected ambient light intensity detected by the detection device disposed in the display screen, and the display brightness and color information of the display area corresponding to the detection device;
the searching module 12 is configured to determine to obtain a target light leakage compensation value corresponding to the color information according to a preset calibration relation library; the calibration relation library comprises color information and a target light leakage compensation value corresponding to the color information;
the first calculation module 13 is configured to obtain a brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen;
and the second calculating module 14 is configured to determine to obtain compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrate the light intensity of the detection environment according to the compensation brightness.
In an alternative embodiment, the lookup module 12 is further configured to:
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 gray detection value;
if not, determining a target light leakage compensation value corresponding to the color information in a color calibration relation library;
and if so, determining a target light leakage compensation value corresponding to the color information in a gray scale calibration relation library.
In an alternative embodiment, the lookup module 12 is further configured to:
determining a target sub-color space corresponding to the color information in a color calibration relation library; wherein the color calibration relation library includes a light leakage compensation value corresponding to each target sub-color space;
setting a light leakage compensation value corresponding to the target sub-color space as a target light leakage compensation value corresponding to the color information;
determining a target gray level corresponding to the color information in a gray calibration relation library; wherein the gray calibration relation library comprises a light leakage compensation value corresponding to each target gray level;
the light leakage compensation value corresponding to the target gray level is set as a target light leakage compensation value corresponding to the color information.
In an alternative embodiment, the lookup module 12 is further configured to:
dividing a preset RGB color space into a plurality of sub-color spaces according to a preset threshold value;
for each sub-color space, in a dark environment, controlling the display brightness of the display screen to be the maximum display brightness, and the color of the display screen to be the sub-color space, and detecting the light leakage brightness of the display screen to obtain the light leakage compensation value of the display screen in the sub-color space;
and establishing an incidence relation between each sub-color space and the corresponding light leakage compensation value, and obtaining a color calibration relation library according to the incidence relation.
In an alternative embodiment, the lookup module 12 is further configured to:
aiming at each preset gray level, in a dark environment, controlling the display brightness of the display screen to be the maximum display brightness, and the color of the display screen to be the gray level, and detecting the light leakage brightness of the display screen to obtain the light leakage compensation value of the display screen at the gray level;
and establishing an incidence relation between each gray level and the corresponding light leakage compensation value, and obtaining a gray calibration relation library according to the incidence relation.
In an alternative embodiment, the second calculation module 14 is further configured to:
acquiring a maximum light leakage value and a preset standard light leakage value of a display screen;
obtaining a screen compensation coefficient according to the ratio of the maximum light leakage value of the display screen to a preset standard light leakage value;
and determining to obtain the compensation brightness according to the target light leakage compensation value, the brightness compensation coefficient and the screen compensation coefficient.
In an alternative embodiment, the second computing module 14 is further configured to:
acquiring transparency information of a display area corresponding to the detection device;
determining to obtain a transparency compensation coefficient according to the transparency information and a preset corresponding relation;
and determining to obtain the compensation brightness according to the target light leakage compensation value, the brightness compensation coefficient, the screen compensation coefficient and the transparency compensation coefficient.
The ambient light intensity calibration device provided by the embodiment of the invention determines to obtain a target light leakage compensation value corresponding to color information according to a preset calibration relation library after acquiring the detected ambient light intensity detected by the detection device arranged in the display screen and the display brightness and the color information of the display area corresponding to the detection device, obtains a brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen, determines to obtain the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrates the detected ambient light intensity according to the compensation brightness. Therefore, the compensation brightness is obtained according to the color information and the display brightness of the display area corresponding to the detection device, the detection environment light intensity detected by the detection device is calibrated, and the accuracy of the detection environment light intensity detected by the detection device is improved.
It is clear to those skilled in the art that, for the convenience and simplicity of description, the above-described specific operation process of the ambient light intensity calibration apparatus 10 may refer to the corresponding process in the foregoing method, and will not be described in too much detail herein.
On the basis of the above, the present embodiment provides a readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the ambient light intensity calibration method according to any of the foregoing embodiments.
As will be clear to those skilled in the art, for convenience and brevity of description, the specific working process of the readable storage medium described above may refer to the corresponding process in the foregoing method, and will not be described in detail herein.
In summary, according to the method, the apparatus, the electronic device, and the storage medium for calibrating the ambient light intensity provided in the embodiments of the present invention, after obtaining the detected ambient light intensity detected by the detection apparatus disposed in the display screen, and the display brightness and the color information of the display area corresponding to the detection apparatus, a target light leakage compensation value corresponding to the color information is determined according to a preset calibration relation library, a brightness compensation coefficient is obtained according to the display brightness and the maximum display brightness of the display screen, a compensation brightness of the display area is determined according to the target light leakage compensation value and the brightness compensation coefficient, and the detected ambient light intensity is calibrated according to the compensation brightness. Therefore, the compensation brightness is obtained according to the color information and the display brightness of the display area corresponding to the detection device, the detection environment light intensity detected by the detection device is calibrated, and the accuracy of the detection environment light intensity detected by the detection device is improved.
The above description is only for various embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present invention, and all such changes or substitutions are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method of ambient light intensity calibration, the method comprising:
acquiring the light intensity of a detection environment detected by a detection device arranged in a display screen, and the display brightness and color information of a display area corresponding to the detection device;
determining to obtain a target light leakage compensation value corresponding to the color information according to a preset calibration relation library; the calibration relation library comprises the color information and a 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;
and determining to obtain the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrating the light intensity of the detection environment according to the compensation brightness.
2. The method of claim 1, wherein the calibration relation library comprises a gray calibration relation library and a color calibration relation library, and the step of determining the target light leakage compensation value corresponding to the color information according to a preset calibration relation library comprises:
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 gray detection value;
if not, determining the target light leakage compensation value corresponding to the color information in the color calibration relation library;
and if so, determining the target light leakage compensation value corresponding to the color information in the gray scale calibration relation library.
3. The method of claim 2, wherein the step of determining the target leak-light compensation value corresponding to the color information in the color calibration relation library comprises:
determining a target sub-color space corresponding to the color information in the color calibration relation library; wherein the color calibration relation library includes a light leakage compensation value corresponding to each target sub-color space;
setting a light leakage compensation value corresponding to the target sub-color space as a target light leakage compensation value corresponding to the color information;
the determining, in the gray calibration relation library, the target light leakage compensation value corresponding to the color information includes:
determining a target gray scale corresponding to the color information in the gray calibration relation library; wherein the gray scale calibration relation library includes a light leakage compensation value corresponding to each target gray scale level;
and setting the light leakage compensation value corresponding to the target gray scale as a target light leakage compensation value corresponding to the color information.
4. The method of claim 2, wherein before determining the target leak-light compensation value corresponding to the color information in the color calibration relation library, the method further comprises:
dividing a preset RGB color space into a plurality of sub-color spaces according to a preset threshold value;
for each sub-color space, in a dark environment, controlling the display brightness of the display screen to be the maximum display brightness, and the color of the display screen to be the sub-color space, and detecting the light leakage brightness of the display screen to obtain the light leakage compensation value of the display screen in the sub-color space;
and establishing an incidence relation between each sub-color space and the corresponding light leakage compensation value, and obtaining the color calibration relation library according to the incidence relation.
5. The method of claim 2, wherein before determining the target leak-light compensation value corresponding to the color information in the gray scale calibration relationship library, the method further comprises:
aiming at each preset gray level, in a dark environment, controlling the display brightness of the display screen to be the maximum display brightness, and the color of the display screen to be the gray level, and detecting the light leakage brightness of the display screen to obtain the light leakage compensation value of the display screen at the gray level;
and establishing an incidence relation between each gray scale and the corresponding light leakage compensation value, and obtaining the gray scale calibration relation library according to the incidence relation.
6. The method of claim 1, wherein the step of determining the compensated luminance of the display region according to the target leakage light compensation value and the luminance compensation coefficient comprises:
acquiring a maximum light leakage value and a preset standard light leakage value of the display screen;
obtaining a screen compensation coefficient according to the ratio of the maximum light leakage value of the display screen to a preset standard light leakage value;
and determining to obtain the compensation brightness according to the target light leakage compensation value, the brightness compensation coefficient and the screen compensation coefficient.
7. The method of claim 6, wherein the step of determining the compensated luminance according to the target light leakage compensation value, the luminance compensation coefficient and the screen compensation coefficient comprises:
acquiring transparency information of a display area corresponding to the detection device;
determining to obtain a transparency compensation coefficient according to the transparency information and a preset corresponding relation;
and determining to obtain the compensation brightness according to the target light leakage compensation value, the brightness compensation coefficient, the screen compensation coefficient and the transparency compensation coefficient.
8. An ambient light intensity calibration device, comprising:
the device comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring the detection environment light intensity detected by a detection device arranged in a display screen, and the display brightness and color information of a display area corresponding to the detection device;
the searching module is used for determining and obtaining a target light leakage compensation value corresponding to the color information according to a preset calibration relation library; the calibration relation library comprises the color information and a target light leakage compensation value corresponding to the color information;
the first calculation module is used for obtaining a brightness compensation coefficient according to the display brightness and the maximum display brightness of the display screen;
and the second calculation module is used for determining and obtaining the compensation brightness of the display area according to the target light leakage compensation value and the brightness compensation coefficient, and calibrating the light intensity of the detection environment according to the compensation brightness.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the ambient light intensity calibration method of any one of claims 1 to 7 when executing the computer program.
10. A storage medium having stored thereon a computer program which, when executed by a processor, implements the ambient light intensity calibration method of any one of claims 1 to 7.
CN202210089928.6A 2022-01-25 2022-01-25 Ambient light intensity calibration method and device, electronic equipment and storage medium Pending CN114441033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210089928.6A CN114441033A (en) 2022-01-25 2022-01-25 Ambient light intensity calibration method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210089928.6A CN114441033A (en) 2022-01-25 2022-01-25 Ambient light intensity calibration method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114441033A true CN114441033A (en) 2022-05-06

Family

ID=81369209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210089928.6A Pending CN114441033A (en) 2022-01-25 2022-01-25 Ambient light intensity calibration method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114441033A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115657992A (en) * 2022-10-10 2023-01-31 荣耀终端有限公司 Screen display method, device, equipment and storage medium

Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030020725A1 (en) * 2001-07-26 2003-01-30 Seiko Epson Corporation Environment-compliant image display system, projector, and program
US20030147053A1 (en) * 2001-05-31 2003-08-07 Hideki Matsuda Image display system, projector, information storage medium, and image processing method
US20030179211A1 (en) * 2002-03-25 2003-09-25 Seiko Epson Corporation Image display system, projector, image processing method, program and information storage medium
US20110175925A1 (en) * 2010-01-20 2011-07-21 Kane Paul J Adapting display color for low luminance conditions
EP2403223A1 (en) * 2010-06-30 2012-01-04 Research In Motion Limited Adaptation of display illumination depending on ambient light
US20140375669A1 (en) * 2013-06-19 2014-12-25 Lenovo (Beijing) Limited Information processing methods and electronic devices
WO2016150112A1 (en) * 2015-03-23 2016-09-29 中兴通讯股份有限公司 Method and apparatus for adjusting brightness of display screen
KR20160125272A (en) * 2015-04-21 2016-10-31 삼성전자주식회사 Display apparatus and control method thereof
US20170256235A1 (en) * 2015-08-17 2017-09-07 Huizhou Tcl Mobile Communication Co., Ltd. Color display method and system for mobile terminal
CN107945769A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN108716950A (en) * 2018-05-16 2018-10-30 北京小米移动软件有限公司 Environmental light brightness acquisition methods and device
CN108917921A (en) * 2018-06-15 2018-11-30 江西合力泰科技有限公司 A kind of ambient light intensity detection method
CN109817152A (en) * 2019-04-09 2019-05-28 Oppo广东移动通信有限公司 Screen luminance adjustment method and Related product
US20190355316A1 (en) * 2018-05-18 2019-11-21 Beijing Boe Optoelectronics Technology Co., Ltd. Display control method and apparatus of backlight sources, and display device
CN110535997A (en) * 2019-08-12 2019-12-03 上海创功通讯技术有限公司 A kind of calibration method, device, equipment and the storage medium of terminal screen light leakage
CN111179861A (en) * 2019-12-11 2020-05-19 Tcl移动通信科技(宁波)有限公司 Brightness calibration method and device, storage medium and terminal
CN111613176A (en) * 2020-05-18 2020-09-01 维沃移动通信有限公司 Ambient light detection method and electronic device
CN112289280A (en) * 2020-11-18 2021-01-29 深圳市锐尔觅移动通信有限公司 Screen brightness adjusting method and device, computer readable medium and electronic equipment
CN112599088A (en) * 2020-12-02 2021-04-02 深圳市汇顶科技股份有限公司 Screen light leakage and ambient light detection method, chip, terminal and storage medium
CN112781832A (en) * 2021-01-26 2021-05-11 北京小米移动软件有限公司 Method, apparatus, device and medium for determining ambient light for terminal device
CN113168038A (en) * 2019-03-28 2021-07-23 华为技术有限公司 Method and device for displaying image
US20210327393A1 (en) * 2018-10-08 2021-10-21 Google Llc Systems and methods for adjusting light emitted from a display
CN113763856A (en) * 2021-07-19 2021-12-07 荣耀终端有限公司 Method and device for determining ambient illumination intensity and storage medium
CN113838436A (en) * 2021-09-27 2021-12-24 惠州Tcl移动通信有限公司 Color temperature adjusting method and device, storage medium and electronic equipment

Patent Citations (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030147053A1 (en) * 2001-05-31 2003-08-07 Hideki Matsuda Image display system, projector, information storage medium, and image processing method
US20030020725A1 (en) * 2001-07-26 2003-01-30 Seiko Epson Corporation Environment-compliant image display system, projector, and program
US20030179211A1 (en) * 2002-03-25 2003-09-25 Seiko Epson Corporation Image display system, projector, image processing method, program and information storage medium
US20110175925A1 (en) * 2010-01-20 2011-07-21 Kane Paul J Adapting display color for low luminance conditions
EP2403223A1 (en) * 2010-06-30 2012-01-04 Research In Motion Limited Adaptation of display illumination depending on ambient light
US20140375669A1 (en) * 2013-06-19 2014-12-25 Lenovo (Beijing) Limited Information processing methods and electronic devices
WO2016150112A1 (en) * 2015-03-23 2016-09-29 中兴通讯股份有限公司 Method and apparatus for adjusting brightness of display screen
KR20160125272A (en) * 2015-04-21 2016-10-31 삼성전자주식회사 Display apparatus and control method thereof
US20170256235A1 (en) * 2015-08-17 2017-09-07 Huizhou Tcl Mobile Communication Co., Ltd. Color display method and system for mobile terminal
CN107945769A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN108716950A (en) * 2018-05-16 2018-10-30 北京小米移动软件有限公司 Environmental light brightness acquisition methods and device
US20190353520A1 (en) * 2018-05-16 2019-11-21 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for acquiring ambient light brightness
US20190355316A1 (en) * 2018-05-18 2019-11-21 Beijing Boe Optoelectronics Technology Co., Ltd. Display control method and apparatus of backlight sources, and display device
CN108917921A (en) * 2018-06-15 2018-11-30 江西合力泰科技有限公司 A kind of ambient light intensity detection method
US20210327393A1 (en) * 2018-10-08 2021-10-21 Google Llc Systems and methods for adjusting light emitted from a display
CN113168038A (en) * 2019-03-28 2021-07-23 华为技术有限公司 Method and device for displaying image
CN109817152A (en) * 2019-04-09 2019-05-28 Oppo广东移动通信有限公司 Screen luminance adjustment method and Related product
CN110535997A (en) * 2019-08-12 2019-12-03 上海创功通讯技术有限公司 A kind of calibration method, device, equipment and the storage medium of terminal screen light leakage
CN111179861A (en) * 2019-12-11 2020-05-19 Tcl移动通信科技(宁波)有限公司 Brightness calibration method and device, storage medium and terminal
CN111613176A (en) * 2020-05-18 2020-09-01 维沃移动通信有限公司 Ambient light detection method and electronic device
CN112289280A (en) * 2020-11-18 2021-01-29 深圳市锐尔觅移动通信有限公司 Screen brightness adjusting method and device, computer readable medium and electronic equipment
CN112599088A (en) * 2020-12-02 2021-04-02 深圳市汇顶科技股份有限公司 Screen light leakage and ambient light detection method, chip, terminal and storage medium
CN112781832A (en) * 2021-01-26 2021-05-11 北京小米移动软件有限公司 Method, apparatus, device and medium for determining ambient light for terminal device
CN113763856A (en) * 2021-07-19 2021-12-07 荣耀终端有限公司 Method and device for determining ambient illumination intensity and storage medium
CN113838436A (en) * 2021-09-27 2021-12-24 惠州Tcl移动通信有限公司 Color temperature adjusting method and device, storage medium and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
FORCHHAMMER, S等: "VIEWPOINT ADAPTIVE DISPLAY OF HDR IMAGES", 《24TH IEEE INTERNATIONAL CONFERENCE ON IMAGE PROCESSING (ICIP) 20172017 24TH IEEE INTERNATIONAL CONFERENCE ON IMAGE PROCESSING》, 31 December 2017 (2017-12-31), pages 1177 - 1181 *
俞昭华;谢憬;: "LED大屏幕显示补偿技术", 现代显示, no. 08, 15 August 2008 (2008-08-15), pages 48 - 53 *
胡子昂等: "随机振动环境下加固液晶显示器光线透过率变化研究", 《电光与控制》, vol. 27, no. 06, 31 December 2020 (2020-12-31), pages 100 - 104 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115657992A (en) * 2022-10-10 2023-01-31 荣耀终端有限公司 Screen display method, device, equipment and storage medium
CN115657992B (en) * 2022-10-10 2024-03-19 荣耀终端有限公司 Screen display method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US10971098B2 (en) Method and device for adjusting gray scale of display panel
CN109979389B (en) Gamma correction method and device, display device, computer storage medium
US8013878B2 (en) Apparatus for automatically setting over-driving look-up table for liquid crystal display device and control method thereof
KR101323457B1 (en) Method and Apparatus for Compensating Display Defect of Flat Display
CN107808641A (en) Display device and color correcting method
EP3567572B1 (en) Screen flickering processing method, device, storage medium, and electronic device
CN110648626A (en) Method and system for correcting bright and dark lines of LED display screen and storage medium thereof
US11804163B2 (en) Display method, display device and computer storage medium
TWI413101B (en) Control method for improving the luminous uniformity and related luminosity calibrating controller and display device
CN108376532B (en) Brightness compensation method and device of display device
CN111613176B (en) Ambient light detection method and electronic device
US10453399B2 (en) Grayscale voltage adjusting apparatus and method, display driving apparatus and display apparatus
CN112017577B (en) Screen display calibration method and device
CN113495709B (en) Color correction method, AP chip, terminal and storage medium
US10819885B2 (en) Gamma value tuning method and device of display panel
CN112599089A (en) Display screen light leakage value acquisition method, electronic device and storage medium
CN114441033A (en) Ambient light intensity calibration method and device, electronic equipment and storage medium
US11056078B2 (en) Multi-screen color correction method and electronic device using the same
TW201438468A (en) Projection system, projector, and calibration method thereof
US8896624B2 (en) Image display device and image processing method
CN107705767A (en) Display device and color correcting method
TWI720813B (en) Luminance calibration system and method of mobile device display for medical images
CN112577599A (en) Calibration method and calibration device for optical sensor and display module
CN110896466B (en) White balance adjustment method and system of display device
CN112365833B (en) Method for detecting and correcting brightness adjustment value of light sensation under screen

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination