Gray scale voltage debugging method and device and computer readable storage medium
By acquiring the display parameters and gamma parameters of the screen, calculating the photoelectric signal conversion information, and updating the grayscale voltage to match the target color temperature and gamma value, the problem of low grayscale voltage debugging efficiency is solved, and efficient grayscale voltage debugging is achieved.
Patent Information
- Application Number
- CN202111391322.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-22
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2041-11-22
AI Technical Summary
Existing grayscale voltage adjustment technology is inefficient and cannot meet production needs. It requires frequent detection and calibration of each grayscale level to correct the differences in screen color temperature and gamma characteristics.
By acquiring the display color parameters and gamma parameters of the screen to be debugged, the three primary color light signal information is collected using a color analysis device, the photoelectric signal conversion information is calculated, the target voltage information is calculated based on the preset target color temperature and gamma value, and the grayscale voltage is updated to conform to the target color temperature and gamma value.
It significantly improves the efficiency of grayscale voltage adjustment, reduces the time required for frequent detection and calibration of each grayscale, and enables rapid grayscale voltage adjustment that meets the target color temperature and gamma value.
Smart Images

Figure CN114267315B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image data processing, and more particularly to a grayscale voltage adjustment method, apparatus, and computer-readable storage medium. Background Technology
[0002] Currently, with the rapid development of display device technology such as televisions and monitors, people have placed higher demands on display quality. Therefore, grayscale voltage calibration is needed to compensate for differences in screen color temperature and gamma characteristics. Existing grayscale voltage calibration techniques typically require multiple measurements of various grayscale levels on the gamma curve, followed by repeated calibration and confirmation. Finally, a gamma lookup table (containing the mapping relationship between grayscale and grayscale voltage) is created to match the target gamma value and target color temperature. This gamma lookup table is then sent to the display device so that it can display an image matching the target gamma value and target color temperature. However, the frequent testing, calibration, and confirmation of multiple grayscale levels during grayscale voltage calibration often consumes a significant amount of time, resulting in low efficiency in grayscale voltage calibration and making it difficult to meet production requirements.
[0003] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main objective of this invention is to provide a grayscale voltage adjustment method, which aims to solve the technical problem of low adjustment efficiency of grayscale voltage on the screen.
[0005] To achieve the above objectives, the present invention provides a grayscale voltage adjustment method, which includes the following steps:
[0006] Obtain the display color parameters and screen gamma parameters of the screen to be debugged;
[0007] Based on the display color parameters, obtain the photoelectric signal conversion information of the screen to be debugged;
[0008] Based on the photoelectric signal conversion information, the screen gamma parameters, and the preset debugging target parameters, the target voltage information corresponding to all gray levels of the screen to be debugged is obtained.
[0009] Update the current voltage corresponding to all gray levels of the screen to be debugged based on the target voltage information.
[0010] Preferably, the display color parameters include light signal information corresponding to the three primary colors when the display image of the screen to be tested is displayed, and the step of obtaining the photoelectric signal conversion information of the screen to be tested based on the display color parameters includes:
[0011] Based on the light signal information corresponding to the three primary colors displayed on the screen to be debugged, the mapping information between the electrical signal and the light signal of the screen to be debugged is obtained;
[0012] Based on the mapping information, the photoelectric signal conversion information of the screen to be debugged is obtained.
[0013] Preferably, the preset debugging target parameters include preset target color temperature information and preset target gamma value, and the step of obtaining the target voltage information corresponding to all gray levels of the screen to be debugged based on the photoelectric signal conversion information, the screen gamma parameter, and the preset debugging target parameters includes:
[0014] Based on the photoelectric signal conversion information, the preset target color temperature information, and the preset target gamma value, the optical signal information of the preset grayscale of the screen to be debugged is calculated.
[0015] Obtain the screen gamma parameters of the screen to be debugged, and calculate the target voltage information of the preset gray level based on the optical signal information of the preset gray level, the photoelectric signal conversion information, the preset target gamma value and the screen gamma parameters;
[0016] Based on the target voltage information of the preset gray levels, obtain the target voltage information corresponding to all gray levels.
[0017] Preferably, the preset grayscale optical signal information includes the white point and the XYZ chromaticity coordinates of the target grayscale, the photoelectric signal conversion information includes the photoelectric signal conversion matrix, and the step of calculating the preset grayscale optical signal information of the screen to be debugged based on the photoelectric signal conversion information, the preset target color temperature information, and the preset target gamma value includes:
[0018] The white field brightness value of the preset target color temperature is calculated based on the preset target color temperature information and the photoelectric signal conversion matrix.
[0019] Based on the preset target color temperature information and white field brightness value, the XYZ chromaticity coordinates of the white field corresponding to the screen to be debugged are calculated.
[0020] Based on the white field brightness value and the preset target gamma value, the target grayscale brightness value of the preset target color temperature is obtained;
[0021] Based on the preset target color temperature information and the target grayscale brightness value, the XYZ chromaticity coordinates of the target grayscale of the screen to be debugged are calculated.
[0022] Preferably, the preset target color temperature information includes the xy chromaticity coordinates of the preset target color temperature, and the step of calculating the white field brightness value of the preset target color temperature based on the preset target color temperature information and the photoelectric signal conversion matrix includes:
[0023] Based on the xy chromaticity coordinates of the preset target color temperature and the photoelectric signal conversion matrix, the first brightness value, the second brightness value, and the third brightness value are calculated.
[0024] Based on the xy chromaticity coordinates of the preset target color temperature and the photoelectric signal conversion matrix, calculate the first linear coordinate value, the second linear coordinate value, and the third linear coordinate value corresponding to the preset target color temperature when the brightness value is the first brightness value, the second brightness value, and the third brightness value, respectively;
[0025] The brightness value corresponding to the linear coordinate value among the first, second, and third linear coordinate values, where all values are less than or equal to 1, is selected as the white field brightness value.
[0026] Preferably, the step of obtaining the screen gamma parameters of the screen to be debugged, and calculating the target voltage information of the preset grayscale based on the optical signal information of the preset grayscale, the photoelectric signal conversion information, the preset target gamma value, and the screen gamma parameters includes:
[0027] The target voltage information of the white field is obtained based on the XYZ chromaticity coordinates of the white field, the photoelectric signal conversion matrix, and the preset target gamma value.
[0028] The screen gamma parameters of the screen to be debugged are obtained, and the target voltage information of the target gray level is calculated based on the XYZ chromaticity coordinates of the target gray level, the photoelectric signal conversion matrix, and the screen gamma parameters.
[0029] Preferably, the target voltage information includes the three primary color encoding values, and the step of obtaining the target voltage information of the white field based on the XYZ chromaticity coordinates of the white field, the photoelectric signal conversion matrix, and the preset target gamma value includes:
[0030] The linear coordinate values of the white field are calculated based on the XYZ chromaticity coordinates of the white field and the photoelectric signal conversion matrix.
[0031] The nonlinear coordinate values of the white field are calculated based on the linear coordinate values of the white field and the preset target gamma value.
[0032] The three primary color encoding values of the white field are calculated based on the nonlinear coordinate values of the white field and the preset maximum encoding value.
[0033] Preferably, the target voltage information includes primary color coding values, and the step of calculating the primary color coding values of the target grayscale based on the XYZ chromaticity coordinates of the target grayscale, the photoelectric signal conversion matrix, and the screen gamma parameters includes:
[0034] The linear coordinate values of the target grayscale are calculated based on the XYZ chromaticity coordinates of the target grayscale and the photoelectric signal conversion matrix.
[0035] The nonlinear coordinate values of the target grayscale are calculated based on the linear coordinate values of the target grayscale and the gamma parameters of the screen.
[0036] The three primary color encoding values of the target grayscale are calculated based on the nonlinear coordinate values of the target grayscale and the preset maximum encoding value.
[0037] In addition, to achieve the above objectives, the present invention also provides a grayscale voltage debugging device, the grayscale voltage debugging device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of any of the grayscale voltage debugging methods described above.
[0038] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium storing a grayscale voltage debugging program, wherein when the grayscale voltage debugging program is executed by a processor, it implements the steps of the grayscale voltage debugging method described above.
[0039] This invention proposes a grayscale voltage adjustment method. First, a color analysis device is used to collect light signal information when the screen to be adjusted displays the three primary colors (red, green, and blue), obtaining the display color parameters of the screen. Then, the gamma characteristics of the screen are detected to obtain the screen gamma parameters. Based on the display color parameters, the conversion relationship between the electrical and optical signals of the screen to be adjusted is obtained, thus acquiring the photoelectric signal conversion information of the screen. Next, the preset adjustment target parameters include preset target color temperature information and preset target gamma value. Based on the photoelectric signal conversion information, preset target color temperature information, and preset target gamma value, grayscale light signal information corresponding to all grayscale levels of the screen to be adjusted that conform to the preset target color temperature and preset target gamma value can be obtained. Finally, based on the grayscale light signal information, the photoelectric signal conversion information, the preset target gamma value, and the screen gamma parameters, the target voltage information corresponding to all grayscale levels of the screen to be adjusted is calculated. Finally, the current voltages corresponding to all gray levels of the screen under test are updated according to the target voltage information, so that the light signal output by the screen under test according to the updated gray level voltages conforms to the preset target color temperature and the gamma curve of the screen under test conforms to the preset gamma value, thus completing the gray level voltage debugging of the screen under test. In this invention, it is not necessary to spend a lot of time frequently detecting, calibrating and confirming each gray level one by one as in the traditional method. It is only necessary to collect the display color parameters and screen gamma parameters of the screen under test to obtain gray level voltages that conform to the preset target color temperature and preset gamma value, thus greatly improving the efficiency of gray level voltage debugging of the screen. Attached Figure Description
[0040] Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of the present invention;
[0041] Figure 2 This is a flowchart illustrating an embodiment of the grayscale voltage adjustment method of the present invention;
[0042] Figure 3 for Figure 2 A detailed flowchart of step S300.
[0043] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0044] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0045] like Figure 1 As shown, Figure 1This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of the present invention.
[0046] The device in this embodiment of the invention can be a television set, or a fixed or portable display device with display function such as a monitor, desktop computer, laptop computer, smartphone, tablet computer, or e-book reader.
[0047] like Figure 1 As shown, the device may include: a processor 1001, such as a CPU; a network interface 1004; a user interface 1003; a memory 1005; and a communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0048] Optionally, the device may also include a camera, a color analyzer, RF (Radio Frequency) circuitry, sensors, audio circuitry, a WiFi module, and so on. These sensors may include light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display screen according to the ambient light level, while the proximity sensor can turn off the display screen and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, a gravity accelerometer can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity, and can be used for applications that identify the mobile terminal's posture (such as landscape / portrait switching, magnetometer posture calibration), vibration recognition functions (such as pedometers, tapping), etc. Of course, the mobile terminal may also be equipped with other sensors such as a gyroscope, barometer, hygrometer, thermometer, and infrared sensor, which will not be elaborated here.
[0049] Those skilled in the art will understand that Figure 1 The device structure shown does not constitute a limitation on the grayscale voltage adjustment device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0050] like Figure 1As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a grayscale voltage debugging application.
[0051] exist Figure 1 In the illustrated device, network interface 1004 is mainly used to connect to the backend server and communicate with it; user interface 1003 is mainly used to connect to the client (user terminal) and communicate with it; while processor 1001 can be used to call the grayscale voltage debugging application stored in memory 1005 and perform the following operations:
[0052] Obtain the display color parameters and screen gamma parameters of the screen to be debugged;
[0053] Based on the display color parameters, obtain the photoelectric signal conversion information of the screen to be debugged;
[0054] Based on the photoelectric signal conversion information, the screen gamma parameters, and the preset debugging target parameters, the target voltage information corresponding to all gray levels of the screen to be debugged is obtained.
[0055] Update the current voltage corresponding to all gray levels of the screen to be debugged based on the target voltage information.
[0056] Furthermore, the display color parameters include the light signal information corresponding to the three primary colors when the screen to be debugged displays an image. The processor 1001 can call the grayscale voltage debugging application stored in the memory 1005 and also perform the following operations:
[0057] Based on the light signal information corresponding to the three primary colors displayed on the screen to be debugged, the mapping information between the electrical signal and the light signal of the screen to be debugged is obtained;
[0058] Based on the mapping information, the photoelectric signal conversion information of the screen to be debugged is obtained.
[0059] Furthermore, the preset debugging target parameters include preset target color temperature information and preset target gamma value. The processor 1001 can call the grayscale voltage debugging application stored in the memory 1005 and also perform the following operations:
[0060] Based on the photoelectric signal conversion information, the preset target color temperature information, and the preset target gamma value, the optical signal information of the preset grayscale of the screen to be debugged is calculated.
[0061] Obtain the screen gamma parameters of the screen to be debugged, and calculate the target voltage information of the preset gray level based on the optical signal information of the preset gray level, the photoelectric signal conversion information, the preset target gamma value and the screen gamma parameters;
[0062] Based on the target voltage information of the preset gray levels, obtain the target voltage information corresponding to all gray levels.
[0063] Furthermore, the preset grayscale optical signal information includes the white point and the XYZ chromaticity coordinates of the target grayscale, the photoelectric signal conversion information includes the photoelectric signal conversion matrix, and the processor 1001 can call the grayscale voltage debugging application stored in the memory 1005 and also perform the following operations:
[0064] The white field brightness value of the preset target color temperature is calculated based on the preset target color temperature information and the photoelectric signal conversion matrix.
[0065] Based on the preset target color temperature information and white field brightness value, the XYZ chromaticity coordinates of the white field corresponding to the screen to be debugged are calculated.
[0066] Based on the white field brightness value and the preset target gamma value, the target grayscale brightness value of the preset target color temperature is obtained;
[0067] Based on the preset target color temperature information and the target grayscale brightness value, the XYZ chromaticity coordinates of the target grayscale of the screen to be debugged are calculated.
[0068] Furthermore, the preset target color temperature information includes the xy chromaticity coordinates of the preset target color temperature. The processor 1001 can call the grayscale voltage debugging application stored in the memory 1005 and also perform the following operations:
[0069] Based on the xy chromaticity coordinates of the preset target color temperature and the photoelectric signal conversion matrix, the first brightness value, the second brightness value, and the third brightness value are calculated.
[0070] Based on the xy chromaticity coordinates of the preset target color temperature and the photoelectric signal conversion matrix, calculate the first linear coordinate value, the second linear coordinate value, and the third linear coordinate value corresponding to the preset target color temperature when the brightness value is the first brightness value, the second brightness value, and the third brightness value, respectively;
[0071] The brightness value corresponding to the linear coordinate value among the first, second, and third linear coordinate values, where all values are less than or equal to 1, is selected as the white field brightness value.
[0072] Furthermore, the processor 1001 can call the grayscale voltage debugging application stored in the memory 1005 and also perform the following operations:
[0073] The target voltage information of the white field is obtained based on the XYZ chromaticity coordinates of the white field, the photoelectric signal conversion matrix, and the preset target gamma value.
[0074] The screen gamma parameters of the screen to be debugged are obtained, and the target voltage information of the target gray level is calculated based on the XYZ chromaticity coordinates of the target gray level, the photoelectric signal conversion matrix, and the screen gamma parameters.
[0075] Furthermore, the target voltage information includes the three primary color encoding values. The processor 1001 can call the grayscale voltage debugging application stored in the memory 1005 and also perform the following operations:
[0076] The linear coordinate values of the white field are calculated based on the XYZ chromaticity coordinates of the white field and the photoelectric signal conversion matrix.
[0077] The nonlinear coordinate values of the white field are calculated based on the linear coordinate values of the white field and the preset target gamma value.
[0078] The three primary color encoding values of the white field are calculated based on the nonlinear coordinate values of the white field and the preset maximum encoding value.
[0079] Furthermore, the target voltage information includes the three primary color encoding values. The processor 1001 can call the grayscale voltage debugging application stored in the memory 1005 and also perform the following operations:
[0080] The linear coordinate values of the target grayscale are calculated based on the XYZ chromaticity coordinates of the target grayscale and the photoelectric signal conversion matrix.
[0081] The nonlinear coordinate values of the target grayscale are calculated based on the linear coordinate values of the target grayscale and the gamma parameters of the screen.
[0082] The three primary color encoding values of the target grayscale are calculated based on the nonlinear coordinate values of the target grayscale and the preset maximum encoding value.
[0083] Reference Figure 2 The first embodiment of the present invention provides a grayscale voltage adjustment method, the grayscale voltage adjustment method comprising:
[0084] Step S100: Obtain the display color parameters and screen gamma parameters of the screen to be debugged;
[0085] Specifically, the screen refers to the display module of various display devices such as mobile phones, televisions, and monitors. The display color parameters of the screen under test can be obtained by collecting light signal information when the screen displays the three primary colors (red, green, and blue) using a color analysis device. These display color parameters may include brightness and chromaticity coordinates, as well as other parameters such as saturation. The chromaticity coordinates are the coordinate values of the displayed color in different color spaces, such as the XYZ chromaticity coordinates of the CIE-XYZ color space and the XY chromaticity coordinates of the CIE-xy color space. Similarly, the gamma characteristics of the screen under test can be detected using a color analysis device to obtain the screen gamma parameters, which include the gamma values corresponding to each grayscale level of the screen under test. The light signal information of the screen to be tested in red, green, and blue primary colors can be directly collected using a color analysis device to obtain the corresponding XYZ chromaticity coordinates: Red XYZ = (X1, Y1, Z1), Green XYZ = (X2, Y2, Z2), and Blue XYZ = (X3, Y3, Z3). Alternatively, the light signal of the screen to be tested in red, green, and blue primary colors can be collected using a color analysis device to obtain the corresponding chromaticity coordinates (i.e., xy chromaticity coordinates (x, y)) and luminance value Lv in the CIE-xy color space. Then, the corresponding xy chromaticity coordinates (x, y) and luminance value Lv are converted into XYZ chromaticity coordinates (X, Y, Z). For example, the chromaticity coordinates and luminance values of the screen to be tested in red, green, and blue primary colors can be obtained as x1y1Lv1, x2y2Lv2, and x3y3Lv3, respectively. Then, using the formulas X=xLv / y;Y=Lv;Z=(1-xy)Lv / y, the xy chromaticity coordinates and luminance values Lv corresponding to the three primary colors are converted into the corresponding XYZ chromaticity coordinates: Red XYZ=(X1,Y1,Z1), Green XYZ=(X2,Y2,Z2) and Blue XYZ=(X3,Y3,Z3).
[0086] Step S200: Obtain the photoelectric signal conversion information of the screen to be debugged based on the display color parameters;
[0087] Specifically, the screen is essentially an electro-optical signal conversion device. Based on the display color parameters of the screen under test, the conversion relationship between the electrical and optical signals of the screen under test can be obtained, thereby acquiring the photoelectric signal conversion information of the screen under test. The photoelectric signal conversion information can take the form of a matrix, model, algorithm, or relational expression. This application does not limit the specific form of the photoelectric signal conversion information. For example, electrical signals can be represented using the RGB coordinate system, and optical signals can be represented using the CIE-xy coordinate system or the CIE-XYZ coordinate system. The CIE-xy coordinate system is essentially a simplified form of the CIE-XYZ coordinate system in the CIE-XYZ color space. Based on the conversion from the RGB coordinate system to the XYZ coordinate system, a corresponding electro-optical signal conversion matrix can be generated to describe the mapping relationship between the electrical signals and optical information of the screen under test. Then, the inverse matrix of the photoelectric conversion matrix is used as the photoelectric conversion matrix to describe the conversion between the optical signals and electrical information of the screen under test.
[0088] In another embodiment, the display color parameter includes the light signal information corresponding to the three primary colors when the display image of the screen to be debugged is displayed. Step S200 includes the following steps:
[0089] Step S210: Based on the light signal information corresponding to the three primary colors when the screen to be debugged displays an image, obtain the mapping information between the electrical signal and the light signal of the screen to be debugged;
[0090] Specifically, taking the photoelectric signal conversion information as a photoelectric conversion matrix as an example, the display color parameters include the light signal information corresponding to the three primary colors displayed on the screen to be tested. The light signal information includes the XYZ chromaticity coordinates of the three primary colors, that is, the XYZ chromaticity coordinates corresponding to the screen to be tested displaying red, green, and blue primary colors respectively. After obtaining the XYZ chromaticity coordinates of the three primary colors, they are then converted into corresponding column vectors.
[0091] (X,Y,Z) will be transformed into The column vectors will be referred to as [X; Y; Z] thereafter.
[0092] Obtain the column vector R corresponding to the three primary colors XYZ =[X1;Y1;Z3],G XYZ = [X2; Y2; Z2] and B XYZ =[X3;Y3;Z3].
[0093] Then, based on the column vector R XYZ G XYZ and B XYZThe mapping relationship between the electrical signal and optical information of the screen to be debugged can be obtained (i.e., the mapping information). Then, the electro-optical signal conversion matrix A corresponding to the mapping information is A = [R]. XYZ G XYZ B XYZ ],
[0094] Electro-optic signal conversion matrix
[0095] For example, the XYZ chromaticity coordinates of the three primary colors are Red XYZ = (132.9, 70.74, 3.324), Green XYZ = (135.8, 266.1, 26.71) and Blue XYZ = (94.48, 26.72, 522.8).
[0096] The generated electro-optic signal conversion matrix
[0097] Step S220: Obtain the photoelectric signal conversion information of the screen to be debugged based on the mapping information.
[0098] Specifically, since the electro-optic signal conversion matrix (i.e., the mapping information) is a matrix used to describe the mapping relationship between the electrical signal conversion and optical information of the screen to be debugged, the electro-optic signal conversion matrix A = [R] is then calculated. XYZ G XYZ B XYZ The inverse matrix of ] can be used to obtain the photoelectric signal conversion matrix A, which describes the mapping relationship between the optical signal and electrical information of the screen to be debugged. -1 =[R XYZ G XYZ B XYZ ] -1 .For example,
[0099] Electro-optic signal conversion matrix Then the photoelectric signal conversion matrix A -1 for
[0100]
[0101] Step S220 is followed by step S300.
[0102] Step S300: Based on the photoelectric signal conversion information, the screen gamma parameters, and the preset debugging target parameters, obtain the target voltage information corresponding to all gray levels of the screen to be debugged;
[0103] Specifically, the preset debugging target parameters may include preset target color temperature information and preset target gamma value. The preset target gamma value can be a gamma value preset by the manufacturer according to requirements, such as 1.8, 2.0, 2.2, or 2.4. The preset target color temperature is the color temperature corresponding to a standard light source defined by the manufacturer or user, such as D65, D50, or D75. Based on the photoelectric signal conversion information, the preset target color temperature information, and the preset target gamma value, grayscale light signal information corresponding to all grayscale levels of the screen to be debugged that conform to the preset target color temperature and preset target gamma value can be obtained. Then, based on the grayscale light signal information, the photoelectric signal conversion information, the preset target gamma value, and the screen gamma parameters, the target voltage information corresponding to all grayscale levels of the screen to be debugged can be calculated.
[0104] Step S400: Update the current voltage corresponding to all gray levels of the screen to be debugged according to the target voltage information.
[0105] Specifically, the target voltage information includes the mapping relationship between grayscale and voltage, which can be represented in the form of a gamma lookup table. The gamma lookup table includes the three primary color encoding values corresponding to all grayscale levels (i.e., the voltage components of the red, green, and blue light-emitting elements of the screen to be debugged). The gamma lookup table can be sent to the corresponding registers in the chassis of the screen to be debugged, so that the screen to be debugged updates the current voltage corresponding to all grayscale levels according to the gamma lookup table. This ensures that the light signal output by the screen to be debugged based on the updated grayscale voltages conforms to the preset target color temperature and the gamma curve of the screen to be debugged conforms to the preset gamma value, thus completing the grayscale voltage debugging of the screen to be debugged.
[0106] In the first embodiment of the present invention, light signal information of the screen to be tested when displaying the three primary colors (red, green, and blue) can be collected by a color analysis device to obtain the display color parameters of the screen to be tested. The gamma characteristics of the screen to be tested are detected to obtain the screen gamma parameters. Then, based on the display color parameters of the screen to be tested, the conversion relationship between the electrical signal and the light signal of the screen to be tested can be obtained, thereby obtaining the photoelectric signal conversion information of the screen to be tested. Then, the preset debugging target parameters include preset target color temperature information and preset target gamma value. Based on the photoelectric signal conversion information, preset target color temperature information, and preset target gamma value, grayscale light signal information corresponding to all grayscale levels of the screen to be tested that conform to the preset target color temperature and preset target gamma value can be obtained. Then, based on the grayscale light signal information, the photoelectric signal conversion information, the preset target gamma value, and the screen gamma parameters, the target voltage information corresponding to all grayscale levels of the screen to be tested can be calculated. Finally, the current voltages corresponding to all gray levels of the screen under test are updated according to the target voltage information, so that the light signal output by the screen under test according to the updated gray level voltages conforms to the preset target color temperature and the gamma curve of the screen under test conforms to the preset gamma value, thus completing the gray level voltage debugging of the screen under test. In this embodiment, it is not necessary to spend a lot of time frequently detecting, calibrating and confirming each gray level one by one as in the traditional method. It is only necessary to collect the display color parameters and screen gamma parameters of the screen under test to obtain gray level voltages that conform to the preset target color temperature and preset gamma value, thus greatly improving the efficiency of gray level voltage debugging of the screen.
[0107] Furthermore, referring to Figure 3 , Figure 3 for Figure 2 A detailed flowchart of step S300 is provided. In another embodiment of the present invention, the preset adjustment target parameters include preset target color temperature information and preset target gamma value, and step S300 includes:
[0108] Step S310: Calculate the optical signal information of the preset grayscale of the screen to be debugged based on the photoelectric signal conversion information, the preset target color temperature information, and the preset target gamma value.
[0109] Specifically, the preset grayscale is a grayscale value preset by the manufacturer, which may include a white point (i.e., the grayscale corresponding to the maximum brightness of the screen under test at the preset target color temperature) and several target grayscales. For example, the preset grayscale includes ten grayscales: 10%, 20%, 30%...100%, where 100% grayscale is the white point. The xy chromaticity coordinates corresponding to the preset target color temperature can be obtained by consulting a lookup table of color temperature and xy chromaticity coordinates. Then, based on the xy chromaticity coordinates of the target color temperature and the photoelectric signal conversion information, the white point brightness value Yw (i.e., the maximum brightness value) at which the screen reaches the preset target color temperature is calculated. Then, based on the white point brightness value Yw and the preset target gamma value, the brightness values corresponding to different preset grayscales are calculated. Finally, based on the xy chromaticity coordinates of the preset target color temperature and the brightness values corresponding to different preset grayscales, the light signal information (i.e., the XYZ chromaticity coordinates of the preset grayscale) of the screen under test is calculated.
[0110] In another embodiment, the preset grayscale optical signal information includes the white field and the XYZ chromaticity coordinates of the target grayscale, the photoelectric signal conversion information includes the photoelectric signal conversion matrix, and step S310 includes the following steps:
[0111] Step S311: Calculate the white field brightness value of the preset target color temperature based on the preset target color temperature information and the photoelectric signal conversion matrix;
[0112] Specifically, based on the xy chromaticity coordinates of the preset target color temperature and the photoelectric signal conversion matrix A -1 The white field brightness value of the preset target color temperature is calculated, which is the maximum brightness value that the screen can achieve when displaying the preset target color temperature.
[0113] Furthermore, step S311 also includes the following steps:
[0114] Step a1: Calculate the first brightness value, the second brightness value, and the third brightness value based on the xy chromaticity coordinates of the preset target color temperature and the photoelectric signal conversion matrix;
[0115] Specifically, based on the xy chromaticity coordinates (x, y) of the preset target color temperature, the XYZ chromaticity coordinates of the target color temperature are obtained as (xY / y, Y, (1-xy)Y / y), where Y is the luminance value. Then, the XYZ chromaticity coordinates of the target color temperature are converted into a column vector [xY / y; Y; (1-xy)Y / y]. For example, if the preset target color temperature is D65, then the xy chromaticity coordinates of the preset target color temperature are (0.3127, 0.329), and the corresponding column vector is [(0.3127 / 0.329)*Y; Y; (1-0.3127-0.329) / 0.329*Y].
[0116] Finally, according to the formula:
[0117]
[0118] Obtain the calculation formula:
[0119]
[0120] Where R, G, and B correspond to the unit quantities of the three primary colors, red, green, and blue, respectively. By setting R, G, and B to 1, the first brightness value Y1, the second brightness value Y2, and the third brightness value Y3 are calculated.
[0121] For example, the xy chromaticity coordinates of the preset target color temperature are (0.3127, 0.329), and the photoelectric signal conversion matrix A... -1 for:
[0122]
[0123] If we set R, G, and B to 1 respectively, we get three calculation formulas:
[0124] (0.3127 / 0.329)Y1*0.0102684+Y1*(-0.0050801)+(1-0.3127-0.329) / 0329*Y1*(-0.0015961)=1;
[0125] (0.3127 / 0.329)Y2*(-0.0027372)+Y2*0.0051316+(1-0.3127-0.329) / 0329*Y2*0.0002324=1;
[0126] (0.3127 / 0.329)Y3*0.0000746+Y3*(-0.0002299)+(1-0.3127-0.329) / 0329*Y3*0.0019111=1.
[0127] The above formulas can be used to calculate the first brightness value Y1 = 339.979; the second brightness value Y2 = 359.320 and the third brightness value Y3 = 520.227;
[0128] Step a2: Based on the xy chromaticity coordinates of the preset target color temperature and the photoelectric signal conversion matrix, calculate the first linear coordinate value, the second linear coordinate value, and the third linear coordinate value corresponding to the preset target color temperature when the brightness value is the first brightness value, the second brightness value, and the third brightness value, respectively.
[0129] Specifically, based on the xy chromaticity coordinates of the preset target color temperature and the photoelectric signal conversion matrix, the following formula can be used:
[0130]
[0131] Wherein, Y refers to the brightness value, and the first, second, and third linear coordinate values corresponding to the preset target color temperature are calculated when the brightness values are the first, second, and third brightness values, respectively. The first linear coordinate value corresponding to the first brightness value Y1 is [1.000; 0.946; 0.654], the second linear coordinate value corresponding to the second brightness value Y2 is [1.057; 1.000; 0.690], and the third linear coordinate value corresponding to the third brightness value Y3 is [1.530; 1.448; 1.000].
[0132] Step a3: Select the brightness value corresponding to the linear coordinate value among the first, second, and third linear coordinate values that is less than or equal to 1 as the white field brightness value.
[0133] Specifically, the linear coordinate values are normalized values, therefore they cannot be greater than 1. Therefore, the brightness value corresponding to the linear coordinate value among the first, second, and third linear coordinate values, where all values are less than or equal to 1, is selected as the white field brightness value. According to the calculation results in step a2, all values in the linear coordinate values [1.000; 0.946; 0.654] corresponding to the first brightness value Y1 are less than or equal to 1. Therefore, the first brightness value Y1 is selected as the white field brightness value Yw, i.e., Yw = Y1 = 339.979.
[0134] Step S312: Calculate the XYZ chromaticity coordinates of the white field corresponding to the screen to be debugged based on the preset target color temperature information and white field brightness value.
[0135] Specifically, once the white field brightness value is obtained, it can be calculated based on the xy chromaticity coordinates (x,y) of the preset target color temperature and the white field brightness value Yw, according to the following formula:
[0136] X=xY / y; Y=Y; Z=(1-xy)Y / y.
[0137] The XYZ chromaticity coordinates (i.e., the XYZ chromaticity coordinates of 100% grayscale) of the white field corresponding to the screen to be debugged can be calculated. For example, if the preset target color temperature is D65, then the XY chromaticity coordinates of the preset target color temperature are (0.3127, 0.329). If the white field brightness value Yw = 339.979, then the XYZ chromaticity coordinates of the white field can be calculated as ((0.3127*339.979 / 0.329), 339.979, (1-0.3127-0.329)*339.979 / 0.329) = (332.135, 339.979, 370.257).
[0138] Step S313: Obtain the target grayscale brightness value of the preset target color temperature based on the white field brightness value and the preset target gamma value;
[0139] Specifically, the target grayscale brightness value of the preset target color temperature is obtained based on the white point brightness value and the preset target gamma value. For example, if the white point brightness value Yw = 339.979, and the target grayscale values are 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, and 90%, then according to the formula, the brightness value of the target grayscale is Y' = Yw * (number of grayscale levels). 2.2 For example, the brightness value Y at 90% grayscale. 0.9 =Yw*0.9 2.2 =339.98 * 0.9 2.2 =269.641, and so on, the grayscale brightness values of each target can be calculated as follows, Y 0.9 =269.641, Y 0.8 =208.089, Y 0.7 =155.120, Y 0.6 =110.506, Y 0.5 =73.992, Y 0.4 =45.288, Y 0.3 =24.050, Y 0.2 =9.856, Y 0.1 =2.145.
[0140] Step S314: Calculate the XYZ chromaticity coordinates of the target grayscale of the screen to be debugged based on the preset target color temperature information and the target grayscale brightness value.
[0141] Specifically, based on the xy chromaticity coordinates of the preset target color temperature and the target grayscale brightness value, the XYZ chromaticity coordinates of the target grayscale corresponding to the screen to be debugged are calculated using the formulas: X = xY / y; Y = Y; Z = (1-xy)Y / y. For example, XYZ 0.9 XYZ 0.8 XYZ 0.7 XYZ 0.6 XYZ 0.5 XYZ 0.4 XYZ 0.3 XYZ 0.2 XYZ 0.1 .
[0142] Step S320: Obtain the screen gamma parameters of the screen to be debugged, and calculate the target voltage information of the preset gray level based on the optical signal information of the preset gray level, the photoelectric signal conversion information, the preset target gamma value and the screen gamma parameters;
[0143] Specifically, the XYZ chromaticity coordinates of the screen under test are collected by a color analysis device when displaying various gray levels. The actual gamma value (i.e., the screen gamma parameter) of the screen under test at each gray level is calculated based on these coordinates. The voltage information can be represented as three primary color encoded values, corresponding to the voltage components of the red, green, and blue light-emitting elements of the screen under test. Then, based on the XYZ chromaticity coordinates of the preset gray level and the photoelectric signal conversion matrix, the linear coordinate value of the preset gray level is calculated. Next, based on the linear coordinate value of the preset gray level, the corresponding gamma value in the preset gamma value and the screen gamma parameter, the nonlinear coordinate value corresponding to the preset gray level is calculated. Finally, based on the nonlinear coordinate value and the preset maximum encoded value, the three primary color encoded value (i.e., the target voltage information) of the preset gray level is calculated. The preset maximum encoded value is 2. n -1, where n is the number of bits in the image signal. Taking 8 bits as an example, the preset maximum encoding value is 2. n -1 = 2 8 -1 = 255.
[0144] In another embodiment, the step of obtaining the screen gamma parameters of the screen to be debugged in step S320 includes:
[0145] Step b1: Obtain the XYZ chromaticity coordinates of the screen grayscale when the display image of the screen to be debugged is a preset grayscale.
[0146] Step b2: Obtain the grayscale gamma value corresponding to the grayscale of the screen based on the XYZ chromaticity coordinates of the screen.
[0147] Step b3: Based on the grayscale gamma value, the screen gamma parameter of the screen to be debugged is obtained by interpolation calculation.
[0148] Specifically, the XYZ chromaticity coordinates (i.e., the screen's grayscale XYZ chromaticity coordinates) of the screen under test are collected by a color analysis device when it actually displays each preset grayscale level. There is no limit to the number of preset grayscale levels obtained. For example, if the screen under test actually displays grayscale levels of 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90%, and 100%, and the XYZ chromaticity coordinates of 100% grayscale are (363.5, 363.8, 554.1), and the XYZ chromaticity coordinates of 90% grayscale are (288.8, 289.9, 434.7), then the gamma value γ0.9 of the screen at 90% grayscale can be calculated. Therefore, the calculation yields:
[0149]
[0150] By calculating the average of the above gamma values, the gamma value of the screen at 90% grayscale can be obtained as γ0.9 = (γ1 + γ2 + γ3) / 3 = 2.214. Alternatively, the three gamma values can be mapped one-to-one with the values in the linear coordinate system (R, G, B), i.e., γ1 corresponds to the actual gamma value with R, γ2 corresponds to the actual gamma value with G, and γ3 corresponds to the actual gamma value with B. Similarly, the gamma values γ0.9, γ0.8, γ0.7, γ0.6, γ0.5, γ0.4, γ0.3, γ0.2, and γ0.1 corresponding to each grayscale level from 90% to 10% can be calculated. The gamma value corresponding to 100% grayscale is the preset target gamma value (e.g., 2.2). Based on this, the corresponding gamma values of all screen gray levels can be obtained through interpolation calculation. If the number of bits in the image signal is 8 bits, then it is the gamma value of the screen gray levels from 0 to 255.
[0151] In another embodiment, the step S320 of calculating the target voltage information of the preset grayscale based on the optical signal information of the preset grayscale, the photoelectric signal conversion information, the preset target gamma value, and the screen gamma parameters further includes:
[0152] Step S321: Obtain the target voltage information of the white field based on the XYZ chromaticity coordinates of the white field, the photoelectric signal conversion matrix, and the preset target gamma value;
[0153] Specifically, based on the XYZ chromaticity coordinates of the white field and the photoelectric signal conversion matrix A -1 The linear coordinates of the white field can be obtained, and these linear coordinates are normalized values. Since the XYZ color system is a linear space, gamma correction is also needed on the linear coordinates of the white field based on the target gamma value. This yields the nonlinear coordinates of the white field. Then, the nonlinear coordinates of the white field are compared with a preset maximum encoding value (i.e., 2). n -1, where n is the number of bits in the image signal; taking 8 bits as an example, the preset maximum encoding value is 2. n -1 = 2 8 -1 = 255. Therefore, the three primary color encoding values of the white field (i.e., the target voltage information of the white field) can be calculated.
[0154] Step S321 includes the following steps:
[0155] Step c1: Calculate the linear coordinate values of the white field based on the XYZ chromaticity coordinates of the white field and the photoelectric signal conversion matrix;
[0156] Step c2: Calculate the nonlinear coordinate values of the white field based on the linear coordinate values of the white field and the preset target gamma value;
[0157] Step c3: Calculate the three primary color encoding values of the white field based on the nonlinear coordinate values of the white field and the preset maximum encoding value.
[0158] Specifically, assuming the XYZ chromaticity coordinates of the white field are (332.135, 339.979, 370.257), the preset target gamma value is 2.2, the image signal has 8 bits, and the photoelectric signal conversion matrix A... -1 for:
[0159]
[0160] Then, according to the following formula
[0161]
[0162] The linear coordinate values of the white field (RGB) were calculated. XT = [1.000; 0.946; 0.654]. Since the CIE-XYZ color space is a linear space, gamma correction is also required for the linear coordinate values. That is, the (1 / preset target gamma value) power of each value in the linear coordinate values is calculated to obtain the non-linear coordinate values RGB. FT [1.000 (1 / 2.2) ; 0.946 (1 / 2.2) ; 0.654 (1 / 2.2) = [1.000; 0.975; 0.824], and finally multiply each value in the nonlinear coordinate by the preset maximum encoding value 2. n -1, if it is 8 bits, then the maximum preset encoding value is 2. n -1 = 2 8 -1 = 255, then the final obtained RGB three-primary-color encoded values of the white field T =[1.000*255; 0.975*255; 0.824*255] =[255; 249; 210], which means that when the screen to be debugged reaches the maximum brightness value (i.e., white field) under the preset target color temperature, the corresponding three primary color codes are red code value R=255, green code value G=249, and blue code value B=210.
[0163] Step S322: Obtain the screen gamma parameters of the screen to be debugged, and calculate the target voltage information of the target gray level based on the XYZ chromaticity coordinates of the target gray level, the photoelectric signal conversion matrix, and the screen gamma parameters.
[0164] Specifically, the XYZ chromaticity coordinates of the screen under test are collected by a color analysis device when the screen is actually displaying each gray level. Based on these XYZ chromaticity coordinates, the actual gamma value (i.e., the screen gamma parameter) of the screen under test at each gray level is calculated. The linear coordinate value of the target gray level is calculated based on the XYZ chromaticity coordinates and the photoelectric signal conversion matrix. Then, the nonlinear coordinate value of each target gray level is calculated based on the screen gamma parameter corresponding to the gamma value of each target gray level. Finally, the nonlinear coordinate values of each target gray level are compared with a preset maximum encoding value (i.e., 2). n -1, where n is the number of bits in the image signal; taking 8 bits as an example, the preset maximum encoding value is 2. n -1 = 2 8 -1 = 255. Therefore, the three primary color encoding values (i.e., the target voltage information of the target grayscale) of each target grayscale can be calculated.
[0165] Step S322 includes the following steps:
[0166] Step d1: Calculate the linear coordinate values of the target grayscale based on the XYZ chromaticity coordinates of the target grayscale and the photoelectric signal conversion matrix.
[0167] Step d2: Calculate the nonlinear coordinate values of the target grayscale based on the linear coordinate values of the target grayscale and the gamma parameters of the screen.
[0168] Step d3: Calculate the three primary color codes of the target grayscale based on the nonlinear coordinate values of the target grayscale and the preset maximum coding value.
[0169] Specifically, the number of target gray levels can be set by the manufacturer according to requirements, assuming that the XYZ chromaticity coordinates corresponding to each target gray level are XYZ respectively. 0.9 XYZ 0.8 XYZ 0.7 XYZ 0.6 XYZ 0.5 XYZ 0.4 XYZ 0.3 XYZ 0.2 XYZ 0.1 The screen gamma values corresponding to each target grayscale are γ. 0.9 γ 0.8 γ 0.7 γ 0.6 γ 0.5 γ 0.4 γ 0.3 γ 0.2 γ 0.1For example, the XYZ chromaticity coordinates of 90% of the target grayscale. 0.9 =(256.2819,269.641,293.655), corresponding to the actual gamma value γ. 0.9 =2.214, then the linear coordinates (RGB) of 90% of the target grayscale are... X0.9 =XYZ 0.9 *A -1 = [0.793; 0.750; 0.5183], the nonlinear coordinate values of 90% of the target grayscale (RGB) F0.9 =[0.793 (1 / 2.214) 0.750 (1 / 2.214) ; 0.5183 (1 / 2.214) [0.901; 0.878; 0.743]. Of course, the actual gamma value corresponding to 90% of the target grayscale can also be γ. 0.9 =2.18, γ 0.9 =2.16, γ 0.9 If ' = 2.30, then RGB F0.9 =[0.793 (1 / 2.183) 0.750 (1 / 2.155) ; 0.5183 (1 / 2.303) [0.899; 0.875; 0.752]. Following this logic, the non-linear RGB values for each target grayscale level can be calculated. F0.8 RGB F0.7 RGB F0.6 RGB F0.5 RGB F0.4 RGB F0.3 RGB F0.2 RGB F0.1 Furthermore, the nonlinear coordinate values of each target grayscale are multiplied by the maximum preset encoding value (2). n -1), to obtain the three primary color encoding values corresponding to each target grayscale. For example, the non-linear coordinate values of 90% of the target grayscale are RGB. F0.9 = [0.901; 0.878; 0.743], the image signal has 8 bits, so the preset maximum encoding value is 2. n -1 = 2 8 -1 = 255, then the RGB values corresponding to 90% of the target grayscale are... 0.9 =[0.901*255; 0.878*255; 0.743*255] =[230; 224; 190]. And so on, the RGB values corresponding to each target grayscale can be calculated separately. 0.8 RGB 0.7 RGB 0.6 RGB0.5 RGB 0.4 RGB 0.3 RGB 0.2 RGB 0.1 .
[0170] Step S330: Obtain target voltage information corresponding to all gray levels based on the target voltage information of the preset gray levels.
[0171] Specifically, the preset grayscale includes a white point and a target grayscale. All grayscale refers to all levels of brightness variation on the screen. For example, if the image signal has 8 bits, then all grayscale is from level 0 to 255. The primary color encoding values of all grayscale levels of the screen to be debugged can be obtained by interpolating the primary color encoding values of the preset grayscale. For example, assuming the preset grayscale is 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90%, and 100%, then the primary color encoding values of the preset grayscale are RGB. 1.0 RGB 0.9 RGB 0.8 RGB 0.7 RGB 0.6 RGB 0.5 RGB 0.4 RGB 0.3 RGB 0.2 RGB 0.1 Then, based on the preset grayscale primary color encoding values, the primary color encoding values for all grayscale levels of the screen to be debugged can be obtained through interpolation calculation. For example, the primary color encoding values for 50% of the grayscale are RGB. 0.5 The values are (127, 123, 106), representing 60% of the grayscale values for the three primary colors in RGB. 0.6 The values are (153, 129, 146). Therefore, the RGB values for 55% grayscale can be calculated using interpolation. 0.55 The formula is ((153-127)*(55%-50%) / (60%-50%)+127, (129-123)*(55%-50%) / (60%-50%)+123, (146-106)*(55%-50%) / (60%-50%)+106)=(140,126,126). By analogy, the three primary color codes corresponding to all gray levels can be obtained. Alternatively, based on the target voltage information of the preset gray levels, a corresponding curve can be fitted to obtain the target voltage information corresponding to all gray levels.
[0172] Furthermore, embodiments of the present invention also propose a computer storage medium.
[0173] The computer storage medium stores a computer program, which, when executed by a processor, performs the operations in the grayscale voltage debugging method provided in the above embodiments.
[0174] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity / operation / object from another, and do not necessarily require or imply any such actual relationship or order between these entities / operations / objects; the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0175] For the apparatus embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and relevant details can be found in the description of the method embodiments. The apparatus embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the present invention. Those skilled in the art can understand and implement this without any creative effort.
[0176] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0177] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, vehicle, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0178] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A grayscale voltage adjustment method, characterized in that, The grayscale voltage adjustment method includes the following steps: Obtain the display color parameters and screen gamma parameters of the screen to be debugged; Based on the display color parameters, obtain the photoelectric signal conversion information of the screen to be debugged; Based on the photoelectric signal conversion information, the screen gamma parameters, and the preset debugging target parameters, the target voltage information corresponding to all gray levels of the screen to be debugged is obtained. Update the current voltage corresponding to all gray levels of the screen to be debugged according to the target voltage information; The preset debugging target parameters include preset target color temperature information and preset target gamma value. The step of obtaining the target voltage information corresponding to all gray levels of the screen to be debugged based on the photoelectric signal conversion information, the screen gamma parameter, and the preset debugging target parameters includes: Based on the photoelectric signal conversion information, the preset target color temperature information, and the preset target gamma value, the optical signal information of the preset grayscale of the screen to be debugged is calculated. Obtain the screen gamma parameters of the screen to be debugged, and calculate the target voltage information of the preset gray level based on the optical signal information of the preset gray level, the photoelectric signal conversion information, the preset target gamma value and the screen gamma parameters; Based on the target voltage information of the preset gray levels, obtain the target voltage information corresponding to all gray levels; The preset grayscale optical signal information includes the white point and the XYZ chromaticity coordinates of the target grayscale. The photoelectric signal conversion information includes the photoelectric signal conversion matrix. The step of calculating the preset grayscale optical signal information of the screen to be debugged based on the photoelectric signal conversion information, the preset target color temperature information, and the preset target gamma value includes: The white field brightness value of the preset target color temperature is calculated based on the preset target color temperature information and the photoelectric signal conversion matrix. Based on the preset target color temperature information and white field brightness value, the XYZ chromaticity coordinates of the white field corresponding to the screen to be debugged are calculated. Based on the white field brightness value and the preset target gamma value, the target grayscale brightness value of the preset target color temperature is obtained; Based on the preset target color temperature information and the target grayscale brightness value, the XYZ chromaticity coordinates of the target grayscale of the screen to be debugged are calculated.
2. The grayscale voltage adjustment method as described in claim 1, characterized in that, The display color parameters include the light signal information corresponding to the three primary colors when the display image of the screen to be debugged is displayed. The step of obtaining the photoelectric signal conversion information of the screen to be debugged based on the display color parameters includes: Based on the light signal information corresponding to the three primary colors displayed on the screen to be debugged, the mapping information between the electrical signal and the light signal of the screen to be debugged is obtained; Based on the mapping information, the photoelectric signal conversion information of the screen to be debugged is obtained.
3. The grayscale voltage adjustment method as described in claim 1, characterized in that, The preset target color temperature information includes the xy chromaticity coordinates of the preset target color temperature. The step of calculating the white field brightness value of the preset target color temperature based on the preset target color temperature information and the photoelectric signal conversion matrix includes: Based on the xy chromaticity coordinates of the preset target color temperature and the photoelectric signal conversion matrix, the first brightness value, the second brightness value, and the third brightness value are calculated. Based on the xy chromaticity coordinates of the preset target color temperature and the photoelectric signal conversion matrix, calculate the first linear coordinate value, the second linear coordinate value, and the third linear coordinate value corresponding to the preset target color temperature when the brightness value is the first brightness value, the second brightness value, and the third brightness value, respectively; The brightness value corresponding to the linear coordinate value among the first, second, and third linear coordinate values, where all values are less than or equal to 1, is selected as the white field brightness value.
4. The grayscale voltage adjustment method as described in claim 1, characterized in that, The step of obtaining the screen gamma parameters of the screen to be debugged, and calculating the target voltage information of the preset grayscale based on the optical signal information of the preset grayscale, the photoelectric signal conversion information, the preset target gamma value, and the screen gamma parameters includes: The target voltage information of the white field is obtained based on the XYZ chromaticity coordinates of the white field, the photoelectric signal conversion matrix, and the preset target gamma value. The screen gamma parameters of the screen to be debugged are obtained, and the target voltage information of the target gray level is calculated based on the XYZ chromaticity coordinates of the target gray level, the photoelectric signal conversion matrix, and the screen gamma parameters.
5. The grayscale voltage adjustment method as described in claim 4, characterized in that, The target voltage information includes the three primary color encoding values. The step of obtaining the target voltage information of the white field based on the XYZ chromaticity coordinates of the white field, the photoelectric signal conversion matrix, and the preset target gamma value includes: The linear coordinate values of the white field are calculated based on the XYZ chromaticity coordinates of the white field and the photoelectric signal conversion matrix. The nonlinear coordinate values of the white field are calculated based on the linear coordinate values of the white field and the preset target gamma value. The three primary color encoding values of the white field are calculated based on the nonlinear coordinate values of the white field and the preset maximum encoding value.
6. The grayscale voltage adjustment method as described in claim 4, characterized in that, The target voltage information includes the three primary color encoding values. The step of calculating the three primary color encoding values of the target grayscale based on the XYZ chromaticity coordinates of the target grayscale, the photoelectric signal conversion matrix, and the screen gamma parameters includes: The linear coordinate values of the target grayscale are calculated based on the XYZ chromaticity coordinates of the target grayscale and the photoelectric signal conversion matrix. The nonlinear coordinate values of the target grayscale are calculated based on the linear coordinate values of the target grayscale and the gamma parameters of the screen. The three primary color encoding values of the target grayscale are calculated based on the nonlinear coordinate values of the target grayscale and the preset maximum encoding value.
7. A grayscale voltage adjustment device, characterized in that, The grayscale voltage debugging device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the grayscale voltage debugging method as described in any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a grayscale voltage debugging program, which, when executed by a processor, implements the steps of the grayscale voltage debugging method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Gamma circuit adjustment method and device
CN108039143A