Data processing method, gamma adjusting device and system thereof
By constructing an initial step size assignment model and multiple rounds of adjustment optimization and adjustment step size, the problem of difficulty in determining step size in gamma adjustment is solved, and efficient and accurate gamma adjustment is achieved.
Patent Information
- Application Number
- CN202510518714.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-23
- Publication Date
- 2025-06-17
AI Technical Summary
How to quickly and accurately determine the adjustment step of gamma adjustment in the prior art affects the efficiency and accuracy of gamma adjustment.
By constructing an initial step size assignment model, the initial adjustment step size of the binding point to be adjusted is output, and the step size is optimized through multiple rounds of adjustment until the preset conditions are met.
The optimal adjustment step length is achieved quickly locked, reducing the number and time of gamma adjustments, and improving the accuracy and efficiency of adjustments.
Smart Images

Figure CN120164403A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of machine learning and gamma adjustment, and in particular relates to a data processing method, a gamma adjustment device and a system thereof. Background Art
[0002] In the display field, gamma describes the power function relationship between display brightness (L) and input signal (V, that is, the grayscale of the picture 0 to 255, usually a normalized value of 0-1): L = V γ Among them, γ (gamma value) determines the shape of the curve. For example, the γ of standard sRGB is about 2.2. Gamma adjustment is the relationship between the grayscale and brightness of the picture that conforms to gamma 2.2. The requirements of brightness and color coordinates are met by finding the appropriate RGB register value.
[0003] Gamma adjustment of display products is to find reasonable RGB register values. The RGB register values are written into the screen to get the corresponding picture, and then the brightness and chromaticity are measured with optical equipment to determine whether the brightness and color coordinates at this time meet the user's requirements (i.e., SPEC standards, where users determine the target brightness and color coordinates of each binding point based on the characteristics of the screen). If not, the RGB register values are readjusted. During the adjustment process, the "adjustment step" of the RGB register value directly determines the adjustment time and number of adjustments. The adjustment step is related to the characteristics of the screen. How to quickly obtain an accurate adjustment step is a technical problem that needs to be solved in the field of gamma adjustment. Summary of the invention
[0004] The present disclosure aims to solve at least one of the technical problems existing in the prior art and provides a data processing method, a gamma adjustment device and a system thereof.
[0005] In a first aspect, the technical solution adopted to solve the technical problem of the present disclosure is a data processing method, which is applied to a gamma adjustment device; the data processing method comprises:
[0006] Acquire at least one set of input data about the display device; each set of input data includes preset parameters corresponding to a plurality of binding points to be adjusted;
[0007] For any set of the input data, an initial step length assignment model is constructed according to the preset parameters corresponding to each of the binding points to be adjusted in the input data, and the initial adjustment step lengths corresponding to each of the binding points to be adjusted are output;
[0008] For any set of the input data, traverse each of the tie points to be adjusted, and perform multiple rounds of adjustment on the drive signal corresponding to each of the tie points to be adjusted, so as to output the adjustment step size of the last round as the target adjustment step size corresponding to the tie point to be adjusted; wherein, for the adjustment in this round, use the adjustment step size of the previous round to adjust the drive signal multiple times, so as to obtain the target data after the optical information of the display device meets the standard optical information; the target data includes the number of adjustments in this round and the optical error information of the display device after each adjustment; when this round is the first round, the adjustment step size of the previous round is the initial adjustment step size;
[0009] Determine the adjustment step size of this round according to the trend of the optical error information after each adjustment;
[0010] When the number of adjustments in each round meets the preset conditions, output the adjustment step size of the last round; gradually modify the preset conditions until the preset conditions include that the number of adjustments of each of the tie points to be adjusted in each round is less than or equal to the number specified by the user.
[0011] In some embodiments, for the adjustment in this round, using the adjustment step size of the previous round to adjust the drive signal multiple times includes:
[0012] For the current adjustment of any one of the tie points to be adjusted, obtain the optical information of the display device driven by the drive signal of the previous adjustment;
[0013] Determine the optical error information corresponding to the current adjustment according to the optical information corresponding to the previous adjustment and the standard optical information;
[0014] Determine the drive signal error information of the current adjustment according to the intermediate conversion matrix between the drive signal and the optical information constructed in advance, the optical error information corresponding to the current adjustment, and the adjustment step size of the previous round;
[0015] Determine the drive signal of the current adjustment according to the drive signal error information of the current adjustment and the drive signal of the previous adjustment; when the current adjustment is the first adjustment, the drive signal of the previous adjustment is the preset drive signal of the tie point to be adjusted in the preset parameters.
[0016] In some embodiments, the optical error information includes brightness error;
[0017] The determining the optical error information corresponding to the current adjustment according to the optical information corresponding to the previous adjustment and the standard optical information includes:
[0018] Calculate the difference between the brightness corresponding to the previous adjustment and the standard brightness;
[0019] Use the ratio of the difference value to the standard brightness as the brightness error corresponding to the current adjustment.
[0020] In some embodiments, the optical error information is an optical error matrix with brightness error or color coordinate error as elements;
[0021] Determining the driving signal error information for the current adjustment according to the pre-constructed intermediate conversion matrix between the driving signal and the optical information, the optical error information corresponding to the current adjustment, and the adjustment step of the previous round includes:
[0022] Calculate the product of the optical error matrix and the transpose of the intermediate conversion matrix;
[0023] Calculate the ratio of the product to the adjustment step of the previous round as the driving signal error information for the current adjustment.
[0024] In some embodiments, determining the adjustment step of this round according to the trend of the optical error information after each adjustment includes:
[0025] According to the adjustment order, judge the signs of the error values in the optical error information of any two adjacent adjustments;
[0026] Determine the step adjustment mode according to the comparison results of the signs of the error values of two adjacent adjustments in all adjustment times of this round;
[0027] When the step adjustment mode is to increase, use the product of the adjustment step of the previous round and the first adjustment parameter as the adjustment step of this round; the first adjustment parameter is greater than 1;
[0028] When the step adjustment mode is to decrease, use the product of the adjustment step of the previous round and the second adjustment parameter as the adjustment step of this round; the second adjustment parameter is a value greater than 0 and less than 1.
[0029] In some embodiments, determining the step adjustment mode according to the sign comparison result includes:
[0030] If the signs of the error values corresponding to two adjacent adjustments are opposite, then increment the cross count by 1 and determine the total number of cross counts in the adjustment times of this round;
[0031] Calculate the cross count ratio of the total number of cross counts to the adjustment times of this round;
[0032] If the cross count ratio is greater than the preset cross ratio, determine that the step adjustment mode is to increase;
[0033] If the cross - over ratio is less than or equal to the preset cross - over ratio, determine that the step - size adjustment mode is to decrease.
[0034] In some embodiments, when the number of adjustment times in each round meets the preset conditions, output the adjustment step - size of the last round, including:
[0035] Judge whether the number of adjustment times in this round is greater than the first preset number threshold;
[0036] If the number of adjustment times in this round is greater than the first preset number threshold, subtract 1 from the first preset number threshold and enter the next - round adjustment;
[0037] If the number of adjustment times in this round is less than or equal to the first preset number threshold, judge whether the first preset number threshold is greater than the second preset number threshold;
[0038] If the first preset number threshold is greater than the second preset number threshold, return to continue executing the step of subtracting 1 from the first preset number threshold and entering the next - round adjustment;
[0039] If the first preset number threshold is less than or equal to the second preset number threshold, output the adjustment step - size of the last round.
[0040] In some embodiments, the preset parameters include grayscale values, preset adjustment times, and preset adjustment step - sizes;
[0041] Construct an initial step - size assignment model according to the preset parameters corresponding to each of the to - be - adjusted tying points in the input data, and output the initial adjustment step - sizes corresponding to each of the to - be - adjusted tying points, including:
[0042] Select first tying points from multiple to - be - adjusted tying points according to the preset adjustment times corresponding to each of the to - be - adjusted tying points; the number of the first tying points is greater than or equal to the preset tying - point selection number;
[0043] Fit a grayscale - adjustment step - size curve according to the grayscale values and preset adjustment step - sizes corresponding to each of the first tying points as the initial step - size assignment model;
[0044] Determine the initial adjustment step - sizes corresponding to each of the to - be - adjusted tying points from the grayscale - adjustment step - size curve.
[0045] In some embodiments, the step of selecting first tying points from multiple to - be - adjusted tying points according to the preset adjustment times corresponding to each of the to - be - adjusted tying points includes:
[0046] Select the to - be - adjusted tying points with preset adjustment times less than or equal to the third preset number threshold from the multiple to - be - adjusted tying points as the first tying points;
[0047] If the number of the first tying points screened out is less than the preset tying point screening number, add 1 to the third preset number threshold.
[0048] According to the updated third preset number threshold, re-screen the first tying points from the input data until the number of the first tying points screened out is greater than or equal to the preset tying point screening number.
[0049] In some embodiments, the display device includes multiple different refresh frequencies and multiple different ambient brightnesses in the real environment where it is located. Each of the refresh frequencies corresponds to a set of the input data; each of the ambient brightnesses corresponds to a set of the input data; and the input data includes multiple sets.
[0050] The data processing method further includes:
[0051] For each adjustment of the driving signal, update the adjustment step size of this round to the corresponding set of the input data; and for each adjustment of the driving signal, update the driving signal after this adjustment to the corresponding set of the input data.
[0052] In some embodiments, for any set of the input data, after outputting the target adjustment step sizes of the tying points to be adjusted, it further includes:
[0053] Traverse each set of the updated input data, adjust the driving signal according to the target adjustment step size corresponding to the tying point to be adjusted, so as to obtain the target adjustment number of times after the optical information of the display device meets the standard optical information.
[0054] Statistically count the target adjustment number of times corresponding to all the tying points to be adjusted within all sets, and calculate the average adjustment number of times of all the tying points to be adjusted.
[0055] If the average adjustment number of times is less than or equal to the second preset number threshold, determine that the target adjustment step sizes of the tying points to be adjusted meet the qualified conditions.
[0056] In a second aspect, an embodiment of the present disclosure further provides a gamma adjustment device, including:
[0057] A data acquisition module, configured to acquire at least one set of input data about a display device; each set of the input data includes preset parameters respectively corresponding to a plurality of tying points to be adjusted.
[0058] A step size rough adjustment module, configured to, for any set of the input data, construct an initial step size assignment model according to the preset parameters respectively corresponding to the tying points to be adjusted in the input data, and output the initial adjustment step sizes respectively corresponding to the tying points to be adjusted.
[0059] The step fine-tuning module is configured to traverse each of the to-be-adjusted tie points for any set of the input data, and perform multiple rounds of adjustment on the drive signal corresponding to each of the to-be-adjusted tie points, so as to output the adjustment step length of the last round as the target adjustment step length corresponding to the to-be-adjusted tie point; wherein, the step fine-tuning module includes an adjustment unit and a step length determination unit;
[0060] The adjustment unit is configured to, for the adjustment of this round, use the adjustment step length of the previous round to perform multiple adjustments on the drive signal, so as to obtain target data after the optical information of the display device meets the standard optical information; the target data includes the number of adjustments of this round and the optical error information of the display device after each adjustment; when this round is the first round, the adjustment step length of the previous round is the initial adjustment step length;
[0061] The step length determination unit is configured to determine the adjustment step length of this round according to the trend of the optical error information after each adjustment; and output the adjustment step length of the last round when the number of adjustments in each round meets the preset conditions; gradually modify the preset conditions until the preset conditions include that the number of adjustments of each of the to-be-adjusted tie points in each round is less than or equal to the number specified by the user.
[0062] In a third aspect, an embodiment of the present disclosure further provides a gamma adjustment system, which includes the gamma adjustment device and the display device as described in the second aspect;
[0063] The gamma adjustment device is configured to use the target adjustment step length of the to-be-adjusted tie point to adjust the drive signal corresponding to the to-be-adjusted tie point, and send the adjusted drive signal to the display device;
[0064] The display device is configured to receive and store the adjusted drive signal; and, when lighting the target gray level, perform screen display by driving the adjusted drive signal corresponding to the target gray level.
[0065] In a fourth aspect, an embodiment of the present disclosure further provides a computer device, which includes: a processor, a memory, and a bus, the memory stores machine-readable instructions executable by the processor, when the computer device runs, the processor communicates with the memory through the bus, and when the machine-readable instructions are executed by the processor, the steps of the data processing method as described in any one of the first aspect are executed.
[0066] In a fifth aspect, an embodiment of the present disclosure further provides a computer non-transitory readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the steps of the data processing method as described in any one of the first aspect are executed. Description of the Drawings
[0067] Figure 1 It is a flowchart of the data processing method provided by the embodiments of the present disclosure.
[0068] Figure 2a and Figure 2b It is a trend chart of a brightness error in an embodiment of the present disclosure.
[0069] Figure 3a and Figure 3b It is another trend chart of a brightness error in an embodiment of the present disclosure.
[0070] Figure 4 It is a flowchart of constructing an initial step size assignment model and outputting an initial adjustment step size provided by the embodiments of the present disclosure.
[0071] Figure 5 It is a schematic diagram of the initial step size assignment model provided by the embodiments of the present disclosure.
[0072] Figure 6 It is a flowchart of data verification provided by the embodiments of the present disclosure.
[0073] Figure 7 It is a simplified flowchart of the data processing method provided by the embodiments of the present disclosure.
[0074] Figure 8 It is a simplified flowchart of the coarse adjustment process provided by the embodiments of the present disclosure.
[0075] Figure 9 It is a simplified flowchart of the fine adjustment process provided by the embodiments of the present disclosure.
[0076] Figure 10 It is a flowchart of optimizing the adjustment step size for a single binding point to be adjusted provided by the embodiments of the present disclosure.
[0077] Figure 11 It is a schematic diagram of a gamma adjustment device provided by the embodiments of the present disclosure.
[0078] Figure 12 It is a schematic diagram of a gamma adjustment system provided by the embodiments of the present disclosure.
[0079] Figure 13 It is a schematic diagram of the structure of a computer device provided by the embodiments of the present disclosure. Detailed implementation manners
[0080] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part rather than all of the embodiments of the present disclosure.
[0081] Unless otherwise defined, technical terms or scientific terms used in this disclosure shall have the ordinary meanings understood by those of ordinary skill in the field to which this disclosure pertains. The "first", "second" and similar terms used in this disclosure do not denote any order, quantity or importance, but are only used to distinguish different components.
[0082] In order to make the display product conform to the sensory vision of the human eye, it is usually necessary to perform gamma adjustment on the screen using a gamma adjustment device before the product leaves the factory. The speed of gamma adjustment directly determines the production capacity and efficiency of the production line. During the gamma adjustment process, the adjustment step determines the number of adjustments and the length of the adjustment time.
[0083] For the convenience of understanding, some special terms involved in this disclosure are first explained.
[0084] Gamma adjustment: It is the relationship that the grayscale and brightness of the screen conform to gamma (γ) 2.2. By finding the appropriate RGB register values to meet the requirements of brightness and color coordinates.
[0085] Binding points: Select several (usually 15 - 35) representative grayscale levels from all grayscale levels (0 - 255) as the main objects of gamma adjustment.
[0086] SPEC standard: It is that the user determines the target brightness and color coordinates of each binding point according to the characteristics of the screen.
[0087] RGB register value: It refers to the drive signal used for voltage control in the programming IC.
[0088] Adjustment step: According to the difference between the measured brightness and chromaticity and the target brightness and chromaticity, it determines how much the RGB register value needs to be increased appropriately. The adjustment step theoretically represents the amplitude of the change in the RGB register value. However, in this disclosure, the adjustment step is the denominator of the RGB register value calculation formula (as shown in Formula 1 below), and this value is avoided to be 0. Moreover, the larger the adjustment step, the smaller the amplitude of the change in the RGB register value; conversely, the smaller the adjustment step, the larger the amplitude of the change in the RGB register value. In addition, the adjustment step is related to the characteristics of the screen itself, and the adjustment steps for each adjusted binding point are different.
[0089] Gamma adjustment process: Most of the display products (such as OLED display panels) are composed of red, green, and blue light beads arranged on the substrate according to a certain rule. The brightness of each color light bead is controlled by a driving chip (IC). The driving chip controls the voltage according to the programmed RGB register values. After the brightness of each color light bead is fused, different pictures are presented. After lighting a picture, the optical information of the screen body (such as brightness data and chromaticity data) can be measured by an optical device, and the color space information of the picture can be known. Gamma adjustment is to control the brightness of the light beads by continuously modifying the RGB register values, so as to control the optical information of the display picture until the reasonable RGB register values are found, that is, the optical information of the display picture meets the requirements of the customer (standard optical information under the SPEC standard).
[0090] For example, there is a certain correspondence between the optical information and the RGB register values. By measuring the optical information of the current picture and comparing it with the standard optical information, the optical error information between the two is determined. According to the correspondence between the optical error information, the optical information and the RGB register values, the error information of the RGB register values is determined. In an ideal situation, it can be calculated once, but due to the changes in the actual environment and the characteristics of the screen body, generally, adjustment needs to be carried out again. The adjustment step determines the amplitude of adjusting the RGB register values. Therefore, the adjustment step plays a key role in the gamma adjustment efficiency.
[0091] In the related art, in order to improve the efficiency and reduce the number of binding points in gamma adjustment, the number of adjustment binding points is directly reduced, and the RGB register values (driving signals) corresponding to other binding points are directly calculated by linear interpolation. However, in actual analysis, the relationship between the binding points and the RGB register values is not a simple linear relationship. Forced linear interpolation will introduce large errors. When such data is programmed into the IC, the overall effect cannot meet the requirements during retesting. Or, the RGB register values are forced to be analyzed separately, and even the method of manually determining the coefficients is adopted, which greatly increases the time cost and has low efficiency.
[0092] In view of this, the embodiments of the present disclosure provide a data processing method, including a coarse adjustment process and a fine adjustment process. Among them, the coarse adjustment process includes: constructing an initial step size assignment model corresponding to the binding points through machine learning analysis; using the initial step size assignment model to output the initial adjustment step size corresponding to the binding points to be adjusted. The fine adjustment process includes: in multiple rounds of adjustment of the screen, iteratively optimizing the adjustment step size of each binding point to be adjusted so that the number of adjustment times of each binding point to be adjusted meets the user requirements (such as preset conditions). In the entire adjustment stage of the embodiments of the present disclosure, an automatic adjustment method is adopted, and only the user needs to simply import the input data of the display device, thus getting rid of manual optimization and supervision, and making it more convenient and fast to import new models of display devices in actual use.
[0093] The execution subject of the data processing method provided by an embodiment of the present disclosure can be a computer device with certain computing capabilities, such as a gamma adjustment device or a data processing device. If the execution subject of the data processing method is a data processing device, the data processing device communicates with the gamma adjustment device, and the data processing device can send the target adjustment step length of the binding point to be adjusted to the gamma adjustment device.
[0094] Figure 1 is a flowchart of the data processing method provided by an embodiment of the present disclosure, as Figure 1 shown, including S11 to S13.
[0095] S11. Obtain at least one set of input data regarding the display device.
[0096] Wherein, each set of input data includes preset parameters respectively corresponding to a plurality of binding points to be adjusted. For example, the preset parameters include grayscale values, preset adjustment times, and preset adjustment step lengths.
[0097] Optionally, the display devices of the same batch include multiple sets of input data. Display devices with different attributes (bands) correspond to different sets of input data. Among them, the attributes of the display device include, for example, refresh frequency, ambient brightness setting, etc. Each refresh frequency corresponds to a set of input data; each ambient brightness corresponds to a set of input data; for example, the input data includes multiple sets.
[0098] Specifically, according to user requirements, select multiple representative grayscales as the binding points to be adjusted. The binding points to be adjusted selected in the present disclosure include 3 (grayscale value), 7, 11, 19, 23, 31, 39, 47, 55, 63, 79, 95, 111, 144, 173, 205, 226, 247, 255. Prepare a first file and a second file according to user experience. The data of the first file is shown in Table 1, and the data of the second file is shown in Table 2. The preset adjustment step length in the preset parameters is, for example, the adjustment step length m in Table 2.
[0099] Table 1
[0100]
[0101] Table 2
[0102] Binding point to be adjusted R register value G register value B register value Adjustment step m 255 164.438 148.625 182.812 45.0000 247 161.812 147.625 180.312 43.3991 … / / / / 3 49.1875 59 68.8123 0.0180
[0103] Perform the first gamma adjustment on the display device according to the first file and the second file prepared according to user experience, and obtain the adjustment times (such as the adjustment times n in Table 3) after the optical error of the display device meets the first preset condition, as the preset adjustment times, and as the preset parameters of the current set of input data of the display device.
[0104] The data saved after gamma adjustment is denoted as the third file, see Table 3 and Table 4.
[0105] Table 3
[0106]
[0107] Table 4
[0108]
[0109] Alternatively, it is also possible to directly provide an adjustment number randomly according to user experience as the preset adjustment number.
[0110] S12. For any set of input data, construct an initial step size assignment model based on the preset parameters corresponding to each adjustable binding point in the input data, and output the initial adjustment step size corresponding to each adjustable binding point.
[0111] For the same batch of display devices, different initial step size assignment models are constructed for the input data under different attribute conditions.
[0112] By analyzing the preset parameters of all adjustable binding points in a set of input data, constructing an initial step size assignment model, and integrating all attributes of the display device in this batch, the initial adjustment step size corresponding to the display device in this batch can be reflected.
[0113] Taking a set of input data as an example, the construction process of the adjustment models for other groups is the same. Analyze the preset parameters of all adjustable binding points in the input data, construct an initial step size assignment model, and integrate the same attribute information of the display device in this batch, which can reflect the initial adjustment step size corresponding to the display device under the current attribute.
[0114] Specifically, an initial step size assignment model can be constructed according to the gray scale value, preset adjustment number, and preset adjustment step size corresponding to each adjustable binding point in the same input data; using the initial step size assignment model, input any adjustable binding point, and output the initial adjustment step size corresponding to the adjustable binding point.
[0115] Exemplarily, the initial step size assignment model can specifically be expressed as a fitting curve.
[0116] S13. For any set of input data, traverse each adjustable binding point, and perform multiple rounds of adjustment on the drive signal corresponding to each adjustable binding point to output the adjustment step size of the last round as the target adjustment step size corresponding to the adjustable binding point.
[0117] For each set of input data, each adjustable binding point is traversed, and multiple rounds of iteration are performed on the drive signal corresponding to each adjustable binding point, specifically including S131 - S133.
[0118] S131. For the adjustment in this round, the driving signal is adjusted multiple times using the adjustment step size of the previous round to obtain target data after the optical information of the display device meets the standard optical information.
[0119] Among them, the target data includes the number of adjustments in this round and the optical error information of the display device after each adjustment; when this round is the first round, the adjustment step size of the previous round is the initial adjustment step size.
[0120] Each time the driving signal (the register value of RGB), that is, the gamma adjustment process, is adjusted, the second file (Table II) and the third files (Table III and Table IV) are updated once.
[0121] The optical information includes luminance and / or chromaticity data (that is, color coordinates). The standard optical information includes the standard luminance and color coordinates that meet the SPEC standard.
[0122] For the multiple gamma adjustments in this round of adjustment, the adjustment step size used is the adjustment step size of the previous round.
[0123] Exemplarily, for the i-th gamma adjustment in this round, the gamma adjustment device adjusts the driving signal corresponding to the binding point to be adjusted according to the adjustment step size of the previous round. For example, on the basis of the original driving signal, it is adjusted up or down by an amplitude of "the adjustment step size of the previous round". And the adjusted driving signal is burned into the driving chip of the display device so that the display device displays the picture by driving the adjusted driving signal when lighting the gray level corresponding to the binding point to be adjusted. Then, the optical information of the display picture is measured using an optical device. If the optical information does not meet the SPEC standard, the (i + 1)-th gamma adjustment is continued according to the adjustment step size of the previous round. It should be noted that the adjustment step size of the (i + 1)-th gamma adjustment remains unchanged, that is, the adjustment step size of the previous round, but the driving signal to be adjusted is the driving signal after the i-th gamma adjustment. That is, each time the driving signal is adjusted, the second file (Table II) and the third files (Table III and Table IV) are updated once. For the n-th gamma adjustment, if the optical information meets the SPEC standard, the number of adjustments in this round, that is, n times, is counted, and the optical error information of the display device after each adjustment is counted. For example, the luminance error (%) in Table IV corresponding to the 1st to n-th gamma adjustments.
[0124] S132. Determine the adjustment step size of this round according to the trend of the optical error information statistically obtained after each adjustment.
[0125] Among them, the optical error information can be luminance error and / or color coordinate error.
[0126] Taking the luminance error as an example, as Figure 2a and Figure 2bAs shown, it refers to the brightness error situation under one - round adjustment of 79 - gray - level binding points and 1 - 22 times of gamma adjustment. As Figure 3a and Figure 3b shown, it refers to the brightness error situation under one - round adjustment of 63 - gray - level binding points and 1 - 28 times of gamma adjustment.
[0127] By analyzing the brightness error (%) after 1 - n times of adjustment, it can be known that if the measured brightness of a binding point fluctuates above and below the standard brightness reference, as Figure 2a and Figure 2b shown, at this time, it can be considered that the change in the RGB register value is too large, and the change amount of the RGB register value needs to be reduced. Also, because the RGB register value is inversely proportional to the adjustment step size, the adjustment step size needs to be increased. Similarly, if the measured brightness of a binding point monotonically increases or decreases on one side of the standard brightness reference, as Figure 3a and Figure 3b shown, at this time, it can be considered that the change in the RGB register value is too small, and the change amount of the RGB register value needs to be increased. Also, because the RGB register value is inversely proportional to the adjustment step size, the adjustment step size needs to be reduced.
[0128] Therefore, according to the brightness error (%) after 1 - n times of adjustment and the preset adjustment amount (such as 1 unit step size), it can be determined whether to add 1 to the adjustment step size of this round based on the adjustment step size of the previous round or subtract 1 from the adjustment step size of the previous round.
[0129] S133. When the adjustment times of each round all meet the preset conditions, output the adjustment step size of the last round.
[0130] The preset conditions can be that the adjustment times of each binding point to be adjusted in each round are all less than or equal to the number of times specified by the user, such as the second preset number threshold (for example, 5 times), which also means that the SPEC standard is achieved under a limited number of adjustments. Then, the adjustment step size of the last round can be used as the target adjustment step size for the corresponding binding point to be adjusted. The preset conditions can also be that the adjustment times of each binding point to be adjusted in each round are greater than the number specified by the user (for example, 20 times). Gradually modify the preset conditions and perform rounds of adjustments, and at the same time modify the adjustment step size until the preset conditions meet the customer requirements, and output the adjustment step size at this time as the mass - production parameter.
[0131] In the embodiments of the present disclosure, an initial step - size assignment model is constructed through data analysis. The refresh frequency and ambient brightness settings of each group of input data are different, and each attribute corresponds to a group of input data, making each constructed initial step - size assignment model more in line with each attribute characteristic of this batch of display devices. Thus, the output initial adjustment step size is more in line with the display device under the current attribute, and further more accurately locates the gamma adjustment of each binding point to be adjusted.
[0132] Meanwhile, through multiple rounds of cyclic refinement and adjustment of the adjustment step corresponding to the binding point to be adjusted in S131 to S133, the optimal adjustment step (target adjustment step) can be quickly locked, so that the number of adjustments rapidly approaches the number specified by the user (5 times).
[0133] Meanwhile, throughout the entire adjustment stage of the embodiments of the present disclosure, an automated adjustment method is adopted. The user only needs to simply import input data to achieve automated processing, thereby getting rid of manual optimization and supervision, and making it more convenient and fast to import new models of display devices in actual use, saving the preliminary debugging time for importing new models of gamma adjustment devices.
[0134] In some embodiments, for S131, an adjustment of a binding point to be adjusted includes multiple rounds of adjustment, and each round of adjustment includes multiple gamma adjustments. Taking one gamma adjustment as an example, this adjustment is denoted as the i-th adjustment, and the previous adjustment is denoted as the (i - 1)-th adjustment. For the i-th adjustment of any binding point to be adjusted, determining the drive signal after the i-th adjustment specifically includes S1311 to S1314 as follows.
[0135] S1311. Obtain the optical information of the display device driven by the drive signal of the previous adjustment.
[0136] The process of the "previous adjustment", that is, the process of the (i - 1)-th gamma adjustment, specifically refers to the above "gamma adjustment" example, and the repeated part will not be elaborated. After each gamma adjustment, the second file and the third file are updated once. Therefore, the "adjusted brightness" and / or "adjusted x and y" can be directly obtained from Table 3 in the third file as the optical information after the (i - 1)-th gamma adjustment. If the (i - 1)-th gamma adjustment is the first adjustment, the optical information is empty. At this time, the optical error information, such as "the error of color coordinate x, the error of color coordinate y" and / or the brightness error calculated by obtaining the standard brightness, the lower limit of brightness, and the upper limit of brightness, can be directly obtained from Table 1 in the first file.
[0137] S1312. Determine the optical error information corresponding to this adjustment according to the optical information corresponding to the previous adjustment and the standard optical information.
[0138] The standard optical information remains unchanged, that is, the "standard brightness" and / or "standard color coordinates x and y" in Table 1 of the first file.
[0139] The difference between the optical information and the standard optical information can be used as the optical error information.
[0140] In an alternative embodiment, gamma adjustment is performed on the condition of luminance error. The optical information includes luminance values; the standard optical information includes standard luminance; the optical error information includes luminance error; specifically, the difference between the luminance after the (i - 1)-th gamma adjustment and the standard luminance is calculated, and the ratio of this difference to the standard luminance is used as the luminance error for the i-th gamma adjustment, and the "luminance error (%)" in Table IV is updated.
[0141] In another alternative embodiment, gamma adjustment is performed on the condition of chromaticity coordinate error. Specifically, based on the difference between the chromaticity coordinates after the (i - 1)-th gamma adjustment and the standard chromaticity coordinates, it is used as the chromaticity coordinate error for the i-th gamma adjustment, and the "error of x and error of y" in Table IV is updated.
[0142] S1313. Determine the driving signal error information for this adjustment according to the pre-constructed intermediate conversion matrix between the driving signal and the optical information, the optical error information corresponding to this adjustment, and the adjustment step of the previous round.
[0143] In practical applications, for the same screen, some driving signals (i.e., RGB register values) can be pre-selected to construct the first matrix J; the first matrix is used to represent the correspondence between the positions of the screen pixels and the driving signals. The positions of the elements in the first matrix J are the same as the positions of the pixels in the screen. Using the above first matrix, the screen is lit, and the optical information of the displayed image is measured through an optical device, thereby constructing the second matrix L. The second matrix L is used to represent the correspondence between the positions of the screen pixels and the optical information. Then, through matrix operations, the intermediate conversion matrix T between the driving signal and the optical information is obtained as T = J · T.
[0144] The optical error information is an optical error matrix with luminance error or chromaticity coordinate error as elements. Specifically, first, the product of the optical error matrix and the transpose of the intermediate conversion matrix can be calculated; second, the ratio of the product to the adjustment step of the previous round is calculated as the driving signal error information for this adjustment. The detailed process can be seen in Formula 1.
[0145] Formula 1: [R D , G D , B D = [X D , Y D , Z D T -1 / m, where, [R D , G D , B D is the driving signal error matrix, and its elements are RGB register values; [R D , G D , B D also represents the driving signal error information for the i-th gamma adjustment; [XD , Y D , Z D is the optical error matrix, and its internal elements are optical errors, such as luminance error or color coordinate error; [X D , Y D , Z D also represents the optical error information corresponding to the i-th gamma adjustment; T represents the intermediate conversion matrix; T -1 represents the transpose of the intermediate conversion matrix; m represents the adjustment step size of the previous round.
[0146] S1314. Determine the drive signal for this adjustment based on the drive signal error information for this adjustment and the drive signal for the previous adjustment.
[0147] Among them, when the previous adjustment is the first adjustment, the drive signal for the previous adjustment is the preset drive signal of the binding point to be adjusted in the preset parameters, that is, the "R, G, B register values" in Table 2 of the first file set in advance.
[0148] Based on the drive signal for the (i - 1)-th gamma adjustment, add the drive signal error for the i-th gamma adjustment to obtain the drive signal for the i-th gamma adjustment, so as to drive the display device with the drive signal for the i-th gamma adjustment and update the second file and the third file again.
[0149] In some embodiments, for S132, a binding point to be adjusted includes multiple rounds of adjustment, and each round of adjustment includes multiple gamma adjustments; each gamma adjustment updates the second file and the third file. Exemplarily, as shown in Table 4, taking the 255 binding points to be adjusted as an example, obtain the optical error information after 1 to n gamma adjustments in this round of adjustment, such as the "error of x, error of y" and / or "luminance error (%)" for 1 to n times. According to the trend of the optical error information after each adjustment, determine the adjustment step size for this round, specifically including S1321 to S1324 as follows.
[0150] S1321. According to the adjustment order, determine the sign of the error value in the optical error information of any two adjacent adjustments.
[0151] S1322. Determine the step size adjustment mode according to the comparison results of the signs of the error values of two adjacent adjustments in all adjustment times of this round.
[0152] S1323. When the step size adjustment mode is to increase, use the product of the adjustment step size of the previous round and the first adjustment parameter as the adjustment step size for this round.
[0153] S1324. When the step size adjustment mode is to decrease, use the product of the adjustment step size of the previous round and the second adjustment parameter as the adjustment step size for this round.
[0154] Regarding the above S1321 to S1324, taking the optical error information as the brightness error (%) as an example for illustration.
[0155] As Figure 2a shown, it is known that the number of adjustment times n of the binding point 79 to be adjusted is 22. Obtain the brightness error (%) of the 1st to 22nd gamma adjustments of the binding point 79 to be adjusted from the third document (as shown in Table 4), and judge the positive and negative situations of the brightness errors of any two adjacent adjustments. For example, the brightness errors (%) of the 1st to 7th gamma adjustments are all positive, the brightness error (%) of the 8th gamma adjustment is negative, the brightness error (%) of the 9th gamma adjustment is positive, the brightness error (%) of the 10th gamma adjustment is negative, the brightness error (%) of the 11th gamma adjustment is positive, the brightness error (%) of the 12th gamma adjustment is negative, the brightness error (%) of the 13th gamma adjustment is positive, the brightness error (%) of the 14th gamma adjustment is negative, the brightness error (%) of the 15th gamma adjustment is positive, the brightness error (%) of the 16th gamma adjustment is negative, the brightness error (%) of the 17th gamma adjustment is positive, the brightness error (%) of the 18th gamma adjustment is negative, the brightness error (%) of the 19th gamma adjustment is positive, the brightness error (%) of the 20th gamma adjustment is negative, the brightness error (%) of the 21st gamma adjustment is positive, and the brightness error (%) of the 22nd gamma adjustment is negative.
[0156] Therefore, count the positive and negative comparison results of two adjacent adjustments in all the adjustment times of this round. Specifically, if the signs of the error values (such as brightness error) corresponding to two adjacent adjustments are opposite, then count the number of crossovers plus 1, and determine the total number of crossovers in the adjustment times of this round; as Figure 2a shown, there are 15 crossovers and 15 crossover points with 0 error. Calculate the ratio of the total number of crossovers to the number of crossovers in the adjustment times of this round; here, by calculating the crossover ratio, the fluctuation of the brightness error in the fine-tuning process of this round can be reflected, so as to determine whether the step size adjustment mode is to increase or decrease. Specifically, if the crossover ratio is greater than the preset crossover ratio, determine that the step size adjustment mode is to increase; if the crossover ratio is less than or equal to the preset crossover ratio, determine that the step size adjustment mode is to decrease. Here, the preset crossover ratio can be 0.3.
[0157] Pre-set the first adjustment parameter and the second adjustment parameter. Among them, the first adjustment parameter is greater than 1, and the second adjustment parameter is greater than 0 but less than 1. For example, the first adjustment parameter is 1.1 and the second adjustment parameter is 0.9; or the first adjustment parameter is 1.2 and the second adjustment parameter is 0.8. The differences between the first adjustment parameter and the second adjustment parameter and 1 are the same. In order to improve the accuracy of the adjustment step size, a lower value is selected for the fine-tuning amplitude. For example, taking the adjustment coefficient ratio = 0.1 as an example, the first adjustment parameter is selected as 1.1 and the second adjustment parameter is selected as 0.9.
[0158] When the step adjustment mode is to increase, the adjustment step of this round = 1.1 × the adjustment step of the previous round, or the adjustment step of this round = (1 + ratio) × the adjustment step of the previous round. ratio takes a decimal between 0 and 1.
[0159] When the step adjustment mode is to decrease, the adjustment step of this round = 0.9 × the adjustment step of the previous round, or the adjustment step of this round = (1 - ratio) × the adjustment step of the previous round.
[0160] In some embodiments, for S133, during each round of adjustment, the preset conditions may be different. Specifically, it includes S1331 to S1334.
[0161] S1331. Determine whether the adjustment times of this round are greater than the first preset times threshold; if so, that is, if the adjustment times of this round are greater than the first preset times threshold, then sequentially execute S1332; if not, that is, if the adjustment times of this round are less than or equal to the first preset times threshold, then execute S1333.
[0162] The so-called "this round" can be any round among multiple rounds. If it is the first round, the first preset times threshold must be greater than the second preset times threshold. If it is not the first round, the size relationship between the first preset times threshold and the second preset times threshold needs to be further judged. Because, during the multiple-round iteration process, the first preset times threshold may be continuously updated and decreased, and finally decreased to be equal to the second preset times threshold.
[0163] S1332. Subtract 1 from the first preset times threshold and enter the next round of adjustment.
[0164] The "first preset times threshold" here belongs to the general concept of the times threshold and does not specifically refer to a certain value of a certain round.
[0165] Entering the next round of adjustment, that is, starting to enter the multiple-round iteration, return to execute S131. The process of the next round of adjustment is the same as that of this round. For the detailed implementation process, refer to S131 for comparison. The repeated parts will not be elaborated. The next round of adjustment also updates the adjustment times. Therefore, after executing to S1331, it also judges whether the adjustment times are greater than the first preset times threshold. Note that the first preset times threshold at this time is the updated first preset times threshold. Since the adjustment step is optimized in each round of adjustment, under normal circumstances, the adjustment times after each round of adjustment are lower than those of the previous round, that is, as the number of iterations increases, the average adjustment times of each binding point to be adjusted as a whole show a downward trend.
[0166] With the continuous decrease of the first preset times threshold during the multiple-round iteration, and at the same time the adjustment times also show a downward trend, so there is always a situation where the adjustment times of a certain round are less than the first preset times threshold, thus executing S1333.
[0167] Exemplarily, it is known that the first preset number threshold is 20 and the second preset number threshold is 5. The adjustment times in this round are 28, which is greater than the first preset number threshold of 20. Therefore, the first preset number threshold in this round is decreased by 1, and the updated first preset number threshold is 19; entering the next round of adjustment, the adjustment times continuously decrease, and the first preset number threshold continuously decreases.
[0168] S1333. Determine whether the first preset number threshold is greater than the second preset number threshold; if so, that is, if the first preset number threshold is greater than the second preset number threshold, return to execute S1332; if not, that is, if the first preset number threshold is less than or equal to the second preset number threshold, execute S1334.
[0169] If the updated first preset number threshold is greater than the second preset number threshold, it means that the adjustment times in this round still do not meet the minimum amount specified by the user, and optimization continues until the updated first preset number threshold is less than or equal to the second preset number threshold, and then the update of the first preset number threshold stops.
[0170] If the updated first preset number threshold is less than or equal to the second preset number threshold, it also means that the adjustment times after multiple rounds of adjustment are also less than or equal to the second preset number threshold. Because if the adjustment times are greater than the updated first preset number threshold, the iteration will not stop and will keep adjusting until the adjustment times after multiple rounds of adjustment are less than or equal to the updated first preset number threshold, and then it will be further determined whether the updated first preset number threshold is less than or equal to the second preset number threshold. Therefore, if the updated first preset number threshold is less than or equal to the second preset number threshold, the adjustment times must be less than or equal to the second preset number threshold.
[0171] S1334. Output the adjustment step size of the last round.
[0172] The second preset number threshold in the present disclosure is the number specified by the user and is a relatively small threshold. For example, the second preset number threshold is 5 times. It means that the adjustment of a limited number of times reaches the SPEC standard, and then the adjustment step size of the last round can be used as the target adjustment step size for the corresponding binding point to be adjusted.
[0173] In some embodiments, the preset parameters include grayscale values, preset adjustment times, and preset adjustment step sizes. Figure 4 For the flowchart of constructing the initial step size assignment model provided by the embodiments of the present disclosure and outputting the initial adjustment step size, as Figure 4 shown, for S12, determine the initial adjustment step sizes respectively corresponding to each binding point to be adjusted in a set of input data, specifically including S121 to S123.
[0174] S121. Select a first binding point from multiple binding points to be adjusted according to the preset number of adjustment times corresponding to each binding point to be adjusted.
[0175] Select the binding points to be adjusted with fewer adjustment times from the input data as the first binding points. Because the fewer the adjustment times, the more reasonable the preset adjustment step size, and the faster the gamma adjustment can find the appropriate RGB register value, and the faster the screen can complete the test and leave the factory.
[0176] However, the more the number of the first binding points, the higher the accuracy of the constructed initial step size assignment model. Therefore, it is also necessary to ensure that the number of the first binding points is not too small, and reasonably set the preset number of binding point screening, so as to ensure that the number of the first binding points screened is greater than or equal to the preset number of binding point screening. For example, the preset number of binding point screening is set to 20.
[0177] In a possible implementation manner, select the binding points to be adjusted with the preset number of adjustment times less than or equal to the third preset number threshold as the first binding points. The third preset number threshold is set to 2 for the first time. If the number of the first binding points screened is less than the preset number of binding point screening, add 1 to the third preset number threshold; re-screen the first binding points from the input data according to the updated third preset number threshold until the number of the first binding points screened is greater than or equal to the preset number of binding point screening.
[0178] S122. Fit a gray scale - adjustment step size curve according to the gray scale value and the preset adjustment step size corresponding to each first binding point as the initial step size assignment model.
[0179] The fitting method can be any one of the least squares method, the overall mean method, and the polynomial fitting method. As Figure 5 shown, fit the gray scale - adjustment step size curve, where the abscissa is the gray scale and the ordinate is the adjustment step size. Use the following formula 2 to represent the gray scale - adjustment step size curve.
[0180] Formula 2: m = k×gray + b; where m represents the adjustment step size, and gray represents the gray scale. k and b are the slope and intercept of the fitting line.
[0181] Take the gray scale value and the preset adjustment step size corresponding to each first binding point as gray and m respectively, substitute them into formula 2 for linear fitting, obtain the best parameters k and b of the current batch of display devices under the current group attributes, and determine the initial step size assignment model.
[0182] S123. Determine the initial adjustment step size corresponding to each binding point to be adjusted from the gray scale - adjustment step size curve.
[0183] Figure 5 This is a schematic diagram of the initial step size assignment model provided by the embodiments of the present disclosure. AsFigure 5 As shown, the initial adjustment step lengths corresponding to the respective binding points to be adjusted in this set of input data can be determined from the grayscale-adjustment step curve.
[0184] In some embodiments, the display devices of the same batch include multiple sets of input data. Among them, for S13, for each adjustment of the driving signal in each round, the adjustment step length of this round is updated to the corresponding set of input data, that is, the adjustment step length m in the second file (Table II) is updated; and for each adjustment of the driving signal, the adjusted driving signal of this time is updated to the corresponding set of input data, that is, the respective column data in Tables III and IV in the third file are updated.
[0185] The above S11 to S13 perform separate adjustments on each set of input data to obtain the step adjustment results corresponding to each set of input data. However, since the screen is always lit during the debugging process, some uncertain factors will change slightly, and different debugging times and environments will result in differences in the gamma data for debugging. Therefore, in order to eliminate the influence of external factors brought about by the debugging process, based on the second file and the third file that have been updated above, verification is performed again to improve the accuracy and reliability of the target adjustment step length finally output. That is, based on the updated second file and third file, a complete gamma adjustment is performed again on the display devices under all batches. Figure 6 The flowchart of data verification provided by the embodiments of the present disclosure is as Figure 6 shown, and specifically includes S21 to S23.
[0186] S21. Traverse each set of updated input data, and adjust the driving signal according to the target adjustment step length corresponding to the binding point to be adjusted, so as to obtain the target adjustment times after the optical information of the display device meets the standard optical information.
[0187] S22. Count the target adjustment times corresponding to all the binding points to be adjusted within all groups, and calculate the average adjustment times of all the binding points to be adjusted.
[0188] Theoretically speaking, if there is no influence of external conditions, the target adjustment times corresponding to the target adjustment step length are all less than or equal to the second preset times threshold of 5. However, with the introduction of the influence of external conditions, in the overall test of all batches in this round, it is very likely that the target adjustment times are greater than the second preset times threshold, that is, 5 times.
[0189] S23. If the average adjustment times are less than or equal to the second preset times threshold, it is determined that the target adjustment step lengths of the respective binding points to be adjusted meet the qualified conditions.
[0190] If the average number of adjustments in the overall test of all batches is less than or equal to the second preset number threshold, it means that the debugging result of the target adjustment step length trained separately in the above embodiments is qualified, and the target adjustment step length can be used as the adjustment step length for the final gamma adjustment of the binding point to be debugged, so as to improve the gamma adjustment efficiency.
[0191] If the average number of adjustments is greater than the second preset number threshold, it means that there are large external factor interferences in the aforementioned separate training process, and the training result is inaccurate. It is necessary to re-extract the next set of input data corresponding to the attribute (band), and re-execute S11 - S13 until the verification result is qualified under the verification of this embodiment.
[0192] The above is the detailed description of the data processing method of the embodiments of the present disclosure. For the convenience of understanding, the following uses a complete example to further summarize the implementation process of the data processing method. Figure 7 For the flow diagram of the data processing method provided by the embodiments of the present disclosure, as Figure 7 shown, the data processing method includes a coarse adjustment process, a fine adjustment process, and a verification process.
[0193] S31. The coarse adjustment process includes: constructing an initial step length assignment model; calculating the initial adjustment step length of each binding point to be adjusted.
[0194] S32. The fine adjustment process includes: multiple rounds of iteration, each round of iteration includes multiple gamma adjustments, and the adjustment step length is updated each time; each time the adjustment step length is updated, it is detected whether the number of gamma adjustments meets the preset conditions; if not, return and re-enter the next round of adjustment; if it meets, enter the verification process.
[0195] S33. The verification process includes: for all binding points to be adjusted corresponding to all attributes (bands), re-perform a gamma adjustment according to the finally output target adjustment step length. Verify whether the final adjustment results of all attributes (bands) are reasonable (see S21 - S23). If it is reasonable, end; otherwise, return to the fine adjustment process and re-adjust iteratively.
[0196] Exemplarily, Figure 8 For the flow diagram of the coarse adjustment process provided by the embodiments of the present disclosure, as Figure 8 shown, for the coarse adjustment process of S31, it specifically includes S311 - S319.
[0197] S311. Retrieve the second file and the third file from the database.
[0198] S312. Extract a set of adjustment step lengths m from the second file; extract a set of adjustment times n from the third file; sequentially traverse the binding points to be adjusted (3, 7, 11,..., 255).
[0199] S313. Determine whether the number of adjustment times n is less than or equal to the third preset number threshold; if so, execute S314, if not, return to S312.
[0200] S314. Add the corresponding binding point to be adjusted (i.e., the first binding point) to the grayscale array; add the adjustment step size m of the corresponding binding point to be adjusted to the step size array.
[0201] S315. Determine whether a group of binding points to be adjusted has been traversed. If so, execute S316, otherwise, return to S312.
[0202] S316. Determine whether the number of the grayscale array is greater than or equal to the preset number of binding point screening. If so, execute S317, if not, execute S319.
[0203] S317. Use the grayscale value of the first binding point in the grayscale array and the adjustment step size of the first binding point in the step size array as the input of the fitting model, and output the parameters k and b of the initial step size assignment model.
[0204] S318. Calculate the initial adjustment step size of each binding point to be adjusted according to the parameters k and b of the initial step size assignment model, and update the second file.
[0205] S319. The third preset number threshold = the third preset number threshold + 1, and return to S312.
[0206] Exemplarily, Figure 9 is a flow chart of the fine-tuning process provided by the embodiment of the present disclosure. As Figure 9 shown, for the fine-tuning process of S32, it specifically includes S321 to S327.
[0207] S321. Retrieve the second file from the database.
[0208] S322. Extract the RGB register values and the adjustment step size m of each binding point to be adjusted (3, 7, 11,..., 255) from the second file; traverse the binding points to be adjusted (3, 7, 11,..., 255) in sequence, and adjust the driving signal corresponding to each binding point to be adjusted.
[0209] S323. Determine whether the number of adjustment times of each binding point to be adjusted is greater than the first preset number threshold. If so, execute S324, if not, execute S325.
[0210] S324. Optimize the adjustment step size of a single binding point to be adjusted.
[0211] Among them, Figure 10 is a flow chart of optimizing the adjustment step size of a single binding point to be adjusted provided by the embodiment of the present disclosure. As Figure 10 shown, it specifically includes S3241 to S3247.
[0212] S3241. Extract the brightness error (%) for each gamma adjustment from Table 4 of the third document.
[0213] S3242. Sequentially determine the signs of the brightness errors for two adjacent adjustments according to the adjustment order. If the signs are opposite, execute S3243; if the signs are the same, re-execute S3242.
[0214] S3243. Increment the number of crossings by 1.
[0215] S3244. Calculate the ratio of the number of crossings and check if it is greater than a preset crossing ratio. If so, execute S3245; if not, return to S3242.
[0216] S3245. Increase the adjustment step size and then jump to execute S3247.
[0217] S3246. Decrease the adjustment step size.
[0218] S3247. Update the last column of the second document (Table 2).
[0219] Following S324, continue to execute S325. Determine whether the first preset number threshold is less than or equal to the second preset number threshold. If so, execute S326; if not, execute S327.
[0220] S326. Output the adjustment step size for the last round.
[0221] S327. The first preset number threshold = the first preset number threshold + 1, and then return to S322.
[0222] The data processing method provided by the embodiments of the present disclosure: 1. An initial step size assignment model is constructed through data analysis. The refresh frequency and ambient brightness settings of each set of input data are different, and each attribute corresponds to a set of input data, so that each constructed initial step size assignment model better conforms to each attribute characteristic of the current batch of display devices, thereby making the output initial adjustment step size more in line with the display device under the current attribute, and further more accurately positioning the gamma adjustment of each binding point to be adjusted. 2. By refining and adjusting the adjustment step size corresponding to the binding point to be adjusted through multiple rounds of loops, the optimal adjustment step size (target adjustment step size) can be quickly locked, and the number of adjustment times can be quickly close to the number specified by the user (5 times). 3. During the entire adjustment stage of the embodiments of the present disclosure, an automatic adjustment method is adopted throughout. The user only needs to set their own parameters. The detection of the number of adjustment times for each binding point, the construction of the initial step size assignment model, the assignment of the initial value of the adjustment step size, the fine adjustment of the adjustment step size, and the detection of the entire gamma adjustment are all calculated automatically. From the original manual comparison and modification to the full-automatic mode, it does not rely on the debugging experience of the operator, saves manual intervention and negligence, further saves time in the gamma debugging stage of the new model, speeds up the mass production introduction pace of the new model, and thus increases the production line capacity. 4. The embodiments of the present disclosure further include a verification process. After training is completed, gamma adjustment is performed on all groups of attributes (bands) again to further verify whether the target adjustment step size is reasonable, thereby ensuring the gamma adjustment effect again.
[0223] Those skilled in the art can understand that in the above method of the specific embodiment, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined according to its function and possible internal logic.
[0224] The embodiments of the present disclosure also provide a gamma adjustment device corresponding to the data processing method. Since the principle of solving problems by the gamma adjustment device in the embodiments of the present disclosure is similar to the above data processing method of the embodiments of the present disclosure, the implementation of the coarse adjustment and fine adjustment step sizes of the gamma adjustment device can refer to the implementation of the method, and the repeated parts will not be described again.
[0225] Figure 11 It is a schematic diagram of a gamma adjustment device provided by the embodiments of the present disclosure. As Figure 11 shown, the gamma adjustment device includes a data acquisition module 111, a step size coarse adjustment module 112, and a step size fine adjustment module 113. The step size fine adjustment module 113 includes an adjustment unit 1131 and a step size determination unit 1132.
[0226] The data acquisition module 111 is configured to acquire at least one set of input data about the display device; each set of input data includes preset parameters corresponding to a plurality of binding points to be adjusted respectively.
[0227] It should be noted that the data acquisition module 111 in the embodiments of the present disclosure is configured to execute step S11 in the above data processing method, and the repeated parts will not be elaborated.
[0228] The step coarse adjustment module 112 is configured to, for any set of input data, construct an initial step size assignment model according to the preset parameters corresponding to each binding point to be adjusted in the input data, and output the initial adjustment step size corresponding to each binding point to be adjusted.
[0229] It should be noted that the step coarse adjustment module 112 in the embodiments of the present disclosure is configured to execute step S12 in the above data processing method, and the repeated parts will not be elaborated.
[0230] The step fine adjustment module 113 is configured to, for any set of input data, traverse each binding point to be adjusted, and perform multiple rounds of adjustment on the drive signal corresponding to each binding point to be adjusted, so as to output the adjustment step size of the last round as the target adjustment step size corresponding to the binding point to be adjusted.
[0231] It should be noted that the step fine adjustment module 113 in the embodiments of the present disclosure is configured to execute step S13 in the above data processing method, and the repeated parts will not be elaborated.
[0232] Specifically, the adjustment unit 1131 is configured to, for the adjustment of this round, use the adjustment step size of the previous round to perform multiple adjustments on the drive signal, so as to obtain target data after the optical information of the display device meets the standard optical information; the target data includes the adjustment times of this round and the optical error information of the display device after each adjustment; when this round is the first round, the adjustment step size of the previous round is the initial adjustment step size. The step determination unit 1132 is configured to determine the adjustment step size of this round according to the trend of the optical error information statistically after each adjustment; when the adjustment times of each round meet the preset conditions, output the adjustment step size of the last round; gradually modify the preset conditions until the preset conditions include that the adjustment times of each binding point to be adjusted in each round are less than or equal to the number of times specified by the user.
[0233] It should be noted that the adjustment unit 1131 in the embodiments of the present disclosure is configured to execute step S131 in the above data processing method, and the step determination unit 1132 is configured to execute steps S132 and S133 in the above data processing method, and the repeated parts will not be elaborated.
[0234] In addition, the embodiments of the present disclosure further provide a gamma adjustment system, Figure 12 which is a schematic diagram of a gamma adjustment system provided by the embodiments of the present disclosure, as Figure 12 shown, in which the gamma adjustment system includes the gamma adjustment device 401 and the display device 402 as described above.
[0235] The gamma adjustment device 401 is configured to adjust the drive signal corresponding to the tie point to be adjusted by using the target adjustment step size of the tie point to be adjusted, and send the adjusted drive signal to the display device.
[0236] The display device 402 is configured to receive and store the adjusted drive signal; and, when lighting the target gray level, perform screen display by driving the adjusted drive signal corresponding to the target gray level.
[0237] Exemplarily, the display device can be, for example, any product with a display function such as a mobile phone, a tablet computer, a television, a monitor, a laptop computer, a digital photo frame, a vehicle-mounted device, etc.
[0238] Figure 13 The following is a schematic structural diagram of a computer device provided by an embodiment of the present disclosure. As Figure 13 shown, the computer device provided by the embodiment of the present disclosure includes: one or more processors 501, a memory 502, and one or more I / O interfaces 503. One or more programs are stored on the memory 502. When the one or more programs are executed by the one or more processors, the one or more processors implement any data processing method in the above embodiments; one or more I / O interfaces 503 are connected between the processor and the memory and are configured to implement information interaction between the processor and the memory.
[0239] Among them, the processor 501 is a device with data processing capabilities, which includes but is not limited to a central processing unit (CPU), etc.; the memory 502 is a device with data storage capabilities, which includes but is not limited to a random access memory (RAM, more specifically such as SDRAM, DDR, etc.), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory (FLASH); the I / O interface (read / write interface) 503 is connected between the processor 501 and the memory 502 and can implement information interaction between the processor 501 and the memory 502, which includes but is not limited to a data bus (Bus), etc.
[0240] In some embodiments, the processor 501, the memory 502, and the I / O interface 503 are interconnected through a bus 504 and are further connected to other components of the computing device.
[0241] According to an embodiment of the present disclosure, there is also provided a computer non-transitory readable storage medium. A computer program is stored on the computer non-transitory readable storage medium, wherein when the program is executed by a processor, the steps in any data processing method in the above embodiments are implemented.
[0242] In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product that includes a computer program carried on a machine-readable medium, and the computer program includes program code for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section and / or installed from a removable medium. When the computer program is executed by a Central Processing Unit (CPU), the above-described functions defined in the system of the present disclosure are performed.
[0243] It should be noted that the computer non-transitory readable medium shown in the present disclosure can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM) or a flash memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer non-transitory readable storage medium other than a computer-readable storage medium, and the computer non-transitory readable storage medium can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer non-transitory readable storage medium can be transmitted by any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0244] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of devices, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a part of code, and the foregoing module, segment of a program, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in a different order than that noted in the accompanying drawings. For example, two consecutive blocks may actually represent an execution that is substantially parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.
[0245] It can be understood that the above embodiments are merely exemplary embodiments adopted to illustrate the principles of the present disclosure, and the present disclosure is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present disclosure, and these modifications and improvements are also considered within the protection scope of the present disclosure.
Claims
1. A data processing method, applied to a gamma adjustment device; wherein: The data processing method comprises: Acquire at least one set of input data about the display device; each set of input data includes preset parameters corresponding to a plurality of binding points to be adjusted; For any set of the input data, an initial step length assignment model is constructed according to the preset parameters corresponding to each of the binding points to be adjusted in the input data, and the initial adjustment step lengths corresponding to each of the binding points to be adjusted are output; For any set of the input data, traverse each of the binding points to be adjusted, and perform multiple rounds of adjustments on the driving signal corresponding to each of the binding points to be adjusted, so as to output the adjustment step length of the last round as the target adjustment step length corresponding to the binding point to be adjusted; wherein, for the adjustment of this round, the adjustment step length of the previous round is used to adjust the driving signal multiple times, so as to obtain the target data after the optical information of the display device meets the standard optical information; the target data includes the number of adjustments of this round and the optical error information of the display device after each adjustment; when this round is the first round, the adjustment step length of the previous round is the initial adjustment step length; Determine the adjustment step length of this round based on the statistical trend of optical error information after each adjustment; When the number of adjustments in each round meets the preset conditions, the adjustment step of the last round is output; the preset conditions are gradually modified until the preset conditions include that the number of adjustments of each binding point to be adjusted in each round is less than or equal to the number specified by the user.
2. The data processing method according to claim 1, wherein: For this round of adjustment, the drive signal is adjusted multiple times using the adjustment step size of the previous round, including: For the current adjustment of any of the binding points to be adjusted, obtaining optical information of the display device driven by the driving signal of the previous adjustment; Determining optical error information corresponding to the current adjustment according to the optical information corresponding to the previous adjustment and standard optical information; Determine the drive signal error information of the current adjustment according to the pre-constructed intermediate conversion matrix between the drive signal and the optical information, the optical error information corresponding to the current adjustment, and the adjustment step length of the previous round; The driving signal for this adjustment is determined according to the driving signal error information of this adjustment and the driving signal of the previous adjustment; when this adjustment is the first adjustment, the driving signal of the previous adjustment is the preset driving signal of the binding point to be adjusted in the preset parameters.
3. The data processing method according to claim 2, wherein: The optical error information includes brightness error; The step of determining the optical error information corresponding to the current adjustment according to the optical information corresponding to the previous adjustment and the standard optical information includes: Calculating the difference between the brightness corresponding to the previous adjustment and the standard brightness; The ratio of the difference to the standard brightness is used as the brightness error corresponding to the current adjustment.
4. The data processing method according to claim 2, wherein: The optical error information is an optical error matrix with brightness error or color coordinate error as elements; The step of determining the driving signal error information of the current adjustment according to the pre-constructed intermediate conversion matrix of the driving signal and the optical information, the optical error information corresponding to the current adjustment, and the adjustment step length of the previous round includes: Calculating the product of the optical error matrix and the transpose of the intermediate transformation matrix; The ratio of the product to the adjustment step length of the previous round is calculated as the driving signal error information of the current adjustment.
5. The data processing method according to claim 1, wherein: The step of determining the adjustment step of this round according to the statistical trend of the optical error information after each adjustment includes: According to the adjustment sequence, determining the sign of the error value in the optical error information of any two adjacent adjustments; Determine the step length adjustment mode according to the sign comparison result of the error values of two adjacent adjustments in all the adjustment times in this round; When the step length adjustment mode is increasing, the product of the adjustment step length of the previous round and the first adjustment parameter is used as the adjustment step length of the current round; the first adjustment parameter is greater than 1; When the step length adjustment mode is to decrease, the product of the adjustment step length of the previous round and the second adjustment parameter is used as the adjustment step length of the current round; the second adjustment parameter is a value greater than 0 and less than 1.
6. The data processing method according to claim 5, wherein: The step size adjustment mode is determined according to the sign comparison result, including: If the signs of the error values corresponding to two adjacent adjustments are opposite, the number of crossovers is counted plus 1, and the total number of crossovers in the number of adjustments in this round is determined; Calculating the ratio of the total number of crossover times to the number of adjustments in this round; If the crossing times ratio is greater than a preset crossing ratio, determining that the step length adjustment mode is to increase; If the crossing times ratio is less than or equal to the preset crossing ratio, it is determined that the step length adjustment mode is to be reduced.
7. The data processing method according to claim 1, wherein: When the number of adjustments in each round meets the preset conditions, outputting the adjustment step length of the last round includes: Determine whether the number of adjustments in this round is greater than a first preset number threshold; If the number of adjustments in the current round is greater than the first preset number threshold, the first preset number threshold is reduced by 1, and the next round of adjustment is started; If the number of adjustments in the current round is less than or equal to the first preset number threshold, determining whether the first preset number threshold is greater than a second preset number threshold; If the first preset number threshold is greater than the second preset number threshold, return to continue to execute the first preset number threshold minus 1 and enter the next round of adjustment steps; If the first preset number threshold is less than or equal to the second preset number threshold, the adjustment step length of the last round is output.
8. The data processing method according to claim 1, wherein: The preset parameters include grayscale value, preset adjustment times and preset adjustment step length; The constructing an initial step length assignment model according to the preset parameters corresponding to each of the binding points to be adjusted in the input data, and outputting the initial adjustment step lengths corresponding to each of the binding points to be adjusted, comprises: According to the preset adjustment times corresponding to each of the binding points to be adjusted, a first binding point is selected from the plurality of binding points to be adjusted; the number of the first binding points is greater than or equal to the preset binding point selection number; According to the grayscale values and preset adjustment steps respectively corresponding to the first binding points, a grayscale-adjustment step curve is fitted as the initial step value assignment model; The initial adjustment step lengths corresponding to the binding points to be adjusted are determined from the grayscale-adjustment step length curve.
9. The data processing method according to claim 8, wherein: The selecting a first binding point from the plurality of binding points to be adjusted according to the preset adjustment times respectively corresponding to the binding points to be adjusted comprises: Selecting, from the plurality of binding points to be adjusted, a binding point to be adjusted whose preset adjustment times are less than or equal to a third preset times threshold value as a first binding point; If the number of the first binding points screened out is less than the preset binding point screening number, the third preset number threshold is increased by 1; The first binding points are re-screened from the input data according to the updated third preset number of times threshold until the number of the screened first binding points is greater than or equal to the preset binding point screening number.
10. The data processing method according to claim 1, wherein: The display device includes a plurality of different refresh frequencies and a plurality of different ambient brightnesses in the real environment, and each of the refresh frequencies corresponds to a set of input data; Each of the environmental brightnesses corresponds to a set of input data; the input data includes multiple sets; The data processing method further includes: For each round of adjustment of the driving signal, the adjustment step size of the current round is updated to the input data of the corresponding group; And, for each adjustment of the driving signal, the adjusted driving signal is updated to the corresponding group of input data.
11. The data processing method according to claim 10, wherein: For any set of the input data, after outputting the target adjustment step length of each binding point to be adjusted, the method further includes: Traversing each group of updated input data, adjusting the driving signal according to the target adjustment step corresponding to the binding point to be adjusted, so as to obtain a target adjustment number of times after the optical information of the display device meets the standard optical information; Counting the target adjustment times corresponding to all the binding points to be adjusted in all groups, and calculating the average adjustment times of all the binding points to be adjusted; If the average number of adjustments is less than or equal to a second preset number threshold, it is determined that the target adjustment step length of each binding point to be adjusted meets the qualification condition.
12. A gamma adjustment device, wherein: include: A data acquisition module, configured to acquire at least one set of input data about the display device; Each group of input data includes preset parameters corresponding to a plurality of binding points to be adjusted; The step length coarse adjustment module is configured to construct an initial step length assignment model for any set of the input data according to the preset parameters corresponding to each of the binding points to be adjusted in the input data, and output the initial adjustment step length corresponding to each of the binding points to be adjusted; The step length fine adjustment module is configured to traverse each of the binding points to be adjusted for any set of the input data, and perform multiple rounds of adjustments on the drive signal corresponding to each of the binding points to be adjusted, so as to output the last round of adjustment step length as the target adjustment step length corresponding to the binding point to be adjusted; wherein the step length fine adjustment module includes an adjustment unit and a step length determination unit; an adjusting unit configured to adjust the driving signal multiple times using the adjustment step of the previous round for the current round of adjustment, so as to obtain target data after the optical information of the display device meets the standard optical information; the target data includes the number of adjustments in the current round and the optical error information of the display device after each adjustment; when the current round is the first round, the adjustment step of the previous round is the initial adjustment step; The step length determination unit is configured to determine the adjustment step length of this round according to the statistical trend of the optical error information after each adjustment; output the adjustment step length of the last round when the number of adjustments in each round meets the preset conditions; and gradually modify the preset conditions until the preset conditions include that the number of adjustments of each binding point to be adjusted in each round is less than or equal to the number specified by the user.
13. A gamma regulation system, wherein: comprising the gamma adjustment device and the display apparatus as claimed in claim 12; The gamma adjustment device is configured to adjust the drive signal corresponding to the binding point to be adjusted by using the target adjustment step length of the binding point to be adjusted, and send the adjusted drive signal to the display device; The display device is configured to receive and store the adjusted driving signal; And, when the target gray scale is lit, the screen is displayed by driving the adjusted driving signal corresponding to the target gray scale.
14. A computer device, wherein: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the data processing method as described in any one of claims 1 to 11 are performed.
15. A computer non-transitory readable storage medium, wherein: The computer non-transitory readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data processing method according to any one of claims 1 to 11 are executed.