Brightness compensation method and device of display panel and computer equipment
By performing brightness compensation on the initial image of the display panel, determining and adjusting the brightness value of the target pixel point, the problem of uneven brightness in the prior art is solved, and better brightness consistency and compensation effect are achieved.
Patent Information
- Application Number
- CN202510110161.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-03-18
AI Technical Summary
The prior art is difficult to effectively solve the problem of uneven brightness in the display panel, especially the difficulty in repairing regular vertical stripes, resulting in poor compensation effect.
By obtaining the initial image of the display panel, determining the target pixel point, and adjusting it according to the difference between the brightness value of the target pixel point and the preset brightness value, an intermediate image is obtained. Then, the target brightness value is determined based on the brightness value of the pixel points in the intermediate image, and the display parameters of the pixel points in the display panel are adjusted so that their grayscale value matches the target brightness value.
Improves the effect of brightness compensation, ensures the brightness consistency of the display panel, and is suitable for more application scenarios.
Smart Images

Figure CN119649774A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of display panels, and in particular to a brightness compensation method, device, computer equipment, computer-readable storage medium and computer program product for a display panel. Background Art
[0002] In the field of display panel technology, due to limitations in the manufacturing process, the screen will have Mura (uneven brightness) when it leaves the factory. The brightness of the screen display is inconsistent and the display effect is poor.
[0003] In the related art, in order to ensure the brightness consistency of the screen, the screen can be corrected using a brightness compensation algorithm. However, usually, the brightness compensation algorithm is designed for uneven regional brightness, and it is difficult to repair the regular vertical stripes on the screen. The compensation effect is poor, and the display screen of the display panel still has the problem of uneven brightness. Summary of the invention
[0004] Based on this, it is necessary to provide a brightness compensation method, device, computer equipment, computer-readable storage medium and computer program product for a display panel that can ensure the compensation effect and improve brightness consistency in response to the above technical problems.
[0005] In a first aspect, the present application provides a brightness compensation method for a display panel, comprising:
[0006] Acquire an initial image of a display panel, and determine a target pixel point in the initial image, wherein the target pixel point is determined according to a brightness value of a pixel point in the initial image;
[0007] According to the difference between the brightness value of the target pixel and the preset brightness value, the brightness value of the target pixel is adjusted to obtain an intermediate image;
[0008] A target brightness value is determined according to the brightness values of the pixels of the intermediate image, and display parameters of the pixels of the display panel are adjusted according to the target brightness value so that the grayscale values of the adjusted pixels match the target brightness value.
[0009] In one embodiment, the method for determining the target pixel point includes:
[0010] Determining a first brightness value according to brightness values of pixels of the initial image;
[0011] For each pixel in the initial image, determining a first grayscale value corresponding to the first brightness value, and adjusting the grayscale value of the pixel to the first grayscale value to obtain an adjusted image;
[0012] The adjusted brightness values of the pixels of the adjusted image are obtained, and the pixels whose adjusted brightness values are outside a preset brightness range are determined as target pixels.
[0013] In one embodiment, determining that a pixel whose adjusted brightness value is outside a preset brightness range is a target pixel includes:
[0014] For each pixel in the adjusted image, determining the maximum value of the difference between the brightness value of the pixel and the brightness value of an adjacent pixel as the brightness difference of the pixel;
[0015] Determine the pixel point whose brightness difference is greater than the preset brightness difference as the target pixel point.
[0016] In one embodiment, determining, for each pixel in the initial image, a first grayscale value corresponding to the first brightness value includes:
[0017] For each pixel in the initial image, obtaining a corresponding relationship between a grayscale value and a brightness value of the pixel;
[0018] According to the corresponding relationship, a first grayscale value corresponding to the pixel point at the first brightness value is determined.
[0019] In one embodiment, adjusting the brightness value of the target pixel point according to the difference between the brightness value of the target pixel point and a preset brightness value includes:
[0020] When the difference between the brightness value of the target pixel and the preset brightness value is greater than a first preset value, adjusting the brightness value of the target pixel to increase the contrast of the target pixel; and / or,
[0021] When the difference between the brightness value of the target pixel and the preset brightness value is less than a second preset value, the brightness value of the target pixel is adjusted to reduce the contrast of the target pixel.
[0022] In one embodiment, adjusting the brightness value of the target pixel to increase the contrast of the target pixel includes:
[0023] When the brightness value of the target pixel point is less than a preset brightness threshold, a target power index is determined, wherein the target power index is greater than a preset index value; and / or when the brightness value of the target pixel point is greater than a preset brightness threshold, a target power index is determined, wherein the target power index is less than a preset index value;
[0024] The brightness value of the target pixel point is raised to a power according to the target power exponent to obtain an adjusted brightness value.
[0025] In one embodiment, adjusting the brightness value of the target pixel to lower the contrast of the target pixel includes:
[0026] When the brightness value of the target pixel point is less than a preset brightness threshold, a target power index is determined, wherein the target power index is less than a preset index value; and / or when the brightness value of the target pixel point is greater than a preset brightness threshold, a target power index is determined, wherein the target power index is greater than the preset index value;
[0027] The brightness value of the target pixel point is raised to a power according to the target power exponent to obtain an adjusted brightness value.
[0028] In one embodiment, the adjusting the display parameters of the pixel points of the display panel according to the target brightness value so that the grayscale value of the adjusted pixel points matches the target brightness value includes:
[0029] For each pixel point of the intermediate image, obtaining a corresponding relationship between a grayscale value and a brightness value of the pixel point;
[0030] According to the corresponding relationship, determining the target grayscale value corresponding to the pixel point at the target brightness value;
[0031] The display parameters of the pixels of the display panel are adjusted according to the target grayscale value, so that the grayscale value of the adjusted pixels is the target grayscale value.
[0032] In a second aspect, the present application further provides a brightness compensation device for a display panel, comprising:
[0033] An acquisition module, used to acquire an initial image of a display panel and determine a target pixel in the initial image, wherein the target pixel is determined according to a brightness value of a pixel in the initial image;
[0034] An adjustment module, configured to adjust the brightness value of the target pixel point according to the difference between the brightness value of the target pixel point and a preset brightness value, so as to obtain an intermediate image;
[0035] A determination module is used to determine a target brightness value according to the brightness value of the pixel points of the intermediate image, and adjust the display parameters of the pixel points of the display panel according to the target brightness value so that the grayscale value of the adjusted pixel points matches the target brightness value.
[0036] In one embodiment, the device further comprises a module for determining the target pixel point, and the module for determining the target pixel point is used to:
[0037] Determining a first brightness value according to brightness values of pixels of the initial image;
[0038] For each pixel in the initial image, determining a first grayscale value corresponding to the first brightness value, and adjusting the grayscale value of the pixel to the first grayscale value to obtain an adjusted image;
[0039] The adjusted brightness values of the pixels of the adjusted image are obtained, and the pixels whose adjusted brightness values are outside a preset brightness range are determined as target pixels.
[0040] In one embodiment, the target pixel determination module is further configured to:
[0041] For each pixel in the adjusted image, determining the maximum value of the difference between the brightness value of the pixel and the brightness value of an adjacent pixel as the brightness difference of the pixel;
[0042] Determine the pixel point whose brightness difference is greater than the preset brightness difference as the target pixel point.
[0043] In one embodiment, the target pixel determination module is further configured to:
[0044] For each pixel in the initial image, obtaining a corresponding relationship between a grayscale value and a brightness value of the pixel;
[0045] According to the corresponding relationship, a first grayscale value corresponding to the pixel point at the first brightness value is determined.
[0046] In one embodiment, the adjustment module is further used for:
[0047] When the difference between the brightness value of the target pixel and the preset brightness value is greater than a first preset value, adjusting the brightness value of the target pixel to increase the contrast of the target pixel; and / or,
[0048] When the difference between the brightness value of the target pixel and the preset brightness value is less than a second preset value, the brightness value of the target pixel is adjusted to reduce the contrast of the target pixel.
[0049] In one embodiment, the adjustment module is further used for:
[0050] When the brightness value of the target pixel point is less than a preset brightness threshold, a target power index is determined, wherein the target power index is greater than a preset index value; and / or when the brightness value of the target pixel point is greater than a preset brightness threshold, a target power index is determined, wherein the target power index is less than a preset index value;
[0051] The brightness value of the target pixel point is raised to a power according to the target power exponent to obtain an adjusted brightness value.
[0052] In one embodiment, the adjustment module is further used for:
[0053] When the brightness value of the target pixel point is less than a preset brightness threshold, a target power index is determined, wherein the target power index is less than a preset index value; and / or when the brightness value of the target pixel point is greater than a preset brightness threshold, a target power index is determined, wherein the target power index is greater than the preset index value;
[0054] The brightness value of the target pixel point is raised to a power according to the target power exponent to obtain an adjusted brightness value.
[0055] In one embodiment, the determining module is further configured to:
[0056] For each pixel point of the intermediate image, obtaining a corresponding relationship between a grayscale value and a brightness value of the pixel point;
[0057] According to the corresponding relationship, determining the target grayscale value corresponding to the pixel point at the target brightness value;
[0058] The display parameters of the pixels of the display panel are adjusted according to the target grayscale value, so that the grayscale value of the adjusted pixels is the target grayscale value.
[0059] In a third aspect, an embodiment of the present disclosure further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the methods in the embodiments of the present disclosure are implemented.
[0060] In a fourth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, wherein a computer program is stored thereon, and when the computer program is executed by a processor, the steps of any one of the methods in the embodiments of the present disclosure are implemented.
[0061] In a fifth aspect, the embodiments of the present disclosure further provide a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of any one of the methods in the embodiments of the present disclosure are implemented.
[0062] The brightness compensation method, device, computer equipment, computer-readable storage medium and computer program product of the above-mentioned display panel, when performing brightness compensation on the display panel, obtains an initial image of the display panel and determines the target pixel point in the initial image, adjusts the brightness value of the target pixel point according to the difference between the brightness value of the target pixel point and the preset brightness value to obtain an intermediate image, determines the target brightness value according to the brightness value of the pixel point in the intermediate image, and adjusts the display parameters of the pixel point of the display panel according to the target brightness value so that the grayscale value of the adjusted pixel point matches the target brightness value, thereby realizing brightness compensation for the display panel. The target pixel is determined according to the brightness value of the pixel in the initial image, and the brightness value of the target pixel is adjusted according to the preset brightness value. The target pixel with abnormal brightness value in the initial image can be quickly and accurately determined and adjusted, so that the correspondence between the brightness value and the grayscale value of the pixel in the intermediate image is more accurate and reliable, which improves the accuracy of determining the target brightness value. When adjusting the display parameters, the grayscale value of the pixel can be quickly and accurately adjusted to obtain a display panel with consistent brightness. The problem of abnormal brightness value-grayscale value relationship caused by abnormal brightness value is effectively avoided, the brightness compensation effect is guaranteed, the brightness consistency of the display panel after brightness compensation is improved, and it is suitable for more application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0064] Figure 1 is a schematic flow chart of a brightness compensation method for a display panel in one embodiment;
[0065] Figure 2 is a schematic diagram of an initial image of a display panel in one embodiment;
[0066] Figure 3 is a schematic diagram of an initial image after preliminary compensation in one embodiment;
[0067] Figure 4 is a schematic flow chart of a brightness compensation method for a display panel in another embodiment;
[0068] Figure 5 is a structural block diagram of a brightness compensation device for a display panel in one embodiment;
[0069] Figure 6FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0070] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0071] In one embodiment, Figure 1 As shown, a brightness compensation method for a display panel is provided. This embodiment takes the method applied to a terminal as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0072] Step S110, acquiring an initial image of the display panel, and determining a target pixel point in the initial image, wherein the target pixel point is determined according to a brightness value of a pixel point in the initial image;
[0073] Exemplarily, an initial image of the display panel is obtained. In one example, the initial image can be obtained directly or indirectly based on an image acquired by a preset image acquisition device; for example, a preset image processing algorithm can be used to extract a display brightness value in the image to obtain the initial image. In some possible implementations, an image of the display panel is acquired by an image acquisition device, and the image data is a 12-bit integer. The grayscale data is divided by the exposure time pixel by pixel to obtain the brightness data of each pixel, and the data is filled into a 32-bit empty image, thereby obtaining an initial image for characterizing brightness.
[0074] Optionally, the target pixel is determined according to the brightness value of the pixel in the initial image. In one example, the target pixel can be determined according to the brightness value of the pixel in the processed image after the initial image is processed.
[0075] In one example, due to problems such as pixel circuit control, the brightness of pixels in the initial image may be inaccurate, resulting in poor results in subsequent brightness compensation. The pixel with inaccurate brightness, i.e., the target pixel, can be determined by the brightness of the pixel. In one possible implementation, preliminary brightness compensation can be performed on the initial image, and the target pixel can be determined based on the compensated image. Figure 2 FIG. 1 is a schematic diagram of an initial image of a display panel according to an exemplary embodiment. In one example, due to problems such as inaccurate brightness of some pixels, the compensated image may still have uneven brightness, such as Figure 3As shown, at this time, the pixels whose brightness values in the compensated image are not within the preset range can be screened out as target pixels.
[0076] Step S120, adjusting the brightness value of the target pixel point according to the difference between the brightness value of the target pixel point and a preset brightness value to obtain an intermediate image;
[0077] Exemplarily, the preset brightness value may be set according to an actual application scenario, and the brightness value of the target pixel is adjusted according to the difference between the brightness value and the preset brightness value.
[0078] In a possible implementation, the adjustment method can be determined according to the positive or negative of the difference, such as when the difference is positive, the adjustment method can be downward adjustment; when the difference is negative, the adjustment method can be upward adjustment, etc. In one example, the adjustment amplitude can be set according to the actual application scenario; for example, the adjustment amplitude can be a preset fixed value, the adjustment amplitude can also be determined according to the absolute value of the difference, and the absolute value of the difference has a positive correlation relationship, etc. In a possible implementation, the adjustment method for the brightness value can be set according to the need for contrast enhancement or reduction in the actual application scenario.
[0079] Step S130, determining a target brightness value according to the brightness values of the pixels of the intermediate image, and adjusting display parameters of the pixels of the display panel according to the target brightness value so that the grayscale values of the adjusted pixels match the target brightness value.
[0080] Exemplarily, after the intermediate image is obtained, the target brightness value is determined according to the brightness values of the pixels of the intermediate image. In one example, the target brightness value can be determined according to the brightness values of all the pixels of the display panel on the intermediate image. For example, the target brightness value can be the average brightness value of all the pixels of the display panel on the intermediate image, the target brightness value can be the median brightness value of all the pixels of the display panel on the intermediate image, etc., which can be determined according to the actual application scenario.
[0081] Optionally, the display parameters of the pixel points of the display panel are adjusted according to the target brightness value so that the grayscale value of the adjusted pixel point matches the target brightness value. In one example, for each pixel point, there is a corresponding relationship between the brightness value and the grayscale value. By adjusting the display parameters of the display panel, the grayscale value of the pixel point can be adjusted, thereby achieving brightness adjustment.
[0082] In a possible implementation, for each pixel, a target grayscale value corresponding to the target pixel is determined, and a display parameter corresponding to the pixel is adjusted so that the grayscale value of the adjusted pixel is the target grayscale value. In an example, the display parameter may include but is not limited to a circuit voltage value, a current value, etc., which may be determined based on an actual application scenario.
[0083] In the embodiment of the present disclosure, when performing brightness compensation on the display panel, an initial image of the display panel is acquired, and a target pixel in the initial image is determined, and the brightness value of the target pixel is adjusted according to the difference between the brightness value of the target pixel and a preset brightness value to obtain an intermediate image, and a target brightness value is determined according to the brightness value of the pixel in the intermediate image, and display parameters of the pixel of the display panel are adjusted according to the target brightness value so that the grayscale value of the adjusted pixel matches the target brightness value, thereby achieving brightness compensation for the display panel. The target pixel is determined according to the brightness value of the pixel in the initial image, and the brightness value of the target pixel is adjusted according to the preset brightness value. The target pixel with abnormal brightness value in the initial image can be quickly and accurately determined and adjusted, so that the correspondence between the brightness value and the grayscale value of the pixel in the intermediate image is more accurate and reliable, which improves the accuracy of determining the target brightness value. When adjusting the display parameters, the grayscale value of the pixel can be quickly and accurately adjusted to obtain a display panel with consistent brightness. The problem of abnormal brightness value-grayscale value relationship caused by abnormal brightness value is effectively avoided, the brightness compensation effect is guaranteed, the brightness consistency of the display panel after brightness compensation is improved, and it is suitable for more application scenarios.
[0084] In one embodiment, the method for determining the target pixel point includes:
[0085] Determining a first brightness value according to brightness values of pixels of the initial image;
[0086] For each pixel in the initial image, determining a first grayscale value corresponding to the first brightness value, and adjusting the grayscale value of the pixel to the first grayscale value to obtain an adjusted image;
[0087] The adjusted brightness values of the pixels of the adjusted image are obtained, and the pixels whose adjusted brightness values are outside a preset brightness range are determined as target pixels.
[0088] Exemplarily, after adjusting the brightness values of the pixels of the initial image, the target pixel is determined. In one example, the brightness values of the pixels of the initial image are the brightness values of each pixel in the display panel obtained according to the image of the display panel. According to the brightness values of the pixels of the initial image, a first brightness value is determined, and the first brightness value can be determined according to an actual application scenario; for example, the mean brightness value of the pixels can be determined as the first brightness value, the median brightness value of the pixels can be determined as the first brightness value, a set value can be used as the first brightness value according to the actual application scenario, and the first brightness value can also be determined according to image acquisition environment factors, display panel parameter information, etc.
[0089] The correspondence between the brightness value and the grayscale value of different pixels may be different. Optionally, for each pixel, a first grayscale value corresponding to the first brightness value is determined. In one example, the correspondence between the brightness value and the grayscale value of a pixel can be represented by a gamma curve. After determining the target grayscale value, the grayscale values of all pixels in the initial image are adjusted to the first grayscale value to obtain an adjusted image. In one example, the grayscale values of the pixels of the initial image can be adjusted by simulation software or the like to obtain an adjusted simulation image, which is the adjusted image.
[0090] The adjusted brightness value of the pixel of the adjusted image is obtained. Due to inaccurate brightness extraction, low sensitivity of the grayscale values of some pixels to brightness deviation, etc., there may still be abnormal brightness areas in the adjusted image. Exemplarily, the pixel whose adjusted brightness value is outside the preset brightness range is determined as the target pixel.
[0091] In one example, the preset brightness range may be determined according to an actual application scenario, for example, the preset brightness range may be determined according to a first brightness value in an actual application scenario, etc. When the adjusted brightness value is within the preset brightness range, it may be considered that the brightness adjustment effect of the pixel point is good, and the corresponding pixel point is normal; when the adjusted brightness value is outside the preset brightness range, it may be considered that the brightness adjustment effect of the pixel point is poor, and the corresponding pixel point may have abnormal brightness, etc., and the pixel point is determined to be a target pixel point.
[0092] In some possible implementations, a preset brightness range is determined according to the first brightness value, a brightness value less than the first brightness value preset value is determined as the minimum value of the preset brightness range, and a brightness value greater than the first brightness value preset value is determined as the maximum value of the preset brightness range, to obtain the preset brightness range. The first brightness value may be the mean brightness value of the pixels of the initial image, or the median brightness value of the pixels of the initial image, or a fixed set value, which may be determined according to the actual application scenario.
[0093] In the disclosed embodiment, when determining the target pixel point, a preliminary brightness compensation simulation is first performed on the initial image, and the grayscale value of each pixel point in the image is adjusted to a first grayscale value based on the brightness value-grayscale value relationship of the pixel point. The pixel point whose brightness value is outside the preset brightness range is determined from the adjusted image as the target pixel point, so that the target pixel point with abnormal brightness value can be quickly and accurately determined through preliminary brightness compensation.
[0094] In one embodiment, determining the pixel whose adjusted brightness value is outside the preset brightness range as the target pixel includes:
[0095] For each pixel in the adjusted image, determining the maximum value of the difference between the brightness value of the pixel and the brightness value of an adjacent pixel as the brightness difference of the pixel;
[0096] Determine the pixel point whose brightness difference is greater than the preset brightness difference as the target pixel point.
[0097] Exemplarily, the target pixel can be determined by the brightness difference between the pixel and the adjacent pixel. Optionally, for each pixel in the adjusted image, the brightness value of the pixel and the brightness value difference of the adjacent pixel are determined respectively. Since a pixel may be adjacent to one or more pixels, each pixel may correspond to one or more brightness value differences. In one example, the maximum brightness value difference is determined as the brightness difference of the pixel.
[0098] Optionally, the brightness difference of each pixel in the adjusted image is determined, and the brightness difference of each pixel is judged to determine that the pixel whose brightness difference is greater than a preset brightness difference is the target pixel. The preset brightness difference can be determined according to an actual application scenario. When the brightness difference is greater than the preset brightness difference, it can be considered that the pixel may be located in an abnormal brightness area at the junction of stripes and is determined as the target pixel.
[0099] The disclosed embodiments can determine the target pixel point based on the brightness difference between the pixel point and the adjacent pixel points, so that the pixel point corresponding to the abnormal brightness value area at the junction of the stripes can be quickly and accurately found according to the brightness value of the pixel point. By adjusting and compensating the brightness value of the pixel point corresponding to the abnormal brightness value area at the junction of the stripes, the stripe phenomenon caused by uneven brightness value in the display panel can be effectively corrected.
[0100] In one embodiment, determining, for each pixel in the initial image, a first grayscale value corresponding to the first brightness value includes:
[0101] For each pixel in the initial image, obtaining a corresponding relationship between a grayscale value and a brightness value of the pixel;
[0102] According to the corresponding relationship, a first grayscale value corresponding to the pixel point at the first brightness value is determined.
[0103] Exemplarily, when determining the first grayscale value, for each pixel in the initial image, the correspondence between the grayscale value and the brightness value of the pixel is obtained. In one example, the correspondence between the grayscale value and the brightness value of different pixels may be different, and the correspondence between the grayscale value and the brightness value may include but is not limited to the gamma curve of the grayscale brightness, etc.
[0104] Optionally, for each pixel, the correspondence between its grayscale value and brightness value is determined, and based on the correspondence, the first grayscale value corresponding to the pixel at the first brightness value is determined. In an example, the correspondence between the grayscale value and the brightness value of the pixel may be different due to factors such as display technology and driving circuit.
[0105] In the embodiment of the present disclosure, for each pixel in the initial image, the correspondence between the grayscale value and the brightness value of the pixel is obtained, and the first grayscale value corresponding to the pixel at the first brightness value is determined, so that according to the correspondence between the grayscale value and the brightness value of the pixel, the first grayscale value corresponding to the pixel at the first brightness value can be quickly and accurately determined, so that the brightness value of the pixel can be adjusted by adjusting the grayscale value of the pixel.
[0106] In one embodiment, adjusting the brightness value of the target pixel point according to the difference between the brightness value of the target pixel point and a preset brightness value includes:
[0107] When the difference between the brightness value of the target pixel and the preset brightness value is greater than a first preset value, adjusting the brightness value of the target pixel to increase the contrast of the target pixel; and / or,
[0108] When the difference between the brightness value of the target pixel and the preset brightness value is less than a second preset value, the brightness value of the target pixel is adjusted to reduce the contrast of the target pixel.
[0109] Exemplarily, when adjusting the brightness value of the target pixel, the preset brightness value is used as a reference for adjustment to achieve contrast stretching. In one example, if the difference between the brightness value of the target pixel and the preset brightness value is greater than the first preset value, it can be considered that the brightness value of the target pixel is much greater than the preset brightness value, and the contrast of the pixel to the preset brightness value needs to be increased. Therefore, the brightness value of the target pixel can be adjusted downward to increase the contrast of the target pixel.
[0110] In one example, if the difference between the target pixel and the preset brightness value is less than a second preset value, it can be considered that the brightness value of the target pixel is much smaller than the preset brightness value, and the contrast of the pixel to the preset brightness value needs to be reduced. Therefore, the brightness value of the target pixel can be increased and the contrast of the target pixel can be decreased.
[0111] Optionally, the first preset value and the second preset value may be thresholds determined according to an actual application scenario. In some examples, the first preset value is a positive number, the second preset value is a negative number, and the absolute values of the first preset value and the second preset value are the same.
[0112] For example, by adjusting the brightness value of the pixel, the contrast can be increased or decreased. In different scenarios, the effect of increasing or decreasing the brightness of the pixel is different, which can be determined according to the actual application scenario.
[0113] Optionally, the initial image can be an 8-bit image. When performing contrast stretching, the 8-bit image can be normalized to 0-1 first, so that the image can be converted to 32 bits to ensure that the decimals obtained when performing contrast stretching can be accurately stored in the image to reduce errors.
[0114] In the embodiments of the present disclosure, when the brightness value of the target pixel is large, the contrast of the pixel is adjusted upward, and when the brightness value of the target pixel is small, the contrast of the pixel is adjusted downward, so that the brightness value of the target pixel with abnormal brightness value can be adjusted through contrast stretching, so that the brightness value of the adjusted pixel is within the normal range, thereby ensuring the brightness consistency of the adjusted image, avoiding the problem of poor compensation effect caused by errors in brightness value data extraction, etc., and effectively improving the compensation effect.
[0115] In one embodiment, adjusting the brightness value of the target pixel to increase the contrast of the target pixel includes:
[0116] When the brightness value of the target pixel point is less than a preset brightness threshold, a target power index is determined, wherein the target power index is greater than a preset index value; and / or when the brightness value of the target pixel point is greater than a preset brightness threshold, a target power index is determined, wherein the target power index is less than a preset index value;
[0117] The brightness value of the target pixel point is raised to a power according to the target power exponent to obtain an adjusted brightness value.
[0118] For example, the brightness value of a pixel can be adjusted by raising the brightness value to a power, and different power exponent values will correspond to different brightness value changes. , where I is the brightness value of the pixel, p is the target power index, is the adjusted brightness value.
[0119] Optionally, when it is necessary to increase the contrast of the target pixel, it is necessary to reduce the brightness value of the target pixel. If the brightness value of the target pixel is less than a preset brightness threshold, the larger the power exponent of the power processing, the smaller the adjusted brightness value, and when the power exponent is greater than the preset exponent value, the adjusted brightness value is less than the brightness value before adjustment. At this time, the target power exponent is determined, and the target power exponent is greater than the preset exponent value. Among them, the specific value of the target power exponent can be determined according to the actual application scenario. In an example, the value of the target power exponent can be associated with the brightness value of the target pixel, such as the larger the brightness value, the larger the target power exponent, and the greater the amplitude of the brightness value reduction.
[0120] If the brightness value of the target pixel is greater than the preset brightness threshold, the smaller the power exponent of the power processing is, the smaller the adjusted brightness value is, and when the power exponent is less than the preset exponent value, the adjusted brightness value is less than the brightness value before adjustment. At this time, the target power exponent is determined, and the target power exponent is less than the preset exponent value. Among them, the specific value of the target power exponent can be determined according to the actual application scenario. In an example, the value of the target power exponent can be associated with the brightness value of the target pixel. For example, the larger the brightness value, the smaller the target power exponent, and the greater the brightness value reduction.
[0121] In one example, the preset brightness threshold may be set to 1, and the preset index value may be set to 1.
[0122] The disclosed embodiment determines the corresponding target power exponent according to the brightness value, so that the brightness value can be adjusted quickly and accurately, the contrast is effectively improved, the consistency and reliability of the adjusted brightness value are ensured, and the problem of inaccurate compensation caused by errors in brightness value determination and the like is avoided. The embodiment is suitable for more application scenarios.
[0123] In one embodiment, adjusting the brightness value of the target pixel to reduce the contrast of the target pixel includes:
[0124] When the brightness value of the target pixel point is less than a preset brightness threshold, a target power index is determined, wherein the target power index is less than a preset index value; and / or when the brightness value of the target pixel point is greater than a preset brightness threshold, a target power index is determined, wherein the target power index is greater than the preset index value;
[0125] The brightness value of the target pixel point is raised to a power according to the target power exponent to obtain an adjusted brightness value.
[0126] For example, the brightness value of a pixel can be adjusted by raising the brightness value to a power, and different power exponent values will correspond to different brightness value changes. , where I is the brightness value of the pixel, p is the target power index, is the adjusted brightness value.
[0127] Optionally, when it is necessary to lower the contrast of the target pixel, it is necessary to increase the brightness value of the target pixel. If the brightness value of the target pixel is less than a preset brightness threshold, the larger the power exponent of the power processing, the smaller the adjusted brightness value, and when the power exponent is less than the preset exponent value, the adjusted brightness value is greater than the brightness value before adjustment. At this time, the target power exponent is determined, and the target power exponent is less than the preset exponent value. Among them, the specific value of the target power exponent can be determined according to the actual application scenario. In an example, the value of the target power exponent can be associated with the brightness value of the target pixel, such as the smaller the brightness value, the smaller the target power exponent, and the greater the brightness value increase.
[0128] If the brightness value of the target pixel is greater than the preset brightness threshold, the smaller the power exponent of the power processing is, the smaller the adjusted brightness value is, and when the power exponent is greater than the preset exponent value, the adjusted brightness value is greater than the brightness value before adjustment. At this time, the target power exponent is determined, and the target power exponent is greater than the preset exponent value. Among them, the specific value of the target power exponent can be determined according to the actual application scenario. In an example, the value of the target power exponent can be associated with the brightness value of the target pixel, such as the smaller the brightness value, the larger the target power exponent, and the greater the brightness value increase.
[0129] In one example, the preset brightness threshold may be set to 1, and the preset index value may be set to 1.
[0130] The disclosed embodiment determines the corresponding target power exponent according to the brightness value, so that the brightness value can be adjusted quickly and accurately, the contrast is effectively reduced, the consistency and reliability of the adjusted brightness value are ensured, and the problem of inaccurate compensation caused by errors in brightness value determination and the like is avoided. The embodiment is suitable for more application scenarios.
[0131] In one embodiment, the adjusting the display parameters of the pixels of the display panel according to the target brightness value so that the grayscale value of the adjusted pixels matches the target brightness value includes:
[0132] For each pixel point of the intermediate image, obtaining a corresponding relationship between a grayscale value and a brightness value of the pixel point;
[0133] According to the corresponding relationship, determining the target grayscale value corresponding to the pixel point at the target brightness value;
[0134] The display parameters of the pixels of the display panel are adjusted according to the target grayscale value, so that the grayscale value of the adjusted pixels is the target grayscale value.
[0135] Exemplarily, since the brightness of a pixel is affected by many factors, the grayscale value is used as an adjustment target when adjusting the display parameters. In one example, for each pixel of the intermediate image, the corresponding relationship between its grayscale value and brightness value is determined. The corresponding relationship between the grayscale value and the brightness value may include but is not limited to a gamma curve between the grayscale value and the brightness value, and different pixels may correspond to different corresponding relationships.
[0136] Optionally, the target grayscale value corresponding to each pixel under the target brightness value is determined according to the corresponding relationship. In one example, there is a corresponding relationship between the display parameter and the grayscale value of the pixel, the compensation value is determined according to the target grayscale value, and the display parameter of the pixel is adjusted according to the compensation value so that the grayscale value of the pixel after adjustment is the target grayscale value.
[0137] In the disclosed embodiment, when adjusting the display parameters of the pixel points of the display panel, the correspondence between the grayscale value and the brightness value is obtained for each pixel point, and based on the correspondence, the target grayscale value corresponding to the pixel point under the target brightness value is determined, and the display parameters of the pixel points of the display panel are adjusted according to the target grayscale value, so that the grayscale value of the adjusted pixel point can be the target grayscale value, and the brightness value of the corresponding pixel point can be the target brightness value. Since the intermediate image is an image obtained after adjusting the brightness value of the target pixel point, the brightness value data is adjusted to a more accurate area, thereby effectively improving the accuracy of the target grayscale value and improving the brightness compensation effect of the display panel.
[0138] Figure 4 FIG. 1 is a flow chart of a method for compensating brightness of a display panel according to an exemplary embodiment. Figure 4 As shown, firstly, an image that meets the requirements is collected, for example, the camera is adjusted so that the display panel is at the target position of the field of view and the scale and other factors meet the set target, the display panel is switched to display a multi-grayscale image, and the camera obtains the corresponding grayscale grayscale image; a specific image processing algorithm is used to extract the display brightness value of the display panel; the initial image is analyzed, and the deviation of each pixel from the first brightness value is calculated, thereby obtaining the compensation value and the brightness map after preliminary compensation. In the brightness map after preliminary compensation, the abnormal brightness area at the junction of each stripe is found, that is, the target pixel point, and the brightness value of the target pixel point in the initial image is adjusted to achieve contrast stretching and other processing to obtain the intermediate image; the intermediate image is subjected to demura (brightness compensation) processing, and the deviation of each pixel from the target brightness value is calculated, thereby obtaining the final compensation value. According to the results of the image algorithm, compensation data is generated, and the display parameters of the pixel points of the display panel are adjusted using the compensation data to eliminate the brightness unevenness phenomenon.
[0139] In one example, when performing contrast stretching, the initial image can be format converted. For example, when the initial image is an 8-bit image, the original image is converted to a 32-bit floating-point image. During the conversion process, each pixel value is multiplied by 1 / 255 to map the grayscale value from the range of 0 to 255 to the range of 0 to 1. Gamma correction is applied to the converted image. Gamma correction is a nonlinear operation used to adjust the brightness and contrast of the image. In one example, the gamma value used is 0.3, which is less than 1, which means that the brightness of the image will be reduced and the contrast will be improved. After the contrast stretching process is completed, the image is converted back through a format conversion process. For example, each pixel value of the processed image is multiplied by 255 to map the grayscale value from the range of 0 to 1 back to the range of 0 to 255, and then a preset function is used to convert the 32-bit floating-point image to an 8-bit integer image to obtain an intermediate image.
[0140] In the embodiments of the present disclosure, since different pixels correspond to gamma curves of different grayscale brightness values, and different grayscale gamma curves have different sensitivities to brightness deviation, the image is adjusted by contrast stretching to reduce the error in the abnormal area and obtain a more accurate target brightness value, thereby improving the compensation effect.
[0141] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0142] Based on the same inventive concept, the embodiment of the present application also provides a display panel brightness compensation device for implementing the above-mentioned display panel brightness compensation method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiments of the brightness compensation device for one or more display panels provided below can refer to the limitations of the display panel brightness compensation method above, and will not be repeated here.
[0143] In an exemplary embodiment, Figure 5 As shown, a brightness compensation device 500 for a display panel is provided, comprising:
[0144] An acquisition module 510 is used to acquire an initial image of a display panel and determine a target pixel in the initial image, wherein the target pixel is determined according to a brightness value of a pixel in the initial image;
[0145] An adjustment module 520, configured to adjust the brightness value of the target pixel point according to a difference between the brightness value of the target pixel point and a preset brightness value, so as to obtain an intermediate image;
[0146] The determination module 530 is used to determine the target brightness value according to the brightness value of the pixel point of the intermediate image, and adjust the display parameters of the pixel point of the display panel according to the target brightness value so that the grayscale value of the adjusted pixel point matches the target brightness value.
[0147] In one embodiment, the device further comprises a module for determining the target pixel point, and the module for determining the target pixel point is used to:
[0148] Determining a first brightness value according to brightness values of pixels of the initial image;
[0149] For each pixel in the initial image, determining a first grayscale value corresponding to the first brightness value, and adjusting the grayscale value of the pixel to the first grayscale value to obtain an adjusted image;
[0150] The adjusted brightness values of the pixels of the adjusted image are obtained, and the pixels whose adjusted brightness values are outside a preset brightness range are determined as target pixels.
[0151] In one embodiment, the target pixel determination module is further configured to:
[0152] For each pixel in the adjusted image, determining the maximum value of the difference between the brightness value of the pixel and the brightness value of an adjacent pixel as the brightness difference of the pixel;
[0153] Determine the pixel point whose brightness difference is greater than the preset brightness difference as the target pixel point.
[0154] In one embodiment, the target pixel determination module is further configured to:
[0155] For each pixel in the initial image, obtaining a corresponding relationship between a grayscale value and a brightness value of the pixel;
[0156] According to the corresponding relationship, a first grayscale value corresponding to the pixel point at the first brightness value is determined.
[0157] In one embodiment, the adjustment module is further used for:
[0158] When the difference between the brightness value of the target pixel and the preset brightness value is greater than a first preset value, adjusting the brightness value of the target pixel to increase the contrast of the target pixel; and / or,
[0159] When the difference between the brightness value of the target pixel and the preset brightness value is less than a second preset value, the brightness value of the target pixel is adjusted to reduce the contrast of the target pixel.
[0160] In one embodiment, the adjustment module is further used for:
[0161] When the brightness value of the target pixel point is less than a preset brightness threshold, a target power index is determined, wherein the target power index is greater than a preset index value; and / or when the brightness value of the target pixel point is greater than a preset brightness threshold, a target power index is determined, wherein the target power index is less than a preset index value;
[0162] The brightness value of the target pixel point is raised to a power according to the target power exponent to obtain an adjusted brightness value.
[0163] In one embodiment, the adjustment module is further used for:
[0164] When the brightness value of the target pixel point is less than a preset brightness threshold, a target power index is determined, wherein the target power index is less than a preset index value; and / or when the brightness value of the target pixel point is greater than a preset brightness threshold, a target power index is determined, wherein the target power index is greater than the preset index value;
[0165] The brightness value of the target pixel point is raised to a power according to the target power exponent to obtain an adjusted brightness value.
[0166] In one embodiment, the determining module is further configured to:
[0167] For each pixel point of the intermediate image, obtaining a corresponding relationship between a grayscale value and a brightness value of the pixel point;
[0168] According to the corresponding relationship, determining the target grayscale value corresponding to the pixel point at the target brightness value;
[0169] The display parameters of the pixels of the display panel are adjusted according to the target grayscale value, so that the grayscale value of the adjusted pixels is the target grayscale value.
[0170] Each module in the brightness compensation device of the display panel can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0171] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the initial image of the display panel and other data involved in the method described in this embodiment. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a brightness compensation method for a display panel is implemented.
[0172] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0173] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0174] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0175] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0176] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0177] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0178] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0179] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A brightness compensation method for a display panel, characterized in that: The method comprises: Acquire an initial image of a display panel, and determine a target pixel point in the initial image, wherein the target pixel point is determined according to a brightness value of a pixel point in the initial image; According to the difference between the brightness value of the target pixel and the preset brightness value, the brightness value of the target pixel is adjusted to obtain an intermediate image; A target brightness value is determined according to the brightness values of the pixels of the intermediate image, and display parameters of the pixels of the display panel are adjusted according to the target brightness value so that the grayscale values of the adjusted pixels match the target brightness value.
2. The method according to claim 1, characterized in that The method for determining the target pixel point includes: Determining a first brightness value according to brightness values of pixels of the initial image; For each pixel in the initial image, determining a first grayscale value corresponding to the first brightness value, and adjusting the grayscale value of the pixel to the first grayscale value to obtain an adjusted image; The adjusted brightness values of the pixels of the adjusted image are obtained, and the pixels whose adjusted brightness values are outside a preset brightness range are determined as target pixels.
3. The method according to claim 2, characterized in that The step of determining a pixel point whose adjusted brightness value is outside a preset brightness range as a target pixel point comprises: For each pixel in the adjusted image, determining the maximum value of the difference between the brightness value of the pixel and the brightness value of an adjacent pixel as the brightness difference of the pixel; Determine the pixel point whose brightness difference is greater than the preset brightness difference as the target pixel point.
4. The method according to claim 2, characterized in that: The step of determining, for each pixel in the initial image, a first grayscale value corresponding to the first brightness value includes: For each pixel in the initial image, obtaining a corresponding relationship between a grayscale value and a brightness value of the pixel; According to the corresponding relationship, a first grayscale value corresponding to the pixel point at the first brightness value is determined.
5. The method according to claim 1, characterized in that The adjusting the brightness value of the target pixel point according to the difference between the brightness value of the target pixel point and a preset brightness value includes: When the difference between the brightness value of the target pixel and the preset brightness value is greater than a first preset value, adjusting the brightness value of the target pixel to increase the contrast of the target pixel; and / or, When the difference between the brightness value of the target pixel and the preset brightness value is less than a second preset value, the brightness value of the target pixel is adjusted to reduce the contrast of the target pixel.
6. The method according to claim 5, characterized in that The step of adjusting the brightness value of the target pixel point to increase the contrast of the target pixel point includes: When the brightness value of the target pixel point is less than a preset brightness threshold, a target power index is determined, wherein the target power index is greater than a preset index value; and / or when the brightness value of the target pixel point is greater than a preset brightness threshold, a target power index is determined, wherein the target power index is less than a preset index value; The brightness value of the target pixel point is raised to a power according to the target power exponent to obtain an adjusted brightness value.
7. The method according to claim 5, characterized in that The step of adjusting the brightness value of the target pixel point to reduce the contrast of the target pixel point includes: When the brightness value of the target pixel point is less than a preset brightness threshold, a target power index is determined, wherein the target power index is less than a preset index value; and / or when the brightness value of the target pixel point is greater than a preset brightness threshold, a target power index is determined, wherein the target power index is greater than the preset index value; The brightness value of the target pixel point is raised to a power according to the target power exponent to obtain an adjusted brightness value.
8. The method according to claim 1, characterized in that The adjusting the display parameters of the pixel points of the display panel according to the target brightness value so that the grayscale value of the adjusted pixel points matches the target brightness value includes: For each pixel point of the intermediate image, obtaining a corresponding relationship between a grayscale value and a brightness value of the pixel point; According to the corresponding relationship, determining the target grayscale value corresponding to the pixel point at the target brightness value; The display parameters of the pixels of the display panel are adjusted according to the target grayscale value, so that the grayscale value of the adjusted pixels is the target grayscale value.
9. A brightness compensation device for a display panel, characterized in that: The device comprises: An acquisition module, used to acquire an initial image of a display panel and determine a target pixel in the initial image, wherein the target pixel is determined according to a brightness value of a pixel in the initial image; An adjustment module, configured to adjust the brightness value of the target pixel point according to the difference between the brightness value of the target pixel point and a preset brightness value, so as to obtain an intermediate image; A determination module is used to determine a target brightness value according to the brightness value of the pixel points of the intermediate image, and adjust the display parameters of the pixel points of the display panel according to the target brightness value so that the grayscale value of the adjusted pixel points matches the target brightness value.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Display method and device of display panel, computer equipment, readable storage medium and program product
CN121459750A