Optical compensation method and device of display panel and storage medium
By setting the correspondence between grayscale value and brightness compensation value in the dynamic link library of the display panel, obtaining the actual brightness value and the target brightness value, calculating the grayscale compensation value, and generating compensation data, the problem of uneven brightness of the display panel is solved and the display effect is ensured.
Patent Information
- Application Number
- CN202510616544.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-13
- Publication Date
- 2025-07-11
AI Technical Summary
The prior art does not have good effect when eliminating the uneven brightness of the display panel (mura) phenomenon, which affects the display effect.
By setting the initialization environment of the dynamic link library of the display panel, configuring the correspondence between the grayscale value and the brightness compensation value in the preset grayscale range under the target display brightness, obtaining the actual brightness value and the target brightness value of the subpixel, calculating the grayscale compensation value, generating compensation data, and realizing brightness compensation.
Effectively eliminate uneven brightness phenomenon, ensure the display effect of the display panel, avoid the random setting of brightness compensation data, and improve the accuracy of brightness compensation.
Smart Images

Figure CN120299408A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of display panels, and particularly to an optical compensation method, device and storage medium for a display panel. Background Art
[0002] With the development of display technology, especially the continuous breakthrough of technical problems related to OLED (Organic Light-Emitting Diode) panels and the continuous improvement of the corresponding technology industry, the demand for OLED panels shows a rapid growth trend. OLED panels not only have inherent advantages such as self-luminescence, ultra-thinness, power saving, and vivid colors, but also can achieve innovative designs such as full-screen and flexible screens, meeting the diversified needs of modern smart phones.
[0003] Currently, during the display process of a display panel, a brightness display unevenness (mura) phenomenon may occur, affecting the display effect of the display panel. In the prior art, the mura phenomenon can be eliminated by performing brightness compensation on the display panel. However, the elimination effect of the prior art on the mura phenomenon is not good enough. Summary of the Invention
[0004] The present invention provides an optical compensation method, device and storage medium for a display panel to eliminate uneven display brightness and ensure the display effect of the display panel.
[0005] In a first aspect, the present invention provides an optical compensation method for a display panel, including:
[0006] Setting an initialization environment for the dynamic link library of the display panel, where the corresponding relationship between the gray scale values within a preset gray scale range and the brightness compensation values at a target display brightness is configured in the initialization environment;
[0007] Obtaining the actual brightness values of each sub-pixel at a preset gray scale according to the image when the display panel displays a test picture;
[0008] Obtaining the target brightness values of each of the sub-pixels at a preset gray scale value;
[0009] Obtaining a gray scale compensation value according to the actual brightness value and the target brightness value;
[0010] Determining and generating compensation data according to the dynamic link library, the preset gray scale value and the gray scale compensation value.
[0011] In a second aspect, the present invention provides an optical compensation device for a display panel, and the optical compensation method for the display panel described in any item of the first aspect is executed by the optical compensation device for the display panel. The optical compensation device for the display panel includes:
[0012] At least one processor; and a memory communicatively connected to the at least one processor;
[0013] Wherein, the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the optical compensation method of the display panel according to any one of the first aspects.
[0014] In a third aspect, the present invention provides a computer-readable storage medium storing computer instructions for causing a processor to implement the optical compensation method of the display panel according to any one of the first aspects when executed.
[0015] The technical solution of the embodiment of the present invention, by providing an optical compensation method for a display panel, includes: setting an initialization environment for a dynamic link library of the display panel, and the initialization environment is configured with a correspondence between gray level values and brightness compensation values within a preset gray level range at a target display brightness; obtaining the actual brightness values of each sub-pixel at a preset gray level according to an image when the display panel displays a test picture; obtaining a target brightness value at a preset gray level value; obtaining a gray level compensation value according to the actual brightness value and the target brightness value; determining and generating compensation data according to the dynamic link library, the preset gray level value, and the gray level compensation value. By setting the initialization environment of the dynamic link library of the display panel in advance and configuring the correspondence between gray level values and brightness compensation values within a preset gray level range at the target display brightness in the initialization environment, it is avoided that the compensation data is randomly set during the gray level compensation process, affecting the brightness compensation effect, and ensuring the display effect of the display panel.
[0016] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0018] Figure 1 It is a schematic flowchart of an optical compensation method for a display panel provided by an embodiment of the present invention;
[0019] Figure 2 It is a schematic flowchart of another optical compensation method for a display panel provided by an embodiment of the present invention;
[0020] Figure 3 A schematic diagram of the correspondence between grayscale values and brightness compensation values provided by an embodiment of the present invention;
[0021] Figure 4 A schematic flowchart of another optical compensation method for a display panel provided by an embodiment of the present invention;
[0022] Figure 5 A schematic flowchart of another optical compensation method for a display panel provided by an embodiment of the present invention;
[0023] Figure 6 A schematic flowchart of another optical compensation method for a display panel provided by an embodiment of the present invention;
[0024] Figure 7 A schematic diagram of the correspondence between grayscale values and brightness compensation values provided by another embodiment of the present invention;
[0025] Figure 8 A schematic diagram of the correspondence between grayscale values and brightness compensation values provided by another embodiment of the present invention;
[0026] Figure 9 A schematic structural diagram of an optical compensation device for a display panel provided by an embodiment of the present invention. Detailed implementation manners
[0027] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order different from those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0029] Figure 1The figure is a schematic flowchart of an optical compensation method for a display panel provided by an embodiment of the present invention. This embodiment is applicable to the situation where the display panel performs optical compensation. This method can be executed by an optical compensation device of the display panel, and the optical compensation device of the display panel can be implemented in the form of hardware and / or software. As Figure 1 shown, the method includes:
[0030] S101, Set the initialization environment of the dynamic link library of the display panel. In the initialization environment, the corresponding relationship between the gray scale values within a preset gray scale range and the brightness compensation values at the target display brightness is configured.
[0031] Among them, the dynamic link library of the display panel is usually provided by the manufacturer of the driving chip of the current display panel. During the process of performing brightness compensation on the display panel, after the camera takes a photo, the optical compensation device of the display panel will call the dynamic link library of the display panel. There is a brightness compensation algorithm program in the dynamic link library, which is used to provide the brightness compensation value of the display panel. When performing brightness compensation on the display panel, the brightness compensation value is superimposed on the actual brightness value of the current display panel to achieve the brightness compensation of the current display panel. The initialization environment of the dynamic link library of the display panel can be set correspondingly according to actual needs to meet the subsequent brightness compensation effect. In the initialization environment, the corresponding relationship between the gray scale values within a preset gray scale range and the brightness compensation values at the target display brightness is configured. Each target display brightness corresponds to a corresponding value of the gray scale value and the brightness compensation value. The gray scale value is limited within the preset gray scale range, ensuring that when the gray scale value is determined and within the preset gray scale range, the corresponding brightness compensation value can be obtained, avoiding the random setting of the brightness compensation value and the phenomenon of abnormal compensation after the gray scale value exceeds the preset gray scale range.
[0032] S102, Obtain the actual brightness values of each sub-pixel at the preset gray scale according to the image when the display panel displays the test picture.
[0033] Among them, when the display panel displays the test picture, the camera takes a photo of the test picture to obtain an image. The display panel includes a plurality of sub-pixels arranged in an array. Each sub-pixel can be regarded as a light-emitting point. The brightness compensation device uses pre-processing based on the obtained image to obtain the actual brightness values of each sub-pixel at the preset gray scale, that is, obtain the brightness of the display panel at the preset gray scale, and obtain the actual brightness value of each sub-pixel at the preset gray scale, so as to perform brightness compensation on the sub-pixels whose display brightness cannot reach the expected value and ensure the overall display effect of the display panel.
[0034] S103, Obtain the target brightness values of each sub-pixel at the preset gray scale value.
[0035] Among them, the target brightness value of each sub-pixel at a preset gray level is obtained. The target brightness value can be understood as the ideal brightness value, and the target brightness value can be set according to actual design requirements to ensure the display effect of the display panel.
[0036] S104. Obtain a gray-level compensation value according to the actual brightness value and the target brightness value.
[0037] Among them, the actual brightness value and the target brightness value at the preset gray level are compared, and then the corresponding target gray-level value at the target brightness value is obtained. The gray-level compensation value is obtained according to the preset gray level and the target gray-level value, and the brightness of the sub-pixel is adjusted to eliminate the brightness display difference. The difference between the actual brightness value and the target brightness value can be positive, negative, or zero. When the difference is positive, the actual brightness value is greater than the target brightness value, and at this time, the sub-pixel displays a brighter brightness, and the gray-level compensation value needs to be used to weaken the brightness; when the difference is negative, the actual brightness value is smaller than the target brightness value, and at this time, the sub-pixel displays a darker brightness, and the gray-level compensation value needs to be used to increase the brightness; when the difference is zero, the actual brightness value is the same as the target brightness value, and at this time, the brightness of the sub-pixel does not need to be adjusted.
[0038] S105. Determine and generate compensation data according to the dynamic link library, the preset gray-level value, and the gray-level compensation value.
[0039] Among them, the dynamic link library is mobilized to fuse the preset gray-level value and the gray-level compensation value to generate compensation data. The compensation data can be data related to the brightness compensation value. Subsequently, the compensation data can be burned into the memory by means of a lighting fixture in the optical compensation device of the display panel. The memory can be a Flash memory, and then the compensation data stored in the memory is loaded into the chip of the display panel to facilitate subsequent brightness compensation of the display panel.
[0040] In the embodiment of the present invention, by configuring the correspondence between the gray-level value and the brightness compensation value within the preset gray-level range under the target display brightness in the initialization environment, and then determining and generating compensation data according to the dynamic link library, the preset gray-level value, and the gray-level compensation value, it is avoided that the compensation data is randomly set during the brightness compensation process, which affects the brightness compensation effect, and the display effect of the display panel is ensured.
[0041] Figure 2 It is a schematic flowchart of another optical compensation method for a display panel provided by an embodiment of the present invention. Figure 3 It is a schematic diagram of the correspondence between the gray-level value and the brightness compensation value provided by an embodiment of the present invention, as Figure 2 and Figure 3As shown, the preset gray scale range includes a maximum preset gray scale value, a minimum preset gray scale value, and an actual gray scale range between the maximum preset gray scale value and the minimum preset gray scale value; the actual gray scale range includes at least a first gray scale value and a second gray scale value, and the first gray scale value is less than the second gray scale value; the actual gray scale range is included within the preset gray scale range, and the actual gray scale range is defined by the maximum preset gray scale value and the minimum preset gray scale value. The maximum preset gray scale value is greater than the second gray scale value of the actual gray scale range, and the minimum preset gray scale value is less than the first gray scale value of the actual gray scale range. An optical compensation method for a display panel includes:
[0042] S201, Set the initialization environment of the dynamic link library of the display panel. In the initialization environment, the corresponding relationship between the gray scale values within the actual gray scale range and the brightness compensation values is configured at the target display brightness. Among them, the first gray scale value is greater than the minimum preset gray scale value, and the second gray scale value is less than the maximum preset gray scale value.
[0043] Among them, in the initialization environment, the corresponding relationship between the gray scale values within the actual gray scale range and the brightness compensation values is configured at the target display brightness. Within the actual gray scale range, each gray scale value has a corresponding relationship with the brightness compensation value. The actual gray scale range includes two limit values, namely the first gray scale value and the second gray scale value, and the first gray scale value is less than the second gray scale value. To avoid the random setting of the corresponding brightness compensation value when the gray scale value exceeds the actual gray scale range, the actual gray scale range is limited, as Figure 3 shown, such that the first gray scale value is greater than the minimum preset gray scale value, and the second gray scale value is less than the maximum preset gray scale value, that is, the actual gray scale range is set within the limit range of the maximum preset gray scale value and the minimum preset gray scale value. The brightness compensation value can be correspondingly set for the gray scale values between the first gray scale value and the minimum preset gray scale value, and the brightness compensation value can be correspondingly set for the gray scale values between the second gray scale value and the maximum preset gray scale value, ensuring that each gray scale value has a corresponding brightness compensation value and avoiding the random setting of the brightness compensation value, resulting in abnormal compensation.
[0044] S202, Obtain the actual brightness values of each sub-pixel at the preset gray scale according to the image when the display panel displays the test screen.
[0045] S203, Obtain the target brightness values of each sub-pixel at the preset gray scale value.
[0046] S204, Obtain the gray scale compensation value according to the actual brightness value and the target brightness value.
[0047] S205, Determine and generate compensation data according to the dynamic link library, the preset gray scale value, and the gray scale compensation value.
[0048] In an embodiment of the present invention, by initializing the correspondence between the gray scale values within the actual gray scale range and the brightness compensation values at the target display brightness in the ring mirror, the first gray scale value is greater than the minimum preset gray scale value, and the second gray scale value is less than the maximum preset gray scale value. Furthermore, the compensation data is determined and generated according to the dynamic link library, the preset gray scale value, and the gray scale compensation value, avoiding the random setting of the compensation data during the brightness compensation process, affecting the brightness compensation effect, and ensuring the display effect of the display panel.
[0049] Figure 4 FIG. is a schematic flow chart of another optical compensation method for a display panel provided by an embodiment of the present invention. As Figure 4 shown, the optical compensation method for the display panel includes:
[0050] S301, Set the initialization environment of the dynamic link library of the display panel. The correspondence between the gray scale values within the actual gray scale range and the brightness compensation values at the target display brightness is configured in the initialization ring mirror, where the first gray scale value is greater than the minimum preset gray scale value, and the second gray scale value is less than the maximum preset gray scale value.
[0051] S302, Obtain the actual brightness values of each sub-pixel at the preset gray scale according to the image when the display panel displays the test image.
[0052] S303, Obtain the target brightness values of each sub-pixel at the preset gray scale value.
[0053] S304, Obtain the gray scale compensation value according to the actual brightness value and the target brightness value.
[0054] S305, Determine and generate the compensation data according to the dynamic link library, the preset gray scale value, and the gray scale compensation value.
[0055] S306, Read the maximum preset gray scale value data value corresponding to the maximum preset gray scale value, the minimum preset gray scale value data value corresponding to the minimum preset gray scale value, the first data value corresponding to the first gray scale value, and the second data value corresponding to the second gray scale value in the compensation data.
[0056] Among them, before writing the compensation data into the memory, it is necessary to read the compensation data to obtain the maximum preset gray scale value data value corresponding to the maximum preset gray scale value, the minimum preset gray scale value data value corresponding to the minimum preset gray scale value, the first data value corresponding to the first gray scale value, and the second data value corresponding to the second gray scale value, ensuring that the first data value corresponding to the first gray scale value and the second data value corresponding to the second gray scale value are both within the range of the maximum preset gray scale value data value corresponding to the maximum preset gray scale value and the minimum preset gray scale value data value corresponding to the minimum preset gray scale value, ensuring that both the first data value and the second data value are within a reasonable range, avoiding the risk of random setting, and ensuring the brightness compensation effect of the display panel.
[0057] S307, Determine whether it satisfies that the first data value is greater than the minimum preset gray scale value data value and the second data value is greater than the maximum preset gray scale value data value; if so, execute step S309; if not, execute step S308.
[0058] S308, Stop compensating the data for programming and give an alarm.
[0059] S309, Program the compensation data.
[0060] Among them, when both the first data value and the second data value are within the range formed by the minimum preset gray scale value data value and the maximum preset gray scale value data value, that is, the first data value is greater than the minimum preset gray scale value data value and the second data value is greater than the maximum preset gray scale value data value, at this time, it is considered that the compensation data can be programmed into the memory to ensure the reliability of the compensation data and improve the brightness compensation effect of the display panel. When there is a situation where the first data value is less than or equal to the minimum preset gray scale value data value or the second data value is less than or equal to the maximum preset gray scale value data value, at this time, the compensation data does not meet the programming conditions, so stop compensating the data for programming and give an alarm to facilitate the staff to check.
[0061] In the embodiment of the present invention, after obtaining the compensation data, the maximum preset gray scale value data value corresponding to the maximum preset gray scale value, the minimum preset gray scale value data value corresponding to the minimum preset gray scale value, the first data value corresponding to the first gray scale value, and the second data value corresponding to the second gray scale value in the compensation data are viewed and compared, so as to avoid abnormalities in the first data value, the second data value, the maximum preset gray scale value data value, and the minimum preset gray scale value data value in the compensation data, ensure the subsequent brightness compensation effect, and ensure the display effect of the display panel.
[0062] Figure 5 It is a schematic flowchart of another optical compensation method for a display panel provided by an embodiment of the present invention. As Figure 5 shown, the optical compensation method for the display panel includes:
[0063] S401, Set the initialization environment of the dynamic link library of the display panel. The initialization environment is configured with the corresponding relationship between the gray scale value and the brightness compensation value within the actual gray scale range at the target display brightness. Among them, the first gray scale value is greater than the minimum preset gray scale value, and the second gray scale value is less than the maximum preset gray scale value;
[0064] S402, According to the image when the display panel displays the test picture, obtain the actual brightness value of each sub-pixel at the preset gray scale;
[0065] S403, Obtain the target brightness value of each sub-pixel at the preset gray scale value.
[0066] S404, Obtain the gray scale compensation value according to the actual brightness value and the target brightness value.
[0067] S405. Determine the generated compensation data according to the dynamic link library, the preset gray scale value, and the gray scale compensation value.
[0068] S406. Read the maximum preset gray scale value data value corresponding to the maximum preset gray scale value, the minimum preset gray scale value data value corresponding to the minimum preset gray scale value, the first data value corresponding to the first gray scale value, and the second data value corresponding to the second gray scale value in the compensation data.
[0069] S407. Determine whether it satisfies that the first data value is greater than the minimum preset gray scale value data value and the second data value is greater than the maximum preset gray scale value data value; if so, execute step S409; if not, execute step S408.
[0070] S408. Stop the burning of the compensation data and give an alarm.
[0071] S409. Burn the compensation data.
[0072] S410. Extract the compensated burned data corresponding to the compensation data after burning.
[0073] Among them, after the compensation data is burned into the memory, it is also necessary to extract the compensated burned data corresponding to the compensation data in the memory and check the compensated burned data.
[0074] S411. Read the maximum preset gray scale value burned data value corresponding to the maximum preset gray scale value, the minimum preset gray scale value burned data value corresponding to the minimum preset gray scale value, the first burned data value corresponding to the first gray scale value, and the second burned data value corresponding to the second gray scale value according to the compensated burned data.
[0075] Among them, when the compensation data is written into the memory, it is necessary to read the compensated burned data to obtain the maximum preset gray scale value burned data value corresponding to the maximum preset gray scale value, the minimum preset gray scale value burned data value corresponding to the minimum preset gray scale value, the first burned data value corresponding to the first gray scale value, and the second burned data value corresponding to the second gray scale value, and ensure that the first burned data value corresponding to the first gray scale value and the second burned data value corresponding to the second gray scale value are both within the range of the maximum preset gray scale value burned data value corresponding to the maximum preset gray scale value and the minimum preset gray scale value burned data value corresponding to the minimum preset gray scale value, ensure that the first burned data value and the second burned data value are both within a reasonable range, avoid the risk of random setting, and ensure the brightness compensation effect of the display panel.
[0076] S412. Determine whether it satisfies that the first burned data value is greater than the minimum preset gray scale value burned data value and the second burned data value is greater than the maximum preset gray scale value burned data value; if so, execute step S414; if not, execute step S413.
[0077] S413. Stop the operation of compensating and burning data and give an alarm.
[0078] S414. Complete the compensation.
[0079] Among them, when both the first burned data value and the second burned data value are within the range formed by the minimum preset gray scale value burned data value and the maximum preset gray scale value burned data value, that is, the first burned data value is greater than the minimum preset gray scale value burned data value and the second burned data value is greater than the maximum preset gray scale value burned data value, at this time, it is considered that the compensated burned data formed by compensating and burning the data is normal, ensuring the reliability of the compensated burned data and the brightness compensation effect of the display panel. When there is a situation where the first burned data value is less than or equal to the minimum preset gray scale value burned data value or the second burned data value is less than or equal to the maximum preset gray scale value burned data value, at this time, the compensated burned data does not meet the burning conditions, then stop the operation of compensating and burning the data and give an alarm, which is convenient for the staff to check.
[0080] In the embodiment of the present invention, after completing the compensation data burning, the compensated burned data is formed, and the maximum preset gray scale value burned data value corresponding to the maximum preset gray scale value, the minimum preset gray scale value burned data value corresponding to the minimum preset gray scale value, the first burned data value corresponding to the first gray scale value, and the second burned data value corresponding to the second gray scale value in the compensated burned data are viewed and compared, avoiding abnormalities in the first burned data value, the second burned data value, the maximum preset gray scale value burned data value, and the minimum preset gray scale value burned data value in the compensated burned data, ensuring the subsequent brightness compensation effect and the display effect of the display panel.
[0081] Figure 6 is a schematic flowchart of another optical compensation method for a display panel provided by an embodiment of the present invention. As Figure 6 shown, the optical compensation method for the display panel includes:
[0082] S501. Obtain the file type of the dynamic link library of the display panel.
[0083] Among them, the file type of the dynamic link library of the display panel may include the BMP file type or the CSV file type, and the conditions in the initialization environment can be set correspondingly according to the type of the dynamic link library to ensure the subsequent brightness compensation effect.
[0084] S502. Set the initialization environment of the dynamic link library of the display panel according to the file type. The initialization environment is configured with the corresponding relationship between the gray scale values within the preset gray scale range and the brightness compensation values at the target display brightness.
[0085] Among them, the initialization environment is set according to the file type of the dynamic link library of the display panel, and then the corresponding relationship between the gray scale value and the brightness compensation value within the preset gray scale range at the target display brightness is configured in the initialization environment to ensure the normal generation of subsequent compensation data.
[0086] S503. Obtain the actual brightness value of each sub-pixel at the preset gray scale according to the image when the display panel displays the test image.
[0087] S504. Obtain the target brightness value of each sub-pixel at the preset gray scale value.
[0088] S505. Obtain the gray scale compensation value according to the actual brightness value and the target brightness value.
[0089] S506. Determine the generation of compensation data according to the dynamic link library, the preset gray scale value and the gray scale compensation value.
[0090] In the embodiment of the present invention, by obtaining the file type of the dynamic link library of the display panel, setting the initialization environment of the dynamic link library of the display panel according to the file type, and configuring the corresponding relationship between the gray scale value and the brightness compensation value within the preset gray scale range at the target display brightness in the initialization environment, and then determining the generation of compensation data according to the dynamic link library, the preset gray scale value and the gray scale compensation value, it is avoided that the compensation data is randomly set during the brightness compensation process, which affects the brightness compensation effect, and the display effect of the display panel is ensured.
[0091] Optionally, the corresponding relationship between the gray scale value and the brightness compensation value within the preset gray scale range is a linear relationship. Exemplarily, as Figure 3 shown, within the preset gray scale range, as the gray scale value increases, the brightness compensation value increases.
[0092] Optionally, Figure 7 is a schematic diagram of another corresponding relationship between the gray scale value and the brightness compensation value provided by the embodiment of the present invention. As Figure 3 and Figure 7 shown, the preset gray scale range includes a first preset gray scale range between the minimum preset gray scale value and the first gray scale value; within the first preset gray scale range, the gray scale value and the brightness compensation value are in a linear relationship; or, within the first preset gray scale range, the brightness compensation values corresponding to different gray scale values are the same.
[0093] Among them, the gray scale value between the first gray scale value and the minimum preset gray scale value can be in a linear relationship with the brightness compensation value. Exemplarily, as Figure 3 shown, within the first preset gray scale range, as the gray scale value increases, the brightness compensation value gradually increases. Or as Figure 7As shown, it is also possible to make the gray scale values between the first gray scale value and the minimum preset gray scale value all correspond to fixed brightness compensation values, that is, within the first preset gray scale range, the brightness compensation values corresponding to different gray scale values are the same. The above method ensures that the gray scale values within the first preset gray scale range all correspond to brightness compensation values, avoids the random generation of brightness compensation values corresponding to gray scale values, and ensures the brightness compensation effect.
[0094] Optionally, Figure 8 is a schematic diagram of another correspondence relationship between gray scale values and brightness compensation values provided by an embodiment of the present invention. As Figure 3 , Figure 7 and Figure 8 shown, the preset gray scale range includes a second preset gray scale range located between the maximum preset gray scale value and the second gray scale value; within the second preset gray scale range, the gray scale value and the brightness compensation value have a linear relationship; or, within the second preset gray scale range, the brightness compensation values corresponding to different gray scale values are the same.
[0095] Among them, the gray scale values between the second gray scale value and the maximum preset gray scale value can have a linear relationship with the brightness compensation value. Exemplarily, as Figure 3 and Figure 7 shown, within the second preset gray scale range, as the gray scale value increases, the brightness compensation value gradually increases. Or as Figure 8 shown, it is also possible to make the gray scale values between the second gray scale value and the maximum preset gray scale value all correspond to fixed brightness compensation values, that is, within the second preset gray scale range, the brightness compensation values corresponding to different gray scale values are the same. The above method ensures that the gray scale values within the second preset gray scale range all correspond to brightness compensation values, avoids the random generation of brightness compensation values corresponding to gray scale values, and ensures the brightness compensation effect.
[0096] Optionally, the file format of the compensation data is a bin file. By storing the compensation data in a file manner, it is convenient for the optical compensation device of the subsequent display panel to extract the file and perform corresponding processing, and load it into the driving chip of the display panel, thereby realizing the brightness compensation of the display panel.
[0097] Based on the same inventive concept, an embodiment of the present invention also provides an optical compensation device for a display panel, and the optical compensation device for the display panel is used to execute the optical compensation method for the display panel described in any one of the above aspects. Figure 9 is a schematic structural diagram of an optical compensation device for a display panel provided by an embodiment of the present invention. Figure 9The structural schematic diagram of the optical compensation device 10 of a display panel that can be used to implement the embodiments of the present invention is shown. The optical compensation device 10 of the display panel is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The optical compensation device of the display panel can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0098] As Figure 9 shown, the optical compensation device 10 of the display panel includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as read-only memory (ROM) 12, random access memory (RAM) 13, etc. Among them, the memory stores a computer program executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the random access memory (RAM) 13, various programs and data required for the operation of the optical compensation device 10 of the display panel can also be stored. The processor 11, the read-only memory (ROM) 12, and the random access memory (RAM) 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.
[0099] A plurality of components in the optical compensation device 10 of the display panel are connected to the input / output (I / O) interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disc, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the optical compensation device 10 of the display panel to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0100] The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include but are not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the optical compensation method of the display panel.
[0101] In some embodiments, an optical compensation method of a display panel can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the optical compensation device 10 of the display panel via a read-only memory (ROM) 12 and / or a communication unit 19. When the computer program is loaded into a random access memory (RAM) 13 and executed by a processor 11, one or more steps of the optical compensation method of the display panel described above can be executed. Alternatively, in other embodiments, the processor 11 can be configured to execute the optical compensation method of the display panel by any other suitable means (e.g., by means of firmware).
[0102] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), systems-on-chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0103] The computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer programs can be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0104] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0105] To provide for interaction with a user, the systems and techniques described herein can be implemented on an optical compensation device of a display panel that includes: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the optical compensation device of the display panel. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0106] The systems and techniques described herein can be implemented in a computing system that includes a back-end component (e.g., as a data server), or a computing system that includes a middleware component (e.g., an application server), or a computing system that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0107] A computing system may include a client and a server. The client and the server are generally far from each other and usually interact via a communication network. The client-server relationship is created by computer programs running on respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.
[0108] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is made herein.
[0109] In addition, an embodiment of the present invention further provides a computer program product, which includes a computer program that, when executed by a processor, implements the optical compensation method for a display panel according to any one of the above embodiments.
[0110] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims
1. An optical compensation method for a display panel, characterized in that Including: Set the initialization environment of the dynamic link library of the display panel, and in the initialization environment, the corresponding relationship between the gray scale values within the preset gray scale range and the brightness compensation values at the target display brightness is configured; Obtain the actual brightness values of each sub-pixel at the preset gray scale according to the image when the display panel displays the test screen; Obtain the target brightness values of each of the sub-pixels at the preset gray scale value; Obtain the gray scale compensation value according to the actual brightness value and the target brightness value; Determine and generate compensation data according to the dynamic link library, the preset gray scale value and the gray scale compensation value.
2. The optical compensation method for a display panel according to claim 1, wherein The preset gray scale range includes the maximum preset gray scale value, the minimum preset gray scale value and the actual gray scale range between the maximum preset gray scale value and the minimum preset gray scale value; the actual gray scale range includes at least a first gray scale value and a second gray scale value, and the first gray scale value is less than the second gray scale value; The corresponding relationship between the gray scale values within the preset gray scale range and the brightness compensation values at the target display brightness is configured in the initialization environment, including: The corresponding relationship between the gray scale values within the actual gray scale range and the brightness compensation values at the target display brightness is configured in the initialization environment, wherein the first gray scale value is greater than the minimum preset gray scale value, and the second gray scale value is less than the maximum preset gray scale value.
3. The optical compensation method of the display panel according to claim 2, wherein After determining and generating compensation data according to the dynamic link library, the preset gray scale value and the gray scale compensation value, it further includes: Read the maximum preset gray scale value data value corresponding to the maximum preset gray scale value, the minimum preset gray scale value data value corresponding to the minimum preset gray scale value, the first data value corresponding to the first gray scale value and the second data value corresponding to the second gray scale value in the compensation data; Judge whether it satisfies that the first data value is greater than the minimum preset gray scale value data value and the second data value is greater than the maximum preset gray scale value data value; If not satisfied, stop the burning of the compensation data and give an alarm; If satisfied, burn the compensation data.
4. The optical compensation method for a display panel according to claim 3, wherein, After burning the compensation data, it further includes: Extract the compensated burning data corresponding to the compensation data after burning; Read the maximum preset gray scale value burning data value corresponding to the maximum preset gray scale value, the minimum preset gray scale value burning data value corresponding to the minimum preset gray scale value, the first burning data value corresponding to the first gray scale value and the second burning data value corresponding to the second gray scale value according to the compensated burning data; Judge whether it satisfies that the first burning data value is greater than the minimum preset gray scale value burning data value and the second burning data value is greater than the maximum preset gray scale value burning data value; If not satisfied, stop the operation of the compensated burning data and give an alarm; If satisfied, the compensation is completed.
5. The optical compensation method of a display panel according to claim 1, characterized in that, Before setting the initialization environment of the dynamic link library of the display panel, it further includes: Obtain the file type of the dynamic link library of the display panel; Set the initialization environment of the dynamic link library of the display panel, including: Set the initialization environment of the dynamic link library of the display panel according to the file type.
6. The optical compensation method for a display panel according to claim 1, characterized in that, The corresponding relationship between the gray scale values within the preset gray scale range and the brightness compensation values is linear.
7. The optical compensation method of the display panel according to claim 2, characterized in that, The preset gray scale range includes a first preset gray scale range located between the minimum preset gray scale value and the first gray scale value; Within the first preset gray scale range, the gray scale value and the brightness compensation value have a linear relationship; or, within the first preset gray scale range, the brightness compensation values corresponding to different gray scale values are the same.
8. The optical compensation method of the display panel according to claim 2, characterized in that, The preset gray scale range includes a second preset gray scale range located between the maximum preset gray scale value and the second gray scale value; Within the second preset gray scale range, the gray scale value and the brightness compensation value have a linear relationship; or, within the second preset gray scale range, the brightness compensation values corresponding to different gray scale values are the same.
9. The optical compensation method of the display panel according to claim 2, wherein The file format of the compensation data is a bin file.
10. An optical compensation device for a display panel, characterized in that, The optical compensation method of the display panel according to any one of claims 1-9 is performed by an optical compensation device of the display panel, and the optical compensation device of the display panel includes: At least one processor; and a memory communicatively connected to the at least one processor; Wherein, the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the optical compensation method of the display panel according to any one of claims 1-9.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a processor to implement the optical compensation method of the display panel according to any one of claims 1-9 when executed.