Screen burning compensation method and device, electronic equipment and storage medium
By determining the target mapping relationship based on the reference data and performing grayscale compensation, the problem of OLED screen burning is solved, and a better compensation effect is achieved, extending the screen service life and reducing costs.
Patent Information
- Application Number
- CN202311261291.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-04-04
AI Technical Summary
After a long time of use, the OLED screen will age due to the difference in lighting time in different areas, causing the screen burning phenomenon, affecting the user experience.
By determining the target mapping relationship based on the reference data, the target grayscale compensation value of the image to be processed, and greyscale compensation is performed on the image based on the value, the processed image is obtained to eliminate screen afterimage.
Effectively compensate for screen burning, eliminate screen afterimage, extend the service life of electronic device screens, reduce screen replacement costs, and improve user experience.
Smart Images

Figure CN119763487A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image processing technology, and in particular to a burn-in compensation method, device, electronic device and storage medium. Background Art
[0002] Organic Light-Emitting Diode (OLED) screens are widely used in electronic devices due to their advantages of good display effects, low power consumption, and flexibility. However, as OLED screens are used longer, when the lighting time of different areas of the screen varies greatly, the luminous materials corresponding to different areas of the screen will age to varying degrees, resulting in screen burn-in, leaving afterimages on the screen and affecting the user experience. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a burn-in compensation method, device, electronic device and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a burn-in compensation method is provided, the method comprising:
[0005] Determine a target mapping relationship according to reference data, wherein the reference data includes a reference grayscale value and a reference grayscale compensation value, wherein the reference grayscale compensation value is fuzzy compensation data of the reference grayscale value, and the target mapping relationship represents a mapping relationship between the grayscale value and the grayscale compensation value;
[0006] Determining a target grayscale compensation value of the image to be processed according to the target grayscale value of the image to be processed and the target mapping relationship;
[0007] Based on the target grayscale compensation value, grayscale compensation is performed on the image to be processed to obtain a processed image.
[0008] In an exemplary embodiment, the grayscale compensation value and the reference grayscale value satisfy a linear functional relationship, and the target mapping relationship represents a functional relationship between the grayscale value and the grayscale compensation value;
[0009] Determining the target mapping relationship according to the reference data includes:
[0010] Determining a proportionality coefficient between a grayscale value and a grayscale compensation value according to at least two groups of reference data, wherein the reference grayscale values of each group of reference data in the at least two groups of reference data are different;
[0011] The functional relationship is determined according to the proportionality coefficient.
[0012] In an exemplary embodiment, the method further comprises:
[0013] Performing blur processing on a first reference image whose grayscale value is a reference grayscale value to obtain a second reference image;
[0014] Obtaining the reference grayscale compensation value according to the first reference image and the second reference image;
[0015] The reference data is composed of the reference grayscale value and the reference grayscale compensation value.
[0016] In an exemplary embodiment, determining the target mapping relationship according to the reference data includes:
[0017] Determining the reference data of a preset color channel according to the first reference image of a preset color;
[0018] The target mapping relationship of the preset color channel is determined according to the reference data of the preset color channel.
[0019] In an exemplary embodiment, obtaining the reference grayscale compensation value according to the first reference image and the second reference image includes:
[0020] Acquire first brightness information of the first reference image and second brightness information of the second reference image;
[0021] The reference grayscale compensation value is determined according to the reference grayscale value, the first brightness information, and the second brightness information.
[0022] In an exemplary embodiment, determining the reference grayscale compensation value according to the reference grayscale value, the first brightness information, and the second brightness information includes:
[0023] The reference grayscale compensation value is determined by the following formula:
[0024]
[0025] Among them, P A_a represents the reference grayscale compensation value, L1 represents the first brightness information, L2 represents the second brightness information, a represents the reference grayscale value, and γ represents the gamma value.
[0026] In an exemplary embodiment, the method further comprises:
[0027] Based on a preset time interval, updating the reference data;
[0028] Determine an updated target mapping relationship according to the updated reference data;
[0029] Determining a target grayscale compensation value of the image to be processed according to the target grayscale value of the image to be processed and the updated target mapping relationship;
[0030] Based on the target grayscale compensation value, grayscale compensation is performed on the image to be processed to obtain a processed image.
[0031] According to a second aspect of an embodiment of the present disclosure, a burn-in compensation device is provided, the device comprising:
[0032] a determination module configured to determine a target mapping relationship according to reference data, wherein the reference data includes a reference grayscale value and a reference grayscale compensation value, wherein the reference grayscale compensation value is fuzzy compensation data of the reference grayscale value, and the target mapping relationship represents a mapping relationship between the grayscale value and the grayscale compensation value;
[0033] A compensation module, configured to determine a target grayscale compensation value of the image to be processed according to the target grayscale value of the image to be processed and the target mapping relationship;
[0034] The processing module is configured to perform grayscale compensation on the image to be processed based on the target grayscale compensation value to obtain a processed image.
[0035] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0036] processor;
[0037] a memory for storing processor-executable instructions;
[0038] The processor is configured to execute the method as described in the first aspect of the embodiment of the present disclosure.
[0039] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in the first aspect of the embodiment of the present disclosure.
[0040] The above method disclosed in the present invention has the following beneficial effects: it can compensate for the screen burn-in phenomenon, eliminate screen afterimages, and achieve a better compensation effect, thereby extending the service life of the electronic device screen, reducing the cost of screen replacement, and improving the user experience.
[0041] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0043] Figure 1 is a flow chart showing a burn-in compensation method according to an exemplary embodiment;
[0044] Figure 2 is a flow chart showing a burn-in compensation method according to an exemplary embodiment;
[0045] Figure 3A is a function image between a grayscale compensation value and a grayscale value according to an exemplary embodiment;
[0046] Figure 3B is a function image between a grayscale value after compensation and a target grayscale value according to an exemplary embodiment;
[0047] Figure 4 is a block diagram of a burn-in compensation device according to an exemplary embodiment;
[0048] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0049] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0050] In some embodiments, when the OLED screen of the electronic device has a burn-in phenomenon, the De burn in screen brightness compensation method is used to compensate for the brightness of the image to be displayed on the screen. When the burn-in phenomenon occurs, a high-brightness area (non-burned area) and a low-brightness area (burned area) will appear on the screen. When the De burn in screen brightness compensation method is used to compensate for the brightness of the image to be displayed on the screen, the brightness of the image to be displayed in the high-brightness area is usually directly lowered to make it consistent with the brightness of the image to be displayed in the low-brightness area, thereby ensuring the display effect of the burn-in area.
[0051] However, the de-burn in screen brightness compensation method will cause a significant decrease in the peak brightness of the screen, causing visual effects due to the decrease in brightness, resulting in poor compensation effects. In addition, due to the limitation of compensation precision in the brightness compensation method, it is often impossible to obtain perfect compensation effects for the sharp edges of the burn-in area. In addition, this compensation method can only be executed in the GPU of the electronic device, which will greatly increase the power consumption of the electronic device.
[0052] In an exemplary embodiment of the present disclosure, in order to overcome the screen burn-in phenomenon existing in the related art, a screen burn-in compensation method is provided, including: determining a target mapping relationship according to reference data, the reference data including a reference grayscale value and a reference grayscale compensation value, the reference grayscale compensation value being fuzzy compensation data of the reference grayscale value, and the target mapping relationship representing the mapping relationship between the grayscale value and the grayscale compensation value; determining a target grayscale compensation value of the image to be processed according to the target grayscale value of the image to be processed and the target mapping relationship; performing grayscale compensation on the image to be processed based on the target grayscale compensation value to obtain a processed image. The method can compensate for the screen burn-in phenomenon, eliminate screen afterimages, and achieve a better compensation effect, and the grayscale compensation method can improve the fineness of the compensation effect, further improve the compensation effect, thereby extending the service life of the electronic device screen and reducing the cost of screen replacement.
[0053] In an exemplary embodiment of the present disclosure, a burn-in compensation method is provided. Figure 1 is a flow chart of a burn-in compensation method according to an exemplary embodiment. Figure 1 As shown, the following steps are included:
[0054] Step S101, determining a target mapping relationship according to reference data, the reference data including a reference grayscale value and a reference grayscale compensation value, the reference grayscale compensation value being fuzzy compensation data of the reference grayscale value, and the target mapping relationship representing a mapping relationship between the grayscale value and the grayscale compensation value;
[0055] Step S102, determining a target grayscale compensation value of the image to be processed according to the target grayscale value of the image to be processed and the target mapping relationship;
[0056] Step S103 , performing grayscale compensation on the image to be processed based on the target grayscale compensation value to obtain a processed image.
[0057] The method in the disclosed embodiment is applied to electronic devices with OLED screens, including smart phones, tablet computers, smart wearable devices, computer devices, smart home devices, etc., such as electronic devices used by users on a daily basis or electronic devices used for display in stores. The method in the disclosed embodiment can be executed in the GPU of the electronic device and applied throughout the life cycle of the electronic device. When screen burn-in occurs, it can be compensated in time to extend the service life of the electronic device screen; it can also be executed in hardware and applied to the after-sales processing of the electronic device. When screen burn-in occurs, seek help from after-sales personnel, and the after-sales personnel will add the compensation method in the hardware to alleviate the burn-in phenomenon of the electronic device and reduce the cost of screen replacement.
[0058] In step S101, the reference data is a reference grayscale compensation value corresponding to a display image of a reference grayscale value of the electronic device screen in the current aging state. The reference grayscale compensation value is fuzzy compensation data of the reference grayscale value. The reference grayscale value is compensated by using the fuzzy compensation data, which can achieve the effect of blurring the reference grayscale value, so that the sharper edge of the burn-in area becomes smooth. The number of reference data can be determined according to actual conditions. The more the number of reference data, the more accurate the determined target mapping relationship and the better the compensation effect. Among them, the reference grayscale value is a preset value, for example, the reference grayscale value is 255, 128, 32, and for another example, the reference grayscale value is 128; the reference grayscale compensation value is determined by the compensation effect. For example, in the current aging state of the screen, when the grayscale compensation value of the reference grayscale value of 32 is 10, the compensation effect is the best, and the reference grayscale compensation value is 10.
[0059] Since the compensation requirements of different areas in the screen are different, for example, the compensation for screen areas with different burn-in degrees is different, therefore, the reference data is the reference data for each pixel, and the target mapping relationship is also the target mapping relationship for each pixel.
[0060] The target mapping relationship can be a mapping relationship table between grayscale values and grayscale compensation values, or a functional relationship between grayscale values and grayscale compensation values, wherein the grayscale value represents any grayscale value under the current aging state of the screen. When the target mapping relationship is a mapping relationship table between grayscale values and grayscale compensation values, multiple sets of reference data are obtained, and a mapping relationship table between grayscale ranges and grayscale compensation values is determined based on the multiple sets of reference data; when the target mapping relationship is a functional relationship between grayscale values and grayscale compensation values, the reference grayscale values in the reference data are substituted into the grayscale values of the functional relationship, and the reference grayscale compensation values in the reference data are substituted into the grayscale compensation values of the functional relationship, and the constants in the functional relationship are calculated to obtain the functional relationship between the grayscale values and the grayscale compensation values. Among them, the functional relationship can be a functional relationship in traditional mathematics, or an algorithm in machine learning, and the reference data is used as a training data set of the machine learning algorithm to obtain the algorithm parameters, and the trained algorithm is the target mapping relationship.
[0061] In one example, when the target mapping relationship is a mapping relationship table between grayscale values and grayscale compensation values, the reference grayscale value is recorded as M, the reference grayscale compensation value is recorded as N, and the multiple groups of reference data include: reference grayscale value M1, reference grayscale compensation value N1; reference grayscale value M2, reference grayscale compensation value N2; reference grayscale value M3, reference grayscale compensation value N3. Then the target mapping relationship is: when the grayscale value is within the range of (0, M1), the grayscale compensation value is N1 / 2; when the grayscale value is within the range of (M1, M2), the grayscale compensation value is (N1+N2) / 2; when the grayscale value is within the range of (M2, M3), the grayscale compensation value is (N2+N3) / 2; when the grayscale value is within the range of (M3, 255), the grayscale compensation value is (N3+255) / 2.
[0062] In step S102, the image to be processed is a display image with burn-in phenomenon, and the target grayscale value is the grayscale value of each pixel in the image to be processed. The target grayscale value is substituted into the target mapping relationship to obtain the target grayscale compensation value, that is, the target grayscale compensation value of each pixel in the image to be processed.
[0063] When the target mapping relationship is a mapping relationship table between grayscale values and grayscale compensation values, the grayscale range to which the target grayscale value belongs is determined by querying the table, and the grayscale compensation value corresponding to the grayscale range is the target grayscale compensation value; when the target mapping relationship is a functional relationship between grayscale values and grayscale compensation values, the target grayscale value is substituted into the functional relationship to calculate the corresponding target grayscale compensation value.
[0064] In step S103, after obtaining the target grayscale compensation value of each pixel in the image to be processed, grayscale compensation is performed on each pixel, that is, the target grayscale compensation value is added to the target grayscale value of each pixel to obtain a processed image, that is, a display image after compensation for the burn-in phenomenon.
[0065] When performing grayscale compensation on the image to be processed, the method in this embodiment can be directly used to compensate it, or the method in this embodiment can be superimposed on the existing compensation method to compensate it. For example, after using the De burnin screen brightness compensation method to compensate it, the compensation method in this embodiment can be superimposed to further improve the compensation accuracy.
[0066] In an exemplary embodiment of the present disclosure, a target mapping relationship between a grayscale value and a grayscale compensation value is determined by referring to a grayscale value and a reference grayscale compensation value, and a target grayscale compensation value of a to-be-processed image is determined based on the target mapping relationship. The reference data can accurately reflect the grayscale compensation value required for blurring the screen burn-in phenomenon under the current aging state of the screen. Therefore, by determining the target mapping relationship based on the reference data and performing grayscale compensation on the to-be-processed image based on the target mapping relationship, a blurring effect of the target grayscale value can be obtained. For a relatively shallow screen burn-in phenomenon, the subjective visual effect can be directly restored and the screen afterimage can be eliminated. For a more serious screen burn-in phenomenon, this method can be superimposed on the existing compensation scheme to improve the fineness of the compensation effect of the edge of the screen burn-in area, so that the sharper edge of the screen burn-in area becomes smooth, and the compensation effect is optimized, thereby obtaining a better compensation effect. Moreover, the grayscale compensation method can improve the fineness of the compensation effect, further improve the compensation effect, thereby extending the service life of the electronic device screen and reducing the cost of screen replacement.
[0067] In an exemplary embodiment of the present disclosure, a burn-in compensation method is provided. Figure 2 is a flow chart of a burn-in compensation method according to an exemplary embodiment. Figure 2 As shown, the following steps are included:
[0068] Step S201, performing blur processing on a first reference image whose grayscale value is a reference grayscale value to obtain a second reference image;
[0069] Step S202, obtaining a reference grayscale compensation value according to the first reference image and the second reference image;
[0070] Step S203, forming reference data from the reference grayscale value and the reference grayscale compensation value;
[0071] Step S204, determining a proportionality coefficient between a grayscale value and a grayscale compensation value according to at least two sets of reference data, wherein the reference grayscale values of each set of reference data in the at least two sets of reference data are different;
[0072] Step S205, determining a target mapping relationship according to the proportionality coefficient, where the target mapping relationship represents a functional relationship between the grayscale value and the grayscale compensation value;
[0073] Step S206, determining a target grayscale compensation value of the image to be processed according to the target grayscale value of the image to be processed and the target mapping relationship;
[0074] Step S207 , performing grayscale compensation on the image to be processed based on the target grayscale compensation value to obtain a processed image.
[0075] The specific implementation of step S206 and step S207 refers to step S102 and step S103, which will not be described again.
[0076] In step S201, the first reference image is an image with a burn-in area displayed on the screen of the electronic device in the current aging state, and the second reference image is an image after the burn-in compensation is performed on the first reference image. In order to facilitate subsequent calculations, the first reference image can be a pure color image, that is, the grayscale value of each pixel is a reference grayscale value. The blurring process can be performed by any blurring algorithm, such as by a Gaussian blurring algorithm, and the first reference image is blurred using a Gaussian blurring matrix to obtain a second reference image.
[0077] In step S202 and step S203, the second reference image is the target reference image after grayscale compensation, and the grayscale value of each pixel in the second reference image can be obtained, and the difference between the grayscale value of each pixel in the second reference image and the grayscale value of the pixel in the first reference image at the same pixel position is used as the reference grayscale compensation value. The reference grayscale compensation value can also be calculated based on the brightness information of each pixel in the first reference image and the brightness information of each pixel in the second reference image. The reference grayscale compensation value obtained by corresponding the reference grayscale value and the reference grayscale value constitutes a set of reference data.
[0078] Through blurring processing, the sharper edges of the burned-in area can be smoothed, and the obtained reference grayscale compensation value also has the effect of smoothing the sharper edges of the burned-in area. Therefore, grayscale compensation based on this reference data can obtain a gradual blurring effect. For lighter burn-in phenomena, the subjective visual effect can be directly restored. For more serious burn-in phenomena, this method can be superimposed on the existing compensation scheme to improve the refinement of the compensation effect of the edge of the burned-in area and optimize the compensation effect, thereby obtaining a better compensation effect.
[0079] In some possible implementations, first brightness information of the first reference image and second brightness information of the second reference image are obtained; and a reference grayscale compensation value is determined according to the reference grayscale value, the first brightness information and the second brightness information.
[0080] The first brightness information can be represented by a grayscale value or a brightness value. When the method in this embodiment is executed in the GPU of an electronic device, the brightness information can be obtained by: accumulating and recording the brightness information of each pixel position within a preset time length, and predicting the aging degree of the screen luminous material at each pixel position by establishing a prediction model. When the reference image is displayed on the screen, the brightness information of the reference image can be determined according to the current aging degree; when the method in this embodiment is executed in hardware, the brightness information can be obtained by: displaying the reference image on the screen, shooting the picture with a camera device, and obtaining the brightness information of each pixel. The first brightness information of each pixel in the first reference image and the second brightness information of each pixel in the second reference image are obtained respectively, and the reference grayscale compensation value is calculated according to the gamma value, the reference grayscale value, the first brightness information and the second brightness information.
[0081] In one example, the brightness information is represented by a grayscale value, and the reference grayscale compensation value is determined by the following formula:
[0082]
[0083] Among them, P A_a represents the reference grayscale compensation value, L1 represents the first brightness information, that is, the grayscale value of the pixel at position A in the first reference image, L2 represents the second brightness information, that is, the grayscale value of the pixel at position A in the second reference image, a represents the reference grayscale value of the pixel at position A in the first reference image, γ represents the gamma value, and the gamma value is a preset value determined according to the hardware conditions of the electronic device, for example, the gamma value is 2.2.
[0084] In some possible implementations, reference data of a preset color channel is determined based on a first reference image of a preset color; and a target mapping relationship of the preset color channel is determined based on the reference data of the preset color channel.
[0085] The preset colors include red R, green G, and blue B, and the preset color channels include R channel, G channel, and B channel. The reference data of the R channel is determined based on the red first reference image; the reference data of the G channel is determined based on the green first reference image; and the reference data of the B channel is determined based on the blue first reference image. According to the reference data of each color channel of each pixel, the target mapping relationship of each color channel of each pixel is determined.
[0086] In step S204, the grayscale compensation value and the grayscale value satisfy a linear function relationship. The grayscale compensation value is y, and the grayscale value is x. Then the grayscale compensation value and the grayscale value satisfy: y=kx+b, wherein k and b are constants, and k is a proportionality coefficient.
[0087] A first reference grayscale compensation value is obtained from a first reference image whose grayscale value is a first reference grayscale value and a second reference image corresponding thereto, and the first reference grayscale compensation value and the first reference grayscale compensation value are a set of reference data; a second reference grayscale compensation value is obtained from a first reference image whose grayscale value is a second reference grayscale value and a second reference image corresponding thereto, and the second reference grayscale compensation value and the second reference grayscale compensation value are a set of reference data; and so on, at least two sets of reference data are obtained, wherein the reference grayscale values in each set of reference data are different.
[0088] The reference grayscale value is used as the grayscale value in the above functional relationship, and the reference grayscale compensation value is used as the grayscale compensation value in the above functional relationship. Then, at least two sets of reference data are input into the above functional relationship to calculate the constants k and b.
[0089] In one example, the first reference grayscale value is recorded as a1, the first reference grayscale compensation value is recorded as P1, and the reference data is (a1, P1); the second reference grayscale value is recorded as a2, the second reference grayscale compensation value is recorded as P2, and the reference data is (a2, P2). Substituting into the relationship y=kx+b, the equation group is obtained: Solving gives k and b.
[0090] Step S205, when there is only one set of reference data, (0, 0) can be used as another set of reference data, that is, the reference grayscale value is 0 and the reference grayscale compensation value is 0. At this time, the grayscale compensation value and the grayscale value are proportional, that is, they satisfy: y=kx.
[0091] When two sets of reference data are obtained: a first reference grayscale value and a first reference grayscale compensation value, and a second reference grayscale value and a second reference grayscale compensation value, a linear function relationship between the grayscale compensation value and the grayscale value can be calculated using the two sets of data, or a piecewise function relationship between the grayscale compensation value and the grayscale value can be calculated using the two sets of data and (0, 0) reference data.
[0092] In one example, a proportionality coefficient k1 is calculated by (0, 0) and (a1, P1), a proportionality coefficient k2 and a constant b are calculated by (a1, P1) and (a2, P2), and the piecewise function is obtained. Figure 3A is a function image between the grayscale compensation value and the grayscale value according to an exemplary embodiment. Figure 3A As shown, the abscissa is the grayscale value x, the ordinate is the grayscale compensation value y, the first straight line corresponds to y=k1x, and the second straight line corresponds to y=k2x+b.
[0093] In some possible implementations, in order to facilitate the acquisition of the grayscale value of the compensated image, the functional relationship between the grayscale value after compensation and the grayscale value before compensation can be further calculated, that is, the grayscale compensation value is added to the target grayscale value, and the grayscale value after compensation is recorded as Y, then Y and x satisfy: Y=y+x=kx+b+x. Figure 3B is a function image between the grayscale value after compensation and the target grayscale value according to an exemplary embodiment, such as Figure 3B As shown, the horizontal axis is the grayscale value x before compensation, that is, the target grayscale value x, and the vertical axis is the grayscale value Y after compensation. The straight line l represents the relationship between Y and x in the image to be processed, that is, Y=x, and the straight line m represents the relationship between Y and x in the processed image, that is, Y=y+x, where y is the grayscale compensation value.
[0094] It should be noted that, the more the amount of reference data is, the more the obtained target mapping relationship fits the current screen aging state, the more accurate the obtained target grayscale compensation value is, and the better the compensation effect is.
[0095] In step S206 and step S207, when the target mapping relationship is a target mapping relationship of a preset color channel, the target grayscale compensation value of each color channel of each pixel in the image to be processed is obtained according to the target grayscale value of each color channel of each pixel in the image to be processed and the target mapping relationship, and each color channel of each pixel is compensated based on the target grayscale compensation value to obtain a processed image.
[0096] Since the aging degree of luminescent materials of different colors is different, the impact of the burn-in phenomenon on the grayscale values of different color channels is also different. Therefore, performing grayscale compensation for each color channel can obtain a better compensation effect.
[0097] In some possible implementations, the above embodiment further includes the following steps:
[0098] S1, updating reference data based on a preset time interval;
[0099] S2, determining an updated target mapping relationship according to the updated reference data;
[0100] S3, determining a target grayscale compensation value of the image to be processed according to the target grayscale value of the image to be processed and the updated target mapping relationship;
[0101] S4, performing grayscale compensation on the image to be processed based on the target grayscale compensation value to obtain a processed image.
[0102] As the usage time of electronic devices increases, the aging degree of electronic device screens continues to change. In order to ensure that the screen adapts to the current aging degree, the reference data is updated based on a preset time interval, and the target mapping relationship is updated based on the updated reference data. Grayscale compensation is performed on the processed image based on the updated target mapping relationship, and the compensation effect can still be ensured when the burn-in area changes.
[0103] In an exemplary embodiment of the present disclosure, a burn-in compensation device is provided. Figure 4 is a block diagram of a burn-in compensation device according to an exemplary embodiment. Figure 4 As shown, the device comprises:
[0104] A determination module 401 is configured to determine a target mapping relationship according to reference data, the reference data including a reference grayscale value and a reference grayscale compensation value, the reference grayscale compensation value being fuzzy compensation data of the reference grayscale value, and the target mapping relationship representing a mapping relationship between the grayscale value and the grayscale compensation value;
[0105] The compensation module 402 is configured to determine a target grayscale compensation value of the image to be processed according to the target grayscale value of the image to be processed and the target mapping relationship;
[0106] The processing module 403 is configured to perform grayscale compensation on the image to be processed based on the target grayscale compensation value to obtain a processed image.
[0107] In an exemplary embodiment, the grayscale compensation value and the reference grayscale value satisfy a linear functional relationship, and the target mapping relationship represents a functional relationship between the grayscale value and the grayscale compensation value;
[0108] The determination module 401 is further configured to:
[0109] Determining a proportionality coefficient between a grayscale value and a grayscale compensation value according to at least two sets of reference data, wherein the reference grayscale value of each set of reference data in the at least two sets of reference data is different;
[0110] Determine the functional relationship based on the proportionality coefficient.
[0111] In an exemplary embodiment, the apparatus further includes an acquisition module 404 configured to:
[0112] Performing blur processing on a first reference image whose grayscale value is a reference grayscale value to obtain a second reference image;
[0113] Obtaining a reference grayscale compensation value according to the first reference image and the second reference image;
[0114] The reference data is composed of a reference grayscale value and a reference grayscale compensation value.
[0115] In an exemplary embodiment, the determination module 401 is further configured to:
[0116] Determining reference data of a preset color channel according to a first reference image of a preset color;
[0117] According to the reference data of the preset color channel, a target mapping relationship of the preset color channel is determined.
[0118] In an exemplary embodiment, the acquisition module 404 is further configured to:
[0119] Acquire first brightness information of a first reference image and second brightness information of a second reference image;
[0120] A reference grayscale compensation value is determined according to the reference grayscale value, the first brightness information and the second brightness information.
[0121] In an exemplary embodiment, the acquisition module 404 is further configured to:
[0122] The reference grayscale compensation value is determined by the following formula:
[0123]
[0124] Among them, P 2_a represents the reference grayscale compensation value, L1 represents the first brightness information, L2 represents the second brightness information, a represents the reference grayscale value, and γ represents the gamma value.
[0125] In an exemplary embodiment, the determination module 401 is further configured to:
[0126] Based on a preset time interval, updating the reference data;
[0127] An updated target mapping relationship is determined according to the updated reference data.
[0128] In an exemplary embodiment, the compensation module 402 is further configured to:
[0129] The target grayscale compensation value of the image to be processed is determined according to the target grayscale value of the image to be processed and the updated target mapping relationship.
[0130] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0131] Figure 5 is a block diagram of an electronic device 500 according to an exemplary embodiment.
[0132] Reference Figure 5, the electronic device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .
[0133] The processing component 502 generally controls the overall operation of the electronic device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
[0134] The memory 504 is configured to store various types of data to support operations on the electronic device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device 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 memory, flash memory, magnetic disk or optical disk.
[0135] The power supply component 506 provides power to the various components of the electronic device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 500.
[0136] The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0137] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the electronic device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
[0138] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0139] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 can detect the open / closed state of the electronic device 500, the relative positioning of components, such as the display and keypad of the electronic device 500, and the sensor assembly 514 can also detect the position change of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, the orientation or acceleration / deceleration of the electronic device 500, and the temperature change of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0140] The communication component 516 is configured to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 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 516 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 516 also 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) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0141] In an exemplary embodiment, the electronic device 500 may 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, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0142] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of an electronic device 500 to perform the above 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 disk, an optical data storage device, etc.
[0143] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform a burn-in compensation method, the method including any of the above methods.
[0144] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0145] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A burn-in compensation method, characterized in that: The method comprises: Determine a target mapping relationship according to reference data, wherein the reference data includes a reference grayscale value and a reference grayscale compensation value, wherein the reference grayscale compensation value is fuzzy compensation data of the reference grayscale value, and the target mapping relationship represents a mapping relationship between the grayscale value and the grayscale compensation value; Determining a target grayscale compensation value of the image to be processed according to the target grayscale value of the image to be processed and the target mapping relationship; Based on the target grayscale compensation value, grayscale compensation is performed on the image to be processed to obtain a processed image.
2. The burn-in compensation method according to claim 1, characterized in that: The grayscale compensation value and the reference grayscale value satisfy a linear functional relationship, and the target mapping relationship represents a functional relationship between the grayscale value and the grayscale compensation value; Determining the target mapping relationship according to the reference data includes: Determining a proportionality coefficient between a grayscale value and a grayscale compensation value according to at least two groups of reference data, wherein the reference grayscale values of each group of reference data in the at least two groups of reference data are different; The functional relationship is determined according to the proportionality coefficient.
3. The burn-in compensation method according to claim 1, characterized in that: The method further comprises: Performing blur processing on a first reference image whose grayscale value is a reference grayscale value to obtain a second reference image; Obtaining the reference grayscale compensation value according to the first reference image and the second reference image; The reference data is composed of the reference grayscale value and the reference grayscale compensation value.
4. The burn-in compensation method according to claim 3, characterized in that: Determining the target mapping relationship according to the reference data includes: Determining the reference data of a preset color channel according to the first reference image of a preset color; The target mapping relationship of the preset color channel is determined according to the reference data of the preset color channel.
5. The burn-in compensation method according to claim 3, characterized in that: The obtaining the reference grayscale compensation value according to the first reference image and the second reference image includes: Acquire first brightness information of the first reference image and second brightness information of the second reference image; The reference grayscale compensation value is determined according to the reference grayscale value, the first brightness information, and the second brightness information.
6. The burn-in compensation method according to claim 5, characterized in that: The determining the reference grayscale compensation value according to the reference grayscale value, the first brightness information and the second brightness information includes: The reference grayscale compensation value is determined by the following formula: Among them, P A_a represents the reference grayscale compensation value, L1 represents the first brightness information, L2 represents the second brightness information, a represents the reference grayscale value, and γ represents the gamma value.
7. The screen burn-in compensation method according to claim 1, characterized in that: The method further comprises: Based on a preset time interval, updating the reference data; Determine an updated target mapping relationship according to the updated reference data; Determining a target grayscale compensation value of the image to be processed according to the target grayscale value of the image to be processed and the updated target mapping relationship; Based on the target grayscale compensation value, grayscale compensation is performed on the image to be processed to obtain a processed image.
8. A burn-in compensation device, characterized in that: The device comprises: a determination module configured to determine a target mapping relationship according to reference data, wherein the reference data includes a reference grayscale value and a reference grayscale compensation value, wherein the reference grayscale compensation value is fuzzy compensation data of the reference grayscale value, and the target mapping relationship represents a mapping relationship between the grayscale value and the grayscale compensation value; A compensation module, configured to determine a target grayscale compensation value of the image to be processed according to the target grayscale value of the image to be processed and the target mapping relationship; The processing module is configured to perform grayscale compensation on the image to be processed based on the target grayscale compensation value to obtain a processed image.
9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method as claimed in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 7.
Citation Information
Patent Citations
Compensation method, device and system of display panel
CN112908257A
Screen brightness control apparatus and method
CN113228152A
Screen display method and device and gray-scale mapping information generation method and device
CN113450713A
Testing device
CN113903284A
Image display device
JP2009251026A
Cited By
Screen compensation method and device, electronic equipment and computer readable storage medium
CN120580949A