A non-transitory computer-readable storage medium having computer program instructions that, when running in one or more processors of a color temperature self-calibration system, cause the color temperature self-calibration system to perform one or more steps in a color temperature calibration method, the color temperature calibration method comprising:
- making a display screen display a test image at a target color temperature;
- measuring a chromaticity of a target pixel in the display screen to obtain measured color coordinates of the target pixel;
- comparing the measured color coordinates with standard color coordinates;
- if differences between the measured color coordinates and the standard color coordinates are greater than a target threshold, adjusting at least one of pixel values of the target pixel, until differences between re-obtained measured color coordinates and the standard color coordinates are not greater than the target threshold;
- and
- if differences between the measured color coordinates and the standard color coordinates are not greater than the target threshold, ending the color temperature calibration,
- wherein:
- the measured color coordinates include a measured coordinate in a first direction and a measured coordinate in a second direction, and the standard color coordinates includes a standard coordinate in the first direction and a standard coordinate in the second direction;
- and
- comparing the measured color coordinates with the standard color coordinates, includes:
- comparing the measured coordinate in the first direction with the standard coordinate in the first direction, and comparing the measured coordinate in the second direction with the standard coordinate in the second direction, wherein
- the differences between the measured color coordinates and the standard color coordinates being greater than the target threshold, includes that:
- a difference between the measured coordinate in the first direction and the standard coordinate in the first direction is greater than the target threshold, and a difference between the measured coordinate in the second direction and the standard coordinate in the second direction is greater than the target threshold,
- wherein:
- the target pixel includes a first sub-pixel, a second sub-pixel and a third sub-pixel of different colors;
- and
- adjusting the at least one of the pixel values of the target pixel, includes:
- adjusting at least one of a pixel value of the first sub-pixel, a pixel value of the second sub-pixel, and a pixel value of the third sub-pixel, according to which of the measured coordinate in the first direction and the standard coordinate in the first direction is greater, and which of the measured coordinate in the second direction and the standard coordinate in the second direction is greater, includes:
- determining whether the measured coordinate in the first direction is greater than the standard coordinate in the first direction, and whether the measured coordinate in the second direction is greater than the standard coordinate in the second direction;
- if it is determined that the measured coordinate in the first direction is greater than the standard coordinate in the first direction, and the measured coordinate in the second direction is greater than the standard coordinate in the second direction, keeping the pixel value of the third sub-pixel unchanged, and adjusting pixel values of the first sub-pixel and the second sub-pixel based on a first adjustment mode;
- and
- if it is determined that the measured coordinate in the first direction is not greater than the standard coordinate in the first direction, and/or the measured coordinate in the second direction is not greater than the standard coordinate in the second direction, keeping the pixel value of the first sub-pixel unchanged, and adjusting pixel values of the third sub-pixel and the second sub-pixel based on a second adjustment mode,
- wherein adjusting the pixel values of the first sub-pixel and the second sub-pixel based on the first adjustment mode includes:
- determining whether the difference between the measured coordinate in the first direction and the standard coordinate in the first direction is less than a first threshold;
- if it is determined that the difference between the measured coordinate in the first direction and the standard coordinate in the first direction is not less than the first threshold, decreasing the pixel value of the first sub-pixel, re-obtaining a measured coordinate in the first direction corresponding to the target pixel of which the pixel value of the first sub-pixel is adjusted, and determining the difference between the re-obtained measured coordinate in the first direction and the standard coordinate in the first direction, until the difference between the re-obtained measured coordinate in the first direction and the standard coordinate in the first direction is less than the first threshold;
- and
- if it is determined that the difference between the measured coordinate in the first direction and the standard coordinate in the first direction is less than the first threshold, decreasing the pixel value of the second sub-pixel, re-obtaining a measured coordinate in the second direction corresponding to the target pixel of which the pixel value of the second sub-pixel is adjusted, and determining the difference between the re-obtained measured coordinate in the second direction and the standard coordinate in the second direction, until the difference between the re-obtained measured coordinate in the second direction and the standard coordinate in the second direction is less than a second threshold.