Method and apparatus for color shift enhancement of a display device

By calculating the grayscale mean and performing linear transformation on the three-channel images of the display device to generate region enhancement images, the problem of low efficiency and accuracy of color shift detection in the existing technology is solved, and high-efficiency and high-precision color shift detection is achieved.

CN117115277BActive Publication Date: 2026-07-10WUHAN JINGLI ELECTRONICS TECH +2

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WUHAN JINGLI ELECTRONICS TECH
Filing Date
2023-08-01
Publication Date
2026-07-10

Smart Images

  • Figure CN117115277B_ABST
    Figure CN117115277B_ABST
Patent Text Reader

Abstract

The application provides a color cast enhancement method and device of a display device, and belongs to the technical field of image processing. The method comprises the following steps: acquiring a three-channel image of a display area of the display device when displaying a test image, and splitting the three-channel image into three single-channel gray scale images; based on an image area division mode of the three-channel image, calculating a gray scale mean value of a gray scale sub-image corresponding to each gray scale image under a current image area, so as to determine a maximum gray scale sub-image and a minimum gray scale sub-image of the current image area; subtracting the minimum gray scale sub-image from the maximum gray scale sub-image to determine a region difference value image of the current image area; performing linear transformation on the region difference value image to generate a region enhancement image; and traversing all the image areas, and constructing a target enhancement image according to the generated region enhancement image. The application can process various color cast conditions on the display area, has high adaptability, and improves the color cast processing efficiency and precision of the display device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing technology, and in particular to a method and apparatus for enhancing color shift in a display device. Background Technology

[0002] With the rapid development of science and technology, displays have been widely used. However, in the large-scale industrial production of displays, color shift defects are prone to occur, that is, the colors of the displayed image deviate. For example, there may be an R color shift in one area of ​​the display screen, while another area shows a B color shift.

[0003] To overcome color shift defects in displays, color shift needs to be processed for color shift detection. However, existing color shift processing and detection methods struggle to adapt to various color shift conditions on displays, resulting in low efficiency and accuracy in color shift detection.

[0004] Therefore, there is an urgent need for a color deviation enhancement method for display devices that can be used for color deviation detection in display devices. Summary of the Invention

[0005] This invention provides a method and apparatus for enhancing color shift in a display device, which addresses the shortcomings of low efficiency and accuracy in color shift detection in the prior art, and achieves high-efficiency and high-precision detection of color shift in display devices.

[0006] In a first aspect, the present invention provides a method for enhancing color shift in a display device, comprising: acquiring a three-channel image of a display area of ​​the display device when displaying a test image, and splitting the three-channel image into three single-channel grayscale images; based on the image region division method of the three-channel image, calculating the grayscale mean of the grayscale sub-image corresponding to each grayscale image in the current image region, to determine the maximum grayscale sub-image and the minimum grayscale sub-image of the current image region; wherein, the maximum grayscale sub-image is the grayscale sub-image with the largest grayscale mean, and the minimum grayscale sub-image is the grayscale sub-image with the smallest grayscale mean; subtracting the minimum grayscale sub-image from the maximum grayscale sub-image to determine the region difference image of the current image region; performing a linear transformation on the region difference image so that the pixel grayscale values ​​of the region difference image are mapped to a preset value range, thereby generating a region enhancement image; traversing all image regions, and constructing a target enhancement image of the three-channel image based on the generated region enhancement image.

[0007] The present invention provides a method for enhancing color shift in a display device. After constructing a target enhancement image of the three-channel image based on the generated region enhancement image, the method further includes: performing color shift detection on the display device based on the target enhancement image to determine the color shift condition of the display device.

[0008] This invention provides a method for enhancing color shift in a display device, which acquires a three-channel image of the display area of ​​the display device when displaying a test image, comprising: controlling the display device to display the test image; the test image being a pure color image with equal values ​​in all three channels; controlling a color camera to take a picture of the display area of ​​the display device to acquire a captured image containing the display area; performing image processing on the captured image, and using the processed captured image as the three-channel image of the display area.

[0009] The present invention provides a color shift enhancement method for a display device. When the three-channel image is rectangular, the image region division method of the three-channel image includes: dividing the three-channel image into multiple rectangular regions; the length of the rectangular region is a preset length, and the width of the rectangular region is a preset width.

[0010] This invention provides a method for enhancing color shift in a display device. The method involves performing a linear transformation on a region difference image to map the pixel grayscale values ​​of the region difference image to a preset value range, thereby generating a region-enhanced image. The method includes: obtaining a first image based on the ratio of the region difference image to the minimum grayscale sub-image; performing a linear transformation on the first image to map the pixel grayscale values ​​of the region difference image to a preset value range, and using the linearly transformed first image as a second image; and enhancing the second image to generate the region-enhanced image.

[0011] This invention provides a method for enhancing color shift in a display device. The method involves enhancing a second image to generate a region-enhanced image, comprising: setting a first grayscale threshold and a second grayscale threshold; the second grayscale threshold being greater than the first grayscale threshold, and both being within a preset value range; setting the grayscale value of a first target pixel in the second image to the minimum value within the preset value range; the first target pixel being a pixel with a grayscale value less than the first grayscale threshold; and setting the grayscale value of a second target pixel in the second image to the maximum value within the preset value range; the second target pixel being a pixel with a grayscale value greater than the second grayscale threshold.

[0012] The present invention provides a method for enhancing color shift in a display device, which calculates the mean gray value of a grayscale sub-image corresponding to a grayscale image in the current image region, including: obtaining a grayscale sub-image corresponding to a grayscale image in the current image region; and calculating the average value of all grayscale values ​​based on the grayscale values ​​of all pixels in the grayscale sub-image, as the mean gray value.

[0013] The present invention provides a method for enhancing color shift in a display device, wherein the preset value range is 0 to 255.

[0014] In a second aspect, the present invention also provides a color shift enhancement device for a display device, comprising:

[0015] The first processing module is used to acquire a three-channel image of the display area of ​​the display device when displaying a test image, and to split the three-channel image into three single-channel grayscale images;

[0016] The second processing module is used to calculate the mean gray level of each gray level image in the current image region based on the image region division method of the three-channel image, so as to determine the maximum gray level sub-image and the minimum gray level sub-image of the current image region; wherein, the maximum gray level sub-image is the gray level sub-image with the largest mean gray level, and the minimum gray level sub-image is the gray level sub-image with the smallest mean gray level.

[0017] The third processing module is used to subtract the minimum grayscale sub-image from the maximum grayscale sub-image to determine the region difference image of the current image region.

[0018] The fourth processing module is used to perform a linear transformation on the region difference image, so that the pixel grayscale values ​​of the region difference image are mapped to a preset value range, and then a region enhancement image is generated.

[0019] The fifth processing module is used to traverse all image regions and construct the target enhanced image of the three-channel image based on the generated region enhanced image.

[0020] Thirdly, the present invention provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the color shift enhancement method of any of the above-described display devices.

[0021] Fourthly, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the color shift enhancement method of any of the above-described display devices.

[0022] The color shift enhancement method and apparatus for display devices provided by the present invention are based on a pre-divided image region. By calculating the grayscale mean value of different channels in the same image region, the method adaptively selects the channel with severe color shift in the three-channel image for color shift processing. It is not necessary to design different color shift processing algorithms for each color shift situation. It can be used to process multiple color shift situations in the display area on the screen, has high adaptability, and improves the color shift processing efficiency of the display device.

[0023] Furthermore, this invention enhances the image after linear transformation by applying different enhancement methods to grayscale values ​​within different ranges. For example, it extracts the minimum grayscale value of a pixel within a smaller grayscale range and the maximum grayscale value of a pixel within a larger grayscale range. By assigning values ​​to pixels within specific grayscale ranges, this invention enhances the color cast characteristics of the image, better highlighting these characteristics and enabling more accurate color cast detection. Attached Figure Description

[0024] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0025] Figure 1 This is a schematic flowchart of the color shift enhancement method for the display device provided by the present invention;

[0026] Figure 2 This is a schematic diagram of the image region division method for a three-channel image provided by the present invention;

[0027] Figure 3 This is a flowchart illustrating the method for acquiring three-channel images provided by the present invention;

[0028] Figure 4 This is a schematic diagram of the captured image provided by the present invention;

[0029] Figure 5 This is a schematic diagram of the process for generating a region-enhanced image using a region difference image, as provided by the present invention.

[0030] Figure 6 This is a schematic diagram of the process for image enhancement of a second image provided by the present invention;

[0031] Figure 7 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0032] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0033] It should be noted that, in the description of the embodiments of the present invention, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0034] The terms "first," "second," etc., used in this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more.

[0035] The following is combined with Figures 1-7 The present invention describes a method and apparatus for enhancing color shift in a display device provided in embodiments of the present invention.

[0036] Figure 1 This is a schematic flowchart of the color shift enhancement method for the display device provided by the present invention, as shown below. Figure 1 As shown, including but not limited to the following steps:

[0037] Step 101: Obtain a three-channel image of the display area of ​​the display device when displaying the test image, and split the three-channel image into three single-channel grayscale images.

[0038] The display device can be a liquid crystal display panel, and the test image can be a three-channel pure white image, that is, the channel value corresponding to each pixel in the image is (255, 255, 255); the three-channel image is an RGB color image; the three single-channel grayscale images are: the grayscale image corresponding to the R channel (which can be called the R channel grayscale image), the grayscale image corresponding to the G channel (which can be called the G channel grayscale image), and the grayscale image corresponding to the B channel (which can be called the B channel grayscale image).

[0039] Step 102: Based on the image region division method of the three-channel image, calculate the gray mean of the gray sub-image corresponding to each gray-level image in the current image region, so as to determine the maximum and minimum gray sub-images of the current image region.

[0040] As an optional embodiment, the color shift enhancement method for the display device provided by the present invention calculates the grayscale mean of a grayscale sub-image corresponding to a grayscale image in the current image region, including: obtaining a grayscale sub-image corresponding to a grayscale image in the current image region; and calculating the average value of all grayscale values ​​based on the grayscale values ​​of all pixels in the grayscale sub-image, as the grayscale mean.

[0041] It can be understood that a grayscale sub-image is the grayscale image within the current image region, that is, a grayscale sub-image is a part of the grayscale image; the maximum grayscale sub-image is the grayscale sub-image with the largest average grayscale value among the three corresponding grayscale sub-images within the current image region, and the minimum grayscale sub-image is the grayscale sub-image with the smallest average grayscale value among the three corresponding grayscale sub-images within the current image region.

[0042] As an optional embodiment, the color shift enhancement method of the display device provided by the present invention, when the three-channel image is rectangular, divides the three-channel image into image regions, including: dividing the three-channel image into multiple rectangular regions; the length of the rectangular region is a preset length, and the width of the rectangular region is a preset width.

[0043] Figure 2 This is a schematic diagram of the image region division method for a three-channel image provided by the present invention, as shown below. Figure 2 As shown, when the three-channel image of the display area is rectangular, the three-channel image is manually divided into N small rectangles with length Len and width Wid. It can be understood that each small rectangular area corresponds to a grayscale sub-image under three different channels, and then the maximum and minimum grayscale sub-images are determined by the grayscale mean of the grayscale sub-images.

[0044] The size of the image region can be set according to the actual situation, and can even be a single pixel.

[0045] Step 103: Subtract the minimum grayscale sub-image from the maximum grayscale sub-image to determine the region difference image of the current image region.

[0046] The maximum and minimum grayscale sub-images in this step are adaptively determined by calculating the grayscale mean in the previous step. By subtracting the two, a region difference image can be further generated to facilitate subsequent color cast processing.

[0047] In the field of image processing, image operations (including addition, subtraction, multiplication, and division) are existing technologies. For example, pixel regions with grayscale values ​​less than 0 after subtraction can be truncated, i.e., the grayscale value of the corresponding pixel region can be set to 0. The specific image operation process will not be elaborated here.

[0048] Step 104: Perform a linear transformation on the region difference image so that the pixel grayscale values ​​of the region difference image are mapped to a preset value range, thereby generating a region enhancement image.

[0049] The linear transformation includes, but is not limited to, performing addition, subtraction, multiplication, and division operations on the region difference image to map the pixel grayscale values ​​of the region difference image to a preset value range. Then, based on the linearly transformed region difference image, a region enhancement image can be generated.

[0050] The region enhancement image in this invention can be understood as an enhanced image with enhanced color cast features generated to facilitate the detection of color cast in the current region.

[0051] The preset value range can be from 0 to 255.

[0052] Step 105: Traverse all image regions and construct the target enhancement image of the three-channel image based on the generated region enhancement images.

[0053] By stitching together all the generated region enhancement images, a target enhancement image corresponding to the three-channel image can be generated.

[0054] The color shift enhancement method for display devices provided by this invention is based on a pre-divided image region. By calculating the grayscale mean value of different channels in the same image region, the method adaptively selects the channel with severe color shift in the three-channel image for color shift processing. It eliminates the need to design different color shift processing algorithms for each type of color shift and can be used to process various color shift conditions in the display area on the screen. It has high adaptability and improves the efficiency and accuracy of color shift processing of the display device.

[0055] Based on the above embodiments, as an optional embodiment, the color shift enhancement method for a display device provided by the present invention, after constructing a target enhancement image of the three-channel image based on the generated region enhancement image, further includes: performing color shift detection on the display device based on the target enhancement image to determine the color shift condition of the display device.

[0056] This invention can enhance the color cast of a three-channel image to generate a target enhanced image, perform color cast detection, and determine the color cast of different areas on the display area of ​​the display device.

[0057] Figure 3 This is a flowchart illustrating the method for acquiring three-channel images provided by the present invention, as shown below. Figure 3 As shown, the present invention provides a method for enhancing color shift in a display device, which acquires a three-channel image of the display area of ​​the display device when displaying a test image, including the following steps:

[0058] Step 301: Control the display device to display the test image.

[0059] The test image is a solid color image with equal values ​​in all three channels. All pixels have the same values ​​in all three channels, for example, (128, 128, 128).

[0060] Step 302: Control the color camera to take a picture of the display area of ​​the display device and obtain a captured image containing the display area.

[0061] Figure 4 This is a schematic diagram of the captured image provided by the present invention, such as... Figure 4 As shown, the captured image includes an image of the display area.

[0062] Step 303: Perform image processing on the captured image and use the processed captured image as a three-channel image of the display area.

[0063] See Figure 4 The captured image contains a region of non-interest (ROI) for this invention. To extract the RIO, image processing in this step involves feature detection and segmentation. This invention determines the RIO (i.e., the display area) in the captured image using an image feature detection algorithm, and further extracts the three-channel image of the display area through image segmentation.

[0064] Figure 5 This is a schematic diagram of the process for generating a region-enhanced image using a region difference image, as provided by the present invention. Figure 5 As shown, the present invention provides a color shift enhancement method for a display device, wherein the method involves performing a linear transformation on the region difference image so that the pixel grayscale values ​​of the region difference image are mapped to a preset value range to generate a region enhancement image, comprising the following steps:

[0065] Step 501: Obtain the first image based on the ratio of the region difference image to the minimum grayscale sub-image.

[0066] Let the region difference image be imageDif, the first image be image1, and the minimum grayscale sub-image be imageMin. Specifically, the formula for obtaining the first image is:

[0067] image1 = imageDif / imageMin.

[0068] Step 502: Perform a linear transformation on the first image so that the pixel grayscale values ​​of the region difference image are mapped to a preset range, and use the linearly transformed first image as the second image.

[0069] Specifically, for example:

[0070] image2 = image1 * k1 + k2.

[0071] Among them, k1 and k2 are preset parameters, which are constants; the preset value range can be [0, 255].

[0072] Step 503: Perform image enhancement on the second image to generate a region-enhanced image.

[0073] Figure 6 This is a schematic diagram of the process for image enhancement of a second image provided by the present invention, as shown below. Figure 6 As shown, the color shift enhancement method for a display device provided by the present invention enhances the second image to generate a region-enhanced image, including:

[0074] Step 601: Set the first grayscale threshold and the second grayscale threshold.

[0075] The second grayscale threshold is greater than the first grayscale threshold, and both are within a preset value range.

[0076] For example, if the preset value range is set to [xmin, xmax], then the first grayscale threshold can be set to x1, the second grayscale threshold to x2, and xmin... <x1<x2<xmax。

[0077] Step 602: Set the grayscale value of the first target pixel in the second image to the minimum value within the preset range.

[0078] The first target pixel is a pixel whose grayscale value is less than the first grayscale threshold.

[0079] It is understood that the present invention sets the gray value of pixels whose gray value is in the range of [xmin, x1) in the second image to xmin.

[0080] Step 603: Set the grayscale value of the second target pixel in the second image to the maximum value within the preset range;

[0081] The second target pixel is a pixel whose grayscale value is greater than the second grayscale threshold.

[0082] It is understood that the present invention sets the gray value of pixels whose gray values ​​are in the range of (x2, xmax) in the second image to xmax.

[0083] This invention enhances the image after linear transformation by applying different enhancement methods to grayscale values ​​within different ranges. For example, it extracts the minimum grayscale value of a pixel within a smaller grayscale range and the maximum grayscale value of a pixel within a larger grayscale range. By assigning values ​​to pixels within specific grayscale ranges, this invention enhances the color cast characteristics of the image, better highlighting these characteristics and enabling more accurate color cast detection.

[0084] The present invention also provides a color shift enhancement device for a display device, comprising: a first processing module, a second processing module, a third processing module, a fourth processing module and a fifth processing module.

[0085] The first processing module is used to acquire a three-channel image of the display area of ​​the display device when displaying a test image, and to split the three-channel image into three single-channel grayscale images.

[0086] The second processing module is used to calculate the mean gray level of each gray level image in the current image region based on the image region division method of the three-channel image, so as to determine the maximum gray level sub-image and the minimum gray level sub-image of the current image region; wherein, the maximum gray level sub-image is the gray level sub-image with the largest mean gray level, and the minimum gray level sub-image is the gray level sub-image with the smallest mean gray level.

[0087] The third processing module is used to subtract the minimum grayscale sub-image from the maximum grayscale sub-image to determine the region difference image of the current image region.

[0088] The fourth processing module is used to perform a linear transformation on the region difference image, so that the pixel grayscale values ​​of the region difference image are mapped to a preset value range, and then a region enhancement image is generated.

[0089] The fifth processing module is used to traverse all image regions and construct the target enhanced image of the three-channel image based on the generated region enhanced image.

[0090] It should be noted that the color shift enhancement device of the display device provided in the embodiments of the present invention can execute the color shift enhancement method of the display device described in any of the above embodiments during specific operation, and this embodiment will not elaborate on this.

[0091] Figure 7 This is a schematic diagram of the structure of the electronic device provided by the present invention, such as... Figure 7As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730, and a communication bus 740, wherein the processor 710, the communication interface 720, and the memory 730 communicate with each other through the communication bus 740. The processor 710 can call logic instructions in the memory 730 to execute a color shift enhancement method for the display device. This method includes: acquiring a three-channel image of the display area of ​​the display device when displaying a test image, and splitting the three-channel image into three single-channel grayscale images; calculating the mean grayscale value of each grayscale image's corresponding grayscale sub-image in the current image area based on the image area division method of the three-channel image, to determine the maximum and minimum grayscale sub-images of the current image area; subtracting the minimum grayscale sub-image from the maximum grayscale sub-image to determine the region difference image of the current image area; performing a linear transformation on the region difference image so that the pixel grayscale values ​​of the region difference image are mapped to a preset value range, thereby generating a region enhancement image; and traversing all image areas and constructing a target enhancement image of the three-channel image based on the generated region enhancement image.

[0092] Furthermore, the logical instructions in the aforementioned memory 730 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0093] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the color shift enhancement method for the display device provided in the above embodiments. The method includes: acquiring a three-channel image of the display area of ​​the display device when displaying a test image, and splitting the three-channel image into three single-channel grayscale images; calculating the mean grayscale value of the grayscale sub-image corresponding to each grayscale image in the current image area based on the image area division method of the three-channel image, so as to determine the maximum grayscale sub-image and the minimum grayscale sub-image of the current image area; subtracting the minimum grayscale sub-image from the maximum grayscale sub-image to determine the area difference image of the current image area; performing a linear transformation on the area difference image so that the pixel grayscale values ​​of the area difference image are mapped to a preset value range, thereby generating an area enhancement image; traversing all image areas and constructing a target enhancement image of the three-channel image based on the generated area enhancement image.

[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for enhancing color shift in a display device, characterized in that, include: Acquire a three-channel image of the display area of ​​the display device when displaying a test image, and split the three-channel image into three single-channel grayscale images; Based on the image region division method of the three-channel image, the grayscale mean of each grayscale image in the current image region is calculated to determine the maximum and minimum grayscale sub-images in the current image region; wherein, the maximum grayscale sub-image is the grayscale sub-image with the largest grayscale mean among the three grayscale sub-images in the current image region, and the minimum grayscale sub-image is the grayscale sub-image with the smallest grayscale mean among the three grayscale sub-images in the current image region. Subtract the minimum grayscale sub-image from the maximum grayscale sub-image to determine the region difference image of the current image region; A linear transformation is performed on the region difference image so that the pixel grayscale values ​​of the region difference image are mapped to a preset value range, thereby generating a region enhancement image; Traverse all image regions and construct the target enhancement image of the three-channel image based on the generated region enhancement images; The step of performing a linear transformation on the region difference image, such that the pixel grayscale values ​​of the region difference image are mapped to a preset value range, to generate a region enhancement image, includes: The first image is obtained based on the ratio of the region difference image to the minimum grayscale sub-image; The first image is linearly transformed so that the pixel grayscale values ​​of the region difference image are mapped to a preset range, and the linearly transformed first image is used as the second image. The second image is enhanced to generate a region-enhanced image.

2. The color shift enhancement method for a display device according to claim 1, characterized in that, After constructing the target augmented image of the three-channel image based on the generated region augmented image, the method further includes: Based on the target enhanced image, color shift detection is performed on the display device to determine the color shift status of the display device.

3. The color shift enhancement method for a display device according to claim 1, characterized in that, Acquire a three-channel image of the display area of ​​the display device when displaying the test image, including: The display device is controlled to display a test image; the test image is a solid color image with equal values ​​in all three channels; Control the color camera to take pictures of the display area of ​​the display device, and acquire a captured image containing the display area; The captured image is processed, and the processed captured image is used as a three-channel image of the display area.

4. The color shift enhancement method for a display device according to claim 1, characterized in that, When the three-channel image is rectangular, the image region division method of the three-channel image includes: The three-channel image is divided into multiple rectangular regions; The length of the rectangular area is a preset length, and the width of the rectangular area is a preset width.

5. The color shift enhancement method for a display device according to claim 4, characterized in that, The step of enhancing the second image to generate a region-enhanced image includes: Set a first grayscale threshold and a second grayscale threshold; the second grayscale threshold is greater than the first grayscale threshold, and both are within a preset value range; The grayscale value of the first target pixel in the second image is set to the minimum value within the preset value range; the first target pixel is a pixel whose grayscale value is less than a first grayscale threshold; and... Set the grayscale value of the second target pixel in the second image to the maximum value within the preset range; the second target pixel is a pixel whose grayscale value is greater than the second grayscale threshold.

6. The color shift enhancement method for a display device according to claim 1, characterized in that, Calculate the mean gray level of the grayscale sub-image corresponding to the current image region, including: Obtain the grayscale sub-image corresponding to the grayscale image in the current image region; The average value of all gray values ​​is calculated based on the gray values ​​of all pixels in the grayscale sub-image, and is used as the grayscale mean.

7. The color shift enhancement method for a display device according to claim 1, characterized in that, The preset value range is 0 to 255.

8. A color shift enhancement device for a display device, used to implement the color shift enhancement method according to any one of claims 1 to 7, characterized in that, include: The first processing module is used to acquire a three-channel image of the display area of ​​the display device when displaying a test image, and to split the three-channel image into three single-channel grayscale images; The second processing module is used to calculate the mean gray level of each gray level image in the current image region based on the image region division method of the three-channel image, so as to determine the maximum gray level sub-image and the minimum gray level sub-image of the current image region; wherein, the maximum gray level sub-image is the gray level sub-image with the largest mean gray level, and the minimum gray level sub-image is the gray level sub-image with the smallest mean gray level. The third processing module is used to subtract the minimum grayscale sub-image from the maximum grayscale sub-image to determine the region difference image of the current image region. The fourth processing module is used to perform a linear transformation on the region difference image, so that the pixel grayscale values ​​of the region difference image are mapped to a preset value range, and then a region enhancement image is generated. The fifth processing module is used to traverse all image regions and construct the target enhanced image of the three-channel image based on the generated region enhanced image.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the color shift enhancement method for the display device as described in any one of claims 1 to 7.