CN113038110B - White balance calibration method, device, terminal equipment and storage medium - Google Patents

White balance calibration method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN113038110B
CN113038110B CN202110266818.8A CN202110266818A CN113038110B CN 113038110 B CN113038110 B CN 113038110B CN 202110266818 A CN202110266818 A CN 202110266818A CN 113038110 B CN113038110 B CN 113038110B
Authority
CN
China
Prior art keywords
initial
color temperature
temperature value
adjusted
gain parameter
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.)
Active
Application number
CN202110266818.8A
Other languages
Chinese (zh)
Other versions
CN113038110A (en
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.)
Shenzhen Konka Electronic Technology Co Ltd
Original Assignee
Shenzhen Konka Electronic Technology Co 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 Shenzhen Konka Electronic Technology Co Ltd filed Critical Shenzhen Konka Electronic Technology Co Ltd
Priority to CN202110266818.8A priority Critical patent/CN113038110B/en
Publication of CN113038110A publication Critical patent/CN113038110A/en
Application granted granted Critical
Publication of CN113038110B publication Critical patent/CN113038110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

The invention discloses a white balance calibration method, a white balance calibration device, terminal equipment and a storage medium, wherein the method comprises the following steps: acquiring a color temperature mode, and determining an initial color temperature value corresponding to the color temperature mode according to the color temperature mode; determining a parameter to be adjusted in the initial color temperature value according to the initial color temperature value; and adjusting the initial color temperature value according to the parameter to be adjusted to realize white balance calibration. According to the invention, the white balance parameters can be automatically adjusted, so that the color temperature which does not meet the requirements of users can be corrected, and the requirements of the users can be met.

Description

White balance calibration method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of television technologies, and in particular, to a method and an apparatus for calibrating white balance, a terminal device, and a storage medium.
Background
In television products, a plurality of screen manufacturers and a plurality of batches are used for matching TV screens, the screen quality conditions are different, and the difference of screen color temperature is large. In order to ensure the consistency of the TV screens during production, white balance correction needs to be performed on each TV set in production. However, in the prior art, the white balance parameters are generally set in advance for the television, and the white balance parameters cannot be automatically adjusted, so that the requirements of the user cannot be met.
Thus, there is a need for improvements and enhancements in the art.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a white balance calibration method, device, terminal device and storage medium for solving the above-mentioned defects in the prior art, and to achieve an automatic white balance parameter adjustment function in a mass production process to ensure consistency of different screen color temperature data.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a white balance calibration method, wherein the method comprises:
acquiring a color temperature mode, and acquiring an initial color temperature value corresponding to the color temperature mode according to the color temperature mode;
determining parameters to be adjusted in the initial color temperature value according to the initial color temperature value;
and adjusting the initial color temperature value according to the parameter to be adjusted.
In one implementation manner, the acquiring a color temperature mode, and acquiring an initial color temperature value corresponding to the color temperature mode according to the color temperature mode includes:
reading a color temperature mode preset in terminal equipment, wherein the color temperature mode is any one of a standard color temperature mode, a cold color temperature mode and a warm color temperature mode;
and acquiring an initial color temperature value corresponding to the color temperature mode according to the color temperature mode, wherein the initial color temperature value comprises an initial R primary color gain parameter, an initial G primary color gain parameter and an initial B primary color gain parameter.
In one implementation manner, the determining, according to the initial color temperature value, a parameter to be adjusted in the initial color temperature value includes:
after the initial color temperature value is obtained, comparing the initial color temperature value with a preset standard color temperature value number;
and if the color temperature value does not meet the standard color temperature value, determining a parameter to be adjusted in the initial color temperature value, wherein the parameter to be adjusted is one or more of the initial R primary color gain parameter, the initial G primary color gain parameter and the initial B primary color gain parameter.
In one implementation manner, the adjusting the initial color temperature value according to the parameter to be adjusted includes:
after the parameters to be adjusted are obtained, determining initial R primary color gain parameters, initial G primary color gain parameters and initial B primary color gain parameters to be adjusted from the parameters to be adjusted;
and adjusting the initial B primary color gain parameter, the initial R primary color gain parameter and the initial G primary color gain parameter in sequence.
In one implementation, the sequentially adjusting the initial B primary gain parameter, the initial R primary gain parameter, and the initial G primary gain parameter includes:
when the initial B primary color gain parameter is adjusted, keeping the initial R primary color gain parameter and the initial G primary color gain parameter unchanged;
obtaining an adjusted first color temperature value, comparing the adjusted first color temperature value with a preset standard color temperature value, and judging whether the adjusted first color temperature value meets the standard color temperature value;
and if the adjusted first color temperature value does not meet the standard color temperature value, adjusting the initial R primary color gain parameter.
In one implementation, the sequentially adjusting the initial B primary gain parameter, the initial R primary gain parameter, and the initial G primary gain parameter includes:
when the initial R primary color gain parameter is adjusted, keeping the initial B primary color gain parameter and the initial G primary color gain parameter unchanged;
acquiring an adjusted second color temperature value, comparing the adjusted second color temperature value with a preset standard color temperature value, and judging whether the adjusted second color temperature value meets the standard color temperature value;
and if the adjusted second color temperature value does not meet the standard color temperature value, starting to adjust the gain parameter of the initial G primary color.
In one implementation, the sequentially adjusting the initial B primary gain parameter, the initial R primary gain parameter, and the initial G primary gain parameter includes:
when the initial G primary color gain parameter is adjusted, keeping the initial R primary color gain parameter and the initial B primary color gain parameter unchanged;
acquiring an adjusted third color temperature value, comparing the adjusted third color temperature value with a preset standard color temperature value, and judging whether the adjusted third color temperature value meets the standard color temperature value;
and if the third color temperature value meets the standard color temperature value, switching the color temperature mode, and switching to another color temperature mode to perform white balance adjustment again.
In a second aspect, an embodiment of the present invention further provides a white balance adjustment apparatus, where the apparatus includes:
the initial color temperature value acquisition module is used for acquiring a color temperature mode and acquiring an initial color temperature value corresponding to the color temperature mode according to the color temperature mode;
a to-be-adjusted parameter determining module, configured to determine, according to the initial color temperature value, a to-be-adjusted parameter in the initial color temperature value;
and the white balance calibration module is used for adjusting the initial color temperature value according to the parameter to be adjusted.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a white balance adjustment program that is stored in the memory and is executable on the processor, and when the processor executes the white balance adjustment program, the steps of the white balance calibration method in any one of the foregoing schemes are implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a white balance adjustment program is stored, and when the white balance adjustment program is executed by a processor, the white balance adjustment program implements the steps of the white balance calibration method according to any one of the above schemes
Has the advantages that: compared with the prior art, the invention provides a white balance calibration method, which comprises the steps of firstly obtaining a color temperature mode, and obtaining an initial color temperature value corresponding to the color temperature mode according to the color temperature mode; determining a parameter to be adjusted in the initial color temperature value according to the initial color temperature value; and adjusting the initial color temperature value according to the parameter to be adjusted to realize white balance calibration. The embodiment can realize automatic adjustment of white balance parameters so as to correct the color temperature which does not meet the requirements of users and meet the requirements of the users.
Drawings
Fig. 1 is a flowchart of a specific implementation of a white balance calibration method according to an embodiment of the present invention. Fig. 2 is a diagram illustrating a variation trend of xy when RGB gain is synchronously changed when the color temperature mode is a cold color temperature in the white balance calibration method according to the embodiment of the present invention.
Fig. 3 is a graph illustrating a variation trend of Lv when RGB gain is synchronously changed when the color temperature mode is a cold color temperature in the white balance calibration method according to the embodiment of the present invention.
FIG. 4 is a graph showing the variation trend of x and y when the color temperature mode is cold and the B-gain varies.
FIG. 5 is a graph showing the trend of change in x and y when the color temperature mode is cold, R-gain and B-gain are fixed, and G-gain is changed according to the white balance calibration method provided by the embodiment of the present invention.
FIG. 6 is a graph showing the trend of change in x and y when the color temperature mode is cold, G-gain and B-gain are fixed, and R-gain is changed according to the white balance calibration method provided by the embodiment of the present invention.
Fig. 7 is a schematic block diagram of a white balance adjustment apparatus according to an embodiment of the present invention.
Fig. 8 is a schematic block diagram of an internal structure of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the prior art, white balance parameters are generally set in advance for a television, and the white balance parameters cannot be automatically adjusted, so that the requirements of users cannot be met. Therefore, this embodiment provides a white balance calibration method, and in specific implementation, the method includes: acquiring a color temperature mode, and acquiring an initial color temperature value corresponding to the color temperature mode according to the color temperature mode; determining parameters to be adjusted in the initial color temperature value according to the initial color temperature value; and adjusting the initial color temperature value according to the parameter to be adjusted to realize white balance calibration. In the embodiment, the white balance parameters can be automatically adjusted to correct the color temperature which does not meet the requirements of the user, so that the requirements of the user are met.
Exemplary method
In this embodiment, the white balance calibration method may be applied to a terminal device, where the terminal device is a display device, that is, a terminal device with a display screen, such as a television or a computer. When the white balance calibration method is implemented, as shown in fig. 1, the method comprises the following steps:
step S100, a color temperature mode is obtained, and an initial color temperature value corresponding to the color temperature mode is obtained according to the color temperature mode.
In this embodiment, the present embodiment is mainly applied to the mass production of televisions, and a set of complete automatic white balance adjustment processes is developed to ensure the color temperature consistency of the screen of each television during the mass production, and an automatic white balance tool used by a production line end is manufactured. In this embodiment, the adjustment of the white balance parameter is performed based on the color temperature rule, so that the color temperature data needs to be collected first, and the data is analyzed to determine the color temperature change rule. Specifically, the present embodiment provides a color thermometer for multiple televisions, such as: and the CA310 is used for collecting color temperature data and analyzing the corresponding color temperature data rule. In a TV system, the value range of RGB gain is 0-2048, and data in the interval 704-1184 is firstly taken for data analysis during sampling. For example, when the color temperature mode is set to a cold color temperature, the variation trend of xy when RGB gain is varied in synchronization is as shown in fig. 2, and the variation trend of Lv when RGB gain is varied in synchronization is as shown in fig. 3. The trend of x and y is shown in FIG. 4 when R-gain and G-gain are fixed and B-gain is changed, the trend of x and y is shown in FIG. 5 when G-gain is changed and the trend of x and y is shown in FIG. 6 when R-gain is changed and G-gain and B-gain are fixed. Similarly, when the color temperature mode is adjusted to the warm color temperature or the standard color temperature, the three color temperature data basically have a similar rule. As can be seen from FIGS. 2-6, when R-gain + G-gain is fixed, if the B-gain value is gradually increased in the range of 704 to 1184, both the X value and the Y value are gradually decreased. When R-gain + B-gain is fixed, if the G-gain value is increased within the range of 704 to 736, the X value and the Y value are both reduced; if the G-gain value is increased in the range of 736 to 1184, both the X value and the Y value are increased. In the embodiment, the inflection point of the data curve occurs near 736, and is usually smaller than 736 based on the actual measurement value, and the inflection point is usually 736 to ensure the data accuracy from the inflection point to the initial point 1024. It is desirable to use 736 as an inflection point in the actual test calculation.
While G-gain + B-gain is fixed. If the R-gain value increases in the range of 704 to 736, both the X and Y values decrease. If the R-gain value increases in the range of 736 to 1184, both the X and Y values increase. It can be seen that, according to the information obtained by data acquisition, the three values of R-gain, G-gain and B-gain have approximately linear relation with XY in a specific region (704 to 736 or 736 to 1184) under the condition of fixing any two values. Based on the rule of the data analysis, the white balance calibration can be performed according to the rule.
In one implementation, the step S100 specifically includes the following steps:
step S101, reading a preset color temperature mode in terminal equipment, wherein the color temperature mode is any one of a standard color temperature mode, a cold color temperature mode and a warm color temperature mode;
step S102, obtaining an initial color temperature value corresponding to the color temperature mode according to the color temperature mode, wherein the initial color temperature value comprises an initial R primary color gain parameter, an initial G primary color gain parameter and an initial B primary color gain parameter.
In specific implementation, when performing white balance calibration, the embodiment first reads a color temperature mode preset in the terminal device, where the color temperature mode is any one of a standard color temperature mode, a cold color temperature mode, and a warm color temperature mode. For example, the color temperature mode on the television is a warm color temperature mode. After the color temperature mode is obtained, according to the color temperature mode, an initial color temperature value corresponding to the color temperature mode is obtained, where the initial color temperature value includes an initial R primary color gain parameter, an initial G primary color gain parameter, and an initial B primary color gain parameter. After the initial color temperature value is obtained, the initial color temperature value needs to be analyzed to determine that the initial color temperature value needs to be adjusted.
And S200, determining a parameter to be adjusted in the initial color temperature value according to the initial color temperature value.
In this embodiment, after the initial color temperature value is obtained, this embodiment may determine whether the initial color temperature value satisfies a user white balance standard according to the initial color temperature value, and when the initial color temperature value does not satisfy the user white balance standard, determine a parameter to be adjusted in the initial color temperature value, where the parameter to be adjusted refers to a color temperature value that needs to be adjusted in the initial color temperature value. Specifically, in this embodiment, after the initial color temperature value is obtained, the initial color temperature value is compared with a preset standard color temperature value. Because the standard color temperature value is used for measuring whether the standard color temperature value meets the user requirement, if the color temperature value does not meet the standard color temperature value, a parameter to be adjusted in the initial color temperature value is determined, which indicates that the initial color temperature value at the moment does not meet the user requirement, and the parameter to be adjusted is one or more of the initial R primary color gain parameter, the initial G primary color gain parameter and the initial B primary color gain parameter. When the parameter to be adjusted is determined, the parameter can be adjusted according to the parameter to be adjusted.
And S300, adjusting the initial color temperature value according to the parameter to be adjusted.
In this embodiment, the parameter to be adjusted may be one or more of the R primary gain parameter, the initial G primary gain parameter, and the initial B primary gain parameter. When the parameters to be adjusted are the initial R-primary gain parameter, the initial G-primary gain parameter, and the initial B-primary gain parameter, the BRG-gain value is sequentially calculated and adjusted according to the sequence of B-gain → R-gain → G-gain in this embodiment until the RGB gain value meeting the customer standard is calculated. This is because:
in the automatic white balance calibration, the G-gain value (abbreviated as G value) greatly affects the color temperature brightness value, so the G value is not adjusted as much as possible or is considered to be adjusted when the B-gain + R-gain cannot be adjusted to the proper color temperature value anyway, and therefore the adjustment of the G value is put to the end. And because the B-gain value (B value for short) can affect X + Y of the color temperature value at the same time, when the B value changes, the effect on Y is larger than the effect on X. Because the R-gain value (R value) can simultaneously affect X + Y of the color temperature value, when the R value changes, the influence on X is larger than that on Y. The change in X is significant and the change in Y is small. Based on the above comprehensive consideration, B-gain is adjusted first, and Y value is determined first. Then adjusting R-gain and fixing the value of X. If the adjustment of Bgain + Rgain value can not reach a reasonable color temperature value, the adjustment of G-gain value is considered finally. Therefore, in this embodiment, the RGB gain values are automatically adjusted according to the rule obtained by data analysis, and white balance data meeting the customer standard is calculated by an algorithm to realize automatic white balance calibration.
Specifically, after the parameters to be adjusted are obtained, determining initial R primary color gain parameters (R-gain), initial G primary color gain parameters (G-gain) and initial B primary color gain parameters (B-gain) to be adjusted from the parameters to be adjusted; this embodiment sequentially adjusts the initial B-primary gain parameter, the initial R-primary gain parameter, and the initial G-primary gain parameter. When the initial B primary color gain parameter is adjusted, keeping the initial R primary color gain parameter and the initial G primary color gain parameter unchanged; and then obtaining an adjusted first color temperature value, comparing the adjusted first color temperature value with a preset standard color temperature value, and judging whether the adjusted first color temperature value meets the standard color temperature value. And if the adjusted first color temperature value does not meet the standard color temperature value, starting to adjust the initial R primary color gain parameter. When the initial R primary color gain parameter is adjusted, keeping the initial B primary color gain parameter and the initial G primary color gain parameter unchanged; and then obtaining an adjusted second color temperature value, comparing the adjusted second color temperature value with a preset standard color temperature value, and judging whether the adjusted second color temperature value meets the standard color temperature value. And if the adjusted second color temperature value does not meet the standard color temperature value, starting to adjust the initial G primary color gain parameter. When the initial G primary color gain parameter is adjusted, keeping the initial R primary color gain parameter and the initial B primary color gain parameter unchanged; acquiring an adjusted third color temperature value, comparing the adjusted third color temperature value with a preset standard color temperature value, and judging whether the adjusted third color temperature value meets the standard color temperature value; and if the third color temperature value meets the standard color temperature value, switching the color temperature mode, and switching to another color temperature mode to perform white balance adjustment again. That is to say, in the embodiment, the initial color temperature values are adjusted according to the above adjustment modes for the color temperature modes of cold color temperature, warm color temperature and standard color temperature, and finally, the color temperature values meeting the user requirements are written into the TV.
According to the embodiment, when the production line end produces televisions in batches, production line workers can quickly detect the consistency of the color temperature of each television screen by using the automatic white balance tool, and can correct the color temperature of the televisions which do not meet the requirements of customers. Because the automatic white balance algorithm based on data analysis is based on actual data acquisition and analysis, data meeting customer standards can be calculated quickly. In actual production line test, after calculation is carried out by adopting the automatic white balance algorithm described in the text, the standard reaching time range is between 8 seconds and 20 seconds, and the production requirement of a production line can be basically met.
In summary, in the present embodiment, a color temperature mode is first obtained, and an initial color temperature value corresponding to the color temperature mode is determined according to the color temperature mode; acquiring parameters to be adjusted in the initial color temperature value according to the initial color temperature value; and adjusting the initial color temperature value according to the parameter to be adjusted to realize white balance calibration. According to the embodiment, the white balance parameters can be automatically adjusted, and when the initial color temperature value does not meet the requirements of a user, the RGB gain values are adjusted according to the data trend rule obtained by sampling analysis and the adjustment sequence of B-gain- > R-gain- > G-gain, so that white balance calibration is realized.
Exemplary devices
As shown in fig. 7, the present embodiment also provides a white balance adjustment device including: the device comprises an initial color temperature value acquisition module 10, a parameter to be adjusted determination module 20 and a white balance calibration module 30. Specifically, the initial color temperature value obtaining module 10 is configured to obtain a color temperature mode, and obtain an initial color temperature value corresponding to the color temperature mode according to the color temperature mode. The to-be-adjusted parameter determining module 20 is configured to determine, according to the initial color temperature value, a to-be-adjusted parameter in the initial color temperature value. The white balance calibration module 30 is configured to adjust the initial color temperature value according to the parameter to be adjusted, so as to implement white balance calibration.
In one implementation manner, the initial color temperature value obtaining module 10 includes:
the terminal equipment comprises a color temperature mode acquisition unit, a color temperature mode selection unit and a color temperature mode selection unit, wherein the color temperature mode acquisition unit is used for reading a preset color temperature mode in the terminal equipment, and the color temperature mode is any one of a standard color temperature mode, a cold color temperature mode and a warm color temperature mode;
and the initial color temperature value acquisition unit is used for acquiring an initial color temperature value corresponding to the color temperature mode according to the color temperature mode, wherein the initial color temperature value comprises an initial R primary color gain parameter, an initial G primary color gain parameter and an initial B primary color gain parameter.
In one implementation, the to-be-adjusted parameter determining module 20 includes:
the color temperature comparison unit is used for comparing the initial color temperature value with a preset standard color temperature value number after the initial color temperature value is obtained;
and the to-be-adjusted parameter determining unit is used for determining a to-be-adjusted parameter in the initial color temperature value if the color temperature value does not meet the standard color temperature value, wherein the to-be-adjusted parameter is one or more of the initial R primary color gain parameter, the initial G primary color gain parameter and the initial B primary color gain parameter.
In one implementation, the white balance calibration module 30 includes:
a to-be-adjusted parameter determining unit, configured to determine, after obtaining the to-be-adjusted parameter, an initial R primary color gain parameter, an initial G primary color gain parameter, and an initial B primary color gain parameter to be adjusted from the to-be-adjusted parameter;
and the parameter adjusting unit to be adjusted is used for adjusting the initial B primary color gain parameter, the initial R primary color gain parameter and the initial G primary color gain parameter in sequence.
In one implementation manner, the parameter adjustment unit to be adjusted includes:
a first conditional sub-unit, configured to keep the initial R primary gain parameter and the initial G primary gain parameter unchanged when performing the initial B primary gain parameter;
the first judgment subunit is configured to obtain an adjusted first color temperature value, compare the adjusted first color temperature value with a preset standard color temperature value, and judge whether the adjusted first color temperature value meets the standard color temperature value;
and the first adjusting subunit is configured to start to adjust the initial R primary color gain parameter if the adjusted first color temperature value does not satisfy the standard color temperature value.
In one implementation manner, the parameter adjustment unit to be adjusted includes:
a first conditional subunit, configured to, when the initial R primary gain parameter is adjusted, keep the initial B primary gain parameter and the initial G primary gain parameter unchanged;
the first judgment subunit is configured to obtain an adjusted second color temperature value, compare the adjusted second color temperature value with a preset standard color temperature value, and judge whether the adjusted second color temperature value meets the standard color temperature value;
and the first adjusting subunit is configured to start to adjust the initial G primary color gain parameter if the adjusted second color temperature value does not satisfy the standard color temperature value.
In one implementation manner, the parameter adjustment unit to be adjusted includes:
a first conditional subunit, configured to keep the initial R primary gain parameter and the initial B primary gain parameter unchanged when performing the initial G primary gain parameter;
the first judging subunit is configured to obtain an adjusted third color temperature value, compare the adjusted third color temperature value with a preset standard color temperature value, and judge whether the adjusted third color temperature value meets the standard color temperature value;
and the first judgment subunit is used for switching the color temperature mode and switching another color temperature mode to perform white balance adjustment again if the third color temperature value meets the standard color temperature value.
Based on the above embodiment, the present invention further provides a terminal device, and a schematic block diagram thereof may be as shown in fig. 8. The terminal equipment comprises a processor, a memory, a network interface/serial port communication interface, a display screen and a temperature sensor which are connected through a system bus. Wherein the processor of the terminal device is configured to provide computing and control capabilities. The memory of the terminal equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The network interface of the terminal device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a white balance calibration method. The display screen of the terminal equipment can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the terminal equipment is arranged in the terminal equipment in advance and used for detecting the operating temperature of the internal equipment.
It will be understood by those skilled in the art that the block diagram of fig. 8 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the terminal equipment to which the solution of the present invention is applied, and a specific terminal equipment may include more or less components than those shown in the figure, or may combine some components, or have different arrangements of components.
In one embodiment, a terminal device is provided, where the terminal device includes a memory, a processor, and a white balance adjustment program stored in the memory and executable on the processor, and when the processor executes the white balance adjustment program, the following operation instructions are implemented:
acquiring a color temperature mode, and acquiring an initial color temperature value corresponding to the color temperature mode according to the color temperature mode;
determining parameters to be adjusted in the initial color temperature value according to the initial color temperature value;
and adjusting the initial color temperature value according to the parameter to be adjusted so as to realize white balance calibration.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the present invention discloses a white balance calibration method, device, terminal device and storage medium, wherein the method includes: acquiring a color temperature mode, and acquiring an initial color temperature value corresponding to the color temperature mode according to the color temperature mode; determining parameters to be adjusted in the initial color temperature value according to the initial color temperature value; and adjusting the initial color temperature value according to the parameter to be adjusted to realize white balance calibration. According to the invention, the white balance parameters can be automatically adjusted, so that the color temperature which does not meet the requirements of users can be corrected, and the requirements of the users can be met.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (6)

1. A method of white balance calibration, the method comprising:
acquiring a color temperature mode, and acquiring an initial color temperature value corresponding to the color temperature mode according to the color temperature mode;
determining parameters to be adjusted in the initial color temperature value according to the initial color temperature value;
adjusting the initial color temperature value according to the parameter to be adjusted to realize white balance calibration;
the adjusting the initial color temperature value according to the parameter to be adjusted includes:
after the parameters to be adjusted are obtained, determining initial R primary color gain parameters, initial G primary color gain parameters and initial B primary color gain parameters to be adjusted from the parameters to be adjusted;
adjusting an initial B primary color gain parameter, the initial R primary color gain parameter and the initial G primary color gain parameter in sequence;
the adjusting the initial B primary color gain parameter, the initial R primary color gain parameter, and the initial G primary color gain parameter in sequence includes:
when the initial B primary color gain parameter is adjusted, keeping the initial R primary color gain parameter and the initial G primary color gain parameter unchanged;
acquiring an adjusted first color temperature value, comparing the adjusted first color temperature value with a preset standard color temperature value, and judging whether the adjusted first color temperature value meets the standard color temperature value;
if the adjusted first color temperature value does not meet the standard color temperature value, starting to adjust the initial R primary color gain parameter;
when the initial R primary color gain parameter is adjusted, keeping the initial B primary color gain parameter and the initial G primary color gain parameter unchanged;
acquiring an adjusted second color temperature value, comparing the adjusted second color temperature value with a preset standard color temperature value, and judging whether the adjusted second color temperature value meets the standard color temperature value;
if the adjusted second color temperature value does not meet the standard color temperature value, starting to adjust the gain parameter of the initial G primary color;
when the initial G primary color gain parameter is adjusted, keeping the initial R primary color gain parameter and the initial B primary color gain parameter unchanged;
acquiring an adjusted third color temperature value, comparing the adjusted third color temperature value with a preset standard color temperature value, and judging whether the adjusted third color temperature value meets the standard color temperature value;
if the third color temperature value meets the standard color temperature value, switching the color temperature mode, and switching another color temperature mode to perform white balance adjustment again;
the adjustment of the white balance parameter is adjusted based on a color temperature rule, and comprises the following steps:
when the initial R primary color gain parameter and the initial G primary color gain parameter are fixed, if the initial B primary color gain parameter is gradually increased within the range of 704 to 1184, the values of the color coordinate X axis and the color coordinate Y axis are gradually decreased;
when the initial R primary color gain parameter and the initial B primary color gain parameter are fixed, if the initial G primary color gain parameter is increased in the range of 704 to 736, the values of the color coordinates X axis and Y axis are both decreased, and if the initial G primary color gain parameter is increased in the range of 736 to 1184, the values of the X axis and Y axis are both increased;
when the initial G primary gain parameter and the initial B primary gain parameter are fixed, if the initial R primary gain parameter is increased in the range of 704 to 736, the values of the X axis and the Y axis of the color coordinates are both decreased, and if the initial R primary gain parameter is increased in the range of 736 to 1184, the values of the X axis and the Y axis are both increased.
2. The white balance calibration method according to claim 1, wherein the obtaining a color temperature mode, and obtaining an initial color temperature value corresponding to the color temperature mode according to the color temperature mode, comprises:
reading a color temperature mode preset in terminal equipment, wherein the color temperature mode is any one of a standard color temperature mode, a cold color temperature mode and a warm color temperature mode;
and acquiring an initial color temperature value corresponding to the color temperature mode according to the color temperature mode, wherein the initial color temperature value comprises an initial R primary color gain parameter, an initial G primary color gain parameter and an initial B primary color gain parameter.
3. The white balance calibration method according to claim 1, wherein the determining the parameter to be adjusted in the initial color temperature value according to the initial color temperature value comprises:
after the initial color temperature value is obtained, comparing the initial color temperature value with a preset standard color temperature value number;
if the color temperature value does not meet the standard color temperature value, determining a parameter to be adjusted in the initial color temperature value, wherein the parameter to be adjusted is one or more of the initial R primary color gain parameter, the initial G primary color gain parameter and the initial B primary color gain parameter.
4. A white balance adjustment device, characterized in that the device comprises:
the initial color temperature value acquisition module is used for acquiring a color temperature mode and acquiring an initial color temperature value corresponding to the color temperature mode according to the color temperature mode;
a to-be-adjusted parameter determining module, configured to determine, according to the initial color temperature value, a to-be-adjusted parameter in the initial color temperature value;
the white balance calibration module is used for adjusting the initial color temperature value according to the parameter to be adjusted so as to realize white balance calibration;
the white balance calibration module includes:
the device comprises a parameter to be adjusted determining unit, a parameter adjusting unit and a parameter adjusting unit, wherein the parameter to be adjusted determining unit is used for determining an initial R primary color gain parameter, an initial G primary color gain parameter and an initial B primary color gain parameter to be adjusted from the parameter to be adjusted after the parameter to be adjusted is obtained;
the parameter adjusting unit to be adjusted is used for adjusting the initial B primary color gain parameter, the initial R primary color gain parameter and the initial G primary color gain parameter in sequence;
the parameter adjustment unit to be adjusted includes:
a first conditional sub-unit, configured to keep the initial R primary gain parameter and the initial G primary gain parameter unchanged when performing the initial B primary gain parameter;
the first judgment subunit is configured to obtain an adjusted first color temperature value, compare the adjusted first color temperature value with a preset standard color temperature value, and judge whether the adjusted first color temperature value meets the standard color temperature value;
the first adjusting subunit is configured to start to adjust the initial R primary color gain parameter if the adjusted first color temperature value does not satisfy the standard color temperature value;
a second conditional subunit, configured to, when the initial R primary color gain parameter is adjusted, keep the initial B primary color gain parameter and the initial G primary color gain parameter unchanged;
the second judgment subunit is configured to obtain an adjusted second color temperature value, compare the adjusted second color temperature value with a preset standard color temperature value, and judge whether the adjusted second color temperature value meets the standard color temperature value;
a second adjusting subunit, configured to, if the adjusted second color temperature value does not satisfy the standard color temperature value, start to adjust the initial G primary color gain parameter;
a third conditional subunit, configured to keep the initial R primary gain parameter and the initial B primary gain parameter unchanged when performing the initial G primary gain parameter;
the third judging subunit is configured to obtain an adjusted third color temperature value, compare the adjusted third color temperature value with a preset standard color temperature value, and judge whether the adjusted third color temperature value meets the standard color temperature value;
a third adjusting subunit, configured to switch the color temperature mode and switch to another color temperature mode to perform white balance adjustment again if the third color temperature value satisfies the standard color temperature value;
the white balance calibration module is used for determining a color temperature change rule:
when the initial R primary color gain parameter and the initial G primary color gain parameter are fixed and unchanged, if the initial B primary color gain parameter is gradually increased in the range of 704 to 1184, the numerical values of the X axis and the Y axis of the color coordinate are gradually reduced;
when the initial R primary color gain parameter and the initial B primary color gain parameter are fixed, if the initial G primary color gain parameter is increased in the range of 704 to 736, the values of the color coordinates X axis and Y axis are both decreased, and if the initial G primary color gain parameter is increased in the range of 736 to 1184, the values of the X axis and Y axis are both increased;
when the initial G primary gain parameter and the initial B primary gain parameter are fixed, if the initial R primary gain parameter is increased in the range of 704 to 736, the values of the X axis and the Y axis of the color coordinates are both decreased, and if the initial R primary gain parameter is increased in the range of 736 to 1184, the values of the X axis and the Y axis are both increased.
5. A terminal device, characterized in that the terminal device comprises a memory, a processor and a white balance adjustment program stored in the memory and executable on the processor, and the processor implements the steps of the white balance calibration method according to any one of claims 1 to 3 when executing the white balance adjustment program.
6. A computer-readable storage medium, having a white balance adjustment program stored thereon, which when executed by a processor, implements the steps of the white balance calibration method according to any one of claims 1 to 3.
CN202110266818.8A 2021-03-11 2021-03-11 White balance calibration method, device, terminal equipment and storage medium Active CN113038110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110266818.8A CN113038110B (en) 2021-03-11 2021-03-11 White balance calibration method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110266818.8A CN113038110B (en) 2021-03-11 2021-03-11 White balance calibration method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113038110A CN113038110A (en) 2021-06-25
CN113038110B true CN113038110B (en) 2022-12-20

Family

ID=76469688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110266818.8A Active CN113038110B (en) 2021-03-11 2021-03-11 White balance calibration method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113038110B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI810030B (en) * 2022-08-19 2023-07-21 大陸商集創北方(深圳)科技有限公司 White balance correction method, electronic chip and information processing device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101685596A (en) * 2008-09-28 2010-03-31 四川世纪双虹显示器件有限公司 Method and system for automatically adjusting color temperature for digital display equipment
CN106507082A (en) * 2016-12-27 2017-03-15 深圳Tcl数字技术有限公司 The adjustment method of white balance and device
CN106710537A (en) * 2017-03-17 2017-05-24 北京小米移动软件有限公司 Method, device and equipment for color compensation
CN107622761A (en) * 2017-11-07 2018-01-23 晶晨半导体(上海)股份有限公司 A kind of screen display bearing calibration based on negative-feedback
CN110322857A (en) * 2019-07-05 2019-10-11 青岛海信电器股份有限公司 Color compensation method and display equipment
CN110430409A (en) * 2019-06-25 2019-11-08 深圳康佳电子科技有限公司 A kind of automatic adjustment method of LCD TV white balance and system
CN110456537A (en) * 2019-07-30 2019-11-15 苏州佳世达电通有限公司 Test method and its system for display module

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340596A (en) * 2007-07-04 2009-01-07 深圳Tcl新技术有限公司 Apparatus and system for white balance debugging
CN101527859B (en) * 2008-06-27 2010-11-03 福建捷联电子有限公司 Method for adjusting gray scale white balance of display
CN101887673B (en) * 2010-07-21 2011-11-30 福建捷联电子有限公司 Method for dynamically predicting color temperatures of liquid crystal display television
US9754543B2 (en) * 2015-04-16 2017-09-05 Panoramic Imaging Solutions Ltd. Image self-calibration method and device for LCD displays
CN110896466B (en) * 2018-09-13 2021-08-13 深圳市金锐显数码科技有限公司 White balance adjustment method and system of display device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101685596A (en) * 2008-09-28 2010-03-31 四川世纪双虹显示器件有限公司 Method and system for automatically adjusting color temperature for digital display equipment
CN106507082A (en) * 2016-12-27 2017-03-15 深圳Tcl数字技术有限公司 The adjustment method of white balance and device
CN106710537A (en) * 2017-03-17 2017-05-24 北京小米移动软件有限公司 Method, device and equipment for color compensation
CN107622761A (en) * 2017-11-07 2018-01-23 晶晨半导体(上海)股份有限公司 A kind of screen display bearing calibration based on negative-feedback
CN110430409A (en) * 2019-06-25 2019-11-08 深圳康佳电子科技有限公司 A kind of automatic adjustment method of LCD TV white balance and system
CN110322857A (en) * 2019-07-05 2019-10-11 青岛海信电器股份有限公司 Color compensation method and display equipment
CN110456537A (en) * 2019-07-30 2019-11-15 苏州佳世达电通有限公司 Test method and its system for display module

Also Published As

Publication number Publication date
CN113038110A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
US10971098B2 (en) Method and device for adjusting gray scale of display panel
CN106205459B (en) Correction method and correction device for display equipment
KR101747405B1 (en) De-Mura Amendment Method of Display Panel
CN101587703B (en) Method and device for adjusting color temperature coordinate value measured by color analyzer
CN113038110B (en) White balance calibration method, device, terminal equipment and storage medium
CN109147707A (en) Gamma value adjusting method, device and the display equipment of display panel
CN113611242B (en) LED screen correction coefficient generation method, LED screen correction coefficient adjustment method and LED screen correction system
US11056078B2 (en) Multi-screen color correction method and electronic device using the same
WO2021017374A1 (en) Concentration measuring instrument calibration method and apparatus, and concentration measuring instrument
CN114172593A (en) Power calibration method, calibration equipment and calibration system of wireless module
CN111901584A (en) Automatic detection method and device for television transmission channel, intelligent terminal and storage medium
CN107920241B (en) White balance processing method for liquid crystal display television
CN116312331B (en) Image quality adjustment control method and related device for display
CN113453082A (en) Intelligent television image automatic adjustment processing method and device, intelligent television and medium
TWI353531B (en) Method and a device of adjusting a color temperatu
CN115802018B (en) White balance automatic correction method, white balance automatic correction device and computer equipment
CN108597442B (en) OLED module Gamma adjustment method and system based on multi-target association mathematical model
CN113838397B (en) Display performance testing method, device, testing equipment and storage medium
CN111785220B (en) Display correction method and system
CN116935769B (en) Detection method and system for bad characteristics of OLED display module
CN114627833B (en) Display method, display panel and readable storage medium
EP3454552B1 (en) Method, apparatus, computer-readable storage medium and computer program product for calibrating automatic white balance
CN115035832A (en) Method and system for automatically adjusting picture effect of spliced screen
CN111726552A (en) Method for adjusting display parameters and computer equipment
CN115938326A (en) Color temperature calibration method of liquid crystal display television

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
GR01 Patent grant
GR01 Patent grant