Image processing method and device, electronic equipment and readable storage medium

By designing grayscale gain curves for different screen loads, the grayscale of the terminal screen is accurately compensated, solving the problem of inaccurate grayscale compensation caused by changes in screen load, and improving the display effect and user experience.

CN119541405BActive Publication Date: 2026-03-27BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-29
Publication Date
2026-03-27

Smart Images

  • Figure CN119541405B_ABST
    Figure CN119541405B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an image processing method and device, electronic equipment and readable storage medium, and relates to the technical field of terminal display. The method comprises: obtaining a gray scale gain curve corresponding to different screen loads, the gray scale gain curve being used to represent the relationship between different gray scales and gray scale gain values; obtaining a target gray scale gain curve corresponding to a target screen load according to a plurality of gray scale gain curves, the target screen load being the screen load required by a terminal to display a to-be-compensated image; and compensating the gray scale in the to-be-compensated image by using the target gray scale gain curve to obtain a compensated image. The image processing method provided by the present disclosure can compensate the gray scale in the to-be-compensated image by using an accurate gray scale compensation value when the screen load changes, thereby avoiding the occurrence of the burn-in phenomenon and reducing the influence of voltage drop on the display effect.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of terminal display, and in particular, to an image processing method and device, an electronic device, and a readable storage medium. BACKGROUND

[0002] With the wide application of computers and mobile phones and other terminal devices, the burn-in phenomenon of terminal screens is becoming more and more common. Burn-in refers to the aging or damage of pixel points due to the display of the same image on the terminal screen for too long, so that the pixel points cannot normally display colors, and permanent dimming or obvious distortion occurs.

[0003] In related technologies, a fixed compensation value is used to compensate for the gray scale of the image displayed on the terminal screen, thereby avoiding burn-in. However, the screen load of different images displayed on the terminal screen is different, thereby generating different integrated resistance drops (iR drops). The difference in voltage drop has a great impact on the gray scale compensation of the image, making the accuracy of the gray scale compensation of the image low, and the burn-in phenomenon of the screen also occurs. SUMMARY

[0004] To overcome the problems in related technologies, the present disclosure provides an image processing method and device, an electronic device, and a readable storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, an image processing method is provided, comprising:

[0006] obtaining a gray scale gain curve corresponding to different screen loads, the gray scale gain curve being used to represent the relationship between different gray scales and gray scale gain values;

[0007] obtaining a target gray scale gain curve corresponding to a target screen load according to a plurality of gray scale gain curves, the target screen load being the screen load required by the terminal to display a to-be-compensated image;

[0008] compensating for the gray scale in the to-be-compensated image using the target gray scale gain curve to obtain a compensated image.

[0009] Optionally, compensating for the gray scale in the to-be-compensated image using the target gray scale gain curve to obtain a compensated image comprises:

[0010] determining a target gray scale gain value corresponding to a to-be-compensated gray scale in the to-be-compensated image based on the target gray scale gain curve;

[0011] compensating for the to-be-compensated gray scale using the target gray scale gain value to obtain a compensated gray scale of the compensated image.

[0012] Optionally, the target gray scale gain value is used to compensate the to-be-compensated gray scale, to obtain a compensated gray scale of the compensated image, comprising:

[0013] According to a pre-stored relationship between a gray scale and a compensation value, an initial compensation value corresponding to the to-be-compensated gray scale is determined;

[0014] The initial compensation value is corrected by using the target gray scale gain value, to obtain a target compensation value;

[0015] The to-be-compensated gray scale is compensated by using the target compensation value, to obtain the compensated gray scale.

[0016] Optionally, the initial compensation value is corrected by using the target gray scale gain value, to obtain a target compensation value, comprising:

[0017] The initial compensation value is corrected by using the target gray scale gain value and a pixel brightness gain value, to obtain the target compensation value.

[0018] Optionally, a target gray scale gain curve corresponding to a target screen load is obtained according to a plurality of gray scale gain curves, comprising:

[0019] The target screen load is obtained according to a pixel brightness gain value and an average gray scale of the to-be-compensated image displayed by the terminal;

[0020] The target gray scale gain curve corresponding to the target screen load is obtained according to a plurality of gray scale gain curves.

[0021] Optionally, a target gray scale gain curve corresponding to a target screen load is obtained according to a plurality of gray scale gain curves, comprising:

[0022] From a plurality of gray scale gain curves, the target gray scale gain curve is selected, or,

[0023] A target gray scale gain curve corresponding to the target screen load is obtained by interpolating a plurality of screen loads and a plurality of gray scale gain curves corresponding to the screen loads.

[0024] Optionally, the method further comprises:

[0025] A first brightness value of a gray scale before burn-in and a second brightness value of a gray scale after burn-in of the terminal under the screen load are determined;

[0026] According to the first brightness value and the second brightness value, a gray scale gain value corresponding to the gray scale is obtained, and a plurality of gray scales and the gray scale gain values corresponding to the gray scales constitute a gray scale gain curve corresponding to the screen load.

[0027] According to a second aspect of the embodiments of the present disclosure, an image processing apparatus is provided, comprising:

[0028] An acquisition module configured to acquire a gray scale gain curve corresponding to different screen loads, the gray scale gain curve being used to represent a relationship between different gray scales and gray scale gain values;

[0029] A target gray scale gain curve determination module configured to obtain a target gray scale gain curve corresponding to a target screen load according to a plurality of gray scale gain curves, the target screen load being a screen load required by a terminal to display a to-be-compensated image;

[0030] A compensation module configured to compensate gray scales in the to-be-compensated image by using the target gray scale gain curve to obtain a compensated image.

[0031] According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, comprising:

[0032] A processor;

[0033] A memory for storing processor-executable instructions;

[0034] The processor is configured to:

[0035] Perform the steps of the image processing method provided by the first aspect of the present disclosure.

[0036] According to a fourth aspect of the embodiments of the present disclosure, a computer readable storage medium is provided, which stores computer program instructions, the program instructions being executed by a processor to implement the steps of the image processing method provided by the first aspect of the present disclosure.

[0037] The technical solutions provided by the embodiments of the present disclosure can include the following beneficial effects:

[0038] Different gray scale gain curves are designed for different screen loads. Since different screen loads correspond to different voltage drops, it can also be considered that different voltage drops correspond to different gray scale gain curves. When the target screen load required by the terminal to display the to-be-compensated image changes, i.e., the voltage drop changes, the gray scales in the to-be-compensated image can be compensated according to the gray scale gain values in different target gray scale gain curves.

[0039] In the first aspect, since the influence of the voltage drop caused by the screen load is considered, different screen loads correspond to different gray scale gain curves with voltage drops, so different gray scale gain values in different gray scale gain curves are used to accurately compensate each gray scale in the image to be compensated when the voltage drop and the screen load are different, thereby avoiding the inaccurate gray scale compensation caused by the screen load and the voltage drop, and avoiding the burn-in phenomenon. In the second aspect, since the compensation of each gray scale is performed after considering the influence of the screen load and the voltage drop, different target screen loads will take different gray scale gain curves for compensation, so the compensated gray scale brightness will not be inconsistent, and the display effect of the terminal screen is improved.

[0040] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0041] The accompanying drawings, which are incorporated into the specification and constitute part of it, illustrate embodiments consistent with the present disclosure and, together with the specification, serve to explain the principles of the present disclosure.

[0042] Figure 1 is a flowchart of an image processing method according to an exemplary embodiment.

[0043] Figure 2 is a schematic diagram of a burn-in phenomenon according to an exemplary embodiment.

[0044] Figure 3 is a schematic diagram of a block of different gray scales according to an exemplary embodiment.

[0045] Figure 4 is a schematic diagram of a gray scale gain curve according to an exemplary embodiment.

[0046] Figure 5 is a histogram of a gray scale proportion according to an exemplary embodiment.

[0047] Figure 6 is a schematic diagram of a gray scale gain curve according to an exemplary embodiment.

[0048] Figure 7 is a schematic diagram of a gray scale gain curve according to an exemplary embodiment.

[0049] Figure 8 is a schematic diagram of compensating an image to be compensated into a compensated image according to an exemplary embodiment.

[0050] Figure 9 is a block diagram of an image processing device according to an exemplary embodiment.

[0051] Figure 10 is a block diagram of an image processing apparatus according to an exemplary embodiment. DETAILED DESCRIPTION

[0052] The exemplary embodiments will be described in detail below with reference to the drawings. The following description is presented in terms of the exemplary embodiments, and unless otherwise indicated, the same or similar reference numerals are used throughout the drawings to refer to the same or similar elements. The embodiments described in the following exemplary embodiments are not meant to represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0053] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the corresponding data protection regulations policy of the country where the corresponding apparatus is located, and with the authorization given by the owner of the corresponding apparatus.

[0054] With the wide application of computers and terminal devices such as mobile phones, the burn-in phenomenon of terminal screens is becoming more and more common. Burn-in refers to the phenomenon that the pixel points are aged or damaged due to the terminal screen displaying the same image for too long a time, so that the pixel points leave the outline, trace or shadow of the image after displaying the image for a long time. For example, as shown in Figure 2 the terminal screen displays the icon of "sun" in the upper left of the previous frame image, and due to the damaged pixel points, the icon of "sun" will also be displayed in the upper left of the next frame image, and even in the upper left of all subsequent frame images. This phenomenon is the burn-in phenomenon. The reasons for the burn-in of the terminal screen include: the time of displaying the same image is too long, the screen brightness is too high, the temperature is too high, etc.

[0055] In the related art, a fixed compensation value is used to compensate for the gray scale of the image displayed by the terminal screen, so as to avoid burn-in. However, the screen load of the terminal screen displaying different images is different, and the difference in screen load will cause different voltage drops. The voltage drop refers to the amount of voltage reduction after the current passes through the wire or component, which can also be understood as the amount of power loss. The voltage drop U = IR, I is the current flowing into the circuit, and R is the load of the wire and component, which remains unchanged. The difference in voltage drop will have two negative effects: (1) it will have a great impact on the gray scale compensation of the image, causing the compensation value to change, and after the compensation value changes, the gray scale compensated by the compensation value will also change, resulting in lower accuracy of the gray scale compensation of the image, and the burn-in phenomenon of the screen will also occur; (2) it will have a great impact on the display effect of the image.

[0056] For example, as shown in Figure 3 the terminal screen displays the icon of "sun" in the upper left of the previous frame image, and due to the damaged pixel points, the icon of "sun" will also be displayed in the upper left of the next frame image, and even in the upper left of all subsequent frame images. This phenomenon is the burn-in phenomenon. The reasons for the burn-in of the terminal screen include: the time of displaying the same image is too long, the screen brightness is too high, the temperature is too high, etc. Figure 3The terminal adjusts the background image of the blocks A-D as white, that is, adjusts the background image of the blocks A-D as a whole as white, and the brightness of white is the largest, so the required screen load is the largest, and Figure 3 The gray scale of the block A is 255, which is also white, and the display area of the block A is smaller than the display area of the whole white background image, so the screen load of the block A is smaller, the voltage drop corresponding to the block A is smaller than the voltage drop corresponding to the whole white background image, the power consumption of the block A is smaller than the power consumption of the white background image, since the power supply of the terminal is the same, the power supply current input to the block A is larger than the power supply current input to the white background image, thereby causing the display brightness of the block A to be larger than the display brightness of the white background image, so that the display brightness of the block A is improved, and similarly, the brightness of the blocks B-D with different gray scales is also improved to different degrees. In the case that the display brightness of the blocks A-D is improved and the display brightness of the remaining normal pixels in the image is not improved, the brightness of the image display is not uniform, the display brightness of the block A is the brightest, followed by the blocks B, C and D, and the display effect of the terminal screen is reduced; and the improvement of the display brightness also causes the compensation value to change, thereby causing the gray scale compensated based on the compensation value to be inaccurate, and the burn-in phenomenon also occurs.

[0057] In order to reduce the negative influence of the display effect caused by the voltage drop, the gray scale brightness of the whole image in the related art is reduced, so that the overall picture brightness is darkened, thereby reducing the voltage drop, so that the display brightness of the picture is more uniform, but the reduction of the overall picture brightness also affects the user experience.

[0058] Therefore, Figure 1 According to an exemplary embodiment, a flowchart of an image processing method is shown as follows. Figure 1 As shown in the figure, the image processing method is used in a terminal and includes the following steps.

[0059] In step S11, a gray scale gain curve corresponding to different screen loads is obtained, and the gray scale gain curve is used to represent the relationship between different gray scales and gray scale gain values.

[0060] The screen load refers to the calculation load generated when the terminal screen displays the image during image processing. When the terminal performs image or video rendering, animation playing, and graphic processing, the screen load increases. The size of the screen load depends on the complexity, resolution, frame rate, and image effect of the image.

[0061] In this disclosure, screen load and screen brightness ratio are positively correlated; the higher the screen brightness ratio, the higher the screen load. For example, with a 1% screen load, assuming the image displayed on the terminal has 100 pixels, then one pixel has a grayscale of 255 (white), and the remaining 99 pixels are all 0 (black). At this time, the overall screen load of the terminal screen is relatively small, and the screen brightness ratio is relatively small.

[0062] Please see Figure 4 As shown, the grayscale gain curve illustrates the relationship between different grayscale levels and different grayscale gain values. In image processing, color images are converted to grayscale images to simplify the process. Grayscale, also known as gray level, differs from color images. A grayscale image is a single-channel image that contains only brightness information, not color information. The grayscale level of each pixel in a grayscale image represents its brightness level, typically represented by a range of 0 to 255. Smaller grayscale levels indicate a darker pixel, while larger grayscale levels indicate a brighter pixel. The grayscale gain value is a parameter used to adjust the grayscale levels, compensating for grayscale differences and thus adjusting the grayscale brightness.

[0063] In this disclosure, different grayscale gain curves are designed for different screen loads. For example, 1% screen load corresponds to one grayscale gain curve, and 100% screen load corresponds to another grayscale gain curve.

[0064] In step S12, a target grayscale gain curve corresponding to the target screen load is obtained based on the multiple grayscale gain curves. The target screen load is the screen load required for the terminal to display the image to be compensated.

[0065] The target grayscale gain curve corresponding to the target screen load can be obtained by filtering from the grayscale gain curves corresponding to multiple screen loads; alternatively, the grayscale and gain values ​​in the grayscale gain curves corresponding to multiple screen loads can be linearly interpolated to obtain the target grayscale gain curve corresponding to the target screen load.

[0066] The target screen load is the screen load required by the terminal to display the image to be compensated, or the screen load currently required by the terminal; the image to be compensated is the image displayed by the terminal that needs to be compensated, or the current frame image that the terminal needs to process.

[0067] In step S13, the target grayscale gain curve is used to compensate the grayscale in the image to be compensated, and a compensated image is obtained.

[0068] For the image to be compensated, which is a grayscale image, each pixel in the image to be compensated has its own corresponding grayscale. Therefore, the target grayscale gain curve corresponding to the target screen load required for the terminal to display the image to be compensated can be used to compensate each grayscale in the image to be compensated.

[0069] In the process of compensating the gray scale in the to-be-compensated image by using the target gray scale gain curve, for any pixel point in the to-be-compensated image, the target gray scale corresponding to the gray scale of the pixel point is first found in the target gray scale gain curve, and then the target gray scale gain value corresponding to the target gray scale is used to compensate the gray scale of the pixel point, so that the compensated image is obtained.

[0070] For example, referring to the target gray scale gain curve shown in FIG. 1, the gray scale gain value corresponding to the gray scale 100 is 10, the gray scale gain value corresponding to the gray scale 101 is 11, the gray scale gain value corresponding to the gray scale 102 is 12, and the gray scale gain value corresponding to the gray scale 103 is 13. If the gray scale of a pixel point in the to-be-compensated image is 100, then the gray scale gain value 10 is used to compensate the gray scale 100, so that the compensated gray scale of the pixel point is obtained. Figure 4 After the compensated image is obtained, if the user wants to view the compensated image, the gray scale image needs to be converted into a color image.

[0071] By using the above technical solution, different gray scale gain curves are designed for different screen loads. Since different screen loads correspond to different voltage drops, it can also be considered that different voltage drops correspond to different gray scale gain curves. When the terminal displays the current to-be-compensated image, the target screen load required by the terminal to display the to-be-compensated image is determined, and the target gray scale gain curve corresponding to the target screen load is determined. The gray scale in the to-be-compensated image is compensated by using the gray scale gain values in the target gray scale gain curve, so that the compensated image is obtained.

[0072] In this process, in the first aspect, since the influence of the voltage drop caused by the screen load is considered, different screen loads correspond to different gray scale gain curves, so that the gray scale gain values in different gray scale gain curves are used to accurately compensate each gray scale in the to-be-compensated image when the voltage drop and the screen load are different, so that the inaccurate gray scale compensation caused by the screen load and the voltage drop is avoided, and the screen burn phenomenon is avoided. In the second aspect, since the compensation of each gray scale is performed after considering the influence of the screen load and the voltage drop, the brightness of the compensated gray scale will not be inconsistent, and the display effect of the terminal screen is improved. In the third aspect, the overall brightness of the picture does not need to be reduced to reduce the influence of the voltage drop, so the user experience is improved.

[0073] The following will introduce some specific embodiments and optional embodiments related to the above steps S11 to S13.

[0074]

[0075] ​In an alternative embodiment, the gray scale gain curve corresponding to different screen load can be obtained in the following way.

[0076] determining a first luminance value of the gray scale before screen burn-in and a second luminance value of the gray scale after screen burn-in under the screen load; and obtaining a gray scale gain value corresponding to the gray scale according to the first luminance value and the second luminance value, wherein the gray scale gain value corresponding to the gray scale, the plurality of gray scales and the gray scale gain values corresponding to the gray scales constitute the gray scale gain curve corresponding to the screen load.

[0077] The luminance correction coefficient can be determined according to the first luminance value, the second luminance value and the Gamma value; and the luminance correction coefficient is subtracted by a preset value to obtain the gray scale gain value corresponding to the gray scale. The preset value can be 1.

[0078] The screen load can be assumed to be 1%, i.e., the screen brightness ratio is 1%, and the screen area of 1% is lighted up, and then the first luminance value of each pixel of the gray scale before screen burn-in and the second luminance value of each pixel of the gray scale after screen burn-in in the 1% screen area are determined; for each gray scale, the luminance correction coefficient is calculated according to the first luminance value, the second luminance value and the Gamma value; and the luminance correction coefficient is subtracted by a preset value 1 to obtain the gray scale gain value corresponding to each gray scale. The luminance correction coefficient is calculated by the following formula:

[0079] a = (L_after / L_before)^(1 / γ)

[0080] In the formula, a is the luminance correction coefficient, L_after is the first luminance value of the gray scale before screen burn-in, L_before is the second luminance value of the gray scale after screen burn-in, and γ is the Gamma value.

[0081] The Gamma value is a nonlinear parameter for adjusting the brightness response area of the screen. Gamma is a nonlinear adjustment parameter for describing the brightness of an image in a display, a photographic device and image processing software. In image processing, a lower gamma value will make the image brighter, and a higher gamma value will make the image darker. Through the adjustment of the gamma value, the brightness value of each pixel point on the image will be close to the brightness value in the real scene. In general, the Gamma value of the screen is 2.2.

[0082] It can be understood that the above-mentioned gray scale gain curve can be the curve when the screen load is small and the pixel luminance gain value is maximum.

[0083] Through the above-mentioned way 1, the gray scale gain value corresponding to each gray scale when the screen load is 1% can be calculated. Similarly, the screen load can also be set to 100%, and the gray scale gain value corresponding to each gray scale when the screen load is 100% can be calculated.

[0084] In one specific embodiment, the target screen load is calculated in the following manner:

[0085] The target screen load is obtained based on the pixel brightness gain value (DBV) and the average gray level of the image to be compensated displayed on the terminal.

[0086] Please see Figure 5 The terminal shown displays a graph showing the percentage of each gray level in the image to be compensated. Figure 5 The horizontal axis represents grayscale, and the vertical axis represents the number of pixels occupied by each grayscale level in the image to be compensated. First, the average grayscale can be obtained based on the grayscale, the number of pixels occupied by each grayscale, and the weight corresponding to each grayscale. Then, based on the average grayscale and the pixel brightness gain value, the target screen load required for the terminal to display the image to be compensated can be obtained.

[0087] The average gray level is obtained by multiplying the same gray level by the weight corresponding to the same gray level, and then multiplying by the weight corresponding to the same gray level to obtain the sub-average gray level corresponding to the same gray level; then adding the multiple sub-average gray levels together to obtain the average gray level.

[0088] For example, please see Figure 5 As shown, assuming the image to be compensated has 50 gray levels, the number of pixels occupied by gray level 50 is 3000, and the corresponding weight is 0.1; the number of pixels occupied by gray level 100 is 4500, and the corresponding weight is 0.2; the number of pixels occupied by gray level 150 is 3000, and the corresponding weight is 0.7, then the final average gray level = 50*3000*0.1 + 100*4500*0.2 + 150*3000*0.7.

[0089] The target screen load is obtained by multiplying the screen grayscale by the pixel brightness gain value.

[0090] Because different users set the brightness bar on their devices differently, the pixel brightness gain value will also vary. There is a positive correlation between the brightness bar's ratio and the pixel brightness gain value. For example, when the user adjusts the brightness bar to 100%, the corresponding pixel brightness gain value is 0.5; when the user adjusts the brightness bar to 50%, the corresponding pixel brightness gain value is 0.25.

[0091] In one specific embodiment, after obtaining the target screen load, it is also necessary to determine the target grayscale gain curve corresponding to the target screen load, including the following two methods:

[0092] Method 1: Select the target grayscale gain curve from multiple grayscale gain curves.

[0093] If the gray scale gain curve corresponding to the target screen load exists in the plurality of gray scale gain curves, the gray scale gain curve corresponding to the target screen load is selected as the target gray scale gain curve.

[0094] For example, the gray scale gain curves corresponding to 1% and 100% screen loads are stored in advance. If the target screen load currently required by the terminal is 1%, the gray scale gain curve corresponding to 1% screen load is selected as the target gain curve.

[0095] Method 2: interpolating the plurality of screen loads and the gray scale gain curves corresponding to the plurality of screen loads to obtain the target gray scale gain curve corresponding to the target screen load.

[0096] If the gray scale gain curve corresponding to the target screen load does not exist in the plurality of gray scale gain curves, at least two screen loads and the gray scale gain curves corresponding to the at least two screen loads are interpolated to obtain the target gray scale gain curve corresponding to the target screen load.

[0097] For example, if the terminal stores the gray scale gain curves corresponding to 1% and 100% screen loads but does not store the gray scale gain curve corresponding to 2% screen load, please refer to FIG. 1A, which shows the gray scale gain curve when the screen load is 1%. It is assumed that there are three points (10, 10), (11, 11), and (12, 12) in the gray scale gain curve, and it can be determined that the ratio between the gray scale gain value and the gray scale when the screen load is 1% is 1 times. Figure 6 For example, if the terminal stores the gray scale gain curves corresponding to 1% and 100% screen loads but does not store the gray scale gain curve corresponding to 2% screen load, please refer to FIG. 1A, which shows the gray scale gain curve when the screen load is 1%. It is assumed that there are three points (10, 10), (11, 11), and (12, 12) in the gray scale gain curve, and it can be determined that the ratio between the gray scale gain value and the gray scale when the screen load is 1% is 1 times. Figure 7 For example, if the terminal stores the gray scale gain curves corresponding to 1% and 100% screen loads but does not store the gray scale gain curve corresponding to 2% screen load, please refer to FIG. 1A, which shows the gray scale gain curve when the screen load is 1%. It is assumed that there are three points (10, 10), (11, 11), and (12, 12) in the gray scale gain curve, and it can be determined that the ratio between the gray scale gain value and the gray scale when the screen load is 1% is 1 times.

[0098] It can be understood that the above Figure 6 and Figure 7 are only schematic gray scale gain curves. In fact, the gray scale gain curve is not a simple linear relationship as shown in FIGS. 1A and 1B. Figure 6 and Figure 7 .

[0099] Through the above two manners, the target gray scale gain curve corresponding to the target screen load can be obtained, so that the target gray scale gain curve matched with the current target screen load is used to compensate the to-be-compensated image, thereby realizing accurate gray scale compensation under different screen loads.

[0100] In a specific embodiment, the to-be-compensated image can be compensated by the following steps to obtain a compensated image:

[0101] In step S21, based on the target gray scale gain curve, a target gray scale gain value corresponding to a to-be-compensated gray scale in the to-be-compensated image is determined.

[0102] After obtaining the target gray scale gain curve, the target gray scale gain value corresponding to the to-be-compensated gray scale of the pixel point in the to-be-compensated image can be obtained by querying the target gray scale gain curve.

[0103] For example, the three points in the gray scale gain curve with a screen load of 2% are (10, 20), (11, 22), and (12, 24), and if the gray scale of a pixel point in the to-be-compensated image is 11, then the corresponding target gray scale gain value is 22.

[0104] In step S22, the to-be-compensated gray scale is compensated by using the target gray scale gain value to obtain a compensated gray scale of the compensated image.

[0105] The initial compensation value corresponding to the to-be-compensated gray scale can be determined according to the pre-stored relationship between the gray scale and the compensation value; the target compensation value is obtained by correcting the initial compensation value by using the target gray scale gain value, or the target compensation value is obtained by correcting the initial compensation value by using the target gray scale gain value and the pixel brightness gain value; and the to-be-compensated gray scale is compensated by using the target compensation value to obtain the compensated gray scale.

[0106] The pixel brightness gain value and the target gray scale gain value are both parameters for adjusting the screen brightness, and higher target gray scale gain value and pixel brightness gain value will make the image brighter, and lower gray scale gain value and pixel brightness gain value will make the image darker. The target gray scale gain value is used to change the brightness intensity of each gray scale level, and the pixel brightness gain value is the specific value of the gray scale.

[0107] The Gamma value and the maximum gray scale brightness (255) determine the gray scale brightness of the pixel point, and if the gray scale brightness changes, the Gamma value will change. The Gamma value is used to calculate the pre-stored relationship between the gray scale and the gray scale compensation value, and if the Gamma value changes, the pre-stored relationship between the gray scale and the gray scale compensation value will change, thereby causing the compensated gray scale to change.

[0108] The initial compensation value corresponding to the gray level to be compensated is determined based on the relationship between the pre-stored gray levels and the compensation value. This includes: when there is a gray level to be compensated in the pre-stored gray levels, the compensation value corresponding to the gray level in the pre-stored gray levels that is consistent with the gray level to be compensated is directly used as the initial compensation value; when there is no gray level to be compensated in the pre-stored gray levels, the initial compensation value corresponding to the gray level to be compensated is obtained by interpolation algorithm based on the relationship between the pre-stored gray levels and the compensation value.

[0109] For example, if grayscale 10 and compensation value 10 with a corresponding relationship are pre-stored, and grayscale 100 and compensation value 100 with a corresponding relationship are also pre-stored, when the grayscale to be compensated is 20, since the grayscale to be compensated 20 does not exist in the pre-stored grayscales, interpolation can be performed on the grayscale 10 and compensation value 10 with a corresponding relationship, and on the grayscale 100 and compensation value 100 with a corresponding relationship. The initial compensation value corresponding to the grayscale to be compensated 20 is obtained through the interpolation algorithm.

[0110] The target compensation value is obtained by correcting the initial compensation value using the target grayscale gain value and the pixel brightness gain value. This includes: calculating the first product of the target grayscale gain value and the initial compensation value, the second product of the pixel brightness gain value and the initial compensation value, and then using the sum of the first product and the second product as the target compensation value.

[0111] For example, if the initial grayscale compensation value of a certain pixel is 20, the pixel brightness gain value is 0.05, and the target grayscale gain value is 0.05, then the final target compensation value is 20*0.05+20*0.05=2.

[0112] The target compensation value is used to compensate the gray level to be compensated to obtain the compensated gray level, which includes: adding the target compensation value to the sum of the gray levels to be compensated, as the gray level value of the compensated gray level.

[0113] For example, if the target compensation value corresponding to the gray level to be compensated is 2, the resulting compensated gray level is 22.

[0114] Please see Figure 8 The diagram illustrates the compensation process for the image to be compensated. It can be done by first... Figure 5 The histogram shown is used to calculate the average gray level of the image to be compensated; then the relationship between the gray level and the stored gray level and gray level gain value is calculated; then the initial compensation value is obtained based on the pre-stored relationship between the gray level and gray level gain value; then the initial compensation value is compensated by the pixel brightness gain value and the target gray level gain value to obtain the target compensation value; finally, the image to be compensated is compensated by the target compensation value to obtain the compensated image.

[0115] Figure 9 This is a block diagram illustrating an image processing apparatus according to an exemplary embodiment. (Refer to...) Figure 9The image processing apparatus 900 comprises an acquisition module 910, a target gray scale gain curve determination module 920, and a compensation module 930.

[0116] The acquisition module 910 is configured to acquire gray scale gain curves corresponding to different screen loads, wherein the gray scale gain curves are used to represent the relationship between different gray scales and gray scale gain values.

[0117] The target gray scale gain curve determination module 920 is configured to obtain a target gray scale gain curve corresponding to a target screen load according to a plurality of gray scale gain curves, wherein the target screen load is a screen load required by a terminal to display a to-be-compensated image.

[0118] The compensation module 930 is configured to compensate gray scales in the to-be-compensated image by using the target gray scale gain curve, to obtain a compensated image.

[0119] Optionally, the compensation module 930 comprises:

[0120] The first determination sub-module is configured to determine a target gray scale gain value corresponding to a to-be-compensated gray scale in the to-be-compensated image based on the target gray scale gain curve.

[0121] The first compensation sub-module is configured to compensate the to-be-compensated gray scale by using the target gray scale gain value, to obtain a compensated gray scale of the compensated image.

[0122] Optionally, the first compensation sub-module comprises:

[0123] The second determination sub-module is configured to determine an initial compensation value corresponding to the to-be-compensated gray scale according to a pre-stored relationship between gray scales and compensation values.

[0124] The first correction sub-module is configured to correct the initial compensation value by using the target gray scale gain value, to obtain a target compensation value.

[0125] The second compensation sub-module is configured to compensate the to-be-compensated gray scale by using the target compensation value, to obtain the compensated gray scale.

[0126] Optionally, the first correction sub-module comprises:

[0127] The second correction sub-module is configured to correct the initial compensation value by using the target gray scale gain value and a pixel brightness gain value, to obtain the target compensation value.

[0128] Optionally, the target gray scale gain curve determination module 920 comprises:

[0129] The third determining sub-module is configured to obtain the target screen load according to the pixel brightness gain value and the average gray scale of the image to be compensated displayed by the terminal.

[0130] The fourth determining sub-module is configured to obtain a target gray scale gain curve corresponding to the target screen load according to a plurality of the gray scale gain curves.

[0131] Optionally, the target gray scale gain curve determining module 920 comprises:

[0132] The screening sub-module is configured to screen the target gray scale gain curve from a plurality of the gray scale gain curves, or

[0133] The interpolation sub-module is configured to interpolate a plurality of screen loads and a plurality of gray scale gain curves corresponding to the screen loads to obtain a target gray scale gain curve corresponding to the target screen load.

[0134] Optionally, the image processing apparatus 900 comprises:

[0135] The brightness value calculating module is configured to determine a first brightness value of a gray scale before screen burn and a second brightness value of a gray scale after screen burn of the terminal under the screen load.

[0136] The gray scale gain value calculating module is configured to obtain a gray scale gain value corresponding to the gray scale according to the first brightness value and the second brightness value, and a plurality of the gray scales and the gray scale gain values corresponding to the gray scales constitute a gray scale gain curve corresponding to the screen load.

[0137] As to the apparatus in the above-described embodiments, the specific manners in which various modules perform operations have been described in details in the embodiments of the method, and thus will not be described in details here.

[0138] The present disclosure also provides a computer readable storage medium having computer program instructions stored thereon, the program instructions being executed by a processor to implement the steps of the image processing method provided by the present disclosure.

[0139] Figure 10 is a block diagram of an apparatus 1000 for image processing according to an exemplary embodiment. For example, the apparatus 1000 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like electronic device.

[0140] Reference Figure 10The apparatus 1000 can include one or more of the following components: a processing component 1002, a memory 1004, a power supply component 1006, a multimedia component 1008, an audio component 1010, an input / output (I / O) interface 1012, a sensor component 1014, and a communication component 1016.

[0141] The processing component 1002 usually controls overall operations of the apparatus 1000, such as operations associated with displaying, making phone calls, data communications, camera operations, and recording operations. The processing component 1002 can include one or more processors 1020 to execute instructions to complete all or part of steps of the above methods. In addition, the processing component 1002 can include one or more modules to facilitate interaction between the processing component 1002 and other components. For example, the processing component 1002 can include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.

[0142] The memory 1004 is configured to store various types of data to support operations of the apparatus 1000. Examples of these data include instructions for any applications or methods operating on the apparatus 1000, contact data, phonebook data, messages, images, videos, and the like. The memory 1004 can be implemented by any type of volatile or nonvolatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic or optical disk.

[0143] The power supply component 1006 supplies electrical power for the various components of the apparatus 1000. The power supply component 1006 can include a power supply management system, one or more power supplies, and other components associated with generating, managing, and distributing electrical power for the apparatus 1000.

[0144] The multimedia component 1008 includes a screen providing an output interface between the device 1000 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swiping, and gestures on the touch panel. The touch sensors can not only sense a boundary of a touching or swiping action, but also detect duration and pressure related to the touching or swiping action. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. When the device 1000 is in an operation mode, such as a camera mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front and rear camera can be a fixed optical lens system or have a focal length and optical zooming capability.

[0145] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC) configured to receive external audio signals when the device 1000 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.

[0146] The input / output interface 1012 provides an interface between the processing component 1002 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0147] The sensor component 1014 includes one or more sensors to provide various state assessments for the device 1000. For example, the sensor component 1014 can detect an open / closed state of the device 1000, relative positioning of components, such as a display and a keypad of the device 1000, a change in position of the device 1000 or a component of the device 1000, presence or absence of user contact with the device 1000, an orientation or acceleration / deceleration of the device 1000, and a temperature change of the device 1000. The sensor component 1014 can include a proximity sensor configured to detect presence of an object in proximity to the device 1000 without any physical contact. The sensor component 1014 can also include a light sensor, such as a CMOS or CCD image sensor, for use in an imaging application. In some embodiments, the sensor component 1014 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0148] The communication component 1016 is configured to facilitate wired or wireless communication between the device 1000 and other devices. The device 1000 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) techniques, infrared data association (IrDA) techniques, ultra-wideband (UWB) techniques, Bluetooth (BT) techniques and other techniques.

[0149] In an exemplary embodiment, the device 1000 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic elements, for executing the above-described image processing method.

[0150] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 1004 including instructions, is also provided, which can be executed by the processor 1020 of the device 1000 to complete the above-described image processing method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.

[0151] The apparatus described above can be a part of an independent electronic device, for example, in an embodiment, the apparatus can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be one IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip), SoC (System on Chip), etc. The integrated circuit or chip described above can be used to execute executable instructions (or code) to implement the image processing method described above. Wherein the executable instructions can be stored in the integrated circuit or chip, or obtained from other devices or equipment, for example, the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instructions can be stored in the memory, and when the executable instructions are executed by the processor, the image processing method described above is implemented; or the integrated circuit or chip can receive executable instructions through the interface and transmit them to the processor for execution, to implement the image processing method described above.

[0152] Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. The disclosure is intended to cover any variations, uses, or adaptations of the disclosure following the general principles thereof and including such departures from the present disclosure that come within known

[0153] It should be understood that the present disclosure is not limited to the precise construction that has been described and shown in the accompanying drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the present disclosure. The scope of the present disclosure is limited only by the claims that follow.

Claims

1. An image processing method, characterized in that, include: For each grayscale, determine the first brightness value of the grayscale before screen burn-in under screen load and the second brightness value of the grayscale after screen burn-in. For each gray level, a brightness correction coefficient is determined based on the first brightness value, the second brightness value, and the Gamma value of the gray level, and the difference between the brightness correction coefficient and the preset value is determined as the gray level gain value corresponding to the gray level. Multiple gray levels and the gray level gain values ​​corresponding to the gray levels constitute the gray level gain curve corresponding to the screen load. Obtain grayscale gain curves corresponding to different screen loads; the grayscale gain curves are used to represent the relationship between different grayscale levels and grayscale gain values. Based on the multiple grayscale gain curves, the target grayscale gain curve corresponding to the target screen load is obtained, where the target screen load is the screen load required for the terminal to display the image to be compensated. The grayscale in the image to be compensated is compensated using the target grayscale gain curve to obtain a compensated image.

2. The method according to claim 1, characterized in that, Using the target grayscale gain curve, the grayscale in the image to be compensated is compensated to obtain a compensated image, including: Based on the target gray level gain curve, determine the target gray level gain value corresponding to the gray level to be compensated in the image to be compensated; The target gray level gain value is used to compensate the gray level to be compensated, and the compensated gray level of the compensated image is obtained.

3. The method according to claim 2, characterized in that, The target grayscale gain value is used to compensate the grayscale to be compensated, resulting in the compensated grayscale of the compensated image, including: Based on the relationship between the pre-stored grayscale and the compensation value, the initial compensation value corresponding to the grayscale to be compensated is determined; The initial compensation value is corrected using the target grayscale gain value to obtain the target compensation value; The target compensation value is used to compensate the gray level to be compensated, and the compensated gray level is obtained.

4. The method according to claim 3, characterized in that, The initial compensation value is corrected using the target grayscale gain value to obtain the target compensation value, including: The initial compensation value is corrected using the target grayscale gain value and the pixel brightness gain value to obtain the target compensation value.

5. The method according to claim 1, characterized in that, Based on the multiple grayscale gain curves, the target grayscale gain curve corresponding to the target screen load is obtained, including: The target screen load is obtained based on the pixel brightness gain value and the average gray level of the image to be compensated displayed on the terminal. Based on the multiple grayscale gain curves, the target grayscale gain curve corresponding to the target screen load is obtained.

6. The method according to claim 1, characterized in that, Based on the multiple grayscale gain curves, the target grayscale gain curve corresponding to the target screen load is obtained, including: The target grayscale gain curve is selected from the plurality of grayscale gain curves, or... Interpolate the grayscale gain curves corresponding to the multiple screen loads to obtain the target grayscale gain curve corresponding to the target screen load.

7. An image processing apparatus, characterized in that, include: The brightness value calculation module is configured to determine, for each gray level, the first brightness value of the gray level before screen burn-in under screen load and the second brightness value of the gray level after screen burn-in. The grayscale gain value calculation module is configured to determine the brightness correction coefficient of each grayscale based on the first brightness value, the second brightness value, and the Gamma value of the grayscale, and to determine the difference between the brightness correction coefficient and the preset value as the grayscale gain value corresponding to the grayscale. Multiple grayscales and the grayscale gain values ​​corresponding to the grayscales constitute the grayscale gain curve corresponding to the screen load. The acquisition module is configured to acquire grayscale gain curves corresponding to different screen loads, wherein the grayscale gain curves are used to represent the relationship between different grayscale levels and grayscale gain values. The target grayscale gain curve determination module is configured to obtain the target grayscale gain curve corresponding to the target screen load based on the multiple grayscale gain curves, wherein the target screen load is the screen load required for the terminal to display the image to be compensated. The compensation module is configured to use the target grayscale gain curve to compensate the grayscale in the image to be compensated, thereby obtaining a compensated image.

8. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured as follows: Perform the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When executed by a processor, the program instructions implement the steps of the method described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Display compensation method and display compensation device

    CN113948045A

  • Method and device for obtaining compensation gray-scale value, image display method and medium

    CN113971918A