A display panel grayscale compensation method, comprising:
- acquiring at least one set of image data corresponding to bonding point grayscale values of pixels of the display panel;
- dividing the display panel into a main display region and at least one sub-display region according to the image data and acquiring an average gamma value of each of the least one sub-display region;
- and
- determining a grayscale compensation value corresponding to the bonding point grayscale value of any one of the pixels in the at least one sub-display region based on the average gamma value of each of the least one sub-display region;
- wherein the step of acquiring at least one set of image data corresponding to bonding point grayscale values of pixels of the display panel comprises:
- determining a plurality of bonding point grayscale values of the display panel;
- acquiring a set of image data, wherein the image data comprises pixel data of each pixel based on each of the bonding point grayscale values;
- and
- determining a pixel brightness value and a pixel coordinate of the pixel data;
- wherein the step of dividing the display panel into a main display region and at least one sub-display region according to the image data and acquiring the average gamma value of each of the least one sub-display region comprises:
- determining a first brightness difference threshold value among pixels in the image data;
- and
- dividing the display panel as the main display region and the at least one sub-display region based on the first brightness difference threshold value and the pixel coordinate;
- wherein the step of dividing the display panel into a main display region and at least one sub-display region according to the image data and acquiring the average gamma value of each of the least one sub-display region further comprises:
- fitting a brightness-grayscale relationship curve based on pairs of the bonding point grayscale values and pixel brightness values of a same pixel;
- determining a gamma value of each pixel according to the brightness-grayscale relationship curve;
- and
- calculating the average gamma value of the at least one sub-display region based on the gamma value and the pixel coordinate of each pixel.