White balance adjustment method, device, computer equipment and storage medium

By obtaining the color temperature data of the display terminal under the preset color gain and using the fitted linear equation to determine the target color gain, the color gain of the display terminal is directly adjusted, which solves the problem of long traditional white balance adjustment time and improves efficiency and accuracy , improves the display quality.

CN115914602BActive Publication Date: 2025-01-17FORMOVIE (CHONGQING) INNOVATIVE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211499827.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-28
Publication Date
2025-01-17
Estimated Expiration
2042-11-28

AI Technical Summary

Technical Problem

Traditional white balance adjustment methods require continuous measurement of color temperature data and adjustment of color gain, resulting in a long time and low efficiency.

Method used

By obtaining the color temperature data of the display terminal to be adjusted under the preset color gain, and determining the target color gain according to the pre-fitted linear equation, the color gain of the display terminal is directly adjusted for white balance adjustment.

Benefits of technology

It improves the efficiency and accuracy of white balance adjustment, reduces the continuous adjustment of the target color temperature data, and improves the display quality of the display terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115914602B_ABST
    Figure CN115914602B_ABST
Patent Text Reader

Abstract

The present application relates to a white balance adjustment method, device, computer equipment and storage medium. The method comprises: obtaining color temperature data of a display terminal to be adjusted under a preset color gain; the color temperature data is the color temperature data measured for the picture displayed by the display terminal to be adjusted after adjusting the color gain of the display terminal to be adjusted according to the preset color gain; determining a target color gain according to the color temperature data, the preset color gain and a pre-fitted linear equation; the linear equation is obtained by linear fitting based on the reference color temperature data and the preset color gain corresponding to multiple reference display terminals of the same model under the preset color gain; adjusting the color gain of the display terminal to be adjusted according to the target color gain to perform white balance adjustment. The use of this method can improve the efficiency of white balance adjustment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of display technology, and in particular to a white balance adjustment method, device, computer equipment and storage medium. Background Art

[0002] With the development of science and technology, display terminals such as projectors, televisions, and tablet computers are becoming more and more popular in work and life. In order to improve the color quality of the images displayed by these display terminals, it is necessary to adjust the white balance of the images displayed by the display terminals during the production process.

[0003] In the traditional method, the color temperature data of the picture is generally continuously measured, and then the measured color temperature data is compared with the target color temperature data defined by the display terminal, and the color gain (i.e., RGB gain) of the display terminal is continuously adjusted according to each comparison result until the measured color temperature data meets the target color temperature data. However, since this method requires continuous measurement of color temperature data and adjustment of color gain, the white balance adjustment time is long and the efficiency is very low. Summary of the invention

[0004] Based on this, it is necessary to provide a white balance adjustment method, device, computer equipment, computer-readable storage medium and computer program product that can improve efficiency in order to solve the above technical problems.

[0005] In a first aspect, the present application provides a white balance adjustment method. The method comprises:

[0006] Acquiring color temperature data of the display terminal to be adjusted under a preset color gain; the color temperature data is color temperature data measured for a picture displayed by the display terminal to be adjusted after the color gain of the display terminal to be adjusted is adjusted according to the preset color gain;

[0007] Determine the target color gain according to the color temperature data, the preset color gain and a pre-fitted linear equation; the linear equation is obtained by linear fitting based on the reference color temperature data and the preset color gain corresponding to multiple reference display terminals of the same model under the preset color gain;

[0008] The color gain of the display terminal to be adjusted is adjusted according to the target color gain to perform white balance adjustment.

[0009] In a second aspect, the present application also provides a white balance adjustment device. The device comprises:

[0010] A data acquisition module, used to acquire color temperature data of a display terminal to be adjusted under a preset color gain; the color temperature data is color temperature data measured for a picture displayed by the display terminal to be adjusted after the color gain of the display terminal to be adjusted is adjusted according to the preset color gain;

[0011] A gain determination module, used to determine a target color gain according to the color temperature data, the preset color gain and a pre-fitted linear equation; the linear equation is obtained by linear fitting based on reference color temperature data and the preset color gain corresponding to multiple reference display terminals of the same model under the preset color gain;

[0012] The gain adjustment module is used to adjust the color gain of the display terminal to be adjusted according to the target color gain to perform white balance adjustment.

[0013] In one of the embodiments, the data acquisition module is also used to control the display terminal to be adjusted to output a white field image; control the display terminal to be adjusted to adjust the color gain according to the preset color gain under the white field image; after the display terminal to be adjusted adjusts the color gain, obtain the color temperature data measured for the picture displayed by the display terminal to be adjusted, and obtain the color temperature data of the display terminal to be adjusted under the preset color gain.

[0014] In one of the embodiments, the number of the preset color gains and the number of the color temperature data are two groups respectively; the gain determination module is also used to determine the target color gain according to the difference between the two groups of the color temperature data, the difference between the two groups of the preset color gains and the pre-fitted straight line equation.

[0015] In one embodiment, the white balance adjustment device further includes:

[0016] The straight line fitting module is used to obtain two sets of reference color temperature data corresponding to multiple reference display terminals of the same model under two sets of preset color gains; perform straight line fitting according to the difference between the two sets of preset color gains and the difference between the two sets of reference color temperature data of each reference display terminal to obtain a pre-fitted straight line equation.

[0017] In one of the embodiments, the gain determination module is also used to, if approximate color temperature data of the color temperature data of the display terminal to be adjusted exists in the reference color temperature data, use the color gain corresponding to the approximate color temperature data as the target color gain, and notify the gain adjustment module to execute the adjustment of the color gain of the display terminal to be adjusted according to the target color gain; wherein the approximate color temperature data is reference color temperature data whose difference with the color temperature data of the display terminal to be adjusted is less than or equal to a preset threshold.

[0018] In one of the embodiments, the straight line fitting module is also used to re-perform straight line fitting based on the color temperature data of the display terminal to be adjusted under the preset color gain, the reference color temperature data and the preset color gain to obtain a re-fitted straight line equation; the re-fitted straight line equation is used to perform white balance adjustment on subsequent display terminals.

[0019] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the white balance adjustment method described in each embodiment of the present application.

[0020] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the processor executes the steps in the white balance adjustment method described in each embodiment of the present application.

[0021] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the processor executes the steps in the white balance adjustment method described in each embodiment of the present application.

[0022] The above-mentioned white balance adjustment method, device, computer equipment, storage medium and computer program product perform straight line fitting based on the reference color temperature data and preset color gain corresponding to multiple reference display terminals of the same model under preset color gains. When adjusting the white balance, it is only necessary to obtain the color temperature data of the display terminal to be adjusted under the preset color gain, and then according to the color temperature data, the preset color gain and the pre-fitted straight line equation, the target color gain can be efficiently determined. Finally, the white balance adjustment can be performed by directly adjusting the color gain of the display terminal to be adjusted according to the target color gain. There is no need to continuously adjust the color gain in the direction of the target color temperature data, thereby improving the efficiency of the white balance adjustment. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A diagram showing an application environment of a white balance adjustment method in an embodiment;

[0024] Figure 2 is a schematic flow chart of a white balance adjustment method in one embodiment;

[0025] Figure 3 A schematic diagram of preset color gain and uploaded color temperature data in one embodiment;

[0026] Figure 4 is a schematic diagram of the overall process of a white balance adjustment method in one embodiment;

[0027] Figure 5 is a structural block diagram of a white balance adjustment device in one embodiment;

[0028] Figure 6 is a structural block diagram of a white balance adjustment device in another embodiment;

[0029] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0031] The white balance adjustment method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the control terminal 102 communicates with the display terminal 104 to be adjusted through the network, Bluetooth or wired connection, the control terminal 102 communicates with the color temperature measuring device 106 through the network, Bluetooth or wired connection, and the control terminal 102 communicates with the server 108 through the network. The control terminal 102 can control the display terminal 104 to be adjusted to adjust the color gain according to the preset color gain, the color temperature measuring device 106 can measure the color temperature data of the picture displayed by the display terminal 104 to be adjusted after the color gain is adjusted, and the control terminal 102 can obtain the measured color temperature data from the color temperature measuring device 106. The control terminal 102 can upload the color temperature data obtained each time to the server 108, and the server 108 can perform straight line fitting according to the reference color temperature data and the preset color gain corresponding to the uploaded multiple display terminals of the same model under the preset color gain. The control terminal 102 can determine the target color gain according to the color temperature data of the display terminal to be adjusted, the preset color gain and the pre-fitted linear equation, and then control the display terminal to be adjusted according to the target color gain to adjust the color gain of the display terminal to be adjusted to perform white balance adjustment. Among them, the control terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, projectors, tablet computers and portable wearable devices, and the portable wearable devices can be terminals such as smart watches, smart bracelets, and head-mounted devices. The display terminal 104 to be adjusted can be, but is not limited to, terminals with display functions such as televisions, projectors, personal computers, laptops, smart phones, and tablet computers. The color temperature measuring device 106 can be a device with the function of measuring color temperature data, such as an illuminance meter or a color temperature meter. The server 108 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0032] In other embodiments, the control terminal 102 may not upload the color temperature data to the server, but the control terminal 102 itself may perform straight line fitting based on the reference color temperature data and preset color gain corresponding to multiple display terminals of the same model under the preset color gain.

[0033] In one embodiment, Figure 2 As shown, a white balance adjustment method is provided, which is applied to Figure 1 Taking the control terminal 102 in the example as an example, the method includes the following steps:

[0034] Step 202, obtaining color temperature data of the display terminal to be adjusted under a preset color gain; the color temperature data is color temperature data measured for the picture displayed by the display terminal to be adjusted after the color gain of the display terminal to be adjusted is adjusted according to the preset color gain.

[0035] The display terminal to be adjusted is the display terminal that needs to be adjusted for white balance. Color gain (ie, RGB gain) is used to represent the gain values ​​corresponding to the R channel (red channel), G channel (green channel) and B channel (blue channel).

[0036] In one embodiment, the preset color gain may be formulated according to a research and development prototype, wherein the research and development prototype is a prototype of a display terminal in the research and development stage. In one embodiment, the value range of the preset color gain may be greater than or equal to 600 and less than or equal to 1500.

[0037] In one embodiment, the color temperature data is the color temperature data measured after the display terminal to be adjusted adjusts the color gain according to the preset color gain when outputting a white field image, wherein the white field image is an image in which the gray value of each pixel is the maximum gray value.

[0038] In one embodiment, the number of preset color gains may be at least two groups, wherein each group of preset color gains includes an R channel preset gain, a G channel preset gain, and a B channel preset gain.

[0039] In one embodiment, the number of color temperature data may be at least two groups. In one embodiment, each group of color temperature data may include a horizontal coordinate value of the color coordinate and a vertical coordinate value of the color coordinate.

[0040] Step 204, determining the target color gain according to the color temperature data, the preset color gain and the pre-fitted linear equation; the linear equation is obtained by linear fitting based on the reference color temperature data and the preset color gain corresponding to multiple reference display terminals of the same model under the preset color gain.

[0041] The target color gain is a color gain used to perform white balance adjustment on the display terminal to be adjusted.

[0042] In one embodiment, for each display terminal to be adjusted, after the control terminal obtains the color temperature data of the display terminal to be adjusted under the preset color gain, the display terminal can be used as a reference display terminal. The control terminal can perform straight line fitting based on the reference color temperature data and the preset color gain corresponding to multiple reference display terminals of the same model under the preset color gain. The fitted straight line equation is used to perform white balance adjustment on subsequent display terminals to be adjusted.

[0043] In another embodiment, for each display terminal to be adjusted, after the control terminal obtains the color temperature data of the display terminal to be adjusted under the preset color gain, the obtained color temperature data can be uploaded to the server, and the server can use the display terminal as a reference display terminal, and perform straight line fitting based on the reference color temperature data and preset color gain corresponding to multiple reference display terminals of the same model under the preset color gain. The fitted straight line equation is used to perform white balance adjustment on the subsequent display terminal to be adjusted.

[0044] In one embodiment, during the data collection phase, the control terminal can obtain reference color temperature data of a preset number of reference display terminals and upload them to the server. The server can establish an initial data set based on the color temperature data and preset color gain of the preset number of display terminals. After the production line starts producing display terminals, the color temperature data of each produced display terminal can be continuously supplemented to the initial data set. During the data processing phase, the server can perform straight line fitting based on the reference color temperature data and preset color gain of the reference display terminal uploaded in advance. During the calibration phase, the control terminal can obtain the color temperature data of the display terminal to be adjusted under the preset color gain, determine the target color gain based on the color temperature data, the preset color gain and the pre-fitted linear equation, and adjust the color gain of the display terminal to be adjusted according to the target color gain to perform white balance adjustment. Among them, the data collection phase is carried out during the R&D and trial production phase of the display terminal. The data processing phase is carried out during the R&D, trial production and mass production phase of the display terminal. The calibration phase runs through the entire generation process of the display terminal.

[0045] like Figure 3As shown, it is a schematic diagram of two groups of reference color temperature data and two groups of preset color gains of multiple reference display terminals uploaded in advance. RGain1, GGain1 and BGain1 in the figure are the first group of preset color gains, and RGain2, GGain2 and BGain2 are the second group of preset color gains. Ev1, Cx1 and Cy1 are the first group of color temperature data, and Ev2, Cx2 and Cy2 are the second group of color temperature data. Ev1 and Ev2 are the brightness in each group of color temperature data, Cx1 and Cx2 are the horizontal coordinate values ​​of the color coordinates in each group of color temperature data, and Cy1 and Cy2 are the vertical coordinate values ​​of the color coordinates in each group of color temperature data. The serial number refers to the serial number of the reference display terminal. The figure schematically shows the uploaded data corresponding to 50 reference display terminals. It can be understood that each time the color temperature data of a display terminal is obtained, it can be uploaded as the reference color temperature data of the reference display terminal.

[0046] In one embodiment, the control terminal or the server may obtain a straight line equation by straight line fitting, and the control terminal may substitute the color temperature data and the preset color gain into the pre-fitted straight line equation to obtain the target color gain. In one embodiment, the control terminal or the server may determine the parameters of the straight line equation by straight line fitting, and obtain the straight line equation according to the parameters of the straight line equation.

[0047] Step 206: adjusting the color gain of the display terminal to be adjusted according to the target color gain to perform white balance adjustment.

[0048] Specifically, the control terminal may control the display terminal to be adjusted to adjust the color gain according to the target color gain to perform white balance adjustment.

[0049] In one embodiment, the control terminal can obtain the color temperature data of the picture displayed by the display terminal to be adjusted after the color gain is adjusted according to the target color gain, and compare the color temperature data with the target color temperature data to determine whether the white balance adjustment is accurate. Among them, the target color temperature data is the color temperature data that achieves white balance. In one embodiment, the color temperature measurement device can measure the color temperature of the picture displayed by the display terminal to be adjusted, and the control terminal can obtain the color temperature data of the picture displayed by the display terminal to be adjusted after the color gain is adjusted according to the target color gain from the color temperature measurement device.

[0050] The above-mentioned white balance adjustment method performs linear fitting based on the reference color temperature data and preset color gain corresponding to multiple reference display terminals of the same model under preset color gain. When adjusting the white balance, it is only necessary to obtain the color temperature data of the display terminal to be adjusted under the preset color gain, and then the target color gain can be efficiently determined based on the color temperature data, the preset color gain and the pre-fitted linear equation. Finally, the white balance adjustment can be performed by directly adjusting the color gain of the display terminal to be adjusted according to the target color gain, without the need to continuously adjust the color gain in the direction of the target color temperature data, thereby improving the efficiency of white balance adjustment. In addition, by performing linear fitting based on the reference color temperature data and preset color gain corresponding to multiple reference display terminals of the same model under preset color gain in advance, and determining the target color gain of the display terminal to be adjusted based on the pre-fitted linear equation, a more accurate target color gain can be obtained, thereby improving the accuracy of white balance adjustment, and thus improving the display quality of the display terminal.

[0051] In one embodiment, obtaining color temperature data of a display terminal to be adjusted under a preset color gain includes: controlling the display terminal to be adjusted to output a display white field image; controlling the display terminal to be adjusted to adjust the color gain according to the preset color gain under the white field image; after the display terminal to be adjusted adjusts the color gain, obtaining color temperature data measured for a picture displayed by the display terminal to be adjusted, to obtain the color temperature data of the display terminal to be adjusted under the preset color gain.

[0052] In one embodiment, the control terminal can control the display terminal to be adjusted to output a white field image, and then control the display terminal to be adjusted to adjust the color gain according to a preset color gain under the white field image. The color temperature measuring device can measure the color temperature of the picture displayed by the display terminal to be adjusted to obtain color temperature data. The control terminal can obtain the color temperature data measured for the picture displayed by the display terminal to be adjusted from the color temperature measuring device, and obtain the color temperature data of the display terminal to be adjusted under the preset color gain. Among them, the color temperature measuring device is a device for measuring color temperature data.

[0053] In one embodiment, the control terminal may control the display terminal to be adjusted to adjust the color gain according to a preset color gain by setting the parameters of the RGB register.

[0054] In one embodiment, the control terminal may upload the color temperature data of the display terminal to be adjusted under a preset color gain to the server.

[0055] In the above embodiment, it is only necessary to simply control the display terminal to be adjusted to output a white field image, and control the display terminal to be adjusted to adjust the color gain according to the preset color gain under the white field image, and then obtain the color temperature data measured for the picture displayed by the display terminal to be adjusted, so that the color temperature data of the display terminal to be adjusted under the preset color gain can be efficiently obtained, and then according to the color temperature data, the preset color gain and the pre-fitted straight line equation, the target color gain can be efficiently determined, thereby improving the efficiency of white balance adjustment.

[0056] In one embodiment, the number of preset color gain and color temperature data is two groups respectively; determining the target color gain according to the color temperature data, the preset color gain and the pre-fitted straight line equation includes: determining the target color gain according to the difference between the two groups of color temperature data, the difference between the two groups of preset color gains and the pre-fitted straight line equation.

[0057] In one embodiment, the target color gain may include an R channel target gain, a G channel target gain, and a B channel target gain.

[0058] In one embodiment, the straight line equation may include a first straight line equation and a second straight line equation. The first straight line equation is obtained by performing straight line fitting based on the horizontal coordinate values ​​of the color coordinates in the two sets of reference color temperature data corresponding to the two sets of preset color gains of multiple reference display terminals of the same model and the preset gains of the R channel in the two sets of preset color gains. The second straight line equation is obtained by performing straight line fitting based on the vertical coordinate values ​​of the color coordinates in the two sets of reference color temperature data corresponding to the two sets of preset color gains of multiple reference display terminals of the same model and the preset gains of the B channel in the two sets of preset color gains.

[0059] In one embodiment, the control terminal may determine the R channel target gain based on the difference between the R channel preset gains in the two sets of preset color gains, the difference between the horizontal coordinate values ​​of the color coordinates in the two sets of color temperature data, and the pre-fitted first straight line equation. In one embodiment, the control terminal may determine the B channel target gain based on the difference between the B channel preset gains in the two sets of preset color gains, the difference between the vertical coordinate values ​​of the color coordinates in the two sets of color temperature data, and the pre-fitted second straight line equation.

[0060] In one embodiment, the control terminal may set the G channel target gain to 1 because the gain of the G channel is generally not adjusted.

[0061] In one embodiment, the control terminal may determine the target color gain according to the ratio between the difference between the two sets of color temperature data and the difference between the two sets of preset color gains.

[0062] In one embodiment, the control terminal may substitute the difference between the two sets of color temperature data and the difference between the two sets of preset color gains into the linear equation of the pre-fitted linear equation to obtain the target color gain.

[0063] In one embodiment, the control terminal can substitute the difference between the preset gains of the R channel in the two sets of preset color gains and the difference between the horizontal coordinate values ​​of the color coordinates in the two sets of color temperature data into the pre-fitted first straight line equation to obtain the R channel target gain. The first straight line equation can be expressed as follows:

[0064]

[0065] Wherein, a and b represent the parameters of the first straight line equation, and the values ​​of a and b are obtained after pre-linear fitting. cx1 and cx2 represent the horizontal coordinate values ​​of the color coordinates in the two sets of color temperature data, respectively. rgain1 and rgain2 represent the R channel preset gains in the two sets of preset color gains, respectively. RGain represents the R channel target gain.

[0066] In one embodiment, the control terminal can substitute the difference between the preset gains of the B channel in the two sets of preset color gains and the difference between the ordinate values ​​of the color coordinates in the two sets of color temperature data into the pre-fitted second straight line equation to obtain the target gain of the B channel. The second straight line equation can be expressed by the following formula:

[0067]

[0068] Wherein, c and d represent the parameters of the second straight line equation, and the values ​​of c and d are obtained after pre-linear fitting. cy1 and cy2 represent the ordinate values ​​of the color coordinates in the two sets of color temperature data, respectively. bgain1 and bgain2 represent the preset gains of the B channel in the two sets of preset color gains, respectively. BGain represents the target gain of the B channel.

[0069] In the above embodiment, the target color gain can be determined efficiently and accurately according to the difference between the two sets of color temperature data, the difference between the two sets of preset color gains, and the pre-fitted linear equation, thereby improving the efficiency and accuracy of white balance adjustment, and further improving the display quality of the display terminal.

[0070] In one embodiment, before obtaining the color temperature data of the display terminal to be adjusted under a preset color gain, the method further includes: obtaining two sets of reference color temperature data corresponding to a plurality of reference display terminals of the same model under two sets of preset color gains respectively; performing straight line fitting according to the difference between the two sets of preset color gains and the difference between the two sets of reference color temperature data of each reference display terminal to obtain a pre-fitted straight line equation.

[0071] In one embodiment, the control terminal or the server may perform straight line fitting according to the difference between the two sets of preset color gains and the difference between the two sets of reference color temperature data of each reference display terminal to obtain the linear equation of the pre-fitted linear equation. In one embodiment, the control terminal or the server may perform straight line fitting according to the difference between the two sets of preset color gains and the difference between the two sets of reference color temperature data of each reference display terminal to obtain the parameters of the linear equation, and obtain the linear equation according to the parameters of the linear equation.

[0072] In one embodiment, the parameters of the first straight line equation can be obtained according to the following formula:

[0073]

[0074]

[0075] Among them, x1 i =cx2 i -cx1 i , rgain i =rgain2 i -rgain1 i , i = 1, 2, 3...N, N is a positive integer, N represents the number of reference display terminals. cx1 i and cx2 i Represents the horizontal coordinate value of the color coordinate in the two sets of reference color temperature data of each reference display terminal. rgain1 i and rgain2 i Indicates the preset gain of the R channel in the two sets of preset color gains. a and b indicate the parameters of the first straight line equation.

[0076] In one embodiment, the parameters of the second straight line equation can be obtained according to the following formula:

[0077]

[0078]

[0079] Among them, y1 i =cy2 i -cy1 i , bgain i =bgain2 i -bgain1 i , i = 1, 2, 3...N, N is a positive integer, N represents the number of reference display terminals. cy1 i and cy2 i Indicates the horizontal coordinate value of the color coordinate in the two sets of reference color temperature data of each reference display terminal. bgain1 i and bgain2i Indicates the preset gain of the B channel in the two sets of preset color gains. c and d indicate the parameters of the second straight line equation.

[0080] In the above embodiment, a straight line fitting is performed in advance based on the difference between two groups of preset color gains and the difference between two groups of reference color temperature data of each reference display terminal to obtain a pre-fitted straight line equation, so that the target color gain of the display terminal to be adjusted can be efficiently and accurately determined based on the pre-fitted straight line equation, thereby improving the efficiency and accuracy of white balance adjustment.

[0081] In one embodiment, after obtaining the color temperature data of the display terminal to be adjusted under a preset color gain, the method also includes: if there is approximate color temperature data of the color temperature data of the display terminal to be adjusted in the reference color temperature data, the color gain corresponding to the approximate color temperature data is used as the target color gain, and the color gain of the display terminal to be adjusted is adjusted according to the target color gain; wherein the approximate color temperature data is reference color temperature data whose difference with the color temperature data of the display terminal to be adjusted is less than or equal to a preset threshold.

[0082] In one embodiment, after obtaining the color temperature data of the display terminal to be adjusted under a preset color gain, the control terminal may compare the reference color temperature data of multiple reference display terminals of the same model uploaded in advance with the color temperature data of the display terminal to be adjusted. If the reference color temperature data contains approximate color temperature data of the color temperature data of the display terminal to be adjusted, the color gain corresponding to the approximate color temperature data uploaded in advance is used as the target color gain, and the color gain of the display terminal to be adjusted is adjusted according to the target color gain to perform white balance adjustment.

[0083] In one embodiment, for each display terminal to be adjusted, after determining the target color gain, the target color gain can be uploaded, and the target color gain of the display terminal to be adjusted and the color temperature data under the preset color gain are stored in correspondence. The color gain corresponding to the approximate color temperature data refers to the target color gain of the display terminal corresponding to the pre-uploaded approximate color temperature data.

[0084] In one embodiment, the color temperature data of the display terminal to be adjusted is two groups, and the reference color temperature data of each reference display terminal is two groups. The approximate color temperature data may be two groups of reference color temperature data of the same reference display terminal whose differences with the two groups of color temperature data of the display terminal to be adjusted are respectively less than or equal to a preset threshold.

[0085] In one embodiment, if there is no approximate color temperature data of the color temperature data of the display terminal to be adjusted in the reference color temperature data, step 204 is executed to determine the target color gain and subsequent steps according to the color temperature data, the preset color gain and the pre-fitted linear equation.

[0086] In the above embodiment, if the reference color temperature data contains approximate color temperature data of the display terminal to be adjusted, there is no need to determine the target color gain based on a pre-fitted linear equation. Instead, the color gain corresponding to the approximate color temperature data can be directly used as the target color gain, thereby further improving the efficiency of white balance adjustment.

[0087] In one embodiment, after obtaining the color temperature data of the display terminal to be adjusted under the preset color gain, the method also includes: re-performing straight line fitting according to the color temperature data of the display terminal to be adjusted under the preset color gain, the reference color temperature data and the preset color gain to obtain a re-fitted straight line equation; the re-fitted straight line equation is used to perform white balance adjustment on subsequent display terminals.

[0088] In one embodiment, the control terminal or server can re-perform straight line fitting based on two sets of color temperature data of the display terminal to be adjusted under two sets of preset color gains, two sets of reference color temperature data of each reference display terminal, and two sets of preset color gains to obtain a re-fitted straight line equation.

[0089] It can be understood that each time the color temperature data of a new display terminal is obtained, the new color temperature data can be added to the original color temperature data to perform straight line fitting again.

[0090] In the above embodiment, the fitted straight line equation can be continuously updated according to the latest acquired color temperature data of the display terminal, thereby improving the accuracy of white balance adjustment.

[0091] like Figure 4As shown, it is a schematic diagram of the overall process of the white balance adjustment method in each embodiment of the present application. First, the display terminal to be adjusted is turned on, and the control terminal can control the display terminal to be adjusted to output a display white field image. Then, the control terminal can set a first set of color gains, control the display terminal to be adjusted to adjust the color gain according to the first set of color gains, and the control terminal can obtain a first set of color temperature data. Then, the control terminal can set a second set of color gains, control the display terminal to be adjusted to adjust the color gain according to the second set of color gains, and the control terminal can obtain a second set of color temperature data. The control terminal can upload the two sets of color temperature data to the server. If there is approximate color temperature data in the server, the control terminal can use the color gain corresponding to the approximate color temperature data as the target color gain to set the color gain; if there is no approximate color temperature data in the server, the control terminal can obtain the parameters of the pre-fitted linear equation, calculate the target color gain according to the color temperature data, the preset color gain and the parameters, set the color gain according to the target color gain, and control the display terminal to be adjusted to adjust the color gain. After adjusting the color gain, the control terminal can obtain the color temperature data to determine whether the white balance adjustment is accurate according to the color temperature data. Finally, the control terminal can upload the target color gain to the server.

[0092] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0093] Based on the same inventive concept, the embodiment of the present application further provides a white balance adjustment device for implementing the white balance adjustment method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more white balance adjustment device embodiments provided below can refer to the limitations on the white balance adjustment method above, and will not be repeated here.

[0094] In one embodiment, Figure 5 As shown, a white balance adjustment device 500 is provided, comprising: a data acquisition module 502, a gain determination module 504 and a gain adjustment module 506, wherein:

[0095] The data acquisition module 502 is used to acquire the color temperature data of the display terminal to be adjusted under the preset color gain; the color temperature data is the color temperature data measured for the picture displayed by the display terminal to be adjusted after the color gain of the display terminal to be adjusted is adjusted according to the preset color gain.

[0096] The gain determination module 504 is used to determine the target color gain according to the color temperature data, the preset color gain and the pre-fitted linear equation; the linear equation is obtained by linear fitting based on the reference color temperature data and the preset color gain corresponding to multiple reference display terminals of the same model under the preset color gain.

[0097] The gain adjustment module 506 is used to adjust the color gain of the display terminal to be adjusted according to the target color gain to perform white balance adjustment.

[0098] In one embodiment, the data acquisition module 502 is also used to control the display terminal to be adjusted to output a white field image; control the display terminal to be adjusted to adjust the color gain according to a preset color gain under the white field image; after the display terminal to be adjusted adjusts the color gain, obtain the color temperature data measured for the picture displayed by the display terminal to be adjusted, and obtain the color temperature data of the display terminal to be adjusted under the preset color gain.

[0099] In one embodiment, the number of preset color gain and color temperature data is two groups respectively; the gain determination module 504 is also used to determine the target color gain according to the difference between the two groups of color temperature data, the difference between the two groups of preset color gains and the pre-fitted straight line equation.

[0100] In one embodiment, Figure 6 As shown, the white balance adjustment device 500 further includes:

[0101] The straight line fitting module 508 is used to obtain two sets of reference color temperature data corresponding to multiple reference display terminals of the same model under two sets of preset color gains; perform straight line fitting according to the difference between the two sets of preset color gains and the difference between the two sets of reference color temperature data of each reference display terminal to obtain a pre-fitted straight line equation.

[0102] In one embodiment, the gain determination module 504 is also used to, if there is approximate color temperature data of the color temperature data of the display terminal to be adjusted in the reference color temperature data, use the color gain corresponding to the approximate color temperature data as the target color gain, and notify the gain adjustment module 506 to adjust the color gain of the display terminal to be adjusted according to the target color gain; wherein the approximate color temperature data is reference color temperature data whose difference with the color temperature data of the display terminal to be adjusted is less than or equal to a preset threshold.

[0103] In one embodiment, the straight line fitting module 508 is also used to re-fit the straight line according to the color temperature data of the display terminal to be adjusted under the preset color gain, the reference color temperature data and the preset color gain to obtain a re-fitted straight line equation; the re-fitted straight line equation is used to perform white balance adjustment on subsequent display terminals.

[0104] The above-mentioned white balance adjustment device performs straight line fitting according to the reference color temperature data and preset color gain corresponding to multiple reference display terminals of the same model under preset color gain. When adjusting the white balance, it is only necessary to obtain the color temperature data of the display terminal to be adjusted under the preset color gain, and then according to the color temperature data, the preset color gain and the pre-fitted straight line equation, the target color gain can be efficiently determined. Finally, the color gain of the display terminal to be adjusted can be adjusted directly according to the target color gain, and there is no need to continuously adjust the color gain in the direction of the target color temperature data, thereby improving the efficiency of white balance adjustment. In addition, by performing straight line fitting according to the reference color temperature data and preset color gain corresponding to multiple reference display terminals of the same model under preset color gain in advance, and determining the target color gain of the display terminal to be adjusted according to the pre-fitted straight line equation, a more accurate target color gain can be obtained, the accuracy of white balance adjustment is improved, and thus the display quality of the display terminal is improved.

[0105] Each module in the above-mentioned white balance adjustment device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0106] In one embodiment, a computer device is provided. The computer device may be a control terminal, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile 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 operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a white balance adjustment method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, a trackball or a touch pad set on the computer device housing, or an external keyboard, touch pad or mouse, etc.

[0107] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0108] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0109] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0110] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0111] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0112] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0113] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0114] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A white balance adjustment method, characterized in that: The method comprises: Acquire color temperature data of a display terminal to be adjusted under a preset color gain; the color temperature data is color temperature data measured for a picture displayed by the display terminal to be adjusted after the color gain of the display terminal to be adjusted is adjusted according to the preset color gain; the number of the preset color gain and the number of the color temperature data are two groups respectively; the color temperature data includes a horizontal coordinate value of a color coordinate and a vertical coordinate value of a color coordinate; Substitute the difference between the preset gains of the R channel in the two sets of preset color gains and the difference between the abscissa values ​​of the color coordinates in the two sets of color temperature data into the pre-fitted first straight line equation to obtain the R channel target gain; the first straight line equation is expressed as follows: a and b represent parameters of the first straight line equation, and the values ​​of a and b are obtained after pre-linear fitting; cx1 and cx2 represent the horizontal coordinate values ​​of the color coordinates in the two sets of color temperature data respectively; rgain1 and rgain2 represent the R channel preset gains in the two sets of preset color gains respectively; RGain represents the R channel target gain; the first straight line equation is obtained by linear fitting based on the horizontal coordinate values ​​of the color coordinates in the two sets of reference color temperature data corresponding to the two sets of preset color gains of multiple reference display terminals of the same model and the R channel preset color gains in the two sets of preset color gains; Substituting the difference between the preset gains of the B channel in the two sets of preset color gains and the difference between the ordinate values ​​of the color coordinates in the two sets of color temperature data into the pre-fitted second straight line equation to obtain the target gain of the B channel; The second straight line equation is expressed as follows: c and d represent parameters of the second straight line equation, the values ​​of c and d are obtained after pre-linear fitting, cy1 and cy2 respectively represent the ordinate values ​​of the color coordinates in the two sets of color temperature data, bgain1 and bgain2 respectively represent the B channel preset gains in the two sets of preset color gains, and BGain represents the B channel target gain; the second straight line equation is obtained by linear fitting based on the ordinate values ​​of the color coordinates in the two sets of reference color temperature data corresponding to the two sets of preset color gains and the B channel preset color gains in the two sets of preset color gains of multiple reference display terminals of the same model; The color gain of the display terminal to be adjusted is adjusted according to the B channel target gain and the R channel target gain to perform white balance adjustment.

2. The method according to claim 1, characterized in that The step of obtaining the color temperature data of the display terminal to be adjusted under a preset color gain includes: Controlling the display terminal to be adjusted to output a white field image; Controlling the display terminal to be adjusted to adjust the color gain according to the preset color gain under the white field image; After the display terminal to be adjusted adjusts the color gain, the color temperature data measured for the picture displayed by the display terminal to be adjusted is acquired to obtain the color temperature data of the display terminal to be adjusted under the preset color gain.

3. The method according to claim 1, characterized in that Before obtaining the color temperature data of the display terminal to be adjusted under a preset color gain, the method further includes: Obtain two sets of reference color temperature data corresponding to two sets of preset color gains of multiple reference display terminals of the same model; A straight line fitting is performed according to the difference between the two sets of preset color gains and the difference between the two sets of reference color temperature data of each reference display terminal to obtain a pre-fitted first straight line equation and a second straight line equation.

4. The method according to claim 1, characterized in that: After obtaining the color temperature data of the display terminal to be adjusted under a preset color gain, the method further includes: If the reference color temperature data contains approximate color temperature data of the color temperature data of the display terminal to be adjusted, taking the color gain corresponding to the approximate color temperature data as the target color gain, and adjusting the color gain of the display terminal to be adjusted according to the target color gain; The approximate color temperature data is reference color temperature data whose difference from the color temperature data of the display terminal to be adjusted is less than or equal to a preset threshold.

5. The method according to any one of claims 1 to 4, characterized in that After obtaining the color temperature data of the display terminal to be adjusted under a preset color gain, the method further includes: According to the color temperature data of the display terminal to be adjusted under the preset color gain, the reference color temperature data and the preset color gain, straight line fitting is re-performed to obtain a re-fitted straight line equation; the re-fitted straight line equation is used to perform white balance adjustment on subsequent display terminals.

6. A white balance adjustment device, characterized in that: The device comprises: A data acquisition module, used to acquire color temperature data of a display terminal to be adjusted under a preset color gain; the color temperature data is color temperature data measured for a picture displayed by the display terminal to be adjusted after the color gain of the display terminal to be adjusted is adjusted according to the preset color gain; the number of the preset color gain and the number of the color temperature data are two groups respectively; the color temperature data includes a horizontal coordinate value of a color coordinate and a vertical coordinate value of a color coordinate; The gain determination module is used to substitute the difference between the preset gains of the R channel in the two sets of preset color gains and the difference between the horizontal coordinate values ​​of the color coordinates in the two sets of color temperature data into the pre-fitted first straight line equation to obtain the R channel target gain; the first straight line equation is expressed as follows: and b represent parameters of the first linear equation, and the values ​​of a and b are obtained after linear fitting in advance; cx1 and cx2 represent the horizontal coordinate values ​​of the color coordinates in the two sets of color temperature data respectively; rgain1 and rgain2 represent the R channel preset gains in the two sets of preset color gains respectively; RGain represents the R channel target gain; the first linear equation is obtained by linear fitting based on the horizontal coordinate values ​​of the color coordinates in the two sets of reference color temperature data corresponding to the two sets of preset color gains and the R channel preset color gains in the two sets of preset color gains of multiple reference display terminals of the same model; the difference between the B channel preset gains in the two sets of preset color gains and the difference between the vertical coordinate values ​​of the color coordinates in the two sets of color temperature data are substituted into the pre-fitted second linear equation to obtain the B channel target gain; the second linear equation is expressed as follows: and d represent parameters of the second straight line equation, the values ​​of c and d are obtained after pre-linear fitting, cy1 and cy2 respectively represent the ordinate values ​​of the color coordinates in the two sets of color temperature data, bgain1 and bgain2 respectively represent the B channel preset gains in the two sets of preset color gains, and BGain represents the B channel target gain; the second straight line equation is obtained by linear fitting based on the ordinate values ​​of the color coordinates in the two sets of reference color temperature data corresponding to the two sets of preset color gains and the B channel preset color gains in the two sets of preset color gains of multiple reference display terminals of the same model; The gain adjustment module is used to adjust the color gain of the display terminal to be adjusted according to the B channel target gain and the R channel target gain to perform white balance adjustment.

7. The device according to claim 6, characterized in that The data acquisition module is further used to: control the display terminal to be adjusted to output and display a white field image; Controlling the display terminal to be adjusted to adjust the color gain according to the preset color gain under the white field image; After the display terminal to be adjusted adjusts the color gain, the color temperature data measured for the picture displayed by the display terminal to be adjusted is acquired to obtain the color temperature data of the display terminal to be adjusted under the preset color gain.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • White balance adjusting method and shooting terminal

    CN105554489A

  • White balance adjustment method and system, storage medium and electronic equipment

    CN112820248A