Display screen brightness control method and device, equipment, storage medium and program product
By setting the target value and the search termination condition, the gamma binding point of the display module is quickly searched, which solves the problem of the complex and time-consuming correction process in the existing technology and achieves fast and accurate correction of the gamma binding point.
Patent Information
- Application Number
- CN202411608684.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-01-21
AI Technical Summary
In the prior art, the correction process of gamma binding points is complicated and time-consuming, making it difficult to quickly correct the gamma binding points of the batch display module.
By setting the target value to divide the brightness range interval, and set the search termination conditions, search for the neighboring point based on the initial value of the gamma tie point, collect the actual value and determine the error until the error meets the termination conditions.
Quickly correct the gamma binding point of the display module to ensure that the gamma binding point and color coordinates approach the specification values within the set error range.
Smart Images

Figure CN119339672A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a display screen brightness control method, device, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] Gamma is a parameter used to characterize the brightness response characteristics of active-matrix organic light emitting diode (AMOLED) display devices. It evaluates the display effect of the display module by measuring whether the relationship between the display brightness and the input level is close to an exponential curve. This curve is an important indicator of the color brightness of the AMOLED display screen and is also the basis for debugging the performance of other algorithms in the AMOLED driver integrated circuit (IC).
[0003] In traditional technology, the main method of gamma debugging is to use trial and error, that is, by writing data values in specific registers of the display driver chip to adjust the voltage settings to change the brightness of the R, G, and B sub-pixels respectively, and through the feedback of the color analyzer, the Data value changes in a certain step size, so that the gamma and color coordinates gradually approach the specification values.
[0004] However, this method is complicated to operate, time-consuming, and is not conducive to rapid correction of gamma binding points for batches of display modules. Summary of the invention
[0005] Based on this, it is necessary to provide a display screen brightness control method, device, computer equipment, computer-readable storage medium and computer program product that can quickly correct the gamma binding point of the display module in order to solve the above technical problems.
[0006] In a first aspect, the present application provides a display screen brightness control method, comprising:
[0007] Setting a first target value, a second target value, and a third target value according to the display module, and determining initial values of each gamma binding point;
[0008] Divide a plurality of brightness range intervals according to the first target value, and set a search termination condition corresponding to each brightness range interval;
[0009] Searching for adjacent gamma binding points based on the initial value of the gamma binding point, and collecting a first actual value, a second actual value, and a third actual value;
[0010] respectively determining a first error between the first actual value and the first target value, a second error between the second actual value and the second target value, and a third error between the third actual value and the third target value;
[0011] If the first error, the second error, and the third error satisfy the search termination condition, the currently searched gamma binding point is determined to be the target point.
[0012] In one embodiment, the first target value is a brightness value set for each gamma binding point, the second target value is a set color coordinate X, and the third target value is a set color coordinate Y;
[0013] The first actual value is a brightness value corresponding to the searched gamma binding point, the second actual value is a color coordinate X corresponding to the searched gamma binding point, and the third actual value is a color coordinate Y corresponding to the searched gamma binding point.
[0014] In one embodiment, determining the initial value of each gamma binding point includes:
[0015] Use a color analyzer to calibrate the R channel value, G channel value, and B channel value corresponding to the two largest gamma binding points;
[0016] Taking the R channel value, G channel value and B channel value corresponding to the two largest gamma binding points as prior conditions, the R channel value, G channel value and B channel value corresponding to the remaining gamma binding points are derived in sequence; wherein the R channel value, G channel value and B channel value corresponding to the gamma binding point constitute the initial value of the gamma binding point.
[0017] In one embodiment, the search termination condition includes:
[0018] The first error is within a set brightness error range;
[0019] The second error is within a set first chromaticity error range;
[0020] The third error is within a set second chromaticity error range.
[0021] In one embodiment, searching for adjacent gamma binding points based on the initial value of the gamma binding point includes:
[0022] Get the initial value of the gamma binding point;
[0023] Based on the initial value of the gamma binding point, respectively determine the search stride of the R channel, the G channel, and the B channel;
[0024] According to the search strides of the R channel, the G channel, and the B channel, the initial value of the gamma binding point is adjusted to obtain adjacent gamma binding points.
[0025] In one embodiment, the method further comprises:
[0026] If the first error, the second error, and the third error do not satisfy the search termination condition, determining a corresponding search stride for the next search for an adjacent gamma binding point according to the first error, the second error, and the third error;
[0027] The adjacent gamma binding points are searched again according to the search stride until the searched gamma binding points meet the search termination condition.
[0028] In one embodiment, determining the corresponding search stride for the next search for an adjacent gamma binding point according to the first error, the second error, and the third error includes:
[0029] If the second actual value is smaller than the sum of the absolute values of the first chromaticity errors corresponding to the second target value and the brightness range of the second target value, the value of the R channel is increased by the first step;
[0030] If the third actual value is smaller than the sum of the absolute values of the second chromaticity errors corresponding to the third target value and the brightness range where the third target value is located, the value of the B channel is reduced by a second step;
[0031] When the second error is within the set first chromaticity error range, and the third error is within the set second chromaticity error range, if the first actual value is less than the first target value, the value of the G channel is increased by a third step;
[0032] If the second actual value is greater than the sum of the absolute values of the first chromaticity errors corresponding to the second target value and the brightness range where the second target value is located, the value of the R channel is reduced by a fourth step;
[0033] If the third actual value is greater than the sum of the absolute values of the second chromaticity errors of the third target value and the brightness range where the third target value is located, the value of the B channel is increased by a fifth step;
[0034] When the second error is within the set first chromaticity error range and the third error is within the set second chromaticity error range, if the first actual value is greater than the first target value and the sum of the absolute values of the brightness error ranges corresponding to the interval where the first target value is located, the value of the B channel is increased by a sixth step;
[0035] When the second error is within the set first chromaticity error range and the third error is within the set second chromaticity error range, if the first actual value is less than the first target value and the sum of the absolute values of the brightness error range corresponding to the interval where the first target value is located, the value of the B channel is subtracted from the seventh step.
[0036] In one embodiment, when the first target value is less than a preset value, after determining a corresponding search stride for the next search for an adjacent gamma binding point according to the first error, the second error, and the third error, the method further includes:
[0037] Determine whether the number of times the current search for adjacent gamma binding points has reached a preset upper limit;
[0038] If the preset upper limit is reached, the search is stopped;
[0039] The gamma binding point corresponding to the optimal search value is selected as the target point from the gamma binding points that have been searched.
[0040] In a second aspect, the present application also provides a display screen brightness control device, comprising:
[0041] The device comprises:
[0042] An initialization module, used to set a first target value, a second target value and a third target value according to the display module, and determine an initial value of each gamma binding point;
[0043] A condition setting module, used for dividing a plurality of brightness range intervals according to the first target value, and setting a search termination condition corresponding to each brightness range interval;
[0044] A search module, configured to search for adjacent gamma binding points based on the initial value of the gamma binding point, and collect a first actual value, a second actual value, and a third actual value;
[0045] an error determination module, configured to respectively determine a first error between the first actual value and the first target value, a second error between the second actual value and the second target value, and an error between the third actual value and the third target value;
[0046] The target point determination module is used to determine the currently searched gamma binding point as the target point when the first error, the second error and the third error meet the search termination condition.
[0047] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0048] Setting a first target value, a second target value, and a third target value according to the display module, and determining initial values of each gamma binding point;
[0049] Divide a plurality of brightness range intervals according to the first target value, and set a search termination condition corresponding to each brightness range interval;
[0050] Searching for adjacent gamma binding points based on the initial value of the gamma binding point, and collecting a first actual value, a second actual value, and a third actual value;
[0051] respectively determining a first error between the first actual value and the first target value, a second error between the second actual value and the second target value, and an error between the third actual value and the third target value;
[0052] If the first error, the second error, and the third error satisfy the search termination condition, the currently searched gamma binding point is determined to be the target point.
[0053] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0054] Setting a first target value, a second target value, and a third target value according to the display module, and determining initial values of each gamma binding point;
[0055] Divide a plurality of brightness range intervals according to the first target value, and set a search termination condition corresponding to each brightness range interval;
[0056] Searching for adjacent gamma binding points based on the initial value of the gamma binding point, and collecting a first actual value, a second actual value, and a third actual value;
[0057] respectively determining a first error between the first actual value and the first target value, a second error between the second actual value and the second target value, and an error between the third actual value and the third target value;
[0058] If the first error, the second error, and the third error satisfy the search termination condition, the currently searched gamma binding point is determined to be the target point.
[0059] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0060] Setting a first target value, a second target value, and a third target value according to the display module, and determining initial values of each gamma binding point;
[0061] Divide a plurality of brightness range intervals according to the first target value, and set a search termination condition corresponding to each brightness range interval;
[0062] Searching for adjacent gamma binding points based on the initial value of the gamma binding point, and collecting a first actual value, a second actual value, and a third actual value;
[0063] respectively determining a first error between the first actual value and the first target value, a second error between the second actual value and the second target value, and an error between the third actual value and the third target value;
[0064] If the first error, the second error, and the third error satisfy the search termination condition, the currently searched gamma binding point is determined to be the target point.
[0065] The above-mentioned display screen brightness control method, device, computer equipment, computer-readable storage medium and computer program product, by setting the first target value, the second target value and the third target value according to the display module, and determining the initial value of each gamma binding point; so that the set target values can be used as the basis for the subsequent gamma binding point search, and the search range of the gamma binding point is limited. By dividing a plurality of brightness range intervals according to the first target value, and setting the search termination condition corresponding to each brightness range interval; so that it is possible to accurately judge whether the searched gamma binding point converges, and improve the search speed. By searching for adjacent gamma binding points based on the initial value of the gamma binding point, and collecting the first actual value, the second actual value, and the third actual value; so that the gamma binding point of the initial value attachment can be searched in a targeted manner, and the number of searches can be reduced. By respectively determining the first error between the first actual value and the first target value, the second error between the second actual value and the second target value, and the error between the third actual value and the third target value; if the first error, the second error, and the third error meet the search termination condition, the currently searched gamma binding point is determined as the target point. In this way, the gamma binding point of the display module can be quickly corrected so that the searched gamma binding point is within the set error range, ensuring that the brightness and color coordinates of the gamma binding point are close to the specification value. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0067] Figure 1 A schematic diagram of a flow chart of a display screen brightness control method in one embodiment;
[0068] Figure 2 is a flow chart of a method for controlling display screen brightness in another embodiment;
[0069] Figure 3 is a flow chart of a method for controlling display screen brightness in yet another embodiment;
[0070] Figure 4 is a flowchart of a gamma binding point search process in one embodiment;
[0071] Figure 5 is a structural block diagram of a display screen brightness control device in one embodiment;
[0072] Figure 6 is a structural block diagram of a display screen brightness control device in another embodiment;
[0073] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0074] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0075] When the brightness of the display changes from black to bright, people intuitively think that the brightness should be equally spaced. In fact, the human eye is much more sensitive to brightness in a darker environment than in a brighter environment. Therefore, in order to make the display effect of the AMOLED module conform to the visual curve of the human eye, it is necessary to perform gamma correction on the AMOLED module. Gamma is a parameter used to characterize the brightness response characteristics of AMOLED display devices.
[0076] In an exemplary embodiment, Figure 1 As shown, a display screen brightness control method is provided, and the method is applied to an AMOLED module for gamma correction, which may include the following steps 101 to 105. Among them:
[0077] Step 101, setting a first target value, a second target value and a third target value according to a display module, and determining an initial value of each gamma binding point.
[0078] The first target value is the brightness value set for each gamma binding point, the second target value is the set color coordinate X, and the third target value is the set color coordinate Y.
[0079] In this embodiment, in the gamma correction, taking the target maximum grayscale brightness lv_max=500nit, the color coordinates X=0.305, Y=0.32 as an example, the brightness of the remaining gamma binding points is derived according to the following formula:
[0080]
[0081] Among them, Lumi represents brightness, Lv is lv_max=500nit, and gray_value represents grayscale value.
[0082] Exemplarily, the R channel value, G channel value and B channel value corresponding to the two largest gamma binding points can be calibrated by a color analyzer; then, the R channel value, G channel value and B channel value corresponding to the two largest gamma binding points are used as prior conditions to derive the R channel value, G channel value and B channel value corresponding to the remaining gamma binding points in sequence; wherein the R channel value, G channel value and B channel value corresponding to the gamma binding points constitute the initial values of the gamma binding points.
[0083] In this embodiment, the R, G, and B voltage values of the 255 grayscale binding point and the 254 grayscale binding point can be calibrated by a color analyzer (CA410), and based on this as a priori conditions, the preliminary preset values of the remaining binding points are calculated. For example, for the voltage value of the R channel binding point, the actual brightness of the current binding point is measured as lv_Current, the current binding point register value value_current, the actual brightness value of the last binding point lv_last, the last binding point register value value_last, and the target brightness value of the next binding point lv_next; then, based on the above known data, the next binding point register value value_next is solved. The specific calculation formula is as follows:
[0084]
[0085] For example, assuming that the initial gamma binding point values of binding point 27 and binding point 26 have been manually calibrated, the initial gamma binding point values of the remaining binding points can be derived in sequence. The derivation results are shown in Table 1.
[0086] Table 1
[0087]
[0088] Step 102: divide a plurality of brightness range intervals according to the first target value, and set a search termination condition corresponding to each brightness range interval.
[0089] In this embodiment, the intervals to be divided can be determined according to the brightness corresponding to the gamma binding point, and the brightness error range and chromaticity error range that meet the termination search condition within the intervals can be set according to experiments. For example, the brightness range intervals and the corresponding errors are shown in Table 2.
[0090] Table 2
[0091]
[0092] Exemplarily, the search termination condition may include:
[0093] The first error is within a set brightness error range;
[0094] The second error is within a set first chromaticity error range;
[0095] The third error is within a set second chromaticity error range.
[0096] In this embodiment, whether the search for the gamma binding point is completed is determined based on the above search termination condition. If the search termination condition is not met, it means that the search for the gamma binding point needs to continue.
[0097] Step 103 : searching for adjacent gamma binding points based on the initial value of the gamma binding point, and collecting and obtaining a first actual value, a second actual value, and a third actual value.
[0098] The first actual value is the brightness value corresponding to the searched gamma binding point, the second actual value is the color coordinate X corresponding to the searched gamma binding point, and the third actual value is the color coordinate Y corresponding to the searched gamma binding point.
[0099] Exemplarily, an initial value of a gamma binding point is obtained; based on the initial value of the gamma binding point, the search strides of the R channel, the G channel, and the B channel are determined respectively; according to the search strides of the R channel, the G channel, and the B channel, the initial value of the gamma binding point is adjusted to obtain adjacent gamma binding points.
[0100] In this embodiment, combined with Table 1, it can be seen that after obtaining the initial values of the first gamma binding point R=0x3AFF, G=0x3AFF, B=0X3FFF, the R and G values are first synchronously reduced, and the search stride can refer to the Stride_mode7 control in Table 3. That is, the initial R and G values of the gamma binding point are cyclically subtracted from stride_mode7, and R'=R-Stride_mode7, G'=G-Stride_mode7. Among them, R' and G' are the R value and G value of the searched adjacent gamma binding point. In this cyclic search process, after each search, the search termination condition will be judged until the searched gamma binding point meets the search termination condition.
[0101] Step 104 , respectively determining a first error between the first actual value and the first target value, a second error between the second actual value and the second target value, and a third error between the third actual value and the third target value.
[0102] In this embodiment, the brightness and color coordinates corresponding to the searched adjacent gamma binding points are used as the first actual value, the second actual value, and the third actual value. The absolute value of the difference between the first actual value and the first target value is used as the first error, the absolute value of the difference between the second actual value and the second target value is used as the second error, and the absolute value of the difference between the third actual value and the third target value is used as the third error.
[0103] Step 105: If the first error, the second error, and the third error satisfy the search termination condition, the currently searched gamma binding point is determined as the target point.
[0104] In this embodiment, according to the calculated first error, second error, and third error, it is determined that the first error is within the set brightness error range, the second error is within the set first chromaticity error range, and the third error is within the set second chromaticity error range. If the first error, the second error, and the third error are all within the error range, it is determined that the currently searched gamma binding point meets the search termination condition, the search is stopped, and the currently searched gamma binding point is used as the target point.
[0105] The above-mentioned display screen brightness control method sets the first target value, the second target value and the third target value according to the display module, and determines the initial value of each gamma binding point; thus, the set target values can be used as the basis for the subsequent gamma binding point search, and the search range of the gamma binding point is limited. By dividing a plurality of brightness range intervals according to the first target value, and setting the search termination condition corresponding to each brightness range interval; thus, it is possible to accurately judge whether the searched gamma binding point converges, and improve the search speed. By searching for adjacent gamma binding points based on the initial value of the gamma binding point, and collecting the first actual value, the second actual value, and the third actual value; thus, the gamma binding point of the initial value attachment can be searched in a targeted manner, and the number of searches can be reduced. By respectively determining the first error between the first actual value and the first target value, the second error between the second actual value and the second target value, and the error between the third actual value and the third target value; if the first error, the second error, and the third error meet the search termination condition, the currently searched gamma binding point is determined to be the target point. In this way, the gamma binding point of the display module can be quickly corrected so that the searched gamma binding point is within the set error range, ensuring that the gamma binding point and color coordinates are close to the specification value.
[0106] In another exemplary embodiment, Figure 2 As shown, a display screen brightness control method is provided, and the method is applied to an AMOLED module for gamma correction, which may include the following steps 201 to 208. Among them:
[0107] Step 201 : setting a first target value, a second target value, and a third target value according to a display module, and determining an initial value of each gamma binding point.
[0108] Step 202: divide a plurality of brightness range intervals according to the first target value, and set a search termination condition corresponding to each brightness range interval.
[0109] Step 203 : searching for adjacent gamma binding points based on the initial value of the gamma binding point, and collecting and obtaining a first actual value, a second actual value, and a third actual value.
[0110] Step 204 , respectively determining a first error between the first actual value and the first target value, a second error between the second actual value and the second target value, and a third error between the third actual value and the third target value.
[0111] In this embodiment, the specific implementation process and technical effects of steps 201 to 204 are shown in Figure 1 The descriptions of steps 101 to 104 are not repeated here.
[0112] Step 205, determining whether the first error, the second error, and the third error satisfy the search termination condition, if so, executing step 208, if not, executing step 206.
[0113] Step 206: Determine the corresponding search stride for the next search for the adjacent gamma binding point according to the first error, the second error, and the third error.
[0114] Exemplarily, if the second actual value is smaller than the sum of the absolute values of the first chromaticity errors between the second target value and the brightness range in which the second target value is located, the value of the R channel is increased by the first step.
[0115] Exemplarily, if the third actual value is smaller than the sum of the absolute values of the second chromaticity errors of the third target value and the brightness range where the third target value is located, the value of the B channel is reduced by a second step.
[0116] Exemplarily, when the second error is within the set first chromaticity error range and the third error is within the set second chromaticity error range, if the first actual value is less than the first target value, the value of the G channel is increased by a third step.
[0117] Exemplarily, if the second actual value is greater than the sum of the absolute values of the first chromaticity errors corresponding to the second target value and the brightness range in which the second target value is located, the value of the R channel is reduced by a fourth step.
[0118] Exemplarily, if the third actual value is greater than the sum of the absolute values of the second chromaticity errors corresponding to the third target value and the brightness range in which the third target value is located, the value of the B channel is increased by a fifth step.
[0119] Exemplarily, when the second error is within the set first chromaticity error range and the third error is within the set second chromaticity error range, if the first actual value is greater than the first target value and the sum of the absolute values of the brightness error range corresponding to the interval in which the first target value is located, the value of the B channel is increased by the sixth step.
[0120] By integrating the strides in the above embodiments, a stride control table as shown in Table 3 can be obtained.
[0121] Table 3
[0122]
[0123] Exemplarily, in combination with Table 1 and Table 3, first obtain the initial value of the first gamma binding point R = 0x3AFF, G = 0x3AFF, B = 0X3FFF, then synchronously reduce the values of R and G, and make the R and G binding point values cyclically subtract stride_mode7, that is, R' = R-Stride_mode7, G' = G-Stride_mode7, until the first actual value collected meets the error range of the first target value (brightness error). Then determine whether the second actual value and the third actual value meet the error range of the second target value and the third target value (color coordinate error).
[0124] In this embodiment, the following judgment steps may be included:
[0125] Step S0: If the second actual value < the second target value + the absolute value of the first chromaticity error corresponding to the brightness range of the second target value, then R' = R + Stride_mode0, where R' represents the updated R value.
[0126] Step S1: If the third actual value < the third target value + the absolute value of the second chromaticity error corresponding to the brightness range of the third target value, then B' = B-Stride_mode1, where B' represents the updated B value.
[0127] Step S2: If the second error is within the set first chromaticity error range, and the third error is within the set second chromaticity error range, and the first actual value < the first target value, then G'=G+Stride_mode2, where G' is the updated G value.
[0128] Step S3: If the second actual value>the second target value+the absolute value of the first chromaticity error corresponding to the brightness range where the second target value is located, then R'=R-Stride_mode3.
[0129] Step S4: If the third actual value>the third target value+the absolute value of the second chromaticity error corresponding to the brightness range where the third target value is located, then B'=B+Stride_mode4.
[0130] Step S5: If the second error is within the set first chromaticity error range, and the third error is within the set second chromaticity error range, and the first actual value>first target value+absolute value of the brightness error range corresponding to the interval where the first target value is located, then B'=B+Stride_mode5.
[0131] Step S6: If the second error is within the set first chromaticity error range, and the third error is within the set second chromaticity error range, and the first actual value < the first target value + the absolute value of the brightness error range corresponding to the interval where the first target value is located, then B'=B-Stride_mode6.
[0132] The above steps S0 to S6 are the judgment order. If the judgment condition is not met, the next judgment is carried out. If the judgment condition is met, the gamma binding point value is updated (that is, R', B', G' obtained after the update), and the next ca410 data is collected and then judged again.
[0133] Step 207 , after re-searching the adjacent gamma binding points according to the search stride, collect the first actual value, the second actual value, and the third actual value corresponding to the re-searched gamma binding points, and return to execute step 204 .
[0134] Step 208: determine the currently searched gamma binding point as the target point.
[0135] In this embodiment, if the errors between the collected first actual value, the second actual value, and the third actual value and the corresponding set first target value, the second target value, and the third target value all meet the interval error conditions, the search is terminated.
[0136] In this embodiment, the search position of the gamma binding point can be adjusted in a targeted manner by setting the judgment condition of the search step, so that the search results of the gamma binding point converge quickly, effectively reducing the number of searches and improving the gamma correction efficiency.
[0137] In yet another exemplary embodiment, Figure 3 As shown, a display brightness control method is provided, and the method is applied to an AMOLED module for gamma correction, which may include the following steps 301 to 310. Among them:
[0138] Step 301, setting a first target value, a second target value and a third target value according to the display module, and determining the initial value of each gamma binding point.
[0139] Step 302: divide the brightness range into multiple intervals according to the first target value, and set a search termination condition corresponding to each brightness range.
[0140] Step 303 : searching for adjacent gamma binding points based on the initial value of the gamma binding point, and collecting and obtaining a first actual value, a second actual value, and a third actual value.
[0141] Step 304 , respectively determining a first error between the first actual value and the first target value, a second error between the second actual value and the second target value, and a third error between the third actual value and the third target value.
[0142] In this embodiment, the specific implementation process and technical effects of steps 301 to 304 are shown in Figure 1 The descriptions of steps 101 to 104 are not repeated here.
[0143] Step 305: If the first error, the second error, and the third error do not satisfy the search termination condition, then determine the corresponding search stride for the next search for the adjacent gamma binding point based on the first error, the second error, and the third error.
[0144] In this embodiment, the specific implementation process and technical effects of step 305 are shown in Figure 2 The description of step 205 is not repeated here.
[0145] Step 306 , determining whether the first target value is less than a preset value, if so, executing step 307 , if not, executing step 310 .
[0146] Step 307 , determining whether the number of times the current search for the adjacent gamma binding point has reached a preset upper limit, if so, executing step 308 , if not, executing step 309 .
[0147] Step 308, stop searching, and select a gamma binding point corresponding to the optimal search value from the gamma binding points that have been searched as the target point.
[0148] Step 309 , increment the search times by 1, and re-search the adjacent gamma binding points according to the search step, collect the first actual value, the second actual value, and the third actual value corresponding to the re-searched gamma binding points, and then return to step 304 .
[0149] In this embodiment, it is assumed that after multiple searches for gamma binding points below 10 nit, it is still difficult to converge. The maximum number of searches can be set. If the optimal solution is found within the maximum number of searches, the gamma binding point value of this search is used as the final setting value. If the maximum number of searches is exceeded and the error termination condition within the interval is still not met, the search is terminated and the optimal solution found within the interval is selected as the final gamma binding point value. Exemplarily, the maximum number of searches can be set to 40 times.
[0150] Exemplarily, the method for determining the optimal search value may include the following steps:
[0151] 1) Calculate the conversion value of the set first target value, second target value, and third target value, and set the error error.
[0152] X = Lv[0]*x_ch / y_ch;
[0153] Y = Lv[0];
[0154] Z=Lv[0]*(1-x_ch-y_ch) / y_ch;
[0155] error=Lv[0].
[0156] 2) Calculate the conversion values of the collected first actual value, second actual value, and third actual value.
[0157] X_tmp=temp_lvxy[0]*temp_lvxy[1] / temp_lvxy[2];
[0158] Y_tmp = temp_lvxy[0];
[0159] Z_tmp=temp_lvxy[0]*(1-temp_lvxy[1]-temp_lvxy[2]) / temp_lvxy[2].
[0160] 3) Calculate the error after the current collected data is transformed. Among them,
[0161] temp_error=pow((X-X_tmp)*(X-X_tmp)+(Y-Y_tmp)*(Y-Y_tmp)+(Z-Z_tmp)*(Z-Z_tmp), 0.5).
[0162] Each time the gamma binding point value is searched, the error is updated according to the actual acquisition value returned by CA410.
[0163] 4) If the gamma binding point value currently being searched and the current error temp_error are smaller than the error error after the last search, the current gamma binding point value is saved as the optimal search value.
[0164] In the above steps, Lv[0] represents the currently set first target value, temp_lvxy[0] represents the first actual value collected by ca410 after the current search for the gamma binding point value, X_ch represents the currently set second target value, temp_lvxy[1] represents the second actual value collected by ca410, Y_ch represents the currently set third target value, and temp_lvxy[2] represents the third actual value collected by ca410.
[0165] Step 310: re-search adjacent gamma binding points according to the search stride until the searched gamma binding points meet the search termination condition.
[0166] In this embodiment, the maximum number of searches for gamma binding points below 10 nit can be set to avoid being trapped in a higher cycle search, thereby making the gamma correction faster.
[0167] In an exemplary embodiment, Figure 4 As shown, the search process of the gamma binding point is given.
[0168] like Figure 4 As shown, the following steps may be included:
[0169] Step 401, initial gamma binding point value.
[0170] Step 402, adjusting the values of the gamma binding points R and G according to the first target value, and the value of B remains unchanged.
[0171] Step 403, determine whether the first actual value and the first target value currently collected meet the termination condition, if not, return to step 402; if yes, execute step 404.
[0172] Step 404: adjust the values of the gamma binding points R and B according to the second target value and the third target value.
[0173] Step 405, determine whether the errors corresponding to the first actual value, the second actual value, the third actual value currently collected and the first target value, the second target value, the third target value meet the termination conditions. If so, execute step 407; if not, execute step 406.
[0174] Step 406, determining whether the error between the first actual value currently collected and the first target value meets the termination condition, if so, returning to step 404; if not, returning to step 402.
[0175] Step 407, completing the current gamma binding point search and executing the next gamma binding point search.
[0176] It should be noted that the gamma binding point search method in steps 401 to 407 of this embodiment can be applied to Figure 1 to Figure 3 The method embodiment shown is used to perform gamma correction.
[0177] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0178] Based on the same inventive concept, the embodiment of the present application also provides a display screen brightness control device for implementing the display screen brightness control method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more display screen brightness control device embodiments provided below can refer to the limitations of the display screen brightness control method above, and will not be repeated here.
[0179] In an exemplary embodiment, Figure 5 As shown, a display screen brightness control device is provided, comprising: an initialization module 501, a condition setting module 502, a search module 503, an error determination module 504 and a target point determination module 505, wherein:
[0180] Initialization module 501, used to set a first target value, a second target value and a third target value according to the display module, and determine the initial value of each gamma binding point;
[0181] A condition setting module 502, configured to divide the brightness range into a plurality of intervals according to the first target value, and set a search termination condition corresponding to each brightness range;
[0182] A search module 503, configured to search for adjacent gamma binding points based on the initial value of the gamma binding point, and collect a first actual value, a second actual value, and a third actual value;
[0183] an error determination module 504, configured to respectively determine a first error between the first actual value and the first target value, a second error between the second actual value and the second target value, and an error between the third actual value and the third target value;
[0184] The target point determination module 505 is used to determine the currently searched gamma binding point as the target point when the first error, the second error and the third error meet the search termination condition.
[0185] Exemplarily, the first target value is a brightness value set for each gamma binding point, the second target value is a set color coordinate X, and the third target value is a set color coordinate Y;
[0186] The first actual value is a brightness value corresponding to the searched gamma binding point, the second actual value is a color coordinate X corresponding to the searched gamma binding point, and the third actual value is a color coordinate Y corresponding to the searched gamma binding point.
[0187] Exemplarily, the initialization module 501 is specifically used to: calibrate the R channel value, G channel value and B channel value corresponding to the two largest gamma binding points through a color analyzer; using the R channel value, G channel value and B channel value corresponding to the two largest gamma binding points as prior conditions, deriving the R channel value, G channel value and B channel value corresponding to the remaining gamma binding points in sequence; wherein the R channel value, G channel value and B channel value corresponding to the gamma binding points constitute the initial values of the gamma binding points.
[0188] Exemplarily, the search termination condition includes:
[0189] The first error is within a set brightness error range;
[0190] The second error is within a set first chromaticity error range;
[0191] The third error is within a set second chromaticity error range.
[0192] Exemplarily, the search module 503 is specifically used to: obtain the initial value of the gamma binding point; determine the search stride of the R channel, G channel, and B channel respectively based on the initial value of the gamma binding point; adjust the initial value of the gamma binding point according to the search stride of the R channel, G channel, and B channel to obtain the adjacent gamma binding point.
[0193] Exemplarily, the target point determination module 505 is also used to determine the corresponding search step for the next search for adjacent gamma binding points based on the first error, the second error, and the third error through the search module 503 when the first error, the second error, and the third error do not meet the search termination condition; and then re-search the adjacent gamma binding points according to the search step until the searched gamma binding points meet the search termination condition.
[0194] Exemplarily, if the second actual value is smaller than the sum of the absolute values of the first chromaticity errors between the second target value and the brightness range in which the second target value is located, the value of the R channel is increased by the first step;
[0195] If the third actual value is smaller than the sum of the absolute values of the second chromaticity errors corresponding to the third target value and the brightness range where the third target value is located, the value of the B channel is reduced by a second step;
[0196] When the second error is within the set first chromaticity error range, and the third error is within the set second chromaticity error range, if the first actual value is less than the first target value, the value of the G channel is increased by a third step;
[0197] If the second actual value is greater than the sum of the absolute values of the first chromaticity errors corresponding to the second target value and the brightness range where the second target value is located, the value of the R channel is reduced by a fourth step;
[0198] If the third actual value is greater than the sum of the absolute values of the second chromaticity errors of the third target value and the brightness range where the third target value is located, the value of the B channel is increased by a fifth step;
[0199] When the second error is within the set first chromaticity error range and the third error is within the set second chromaticity error range, if the first actual value is greater than the first target value and the sum of the absolute values of the brightness error ranges corresponding to the interval where the first target value is located, the value of the B channel is increased by a sixth step;
[0200] When the second error is within the set first chromaticity error range and the third error is within the set second chromaticity error range, if the first actual value is less than the first target value and the sum of the absolute values of the brightness error range corresponding to the interval where the first target value is located, the value of the B channel is subtracted from the seventh step.
[0201] The various modules of the device in this embodiment can be used to implement Figure 1 , Figure 2 , Figure 4 The various steps in the method embodiment are shown.
[0202] In another exemplary embodiment, Figure 6 As shown, a display screen brightness control device is provided. Figure 5 Based on the device shown, it can also include: a judgment module 506 and an optimal search value determination module 507, wherein:
[0203] The judging module 506 is configured to, when the first target value is less than a preset value, determine whether the number of times of searching for adjacent gamma binding points currently reaches a preset upper limit value after determining the corresponding search stride for the next search for adjacent gamma binding points according to the first error, the second error, and the third error;
[0204] The optimal search value determination module 507 is used to stop searching when a preset upper limit value is reached; and select a gamma binding point corresponding to the optimal search value from the searched gamma binding points as the target point.
[0205] Each module in the above display brightness control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0206] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a method for controlling the brightness of a display screen is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0207] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0208] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0209] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0210] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0211] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0212] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0213] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0214] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A display screen brightness control method, characterized in that: The method comprises: Setting a first target value, a second target value, and a third target value according to the display module, and determining initial values of each gamma binding point; Divide a plurality of brightness range intervals according to the first target value, and set a search termination condition corresponding to each brightness range interval; Searching for adjacent gamma binding points based on the initial value of the gamma binding point, and collecting a first actual value, a second actual value, and a third actual value; respectively determining a first error between the first actual value and the first target value, a second error between the second actual value and the second target value, and a third error between the third actual value and the third target value; If the first error, the second error, and the third error satisfy the search termination condition, the currently searched gamma binding point is determined to be the target point.
2. The method according to claim 1, characterized in that The first target value is the brightness value set for each gamma binding point, the second target value is the set color coordinate X, and the third target value is the set color coordinate Y; The first actual value is a brightness value corresponding to the searched gamma binding point, the second actual value is a color coordinate X corresponding to the searched gamma binding point, and the third actual value is a color coordinate Y corresponding to the searched gamma binding point.
3. The method according to claim 1, characterized in that Determining the initial value of each gamma binding point includes: Use a color analyzer to calibrate the R channel value, G channel value, and B channel value corresponding to the two largest gamma binding points; Taking the R channel value, G channel value and B channel value corresponding to the two largest gamma binding points as prior conditions, the R channel value, G channel value and B channel value corresponding to the remaining gamma binding points are derived in sequence; wherein the R channel value, G channel value and B channel value corresponding to the gamma binding point constitute the initial value of the gamma binding point.
4. The method according to claim 1, characterized in that: The search termination conditions include: The first error is within a set brightness error range; The second error is within a set first chromaticity error range; The third error is within a set second chromaticity error range.
5. The method according to claim 1, characterized in that The searching for the adjacent gamma binding point based on the initial value of the gamma binding point comprises: Get the initial value of the gamma binding point; Based on the initial value of the gamma binding point, respectively determine the search stride of the R channel, the G channel, and the B channel; According to the search strides of the R channel, the G channel, and the B channel, the initial value of the gamma binding point is adjusted to obtain adjacent gamma binding points.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: If the first error, the second error, and the third error do not satisfy the search termination condition, determining a corresponding search stride for the next search for an adjacent gamma binding point according to the first error, the second error, and the third error; The adjacent gamma binding points are searched again according to the search stride until the searched gamma binding points meet the search termination condition.
7. The method according to claim 6, characterized in that The step of determining a corresponding search stride for the next search for an adjacent gamma binding point according to the first error, the second error, and the third error includes: If the second actual value is smaller than the sum of the absolute values of the first chromaticity errors corresponding to the second target value and the brightness range of the second target value, the value of the R channel is increased by the first step; If the third actual value is smaller than the sum of the absolute values of the second chromaticity errors corresponding to the third target value and the brightness range where the third target value is located, the value of the B channel is reduced by a second step; When the second error is within the set first chromaticity error range, and the third error is within the set second chromaticity error range, if the first actual value is less than the first target value, the value of the G channel is increased by a third step; If the second actual value is greater than the sum of the absolute values of the first chromaticity errors corresponding to the second target value and the brightness range where the second target value is located, the value of the R channel is reduced by a fourth step; If the third actual value is greater than the sum of the absolute values of the second chromaticity errors of the third target value and the brightness range where the third target value is located, the value of the B channel is increased by a fifth step; When the second error is within the set first chromaticity error range and the third error is within the set second chromaticity error range, if the first actual value is greater than the first target value and the sum of the absolute values of the brightness error ranges corresponding to the interval where the first target value is located, the value of the B channel is increased by a sixth step; When the second error is within the set first chromaticity error range and the third error is within the set second chromaticity error range, if the first actual value is less than the first target value and the sum of the absolute values of the brightness error range corresponding to the interval where the first target value is located, the value of the B channel is subtracted from the seventh step.
8. The method according to claim 6, characterized in that When the first target value is less than a preset value, after determining a corresponding search stride for the next search for an adjacent gamma binding point according to the first error, the second error, and the third error, the method further includes: Determine whether the number of times the current search for adjacent gamma binding points has reached a preset upper limit; If the preset upper limit is reached, the search is stopped; The gamma binding point corresponding to the optimal search value is selected as the target point from the gamma binding points that have been searched.
9. A display screen brightness control device, characterized in that: The device comprises: An initialization module, used to set a first target value, a second target value and a third target value according to the display module, and determine an initial value of each gamma binding point; A condition setting module, used for dividing a plurality of brightness range intervals according to the first target value, and setting a search termination condition corresponding to each brightness range interval; A search module, configured to search for adjacent gamma binding points based on the initial value of the gamma binding point, and collect a first actual value, a second actual value, and a third actual value; an error determination module, configured to respectively determine a first error between the first actual value and the first target value, a second error between the second actual value and the second target value, and an error between the third actual value and the third target value; The target point determination module is used to determine the currently searched gamma binding point as the target point when the first error, the second error and the third error meet the search termination condition.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Gamma correction method and device of display module, equipment and medium
CN119811299A