Display panel white balance adjustment method, device, equipment and medium
By calculating and updating the subpixel values and coefficient matrix for each target grayscale, the problem of long and low accuracy of white balance adjustment in the prior art is solved, and fast and accurate white balance adjustment is achieved, and the color performance of the display system is improved.
Patent Information
- Application Number
- CN202411908514.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-08
AI Technical Summary
The existing white balance adjustment technology takes a long time and lacks accuracy, making it difficult to accurately restore white in different light source environments, resulting in unnatural color of the picture.
For each target grayscale, the required target subpixel value is calculated based on the current white balance parameter value, the current coefficient matrix, and the target white balance parameter value, and the white balance parameter is gradually adjusted by updating the coefficient matrix until the target parameter value is reached.
The rapid and accurate adjustment of the gray-level white balance parameters of each target is achieved, which improves the accuracy of color performance, shortens the white balance adjustment time, and improves the color accuracy of the entire display system.
Smart Images

Figure CN119785735A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of display panels, and in particular to a method, device, electronic device and medium for adjusting white balance of a display panel. Background Art
[0002] White balance is a key indicator to measure the accuracy of mixing the three primary colors of red, green and blue to generate pure white. Its core is to ensure that white objects can be truly and accurately restored to white under any lighting environment, thereby maintaining the natural color balance of the picture.
[0003] In order to improve the color authenticity and brightness suitability of the images presented by the display panel and make them more in line with the visual preferences of the human eye, it is particularly important to accurately adjust the white balance. However, the current white balance adjustment technology still has two major bottlenecks: one is that the adjustment process takes a long time; the other is that the adjustment accuracy needs to be improved.
[0004] Therefore, a solution is needed to improve the existing white balance adjustment technology. Summary of the invention
[0005] In view of this, the present application provides a display panel white balance adjustment method, device, electronic device and medium.
[0006] A first aspect provides a display panel white balance adjustment method, the method comprising: for each target grayscale, performing the following adjustment steps, calculating the target sub-pixel value required for this adjustment based on the current white balance parameter value, the current coefficient matrix and the target parameter value of the white balance parameter corresponding to the target grayscale; obtaining the white balance parameter value of the display panel after the target sub-pixel value calculated according to this adjustment is displayed; calculating and updating the current coefficient matrix as the current coefficient matrix for the next adjustment according to the white balance parameter values after at least two previous adjustment steps and the respective corresponding sub-pixel values, and using the white balance parameter value after this adjustment as the current white balance parameter value for the next adjustment; repeating the adjustment steps so that the white balance parameter value after the target grayscale is adjusted meets the target parameter value requirement; wherein the current coefficient matrix is used to represent the current corresponding relationship between the white balance parameter value and the sub-pixel value.
[0007] According to a second aspect, a display panel white balance adjustment device is provided, which includes an adjustment control unit, which is used to control each unit to execute an adjustment process for each target grayscale so that the white balance parameter value after the target grayscale is adjusted meets the target parameter value requirement: a target sub-pixel calculation unit, which is used to calculate the target sub-pixel value required for this adjustment based on the current white balance parameter value, the current coefficient matrix and the target parameter value of the white balance parameter corresponding to the target grayscale; an acquisition unit, which is used to acquire the white balance parameter value of the display panel after the target sub-pixel value calculated according to this adjustment is displayed; an update unit, which is used to calculate and update the current coefficient matrix according to the white balance parameter values after at least two previous adjustment steps and the corresponding sub-pixel values, as the current coefficient matrix for the next adjustment, and use the white balance parameter value after this adjustment as the current white balance parameter value for the next adjustment; wherein the current coefficient matrix is used to represent the current corresponding relationship between the white balance parameter value and the sub-pixel value.
[0008] The third aspect provides an electronic device, which may include a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of any one of the display panel white balance adjustment methods provided in the embodiments of the present application are implemented.
[0009] A fourth aspect provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed by a processor, the steps of any one of the display panel white balance adjustment methods provided in the embodiments of the present application are implemented.
[0010] In summary, the display panel white balance adjustment method, device, electronic device and medium provided by the present application have the following beneficial effects:
[0011] By performing the following adjustment steps for each target grayscale, based on the current white balance parameter value, the current coefficient matrix and the target parameter value of the white balance parameter corresponding to the target grayscale, the target sub-pixel value required for this adjustment is calculated, the white balance parameter value after the display panel displays the target sub-pixel value calculated according to this adjustment is obtained, and the current coefficient matrix is calculated and updated according to the white balance parameter values after at least the last two adjustment steps and the corresponding sub-pixel values, as the current coefficient matrix for the next adjustment, and the white balance parameter value after this adjustment is used as the current white balance parameter value for the next adjustment, and the adjustment process is repeated until the white balance parameter value after the target grayscale adjustment meets the target parameter value requirement. In this way, the present application realizes the rapid and accurate adjustment of the white balance parameters of each target grayscale by updating the current coefficient matrix that can represent the corresponding relationship between the white balance parameter value and the sub-pixel value, so that the color performance of each target grayscale is more accurate, thereby shortening the white balance adjustment time and improving the color accuracy of the entire display system. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0013] Figure 1 A schematic diagram showing a flow chart of a display panel white balance adjustment method provided in an embodiment of the present application;
[0014] Figure 2 A schematic structural diagram of a display panel white balance adjustment device provided in an embodiment of the present application is shown;
[0015] Figure 3 A schematic structural diagram of an electronic device provided according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0016] In order to make the above and other features and advantages of the present application more clear, the present application is further described below in conjunction with the accompanying drawings. It should be understood that the specific embodiments given herein are for the purpose of explaining to those skilled in the art and are only exemplary and not restrictive.
[0017] In the following description, many specific details are set forth to provide a thorough understanding of the present application. However, it is apparent to those skilled in the art that specific details need not be adopted to practice the present application. In other cases, well-known steps or operations are not described in detail to avoid blurring the present application.
[0018] On one hand, an embodiment of the present application provides a display panel white balance adjustment method, which can be performed by a display panel white balance adjustment device. Figure 1 A schematic diagram showing a flow chart of a display panel white balance adjustment method provided in an embodiment of the present application is shown as follows: Figure 1 As shown, the display panel white balance adjustment method may include performing the following adjustment steps for each target grayscale, wherein the target grayscale may be any grayscale from 0 to 255, and the adjustment steps may include the following steps.
[0019] S11, calculating a target sub-pixel value required for this adjustment based on the current white balance parameter value, the current coefficient matrix and the target parameter value of the white balance parameter corresponding to the target grayscale.
[0020] The white balance parameters involved in the embodiments of the present application include brightness parameters, abscissa parameters in the color coordinate system, and ordinate parameters in the color coordinate system. The target parameter value of the white balance parameter corresponding to the target grayscale may refer to the specific value of the white balance parameter expected to be achieved for the target grayscale when adjusting the white balance.
[0021] The coefficient matrix involved in the embodiment of the present application can be used to represent the current correspondence between the white balance parameter value and the sub-pixel value. The current coefficient matrix can be the most recently calculated coefficient matrix.
[0022] It should be noted that the white balance parameter value is equal to the coefficient matrix multiplied by the sub-pixel value, which can be expressed as:
[0023]
[0024] Among them, Y represents the brightness parameter value, x represents the horizontal coordinate parameter value of the color temperature coordinate system, y represents the vertical coordinate parameter value of the color temperature coordinate system, [] represents the coefficient matrix, R represents the red sub-pixel value, G represents the green sub-pixel value, and B represents the blue sub-pixel value.
[0025] In one embodiment of the present application, the current sub-pixel value is obtained based on the current white balance parameter value and the current coefficient matrix, and the ideal sub-pixel value is obtained based on the target parameter value and the current coefficient matrix. The ideal sub-pixel value is subtracted from the current sub-pixel value to obtain the target sub-pixel value required for this adjustment.
[0026] S12, obtaining a white balance parameter value after the display panel displays the target sub-pixel value calculated according to the current adjustment.
[0027] In an embodiment of the present application, after the sub-pixel value of the display panel is adjusted according to the target sub-pixel value required for the current adjustment calculated in S11, the white balance parameter value of the current adjustment displayed on the display panel is obtained.
[0028] S13, calculate and update the current coefficient matrix according to the white balance parameter values after at least the last two adjustment steps and the corresponding sub-pixel values, as the current coefficient matrix for the next adjustment, and use the white balance parameter values after this adjustment as the current white balance parameter values for the next adjustment.
[0029] The sub-pixel value corresponding to the adjustment step involved in the embodiment of the present application can be the sub-pixel value adjusted according to the target sub-pixel value required for this adjustment. The sub-pixel value can be expressed as RGB, including red R sub-pixel value, green G sub-pixel value and blue B sub-pixel value.
[0030] In one embodiment of the present application, the white balance parameter values after two or more adjustment steps and the sub-pixel values corresponding to each adjustment step are collected. A set of equations related to the coefficient matrix is constructed using all the above white balance parameter values and all the sub-pixel values. A new coefficient matrix can be obtained by solving the set of equations. The current coefficient matrix is updated using the new coefficient matrix and used as the current coefficient matrix for the next adjustment. In addition, the white balance parameter value obtained after this adjustment is used as the current white balance parameter value for the next adjustment.
[0031] S14, repeating the adjustment step so that the white balance parameter value after the target grayscale is adjusted meets the requirement of the target parameter value.
[0032] The repeated adjustment step involved in the embodiment of the present application may refer to repeating steps S11 to S13.
[0033] The requirement that the white balance parameter value after the target grayscale adjustment involved in the embodiment of the present application reaches the target parameter value may mean that the difference between the white balance parameter value and the corresponding ideal white balance parameter value is within a specified threshold range. The ideal white balance parameter value is any value within the target parameter value range. The target parameter value range may be calculated based on the target parameter value and a preset threshold.
[0034] In an embodiment of the present application, after executing an adjustment step, that is, after obtaining the adjusted white balance parameter value, it is determined whether the white balance parameter value meets the target parameter value requirement. If so, the adjustment step is stopped; if not, the process returns to S11 and the adjustment steps S11 to S13 are re-executed.
[0035] In the above embodiment, the white balance parameters of each target grayscale are quickly and accurately adjusted by updating the coefficient matrix that can represent the correspondence between the white balance parameter values and the sub-pixel values, so that the color representation of each target grayscale is more accurate, thereby shortening the white balance adjustment time and improving the display effect of the entire display system.
[0036] In some embodiments, the display panel white balance adjustment method also includes obtaining target parameter values of white balance parameters corresponding to the target grayscale, specifically including: obtaining white balance parameter values after calibration of the lowest grayscale and the highest grayscale; based on the white balance parameter values after calibration of the lowest grayscale and the highest grayscale, obtaining target parameter values of brightness parameters in the white balance parameters corresponding to each target grayscale.
[0037] When the white balance parameters include a horizontal coordinate parameter and a vertical coordinate parameter in the color coordinate system, the target parameter values of the horizontal coordinate parameter and the vertical coordinate parameter in the color coordinate system are usually set manually, and the target parameter values of the horizontal coordinate parameter and the vertical coordinate parameter in the color coordinate system of different target grayscales are the same.
[0038] In an embodiment of the present application, target parameter values of brightness parameters corresponding to multiple target grayscales between the lowest grayscale and the highest grayscale may be obtained by using an interpolation algorithm based on the calibrated white balance parameter values of the lowest grayscale and the highest grayscale.
[0039] In some embodiments, before executing the adjustment step for the first time, the display panel white balance adjustment method also includes an initialization step, specifically including obtaining the initial white balance parameter value of the display panel after displaying at least two preset sub-pixel values; calculating a coefficient matrix based on at least two initial white balance parameter values and their corresponding preset sub-pixel values as the current coefficient matrix when executing the adjustment step for the first time.
[0040] The at least two preset sub-pixel values involved in the embodiment of the present application may be two preset sub-pixel values or more than two preset sub-pixel values, wherein each preset sub-pixel value is different, for example, each preset sub-pixel value differs by 5.
[0041] In one embodiment of the present application, the first current coefficient matrix can be determined through an initialization step, that is, the current coefficient matrix when S11 is executed for the first time. Specifically, at least two preset sub-pixel values are determined, the display panel is adjusted according to the preset sub-pixel values, at least two groups of preset sub-pixel values and initial white balance parameter values are obtained, at least two groups of preset sub-pixel values and initial white balance parameter values are substituted into the equation group constructed based on the coefficient matrix, the equation group is solved, and the coefficient matrix is obtained, and the coefficient matrix obtained this time is used as the current coefficient matrix when the adjustment step is executed for the first time.
[0042] It should be noted that, when there are more than two sets of preset sub-pixel values and initial white balance parameter values, an initial coefficient matrix can be obtained and used as the current coefficient matrix when the adjustment step is performed for the first time.
[0043] In the above embodiment, an initial and relatively accurate coefficient matrix can be obtained through the initialization step, so that an ideal white balance state can be achieved more quickly and accurately in the subsequent adjustment process.
[0044] In some embodiments, obtaining the initial white balance parameter value after the display panel displays according to at least two preset sub-pixel values respectively includes: obtaining a first preset sub-pixel value and obtaining the first initial white balance parameter value after the display panel displays according to the first preset sub-pixel value; when it is determined that the first initial white balance parameter value does not meet the target parameter value requirement, obtaining the determined second preset sub-pixel value after adjusting the preset step value of the first preset sub-pixel value, and obtaining the second initial white balance parameter value after the display panel displays according to the second preset sub-pixel value.
[0045] The first preset sub-pixel value and the preset step value involved in the embodiment of the present application can be set according to the adjustment requirements. The second preset sub-pixel value differs from the first preset sub-pixel value by a preset step value. Optionally, the preset step value can be ±5.
[0046] In an embodiment of the present application, a first preset sub-pixel value is obtained according to a user setting, and the display panel is controlled to display according to the first preset sub-pixel, and the white balance parameter of the display panel at this time is obtained and used as the first initial white balance parameter value. The first initial white balance parameter value is compared with the target parameter value. If the difference between the two is not within an acceptable range, it is determined that the first initial white balance parameter value does not meet the requirement of the target parameter value, and the first preset sub-pixel value is continuously adjusted according to the preset step value to obtain a second preset sub-pixel value.
[0047] The display panel is controlled to display according to the second preset sub-pixel value, and the white balance parameter of the display panel at this time is obtained, and the white balance parameter is used as the second initial white balance parameter value.
[0048] It should be noted that if the first initial white balance parameter value reaches the requirement of the target parameter value, the adjustment step is stopped.
[0049] In the above embodiment, when the white balance parameter value after the first initial adjustment does not meet the target parameter value requirement, a second preset sub-pixel value is obtained based on the first preset sub-pixel value by presetting the step value, and the white balance parameter value is obtained again, so that the amplitude of the next adjustment can be accurately controlled, which helps to gradually approach the ideal white balance state.
[0050] Since the process parameters of the display panels in the same batch are not much different, multiple display panels can be adjusted according to the historical adjustment data, thereby improving the adjustment efficiency of the multiple display panels.
[0051] In some embodiments, the display panel white balance adjustment method also includes a saving step, specifically including: when the white balance parameter value after the current target grayscale adjustment meets the target parameter value requirement, saving the current coefficient matrix as the historical coefficient matrix corresponding to the current target grayscale.
[0052] The current target grayscale involved in the embodiment of the present application is each target grayscale among multiple target grayscales. The current coefficient matrix refers to the current coefficient matrix used for the last adjustment. Among them, the last adjustment refers to the current adjustment in which the adjusted white balance parameter value meets the requirement of the target parameter value.
[0053] The historical coefficient matrix is used as the current coefficient matrix when performing the first adjustment of the same target grayscale on the next display panel. That is, before performing the first adjustment step of the target grayscale on the next display panel, the historical coefficient matrix corresponding to the target grayscale can be determined as the current coefficient matrix according to the target grayscale.
[0054] For example, when adjusting a display panel, the current coefficient matrix corresponding to grayscale 120 is M, and M is saved as the historical coefficient matrix corresponding to grayscale 120. When adjusting another display panel, M can be used as the current coefficient matrix of the first adjustment step of grayscale 120.
[0055] In one embodiment of the present application, for each target grayscale, when the white balance parameter value of the target grayscale reaches the target parameter value requirement, the current coefficient matrix adjusted this time is used as the historical coefficient matrix of the target grayscale and is associated with the corresponding target grayscale and saved in the database.
[0056] In the above embodiment, the saved historical coefficient matrix can reduce the initial steps when performing white balance adjustment on the next display panel, which helps to quickly adjust the white balance state.
[0057] In some embodiments, since the white balance parameters include: brightness parameter, horizontal coordinate parameter in the color coordinate system and vertical coordinate parameter in the color coordinate system, the white balance parameter value after the target grayscale is adjusted meets the target parameter value requirement, specifically including: the brightness parameter value after the target grayscale is adjusted, the horizontal coordinate parameter value in the color coordinate system and the vertical coordinate parameter value in the color coordinate system all meet the target parameter value requirement.
[0058] The target parameter value requirements involved in the embodiments of the present application include target parameter value requirements for brightness parameters, target parameter value requirements for horizontal coordinate parameters in the color coordinate system, and target parameter value requirements for vertical coordinate parameters in the color coordinate system.
[0059] The requirements that the brightness parameter value after target grayscale adjustment, the horizontal axis parameter value in the color coordinate system, and the vertical axis parameter value in the color coordinate system all meet the target parameter values involved in the embodiments of the present application may refer to the requirement that the brightness parameter value after target grayscale adjustment meets the target parameter value of the brightness parameter, the requirement that the horizontal axis parameter value meets the target parameter value of the horizontal axis parameter, and the requirement that the vertical axis parameter value meets the target parameter value of the vertical axis parameter.
[0060] In one embodiment of the present application, when the difference between the brightness parameter value after target grayscale adjustment and the ideal brightness parameter value is within a specified threshold range, it can be considered that the brightness parameter value meets the requirement of the target brightness parameter value. The ideal brightness parameter value is any value within the brightness target parameter value range.
[0061] If the difference between the horizontal coordinate parameter value and the ideal horizontal coordinate parameter value in the color coordinate system after the target grayscale adjustment is within the specified threshold range, it can be considered that the horizontal coordinate parameter value meets the requirement of the target parameter value of the horizontal coordinate parameter. The ideal horizontal coordinate parameter value is any value within the horizontal coordinate target parameter value range.
[0062] If the difference between the ordinate parameter value and the ideal ordinate parameter value in the color coordinate system after the target grayscale adjustment is within the specified threshold range, it can be considered that the ordinate parameter value meets the requirement of the target parameter value of the ordinate parameter. The ideal ordinate parameter value is any value within the range of the ordinate target parameter value.
[0063] In the above embodiment, by ensuring that the target grayscale brightness parameter value, the abscissa parameter value in the color coordinate system, and the ordinate parameter value in the color coordinate system all meet the target parameter value requirements, the display panel can be displayed more clearly and the image can be more realistic.
[0064] In some embodiments, calculating and updating the current coefficient matrix based on the white balance parameter values after at least the last two adjustment steps and the corresponding sub-pixel values includes: using the following set of equations to calculate the coefficients a1, a2 and a3 corresponding to each white balance parameter in the coefficient matrix.
[0065]
[0066] Among them, R1, G1, B1 and X1 respectively represent the sub-pixel values and white balance parameter values of the first adjustment in three adjacent adjustments; R2, G2, B2 and X2 respectively represent the sub-pixel values and white balance parameter values of the second adjustment in three adjacent adjustments; R3, G3, B3 and X3 respectively represent the sub-pixel values and white balance parameter values after the current adjustment in three adjacent adjustments.
[0067] Thus, according to the multiple groups of sub-pixel values and white balance parameter values adjusted three times adjacently, Formula 2 is solved to obtain the specific values of a1, a2 and a3, and the matrix composed of a1, a2 and a3 is used as the current coefficient matrix.
[0068] In some embodiments of the present application, the white balance parameter value may include a brightness value, a horizontal coordinate value of a color temperature coordinate system, and a vertical coordinate value of a color temperature coordinate system.
[0069] X1 may include the brightness value Y1 during the first adjustment, the horizontal coordinate value x1 of the color temperature coordinate system, and the vertical coordinate value y1 of the color temperature coordinate system. X2 may include the brightness value Y2 during the second adjustment, the horizontal coordinate value x2 of the color temperature coordinate system, and the vertical coordinate value y2 of the color temperature coordinate system. X3 may include the brightness value Y3 during the third adjustment, the horizontal coordinate value x3 of the color temperature coordinate system, and the vertical coordinate value y3 of the color temperature coordinate system. And a1 may be a 11 、a21 or a 31 , a2 can be a 12 、a 22 or a 23, a3 can be a 13、 a 23 or a33 。
[0070] The system of equations regarding brightness values can be expressed as the following formula.
[0071]
[0072] The equation group about the horizontal axis in the color temperature coordinate system can be expressed as the following formula.
[0073]
[0074] The set of equations about the ordinate in the color temperature coordinate system can be expressed as the following formula.
[0075]
[0076] According to the sub-pixel values and white balance parameter values corresponding to three adjacent adjustments, Formula 3 to Formula 5 are solved to obtain each element in the coefficient matrix.
[0077] In the above embodiment, the relationship between sub-pixels and white balance parameters is used to construct a set of equations, and the set of equations is solved through multiple adjacent adjusted data to obtain a coefficient matrix that can accurately reflect the relationship between sub-pixels and white balance parameters.
[0078] In some embodiments, calculating and updating the current coefficient matrix based on the white balance parameter values after at least two previous adjustment steps and the corresponding sub-pixel values includes: using the following set of equations to calculate coefficients a1, a2 and a3 corresponding to each white balance parameter in the coefficient matrix.
[0079]
[0080] Among them, R1, G1, B1 and X1 respectively represent the sub-pixel value and white balance parameter value at the time of the previous adjustment; R2, G2, B2 and X2 respectively represent the sub-pixel value and white balance parameter value after the current adjustment.
[0081] Thus, according to the multiple groups of sub-pixel values and white balance parameter values adjusted twice adjacently, Formula 6 is solved to obtain the specific values of a1, a2 and a3, and the matrix composed of a1, a2 and a3 is used as the current coefficient matrix.
[0082] In some embodiments of the present application, the white balance parameter value may include a brightness value, a horizontal coordinate value of a color temperature coordinate system, and a vertical coordinate value of a color temperature coordinate system.
[0083] X1 may include the brightness value Y1 during the first adjustment, the horizontal coordinate value x1 of the color temperature coordinate system, and the vertical coordinate value y1 of the color temperature coordinate system. X2 may include the brightness value Y2 during the second adjustment, the horizontal coordinate value x2 of the color temperature coordinate system, and the vertical coordinate value y2 of the color temperature coordinate system. And a1 may be a 11 、a 21 or a 31 , a2 can be a 12 、a 22 or a 23 , a3 can be a 13 、a 23 or a 33 .
[0084] The system of equations regarding brightness values can be expressed as the following formula.
[0085]
[0086] The equation group about the horizontal axis in the color temperature coordinate system can be expressed as the following formula.
[0087]
[0088] The set of equations about the ordinate in the color temperature coordinate system can be expressed as the following formula.
[0089]
[0090] According to the sub-pixel values and white balance parameter values corresponding to the current adjustment and the previous adjustment, Formula 7 to Formula 9 are solved to obtain each element in the coefficient matrix.
[0091] In the above embodiment, a group of equations is constructed using the relationship between sub-pixels and each white balance parameter and the relationship between each coefficient, and the group of equations is solved using data from two adjacent adjustments to obtain a coefficient matrix that can accurately reflect the relationship between sub-pixels and each white balance parameter.
[0092] In order to achieve a more accurate white balance adjustment, multiple brightness levels can be set for adjustment, that is, multiple brightness target parameter values of different levels can be set for adjustment.
[0093] In some embodiments, the white balance parameter includes a brightness parameter. Before performing the adjustment step for the first time, the display panel white balance adjustment method further includes: obtaining a plurality of brightness target parameter values of the brightness parameter corresponding to a plurality of gears one by one, so as to perform white balance adjustment according to the brightness target parameter values in the adjustment step.
[0094] The gears involved in the embodiments of the present application may refer to brightness gears. Each brightness gear is different, for example, each brightness gear differs by 20.
[0095] In an embodiment of the present application, the brightness target parameter values of multiple different gears can be determined according to the maximum brightness parameter, the brightness tolerance value and the number of gears, so that more accurate white balance adjustment can be achieved.
[0096] In some embodiments, after executing and completing the current gear adjustment step, if the preset stop condition is met and the white balance parameter value after the target grayscale adjustment fails to reach the target parameter value requirement, the display panel white balance adjustment method also includes automatically switching the brightness target parameter value corresponding to the next gear according to the order of the multiple brightness target parameter values from large to small, so as to perform white balance adjustment according to the brightness target parameter value of the next gear in the adjustment step.
[0097] The preset stop condition involved in the embodiment of the present application may be that the number of adjustments reaches a preset number. The preset number can be set according to demand. For example, the preset number can be 200.
[0098] In one embodiment of the present application, during the adjustment process of the brightness target parameter value corresponding to the current gear, if the number of adjustments reaches a preset number and the white balance parameter value obtained in this adjustment does not meet the target parameter value requirement, switch to the brightness target parameter value corresponding to the next gear, and perform white balance adjustment according to the brightness target parameter value corresponding to the next gear.
[0099] It should be noted that the brightness target parameters corresponding to the multiple gears are arranged in descending order, so the brightness target parameter value corresponding to the next gear is smaller than the brightness target parameter value corresponding to the current gear.
[0100] Another aspect of the present application provides a display panel white balance adjustment device. Figure 2 A schematic diagram of the structure of a display panel white balance adjustment device provided in an embodiment of the present application is shown. Figure 2 As shown, the display panel white balance adjustment device 20 may include the following units.
[0101] The adjustment control unit 21 is used to control each unit to perform an adjustment process for each target grayscale, so that the white balance parameter value after the target grayscale is adjusted meets the requirement of the target parameter value.
[0102] The target sub-pixel calculation unit 22 is used to calculate the target sub-pixel value required for this adjustment based on the current white balance parameter value, the current coefficient matrix and the target parameter value of the white balance parameter corresponding to the target grayscale. The current coefficient matrix is used to represent the current corresponding relationship between the white balance parameter value and the sub-pixel value.
[0103] The acquisition unit 23 is used to acquire the white balance parameter value after the display panel displays the target sub-pixel value calculated according to the current adjustment.
[0104] The updating unit 24 is used to calculate and update the current coefficient matrix according to the white balance parameter values after at least the last two adjustment steps and the corresponding sub-pixel values, as the current coefficient matrix for the next adjustment, and to use the white balance parameter values after this adjustment as the current white balance parameter values for the next adjustment.
[0105] In some embodiments, the display panel white balance adjustment device 20 may further include the following units.
[0106] The initial value acquisition unit is used to acquire the initial white balance parameter value after the display panel displays at least two preset sub-pixel values before the adjustment step is performed for the first time.
[0107] The initial matrix calculation unit is used to calculate the coefficient matrix according to at least two of the initial white balance parameter values and the corresponding preset sub-pixel values, so as to serve as the current coefficient matrix when the adjustment step is performed for the first time.
[0108] In some embodiments, the initial matrix calculation unit is specifically used to obtain a first preset sub-pixel value and to obtain a first initial white balance parameter value after the display panel displays according to the first preset sub-pixel value; when it is determined that the first initial white balance parameter value does not meet the target parameter value requirement, the determined second preset sub-pixel value is obtained after the first preset sub-pixel value is adjusted by a preset step value, and the second initial white balance parameter value after the display panel displays according to the second preset target sub-pixel value is obtained.
[0109] In some embodiments, the display panel white balance adjustment device 20 may further include the following units.
[0110] The saving unit is used to save the current coefficient matrix as the historical coefficient matrix corresponding to the current target grayscale when the white balance parameter value after the current target grayscale adjustment reaches the target parameter value requirement.
[0111] The matrix determination unit is used to perform a first adjustment step on the next display panel, and determine, according to the target grayscale, a historical coefficient matrix corresponding to the target grayscale as the current coefficient matrix.
[0112] In some embodiments, the white balance parameter value includes: a brightness parameter value, a horizontal coordinate parameter value in a color coordinate system, and a vertical coordinate parameter value in a color coordinate system.
[0113] The adjustment control unit 21 is specifically used to ensure that the brightness parameter value, the horizontal coordinate parameter value in the color coordinate system and the vertical coordinate parameter value in the color coordinate system after the target grayscale is adjusted all meet the requirements of the target parameter value.
[0114] In some embodiments, the sub-pixels include: R sub-pixels, G sub-pixels and B sub-pixels. The updating unit 24 is specifically configured to calculate the coefficients a1, a2 and a3 corresponding to each target white balance parameter in the coefficient matrix using the following equation group.
[0115]
[0116] Among them, R1, G1, B1 and X1 respectively represent the sub-pixel values and white balance parameter values of the first adjustment in three adjacent adjustments; R2, G2, B2 and X2 respectively represent the sub-pixel values and white balance parameter values of the second adjustment in three adjacent adjustments; R3, G3, B3 and X3 respectively represent the sub-pixel values and white balance parameter values after the current adjustment in three adjacent adjustments.
[0117] In some embodiments, the sub-pixels include: R sub-pixels, G sub-pixels and B sub-pixels. The updating unit 24 is specifically configured to calculate the coefficients a1, a2 and a3 corresponding to each target white balance parameter in the coefficient matrix using the following equation group.
[0118]
[0119] Among them, R1, G1, B1 and X1 respectively represent the sub-pixel value and white balance parameter value at the time of the previous adjustment; R2, G2, B2 and X2 respectively represent the sub-pixel value and white balance parameter value after the current adjustment.
[0120] In some embodiments, the white balance parameter includes a brightness parameter, and the display panel white balance adjustment device 20 may further include the following units.
[0121] The gear acquisition unit is used to acquire multiple brightness target parameter values of brightness parameters corresponding to multiple gears one by one before the adjustment step is performed for the first time, so as to perform the white balance adjustment according to the brightness target parameter values in the adjustment step.
[0122] The gear switching unit is used to automatically switch the brightness target parameter value corresponding to the next gear according to the order of the multiple brightness target parameter values from large to small after the current gear adjustment step is completed, if the preset stop condition is met but the white balance parameter value after the target grayscale adjustment fails to reach the target parameter value requirement, so as to perform white balance adjustment according to the brightness target parameter value of the next gear in the adjustment step.
[0123] It should be understood that the specific features, operations and details described hereinabove with respect to the method of the present application may also be similarly applied to the device and system of the present application, or vice versa. In addition, each step of the method of the present application described above may be performed by a corresponding component or unit of the device or system of the present application.
[0124] It should be understood that each module / unit of the device of the present application can be implemented in whole or in part by software, hardware, firmware or a combination thereof. Each module / unit can be embedded in the processor of the electronic device or independent of the processor in the form of hardware or firmware, or can be stored in the memory of the electronic device in the form of software for the processor to call to perform the operation of each module / unit. Each module / unit can be implemented as an independent component or module, or two or more modules / units can be implemented as a single component or module.
[0125] Those skilled in the art will appreciate that the method steps of the present application can be completed by instructing related hardware such as electronic devices or processors through a computer program, and the computer program can be stored in a non-temporary computer-readable storage medium, and the computer program causes the steps of the present application to be executed when it is executed. Depending on the circumstances, any reference to memory, storage or other media herein may include non-volatile or volatile memory. Examples of non-volatile memory include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk, etc. Examples of volatile memory include random access memory (RAM), external cache memory, etc.
[0126] In yet another aspect of the present application, an electronic device is provided. Figure 3 A schematic diagram of the structure of an electronic device provided according to an embodiment of the present application is shown. Figure 3 As shown, the electronic device 30 includes a processor 31, a memory 32 and a program stored in the memory and executable on the processor. When the program is executed by the processor, the steps of the display panel white balance adjustment method provided in any of the above embodiments are implemented.
[0127] The electronic device 30 can be broadly a server, a terminal, or any other electronic device having necessary computing and / or processing capabilities.
[0128] In one embodiment, the electronic device 30 may include a processor, a memory, a network interface, a communication interface, etc. connected through a system bus. The processor of the electronic device 30 may be used to provide necessary computing, processing and / or control capabilities. The memory of the electronic device 30 may include a non-volatile storage medium and an internal memory. The non-volatile storage medium may store an operating system, a computer program, etc. The internal memory may provide an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface and the communication interface of the electronic device 30 may be used to connect and communicate with external devices through a network.
[0129] On the other hand, the present application provides a computer-readable storage medium, on which instructions are stored, wherein when the instructions are executed by a processor, the steps of the display panel white balance adjustment method provided in any of the above embodiments are implemented.
[0130] The various technical features described above can be combined arbitrarily. Although all possible combinations of these technical features are not described, any combination of these technical features should be considered to be covered by this specification as long as there is no contradiction in such combination.
[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for adjusting white balance of a display panel, characterized in that: The method comprises: For each target grayscale, perform the following adjustment steps: Calculate the target sub-pixel value required for this adjustment based on the current white balance parameter value, the current coefficient matrix, and the target parameter value of the white balance parameter corresponding to the target grayscale; Obtaining the white balance parameter value after the display panel displays the target sub-pixel value calculated by this adjustment; Calculating and updating the current coefficient matrix according to the white balance parameter values after at least two previous adjustment steps and the corresponding sub-pixel values, as the current coefficient matrix for the next adjustment, and using the white balance parameter values after this adjustment as the current white balance parameter values for the next adjustment; Repeating the adjustment step so that the white balance parameter value after the target grayscale adjustment reaches the target parameter value requirement; The current coefficient matrix is used to represent the current corresponding relationship between the white balance parameter values and the sub-pixel values.
2. The method according to claim 1, characterized in that Before executing the adjustment step for the first time, an initialization step is also included: Obtaining initial white balance parameter values after the display panel displays at least two preset sub-pixel values; The coefficient matrix is calculated according to at least two of the initial white balance parameter values and the corresponding preset sub-pixel values to serve as the current coefficient matrix when the adjustment step is performed for the first time.
3. The method according to claim 2, characterized in that The step of obtaining the initial white balance parameter value after the display panel displays at least two preset sub-pixel values comprises: Acquire a first preset sub-pixel value and acquire a first initial white balance parameter value after the display panel displays according to the first preset sub-pixel value; When it is determined that the first initial white balance parameter value does not meet the target parameter value requirement, the determined second preset sub-pixel value is obtained after the first preset sub-pixel value is adjusted to the preset step value, and the second initial white balance parameter value after the display panel displays according to the second preset target sub-pixel value is obtained.
4. The method according to claim 1, characterized in that After the adjustment step, a storage step is also included: When the white balance parameter value after the current target grayscale adjustment reaches the target parameter value requirement, the current coefficient matrix is saved as the historical coefficient matrix corresponding to the current target grayscale; Before performing the first conditioning step on the next display panel, it also includes: According to the target grayscale, a historical coefficient matrix corresponding to the target grayscale is determined as the current coefficient matrix.
5. The method according to claim 1 or 4, characterized in that: The white balance parameters include: brightness parameter, abscissa parameter in the color coordinate system and ordinate parameter in the color coordinate system; The white balance parameter value after the target grayscale adjustment meets the target parameter value requirement, specifically including: the brightness parameter value after the target grayscale adjustment, the horizontal coordinate parameter value in the color coordinate system, and the vertical coordinate parameter value in the color coordinate system all meet the target parameter value requirement.
6. The method according to claim 1, characterized in that The sub-pixels include: R sub-pixels, G sub-pixels and B sub-pixels; The step of calculating and updating the current coefficient matrix according to the white balance parameter values after at least two previous adjustment steps and the corresponding sub-pixel values comprises: The coefficients a1, a2 and a3 corresponding to each white balance parameter in the coefficient matrix are calculated using the following equation group; R1*a1+G1*a2+B1*a3=X1; R2*a1+G2*a2+B2*a3=X2; R3*a1+G3*a2+B3*a3=X3; Among them, R1, G1, B1 and X1 respectively represent the sub-pixel values and white balance parameter values of the first adjustment in three adjacent adjustments; R2, G2, B2 and X2 respectively represent the sub-pixel values and white balance parameter values of the second adjustment in three adjacent adjustments; R3, G3, B3 and X3 respectively represent the sub-pixel values and white balance parameter values after the current adjustment in three adjacent adjustments.
7. The method according to claim 1, characterized in that The target sub-pixels include: R sub-pixels, G sub-pixels and B sub-pixels; The step of calculating and updating the current coefficient matrix according to the white balance parameter values after at least two previous adjustment steps and the corresponding sub-pixel values comprises: The coefficients a1, a2 and a3 corresponding to each white balance parameter in the coefficient matrix are calculated using the following equation group; R1*a1+G1*a2+B1*a3=X1; R2*a1+G2*a2+B2*a3=X2; a1+a2+a3=1; Among them, R1, G1, B1 and X1 respectively represent the sub-pixel value and white balance parameter value of the previous adjustment; R2, G2, B2 and X2 respectively represent the sub-pixel value and white balance parameter value after the current adjustment.
8. The method according to claim 1, characterized in that The white balance parameters include brightness parameters; Before performing the adjustment step for the first time, the method further includes: Acquire a plurality of brightness target parameter values of brightness parameters corresponding to a plurality of gears one by one, so as to perform the white balance adjustment according to the brightness target parameter values in the adjustment step; After the current gear adjustment step is completed, if the preset stop condition is met but the white balance parameter value after the target grayscale adjustment fails to reach the target parameter value requirement, the method further includes: The brightness target parameter value corresponding to the next gear is automatically switched according to the order of the multiple brightness target parameter values from large to small, so that the white balance adjustment is performed according to the brightness target parameter value of the next gear in the adjustment step.
9. A display panel white balance adjustment device, characterized in that: The device comprises: The adjustment control unit is used to control each unit to perform an adjustment process for each target grayscale, so that the white balance parameter value after the target grayscale is adjusted meets the target parameter value requirement: A target sub-pixel calculation unit, used to calculate a target sub-pixel value required for this adjustment based on a current white balance parameter value, a current coefficient matrix, and a target parameter value of a white balance parameter corresponding to a target grayscale; An acquiring unit, used for acquiring a white balance parameter value after the display panel displays the target sub-pixel value calculated by the current adjustment; an updating unit, configured to calculate and update the current coefficient matrix according to the white balance parameter values after at least two previous adjustment steps and the corresponding sub-pixel values, as the current coefficient matrix for the next adjustment, and to use the white balance parameter values after the current adjustment as the current white balance parameter values for the next adjustment; The current coefficient matrix is used to represent the current corresponding relationship between the white balance parameter values and the sub-pixel values.
10. The device according to claim 9, characterized in that The device also includes: An initial value acquisition unit, used for acquiring an initial white balance parameter value after the display panel displays at least two preset sub-pixel values before performing the adjustment step for the first time; The initial matrix calculation unit is used to calculate the coefficient matrix according to at least two of the initial white balance parameter values and the corresponding preset sub-pixel values, so as to serve as the current coefficient matrix when the adjustment step is performed for the first time.
11. The device according to claim 10, characterized in that The initial matrix calculation unit is specifically used to obtain a first preset sub-pixel value and a first initial white balance parameter value after the display panel displays according to the first preset sub-pixel value; when it is determined that the first initial white balance parameter value does not meet the requirement of the target parameter value, the determined second preset sub-pixel value is obtained after the first preset sub-pixel value is adjusted by a preset step value, and the second initial white balance parameter value after the display panel displays according to the second preset target sub-pixel value is obtained.
12. The device according to claim 9, characterized in that The device also includes: The saving unit is used to save the current coefficient matrix as the historical coefficient matrix corresponding to the current target grayscale when the white balance parameter value after the current target grayscale adjustment reaches the target parameter value requirement. The matrix determination unit is used to perform a first adjustment step on the next display panel, and determine, according to the target grayscale, a historical coefficient matrix corresponding to the target grayscale as the current coefficient matrix.
13. The device according to claim 9, characterized in that The white balance parameter includes a brightness parameter, and the device further includes: a gear acquisition unit, used for acquiring a plurality of brightness target parameter values of brightness parameters corresponding to a plurality of gears one by one before the first execution of the adjustment step, so as to perform the white balance adjustment according to the brightness target parameter values in the adjustment step; The gear switching unit is used to automatically switch the brightness target parameter value corresponding to the next gear according to the order of the multiple brightness target parameter values from large to small after the current gear adjustment step is completed, if the preset stop condition is met but the white balance parameter value after the target grayscale adjustment fails to reach the target parameter value requirement, so that the white balance adjustment is performed according to the brightness target parameter value of the next gear in the adjustment step.
14. An electronic device, characterized in that: The invention comprises a processor, a memory and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the display panel white balance adjustment method as described in any one of claims 1 to 8 are implemented.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed by the processor, the steps of the display panel white balance adjustment method according to any one of claims 1 to 8 are implemented.