Gamma value correction method and device, electronic device and readable storage medium

Through the gamma value correction method, the brightness compensation algorithm and the gamma correction calculation formula are used to solve the problems of uneven brightness and gamma value fluctuation of the LCD display panel, achieve uniformity of brightness and gamma value, and improve the performance of the display panel. quality.

CN112950657BActive Publication Date: 2024-10-01HEFEI BOE DISPLAY TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110334535.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-29
Publication Date
2024-10-01
Estimated Expiration
2041-03-29

AI Technical Summary

Technical Problem

Different LCD display panels have uneven brightness and gamma value fluctuations due to liquid crystal unit gaps and process factors, resulting in large differences in brightness and clarity between display panels, affecting product quality.

Method used

Using the gamma value correction method, the preset pixel grayscale image of the display panel is captured through the brightness uneven compensation algorithm, preprocessed to obtain the brightness compensation area, and all grayscale pixels are calculated using the gamma correction calculation formula of the preset gamma value. Perform grayscale operations on points, calculate and apply compensation data to adjust the brightness compensation area to achieve uniformity of brightness and gamma values.

Benefits of technology

It reduces the brightness difference between different display panels, improves the brightness uniformity and gamma value consistency, improves the image quality of the display panels, and ensures that the gamma values ​​of all display panels are within the normal range.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112950657B_ABST
    Figure CN112950657B_ABST
Patent Text Reader

Abstract

The present application discloses a gamma value correction method and its device, electronic device and readable storage medium. The method comprises: while taking a picture of the display panel using a brightness unevenness compensation algorithm, taking a picture of a to-be-tested image when the display panel displays a preset pixel grayscale; preprocessing the to-be-tested image according to the brightness to obtain a brightness compensation area; performing grayscale calculations on all grayscale pixels of the display panel according to a gamma correction calculation formula corresponding to a preset gamma value, and calculating compensation data; and compensating the brightness compensation area according to the compensation data. The gamma value correction method of the present application takes a picture of the display panel using a brightness unevenness compensation algorithm while taking a picture of the display panel, and preprocesses the to-be-tested image to obtain a brightness compensation area, and compensates each brightness compensation area based on the same gamma value, so that the gamma value of each display panel is consistent, thereby improving the uniformity of brightness between different display panels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of display technology, and in particular to a gamma value correction method and device, an electronic device and a readable storage medium. Background Art

[0002] Due to the influence of other factors such as the fluctuation of the liquid crystal cell gap, liquid crystal sensitivity and panel, different LCD display panels suffer from optical instability, resulting in serious brightness unevenness in various blocks of the display panel. There are also large differences in display brightness and display clarity between different display panels, which reduces product quality.

[0003] The current De-mura technology can only improve the brightness uniformity of each area of ​​a display panel, but cannot confirm the brightness uniformity between display panels. Summary of the invention

[0004] In view of this, the present invention aims to solve one of the problems in the related art at least to a certain extent. To this end, the purpose of the present application is to provide a gamma value correction method and device, an electronic device and a readable storage medium.

[0005] The gamma value correction method of the embodiment of the present application includes: while taking a picture of the display panel using a brightness unevenness compensation algorithm, taking a picture of the image to be tested when the display panel displays a preset pixel grayscale; preprocessing the image to be tested according to the brightness to obtain a brightness compensation area; performing grayscale calculation on all grayscale pixels of the display panel according to a gamma correction calculation formula corresponding to a preset gamma value to calculate compensation data; and compensating the brightness compensation area according to the compensation data.

[0006] In some embodiments, the preset pixel grayscale includes a preset number of multiple different pixel grayscales, and photographing the image to be inspected when the display panel displays the preset pixel grayscale includes: photographing the grayscale brightness image corresponding to the multiple pixel grayscales displayed on the display panel to obtain multiple images to be inspected.

[0007] In some embodiments, the preprocessing of the image to be inspected according to the brightness to obtain the brightness compensation area includes: digitally processing the image to be inspected according to the brightness to obtain a digitized image to be inspected; extracting the brightness defect area in the digitized image to be inspected; and segmenting the brightness defect area to obtain a plurality of brightness compensation areas.

[0008] In certain embodiments, extracting the brightness defect area in the digitized image to be inspected includes: recording the grayscale value of each pixel in the image to be inspected; performing a weighted operation on the grayscale value of each pixel using the grayscale values ​​of its surrounding normal pixels as weights to obtain a weighted operation value; when the weighted operation value is greater than or equal to a preset threshold, determining that the pixel is a brightness defect pixel, and a plurality of the brightness defect pixels constitute the brightness defect area.

[0009] In certain embodiments, the grayscale operation is performed on all grayscale pixels of the display panel according to the gamma correction calculation formula corresponding to the preset gamma value, and the compensation data is calculated, including: obtaining the brightness data obtained by compensating the image to be inspected by the brightness unevenness compensation algorithm; detecting the preset grayscale brightness corresponding to the preset grayscale pixel according to the preset gamma value; taking the preset pixel grayscale as a reference, calculating the grayscale brightness of each grayscale corresponding to the preset gamma value according to the preset grayscale brightness and the preset gamma correction calculation formula; and comparing the grayscale brightness of each grayscale with the brightness data to obtain the compensation data.

[0010] In some embodiments, compensating the brightness compensation area according to the compensation data includes: calculating a compensation voltage according to the compensation data; and adjusting a driving voltage according to the compensation voltage to compensate the brightness compensation area.

[0011] The gamma value correction device of the embodiment of the present application. The device includes a shooting module, a preprocessing module, a compensation data acquisition module and a compensation module. The shooting module is used to take a picture of the display panel using a brightness unevenness compensation algorithm, and at the same time, take a picture of the image to be tested when the display panel displays a preset pixel grayscale; the preprocessing module is used to preprocess the image to be tested according to the brightness to obtain a brightness compensation area; the compensation data acquisition module is used to perform grayscale operations on all grayscale pixels of the display panel according to the gamma correction calculation formula corresponding to the preset gamma value, and calculate the compensation data; the compensation module is used to compensate the brightness compensation area according to the compensation data.

[0012] In some embodiments, the preprocessing module includes a digital processing unit, an extraction unit and a segmentation unit. The digital processing unit is used to digitally process the image to be inspected according to brightness to obtain a digital image to be inspected; the extraction unit is used to extract the brightness defect area in the digital image to be inspected; the segmentation unit is used to segment the brightness defect area to obtain a plurality of brightness compensation areas.

[0013] In some embodiments, the compensation data acquisition module includes an acquisition unit, a detection unit, a calculation unit, and a comparison unit. The acquisition unit is used to acquire the brightness data obtained by compensating the image to be inspected by the brightness unevenness compensation algorithm; the detection unit is used to detect the preset grayscale brightness corresponding to the preset grayscale pixel according to the preset gamma value; the calculation unit is used to calculate the grayscale brightness of each grayscale corresponding to the preset gamma value based on the preset pixel grayscale and the preset grayscale brightness and the preset gamma correction calculation formula; the comparison unit is used to compare the grayscale brightness of each grayscale with the brightness data to obtain the compensation data.

[0014] The electronic device according to an embodiment of the present application includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method described in any of the above embodiments is implemented.

[0015] The non-volatile computer-readable storage medium containing a computer program according to an embodiment of the present application stores a computer program. When the computer program is executed by one or more processors, the processors execute the method described in any of the above embodiments.

[0016] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0018] Figure 1 is a schematic diagram of a scene before the gamma value correction method of the present application is improved;

[0019] Figure 2 is a flow chart of a gamma value correction method according to certain embodiments of the present application;

[0020] Figure 3 is a schematic diagram of the structure of a gamma value correction device in some embodiments of the present application;

[0021] Figure 4 is a schematic diagram of a scenario of a gamma value correction method in some embodiments of the present application;

[0022] Figure 5 is a schematic diagram of an image to be inspected in a gamma value correction method in certain embodiments of the present application;

[0023] Figure 6 is a schematic diagram of an image to be inspected in a gamma value correction method in certain embodiments of the present application;

[0024] Figure 7 is a schematic diagram of a scenario of a gamma value correction method in some embodiments of the present application;

[0025] Figure 8 is a flow chart of a gamma value correction method according to certain embodiments of the present application;

[0026] Fig. 9 is a flow chart of a gamma value correction method according to certain embodiments of the present application;

[0027] Fig.10 is a schematic diagram of the structure of a preprocessing module in a gamma value correction device of certain embodiments of the present application;

[0028] Fig.11 is a flow chart of a gamma value correction method according to certain embodiments of the present application;

[0029] Fig.12 is a flow chart of a gamma value correction method according to certain embodiments of the present application;

[0030] Fig.13 is a structural schematic diagram of a compensation data acquisition module in a gamma value correction device according to certain embodiments of the present application;

[0031] Fig.14 is a flow chart of a gamma value correction method according to certain embodiments of the present application;

[0032] Fig.15 is a flow chart of a compensation module in a gamma value correction device according to certain embodiments of the present application;

[0033] Fig.16 is a schematic diagram of a scene after the gamma value correction method of the present application is improved;

[0034] Fig.17 is a schematic diagram of the structure of an electronic device according to some embodiments of the present application;

[0035] Fig.18 It is a schematic diagram of the structure of a computer-readable storage medium of certain embodiments of the present application. DETAILED DESCRIPTION

[0036] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0037] In the description of the present application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0038] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or can communicate with each other; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0039] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or reference letters in different examples, and this repetition is for the purpose of simplification and clarity, which itself does not indicate the relationship between the various embodiments and / or settings discussed.

[0040] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0041] At present, large-size LCD display panels have uneven brightness (Mura) due to the fluctuation of the liquid crystal cell gap (Cell Gap) and other factors such as the process. At the same time, the gamma value of the display panel is abnormal due to the large fluctuation range of the gamma index value (Gamma), resulting in uneven image quality in different areas of the display panel and between different display panels. For example, Figure 1As shown in the figure, for the same model product and the same instruction conditions, data 1 to data 4 are the gamma data of 4 display panels. It is obvious that the gamma values ​​are quite different, and data 2 to data 4 have exceeded the normal range of Gamma2.0 to Gamma2.2. The Gamma value fluctuates too much, and the same product cannot ensure that the Gamma value of all display panels is within the normal range. It is understandable that the large fluctuation of the Gamma value will cause uneven image quality between display panels, affecting product quality.

[0042] In view of this, an embodiment of the present application provides a gamma value correction method for correcting the brightness of a display panel at each grayscale, so that the gamma values ​​of all display panels are within a normal range.

[0043] See also Figure 2 , the gamma value correction method of the embodiment of the present application includes:

[0044] S12: while photographing the display panel using a brightness non-uniformity compensation algorithm, photograph an image to be inspected when the display panel displays a preset pixel grayscale;

[0045] S14: pre-processing the image to be inspected according to the brightness to obtain a brightness compensation area;

[0046] S16: performing grayscale calculation on all grayscale pixels of the display panel according to a gamma correction calculation formula corresponding to a preset gamma value to obtain compensation data;

[0047] S18: Compensating the brightness compensation area according to the compensation data.

[0048] See also Figure 3 The present application also provides a gamma value correction device 10. The gamma value correction device 10 includes a shooting module 12, a pre-processing module 14, a compensation data acquisition module 16 and a compensation module 18.

[0049] Step S12 can be implemented by the shooting module 12, step S14 can be implemented by the preprocessing module 14, step S16 can be implemented by the compensation data acquisition module 16, and step S18 can be implemented by the compensation module 18. That is to say, the shooting module 12 is used to take a picture of the display panel using the brightness unevenness compensation algorithm, and at the same time, take a picture of the image to be inspected when the display panel displays a preset pixel grayscale; the preprocessing module 14 is used to preprocess the image to be inspected according to the brightness to obtain a brightness compensation area; the compensation data acquisition module 16 is used to perform grayscale operations on all grayscale pixels of the display panel according to the gamma correction calculation formula corresponding to the preset gamma value, and calculate to obtain compensation data; the compensation module 18 is used to compensate the brightness compensation area according to the compensation data.

[0050] Specifically, the principle of the brightness unevenness compensation algorithm (Demura) is to brighten the dark areas in the picture obtained by taking a photo, or to darken the bright areas, or to eliminate the areas with color cast.

[0051] The calculation formula of the brightness unevenness compensation algorithm (demura) is:

[0052] Gray -out =Gray -i n*Gain+Offset

[0053] In the above formula, Gray -out Indicates the output grayscale (or pixel grayscale), Gray -in Indicates input grayscale, Gain indicates gain value, and Offset indicates compensation value. Input grayscale refers to the original pixel grayscale of the image input to the display area by the user, that is, the pixel grayscale of the image before gamma correction of the display area. The input grayscale is processed according to the demura compensation algorithm, that is, the original pixel grayscale is processed by the demura compensation algorithm to obtain the gamma-corrected output grayscale (or pixel grayscale) in the display area.

[0054] The detailed gamma value correction method is as follows: Figure 4 As shown, the display panel (Panel) is controlled to be in a dark room environment to avoid the influence of ambient light on the display panel gamma value correction method. Then, the test pattern generator (PatternGenerator) is used to control the Panel to display a preset pixel grayscale, and the preset pixel grayscale is, for example, 255 grayscale. Then, the camera is used to capture the image of the Panel display pattern (Pattern), that is, the shooting module 12 is Figure 4 The camera in the image can obtain the image to be inspected when the display panel displays the preset pixel grayscale. For example, the display panel displays the preset pixel grayscale of the above-mentioned Gray255 pixel grayscale, and the image to be inspected can be as follows Figure 5 The image shown, where Figure 5 The circular and square areas in the figure refer to the darker areas when the display panel displays Gray255 pixel grayscale. It should be noted that the above-mentioned display panel can be a case of processing one display panel. This application takes the case of processing one display panel as an example for explanation. In other embodiments of this application, multiple display panels can also be processed simultaneously. Correspondingly, multiple images to be inspected of preset pixel grayscales corresponding to multiple display panels can be captured simultaneously for multiple display panels.

[0055] Then, the image to be inspected is preprocessed to obtain a brightness compensation area. It is understandable that due to the combined influence of the fluctuation of the liquid crystal cell gap (CellGap) and other factors such as the process, the display panel (Panel) will have uneven brightness (Mura) phenomenon, and the gamma value of the display panel will also be abnormal due to the large fluctuation range of the gamma index value (Gamma), resulting in uneven image quality in various areas of the display panel and between various display panels. Therefore, the brightness of each area of ​​the display panel will be different when displaying the same pixel grayscale. Areas with darker or brighter brightness need to be compensated for brightness, that is, areas with darker or brighter brightness are brightness compensation areas.

[0056] Specifically, the preprocessing method may include digitizing the image to be inspected so that the brightness and darkness in the image to be inspected are represented by different numbers, for example, "very bright" is represented by the number "1", "brighter" is represented by the number "2", and "dark" is represented by the number "3", that is, each area of ​​the display panel is distinguished by 3 brightness levels. In other embodiments, more brightness levels can be divided, and 4 or more numbers are used to represent the brightness level of each area of ​​the display panel (such as Figure 6 In this way, the brightness and darkness changes of each area of ​​the image to be inspected can be clearly shown. In addition, the preprocessing process can also include establishing a coordinate system on the display panel (such as Figure 7 As shown), according to the brightness display position and digital changes of the display panel, the following Figure 7 The waveform diagram corresponding to the Mura defect area shown in the figure more vividly obtains the brightness difference of the image to be inspected when the same pixel grayscale is displayed in various areas of the display panel.

[0057] The preprocessing method may also include brightness enhancement and noise suppression on the image to be inspected, so that the image to be inspected can more accurately show the brightness changes of various areas of the display panel. Brightness enhancement and noise suppression can be performed after the image to be inspected is digitized (e.g. Figure 8 As shown), it can also be performed before the image to be inspected is digitized, so that the brightness change of each area of ​​the display panel is more obvious, the obtained brightness compensation area is more accurate, and the compensation effect is more ideal.

[0058] Then, grayscale calculation is performed on all grayscale pixels of the display panel according to the gamma correction calculation formula corresponding to the preset gamma value, and compensation data is calculated. The preset gamma value (Gamma) can be 2.2, so that the gamma value of each display panel is consistent. It can be understood that the preset gamma value is the gamma correction parameter value (Gamma) in the gamma correction formula, that is, the gamma correction index. The gamma correction parameter value can be 1.8, 2.0, 2.2, 2.4 and 2.6, and different gamma correction parameter values ​​represent different values ​​of brightness adjustment. Since Gamma2.2 has always been the standard for Windows and Apple, a display using Gamma2.2 can produce almost the best color. This level provides the best balance for true color and is used as a standard for graphics and video professionals. Therefore, this application takes the preset gamma value Gamma of 2.2 as an example for explanation. In other embodiments, other preset gamma values ​​can also be selected according to user needs, without limitation here.

[0059] The gamma correction calculation formula of the present application can determine the target pixel grayscale corresponding to the current display brightness of the display area of ​​the display panel according to the following formula:

[0060]

[0061] When Gamma is 2.2, the above gamma correction calculation formula becomes:

[0062]

[0063] Among them, L vi The grayscale brightness target value corresponding to the preset grayscale is displayed in the display area of ​​the display panel, L vL The grayscale brightness corresponding to the reference pixel grayscale displayed in the display area of ​​the display panel, L is the reference pixel grayscale, Gray i The preset gray scale displayed in the display area.

[0064] Then, taking the reference pixel grayscale L as 255 grayscale as an example, the gamma detector head is used to detect the grayscale brightness L corresponding to the reference pixel grayscale. vL is 259.6nit, then the gamma correction calculation formula is:

[0065]

[0066] The above gamma correction calculation formula can be used to perform grayscale calculations on all grayscale pixels of the display panel, and the theoretical brightness values ​​corresponding to the grayscales of other pixels can be calculated, thereby obtaining compensation data. Finally, the brightness compensation area is compensated according to the compensation data, so that the brightness of each area of ​​each display panel is uniform, and the gamma value of each display panel is consistent, which reduces the display brightness difference between different display panels and improves the uniformity of brightness between display panels.

[0067] The gamma value correction method of the present application simultaneously captures an image to be tested that displays preset grayscale pixels when taking a picture of a display panel using a brightness unevenness compensation algorithm, and preprocesses the image to be tested to obtain a brightness compensation area, calculates compensation data according to a gamma correction calculation method corresponding to a preset gamma value, and performs compensation based on the same gamma value on each brightness compensation area, thereby achieving consistent gamma values ​​for each display panel, reducing display brightness differences between different display panels, and improving brightness uniformity between display panels.

[0068] In certain embodiments of the present application, the preset pixel grayscale includes a preset number of multiple different pixel grayscales, and photographing the image to be inspected when the display panel displays the preset pixel grayscale includes: photographing the grayscale brightness images corresponding to the multiple pixel grayscales displayed on the display panel to obtain multiple images to be inspected.

[0069] Specifically, for example, the preset pixel grayscale may include 5 grayscale levels or more than 5 grayscale levels to obtain multiple different images to be inspected, thereby increasing the compensation accuracy in the gamma value correction method. It can be understood that the grayscale represents the different brightness levels from the darkest to the brightest. Taking the 8-bit panel as an example, it can express 2 to the 8th power, which is equal to 256 brightness levels, which we call 256 grayscales. When there are 5 preset pixel grayscales, they can be: 31, 63, 127, 191, and 223 grayscales, respectively. The 5 grayscales are uniformly distributed between 0 and 256 grayscales. The overall display effect is represented by fewer samples, which is simple and representative. When the preset pixel grayscale includes more than 5 grayscale levels, a more accurate compensation effect can be obtained with a larger number of samples, and the compensation accuracy of the gamma value correction method can also be enhanced.

[0070] See also Fig. 9 In some embodiments of the present application, step S14 includes:

[0071] S141: digitally processing the image to be inspected according to the brightness to obtain a digital image to be inspected;

[0072] S142: extracting a brightness defect area in the digitized image to be inspected;

[0073] S143: Segment the brightness defect area to obtain a plurality of brightness compensation areas.

[0074] Please combine Fig.10 The preprocessing module 14 includes a digitization processing unit 141 , an extraction unit 142 and a segmentation unit 143 .

[0075] Step S141 can be implemented by the digital processing unit 141, step S142 can be implemented by the extraction unit 142, and step S143 can be implemented by the segmentation unit 143. That is, the digital processing unit 141 is used to digitally process the image to be inspected according to the brightness to obtain a digitized image to be inspected; the extraction unit 142 is used to extract the brightness defect area in the digitized image to be inspected; and the segmentation unit 143 is used to segment the brightness defect area to obtain multiple brightness compensation areas.

[0076] Specifically, as mentioned above, the digitally processed image to be inspected can also be subjected to brightness enhancement and noise suppression processing to obtain a digital image to be inspected with a brightness closer to the real image to be inspected. Figure 7 , the areas with large brightness fluctuations in the digital image to be inspected can be extracted as brightness defect areas, that is, refined Mura areas can be extracted. Then, the refined Mura areas are finely segmented, that is, the areas with small brightness changes and the areas with large brightness changes in the Mura areas are separated, and the brightness defect areas are finely divided, so as to achieve refined brightness compensation for the brightness defect areas.

[0077] See also Fig.11 In some embodiments of the present application, step S142 includes:

[0078] S1421: Record the gray value of each pixel in the image to be inspected;

[0079] S1422: performing a weighted operation on the grayscale value of each pixel point and the grayscale values ​​of the normal pixels around it as weights to obtain a weighted operation value;

[0080] S1423: When the weighted operation value is greater than or equal to the preset threshold, the pixel is determined to be a brightness defect pixel, and a plurality of brightness defect pixels constitute a brightness defect area.

[0081] Please combine Fig.10 , steps S1421, S1422 and S1423 can all be implemented by the extraction unit 142. That is, the extraction unit 142 is used to: record the gray value of each pixel in the image to be inspected; perform weighted operation on the gray value of each pixel using the gray value of its surrounding normal pixels as a weight to obtain a weighted operation value; when the weighted operation value is greater than or equal to a preset threshold, the pixel is determined to be a brightness defective pixel, and multiple brightness defective pixels constitute a brightness defective area.

[0082] Grayscale values ​​can represent different shades of sampled colors in the image to be inspected. It can be understood that a grayscale digital image is an image with only one sampled color per pixel. Such images are usually displayed as grayscale from the darkest black to the brightest white. After the pixel value is quantized, it is represented by a byte (8b). For example, the grayscale value with continuous changes from black to gray to white is quantized into 256 gray levels. The range of grayscale values ​​is 0 to 255, indicating that the brightness ranges from dark to light, and the corresponding colors in the image range from black to white.

[0083] After recording the grayscale value of each pixel in the image to be inspected, the grayscale value of each pixel is weighted by the grayscale value of the normal pixels around it to obtain a weighted calculation value. It can be understood that since the image to be inspected is a digitized image showing the same grayscale, the change in the grayscale value of the image at this time represents the uneven distribution of brightness in the image to be inspected.

[0084] Specifically, for example, the grayscale of a pixel in the image to be inspected is 190, and the grayscale values ​​of the four normal pixels around it, including the upper, lower, left and right pixels, are 201, 202, 198 and 199 respectively. Then the weighted operation value obtained by weighted operation can be:

[0085]

[0086] The weighted operation value is 10.0125. Assuming the preset threshold is 5, if 10.0125 is greater than 5, the pixel is determined to be a brightness defect pixel. Similarly, the grayscale value of each pixel in the image to be inspected is subjected to a similar weighted operation to determine all brightness defect pixels in the image to be inspected, thereby forming a brightness defect area.

[0087] Then, the gamma value correction method of the present application can segment the obtained brightness defect area to obtain multiple brightness compensation areas. Segmenting the entire brightness defect area to compensate each small brightness defect area separately can achieve fine compensation for each brightness defect area, thereby improving the compensation accuracy. The specific method of segmentation can be: according to Figure 7 The brightness defect area (Mura area) is segmented according to the fluctuation size, that is, segmented according to the degree of brightness defect or the degree of brightness and darkness. Figure 7 The area with small brightness defect and the area with large brightness defect are divided out, and five small brightness compensation areas can be obtained, namely area I, II, III, IV, and V (such as Figure 7 Of course, in some embodiments of the present application, the gamma value correction method of the present application may not segment the brightness defect area, and directly perform Demura mirror compensation on the entire brightness defect area to improve the compensation efficiency, which is not limited here.

[0088] See also Fig.12 In some embodiments, step S16 includes:

[0089] S161: Acquire brightness data obtained by using a brightness non-uniformity compensation algorithm to compensate the image to be inspected;

[0090] S162: Calculating the corresponding preset grayscale brightness according to a gamma correction calculation formula of a preset gamma value based on the preset pixel grayscale;

[0091] S163: Calculating the grayscale brightness of each grayscale corresponding to the preset gamma value according to the preset grayscale brightness;

[0092] S164: Compare the grayscale brightness of each grayscale with the brightness data to obtain compensation data.

[0093] Please combine Fig.13 The compensation data acquisition module 16 includes an acquisition unit 161 , a first calculation unit 162 , a second calculation unit 163 , and a comparison unit 164 .

[0094] Step S161 can be implemented by the acquisition unit 161, step S162 can be implemented by the first calculation unit 162, step S163 can be implemented by the second calculation unit 163, and step S164 can be implemented by the second calculation unit 164. That is, the acquisition unit 161 is used to acquire the brightness data obtained by compensating the image to be inspected by the brightness unevenness compensation algorithm; the first calculation unit 162 is used to calculate the corresponding preset grayscale brightness according to the gamma correction calculation formula of the preset gamma value based on the preset pixel grayscale; the second calculation unit 163 is used to calculate the grayscale brightness of each grayscale corresponding to the preset gamma value according to the preset grayscale brightness; the comparison unit 164 is used to compare the grayscale brightness of each grayscale with the brightness data to obtain compensation data.

[0095] Specifically, the brightness unevenness compensation algorithm compensates the image to be inspected for the first compensation. After the first compensation, the brightness of each area of ​​the display panel is basically uniform, that is, the Mura points in the image to be inspected are compensated. For example, the Mura pixel points can be compared with the normal points above, below, left and right of the Mura points to perform grayscale compensation, so that the brightness of each pixel in the panel is uniform, the Mura is eliminated, and the brightness data of the first compensation is obtained. The brightness data can also be expressed as initial brightness data, which includes the initial grayscale brightness data corresponding to all grayscales in the display area of ​​the display panel.

[0096] It is understandable that the brightness data obtained after the above-mentioned brightness unevenness compensation algorithm is applied to the image to be inspected will still be affected by the fluctuation of the liquid crystal cell gap (Cell Gap) and other factors such as the process, and there may also be an abnormal gamma value of the display panel caused by a large fluctuation range of the gamma index value (Gamma).

[0097] Therefore, the gamma value correction method of the present application, based on the above brightness data, calculates the corresponding preset grayscale brightness according to the gamma correction calculation formula of the preset gamma value based on the preset pixel grayscale, calculates the grayscale brightness of each grayscale corresponding to the preset gamma value according to the preset grayscale brightness, and compares the grayscale brightness of each grayscale with the brightness data to obtain compensation data. Specifically, taking the preset pixel grayscale as 255 and the preset gamma value as 2.2 as an example, the following gamma correction calculation formula is obtained:

[0098]

[0099] Among them, L vi The grayscale brightness target value corresponding to the preset grayscale is displayed in the display area of ​​the display panel, L vL The grayscale brightness corresponding to the reference pixel grayscale displayed in the display area of ​​the display panel, L is the reference pixel grayscale, Gray i The preset gray scale displayed in the display area.

[0100] Taking the reference pixel grayscale L as 255 grayscale as an example, the grayscale brightness L corresponding to the reference pixel grayscale is obtained by using the gamma detector head. vL is 259.6, then the gamma correction calculation formula is:

[0101]

[0102] When the grayscale is preset i When the grayscale is 254, the calculated By analogy, the preset grayscale Gray can be calculated. i The grayscale brightness (or grayscale brightness target value) corresponding to grayscales such as 0, 1, 31, 63, 127, 191, and 223 is shown in Table 1. In Table 1, B (Gamma2.2 theoretical value) is used to represent the grayscale brightness target value. i It can be all grayscales from 0 to 255, or multiple pixel grayscales arbitrarily selected by the user, and there is no limitation here.

[0103] Table 1:

[0104]

[0105]

[0106] Finally, the grayscale brightness and brightness data of each grayscale are compared to obtain compensation data, that is, the initial grayscale brightness data corresponding to each grayscale is compared with the grayscale brightness target value to obtain the difference between the two, which is used as the second compensation data. For example, when the display panel displays 254 grayscales, the corresponding initial grayscale brightness after Mura compensation (first compensation) is 255.8nit. Since the corresponding grayscale brightness target value is 257.3656nit when the display panel displays 254 grayscales, the difference between the two can be the grayscale brightness target value minus the initial grayscale brightness: (257.3656nit-255.8nit)=1.5656nit, that is, the compensation data is 1.5656nit. Among them, the compensation data can be a positive number or a negative number. When the compensation data is a positive number, it means that when the display panel displays the preset grayscale, the grayscale brightness of the display panel needs to increase the grayscale brightness of the corresponding compensation data; when the compensation data is a negative number, it means that when the display panel displays the preset grayscale, the grayscale brightness of the display panel needs to decrease the grayscale brightness of the corresponding compensation data. In other words, if the compensation data is 1.5656nit, it means that when the display panel displays 254 grayscale pixels, the corresponding grayscale brightness of the display panel needs to increase by 1.5656nit grayscale brightness.

[0107] For each brightness defect area divided as above, the grayscale brightness target value of each brightness defect area when displaying a preset grayscale can be calculated respectively, and the brightness compensation data corresponding to each brightness defect area is calculated according to a calculation method similar to the above, which will not be repeated here.

[0108] See also Fig.14 In some embodiments, step S18 includes:

[0109] S181: Calculating compensation voltage according to compensation data;

[0110] S182: adjusting the driving voltage according to the compensation voltage to compensate the brightness compensation area.

[0111] See also Fig.15 , the compensation module 18 includes a third calculation unit 181 and a compensation unit 182.

[0112] Step S181 can be implemented by the third calculation unit 181, and step S182 can be implemented by the compensation unit 182. That is, the third calculation unit 181 is used to calculate the compensation voltage according to the compensation data; the compensation unit 182 is used to adjust the driving voltage according to the compensation voltage to compensate the brightness compensation area.

[0113] Specifically, it can be understood that since the grayscale brightness of each pixel in the display panel is proportional to the driving voltage, the driving voltage drives the grayscale brightness of the pixel in the brightness compensation area of ​​the display panel to become brighter or darker. Therefore, the compensation voltage is calculated according to the compensation data, wherein the compensation data is the grayscale brightness difference, that is, the compensation voltage is calculated according to the grayscale brightness difference of each pixel in the brightness compensation area, that is, the compensation data is converted into a voltage signal, and then the driving voltage is adjusted according to the compensation voltage to compensate the brightness compensation area, and Figure 1 In comparison, the gamma curves of the four display panels after compensation are as follows: Fig.16 As shown, the gamma values ​​of the four display panels are made consistent, which reduces the display brightness difference between different display panels and improves the uniformity of brightness between display panels.

[0114] See also Fig.17 The embodiment of the present application further provides an electronic device 20, including a processor 21 and a memory 22. The memory 22 stores a computer program 221, and the program 221 is executed by the processor 21 to perform the steps of the above-mentioned gamma value correction method.

[0115] In some embodiments, the electronic device 20 may be a device with a display screen, such as a mobile phone, a tablet computer, a smart wearable device (smart watch, smart glasses, etc.), a virtual reality device or a head-mounted display device, a television, etc. This embodiment is described by taking the electronic device 20 as a mobile phone as an example.

[0116] Please combine Fig.18 The present application provides a non-volatile computer-readable storage medium 30 containing a computer program. When the computer program 32 is executed by one or more processors 40, the processor 40 performs the steps of the above-mentioned gamma value correction method.

[0117] In some embodiments, the computer-readable storage medium 30 may be a storage medium built into the electronic device 20 , such as a memory, or a storage medium that can be plugged into the electronic device 20 , such as an SD card.

[0118] The gamma value correction method and device, electronic device and computer-readable storage medium of the present application simultaneously capture an image to be tested that displays preset grayscale pixels when taking a picture of a display panel using a brightness unevenness compensation algorithm, and preprocess the image to be tested to obtain a brightness compensation area, calculate compensation data according to a gamma correction calculation method corresponding to a preset gamma value, and perform compensation based on the same gamma value on each brightness compensation area, thereby achieving consistent gamma values ​​for each display panel, reducing display brightness differences between different display panels, and improving brightness uniformity between display panels.

[0119] The above 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 modifications 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 gamma value correction method, It is characterized in that The method comprises: While photographing the display panel using a brightness non-uniformity compensation algorithm, photograph the image to be inspected when the display panel displays a preset pixel grayscale; Preprocessing the image to be inspected according to brightness to obtain a brightness compensation area; According to the gamma correction calculation formula corresponding to the preset gamma value, grayscale calculation is performed on all grayscale pixels of the display panel to obtain compensation data; the grayscale calculation is performed on all grayscale pixels of the display panel to obtain compensation data according to the gamma correction calculation formula corresponding to the preset gamma value, including: obtaining the brightness data obtained by compensating the image to be inspected by the brightness unevenness compensation algorithm; calculating the corresponding preset grayscale brightness according to the gamma correction calculation formula of the preset gamma value based on the preset pixel grayscale; calculating the grayscale brightness of each grayscale corresponding to the preset gamma value according to the preset grayscale brightness; comparing the grayscale brightness of each grayscale with the brightness data to obtain the compensation data; The brightness compensation area is compensated according to the compensation data.

2. The method according to claim 1, It is characterized in that The preset pixel grayscale includes a preset number of multiple different pixel grayscales, and the photographing of the image to be inspected when the display panel displays the preset pixel grayscale includes: The grayscale brightness image corresponding to the grayscales of the plurality of pixels displayed on the display panel is photographed to obtain the plurality of images to be inspected.

3. The method according to claim 1, It is characterized in that The preprocessing of the image to be inspected according to the brightness to obtain the brightness compensation area comprises: Digitally processing the image to be inspected according to the brightness to obtain a digital image to be inspected; Extracting a brightness defect area in the digitized image to be inspected; The brightness defect area is divided to obtain a plurality of brightness compensation areas.

4. The method according to claim 3, It is characterized in that The step of extracting the brightness defect area in the digitized image to be inspected comprises: Recording the gray value of each pixel in the image to be inspected; The grayscale value of each pixel is weighted by the grayscale values ​​of the normal pixels around it to obtain a weighted calculation value; When the weighted operation value is greater than or equal to a preset threshold, the pixel is determined to be a brightness defect pixel, and a plurality of the brightness defect pixels constitute the brightness defect area.

5. The method according to claim 1, It is characterized in that The compensating the brightness compensation area according to the compensation data comprises: Calculating a compensation voltage according to the compensation data; The driving voltage is adjusted according to the compensation voltage to compensate the brightness compensation area.

6. A gamma value correction device, It is characterized in that The device comprises: A shooting module, the shooting module is used to take a picture of the display panel using a brightness unevenness compensation algorithm, and at the same time, take a picture of the image to be inspected when the display panel displays a preset pixel grayscale; A preprocessing module, the preprocessing module is used to preprocess the image to be inspected according to brightness to obtain a brightness compensation area; A compensation data acquisition module, the compensation data acquisition module is used to perform grayscale operations on all grayscale pixels of the display panel according to a gamma correction calculation formula corresponding to a preset gamma value, and calculate compensation data; the compensation data acquisition module includes an acquisition unit, a first calculation unit, a second calculation unit and a comparison unit; the acquisition unit is used to obtain brightness data obtained by compensating the image to be inspected by the brightness unevenness compensation algorithm; the first calculation unit is used to calculate the corresponding preset grayscale brightness according to the gamma correction calculation formula of the preset gamma value based on the preset pixel grayscale; the second calculation unit is used to calculate the grayscale brightness of each grayscale corresponding to the preset gamma value according to the preset grayscale brightness; the comparison unit is used to compare the grayscale brightness of each grayscale with the brightness data to obtain the compensation data; A compensation module is used to compensate the brightness compensation area according to the compensation data.

7. The device according to claim 6, It is characterized in that The preprocessing module comprises: A digital processing unit, the digital processing unit is used to digitally process the image to be inspected according to brightness to obtain a digital image to be inspected; An extraction unit, the extraction unit is used to extract the brightness defect area in the digitized image to be inspected; A segmentation unit is used to segment the brightness defect area to obtain a plurality of brightness compensation areas.

8. An electronic device, It is characterized in that The method comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 5 is implemented.

9. A non-volatile computer-readable storage medium containing a computer program, It is characterized in that A computer program is stored, and when the computer program is executed by one or more processors, the processors are caused to execute the method according to any one of claims 1 to 5.