Display device and image compensation method

By analyzing the maximum and average RGB values ​​of an image in RGB display technology, a compensation coefficient is determined to reduce color cast. This solves the color cast problem caused by the imbalance of red, green, and blue ratios in RGB display technology, improving the user's visual experience and system stability.

CN122290519APending Publication Date: 2026-06-26HISENSE VISUAL TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HISENSE VISUAL TECH CO LTD
Filing Date
2024-12-26
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

In RGB display technology, an imbalance in the proportions of red, green, and blue in an image can cause color cast. Existing compensation methods make the color cast even more noticeable, affecting the user's visual experience.

Method used

By determining the maximum and average RGB values ​​of the target region in the image, if the ratio is greater than or equal to a preset threshold, the compensation coefficients of each RGB component are determined based on a preset compensation strategy, and the image is compensated to suppress the compensation intensity of color cast while enhancing the compensation intensity of other colors.

Benefits of technology

Reduce image color cast, improve user visual experience, and enhance system stability and computational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122290519A_ABST
    Figure CN122290519A_ABST
Patent Text Reader

Abstract

This application discloses a display device and an image compensation method, relating to the field of display technology. During the process of displaying an image on a display device, for images with color cast, the image compensation method includes: analyzing the image based on the RGB component values ​​to determine the maximum and average RGB values ​​of a target area in the image; if the ratio of the maximum RGB value to the average RGB value is greater than or equal to a preset first threshold; determining the compensation coefficients for each RGB component based on a preset compensation strategy; and compensating the image to obtain a compensated target image. The image compensation method provided in this application suppresses the compensation intensity of color cast while increasing the compensation intensity of other colors, thereby reducing color cast in the image and improving the user's visual experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of display technology, and in particular to a display device and an image compensation method. Background Technology

[0002] With the development of display technology, the display screen in display devices uses backlight modules to better present images, which can refer to still images, image frames in videos, display interfaces of systems or applications, etc.

[0003] In related technologies, during image presentation, the brightness value of the backlight module is typically adjusted based on the image brightness, and the image is also compensated based on the image brightness. Since displays mainly use RGB display technology to present a rich variety of images, if the proportions of red, green, and blue in an image are unbalanced, i.e., the image has a color cast, compensation will cause the brightness of the corresponding color to increase more significantly, resulting in a more pronounced color cast and adversely affecting the user's visual experience. Summary of the Invention

[0004] This application provides a display device and an image compensation method that can suppress the compensation intensity of color cast while increasing the compensation intensity of other colors, thereby reducing the color cast of the image and improving the user's visual experience.

[0005] In a first aspect, a display device is provided, including a display screen, a backlight module, and a control unit.

[0006] The control unit is configured to perform the following steps: determine the maximum and average RGB values ​​of the target region in the image to be processed. The target region is a sub-image region obtained by dividing the image to be processed based on the backlight region. The maximum RGB value is the maximum value among the initial values ​​of the R component, G component, and B component in the target region. The average RGB value is the average value of the initial values ​​of the R component, G component, and B component in the target region. If the ratio of the maximum RGB value to the average RGB value is greater than or equal to a preset first threshold, it is determined that there is a color cast in the target region. Based on a preset compensation strategy, the compensation coefficient of each RGB component is determined. The preset compensation strategy is used to constrain the compensation coefficient of the color component corresponding to the color cast to be minimized. Based on the compensation coefficient of each RGB component, each pixel in the target region is compensated to obtain the target image corresponding to the image to be processed.

[0007] During the image presentation process on a display device, for images with color cast (uneven red, green, and blue ratios), the brightness of the backlight module is adjusted based on the image brightness. Simultaneously, the image is analyzed based on the RGB component values ​​to determine the maximum and average RGB values ​​of the target area. If the ratio of the maximum to the average RGB value is greater than or equal to a preset first threshold, compensation coefficients for each RGB component are determined based on a preset compensation strategy, and the image is compensated to obtain the compensated target image. The image compensation method provided in this application suppresses the intensity of color cast compensation while increasing the intensity of compensation for other colors, thereby reducing color cast and improving the user's visual experience.

[0008] In one possible implementation, when the control unit executes the determination of the compensation coefficient of each RGB component based on a preset compensation strategy, it is configured to: determine a preset lookup table corresponding to the maximum RGB value; and determine the compensation coefficient of each RGB component in the preset lookup table based on the ratio, wherein the preset lookup table contains the compensation coefficient of each RGB component corresponding to the ratio greater than a preset first threshold, and among the compensation coefficients of each RGB component, the compensation coefficient of the color component corresponding to the maximum RGB value is the smallest.

[0009] Determining the compensation coefficients by using a lookup table with a pre-defined lookup table can improve the computational efficiency in the image compensation process, enhance system stability, and facilitate data updates and maintenance.

[0010] In one possible implementation, before determining the maximum and average RGB values ​​of the target region in the image to be processed, the control unit is further configured to: acquire the brightness information of the target region; adjust the initial backlight brightness of the backlight region corresponding to the target region based on the brightness information to obtain the adjusted target backlight brightness; determine the compensation factor of the target region based on the relationship between the initial backlight brightness, the target backlight brightness, and the photoelectric conversion of the display screen; and compensate each pixel in the target region based on the compensation factor to obtain the compensated target region.

[0011] The compensation factors include R-component compensation factors, G-component compensation factors, and B-component compensation factors. The compensation factor for the target region is calculated using the following formula:

[0012] R_compensation=(BL1 / BL2)^(1 / θ)

[0013] G_compensation=(BL1 / BL2)^(1 / θ)

[0014] B_compensation=(BL1 / BL2)^(1 / θ)

[0015] In the formula, R_compensation is the R component compensation factor, G_compensation is the G component compensation factor, B_compensation is the B component compensation factor, BL1 is the initial backlight brightness, BL2 is the target backlight brightness, and θ is the nonlinear relationship of photoelectric conversion of the display screen.

[0016] To provide users with a better visual experience, before compensating the image using the compensation coefficient in the compensation method provided in the above embodiments, the image brightness information can be analyzed under the condition of dynamic backlight adjustment to perform a first compensation on the image so that the image observed by the user does not change significantly. Then, a second compensation can be performed according to the method in the above example.

[0017] In one possible implementation, each pixel in the target region is compensated based on the compensation coefficient of each RGB component to obtain the target image corresponding to the image to be processed. The control unit is configured to: compensate each pixel in the target region based on the compensation coefficient of each RGB component and the compensation factor of the target region to obtain the compensated target region; and construct the target image based on each compensated target region.

[0018] The compensation for each pixel in the target region is calculated using the following formula: (The formula is not provided in the original text.)

[0019] R_new_out=R_in×R_compensation×R_factor

[0020] G_new_out=G_in×G_compensation×G_factor

[0021] B_new_out=B_in×B_compensation×B_factor

[0022] In the formula, R_new_out is the value of the R component in the pixel after compensation, R_in is the value of the R component in the pixel before compensation, R_compensation is the R component compensation factor, and R_factor is the compensation coefficient of the R component; G_new_out is the value of the G component in the pixel after compensation, G_in is the value of the G component in the pixel before compensation, G_compensation is the G component compensation factor, and G_factor is the G component compensation coefficient; B_new_out is the value of the B component in the pixel after compensation, B_in is the value of the B component in the pixel before compensation, B_compensation is the B component compensation factor, and B_factor is the B component compensation coefficient.

[0023] During the image presentation process on a display device, for images with color cast, the brightness value of the backlight module is adjusted according to the image brightness to obtain a compensation factor for the first image compensation. This first adjustment is then applied to the image. Simultaneously, the image is analyzed based on the RGB component values ​​to determine the maximum and average RGB values ​​of the target area. If the ratio of the maximum to the average RGB value is greater than or equal to a preset first threshold, compensation coefficients for each RGB component are determined based on a preset compensation strategy, and a second compensation is applied to the image to obtain the compensated target image. The image compensation method provided in this application suppresses the intensity of color cast compensation while increasing the intensity of compensation for other colors, thereby reducing color cast and improving the user's visual experience.

[0024] In one possible implementation, after determining the maximum and average RGB values ​​of the target region in the image to be processed, and before determining that the image to be processed has a color cast, the control unit is further configured to: perform compensation processing on the image to be processed if the average RGB value is less than or equal to a preset second threshold; and not perform compensation processing on the image to be processed if the average RGB value is greater than the preset second threshold.

[0025] It should be understood that since the color cast problem in bright field images is weak, or rather, not easily perceived by users, only the dark field images to be processed can be processed to improve the processing efficiency of image compensation.

[0026] Secondly, an image compensation method is provided, comprising the following steps: determining the maximum RGB value and the average RGB value of a target region in the image to be processed, wherein the target region is a sub-image region obtained by dividing the image to be processed based on the backlight region, the maximum RGB value is the maximum value among the initial values ​​of the R component, G component, and B component in the target region; the average RGB value is the average value among the initial values ​​of the R component, G component, and B component in the target region; if the ratio of the maximum RGB value to the average RGB value is greater than or equal to a preset first threshold, then it is determined that there is a color cast in the target region, and based on a preset compensation strategy, the compensation coefficient of each RGB component is determined, wherein the preset compensation strategy is used to constrain the compensation coefficient of the color component corresponding to the color cast to be minimized; and compensating each pixel in the target region based on the compensation coefficient of each RGB component to obtain the target image corresponding to the image to be processed.

[0027] Thirdly, an image compensation apparatus is provided, including a unit for performing the image compensation method in the second aspect.

[0028] Fourthly, a computer-readable storage medium is provided, which stores a computer program that, when run by an image compensation device, causes the image compensation device to perform the image compensation method of the second aspect.

[0029] Fifthly, a computer program product is provided, comprising: a computer program that, when run by a display device, causes the display device to perform the image compensation method of the second aspect.

[0030] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0031] Figure 1 An exemplary diagram illustrating the presentation of a color-distorted image is shown;

[0032] Figure 2 for Figure 1 A schematic diagram of the compensated image;

[0033] Figure 3 This is a schematic diagram of the structure of the display device of this application;

[0034] Figure 4 An image compensation method in a display device is illustrated in some embodiments of this application;

[0035] Figure 5 Example diagrams showing the correspondence between the image to be processed and the backlight area in the backlight module in some embodiments of this application are shown;

[0036] Figure 6 An image compensation method in a display device is shown in some other embodiments of this application;

[0037] Figure 7 An image compensation method in a display device is shown in some other embodiments of this application;

[0038] Figure 8 An image compensation method in a display device is shown in some other embodiments of this application;

[0039] Figure 9 for Figure 1 The target image after compensation using the image compensation method provided in this application;

[0040] Figure 10 This is a schematic diagram of the image compensation device provided in the embodiments of this application. Detailed Implementation

[0041] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; "and / or" in this text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0042] Hereinafter, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include one or more of that feature.

[0043] Specific details, such as particular system architectures and techniques, are set forth for illustrative purposes and not for limitation, to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted to avoid unnecessary detail that could obscure the description of this application.

[0044] With the continuous advancement of display technology, displays in display devices achieve better visual effects through backlight modules during image presentation. Specifically, during image presentation, the brightness value of the backlight module is precisely adjusted based on the image's brightness information. Simultaneously, compensation operations are performed on the image based on its brightness information to ensure that the image is presented on the display screen in a clearer, more realistic, and color-saturated manner, providing users with a comfortable visual experience.

[0045] The images displayed on the display components refer to static images, image frames in videos, the display interface of an app, the UI interface, documents, and so on.

[0046] It should be understood that image brightness information refers to data used to describe the brightness of various parts of an image. It visually reflects the distribution of light intensity from the darkest areas (such as black areas) to the brightest areas (such as white areas or highlights) in the image. Brightness information is one of the key factors that enable display devices to accurately reproduce the visual effects of images.

[0047] In some scenarios, images are displayed in YUV format, where Y represents luminance information, i.e., the black and white parts of the image. This encoding method processes luminance and chrominance information separately, and its advantage is that it can reduce the amount of data without sacrificing too much visual quality. For example, in video transmission, the chrominance part, which is less sensitive to the human eye, can be transmitted at a lower resolution, thus saving bandwidth. After receiving a YUV format video signal, it is first converted to RGB format before display.

[0048] Currently, displays primarily use RGB display technology to present a rich variety of images. Each pixel in an image can be physically considered as being composed of three sub-pixels: red, green, and blue. Various colors are produced by controlling the intensity combinations of these three colors. For example, mixing red, green, and blue with the same intensity yields white.

[0049] If the proportions of red, green, and blue in an image are similar, there will be no color cast problem after compensating the image based on the brightness information. However, if the proportions of red, green, and blue in an image are unbalanced, compensating the image based on the brightness information will cause the brightness of the color with the higher proportion to increase more significantly, resulting in a more obvious color cast and adversely affecting the user's visual experience.

[0050] Figure 1 An exemplary diagram illustrating the presentation of a color-distorted image is shown. Figure 2 for Figure 1 A schematic diagram of the compensated image.

[0051] like Figure 1 As shown, this image is the original image, a frame from a video. The image has a color cast in the green component. After compensation using the image's brightness information, the compensated image is obtained, as shown below. Figure 2 As shown, the green tint is more pronounced in the compensated image, affecting the display effect.

[0052] In view of this, embodiments of this application provide a display device and an image compensation method. During the display process of presenting an image, for images with color cast, the image compensation method includes: analyzing the image based on the RGB component values ​​to determine the maximum and average RGB values ​​of a target region in the image; if the ratio of the maximum RGB value to the average RGB value is greater than or equal to a preset first threshold; determining the compensation coefficient for each RGB component based on a preset compensation strategy; and compensating the image to obtain a compensated target image. The image compensation method provided in this application suppresses the compensation intensity of color cast while increasing the compensation intensity of other colors, thereby reducing color cast in the image and improving the user's visual experience.

[0053] The display device provided in this application can have various implementation forms, such as a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc.

[0054] It should be understood that the display device in the embodiments of this application includes at least a display screen, a backlight module, and a control unit.

[0055] A display screen can be a liquid crystal panel, which consists of a layer of liquid crystal molecules and electrodes that control the alignment of the liquid crystal molecules. A liquid crystal panel displays images by controlling the transmission and blocking of light.

[0056] The backlight module, located behind the LCD panel, provides light. The backlight module can be an LED light source, a miniLED light source, etc., providing higher brightness and better color performance.

[0057] It should be understood that the brightness and uniformity of the backlight module affect the image quality of the displayed image. High-brightness and uniform backlighting can make the displayed image brighter, the colors more vibrant, and the contrast higher, thus ensuring good visibility in various environments. Furthermore, by adjusting the brightness, color, and other parameters of the light source in the backlight module, a more comfortable visual experience can be provided to the user.

[0058] Backlight zoning divides the backlight module into multiple independent areas, forming multiple backlight zones. It can precisely control the brightness of each backlight zone based on the brightness information of the presented image, thereby effectively improving the user's visual experience and bringing them a better visual experience.

[0059] The control unit includes one or more controllers that control the operation of the display screen and respond to user operations, as well as control the operation of the backlight module, through various software control programs stored in the memory.

[0060] In some embodiments, the display device includes a display screen, a backlight module, an image processing unit, a panel driving unit, and a backlight driving unit. Figure 3 This is a schematic diagram of the structure of the display device of this application, as shown below. Figure 3 As shown, the system includes an image processing unit 100, a panel driving unit 200, a backlight driving unit 300, a display screen 410, and a backlight module 420; wherein, the panel driving unit 200 is connected to the image processing unit 100 and the display screen 410 respectively; and the backlight driving unit 300 is connected to the image processing unit 100 and the backlight module 420 respectively.

[0061] In some embodiments, the panel driving unit and the backlight driving unit interact, but this application does not limit this.

[0062] It should be noted that, Figure 3 The connections between the units shown are merely illustrative and do not constitute a limitation on the connections between the units in the display device. In other embodiments of this application, the display device may include... Figure 3 The number of components shown may be more or less, or the display device may include... Figure 3 The components shown may be a combination of certain components, or the display device may include... Figure 3 Sub-components of some of the components shown. Figure 3 The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0063] To facilitate a further understanding of the technical solutions in some embodiments of this application, the technical solutions of the display device and image compensation method, and how these solutions solve the aforementioned technical problems, are described in detail below with reference to specific embodiments and accompanying drawings. The embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of this application.

[0064] The display device includes a display screen, a backlight module, and a control unit, with the control unit connected to the display screen and the backlight module. Figure 4 An image compensation method in a display device is illustrated in some embodiments of this application, such as... Figure 4 As shown, the control unit is configured to perform the following steps:

[0065] S510. Divide the image to be processed based on the backlight area to obtain the target area.

[0066] It should be understood that the image to be processed is the image to be displayed on the display device. The image to be processed may be a system interface in the display device, various display interfaces of an application, a frame of an image in a video, a still image, a settings page, a picture captured by a camera in the display device, a game interface, an operation feedback page, etc. This application embodiment does not limit this.

[0067] The target region is the sub-region obtained after partitioning the image to be processed. It should be understood that the image partitioning can be based on the size of the image to be processed, the display content of the image to be processed, or the corresponding backlight area.

[0068] The backlight area is a series of independent regions that are divided into the backlight module using backlight partitioning technology. The target area is a sub-image region obtained by dividing the image to be processed based on the backlight area. The target area can correspond one-to-one with the backlight area or correspond to multiple backlight areas.

[0069] If a target area can also correspond to multiple backlight areas, the number of sub-image areas in the image to be processed can be reduced, thereby improving the efficiency of image compensation.

[0070] Figure 5 Example diagrams showing the correspondence between the image to be processed and the backlight area in the backlight module in some embodiments of this application are shown, such as... Figure 5 As shown in (b), this is the backlight area in the backlight module, as follows: Figure 5 As shown in (a), the image to be processed is divided into multiple sub-image regions to form multiple target regions 10.

[0071] S520. Determine the initial values ​​of the R component, G component, and B component of the target region.

[0072] It should be understood that in RGB color mode, an image is composed of many pixels, each of which has values ​​for three color components: red (R), green (G), and blue (B). Various colors are produced by mixing red, green, and blue colors with different intensities.

[0073] Taking a common 8-bit color depth as an example, the value of each color component ranges from 0 to 255. When the values ​​of the red (R), green (G), and blue (B) components are all 0, the pixel is displayed as black; when the values ​​of all three color components are 255, the pixel is displayed as white. If R = 255, G = 0, and B = 0, then the pixel is displayed as pure red; similarly, R = 0, G = 255, and B = 0 displays as pure green, and R = 0, G = 0, and B = 255 displays as pure blue.

[0074] It should be understood that the target area includes multiple pixels; among them, the initial value of the red component (i.e., the R component) can refer to the R component value corresponding to each pixel in the target area, the initial value of the green component (i.e., the G component) can refer to the G component value corresponding to each pixel in the target area, and the initial value of the blue component (i.e., the B component) can refer to the B component value corresponding to each pixel in the target area.

[0075] In some embodiments, to improve the efficiency of data processing during subsequent compensation, the initial value of the R component can be the mean of the R components of all pixels in the target region, the initial value of the G component can be the mean of the G components of all pixels in the target region, and the initial value of the B component can be the mean of the B components of all pixels in the target region. Specifically, this involves traversing every pixel in the target region, accumulating the red component values ​​of all pixels, and then dividing by the total number of pixels in the target region to obtain the mean of the R component. The mean values ​​of the G component and the mean value of the B component are obtained in the same way.

[0076] S530, Determine the maximum and average RGB values ​​for the target area.

[0077] Among them, the maximum value of RGB is the maximum value among the initial values ​​of R component, G component and B component in the target area; the average value of RGB is the average value of the initial values ​​of R component, G component and B component in the target area.

[0078] For ease of description, in the following embodiments, the initial value of the R component is the mean of the R components of all pixels in the target region, the initial value of the G component is the mean of the G components of all pixels in the target region, and the initial value of the B component is the mean of the B components of all pixels in the target region. Furthermore, the maximum RGB value is the maximum of the mean values ​​of the R components, G components, and B components of all pixels in the target region, denoted as MAX. The average RGB value can be calculated using the following formula:

[0079] AVE = (Rin + Gin + Bin) / 3

[0080] In the formula, AVE is the RGB average value, Rin is the average value of the R components of all pixels, Gin is the average value of the R components of all pixels, and Bin is the average value of the R components of all pixels.

[0081] S540. If the ratio of the maximum RGB value to the average RGB value is greater than or equal to a preset first threshold, then it is determined that there is a color cast in the target area.

[0082] A preset first threshold is used to determine whether there is color cast in the target area.

[0083] In the scenario where the initial value of the R component is the mean of the R components of all pixels in the target region, the initial value of the G component is the mean of the G components of all pixels in the target region, and the initial value of the B component is the mean of the B components of all pixels in the target region, the ratio of the maximum RGB value to the average RGB value ranges from [1, 3].

[0084] It should be understood that if the target area's MAX = AVE, then MAX / AVE = 1; if there are two color components in the target area with a value of 0, then the corresponding MAX / AVE = 3. For example, if Gin = Bin = 0, then MAX / AVE = Rin / (Rin / 3) = 3.

[0085] At this time, the preset first threshold is a value between [1, 3]. For example, the preset first threshold can be set to 2. That is, if MAX / AVE≥2, it is determined that there is a color cast in the target area.

[0086] It should be noted that if the initial value of the R component refers to the R component value corresponding to each pixel in the target area, the initial value of the G component refers to the G component value corresponding to each pixel in the target area, and the initial value of the B component refers to the B component value corresponding to each pixel in the target area, the range of the ratio of the maximum RGB value to the average RGB value will increase. In this case, the ratio of the maximum RGB value to the average RGB value can also be analyzed by setting a first threshold, thereby determining whether there is a color cast in the target area.

[0087] S550: Based on a preset compensation strategy, determine the compensation coefficients for each RGB component in the target area.

[0088] Among them, the preset compensation strategy is used to constrain the compensation coefficient of the color component corresponding to the color deviation to be the minimum.

[0089] It should be noted that in this embodiment, the compensation coefficients of each RGB component in the target area can be determined by preset compensation strategies such as calculation model method and table lookup method.

[0090] The computational model method involves inputting one or more data points, such as the maximum RGB value, the average RGB value, and the ratio of the maximum RGB value to the average RGB value, into a preset model to obtain the compensation coefficients for each RGB component in the target area. The preset model can be a mathematical model or a neural network model.

[0091] It should be understood that the compensation coefficients for each RGB component include the compensation coefficients for the R component, G component, and B component, and the compensation coefficients for each RGB component are different, and at least one of the RGB components has a different compensation coefficient; for example, the compensation coefficient for the R component is 1.5, the compensation coefficient for the G component is 1.6, and the compensation coefficient for the B component is 1.1; or, for another example, the compensation coefficient for the R component is 1.6, the compensation coefficient for the G component is 1.6, and the compensation coefficient for the B component is 1.1.

[0092] The lookup table method can be implemented using a pre-set lookup table, which improves computational efficiency, enhances system stability, and facilitates data updates and maintenance during image compensation. It should be understood that three tables are pre-stored: an R-component color cast lookup table, a G-component color cast lookup table, and a B-component color cast lookup table. Specifically, the corresponding pre-set lookup table is determined based on the maximum RGB values, where the pre-set lookup table is one of the R-component, G-component, and B-component color cast lookup tables. Furthermore, the compensation coefficients for each RGB component corresponding to the target region are determined from the corresponding pre-set lookup table using the ratio of the maximum RGB value to the average RGB value.

[0093] For example, if Rin=20, Gin=200, and Bin=30 in the target area, the corresponding MAX=Gin=200 means that the target area has a color cast of green component.

[0094] Furthermore, the compensation coefficient of each RGB component is determined from the color cast lookup table corresponding to the G component of the color cast by the ratio of the maximum RGB value to the average RGB value. The preset lookup table contains the compensation coefficients of each RGB component corresponding to the ratio greater than the preset first threshold, and among the compensation coefficients of each RGB component, the compensation coefficient of the green component corresponding to the maximum RGB value is the smallest.

[0095] For the example above, the target area has a green component color cast. The corresponding preset lookup table is the G component color cast lookup table, as shown in Table 1 below, which is one type of G component color cast lookup table:

[0096] Table 1. Lookup table for color distortion of the G component.

[0097] MAX / AVE 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.9 Compensation coefficient for R component 1.4 1.5 1.5 1.6 1.7 1.7 1.8 1.9 1.9 Compensation coefficient of G component 1.1 1.0 1.0 0.9 0.9 0.9 0.8 0.8 0.7 Compensation coefficient for component B 1.4 1.5 1.5 1.6 1.7 1.7 1.8 1.9 1.9

[0098] If the ratio of the maximum RGB value to the average RGB value MAX / AVE = 2.4, the compensation coefficients for each RGB component in the target area are determined as follows: the compensation coefficient for the R component is 1.7, the compensation coefficient for the G component is 0.9, and the compensation coefficient for the B component is 1.7.

[0099] It should be noted that in this implementation, the visual effect of the image can be improved by increasing the compensation coefficient of each RGB component, such as by increasing the compensation system of each RGB component under the condition of each ratio in the preset lookup table.

[0100] S560. Based on the compensation coefficients of each RGB component, each pixel in the target region is compensated to obtain the target image corresponding to the image to be processed.

[0101] For each target region, each pixel is compensated according to the compensation coefficients of each RGB component determined in the above steps to obtain the compensated target region. Furthermore, the compensated target regions constitute the target image, which is the compensated image of the image to be processed.

[0102] It should be noted that the compensation for each target area can be processed in parallel or serially, and the processing method is determined according to the performance of the display device and the display screen. This application embodiment does not limit its processing flow.

[0103] During the image presentation process on a display device, for images with color cast (uneven red, green, and blue ratios), the brightness of the backlight module is adjusted based on the image brightness. Simultaneously, the image is analyzed based on the RGB component values ​​to determine the maximum and average RGB values ​​of the target area. If the ratio of the maximum to the average RGB value is greater than or equal to a preset first threshold, compensation coefficients for each RGB component are determined based on a preset compensation strategy, and the image is compensated to obtain the compensated target image. The image compensation method provided in this application suppresses the intensity of color cast compensation while increasing the intensity of compensation for other colors, thereby reducing color cast and improving the user's visual experience.

[0104] In some possible implementations, to provide users with a better visual experience, the image can be adjusted once before the image is compensated by the compensation coefficient in the compensation method provided in the above embodiments, under the condition of dynamic backlight adjustment. Figure 6 This application illustrates an image compensation method in a display device according to other embodiments, which adds fine-tuning to the image before determining the maximum and average RGB values ​​of a target region in the image to be processed, such as... Figure 6 As shown, the control unit is configured to perform the following steps:

[0105] S610. Divide the image to be processed based on the backlight area to obtain the target area.

[0106] S620. Determine the initial values ​​of the R component, G component, and B component of the target area, as well as the brightness information of the target area.

[0107] It should be understood that the brightness information of the target area is used to adjust the brightness value of the corresponding backlight area.

[0108] S630. Adjust the initial backlight brightness of the backlight area corresponding to the target area based on the brightness information to obtain the adjusted target backlight brightness.

[0109] The brightness value of the backlight area changes dynamically. In the unadjusted state, the brightness value of the backlight area can be set to the maximum value. After dynamic dimming, the brightness value of the backlight area will change. If the brightness information of the target area is small, the brightness value of the corresponding backlight area will also be small; if the brightness information of the target area is large, the brightness value of the corresponding backlight area will also be large.

[0110] To prevent the image observed by the user from changing significantly, the image itself needs to be adjusted. This involves adjusting the image to be processed after backlight adjustment, specifically adjusting the target area within the image to be processed.

[0111] S640. Based on the relationship between the initial backlight brightness, the target backlight brightness, and the photoelectric conversion of the display screen, determine the compensation factor for the target area.

[0112] The compensation factor for the corresponding pixel is determined by the relationship between the initial backlight brightness, the target backlight brightness, and the photoelectric conversion of the display screen, so as to adjust the target area.

[0113] For example, before backlight adjustment, the brightness value of the backlit area corresponding to the target area is BL1, and the RGB component values ​​of pixel M in the target area are R1, G1, and B1, respectively; after backlight adjustment, the brightness value of the backlit area corresponding to the target area is BL2; to ensure that the image observed by the user does not change significantly, the RGB component values ​​of pixel M are adjusted to R2, G2, and B2. Taking the red component of a pixel in an 8-bit color depth image as an example, the following formula is satisfied before and after backlight adjustment:

[0114] BL1×(R1 / 255)^θ=BL2×(R2 / 255)^θ

[0115] In the formula, θ represents the nonlinear relationship of photoelectric conversion of the display screen.

[0116] Transforming the above formula, we get: BL1 / BL2=(R2 / R1)^θ. Where BL1, BL2, and R1 are known data, and R2 is unknown data; therefore, transforming it again, we get: R2 / R1=(BL1 / BL2)^(1 / θ).

[0117] That is, the compensation factor: R_compensation=(BL1 / BL2)^(1 / θ).

[0118] The compensation factor includes the R component compensation factor, the G component compensation factor, and the B component compensation factor. The compensation factor for the target region is calculated using the following formula:

[0119] R_compensation=(BL1 / BL2)^(1 / θ)

[0120] G_compensation=(BL1 / BL2)^(1 / θ)

[0121] B_compensation=(BL1 / BL2)^(1 / θ)

[0122] In the formula, R_compensation is the R component compensation factor, G_compensation is the G component compensation factor, B_compensation is the B component compensation factor, BL1 is the initial backlight brightness, BL2 is the target backlight brightness, and θ is the nonlinear relationship of photoelectric conversion of the display screen.

[0123] S650. Based on the compensation factor of the target region, perform the first compensation on each pixel in the target region to obtain the intermediate unit.

[0124] The intermediate unit is the target area after the first compensation.

[0125] For each pixel in the target area, the first compensation is performed using the following formula:

[0126] R_out = R_in × R_compensation

[0127] g_out = G_in × G_compensation

[0128] B_out = B_in × B_compensation

[0129] In the formula, R_out is the value of the R component in the pixel after the first compensation, R_in is the value of the R component in the pixel before compensation, and R_compensation is the R component compensation factor; G_out is the value of the G component in the pixel after the first compensation, G_in is the value of the G component in the pixel before compensation, and G_compensation is the G component compensation factor; B_out is the value of the B component in the pixel after the first compensation, B_in is the value of the B component in the pixel before compensation, and B_compensation is the B component compensation factor.

[0130] S660, Determine the maximum and average RGB values ​​for the target area.

[0131] S670. If the ratio of the maximum RGB value to the average RGB value is greater than or equal to a preset first threshold, then it is determined that there is a color cast in the target area.

[0132] S680: Based on a preset compensation strategy, determine the compensation coefficients for each RGB component in the target area.

[0133] Among them, the preset compensation strategy is used to constrain the compensation coefficient of the color component corresponding to the color deviation to be the minimum.

[0134] It should be noted that in this embodiment, the compensation coefficients of each RGB component in the target area can be determined by preset compensation strategies such as calculation model method and table lookup method.

[0135] Taking the lookup table method as an example, since the pixels in the target area have already been compensated once in steps 630 to 650, in this embodiment, the compensation coefficients of each RGB component can be adjusted accordingly, such as reducing the compensation system of each RGB component under the condition of each ratio in the preset lookup table, so as to achieve a better visual effect.

[0136] For example, if Rin=20, Gin=200, and Bin=30 in the target area, the corresponding MAX=Gin=200 means that the target area has a color cast of green component.

[0137] Furthermore, the compensation coefficient of each RGB component is determined from the color cast lookup table of the G component corresponding to the color cast by using the ratio of the maximum RGB value to the average RGB value. According to the color cast lookup table of the G component, among the compensation coefficients of each RGB component corresponding to the ratio, the compensation coefficient of the green component corresponding to the maximum RGB value is the smallest.

[0138] For the example above, the target area has a green component color cast. The corresponding preset lookup table is the G component color cast lookup table, as shown in Table 2 below, which is another type of G component color cast lookup table:

[0139] Table 2. Another type of G-component color deviation lookup table

[0140] MAX / AVE 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.9 Compensation coefficient for R component 1.2 1.3 1.3 1.4 1.5 1.5 1.6 1.7 1.8 Compensation coefficient of G component 0.9 0.9 0.8 0.8 0.7 0.7 0.6 0.6 0.5 Compensation coefficient for component B 1.2 1.3 1.3 1.4 1.5 1.5 1.6 1.7 1.8

[0141] If the ratio of the maximum RGB value to the average RGB value MAX / AVE = 2.4, the compensation coefficients for each RGB component in the target area are determined as follows: the compensation coefficient for the R component is 1.5, the compensation coefficient for the G component is 0.7, and the compensation coefficient for the B component is 1.5.

[0142] It should be understood that at this point, the system also pre-stores R-component color cast lookup tables and B-component color cast lookup tables. For example, Table 3 below shows one type of R-component color cast lookup table, and Table 4 shows one type of B-component color cast lookup table:

[0143] Table 3. A lookup table for color deviation of the R component.

[0144] MAX / AVE 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.9 Compensation coefficient for R component 0.9 0.9 0.8 0.8 0.8 0.7 0.7 0.6 0.5 Compensation coefficient of G component 1.2 1.3 1.3 1.4 1.4 1.5 1.5 1.6 1.8 Compensation coefficient for component B 1.2 1.3 1.3 1.4 1.4 1.5 1.5 1.6 1.8

[0145] Table 4. Lookup table for color deviation of B component

[0146] MAX / AVE 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.9 Compensation coefficient for R component 1.2 1.3 1.3 1.4 1.4 1.5 1.5 1.6 1.8 Compensation coefficient of G component 1.2 1.3 1.3 1.4 1.4 1.5 1.5 1.6 1.8 Compensation coefficient for component B 0.9 0.9 0.8 0.8 0.8 0.7 0.7 0.6 0.5

[0147] It should be understood that in the preset lookup table, the compensation coefficient for the component corresponding to color cast is different from the compensation coefficient for other components.

[0148] S690. Based on the compensation coefficients of each RGB component, perform a second compensation on each pixel in the intermediate unit to obtain the target image corresponding to the image to be processed.

[0149] The intermediate unit is compensated a second time based on the compensation coefficients of each RGB component to obtain the target unit; and the target unit constitutes the target image.

[0150] For each pixel in the intermediate unit, a second compensation is performed using the following formula:

[0151] R_new_out = R_out × R_factor

[0152] G_new_out = G_out × G_factor

[0153] B_new_out = B_out × B_factor

[0154] In the formula, R_new_out is the value of the R component in the pixel after the second compensation, R_out is the value of the R component in the pixel after the first compensation, and R_factor is the compensation coefficient of the R component; G_new_out is the value of the G component in the pixel after the second compensation, G_out is the value of the G component in the pixel after the first compensation, and G_factor is the compensation coefficient of the G component; B_new_out is the value of the B component in the pixel after the second compensation, B_out is the value of the B component in the pixel after the first compensation, and B_factor is the compensation coefficient of the B component.

[0155] For details on the implementation of steps 610, 660 to 680, please refer to the detailed description of steps 510, 530 to 550 above, which will not be repeated here.

[0156] During the image presentation process on a display device, for images with color cast (uneven red, green, and blue ratios), the brightness of the backlight module is adjusted based on the image brightness to obtain a compensation factor for the first adjustment. Simultaneously, the image is analyzed based on the RGB component values ​​to determine the maximum and average RGB values ​​of the target area. If the ratio of the maximum to the average RGB value is greater than or equal to a preset first threshold, compensation coefficients for each RGB component are determined based on a preset compensation strategy, and a second compensation is performed to obtain the compensated target image. The image compensation method provided in this application suppresses the intensity of color cast compensation while increasing the intensity of compensation for other colors, thereby reducing color cast and improving the user's visual experience.

[0157] In some embodiments, the first compensation and the second compensation in the above steps can be combined to improve the efficiency of image compensation processing. Figure 7 An image compensation method in a display device is shown in other embodiments of this application, such as Figure 7 As shown, for Figure 6The steps shown involve obtaining the compensation factor for the target region after step 620, via steps 630 and 640, and obtaining the compensation coefficient for the target region via steps 660 to 680. After determining the compensation factor and compensation coefficient, the pixels in the target region are directly compensated. Specifically, after steps 640 and 680, the following steps are performed:

[0158] S710: Based on the compensation coefficients of each RGB component and the compensation factor of the target area, each pixel in the target area is compensated to obtain the compensated target area.

[0159] The calculation is performed using the following formula:

[0160] R_new_out=R_in×R_compensation×R_factor

[0161] G_new_out=G_in×G_compensation×G_factor

[0162] B_new_out=B_in×B_compensation×B_factor

[0163] In the formula, R_new_out is the value of the R component in the pixel after compensation, R_in is the value of the R component in the pixel before compensation, R_compensation is the R component compensation factor, and R_factor is the compensation coefficient of the R component; G_new_out is the value of the G component in the pixel after compensation, G_in is the value of the G component in the pixel before compensation, G_compensation is the G component compensation factor, and G_factor is the G component compensation coefficient; B_new_out is the value of the B component in the pixel after compensation, B_in is the value of the B component in the pixel before compensation, B_compensation is the B component compensation factor, and B_factor is the B component compensation coefficient.

[0164] S720, construct the target image based on each compensated target region.

[0165] It should be understood that the target image is the compensated version of the image to be processed.

[0166] For details on the implementation of steps 610 to 640 and steps 660 to 680, please refer to the detailed description in the above example; it will not be repeated here.

[0167] In scenarios where display devices present images, there are dark-field images and bright-field images. A dark-field image refers to a situation where the main subject is relatively bright, but the background is dark or has very low brightness; a bright-field image refers to a situation where both the main subject and the background are displayed at normal brightness. For example... Figure 1 As shown, the image is a dark field image. Since the color cast problem in bright field images is weak, or rather, not easily noticed by users, in some embodiments, only the dark field images to be processed can be processed to improve the processing efficiency of image compensation.

[0168] In the example above, after determining the maximum and average RGB values ​​of the target region in the image to be processed, and before determining that the image to be processed has a color cast, the control unit is also configured to determine whether the target region is a dark-field image. Figure 8 An image compensation method in a display device is shown in other embodiments of this application, such as Figure 8 As shown, with Figure 6 In the aforementioned embodiment, after determining the maximum and average RGB values ​​of the target region in the image to be processed, and before determining that the image to be processed has a color cast, the control unit is further configured to perform the following steps:

[0169] S810. If the RGB average value is less than or equal to the preset second threshold, perform compensation processing on the image to be processed.

[0170] In other words, if the average RGB value is less than or equal to a preset second threshold, then proceed with steps 670 to 690.

[0171] S820. If the average RGB value is greater than the preset second threshold, no compensation processing will be performed on the image to be processed.

[0172] In other words, if the average RGB value is greater than the preset second threshold, subsequent steps 670 to 690 will not be executed; at this point, the next target region can be switched for analysis.

[0173] For example, taking the common 8-bit color depth as an example, the value range of each color component is 0-255, and the range of the corresponding RGB average value is also [0, 255]. If the preset second threshold is 25, that is, if the RGB average value is less than or equal to 25, the corresponding target area is a dark field image, and if the RGB average value is greater than 25, the corresponding target area is not a dark field image.

[0174] It should be noted that the preset second threshold can be 20, 22, 23, 24, 25, 27, 30, etc. The preset second threshold is used to distinguish whether an image belongs to a dark field image.

[0175] Taking a preset second threshold of 25 as an example, in the target area of ​​the above example, Rin = 20, Gin = 200, and Bin = 30. At this time, the average RGB value AVE = (Rin + Gin + Bin) / 3 = 250 / 3 > 25, that is, the target area is not a dark field image and does not need to be compensated.

[0176] For example, if Rin = 50, Gin = 5, and Bin = 5 in the target area, we can obtain the maximum RGB value MAX = Rin = 50 and the average RGB value AVE = 20 for the target area. Using the above method, we can see that the average RGB value AVE = 20 < 25, indicating that the target area belongs to a dark field image.

[0177] Furthermore, by using the ratio of the maximum RGB value to the average RGB value MAX / AVE = 50 / 20 = 2.5 ≥ 2, it is determined that there is a color cast in the target area. At the same time, by using the maximum RGB value, it can be known that there is a color cast in the red component of the target area.

[0178] Then, the corresponding compensation coefficients are determined through Table 3, where the compensation coefficient for the R component is 0.7, the compensation coefficient for the G component is 1.5, and the compensation coefficient for the B component is 1.5.

[0179] It can be seen that if the R component of the pixel is 35, the G component is 8, and the B component is 8, obtained through the compensation coefficient; or if the R component of the pixel is 35×R_compensation, the G component is 8×R_compensation, and the B component is 8×R_compensation, obtained through the compensation coefficient and compensation factor.

[0180] for Figure 1 The image shown is a dark image with a green cast. After processing by the image compensation method provided in this application embodiment, the resulting target image is as follows: Figure 9 As shown.

[0181] Compare Figure 2 and Figure 9 The image compensation method provided in this application embodiment can reduce the compensation of color cast components and adapt to increase the compensation of other components, thereby reducing the color cast of the image in the overall visual effect and improving the user's visual experience.

[0182] for Figure 1 Taking two pixels in the image as an example for analysis, namely pixel X and pixel Y, the corresponding RGB component values ​​of pixel X and pixel Y in the original image, after image compensation by related techniques, and after image compensation provided by the implementation of this application are shown in Table 5 below:

[0183] Table 5 Examples of pixel X and pixel Y in images

[0184] Pixel X Original image Related technologies: image compensation Image compensation provided in the embodiments of this application R 1 2 3 G 8 16 12 B 2 4 6 Pixel Y Original image Related technologies: image compensation Image compensation provided in the embodiments of this application R 1 2 3 G 4 8 6 B 1 2 3

[0185] This application embodiment considers the information corresponding to each color component in the image and compensates for the three colors of red, green and blue respectively. For dark-field color-shifted images, it suppresses the compensation intensity of the color shift while increasing the compensation intensity of other colors to ensure brightness consistency.

[0186] It should be noted that in the embodiments of this application, "greater than" can be replaced with "greater than or equal to", "less than or equal to" can be replaced with "less than", or "greater than or equal to" can be replaced with "greater than", and "less than" can be replaced with "less than or equal to".

[0187] It should be understood that the sequence numbers of the processes in the above embodiments do not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The various embodiments described herein can be independent solutions or combinations based on internal logic, and all such solutions fall within the protection scope of this application.

[0188] It should also be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0189] The above text combined Figures 4 to 9 This application describes in detail the image compensation method in the display device according to the embodiments of this application. The following will be combined with... Figure 10 This document describes in detail the device embodiments of this application. It should be understood that the image compensation device in the embodiments of this application can perform various image compensation methods described in the foregoing embodiments of this application. That is, the specific working processes of the various products described below can be referred to the corresponding processes in the foregoing method embodiments.

[0190] Figure 10 This is a schematic diagram of an image compensation device provided in an embodiment of this application. It should be understood that the image compensation device 900 can perform... Figures 4 to 9 The image compensation method shown; the image compensation device 900 includes a data analysis unit 910, a data compensation unit 920, and an execution unit 930, wherein:

[0191] The data analysis unit 910 is used to determine the maximum and average RGB values ​​of the target region in the image to be processed. The target region is a sub-image region obtained by dividing the image to be processed based on the backlight region. The maximum RGB value is the maximum value among the initial values ​​of the R component, G component, and B component in the target region. The average RGB value is the average value of the initial values ​​of the R component, G component, and B component in the target region.

[0192] The data compensation unit 920 is used to determine that there is a color cast in the target area if the ratio of the maximum RGB value to the average RGB value is greater than or equal to a preset first threshold. It is also used to determine the compensation coefficient of each RGB component based on a preset compensation strategy. The preset compensation strategy is used to constrain the compensation coefficient of the color component corresponding to the color cast to be the minimum.

[0193] The execution unit 930 is used to compensate each pixel in the target region based on the compensation coefficient of each RGB component to obtain the target image corresponding to the image to be processed.

[0194] Each unit module of the image compensation device 900 can execute the corresponding steps in the above method embodiment, so the details of each unit module will not be elaborated here. Please refer to the description of the corresponding steps above for details.

[0195] It should be noted that the image compensation device 900 described above is embodied in the form of a functional unit. The term "unit" here can be implemented in software and / or hardware, and there is no specific limitation on this.

[0196] For example, a "unit" can be a software program, hardware circuitry, or a combination of both that implements the above-described functions. Hardware circuitry may include application-specific integrated circuits (ASICs), electronic circuitry, a processor (e.g., a shared processor, a proprietary processor, or a group processor) and memory for executing one or more software or firmware programs, integrated logic circuitry, and / or other suitable components that support the described functions.

[0197] Therefore, the units of the various examples described in the embodiments of this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0198] like Figure 1 , Figure 2 As shown, the display device can be used to implement the image compensation method described in the above method embodiments.

[0199] The display device may include one or more memories storing programs that can be run by a control unit to generate instructions that cause the control unit to execute the image compensation method described in the above method embodiments.

[0200] Optionally, the memory may also store data. Optionally, the control unit may also read data stored in the memory, which may be stored at the same memory address as the program, or the data may be stored at a different memory address than the program.

[0201] This application also provides a computer program product that, when executed by a control unit, implements the image compensation method of any method embodiment in this application.

[0202] The computer program product can be stored in memory, for example, as a program. The program is eventually converted into an executable object file that can be executed by the control unit after processes such as preprocessing, compilation, assembly, and linking.

[0203] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a computer, implements the image compensation method of any of the method embodiments of this application. The computer program may be a high-level language program or an executable object program.

[0204] In this application, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0205] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0206] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0207] In the various embodiments of this application, each functional unit can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0208] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A display device, characterized in that, include: Display screen; Backlight module; The control unit is configured as follows: Determine the maximum RGB value and the average RGB value of the target region in the image to be processed. The target region is a sub-region obtained by partitioning the image to be processed. The maximum RGB value is the maximum value among the initial values ​​of the R component, the initial value of the G component, and the initial value of the B component in the target region. The RGB average value is the average of the initial values ​​of the R component, G component, and B component in the target region; If the ratio of the maximum RGB value to the average RGB value is greater than or equal to a preset first threshold, it is determined that there is a color cast in the target area, and the compensation coefficient of each RGB component is determined based on a preset compensation strategy. The preset compensation strategy is used to constrain the compensation coefficient of the color component corresponding to the color cast to be the minimum. The target image is obtained by compensating each pixel in the target region based on the compensation coefficient of each RGB component.

2. The display device according to claim 1, characterized in that, When the control unit executes the calculation of the compensation coefficients for each RGB component based on a preset compensation strategy, it is configured as follows: Determine the preset lookup table corresponding to the maximum RGB value; Based on the ratio, the compensation coefficient of each RGB component is determined in the preset lookup table, wherein the preset lookup table contains the compensation coefficient of each RGB component corresponding to the ratio greater than the preset first threshold, and among the compensation coefficients of each RGB component, the compensation coefficient of the color component corresponding to the maximum RGB value is the smallest.

3. The display device according to claim 1, characterized in that, Before determining the maximum and average RGB values ​​of the target region in the image to be processed, the control unit is further configured to: Obtain the brightness information of the target area; Based on the brightness information, the initial backlight brightness of the backlight area corresponding to the target area is adjusted to obtain the adjusted target backlight brightness. Based on the relationship between the initial backlight brightness, the target backlight brightness, and the photoelectric conversion of the display screen, the compensation factor for the target area is determined; The compensation factor is used to compensate each pixel in the target region to obtain the compensated target region.

4. The display device according to claim 3, characterized in that, The compensation factor includes an R-component compensation factor, a G-component compensation factor, and a B-component compensation factor. The compensation factor for the target region is calculated using the following formula: R_compensation=(BL1 / BL2)^(1 / θ) G_compensation=(BL1 / BL2)^(1 / θ) B_compensation=(BL1 / BL2)^(1 / θ) In the formula, R_compensation is the R component compensation factor, G_compensation is the G component compensation factor, B_compensation is the B component compensation factor, BL1 is the initial backlight brightness, BL2 is the target backlight brightness, and θ is the nonlinear relationship of the photoelectric conversion of the display screen.

5. The display device according to claim 3, characterized in that, The target image is obtained by compensating each pixel in the target region based on the compensation coefficients of each RGB component, and the control unit is configured to: Based on the compensation coefficients of each RGB component and the compensation factor of the target region, each pixel in the target region is compensated to obtain the compensated target region. The target image is constructed based on each compensated target region.

6. The display device according to claim 5, characterized in that, The compensation for each pixel in the target region is calculated based on the compensation coefficients for each RGB component and the compensation factor for the target region, using the following formula: R_new_out=R_in×R_compensation×R_factor G_new_out=G_in×G_compensation×G_factor B_new_out=B_in×B_compensation×B_factor In the formula, R_new_out is the value of the R component in the pixel after compensation, R_in is the value of the R component in the pixel before compensation, R_compensation is the R component compensation factor, and R_factor is the compensation coefficient of the R component; G_new_out is the value of the G component in the pixel after compensation, G_in is the value of the G component in the pixel before compensation, G_compensation is the G component compensation factor, and G_factor is the G component compensation coefficient; B_new_out is the value of the B component in the pixel after compensation, B_in is the value of the B component in the pixel before compensation, B_compensation is the B component compensation factor, and B_factor is the B component compensation coefficient.

7. The display device according to any one of claims 1 to 6, characterized in that, After determining the maximum and average RGB values ​​of the target region in the image to be processed, and before determining that the target region has a color cast, the control unit is further configured to: If the average RGB value is less than or equal to a preset second threshold, the image to be processed is compensated. If the average RGB value is greater than the preset second threshold, no compensation processing will be performed on the image to be processed.

8. The display device according to any one of claims 1 to 6, characterized in that, The initial value of the R component is the average value of the R components of each pixel in the target region, the initial value of the G component is the average value of the G components of each pixel in the target region, and the initial value of the B component is the average value of the B components of each pixel in the target region.

9. The display device according to any one of claims 1 to 6, characterized in that, The preset lookup table is one of the R-component color cast lookup table, the G-component color cast lookup table, and the B-component color cast lookup table.

10. An image compensation method, characterized in that, The image compensation method includes: The maximum RGB value and the average RGB value of the target region in the image to be processed are determined. The target region is a sub-image region obtained by dividing the image to be processed based on the backlight area in the display device. The maximum RGB value is the maximum value among the initial values ​​of the R component, the G component, and the B component in the target region. The average RGB value is the average value of the initial values ​​of the R component, the G component, and the B component in the target region. If the ratio of the maximum RGB value to the average RGB value is greater than or equal to a preset first threshold, it is determined that the target area has a color cast, and the compensation coefficient of each RGB component is determined based on the preset lookup table corresponding to the maximum RGB value. The target image is obtained by compensating each pixel in the target region based on the compensation coefficient of each RGB component.