Gamma calibration method, system and device based on linear interpolation and adjustable proportion

By adopting Gamma calibration method based on linear interpolation and adjustable specific gravity on the OLED display screen, the problem of dark or bright image display after Gamma calibration in the prior art is solved, achieving a higher quality display effect and a better visual experience.

CN119763492AActive Publication Date: 2025-04-04SUZHOU SEICHI INTELLIGENT EQUIPMENT TECHNOLOGIES CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202510078590.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2025-04-04
Estimated Expiration
2045-01-17

AI Technical Summary

Technical Problem

In the Gamma calibration of OLED displays, due to the differences in brightness response characteristics of different display screens and environmental factors, the image display after Gamma calibration is dim or bright, details are lost or hierarchical.

Method used

The Gamma calibration method based on linear interpolation and adjustable specific gravity is adopted. By setting the color coordinate specifications, brightness specifications and target Gamma values, the color coordinates and brightness of the grayscale image on the display screen are obtained, and multiple judgments are made based on the color coordinates and brightness specifications, and the calculation method and algorithm are dynamically adjusted to accurately calculate the RGB change value, and updated to the RGB register of the display screen to realize display adjustment and Gamma calibration.

Benefits of technology

By comprehensively adjusting the color coordinates and brightness, the display quality of the OLED display is achieved, improving the user's visual experience is improved, and the problem of dark or bright image display is avoided, ensuring natural color transition and clear details.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119763492A_ABST
    Figure CN119763492A_ABST
Patent Text Reader

Abstract

The invention discloses a gamma calibration method, system and device based on linear interpolation and adjustable proportion. The method, system and device are used for improving visual experience. The method comprises the following steps: setting a color coordinate specification, a brightness specification and a target Gamma value, and initializing an RGB change value of a display screen; color coordinates and brightness are obtained, and whether the color coordinates meet the color coordinate specification or not is judged; if not, a first RGB change value is calculated based on the color coordinates and the color coordinate specification; after the first RGB change value is obtained, judging whether the brightness meets the brightness specification or not; when the brightness meets the brightness specification, adjusting the proportion value of the RGB based on the first RGB change value, the color coordinate and the brightness; when the brightness does not meet the brightness specification, a second RGB change value is calculated based on the brightness and the brightness specification, and the proportion value of RGB is adjusted; updating the adjusted proportion value to an RGB register of the display screen; and collecting and displaying the adjusted target color coordinates and target brightness, and performing Gamma calibration of the display screen based on the target Gamma value, the target color coordinates and the target brightness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of display measurement technology, and in particular to a gamma calibration method, system and device based on linear interpolation and adjustable weight. Background Art

[0002] With the development of OLED materials and manufacturing process technology, OLED displays have become an important part of the display field and are widely used in various electronic devices, from smart phones to large TV screens. In the optimization of OLED display image display quality, Gamma is an important parameter to measure the brightness curve of OLED displays. Gamma accurately describes the brightness response characteristics of the display, represents the change law of the output brightness of the OLED display under different input signals, reflects the close connection between the displayed brightness and the human eye's perception of natural light, and is closer to the power exponential curve.

[0003] In the prior art, a digital value conversion technology based on R, G, B of a fixed grayscale image is usually used to perform gamma calibration on an OLED display. The digital value conversion technology based on R, G, B of a fixed grayscale image obtains the digital values ​​of R, G, B of the fixed grayscale image, converts the digital values ​​into analog voltages, and finally adjusts the brightness output of the display according to the converted analog voltage to achieve gamma calibration that meets the visual characteristics of the human eye.

[0004] However, there are certain shortcomings in using the digital value conversion technology of R, G, B based on a fixed grayscale image to perform gamma calibration on OLED displays. Since different OLED displays have different brightness response characteristics and are affected by various factors such as environmental factors and display aging in actual applications, it is easy for the digital values ​​of R, G, B based on a fixed grayscale image to be unable to accurately adapt to various changes, resulting in the image display after gamma calibration to appear dark or bright, with loss of details or poor layering, which seriously affects the user's visual experience. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides a gamma calibration method, system and device based on linear interpolation and adjustable weight.

[0006] The technical solution provided in this application is described below:

[0007] In a first aspect, the present application provides a gamma calibration method based on linear interpolation and adjustable specific gravity, the method comprising:

[0008] Set the color coordinate specifications, brightness specifications and target Gamma value, and initialize the RGB change value of the display;

[0009] Obtaining color coordinates and brightness corresponding to the grayscale image on the display screen, and determining whether the color coordinates meet the color coordinate specifications;

[0010] If not, then using a first preset algorithm to calculate a first RGB change value based on the color coordinates and the color coordinate specification;

[0011] After obtaining the first RGB change value, determining whether the brightness meets the brightness specification;

[0012] When the brightness meets the brightness specification, adjusting the weight value of RGB based on the first RGB change value, the color coordinates and the brightness;

[0013] When the brightness does not meet the brightness specification, a second preset algorithm is used to calculate a second RGB change value based on the brightness and the brightness specification, and a weight value of RGB is adjusted based on the second RGB change value, the color coordinates, and the brightness;

[0014] Updating the adjusted specific gravity value into the RGB register of the display screen to achieve display adjustment of the display screen;

[0015] The target color coordinates and target brightness of the display screen after display adjustment are collected and displayed, and gamma calibration of the display screen is performed based on the target gamma value, the target color coordinates and the target brightness.

[0016] Optionally, the collecting and displaying the adjusted target color coordinates and target brightness of the display screen, and performing gamma calibration of the display screen based on the target gamma value, the target color coordinates, and the target brightness, includes:

[0017] Collecting the target color coordinates and target brightness of the display screen after display adjustment, and calculating the Gamma value based on the target color coordinates and the target brightness;

[0018] Determine whether the Gamma value reaches the target Gamma value;

[0019] If not, the color coordinates and the brightness corresponding to the grayscale image on the display screen are re-acquired for judgment and calculation until the Gamma value reaches the target Gamma value, so as to complete the Gamma calibration of the display screen.

[0020] Optionally, the calculating the first RGB change value based on the color coordinates and the color coordinate specification using a first preset algorithm includes:

[0021] Acquire an X grayscale range parameter and a Y grayscale range parameter based on the color coordinates, and calculate an R change value, a G change value, and a B change value respectively using a first preset algorithm in combination with the color coordinates and the color coordinate specification;

[0022] The R variation value, the G variation value, and the B variation value are integrated to obtain a first RGB variation value.

[0023] Optionally, the R change value is calculated by the following formula:

[0024] ΔR=Xstep*100*[(Xtarget-Xmeter) / Xtarget]-Ystep*11.5*[(Ytarget-Ymeter) / Ytarget];

[0025] The G change value is calculated by the following formula:

[0026] ΔG=Ystep*98*[(Ytarget-Ymeter) / Ytarget]-Xstep*18*[(Xtarget-Xmeter) / Xtarget];

[0027] The B change value is calculated by the following formula:

[0028] ΔB=Ystep*88*[(Ytarget-Ymeter) / Ytarget]-Xstep*48*[(Xtarget-Xmeter) / Xtarget];

[0029] Among them, ΔR represents the R change value, ΔG represents the G change value, ΔB represents the B change value, Xstep represents the X grayscale range parameter; Xtarget represents the X value of the color coordinate specification, Xmeter represents the X value of the color coordinate, Ystep represents the Y grayscale range parameter, Ytarget represents the Y value of the color coordinate specification, and Ymeter represents the Y value of the color coordinate.

[0030] Optionally, after acquiring the color coordinates and brightness corresponding to the grayscale image on the display screen and determining whether the color coordinates meet the color coordinate specifications, the method further includes:

[0031] If so, based on the brightness and the brightness specification, a second preset algorithm is used to calculate a second RGB change value, and the proportion value of RGB is adjusted based on the second RGB change value, the color coordinates and the brightness.

[0032] Optionally, obtaining the color coordinates and brightness corresponding to the grayscale image on the display screen includes:

[0033] Obtaining color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen;

[0034] After obtaining the color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen, the method further includes:

[0035] Determining whether the grayscale value is less than a preset grayscale threshold;

[0036] If so, an interpolation algorithm is used to calculate a third RGB change value based on the grayscale parameter and the grayscale value, and the proportion value of RGB is adjusted based on the third RGB change value, the color coordinates and the brightness.

[0037] Optionally, the third RGB change value is calculated by the following formula:

[0038] ΔRGB=Gn*(R0-Gn+1) / (G0-Gn+1)+(G0*Gn-(Rn+1)*G0) / (Gn-G0);

[0039] Among them, ΔRGB represents the third RGB change value, Gn represents the nth grayscale value, R0 represents the R value corresponding to the 0th grayscale in the grayscale parameters, G0 represents the 0th grayscale value, and Rn represents the R value corresponding to the nth grayscale in the grayscale parameters.

[0040] Optionally, after the first RGB change value is obtained by calculation or the second RGB change value is obtained by calculation, the method further includes:

[0041] Setting a maximum RGB change value, and determining whether the first RGB change value or the second RGB change value exceeds the maximum RGB change value;

[0042] If so, the first RGB change value or the second RGB change value is modified to the RGB maximum change value.

[0043] A second aspect of the present application provides a gamma calibration system based on linear interpolation and adjustable specific gravity, the system comprising:

[0044] The setting unit is used to set the color coordinate specification, brightness specification and target Gamma value, and initialize the RGB change value of the display screen;

[0045] A first judgment unit, used to obtain the color coordinates and brightness corresponding to the grayscale image on the display screen, and judge whether the color coordinates meet the color coordinate specifications;

[0046] a first calculation unit, configured to, if not, calculate a first RGB change value using a first preset algorithm based on the color coordinates and the color coordinate specification;

[0047] A second judgment unit, configured to judge whether the brightness meets the brightness specification after obtaining the first RGB change value;

[0048] A first adjustment unit, configured to adjust a weight value of RGB based on the first RGB change value, the color coordinates, and the brightness when the brightness meets the brightness specification;

[0049] A second adjustment unit, configured to calculate a second RGB change value using a second preset algorithm based on the brightness and the brightness specification when the brightness does not meet the brightness specification, and adjust the RGB weight value based on the second RGB change value, the color coordinates and the brightness;

[0050] An updating unit, used for updating the adjusted specific gravity value into the RGB register of the display screen to achieve display adjustment of the display screen;

[0051] The calibration unit is used to collect the target color coordinates and target brightness of the display screen after display adjustment, and perform Gamma calibration of the display screen based on the target Gamma value, the target color coordinates and the target brightness.

[0052] Optionally, the calibration unit is specifically used for:

[0053] Collecting the target color coordinates and target brightness of the display screen after display adjustment, and calculating the Gamma value based on the target color coordinates and the target brightness;

[0054] Determine whether the Gamma value reaches the target Gamma value;

[0055] If not, the color coordinates and the brightness corresponding to the grayscale image on the display screen are re-acquired for judgment and calculation until the Gamma value reaches the target Gamma value, so as to complete the Gamma calibration of the display screen.

[0056] Optionally, the first computing unit is specifically configured to:

[0057] Acquire an X grayscale range parameter and a Y grayscale range parameter based on the color coordinates, and calculate an R change value, a G change value, and a B change value respectively using a first preset algorithm in combination with the color coordinates and the color coordinate specification;

[0058] The R variation value, the G variation value, and the B variation value are integrated to obtain a first RGB variation value.

[0059] Optionally, the R change value is calculated by the following formula:

[0060] ΔR=Xstep*100*[(Xtarget-Xmeter) / Xtarget]-Ystep*11.5*[(Ytarget-Ymeter) / Ytarget];

[0061] The G change value is calculated by the following formula:

[0062] ΔG=Ystep*98*[(Ytarget-Ymeter) / Ytarget]-Xstep*18*[(Xtarget-Xmeter) / Xtarget];

[0063] The B change value is calculated by the following formula:

[0064] ΔB=Ystep*88*[(Ytarget-Ymeter) / Ytarget]-Xstep*48*[(Xtarget-Xmeter) / Xtarget];

[0065] Among them, ΔR represents the R change value, ΔG represents the G change value, ΔB represents the B change value, Xstep represents the X grayscale range parameter; Xtarget represents the X value of the color coordinate specification, Xmeter represents the X value of the color coordinate, Ystep represents the Y grayscale range parameter, Ytarget represents the Y value of the color coordinate specification, and Ymeter represents the Y value of the color coordinate.

[0066] Optionally, a third adjustment unit is further included, which is specifically used to:

[0067] If so, based on the brightness and the brightness specification, a second preset algorithm is used to calculate a second RGB change value, and the proportion value of RGB is adjusted based on the second RGB change value, the color coordinates and the brightness.

[0068] Optionally, the first judgment unit is specifically used for:

[0069] Obtaining color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen;

[0070] After obtaining the color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen, the method further includes:

[0071] Determining whether the grayscale value is less than a preset grayscale threshold;

[0072] If so, an interpolation algorithm is used to calculate a third RGB change value based on the grayscale parameter and the grayscale value, and the proportion value of RGB is adjusted based on the third RGB change value, the color coordinates and the brightness.

[0073] Optionally, the third RGB change value is calculated by the following formula:

[0074] ΔRGB=Gn*(R0-Gn+1) / (G0-Gn+1)+(G0*Gn-(Rn+1)*G0) / (Gn-G0);

[0075] Among them, ΔRGB represents the third RGB change value, Gn represents the nth grayscale value, R0 represents the R value corresponding to the 0th grayscale in the grayscale parameters, G0 represents the 0th grayscale value, and Rn represents the R value corresponding to the nth grayscale in the grayscale parameters.

[0076] Optionally, a third judgment unit is further included, which is specifically used to:

[0077] Setting a maximum RGB change value, and determining whether the first RGB change value or the second RGB change value exceeds the maximum RGB change value;

[0078] If so, the first RGB change value or the second RGB change value is modified to the RGB maximum change value.

[0079] A third aspect of the present application provides a gamma calibration device based on linear interpolation and adjustable specific gravity, the device comprising:

[0080] Processor, memory, input-output unit, and bus;

[0081] The processor is connected to the memory, the input and output unit, and the bus;

[0082] The memory stores a program, and the processor calls the program to execute any of the above methods.

[0083] It can be seen from the above technical solutions that this application has the following advantages:

[0084] This application achieves a comprehensive improvement in the display quality of the display screen by comprehensively adjusting and calibrating the display screen from multiple aspects such as color coordinates and brightness, thereby improving the user's visual experience. First, it is necessary to set the color coordinate specifications, brightness specifications, and target Gamma values, and initialize the RGB change value of the display screen, and then obtain the color coordinates and brightness corresponding to the grayscale image on the display screen. In the specific calibration process, it will be determined whether the color coordinates meet the color coordinate specifications. If not, the first RGB change value is calculated based on the color coordinates and color coordinate specifications using the first preset algorithm; after obtaining the value, it will be determined whether the brightness meets the brightness specifications. When the brightness meets the specifications, the RGB weight value will be reasonably adjusted based on the first RGB change value, color coordinates, and brightness. When the brightness does not meet the specifications, the second RGB change value is calculated based on the brightness and brightness specifications using the second preset algorithm, and then the RGB weight value is adjusted in combination with the color coordinates and brightness.

[0085] By making multiple judgments on color coordinates and brightness, the calculation method and algorithm can be dynamically adjusted according to different judgment results, so as to accurately calculate the RGB change value and avoid inaccurate brightness output and dark or bright image display problems. Finally, the adjusted specific gravity value is updated to the RGB register of the display to complete the display adjustment, and the target color coordinates and target brightness after display adjustment are continuously collected. Gamma calibration is performed based on the target Gamma value, target color coordinates and target brightness to further optimize the color display effect under different grayscales, so that the color transition is natural, the image color is accurate and bright, and the details are clear. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0087] Figure 1 A schematic flow chart of an embodiment of a gamma calibration method based on linear interpolation and adjustable weight provided in the present application;

[0088] Figure 2 A flow chart of another embodiment of a gamma calibration method based on linear interpolation and adjustable weight provided in the present application;

[0089] Figure 3 A schematic diagram of the structure of an embodiment of a gamma calibration system based on linear interpolation and adjustable specific gravity provided in the present application;

[0090] Figure 4A schematic diagram of the structure of an embodiment of a gamma calibration device based on linear interpolation and adjustable weight provided in the present application. DETAILED DESCRIPTION

[0091] The present application provides a gamma calibration method based on linear interpolation and adjustable weight, which can improve the visual experience. It should be noted that the gamma calibration method based on linear interpolation and adjustable weight of the present application is applied to a terminal.

[0092] Gamma calibration is a technology used to optimize the display effect of the display. It mainly adjusts the brightness and color information of the image so that the display can more accurately present the color, contrast and brightness of the original image. The gamma value determines the nonlinear relationship between the input signal and the output brightness. Different gamma values ​​will have different effects on the dark, middle and bright parts of the image. Through gamma calibration, the gamma value can be adjusted according to the characteristics of the display and actual needs to compensate for the nonlinear distortion in the display process, so that the image can maintain natural and true colors and details at different brightness, improving the visual experience.

[0093] See also Figure 1 The present application first provides an embodiment of a gamma calibration method based on linear interpolation and adjustable weight, the embodiment comprising:

[0094] S101, setting color coordinate specifications, brightness specifications and target Gamma value, and initializing RGB change values ​​of the display screen;

[0095] Color coordinates are parameters used to describe the position of color in a specific color space. They mainly use numerical values ​​to accurately represent the properties of color, can accurately determine color deviations, and provide a quantitative basis for color calibration and adjustment to achieve more accurate color display effects.

[0096] In this embodiment, the color coordinate specification can be set according to the specific type of the display screen, the application scenario and the relevant industry standards. For example, if the sRGB color space is used, the standard color coordinate range corresponding to the sRGB color space is set as the color coordinate specification.

[0097] The brightness specification can be set according to the design parameters of the display, the use environment and the user's expectation of brightness. For example, in a normal indoor environment, a suitable brightness value range is set as the brightness specification. The target Gamma value can be determined by referring to the standard display characteristic curve and the human eye's perception of brightness. For example, the target Gamma value is set to 2.2 based on the human eye's perception of brightness and the standard display characteristic curve.

[0098] After setting the color coordinate specifications, brightness specifications and target Gamma values, initialize the RGB change values ​​of the display, providing a basis for subsequent adjustments.

[0099] S102, obtaining the color coordinates and brightness corresponding to the grayscale image on the display screen, and determining whether the color coordinates meet the color coordinate specifications;

[0100] Grayscale represents the brightness level of an image. Different values ​​are usually used to represent different grayscales. The smaller the value, the darker it is, and the larger the value, the brighter it is. By accurately controlling the grayscale, the image can be displayed with rich details and a real sense of hierarchy, making the transition of the picture natural, avoiding problems such as color discontinuity or uneven brightness, thereby improving the visual effect and image quality.

[0101] By collecting the grayscale image displayed on the display screen pixel by pixel, the corresponding color coordinates and brightness can be obtained. After obtaining the color coordinates and brightness, the color coordinates are compared with the color coordinate specifications in detail to determine whether the color coordinates of each pixel or sampling point meet the color coordinate specifications.

[0102] When it is determined that the color coordinates meet the color coordinate specifications, a second preset algorithm is used to calculate the second RGB change value based on the brightness and brightness specifications; when it is determined that the color coordinates do not meet the color standard specifications, step 103 is executed.

[0103] S103, based on the color coordinates and the color coordinate specification, using a first preset algorithm to calculate a first RGB change value;

[0104] In this embodiment, when it is determined that the color coordinates do not meet the color coordinate specification, a first preset algorithm is used to perform calculation based on the color coordinates and the color coordinate specification, and the calculation result is a first RGB change value.

[0105] Specifically, the first preset algorithm involves the degree of deviation of the color coordinates, the conversion relationship of the color space, and the characteristics of the RGB color model. The color coordinates and the color coordinate specifications are divided into multiple parts and calculated separately in combination with the formula in the first preset algorithm. After calculating the results of each part, the results of each part are combined to obtain the first RGB change value.

[0106] The first RGB change value reflects the specific value of each RGB channel that needs to be adjusted in order to make the color coordinate meet the specification requirements.

[0107] S104, after obtaining the first RGB change value, determining whether the brightness meets the brightness specification;

[0108] In this embodiment, after obtaining the first RGB change value, the brightness is compared with the brightness specification in detail to determine whether the brightness meets the brightness specification and is within the value range specified by the brightness specification. For example, the brightness is 500cd / m2 , brightness specification is 400cd / m 2 , at this time the brightness is 500cd / m 2 Exceeds brightness specification 400cd / m 2 , it is determined that the brightness does not meet the brightness specification.

[0109] When it is determined that the brightness meets the brightness specification, step 105 is executed; when it is determined that the brightness does not meet the brightness specification, step 106 is executed.

[0110] S105, when the brightness meets the brightness specification, adjusting the proportion value of RGB based on the first RGB change value, the color coordinates and the brightness;

[0111] In this embodiment, when it is determined that the brightness meets the brightness specification, the proportion value of RGB is adjusted based on the first RGB change value, the color coordinates and the brightness. First, the direction and amplitude of each RGB channel to be adjusted are determined according to the first RGB change value. For example, if the first RGB change value indicates that the red channel needs to be increased by a certain value, the proportion of the red channel is adjusted accordingly.

[0112] While determining the adjustment direction and magnitude, further refinement is performed in combination with the color coordinates to ensure color accuracy and coordination. For example, the current color bias is determined based on the color coordinates, and the corresponding RGB channel weight values ​​are fine-tuned to achieve a more accurate color display.

[0113] After fine-tuning the RGB weight value according to the color coordinates, the influence of each RGB channel adjustment on the overall brightness is combined according to the brightness, so that the adjusted RGB weight value can meet the color requirements while maintaining appropriate brightness.

[0114] S106, when the brightness does not meet the brightness specification, a second preset algorithm is used to calculate a second RGB change value based on the brightness and the brightness specification, and a weight value of RGB is adjusted based on the second RGB change value, the color coordinates, and the brightness;

[0115] In this embodiment, when the brightness does not meet the brightness specification, the second RGB change value is first calculated based on the brightness and the brightness specification using a second preset algorithm. The second preset algorithm calculates the second RGB change value based on the degree of brightness deviation and the requirements of the brightness specification, combined with the contribution characteristics of each channel to the brightness in the RGB color model.

[0116] The calculation of the second GRB change value is expressed by the following formula:

[0117] ΔRGB=Lstep* [ (Ltarget-Lmeter) / Ltarget ] ;

[0118] Among them, ΔRGB represents the second GRB change value, Lstep represents the brightness parameter obtained based on the grayscale range, Ltarget represents the brightness specification, and Lmeter represents the brightness.

[0119] Specifically, the brightness parameters obtained based on the grayscale range can be expressed in the following table:

[0120] Grayscale range >240 >150 >80 >60 >40 >10 >5 other Lstep 185 130 70 60 40 20 15 2

[0121] After the second GRB change value is calculated, the RGB weight value is adjusted based on the second RGB change value, color coordinates and brightness. During the adjustment process, the color coordinates are combined to ensure the accuracy of the color and avoid color distortion caused by brightness adjustment. The RGB weight value is adjusted according to the second RGB change value to ensure that the brightness meets the brightness specification requirements while maintaining color coordination and authenticity.

[0122] S107, updating the adjusted specific gravity value to the RGB register of the display screen to achieve display adjustment of the display screen;

[0123] In this embodiment, after the adjustment of the RGB specific gravity value is completed, the adjusted specific gravity value is accurately written into the RGB register of the display screen. Before writing, the terminal generates a corresponding control signal from the adjusted specific gravity value information and transmits it to the control module of the display screen.

[0124] When the control module receives the control signal, it stores the specific gravity values ​​in the corresponding RGB registers according to the RGB register address mapping rules of the display. For example, the specific gravity value of the red channel will be written to the specified red RGB register, the specific gravity value of the green channel will be written to the specified green RGB register, and the specific gravity value of the blue channel will be written to the specified blue RGB register.

[0125] In the subsequent display process, the display screen will control the output of the RGB channels according to the updated register values, thereby adjusting the display effect.

[0126] S108 , collecting target color coordinates and target brightness of the display screen after display adjustment, and performing Gamma calibration of the display screen based on the target Gamma value, target color coordinates and target brightness.

[0127] In this embodiment, after the display adjustment is completed, data is collected from multiple key areas of the display screen. The collected data are the target color coordinates and target brightness after the display adjustment. It is necessary to ensure that the collected data can fully and accurately reflect the actual display state of the display screen.

[0128] When the acquisition is completed, the display is gamma calibrated using the gamma calibration algorithm based on the target gamma value, the acquired target color coordinates and the target brightness. During the calibration process, the calibration algorithm calculates the corresponding calibration parameters based on the relationship between the target color coordinates, the target brightness and the target gamma value, and sends the calibration parameters to the display through the display control interface to calibrate the gamma curve of the display so that the brightness and color of the display can achieve the best display effect at different grayscales.

[0129] This embodiment achieves a comprehensive improvement in the display quality of the display screen by comprehensively adjusting and calibrating the display screen from multiple aspects such as color coordinates and brightness, thereby improving the user's visual experience. First, it is necessary to set the color coordinate specifications, brightness specifications and target Gamma values, and initialize the RGB change value of the display screen, and then obtain the color coordinates and brightness corresponding to the grayscale image on the display screen. In the specific calibration process, it will be determined whether the color coordinates meet the color coordinate specifications. If not, the first RGB change value is calculated based on the color coordinates and color coordinate specifications using the first preset algorithm; after obtaining the value, it will be determined whether the brightness meets the brightness specifications. When the brightness meets the specifications, the RGB weight value will be reasonably adjusted based on the first RGB change value, color coordinates and brightness. When the brightness does not meet the specifications, the second RGB change value is calculated based on the brightness and brightness specifications using the second preset algorithm, and then the RGB weight value is adjusted in combination with the color coordinates and brightness.

[0130] By making multiple judgments on color coordinates and brightness, the calculation method and algorithm can be dynamically adjusted according to different judgment results, so as to accurately calculate the RGB change value and avoid inaccurate brightness output and dark or bright image display problems. Finally, the adjusted specific gravity value is updated to the RGB register of the display to complete the display adjustment, and the target color coordinates and target brightness after display adjustment are continuously collected. Gamma calibration is performed based on the target Gamma value, target color coordinates and target brightness to further optimize the color display effect under different grayscales, so that the color transition is natural, the image color is accurate and bright, and the details are clear.

[0131] See also Figure 2 , Figure 2 Another embodiment of a gamma calibration method based on linear interpolation and adjustable weight provided by the present application includes:

[0132] S201, setting color coordinate specifications, brightness specifications and target Gamma value, and initializing RGB change values ​​of the display screen;

[0133] In this embodiment, step S201 is similar to step S101 in the above embodiment and will not be described again here.

[0134] S202, obtaining color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen;

[0135] In this embodiment, data is first collected for the grayscale image on the display screen, and the corresponding color coordinates and brightness are obtained by measuring the color information of the grayscale image in different areas and the brightness value of each area of ​​the grayscale image. While obtaining the color coordinates and brightness, the grayscale value and grayscale parameters are read from the control chip of the display screen, where the grayscale value represents the brightness level of each pixel in the image, and the grayscale parameter includes parameter information related to grayscale display.

[0136] It should be noted that during the collection process, in order to ensure the accuracy and comprehensiveness of the data, multiple measurements will be performed in multiple key areas of the display screen according to the preset sampling rules, and the collected data will be averaged or weighted to eliminate measurement errors and local differences.

[0137] Obtaining the color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image provides a data basis for subsequent gamma calibration. Accurate color coordinates and brightness data can reflect the actual display status of the display, while obtaining grayscale values ​​and grayscale parameters helps to gain a deeper understanding of the display characteristics of the display at different grayscales, allowing the calibration process to optimize different grayscales more specifically.

[0138] By comprehensively and accurately collecting color coordinates, brightness, grayscale values ​​and grayscale parameters, the accuracy and effect of gamma calibration can be improved, so that the display can present the best display effect at different grayscales and meet the display requirements in different application scenarios.

[0139] S203, determining whether the grayscale value is less than a preset grayscale threshold;

[0140] In this embodiment, after the grayscale value of the grayscale image on the display screen is obtained, the grayscale value is compared with a preset grayscale threshold. The preset grayscale threshold is a critical value determined according to the characteristics of the display screen and actual application requirements, and is not limited here.

[0141] During the comparison process, the grayscale value is numerically compared with the grayscale threshold through a comparison algorithm. For example, when the grayscale value is 10 and the preset grayscale threshold is 15, it is determined that the grayscale value is less than the preset grayscale threshold.

[0142] When it is determined that the grayscale value is less than the preset grayscale threshold, step 204 is executed; when it is determined that the grayscale value is not less than the preset grayscale threshold, step 205 is executed.

[0143] Determining whether the grayscale value is less than the preset grayscale threshold can adopt different calculation strategies according to different grayscale conditions. When the grayscale value is less than the preset grayscale threshold, it means that the current display screen is in a lower grayscale area. In the lower grayscale area, the brightness or color coordinate change may be small, and the calculation method using the first preset algorithm or the second preset algorithm may not be able to obtain an accurate RGB change value.

[0144] By judging the grayscale value, special situations where the grayscale value is less than the preset grayscale threshold can be identified in time, which can better adapt to the display characteristics of the display screen at different grayscales, making the entire calibration process more flexible, thereby improving the accuracy of calibration.

[0145] S204, based on the grayscale parameter and the grayscale value, using an interpolation algorithm to calculate a third RGB change value, and adjusting the RGB weight value based on the third RGB change value, the color coordinates, and the brightness;

[0146] In this embodiment, when it is determined that the grayscale value is less than the preset grayscale threshold, the obtained grayscale parameters and grayscale values ​​are used as input data and input into the interpolation algorithm, and the interpolation algorithm calculates the third RGB change value according to the input grayscale parameters and grayscale values.

[0147] Specifically, the interpolation algorithm is designed based on the analysis of the low grayscale display characteristics of the display screen, and can more accurately calculate the third RGB change value in the low grayscale case.

[0148] The third RGB change value is calculated by the following formula:

[0149] ΔRGB=Gn*(R0-Gn+1) / (G0-Gn+1)+(G0*Gn-(Rn+1)*G0) / (Gn-G0);

[0150] Among them, ΔRGB represents the third RGB change value, Gn represents the nth grayscale value, R0 represents the R value corresponding to the 0th grayscale in the grayscale parameter, G0 represents the 0th grayscale value, and Rn represents the R value corresponding to the nth grayscale in the grayscale parameter.

[0151] After obtaining the third RGB change value, the RGB weight value will be adjusted in combination with the current color coordinate and brightness information. For example, the RGB weight value will be increased or decreased in a certain proportional relationship according to the deviation of the color coordinate and the actual value of the brightness.

[0152] In the case of low grayscale, the interpolation algorithm is used to calculate the third RGB change value, and the RGB weight value is adjusted based on this, which can effectively solve the problem that the conventional calculation method is inaccurate due to the small change in brightness or color coordinates at low grayscale. The interpolation algorithm can perform targeted calculations based on the characteristics of the low grayscale area to obtain RGB change values ​​that are more in line with the actual situation, thereby improving the accuracy of gamma calibration.

[0153] By adjusting the RGB weight value, the color and brightness performance of the display screen at low grayscale can be further optimized, making the dark details of the image more clearly visible and avoiding problems such as loss of details in dark areas or color deviation.

[0154] S205, judging whether the color coordinates meet the color coordinate specifications;

[0155] In this embodiment, step S205 is similar to step S102 in the above embodiment and will not be described again here.

[0156] S206 , based on the brightness and brightness specification, use a second preset algorithm to calculate a second RGB change value, and adjust the RGB weight value based on the second RGB change value, the color coordinates, and the brightness.

[0157] In this embodiment, when it is determined that the color coordinates meet the color coordinate specification, step S206 is similar to step S106 in the above embodiment, and will not be described again here.

[0158] S207, obtaining an X grayscale range parameter and a Y grayscale range parameter based on the color coordinates, and calculating an R change value, a G change value, and a B change value respectively using a first preset algorithm in combination with the color coordinates and the color coordinate specifications;

[0159] In this embodiment, when it is determined that the color coordinates do not meet the color coordinate specifications, the corresponding X grayscale range parameters and Y grayscale range parameters are obtained according to the current color coordinates. The X grayscale range parameters and the Y grayscale range parameters reflect the change range and trend of the color coordinates at different grayscales. The obtained color coordinates, color coordinate specifications, X grayscale range parameters, and Y grayscale range parameters are used as input parameters and input into the first preset algorithm. The first preset algorithm calculates the three components of R, G, and B according to the input parameters to determine the change value that needs to be adjusted for each component.

[0160] During the calculation process, the first preset algorithm will comprehensively consider factors such as the degree of deviation between the color coordinates and the specifications, the influence of the grayscale range parameters, etc., and calculate the R change value, the G change value, and the B change value respectively. For example, if the X component of the color coordinates is too small, the change value of the R component is increased according to the X grayscale range parameter to adjust the color deviation.

[0161] The R change value is calculated by the following formula:

[0162] ΔR=Xstep*100*[(Xtarget-Xmeter) / Xtarget]-Ystep*11.5*[(Ytarget-Ymeter) / Ytarget];

[0163] The G change value is calculated by the following formula:

[0164] ΔG=Ystep*98*[(Ytarget-Ymeter) / Ytarget]-Xstep*18*[(Xtarget-Xmeter) / Xtarget];

[0165] The B change value is calculated by the following formula:

[0166] ΔB=Ystep*88*[(Ytarget-Ymeter) / Ytarget]-Xstep*48*[(Xtarget-Xmeter) / Xtarget];

[0167] Among them, ΔR represents the R change value, ΔG represents the G change value, ΔB represents the B change value, Xstep represents the X grayscale range parameter; Xtarget represents the X value of the color coordinate specification, Xmeter represents the X value of the color coordinate, Ystep represents the Y grayscale range parameter, Ytarget represents the Y value of the color coordinate specification, and Ymeter represents the Y value of the color coordinate.

[0168] The X grayscale range parameter and the Y grayscale range parameter are obtained based on the color coordinates, and the R, G, and B change values ​​are calculated respectively using the first preset algorithm in combination with the color coordinates and the color coordinate specifications, so that accurate color adjustment can be performed when the color coordinates do not meet the specifications.

[0169] In a display screen, the deviation of color coordinates can cause color distortion. This embodiment specifically adjusts the change values ​​of the three components R, G, and B according to the specific color coordinate deviation and grayscale range information, which can effectively correct the color deviation and enable the display screen to present more accurate and realistic colors.

[0170] S208, integrating the R change value, the G change value and the B change value to obtain a first RGB change value;

[0171] In this embodiment, after the R change value, the G change value, and the B change value are calculated respectively by the first preset algorithm, the R change value, the G change value, and the B change value are integrated to obtain the first RGB change value. During the integration process, the R change value, the G change value, and the B change value are combined into a unified RGB change value representation as the first RGB change value.

[0172] By integrating the R change value, the G change value, and the B change value to obtain the first RGB change value, the overall and coordinated adjustment of the color of the display screen can be achieved. During the color adjustment process, the three components of the R change value, the G change value, and the B change value are interrelated and influence each other. Adjusting a component alone will cause color imbalance, and integrating the change values ​​of the three components into a unified RGB change value can ensure that the three components can change in coordination during the adjustment process to maintain color balance and consistency, and can more effectively correct color deviations, so that the display screen presents more accurate and harmonious colors.

[0173] S209, setting the RGB maximum change value, and determining whether the first RGB change value exceeds the RGB maximum change value;

[0174] In this embodiment, the maximum RGB variation value is set according to the hardware characteristics, display requirements, industry standards and actual needs of the display screen. The maximum RGB variation value is used to limit the range of RGB variation to ensure the stability of the display screen and the rationality of the display effect.

[0175] After the setting is completed, the calculated first RGB change value is compared with the set RGB maximum change value. In the comparison process, the change values ​​of the three components R, G, and B in the first RGB change value are extracted respectively, and compared with the corresponding component thresholds in the RGB maximum change value one by one. If the change values ​​of the three components do not exceed the corresponding thresholds, it is determined that they are not exceeded. For example, if the change value of the R component in the first RGB change value is 50, and the R component threshold in the set RGB maximum change value is 40, it is determined that the first RGB change value exceeds the RGB maximum change value.

[0176] When it is determined that the first RGB change value exceeds the RGB maximum change value, step 210 is executed; when it is determined that the first RGB change value does not exceed the RGB maximum change value, step 211 is executed.

[0177] Setting the maximum RGB change value and determining whether the first RGB change value exceeds it can effectively prevent damage to the display screen caused by excessive RGB change values. Excessive RGB change values ​​can cause problems such as oversaturation, color distortion, and abnormal brightness on the display screen, affecting the display effect and even damaging the display screen's hardware.

[0178] By limiting and judging the first RGB change value, it can be ensured that the RGB change value is within a reasonable range, ensuring that the color and brightness adjustment of the display screen is stable, avoiding the degradation of image quality due to unreasonable fluctuations in the RGB change value, and providing users with a stable and reliable visual experience.

[0179] S210, modifying the first RGB change value to the RGB maximum change value;

[0180] In this embodiment, when it is determined that the first RGB change value exceeds the RGB maximum change value, the first RGB change value is modified to the RGB maximum change value. Specifically, the change values ​​of the three components R, G, and B in the originally set RGB maximum change value are replaced by the component thresholds corresponding to the first RGB change value, for example, if the first RGB change value is (80, 90, 100) and the RGB maximum change value is (60, 70, 80), and the first RGB change value exceeds the RGB maximum change value, then the first RGB change value is updated to (60, 70, 80).

[0181] When it is determined that the first RGB change value exceeds the RGB maximum change value, the value of the first RGB change value is modified to the RGB maximum change value, which can avoid problems such as color oversaturation and distortion caused by excessive RGB change values, ensure that the color and brightness performance of the image meets expectations, provide users with a high-quality visual experience, and avoid excessive RGB change values ​​from damaging the hardware of the display and affecting the service life of the display.

[0182] S211, after obtaining the first RGB change value, determining whether the brightness meets the brightness specification;

[0183] In this embodiment, step S211 is similar to step S104 in the above embodiment and will not be described again here.

[0184] S212, when the brightness meets the brightness specification, adjusting the proportion value of RGB based on the first RGB change value, the color coordinates and the brightness;

[0185] In this embodiment, step S212 is similar to step S105 in the above embodiment and will not be described again here.

[0186] S213, when the brightness does not meet the brightness specification, a second RGB change value is calculated using a second preset algorithm based on the brightness and the brightness specification;

[0187] In this embodiment, step S213 is similar to step S106 in the above embodiment and will not be described again here.

[0188] S214, determining whether the second RGB change value exceeds the RGB maximum change value;

[0189] In this embodiment, the calculated second RGB change value is compared with the set RGB maximum change value. In the comparison process, the change values ​​of the three components R, G, and B in the second RGB change value are extracted respectively, and compared with the corresponding component thresholds in the RGB maximum change value one by one. If the change values ​​of the three components do not exceed the corresponding thresholds, it is determined that they are not exceeded. For example, if the change value of the R component in the second RGB change value is 70, and the R component threshold in the set RGB maximum change value is 60, it is determined that the second RGB change value exceeds the RGB maximum change value.

[0190] When it is determined that the second RGB change value exceeds the RGB maximum change value, step 215 is executed; when it is determined that the second RGB change value does not exceed the RGB maximum change value, step 216 is executed.

[0191] Setting the maximum RGB change value and determining whether the second RGB change value exceeds it can effectively prevent damage to the display screen caused by excessive RGB change values. Excessive RGB change values ​​can cause problems such as oversaturation, color distortion, and abnormal brightness on the display screen, affecting the display effect and even damaging the display screen's hardware.

[0192] By limiting and judging the second RGB change value, it can be ensured that the RGB change value is within a reasonable range, ensuring that the color and brightness adjustment of the display screen is stable, avoiding the degradation of image quality due to unreasonable fluctuations in the RGB change value, and providing users with a stable and reliable visual experience.

[0193] S215, modifying the second RGB change value to the RGB maximum change value;

[0194] In this embodiment, when it is determined that the second RGB change value exceeds the RGB maximum change value, the second RGB change value is modified to the RGB maximum change value. Specifically, the change values ​​of the three components R, G, and B in the original set RGB maximum change value are replaced by the component thresholds corresponding to the second RGB change value, for example, if the second RGB change value is (80, 100, 100) and the RGB maximum change value is (60, 80, 80), and the second RGB change value exceeds the RGB maximum change value, then the second RGB change value is updated to (60, 80, 80).

[0195] When it is determined that the second RGB change value exceeds the RGB maximum change value, the value of the second RGB change value is modified to the RGB maximum change value, which can avoid problems such as color oversaturation and distortion caused by excessive RGB change values, ensure that the color and brightness performance of the image meets expectations, provide users with a high-quality visual experience, and avoid excessive RGB change values ​​from damaging the hardware of the display and affecting the service life of the display.

[0196] S216, adjusting the proportion value of RGB based on the second RGB change value, color coordinates and brightness;

[0197] In this embodiment, step S213 is similar to step S106 in the above embodiment and will not be described again here.

[0198] S217, updating the adjusted specific gravity value to the RGB register of the display screen to achieve display adjustment of the display screen;

[0199] In this embodiment, step S217 is similar to step S107 in the above embodiment and will not be described again here.

[0200] S218, collecting the target color coordinates and target brightness of the display screen after display adjustment, and calculating the Gamma value based on the target color coordinates and target brightness;

[0201] In this embodiment, after the display adjustment of the display screen is completed, data collection is performed on the display screen after the adjustment to obtain the target color coordinates and target brightness of the content displayed on the display screen. The target color coordinates reflect the specific position and characteristics of the current display color of the display screen, and the target brightness represents the current brightness level.

[0202] After the target color coordinates and target brightness are collected, they are used as input parameters and input into the pre-set Gamma value calculation algorithm. The Gamma value calculation algorithm calculates the corresponding Gamma value based on the relationship between color and brightness and the principle of Gamma correction. The calculated Gamma value represents the nonlinear relationship between brightness and color of the display in the current display state.

[0203] Collecting the target color coordinates and target brightness and calculating the Gamma value can accurately evaluate the display status of the display after display adjustment. The Gamma value is used to measure the color and brightness accuracy of the display. By calculating the Gamma value, you can understand whether the display has color deviation, uneven brightness and other problems during the actual display process, which provides data support for subsequent Gamma calibration, helps to discover and correct problems after display adjustment, and improve display quality.

[0204] S219, judging whether the Gamma value reaches the target Gamma value;

[0205] In this embodiment, after the Gamma value is calculated, the Gamma value is compared with the target Gamma value, which is determined based on multiple factors such as the ideal display effect of the display screen, industry standards, and actual needs.

[0206] If the Gamma value is greater than or equal to the target Gamma value, then it is determined that the Gamma value reaches the target Gamma value; if the Gamma value is less than the target Gamma value, then it is determined that the Gamma value does not reach the target Gamma value.

[0207] When the Gamma value is determined to reach the target Gamma value, the Gamma calibration of the display is completed;

[0208] When it is determined that the Gamma value does not reach the target Gamma value, step 220 is executed.

[0209] By judging whether the Gamma value reaches the target Gamma value, it can be determined whether the display effect of the display meets the expected standards. The target Gamma value represents the best display state of the display. When the Gamma value reaches the target Gamma value, it means that the relationship between the color and brightness of the display is in an ideal state, and it can present an accurate and natural image effect. However, when the Gamma value does not reach the target Gamma value, it means that there are some display problems on the display and further adjustment and calibration are required.

[0210] S220, reacquire the color coordinates and brightness corresponding to the grayscale image on the display screen for judgment and calculation until the Gamma value reaches the target Gamma value, so as to complete the Gamma calibration of the display screen.

[0211] In this embodiment, when it is determined that the Gamma value does not reach the target Gamma value, the color coordinates and brightness corresponding to the grayscale image on the display screen are re-acquired, that is, returning to step 202, and re-performing multiple judgments and calculations based on the newly acquired color coordinates and brightness, and the iterative process is performed until the calculated Gamma value reaches the target Gamma value.

[0212] This embodiment can achieve accurate Gamma calibration of the display screen by continuously iteratively acquiring the color coordinates and brightness of the grayscale image and performing judgment and calculation until the Gamma value reaches the target Gamma value, and can gradually eliminate the deviation of the display screen in color and brightness, so that the display effect continuously approaches the ideal state.

[0213] The following is a detailed description of the gamma calibration system based on linear interpolation and adjustable weight provided by this application. Figure 3 , Figure 3 An embodiment of a gamma calibration system based on linear interpolation and adjustable specific gravity provided by the present application includes:

[0214] The setting unit 301 is used to set the color coordinate specification, brightness specification and target Gamma value, and initialize the RGB change value of the display screen;

[0215] The first judgment unit 302 is used to obtain the color coordinates and brightness corresponding to the grayscale image on the display screen, and judge whether the color coordinates meet the color coordinate specifications;

[0216] A first calculation unit 303, configured to calculate a first RGB change value using a first preset algorithm based on the color coordinates and the color coordinate specification if no;

[0217] The second judgment unit 304 is used to judge whether the brightness meets the brightness specification after obtaining the first RGB change value;

[0218] A first adjustment unit 305, configured to adjust the weight value of RGB based on the first RGB change value, the color coordinates and the brightness when the brightness meets the brightness specification;

[0219] A second adjustment unit 306, configured to calculate a second RGB change value using a second preset algorithm based on the brightness and the brightness specification when the brightness does not meet the brightness specification, and adjust the RGB weight value based on the second RGB change value, the color coordinates and the brightness;

[0220] An updating unit 307, used for updating the adjusted specific gravity value to the RGB register of the display screen to achieve display adjustment of the display screen;

[0221] The calibration unit 308 is used to collect the target color coordinates and target brightness of the display screen after display adjustment, and perform Gamma calibration of the display screen based on the target Gamma value, the target color coordinates and the target brightness.

[0222] Optionally, the calibration unit 308 is specifically configured to:

[0223] The target color coordinates and target brightness of the display screen after display adjustment are collected, and the Gamma value is calculated based on the target color coordinates and target brightness;

[0224] Determine whether the Gamma value reaches the target Gamma value;

[0225] If not, the color coordinates and brightness corresponding to the grayscale image on the display screen are re-acquired for judgment and calculation until the Gamma value reaches the target Gamma value to complete the Gamma calibration of the display screen.

[0226] Optionally, the first calculating unit 303 is specifically configured to:

[0227] Obtaining an X grayscale range parameter and a Y grayscale range parameter based on the color coordinates, and calculating an R change value, a G change value, and a B change value respectively using a first preset algorithm in combination with the color coordinates and the color coordinate specification;

[0228] The R change value, the G change value, and the B change value are integrated to obtain a first RGB change value.

[0229] Optionally, the R change value is calculated by the following formula:

[0230] ΔR=Xstep*100*[(Xtarget-Xmeter) / Xtarget]-Ystep*11.5*[(Ytarget-Ymeter) / Ytarget];

[0231] The G change value is calculated by the following formula:

[0232] ΔG=Ystep*98*[(Ytarget-Ymeter) / Ytarget]-Xstep*18*[(Xtarget-Xmeter) / Xtarget];

[0233] The B change value is calculated by the following formula:

[0234] ΔB=Ystep*88*[(Ytarget-Ymeter) / Ytarget]-Xstep*48*[(Xtarget-Xmeter) / Xtarget];

[0235] Among them, ΔR represents the R change value, ΔG represents the G change value, ΔB represents the B change value, Xstep represents the X grayscale range parameter; Xtarget represents the X value of the color coordinate specification, Xmeter represents the X value of the color coordinate, Ystep represents the Y grayscale range parameter, Ytarget represents the Y value of the color coordinate specification, and Ymeter represents the Y value of the color coordinate.

[0236] Optionally, a third adjustment unit 309 is further included, which is specifically configured to:

[0237] If yes, then based on the brightness and brightness specification, a second preset algorithm is used to calculate a second RGB change value, and the weight value of RGB is adjusted based on the second RGB change value, the color coordinates, and the brightness.

[0238] Optionally, the first judging unit 302 is specifically configured to:

[0239] Obtain the color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen;

[0240] After obtaining the color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen, it also includes:

[0241] Determine whether the grayscale value is less than a preset grayscale threshold;

[0242] If so, an interpolation algorithm is used to calculate the third RGB change value based on the grayscale parameter and the grayscale value, and the proportion value of RGB is adjusted based on the third RGB change value, the color coordinates, and the brightness.

[0243] Optionally, the third RGB change value is calculated by the following formula:

[0244] ΔRGB=Gn*(R0-Gn+1) / (G0-Gn+1)+(G0*Gn-(Rn+1)*G0) / (Gn-G0);

[0245] Among them, ΔRGB represents the third RGB change value, Gn represents the nth grayscale value, R0 represents the R value corresponding to the 0th grayscale in the grayscale parameter, G0 represents the 0th grayscale value, and Rn represents the R value corresponding to the nth grayscale in the grayscale parameter.

[0246] Optionally, a third judgment unit 310 is further included, which is specifically configured to:

[0247] Set the RGB maximum change value, and determine whether the first RGB change value or the second RGB change value exceeds the RGB maximum change value;

[0248] If so, the first RGB change value or the second RGB change value is modified to the RGB maximum change value.

[0249] This application also provides a gamma calibration device based on linear interpolation and adjustable specific gravity, see Figure 4 , Figure 4 An embodiment of a gamma calibration device based on linear interpolation and adjustable specific gravity provided by the present application includes:

[0250] Processor 401, memory 402, input and output unit 403, bus 404;

[0251] The processor 401 is connected to the memory 402, the input and output unit 403 and the bus 404;

[0252] The memory 402 stores a program, and the processor 401 calls the program to execute any of the above methods.

[0253] The present application also relates to a computer-readable storage medium on which a program is stored, wherein when the program is run on a computer, the computer is caused to execute any of the above methods.

[0254] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0255] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0256] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0257] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0258] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A gamma calibration method based on linear interpolation and adjustable weight, characterized in that: The method comprises: Set the color coordinate specifications, brightness specifications and target Gamma value, and initialize the RGB change value of the display; Obtaining color coordinates and brightness corresponding to the grayscale image on the display screen, and determining whether the color coordinates meet the color coordinate specifications; If not, then using a first preset algorithm to calculate a first RGB change value based on the color coordinates and the color coordinate specification; After obtaining the first RGB change value, determining whether the brightness meets the brightness specification; When the brightness meets the brightness specification, adjusting the weight value of RGB based on the first RGB change value, the color coordinates and the brightness; When the brightness does not meet the brightness specification, a second preset algorithm is used to calculate a second RGB change value based on the brightness and the brightness specification, and a weight value of RGB is adjusted based on the second RGB change value, the color coordinates, and the brightness; Updating the adjusted specific gravity value into the RGB register of the display screen to achieve display adjustment of the display screen; The target color coordinates and target brightness of the display screen after display adjustment are collected and displayed, and gamma calibration of the display screen is performed based on the target gamma value, the target color coordinates and the target brightness.

2. The method according to claim 1, characterized in that The collecting and displaying the target color coordinates and the target brightness of the display screen after adjustment, and performing Gamma calibration of the display screen based on the target Gamma value, the target color coordinates and the target brightness, includes: Collecting the target color coordinates and target brightness of the display screen after display adjustment, and calculating the Gamma value based on the target color coordinates and the target brightness; Determine whether the Gamma value reaches the target Gamma value; If not, the color coordinates and the brightness corresponding to the grayscale image on the display screen are re-acquired for judgment and calculation until the Gamma value reaches the target Gamma value, so as to complete the Gamma calibration of the display screen.

3. The method according to claim 1, characterized in that The step of calculating a first RGB change value based on the color coordinates and the color coordinate specification using a first preset algorithm includes: Acquire an X grayscale range parameter and a Y grayscale range parameter based on the color coordinates, and respectively calculate an R change value, a G change value, and a B change value using a first preset algorithm in combination with the color coordinates and the color coordinate specification; The R variation value, the G variation value, and the B variation value are integrated to obtain a first RGB variation value.

4. The method according to claim 3, characterized in that The R change value is calculated by the following formula: ΔR=Xstep*100*[(Xtarget-Xmeter) / Xtarget]-Ystep*11.5*[(Ytarget-Ymeter) / Ytarget]; The G change value is calculated by the following formula: ΔG=Ystep*98*[(Ytarget-Ymeter) / Ytarget]-Xstep*18*[(Xtarget-Xmeter) / Xtarget]; The B change value is calculated by the following formula: ΔB=Ystep*88*[(Ytarget-Ymeter) / Ytarget]-Xstep*48*[(Xtarget-Xmeter) / Xtarget]; Among them, ΔR represents the R change value, ΔG represents the G change value, ΔB represents the B change value, Xstep represents the X grayscale range parameter; Xtarget represents the X value of the color coordinate specification, Xmeter represents the X value of the color coordinate, Ystep represents the Y grayscale range parameter, Ytarget represents the Y value of the color coordinate specification, and Ymeter represents the Y value of the color coordinate.

5. The method according to claim 1, characterized in that After acquiring the color coordinates and brightness corresponding to the grayscale image on the display screen and determining whether the color coordinates meet the color coordinate specifications, the method further includes: If so, based on the brightness and the brightness specification, a second preset algorithm is used to calculate a second RGB change value, and the proportion value of RGB is adjusted based on the second RGB change value, the color coordinates and the brightness.

6. The method according to claim 1, characterized in that The obtaining of the color coordinates and brightness corresponding to the grayscale image on the display screen comprises: Obtaining color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen; After obtaining the color coordinates, brightness, grayscale value and grayscale parameters corresponding to the grayscale image on the display screen, the method further includes: Determining whether the grayscale value is less than a preset grayscale threshold; If so, an interpolation algorithm is used to calculate a third RGB change value based on the grayscale parameter and the grayscale value, and the proportion value of RGB is adjusted based on the third RGB change value, the color coordinates and the brightness.

7. The method according to claim 6, characterized in that The third RGB change value is calculated by the following formula: ΔRGB=Gn*(R0-Gn+1) / (G0-Gn+1)+(G0*Gn-(Rn+1)*G0) / (Gn-G0); Among them, ΔRGB represents the third RGB change value, Gn represents the nth grayscale value, R0 represents the R value corresponding to the 0th grayscale in the grayscale parameters, G0 represents the 0th grayscale value, and Rn represents the R value corresponding to the nth grayscale in the grayscale parameters.

8. The method according to claim 1, characterized in that After the first RGB change value is obtained by calculation or the second RGB change value is obtained by calculation, the method further includes: Setting a maximum RGB change value, and determining whether the first RGB change value or the second RGB change value exceeds the maximum RGB change value; If so, the first RGB change value or the second RGB change value is modified to the RGB maximum change value.

9. A gamma calibration system based on linear interpolation and adjustable weight, characterized in that: The system comprises: The setting unit is used to set the color coordinate specification, brightness specification and target Gamma value, and initialize the RGB change value of the display screen; A first judgment unit, used to obtain the color coordinates and brightness corresponding to the grayscale image on the display screen, and judge whether the color coordinates meet the color coordinate specifications; a first calculation unit, configured to, if not, calculate a first RGB change value using a first preset algorithm based on the color coordinates and the color coordinate specification; A second judgment unit, configured to judge whether the brightness meets the brightness specification after obtaining the first RGB change value; A first adjustment unit, configured to adjust a weight value of RGB based on the first RGB change value, the color coordinates, and the brightness when the brightness meets the brightness specification; A second adjustment unit, configured to calculate a second RGB change value using a second preset algorithm based on the brightness and the brightness specification when the brightness does not meet the brightness specification, and adjust the RGB weight value based on the second RGB change value, the color coordinates and the brightness; An updating unit, used for updating the adjusted specific gravity value into the RGB register of the display screen to achieve display adjustment of the display screen; The calibration unit is used to collect the target color coordinates and target brightness of the display screen after display adjustment, and perform Gamma calibration of the display screen based on the target Gamma value, the target color coordinates and the target brightness.

10. A gamma calibration device based on linear interpolation and adjustable specific gravity, characterized in that: The device comprises: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Low gray scale white balance control method and control system and displayer

    CN105306917A

  • OLED module Gamma adjustment and calibration method and device

    CN106328070A

  • Maximum and minimum gray scale gamma and color temperature automatic adjusting method

    CN106373527A

  • Gamma correction method and device for display module

    CN110910847A

  • Video signal processing method and device thereof and electronic equipment

    CN113099201A