Gray scale compensation method, electronic equipment and computer readable storage medium
By combining the grayscale compensation information of high display brightness value and low display brightness value in electronic equipment, the accurate grayscale compensation value is calculated, and the grayscale compensation is performed on the display screen, which solves the problem of brightness inconsistency of the display screen in the low brightness range. solve all problems and improve the user experience.
Patent Information
- Application Number
- CN202310193092.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-08-23
Smart Images

Figure CN118538136A
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a grayscale compensation method, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the development of display technology, display screens are being used more and more widely, and the corresponding requirements for display screens are getting higher and higher, especially the display quality of display screens. However, due to reasons such as materials and processes during the production of display screens, some products may have uneven screen brightness, which is called Mura. This uneven brightness spot mark will cause visual discomfort.
[0003] In order to improve the brightness display effect of the display screen, generally, when the display brightness value (DBV) of the display screen is constant, the grayscale value of the area to be brightness compensated in the display screen will be increased or decreased to a certain value so that the display screen reaches the expected brightness and the display brightness of the display screen is uniform.
[0004] In general, existing electronic devices include two display brightness value adjustment modes: direct current (DC) dimming mode and pulse width modulation (PWM) dimming mode. The PWM dimming mode corresponds to a low display brightness value range, and the DC dimming mode corresponds to a high display brightness value range. In this display brightness value adjustment mode, an existing brightness compensation scheme is grayscale compensation, which improves brightness uniformity by changing the grayscale of pixels. Specifically, the electronic device only stores grayscale compensation values under high display brightness values. When the electronic device performs brightness compensation on the display screen, in the high display brightness value range, a mapping method can be used to expand or reduce the grayscale compensation value corresponding to the high display brightness value stored in the electronic device by a certain multiple and then apply it to the brightness compensation under other display brightness values in the high display brightness value range. In the low display brightness value range, similarly, a mapping method is used to expand or reduce the grayscale compensation value corresponding to the high display brightness value stored in the electronic device by a certain multiple and then apply it to the brightness compensation under the display brightness value in the low display brightness value range.
[0005] However, since the shapes and compensation degrees of the areas to be compensated for brightness in the low display brightness value range and the high display brightness value range are different, the grayscale compensation value stored in the electronic device that conforms to the shape and compensation degree of the areas to be compensated for brightness in the high display brightness value range is enlarged or reduced by a certain multiple and applied to the brightness compensation under the display brightness values in the low display brightness value range, and the brightness compensation is inaccurate. In this way, in the low display brightness value range, the display screen still has a relatively obvious uneven brightness display phenomenon during the display process, the brightness compensation effect is poor, and the user experience is poor. Summary of the invention
[0006] The embodiments of the present application provide a grayscale compensation method, an electronic device, and a computer-readable storage medium, which are used to solve the problem that in a low display brightness value range, a display screen still has obvious uneven brightness display during the display process, the brightness compensation effect is poor, and the user experience is poor.
[0007] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0008] In a first aspect, a grayscale compensation method is provided, and the method is applied to an electronic device, wherein the electronic device includes a display screen, and the display screen includes a pulse width modulation dimming mode and a direct current dimming mode, the pulse width modulation dimming mode corresponds to a first display brightness value range, and the direct current dimming mode corresponds to a second display brightness value range; first compensation information and second compensation information are stored in the electronic device; the first compensation information includes one or more first display brightness values within the first display brightness value range, and multiple grayscale compensation values at each first display brightness value; the second compensation information includes one or more second display brightness values within the second display brightness value range, and multiple grayscale compensation values at each second display brightness value; the multiple grayscale compensation values are related to the display screen The method comprises: receiving a first operation, the first operation being used to trigger the electronic device to display a first image; in response to the first operation, obtaining a current display brightness value of the display screen and a grayscale value of each pixel in the area to be brightness compensated in the first image; if the first display brightness value is within a first display brightness value range, calculating a plurality of first grayscale compensation values according to the current display brightness value, at least one first display brightness value in the first compensation information and a plurality of grayscale compensation values corresponding to the first display brightness value, any second display brightness value in the second compensation information and a plurality of grayscale compensation values corresponding to the second display brightness value; and performing grayscale compensation on each pixel in the first image respectively using the plurality of first grayscale compensation values.
[0009] It should be noted that the first display brightness value range is also called a low display brightness value range, and the second display brightness value range is also called a high display brightness value range.
[0010] In this way, compared to the grayscale compensation value stored in the electronic device that meets the shape and compensation degree of the area to be compensated for brightness under the high display brightness value range, and then expanding or reducing it by a certain multiple and applying it to the brightness compensation under the low display brightness value that does not meet the shape and compensation degree of the area to be compensated for brightness under the high display brightness value range, this scheme can use the grayscale compensation value under the high display brightness value and the grayscale compensation value of the display screen under the low display brightness value to obtain a more accurate grayscale compensation value, so as to reduce or even eliminate the phenomenon of uneven brightness display of the display screen during the display process, thereby improving the user experience.
[0011] In a possible implementation manner of the first aspect, the second compensation information includes multiple second display brightness values within a second display brightness value range, and multiple grayscale compensation values at each second display brightness value; the multiple second display brightness values include a current display brightness value; the method also includes: if the first display brightness value is within the second display brightness value range, obtaining multiple second grayscale compensation values at the current display brightness value from the second compensation information, and using the multiple second grayscale compensation values to perform grayscale compensation on pixels in the first image.
[0012] In a possible implementation manner of the first aspect, at least one first display brightness value includes a display brightness value upper limit value and a third display brightness value in a first display brightness value range, and the third display brightness value is any first display brightness value in the first display brightness value range except the display brightness value upper limit value; and according to a current display brightness value, at least one first display brightness value in the first compensation information and a plurality of grayscale compensation values corresponding to the first display brightness value, any second display brightness value in the second compensation information and a plurality of grayscale compensation values corresponding to the second display brightness value, calculating a plurality of first grayscale compensation values, including: calculating a current display brightness The method comprises the following steps: calculating a display brightness value difference between the third display brightness value and the third display brightness value, and calculating a display brightness value difference between the upper limit value of the display brightness value of the first display brightness value range and any second display brightness value; respectively calculating grayscale differences between multiple grayscale compensation values under the third display brightness value and multiple grayscale compensation values under the upper limit value of the display brightness value of the first display brightness value range, and respectively calculating grayscale differences between multiple grayscale compensation values under the upper limit value of the display brightness value of the first display brightness value range and multiple grayscale compensation values under any second display brightness value; and calculating multiple first grayscale compensation values based on the calculated display brightness value difference and grayscale difference in combination with a preset weighting coefficient.
[0013] In a possible implementation of the first aspect, based on the calculated display brightness value difference and grayscale difference, combined with a preset weighting coefficient, a plurality of first grayscale compensation values are calculated, including: using the following first formula to calculate the display brightness value difference and the grayscale difference to obtain the plurality of first grayscale compensation values,
[0014]
[0015] Among them, GS (i,j) represents the first grayscale compensation value of the pixel point (i, j), ΔDBV1 represents the display brightness value difference between the current display brightness value and the third display brightness value, and ΔDBV2 represents the display brightness value difference between the display brightness value upper limit value of the first display brightness value range and any second display brightness value; represents the grayscale difference between the grayscale compensation value of the pixel point (i, j) at the third display brightness value and the grayscale compensation value of the pixel point (i, j) at the upper limit value of the display brightness value of the first display brightness value range, Represents the grayscale difference between the grayscale compensation value of the pixel point (i, j) at the upper limit of the display brightness value of the first display brightness value range and the grayscale compensation value of the pixel point (i, j) at any second display brightness value; m and n are preset weighting coefficients.
[0016] In a possible implementation manner of the first aspect, at least one first display brightness value is any first display brightness value within a first display brightness value range; and multiple first grayscale compensation values are calculated according to a current display brightness value, at least one first display brightness value in the first compensation information, and multiple grayscale compensation values corresponding to the first display brightness value, any second display brightness value in the second compensation information, and multiple grayscale compensation values corresponding to the second display brightness value, including: calculating a display brightness value difference between a current display brightness value and a second display brightness value, and calculating a display brightness value difference between the second display brightness value and any first display brightness value; respectively calculating grayscale differences between multiple grayscale compensation values under the second display brightness value and multiple grayscale compensation values under the second display brightness value, and respectively calculating grayscale differences between multiple grayscale compensation values under the second display brightness value and multiple grayscale compensation values under any second display brightness value; and calculating multiple first grayscale compensation values based on the calculated display brightness value difference and grayscale difference in combination with a preset weighting coefficient.
[0017] In a possible implementation manner of the first aspect, based on the calculated display brightness value difference and grayscale difference, combined with a preset weighting coefficient, a plurality of first grayscale compensation values are calculated, including:
[0018] The display brightness value difference and the grayscale difference are calculated using the following second formula to obtain a plurality of first grayscale compensation values:
[0019]
[0020] Among them, GS (i,j) represents the first grayscale compensation value of the pixel point (i, j), ΔDBV1 represents the display brightness value difference between the current display brightness value and the first display brightness value, represents the grayscale difference between the grayscale compensation value of the pixel point (i, j) under the first display brightness value and the grayscale compensation value of the pixel point (i, j) under the second display brightness value, ΔDBV2 represents the display brightness value difference between the current display brightness value and the second display brightness value, and m and n are preset weighting coefficients.
[0021] In a possible implementation manner of the first aspect, the method further includes: displaying the first image after grayscale compensation.
[0022] In a second aspect, a method for testing grayscale compensation values is provided, the method being used to test the grayscale compensation values of each pixel on a display screen of an electronic device at different display brightness values, the electronic device comprising a pulse width modulation dimming mode and a direct current dimming mode, the pulse width modulation dimming mode corresponding to a first display brightness value range, the first display brightness value range including a plurality of first display brightness values, the direct current dimming mode corresponding to a second display brightness value range, the first display brightness value range including a plurality of second display brightness values; the method comprising: for each first display brightness value, controlling the display screen to display a plurality of first grayscale images when the brightness of the display screen is the first display brightness value; wherein the grayscale values of each pixel in each first grayscale image are the same, and the grayscale values of different first grayscale images are different. different; obtain multiple first grayscale images taken by a preset camera; analyze the multiple first grayscale images to obtain multiple grayscale compensation values under the first display brightness value; wherein the multiple grayscale compensation values under the first display brightness value correspond one-to-one to multiple pixel points of the display screen; for each second display brightness value, control the display screen to display multiple second grayscale images when the brightness of the display screen is the second display brightness value; wherein the grayscale values of each pixel point in each second grayscale image are the same, and the grayscale values of different second grayscale images are different; obtain multiple second grayscale images taken by a preset camera; analyze the multiple second grayscale images to obtain multiple grayscale compensation values under the second display brightness value; wherein the multiple grayscale compensation values under the second display brightness value correspond one-to-one to multiple pixel points of the display screen.
[0023] The first compensation information and the second compensation information in the first aspect can be obtained through this solution. In this way, the electronic device can obtain a more accurate grayscale compensation value by using the grayscale compensation value at a high display brightness value in the second compensation information and the grayscale compensation value of the display screen at a low display brightness value in the first compensation information, so as to reduce or even eliminate the phenomenon of uneven brightness display of the display screen during the display process, thereby improving the user experience.
[0024] In a possible implementation manner of the second aspect, the method further includes: storing first compensation information, the first compensation information including: multiple first display brightness values, and multiple grayscale compensation values under each first display brightness value; storing second compensation information, the second compensation information including: multiple second display brightness values, and multiple grayscale compensation values under each second display brightness value.
[0025] In a third aspect, an electronic device is provided, comprising a memory and one or more processors; the memory is used to store code instructions; the processor is used to run the code instructions so that the electronic device executes a method in any possible design manner in the first aspect.
[0026] In a fourth aspect, an electronic device is provided, comprising a memory and one or more processors; the memory is used to store code instructions; the processor is used to run the code instructions so that the electronic device executes a method in any possible design manner in the second aspect.
[0027] In a fifth aspect, a computer-readable storage medium is provided, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes a method in any possible design manner in the first aspect.
[0028] In a sixth aspect, a computer-readable storage medium is provided, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes a method in any possible design manner in the second aspect.
[0029] In a seventh aspect, a computer program product is provided, comprising a computer program / instruction, which, when executed by a processor, implements the method in any possible design manner in the first aspect.
[0030] In an eighth aspect, a computer program product is provided, comprising a computer program / instruction, which, when executed by a processor, implements the method in any possible design manner in the second aspect.
[0031] Among them, the technical effects brought about by any one of the design methods in the third aspect, the fifth aspect and the seventh aspect can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. The technical effects brought about by any one of the design methods in the fourth aspect, the sixth aspect and the eighth aspect can refer to the technical effects brought about by different design methods in the corresponding second aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram showing a DC voltage waveform and a PWM waveform;
[0033] Figure 2 A schematic diagram of dividing the display brightness value range is shown;
[0034] Figure 3 According to some embodiments of the present application, a schematic diagram of the structure of a mobile phone is shown;
[0035] Figure 4 According to some embodiments of the present application, a schematic diagram of a scene in a grayscale compensation value data generation stage is shown;
[0036] Figure 5 A schematic diagram of the operation process of a grayscale compensation value data generation stage is shown;
[0037] Figure 6 According to some embodiments of the present application, a flow chart of a method for testing a grayscale compensation value is shown;
[0038] Figure 7 A schematic diagram of a pixel structure of a display screen is shown;
[0039] Figure 8 According to some embodiments of the present application, a schematic flow chart of a grayscale compensation method is shown;
[0040] Fig. 9 A schematic diagram for determining grayscale compensation value;
[0041] Fig.10 A schematic diagram showing a curve of grayscale compensation values corresponding to various grayscale values under the same display brightness value;
[0042] Fig.11 A schematic diagram of a curve showing grayscale compensation values corresponding to each grayscale value under multiple display brightness values is shown. DETAILED DESCRIPTION
[0043] Illustrative embodiments of the present application include, but are not limited to, a grayscale compensation method, an electronic device, and a computer-readable storage medium.
[0044] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the described embodiments are only embodiments of a part of the present application, rather than all embodiments. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0045] In order to better illustrate the technical solution of the present application, some terms involved in the present application are briefly summarized below.
[0046] (1) Display Brightness Value (DBV). The display brightness value is used to reflect the brightness of the display screen when displaying an image.
[0047] To provide users with a good visual experience, an electronic device usually pre-sets a display brightness value adjustment range for adjusting the brightness of the display screen. For example, the value range of the display brightness value can be set to [1, 3515]. The electronic device adjusts the display brightness of the display screen in response to the user's adjustment operation of the display brightness value. Generally, when the ambient light is strong, the electronic device can increase the display brightness value of the display screen so that the user can clearly see the content displayed on the display screen. When the ambient light is weak, the electronic device can reduce the display brightness value to avoid the user's eyes from stinging due to the excessive brightness difference between the ambient light and the display screen. Among them, the display screen can be an Organic Light-Emitting Diode (OLED). Moreover, since the display brightness of the OLED display screen is determined by the voltage difference across each OLED in the OLED display screen, therefore, adjusting the display brightness value of the OLED display screen is actually adjusting the voltage difference across each OLED in the OLED display screen. However, it is not limited to this.
[0048] (2) Luminance. Luminance refers to the brightness of an image. The actual luminance value of the image presented by the display screen at a certain display brightness value. The unit is candela per square meter (cd / m2) or nits.
[0049] (3) Mura. Mura is the Romanized spelling of the Japanese Chinese character "spot" 〔むら〕. With the promotion of Japanese liquid crystal display screens around the world, in the display screen industry, mura means that the display brightness of the display screen is uneven, resulting in various trace phenomena.
[0050] (4) Gray scale. The gray scale is used to reflect the brightness level of the image on the display screen. Each display brightness value corresponds to a preset gray scale value. For example, one display brightness value corresponds to 256 gray scale values from 0 to 255.
[0051] (5) External compensation. External compensation refers to a method of perceiving the electrical or optical characteristics of pixels through an external drive circuit or device and then performing brightness compensation. External compensation requires extracting compensation data, and there are mainly two extraction methods: electrical compensation and optical compensation.
[0052] This application mainly refers to optical compensation. It should be noted that the optical compensation method is to compensate based on brightness. For example, the organic light-emitting diode (OLED) is used as a light-emitting device for a display screen. The reason for the uneven brightness of the displayed image is the difference in the characteristics of the OLED pixel light emission. A camera can be used to record the final brightness of these pixels, and each pixel can be compensated according to these brightness values.
[0053] As described in the background technology above, since the shapes and compensation degrees of the areas to be compensated for brightness in the low display brightness value range and the high display brightness value range are different, the grayscale compensation value stored in the electronic device that conforms to the shape and compensation degree of the areas to be compensated for brightness in the high display brightness value range is enlarged or reduced by a certain multiple and applied to the brightness compensation under the display brightness value in the low display brightness value range, and the brightness compensation is inaccurate. In this way, in the low display brightness value range, the display screen still has a relatively obvious uneven brightness display phenomenon during the display process, the brightness compensation effect is poor, and the user experience is poor.
[0054] It should be noted that the electronic device may include two brightness adjustment modes: a direct current (DC) dimming mode and a pulse width modulation (PWM) dimming mode.
[0055] The principle of DC dimming mode is derived from the formula "power = voltage × current", that is, the brightness of the display screen is changed by increasing or decreasing the current or voltage. Figure 1 A schematic diagram of a DC voltage waveform and a PWM waveform is shown. The voltage can be as follows Figure 1 The DC voltage waveform in FIG1 is shown in FIG1. The advantage of the DC dimming mode is that the screen does not flicker, but the disadvantage is that the color is uneven at low display brightness.
[0056] PWM dimming mode is a method of alternating the screen from "on → off → on → off" at a certain frequency in a very short period of time. By adjusting the ratio of "on" and "off" time (for example, Figure 1The PWM waveform 2 and PWM waveform 3 shown in the figure have different time ratios of "on" and "off" to achieve screen brightness adjustment from 0% to 100%. In this process, the display screen does not really dim or brighten, but gives the human eye a feeling of dimming or brightening. For example, by extending the duration of the screen-off state (shortening the screen-on time) and taking advantage of the visual persistence phenomenon of the human eye, the eye can be given the illusion that the screen seems to have dimmed. Conversely, if the time in the screen-on state is extended (shortening the screen-off time), the screen will feel brighter. The advantages of the PWM dimming mode are simple structure, no color cast problems, power saving and low heat generation. The disadvantage is the presence of stroboscopic phenomena at high display brightness.
[0057] Therefore, electronic devices generally use PWM dimming mode when the display brightness value of the display screen is in the above-mentioned low display brightness value range; and use DC dimming mode when the display brightness value of the display screen is in the high display brightness value range. Among them, the PWM dimming mode corresponds to the low display brightness value range (also called the first display brightness value range), and the DC dimming mode corresponds to the high display brightness value range (also called the second display brightness value range). In some products, the low display brightness value range can refer to 1 to 1291, and the high display brightness value range can refer to 1291 to 3515. For example, Figure 2 As shown, Figure 2 A schematic diagram of dividing the display brightness value range is shown.
[0058] In order to solve the technical problems in the background technology, an embodiment of the present application proposes a grayscale compensation method. In this method, the first compensation information and the second compensation information can be pre-stored in the electronic device. The first compensation information includes one or more low display brightness values (also referred to as the first display brightness value) within the low display brightness value range, and multiple grayscale compensation values under each low display brightness value. The second compensation information includes one or more high display brightness values (also referred to as the second display brightness value) within the high display brightness value range, and multiple grayscale compensation values under each high display brightness value. The multiple grayscale compensation values correspond one to one with multiple pixel points on the display screen. Among them, the above-mentioned low display brightness value (i.e., the first display brightness value) and the high display brightness value (i.e., the second display brightness value) are the DBV of the display screen of the electronic device.
[0059] The electronic device can obtain the current display brightness value of the current image displayed on the display screen. If the current display brightness value corresponds to the low display brightness value range in the PWM dimming mode, the electronic device can perform the following brightness compensation on the image: using the grayscale compensation value at the high display brightness value in the high display brightness value range corresponding to the DC dimming mode, and the grayscale compensation value at the low display brightness value in the low display brightness value range, to obtain the grayscale compensation value at the current display brightness value between the high display brightness value and the low display brightness value; using the grayscale compensation to perform grayscale compensation on the pixels to be compensated in the area to be compensated in the current image. In this way, compared with the grayscale compensation value stored by the electronic device that meets the shape and compensation degree of the area to be compensated in the high display brightness value range, and then expanding or reducing it by a certain multiple and applying it to the brightness compensation under the shape and compensation degree of the area to be compensated in the high display brightness value range, which does not meet the shape and compensation degree of the area to be compensated in the high display brightness value range, this solution can use the grayscale compensation value at the high display brightness value and the grayscale compensation value of the display screen at the low display brightness value to obtain a more accurate grayscale compensation value, so as to reduce or even eliminate the phenomenon of uneven brightness display of the display screen during the display process, and improve the user experience.
[0060] Exemplarily, the electronic device in the embodiments of the present application may be a device with a display screen, such as a mobile phone, a tablet computer, a notebook computer, or an ultra-mobile personal computer (UMPC).
[0061] In the embodiment of the present application, taking the above-mentioned electronic device as a mobile phone as an example, a structural schematic diagram of the mobile phone is shown. Figure 3 According to some embodiments of the present application, a schematic diagram of the structure of a mobile phone is shown. Figure 3 As shown, the mobile phone 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0062] It is to be understood that the structure shown in this embodiment does not constitute a specific limitation on the mobile phone 100. In other embodiments, the mobile phone 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0063] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processor (NPU), a microcontroller unit (MCU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0064] The controller may be the nerve center and command center of the mobile phone 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions. For example, in an embodiment of the present application, the processor 110 utilizes the grayscale compensation value at the high display brightness value in the high display brightness value range corresponding to the DC dimming mode, and the grayscale compensation value at the low display brightness value in the low display brightness value range, to obtain the grayscale compensation value at the current display brightness value between the high display brightness value and the low display brightness value, and uses the grayscale compensation to perform grayscale compensation on the pixels to be compensated for brightness in the area to be compensated for brightness in the current image. The processor 110 may also be used to control the display screen 194 to display a brightness-compensated image.
[0065] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0066] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0067] It is understandable that the interface connection relationship between the modules shown in this embodiment is only a schematic illustration and does not constitute a structural limitation on the mobile phone 100. In other embodiments, the mobile phone 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0068] The charging management module 140 is used to receive charging input from the charger. While the charging management module 140 is charging the battery 142, it can also power the mobile phone 100 through the power management module 141. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and powers the processor 110, the internal memory 121, the sensor module 180, the display screen 194, the camera 193 and the wireless communication module 160. In some embodiments, the power management module 141 can also be set in the processor 110, or in the same device.
[0069] The wireless communication function of the mobile phone 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0070] The mobile phone 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information. For example, in an embodiment of the present application, the processor 110 may execute program instructions to generate a GPU including the above-mentioned second temperature value.
[0071] The display screen 194 is used to display images, videos, etc. For example, the display screen 194 can display an image after grayscale compensation in an embodiment of the present application.
[0072] The display screen 194 includes a display screen 194. The display screen 194 can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini LED, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
[0073] The mobile phone 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0074] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the mobile phone 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0075] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0076] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the mobile phone 100 by running the instructions stored in the internal memory 121. In addition to the program storage area, the internal memory 121 also includes a data storage area. In the embodiment of the present application, the internal memory 121 can store the executable program code corresponding to the grayscale compensation method provided in the embodiment of the present application, the grayscale compensation value of the display screen 194 at a high display brightness value, and the grayscale compensation value of the display screen 194 at a low display brightness value. Specifically, the first compensation information and the second compensation information can be pre-stored in the internal memory 121. The first compensation information includes one or more low display brightness values within the low display brightness value range, and multiple grayscale compensation values under each low display brightness value. The second compensation information includes one or more high display brightness values within the high display brightness value range, and multiple grayscale compensation values under each high display brightness value. The multiple grayscale compensation values correspond to multiple pixel points on the display screen one by one. Among them, the above-mentioned low display brightness value and high display brightness value are the DBV of the display screen of the mobile phone 100.
[0077] The mobile phone 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.
[0078] The key 190 includes a power key, a volume key, etc. The key 190 can be a mechanical key or a touch key. The mobile phone 100 can receive key input and generate key signal input related to the user settings and function control of the mobile phone 100.
[0079] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
[0080] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0081] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the mobile phone 100 by inserting the SIM card interface 195 or pulling the SIM card interface 195 out. The mobile phone 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
[0082] The technical solution of the present application will be introduced below by taking the electronic device as a mobile phone 100 as an example.
[0083] It can be understood that the method of the embodiment of the present application may include three stages: stage (1), stage (2) and stage (3). Stage (1): grayscale compensation value generation stage, in which the grayscale compensation value of the display screen 194 of the mobile phone 100 at a high display brightness value and the grayscale compensation value of the display screen 194 at a low display brightness value can be obtained. And the aforementioned grayscale compensation value is generated by the computer 300. Stage (2): storage stage of the aforementioned grayscale compensation value. Stage (3): use stage of the aforementioned grayscale compensation value. The aforementioned grayscale compensation value can be stored in the mobile phone 100, and then, when the display screen 194 displays an image, the mobile phone 100 can use the aforementioned grayscale compensation value to perform brightness compensation on the displayed image of the display screen 194 of the mobile phone.
[0084] First, the embodiment of the present application introduces the above-mentioned stage (1), namely, the grayscale compensation value data generation stage.
[0085] In stage (1), a camera (such as camera 200) for photographing the mura effect, an electronic device (such as computer 300) for calculating the grayscale compensation value of the product to be tested, and the product to be tested (such as mobile phone 100) cooperate to complete the generation of the grayscale compensation value. Among them, the mobile phone 100 has a display screen 194, and the camera 200 can use a high-precision and high-resolution charge-coupled device (CCD) camera, but is not limited to this. The above-mentioned mura effect can also be called a mura linear effect.
[0086] For example, Figure 4 According to some embodiments of the present application, a schematic diagram of a scene in the grayscale compensation value data generation stage is shown. The scene includes a mobile phone 100, a camera 200 and a computer 300.
[0087] In this application scenario, after the mobile phone 100 is placed on the platform, the signal source can be connected to the mobile phone 100 through an external pin, and then the signal source transmits an electrical signal to the mobile phone 100 to obtain a grayscale image. The mobile phone 100 can control the display screen 194 to display the above grayscale image at different display brightness values DBV. Then, the camera 200 captures the image displayed on the display screen 194 (for example, Figure 5 After the camera 200 acquires the grayscale image of the display screen 194, it is stored in the computer 300, and the computer 300 processes the grayscale image to generate a grayscale compensation value (for example, Figure 5 The number 3 in the figure corresponds to the stage of generating grayscale compensation values).
[0088] In general, before generating the grayscale compensation value, the computer 300 also needs to pre-process the original image captured by the camera 200. The pre-processing method may include: moiré removal, distortion correction, etc. For example, Figure 5 The number 2 in the figure corresponds to the photo data processing stage.
[0089] Next, the specific process of the grayscale compensation value generation stage will be introduced.
[0090] The grayscale compensation value testing method provided in the present application is used to test the grayscale compensation value of each pixel on the display screen of the mobile phone 100 at different display brightness values.
[0091] Figure 6 According to some embodiments of the present application, a flow chart of a method for testing a grayscale compensation value is shown:
[0092] Step 601 : for each low display brightness value, the computer 300 controls the display screen 194 to display a plurality of first grayscale images when the brightness of the display screen 194 is the low display brightness value.
[0093] For each low display brightness value, the computer 300 controls the display screen 194 to display multiple first grayscale images when the brightness of the display screen 194 is the low display brightness value, so that the computer 300 can subsequently obtain grayscale compensation values corresponding to multiple pixel points of the display screen 194 at the same display brightness value based on the multiple first grayscale images at each low display brightness value.
[0094] The low display brightness value range may include one or more low display brightness values. The multiple low display brightness values include a display brightness value upper limit value (e.g., 1291) of the low display brightness value range and a third display brightness value (e.g., any one value from 1 to 1291 except 1291, e.g., 1), and the third display brightness value is any low display brightness value except the display brightness value upper limit value in the low display brightness value range.
[0095] The plurality of first grayscale images have different grayscale values respectively, that is, different first grayscale images have different grayscale values.
[0096] The grayscale values of each pixel in each first grayscale image are the same, that is, each first grayscale image is a single grayscale image (theoretically, the brightness of all pixels in each first grayscale image is the same). The first grayscale image can be a black and white image or a pure color image. For example, the relationship between the above low display brightness value and multiple first grayscale images is shown in Table 1:
[0097] Table 1
[0098]
[0099] The main function of the display driver chip (Display Driver Integrated Chip, DDIC) is to control the display screen 194. The main function of the DDIC is to send driving signals and data to the display screen 194 in the form of electrical signals, and to display image information such as letters and pictures on the screen by controlling the screen brightness and color. A low display brightness value can be obtained by adjusting the DDIC.
[0100] Step 602 : The computer 300 obtains a plurality of first grayscale images taken by the camera 200 .
[0101] Generally, the camera 200 can capture the mura condition of the grayscale image. In this way, after the computer 300 obtains the multiple first grayscale images captured by the camera 200, the computer 300 can obtain the grayscale compensation values corresponding to the multiple pixels of the display screen 194 at low display brightness values through some existing algorithms.
[0102] Step 603: The computer 300 analyzes the plurality of first grayscale images to obtain a plurality of grayscale compensation values under low display brightness values.
[0103] During the production process of display screen 194, due to reasons such as materials and processes, some products may have uneven screen brightness. In order to compensate for the mura phenomenon caused by process defects, the brightness of the pixels can be corrected by grayscale compensation to improve the mura phenomenon. Grayscale compensation improves brightness uniformity by changing the grayscale of pixels.
[0104] The grayscale compensation value is increased for the pixels in the darker area (increase the brightness), and the grayscale compensation value is reduced for the pixels in the brighter area (reduce the brightness). In other words, for the pixels with higher display brightness, the original grayscale is reduced by a certain grayscale compensation value, and for the pixels with lower display brightness, the original grayscale is increased by a certain grayscale compensation value, so that the brightness of each pixel is close to the same after grayscale compensation, and the mura phenomenon is improved.
[0105] Generally, each pixel point that requires grayscale compensation has a grayscale compensation value, that is, multiple grayscale compensation values at the same low display brightness value correspond one-to-one to multiple pixel points of the display screen 194.
[0106] For example, please refer to Table 2, which shows the grayscale compensation value of each pixel of the display screen at low display brightness values:
[0107] Table 2
[0108]
[0109] As shown in Table 2, when the current display brightness value of the display screen is the low display brightness value 1, the grayscale compensation value of the pixel point (1,1) is a 11, the grayscale compensation value of the pixel point (1,2) is a 12, and the grayscale compensation value of the pixel point (p,k) is a pk.
[0110] Step 604 : for each high display brightness value, the computer 300 controls the display screen 194 to display a plurality of second grayscale images when the brightness of the display screen 194 is the high display brightness value.
[0111] For each high display brightness value, the computer 300 controls the display screen 194 to display multiple second grayscale images when the brightness of the display screen 194 is the high display brightness value, so that the computer 300 can subsequently obtain grayscale compensation values corresponding to multiple pixel points of the display screen 194 at the same display brightness value based on the multiple second grayscale images at each high display brightness value.
[0112] The high display brightness value range may include one or more high display brightness values. The plurality of second grayscale images have different grayscale values, that is, different second grayscale images have different grayscale values.
[0113] The grayscale values of each pixel in each second grayscale image are the same, that is, each second grayscale image is a single grayscale image (theoretically, the brightness of all pixels in each second grayscale image is the same). The second grayscale image can be a black and white image or a pure color image.
[0114] For example, the relationship between the above high display brightness value and the plurality of second grayscale images is shown in Table 3:
[0115] Table 3
[0116]
[0117] The main function of DDIC is to control the display screen 194. The main function of DDIC is to send driving signals and data to the display screen 194 in the form of electrical signals, and to control the brightness and color of the screen so that image information such as letters and pictures can be presented on the screen. A high display brightness value can be obtained by adjusting DDIC.
[0118] Step 605 : The computer 300 obtains a plurality of second grayscale images taken by the camera 200 .
[0119] Generally, the camera 200 can capture the mura condition of the grayscale image. In this way, after the computer 300 obtains multiple second grayscale images captured by the camera 200, the computer 300 can obtain the grayscale compensation values corresponding to multiple pixel points of the display screen 194 at high display brightness values through some existing algorithms.
[0120] Step 606: The computer 300 analyzes the plurality of second grayscale images to obtain a plurality of grayscale compensation values under high display brightness values.
[0121] Generally, each pixel point that requires grayscale compensation has a grayscale compensation value, that is, multiple grayscale compensation values under the same high display brightness value correspond one-to-one to multiple pixel points of the display screen 194.
[0122] For example, please refer to Table 4, which shows the grayscale compensation value of each pixel of the display screen at a high display brightness value:
[0123] Table 4
[0124]
[0125] As shown in Table 4, when the current display brightness value of the display screen is the high display brightness value 1, the grayscale compensation value of the pixel point (1,1) is B11, the grayscale compensation value of the pixel point (1,2) is B12, and the grayscale compensation value of the pixel point (p,k) is Bpk.
[0126] Then, the embodiment of the present application introduces the above-mentioned stage (2): the storage stage of the aforementioned brightness compensation value.
[0127] The mobile phone 100 may store first compensation information and second compensation information; wherein the first compensation information includes: a plurality of low display brightness values, and a plurality of grayscale compensation values at each low display brightness value. For example, the first compensation information may be as shown in Table 2. The second compensation information includes: a plurality of high display brightness values, and a plurality of grayscale compensation values at each high display brightness value. For example, the second compensation information may be as shown in Table 4, so that during the application stage of the mobile phone 100, the mobile phone 100 may use the stored first compensation information and / or second compensation information to perform grayscale compensation on the currently displayed image to correct the brightness of the pixel points, thereby improving the mura phenomenon.
[0128] As mentioned above, the main function of the DDIC is to control the display screen 194. The main function of the DDIC is to send driving signals and data to the display screen 194 in the form of electrical signals, and to display image information such as letters and pictures on the screen by controlling the brightness and color of the screen.
[0129] In some embodiments, the compressed first compensation information and / or second compensation information may be stored in advance in the memory of the mobile phone 100. When the brightness compensation function of the mobile phone 100 is turned on, the mobile phone 100 can extract the first compensation information and / or the second compensation information from the memory to the DDIC, and the DDIC decompresses the compressed first compensation information and / or the second compensation information to obtain the complete first compensation information and / or the second compensation information, and uses the first compensation information and / or the second compensation information to obtain the grayscale compensation value of the current image, and drives the display screen 194 to display the display content after brightness compensation based on the grayscale compensation value of the current image.
[0130] It is understood that in some embodiments, in order to reduce storage capacity, a 1x1 pixel compensation value storage structure is usually not used, that is, a structure in which one pixel corresponds to one copy of the first compensation information is not used. Instead, a structure in which multiple pixels share one copy of the first compensation information is used. Multiple pixels can be a k*l pixel block storage structure, where k and l are integers greater than or equal to 1. For example, Figure 7 FIG. 1 shows a schematic diagram of a pixel structure of a display screen. Figure 7 As shown, Figure 7 A 2x2 pixel block corresponds to one piece of first compensation information, and a 4x4 storage structure corresponds to one piece of first compensation information. k*1 may also be 1x2, 2x1, 2x4, etc., but is not limited thereto.
[0131] Then, the embodiment of the present application introduces the above-mentioned stage (3) again: the stage of using the above-mentioned grayscale compensation value. Figure 8 According to some embodiments of the present application, a schematic flow chart of a grayscale compensation method is shown. Figure 8 As shown, the process includes the following steps:
[0132] 801: The mobile phone 100 receives a first operation, where the first operation is used to trigger the mobile phone 100 to display a first image.
[0133] A first application is set in the mobile phone 100, and the first application (such as a gallery application) can be used to store image data such as pictures and videos. The first operation can be a user's click operation on the above-mentioned image data. For example, the first operation can be an operation in which the user clicks on a thumbnail in the first application, and the first image can be a picture stored in the mobile phone 100 that needs to be displayed in response to the user's click operation on the thumbnail in the first application.
[0134] 802: In response to the first operation, the mobile phone 100 obtains a current display brightness value of the display screen and a grayscale value of each pixel in the first image.
[0135] In the embodiment of the present application, in response to the first operation, the mobile phone 100 does not directly display the first image, but first performs grayscale compensation on each pixel in the first image, and then displays the grayscale compensated first image. This can improve the effect of the mobile phone 100 displaying the first image. Specifically, the mobile phone 100 can obtain the current display brightness value of the display screen and the grayscale value of each pixel in the area to be compensated for brightness in the first image, and then implement grayscale compensation for the first image based on these parameters.
[0136] 803: The mobile phone 100 determines the display brightness value range within which the current display brightness value belongs.
[0137] The mobile phone 100 can first determine the display brightness value range within which the current display brightness value lies. In this way, the mobile phone 100 can perform reasonable brightness compensation for the image to be displayed by the mobile phone 100 according to different compensation rules in different brightness ranges, so as to more accurately reduce or even eliminate the uneven brightness display phenomenon of the display screen during the display process, thereby improving the user experience.
[0138] Specifically, if the current display brightness value is within the low display brightness value range, it means that the mobile phone 100 can calculate multiple first grayscale compensation values based on the current display brightness value, at least one low display brightness value in the first compensation information and multiple grayscale compensation values corresponding to the low display brightness value, any high display brightness value in the second compensation information and multiple grayscale compensation values corresponding to the high display brightness value, see step 804 for details.
[0139] If the low display brightness value is within the range of the high display brightness value, the mobile phone 100 can obtain multiple grayscale compensation values under the current display brightness value from the second compensation information, and use the multiple grayscale compensation values to perform grayscale compensation on the pixels in the first image, see step 806 for details.
[0140] In general, the display brightness value can be adjusted through the brightness bar in the control center of the mobile phone 100.
[0141] 804: The mobile phone 100 calculates multiple first grayscale compensation values according to the current display brightness value, at least one low display brightness value in the first compensation information and multiple grayscale compensation values corresponding to the low display brightness value, and any high display brightness value in the second compensation information and multiple grayscale compensation values corresponding to the high display brightness value.
[0142] In some embodiments, at least one low display brightness value may be any low display brightness value within a range of low display brightness values. For example, the low display brightness value may be a lower limit value within a range of low display brightness values. In this case, the mobile phone 100 may calculate the display brightness value difference between the current display brightness value and the high display brightness value, and calculate the display brightness value difference between the high display brightness value and any low display brightness value; respectively calculate the grayscale difference between multiple grayscale compensation values under the high display brightness value and multiple grayscale compensation values under the high display brightness value, and respectively calculate the grayscale difference between multiple grayscale compensation values under the high display brightness value and multiple grayscale compensation values under any high display brightness value; based on the calculated display brightness value difference and grayscale difference, combined with a preset weighting coefficient, calculate multiple first grayscale compensation values. Specifically, the mobile phone 100 may use the following formula (1), i.e., the second formula, to calculate the display brightness value difference and the grayscale difference to obtain multiple first grayscale compensation values.
[0143]
[0144] Among them, GS (i,j) Represents the first grayscale compensation value of the pixel point (i, j), DBVn represents the current display brightness value, DBV1 represents the low display brightness value, DBV2 represents the high display brightness value, cgs1 represents the grayscale compensation value of the pixel point (i, j) under the low display brightness value DBV1, cgs2 represents the grayscale compensation value of the pixel point (i, j) under the high display brightness value, and m and n are preset weighting coefficients.
[0145] In the above formula (1), ΔDBV1=DBVn-DBV1, ΔDBV2=DBVn-DBV2,
[0146] In some embodiments, at least one low display brightness value includes a display brightness value upper limit value of a low display brightness value range and a third display brightness value, and the third display brightness value is any low display brightness value in the low display brightness value range except the display brightness value upper limit value. In this case, the mobile phone 100 can calculate the display brightness value difference between the current display brightness value and the third display brightness value, and calculate the display brightness value difference between the display brightness value upper limit value of the low display brightness value range and any high display brightness value; respectively calculate the grayscale difference between multiple grayscale compensation values under the third display brightness value and multiple grayscale compensation values under the display brightness value upper limit value of the low display brightness value range, respectively calculate the grayscale difference between multiple grayscale compensation values under the display brightness value upper limit value of the low display brightness value range and multiple grayscale compensation values under any high display brightness value; based on the calculated display brightness value difference and grayscale difference, combined with a preset weighting coefficient, calculate multiple first grayscale compensation values. Specifically, the mobile phone 100 can use the following formula (2), i.e., the first formula, to calculate the display brightness value difference and grayscale difference to obtain multiple first grayscale compensation values.
[0147]
[0148] Among them, GS (i,j) represents the first grayscale compensation value of the pixel point (i, j), DBVn represents the current display brightness value, DBV3 represents the third display brightness value, DBV4 represents the upper limit value of the display brightness value in the low display brightness value range, and DBV2 represents the high display brightness value; cgs3 represents the grayscale compensation value of the pixel point (i, j) under the third display brightness value DBV3, cgs1 represents the grayscale compensation value of the pixel point (i, j) under the upper limit value of the display brightness value in the low display brightness value range, cgs4 represents the grayscale compensation value of the pixel point (i, j) under the upper limit value (DBV4) of the display brightness value in the low display brightness value range, cgs2 represents the grayscale compensation value of the pixel point (i, j) under the high display brightness value, and m and n are preset weighting coefficients.
[0149] In the above formula (2), ΔDBV1=DBVn-DBV3, ΔDBV2=DBV4-DBV2,
[0150] 805: The mobile phone 100 uses a plurality of first grayscale compensation values to perform grayscale compensation on each pixel in the first image respectively.
[0151] 806: The mobile phone 100 obtains a plurality of second grayscale compensation values at the current display brightness value from the second compensation information, and uses the plurality of second grayscale compensation values to perform grayscale compensation on the pixels in the first image.
[0152] After 806 , the method of the embodiment of the present application may further include 807 .
[0153] 807: The mobile phone 100 displays the first image after grayscale compensation.
[0154] In this way, compared to simply applying the grayscale compensation value at a high display brightness value directly to the compensation value at other display brightness values, the present solution can utilize the grayscale compensation value of the display screen 194 at a high display brightness value and the grayscale compensation value of the display screen 194 at a low display brightness value to obtain a more accurate grayscale compensation value, so as to reduce or even eliminate the uneven brightness display phenomenon of the display screen 194 during the display process, thereby improving the user experience.
[0155] In some other embodiments, the first compensation information includes a plurality of low display brightness values, a plurality of grayscale values at each low display brightness value, and a grayscale compensation value corresponding to each grayscale value. For example, the first compensation information is shown in Table 5:
[0156] Table 5
[0157]
[0158] As shown in Table 5, taking the low display brightness value 1 in the first compensation information as an example, the first compensation information includes the low display brightness value 1, the grayscale values 0-255 under the low display brightness value 1, and the grayscale compensation value under each grayscale value.
[0159] For example, assuming that the current display brightness value is a low display brightness value of 1, the mobile phone 100 queries from the first compensation information that the grayscale compensation value of the pixel with a grayscale value of 0 is a 11, the grayscale compensation value of the pixel with a grayscale value of 1 is a 12, and the grayscale compensation value of the pixel with a grayscale value of 255 is a 1k.
[0160] For another example, assuming that the current display brightness value is a low display brightness value of 2, the mobile phone 100 queries from the first compensation information that the grayscale compensation value of the pixel with a grayscale value of 0 is a 21, the grayscale compensation value of the pixel with a grayscale value of 1 is a22, and the grayscale compensation value of the pixel with a grayscale value of 255 is a 2k.
[0161] It should be noted that when the current display brightness value is a low display brightness value, the grayscale compensation value retrieved by the mobile phone 100 from the first compensation information will not be used directly for grayscale compensation, but will be calculated based on the relevant scheme introduced in 804 above to obtain the first grayscale compensation value, and then the first grayscale compensation value will be used to perform grayscale compensation on the first image.
[0162] Similarly, the second compensation information includes a plurality of high display brightness values, a plurality of grayscale values under each high display brightness value, and a grayscale compensation value corresponding to each grayscale value. For example, the second compensation information is shown in Table 6:
[0163] Table 6
[0164]
[0165] As shown in Table 6, taking the high display brightness value 1 in the second compensation information as an example, the second compensation information includes the high display brightness value 1, the grayscale values 0-255 under the high display brightness value 1, and the grayscale compensation value under each grayscale value.
[0166] For example, assuming that the current display brightness value is a high display brightness value of 1, the mobile phone 100 can query from the second compensation information that the grayscale compensation value of the pixel point with a grayscale value of 0 is A11, the grayscale compensation value of the pixel point with a grayscale value of 1 is A12, and the grayscale compensation value of the pixel point with a grayscale value of 255 is A1k.
[0167] For another example, assuming that the current display brightness value is a low display brightness value of 2, the mobile phone 100 can query from the second compensation information that the grayscale compensation value of the pixel point with a grayscale value of 0 is A 21, the grayscale compensation value of the pixel point with a grayscale value of 1 is A22, and the grayscale compensation value of the pixel point with a grayscale value of 255 is A 2k.
[0168] It should be noted that, when the current display brightness value is a high display brightness value, the grayscale compensation value retrieved by the mobile phone 100 from the second compensation information can be directly used for grayscale compensation (such as executing 806 to perform grayscale compensation on the first image).
[0169] In the above step 603 and step 606, the computer 300 can analyze the first grayscale image and the second grayscale image, and obtain grayscale compensation values at low display brightness values and high display brightness values through some existing algorithms for removing brightness unevenness.
[0170] For example, Fig. 9 This is a schematic diagram of determining the grayscale compensation value. Fig. 9 As shown, in Fig. 9 In the coordinate system shown, the horizontal axis represents grayscale and the vertical axis represents brightness. If a pixel of the display screen 194 has a grayscale value of G1 and the actual brightness measured is L1', in order to achieve the target brightness L1, the grayscale value of the pixel needs to be changed to G1', and the difference between the grayscale value G1 and the grayscale value G1' is the grayscale compensation value.
[0171] In some embodiments, the computer 300 can use a small number of grayscales and their grayscale compensation values to obtain grayscale compensation values corresponding to all grayscale values. Specifically, the computer 300 uses a linear fitting equation to fit the grayscale compensation values corresponding to multiple grayscale values to obtain grayscale compensation values corresponding to all grayscales. For example, Fig.10 A schematic diagram of a curve showing grayscale compensation values corresponding to each grayscale value under the same display brightness value is shown. Fig.10 As shown, the curve of the grayscale compensation value corresponding to each grayscale value under the same display brightness value conforms to the linear fitting equation: y = ax 3 +bx 2 +cx+d; wherein, x represents the grayscale, and y represents the grayscale compensation value.
[0172] In some embodiments, multiple grayscale compensation values at multiple high display brightness values within the high display brightness value range can be obtained by mapping. Specifically, after the computer 300 obtains multiple grayscale compensation values at a certain high display brightness value within the high display brightness value range, it multiplies by a preset coefficient to obtain multiple grayscale compensation values at other high display brightness values within the high display brightness value range. For example, Fig.11 A schematic diagram of a curve showing grayscale compensation values corresponding to each grayscale value under multiple display brightness values is shown. Fig.11 As shown, the DBV1 curve is a grayscale compensation value curve when the high display brightness value is DBV1. The DBV2 curve is a grayscale compensation value curve when the high display brightness value is DBV2. The DBV3 curve is a grayscale compensation value curve when the high display brightness value is DBV3. If the DBV1 curve is determined first, the DBV2 curve is obtained by multiplying the DBV1 curve by the first preset coefficient, and the DBV3 curve is obtained by multiplying the DBV1 curve by the second preset coefficient. The first preset coefficient is different from the second preset coefficient.
[0173] Another embodiment of the present application provides an electronic device, the electronic device comprising: a memory and one or more processors. The memory is coupled to the processor. The memory also stores a computer program code, the computer program code comprising computer instructions. When the computer instructions are executed by the processor, the electronic device can execute the various functions or steps executed by the mobile phone 100 in the above method embodiment. The structure of the electronic device can refer to Figure 2 The structure of the mobile phone 100 is shown.
[0174] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step executed by the mobile phone 100 in the above-mentioned method embodiment.
[0175] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the functions or steps executed by the mobile phone 100 in the above method embodiment. The computer may be the above electronic device (such as the mobile phone 100).
[0176] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.
[0177] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purpose of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0178] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
[0179] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer-readable storage media. Therefore, a machine-readable storage medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy disks, optical disks, optical discs, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROM), random access memories (RAM), erasable programmable read-only memories (EPROM), electrically erasable programmable read-only memories (EEPROM), magnetic or optical cards, flash memory, or tangible machine-readable storage for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) via electrical, optical, acoustic or other forms of propagation signals over the Internet. Therefore, a machine-readable storage medium includes any type of machine-readable storage medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
[0180] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0181] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.
[0182] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0183] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.
Claims
1. A grayscale compensation method, characterized in that: The method is applied to an electronic device, wherein the electronic device comprises a display screen, wherein the display screen comprises a pulse width modulation dimming mode and a direct current dimming mode, wherein the pulse width modulation dimming mode corresponds to a first display brightness value range, and the direct current dimming mode corresponds to a second display brightness value range; the electronic device stores first compensation information and second compensation information; the first compensation information comprises one or more first display brightness values within the first display brightness value range, and multiple grayscale compensation values under each first display brightness value; the second compensation information comprises one or more second display brightness values within the second display brightness value range, and multiple grayscale compensation values under each second display brightness value; The plurality of grayscale compensation values correspond one-to-one to a plurality of pixel points on the display screen; the method comprises: receiving a first operation, where the first operation is used to trigger the electronic device to display a first image; In response to the first operation, obtaining a current display brightness value of the display screen and a grayscale value of each pixel in the area to be compensated for brightness in the first image; If the first display brightness value is within the first display brightness value range, calculating a plurality of first grayscale compensation values according to the current display brightness value, at least one first display brightness value in the first compensation information and a plurality of grayscale compensation values corresponding to the first display brightness value, and any second display brightness value in the second compensation information and a plurality of grayscale compensation values corresponding to the second display brightness value; The plurality of first grayscale compensation values are used to perform grayscale compensation on each pixel in the first image respectively.
2. The method according to claim 1, characterized in that: The second compensation information includes a plurality of second display brightness values within the second display brightness value range, and a plurality of grayscale compensation values at each second display brightness value; The plurality of second display brightness values include the current display brightness value; The method further comprises: If the first display brightness value is within the second display brightness value range, a plurality of second grayscale compensation values under the current display brightness value are obtained from the second compensation information, and the plurality of second grayscale compensation values are used to perform grayscale compensation on the pixels in the first image.
3. The method according to claim 1 or 2, characterized in that: The at least one first display brightness value includes an upper limit value of the display brightness value of the first display brightness value range and a third display brightness value, wherein the third display brightness value is any first display brightness value within the first display brightness value range except the upper limit value of the display brightness value; The calculating of a plurality of first grayscale compensation values according to the current display brightness value, at least one first display brightness value in the first compensation information and a plurality of grayscale compensation values corresponding to the first display brightness value, any second display brightness value in the second compensation information and a plurality of grayscale compensation values corresponding to the second display brightness value comprises: Calculating a display brightness value difference between the current display brightness value and the third display brightness value, and calculating a display brightness value difference between an upper limit value of the display brightness value of the first display brightness value range and any second display brightness value; respectively calculating grayscale differences between a plurality of grayscale compensation values at the third display brightness value and a plurality of grayscale compensation values at the upper limit of the display brightness value of the first display brightness value range, and respectively calculating grayscale differences between a plurality of grayscale compensation values at the upper limit of the display brightness value of the first display brightness value range and a plurality of grayscale compensation values at any one of the second display brightness values; Based on the calculated display brightness value difference and grayscale difference, combined with the preset weighting coefficient, the plurality of first grayscale compensation values are calculated.
4. The method according to claim 3, characterized in that The calculating of the plurality of first grayscale compensation values based on the calculated display brightness value difference and grayscale difference in combination with a preset weighting coefficient includes: The display brightness value difference and the grayscale difference are calculated using the following first formula to obtain the plurality of first grayscale compensation values: Among them, GS (i,j) represents a first grayscale compensation value of the pixel point (i, j), ΔDBV1 represents a display brightness value difference between the current display brightness value and the third display brightness value, and ΔDBV2 represents a display brightness value difference between an upper limit value of the display brightness value of the first display brightness value range and any one of the second display brightness values; represents the grayscale difference between the grayscale compensation value of the pixel point (i, j) at the third display brightness value and the grayscale compensation value of the pixel point (i, j) at the upper limit value of the display brightness value of the first display brightness value range, Represents the grayscale difference between the grayscale compensation value of the pixel point (i, j) at the upper limit value of the display brightness value of the first display brightness value range and the grayscale compensation value of the pixel point (i, j) at any second display brightness value; m and n are preset weighting coefficients.
5. The method according to claim 1 or 2, characterized in that: The at least one first display brightness value is any first display brightness value within the first display brightness value range; The calculating of a plurality of first grayscale compensation values according to the current display brightness value, at least one first display brightness value in the first compensation information and a plurality of grayscale compensation values corresponding to the first display brightness value, any second display brightness value in the second compensation information and a plurality of grayscale compensation values corresponding to the second display brightness value comprises: Calculating a display brightness value difference between the current display brightness value and the second display brightness value, and calculating a display brightness value difference between the second display brightness value and any one of the first display brightness values; respectively calculating grayscale differences between a plurality of grayscale compensation values at the second display brightness value and a plurality of grayscale compensation values at the second display brightness value, and respectively calculating grayscale differences between a plurality of grayscale compensation values at the second display brightness value and a plurality of grayscale compensation values at any second display brightness value; Based on the calculated display brightness value difference and grayscale difference, combined with the preset weighting coefficient, the plurality of first grayscale compensation values are calculated.
6. The method according to claim 5, characterized in that The calculating of the plurality of first grayscale compensation values based on the calculated display brightness value difference and grayscale difference in combination with a preset weighting coefficient includes: The display brightness value difference and the grayscale difference are calculated using the following second formula to obtain the plurality of first grayscale compensation values: Among them, GS (i,j) represents the first grayscale compensation value of the pixel point (i, j), ΔDBV1 represents the display brightness value difference between the current display brightness value and the first display brightness value, represents the grayscale difference between the grayscale compensation value of the pixel point (i, j) under the first display brightness value and the grayscale compensation value of the pixel point (i, j) under the second display brightness value, ΔDBV2 represents the display brightness value difference between the current display brightness value and the second display brightness value, and m and n are preset weighting coefficients.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: The first image after grayscale compensation is displayed.
8. A method for testing grayscale compensation value, characterized in that: The method is used to test the grayscale compensation value of each pixel on a display screen of an electronic device under different display brightness values, the electronic device includes a pulse width modulation dimming mode and a direct current dimming mode, the pulse width modulation dimming mode corresponds to a first display brightness value range, the first display brightness value range includes multiple first display brightness values, the direct current dimming mode corresponds to a second display brightness value range, the first display brightness value range includes multiple second display brightness values; the method includes: For each first display brightness value, controlling the display screen to display a plurality of first grayscale images when the brightness of the display screen is the first display brightness value; wherein the grayscale values of each pixel in each first grayscale image are the same, and the grayscale values of different first grayscale images are different; Acquire the plurality of first grayscale images taken by a preset camera; Analyze the plurality of first grayscale images to obtain a plurality of grayscale compensation values at the first display brightness value; wherein the plurality of grayscale compensation values at the first display brightness value correspond one-to-one to a plurality of pixel points of the display screen; For each second display brightness value, controlling the display screen to display a plurality of second grayscale images when the brightness of the display screen is the second display brightness value; wherein the grayscale values of each pixel in each second grayscale image are the same, and the grayscale values of different second grayscale images are different; Acquire the plurality of second grayscale images taken by the preset camera; The plurality of second grayscale images are analyzed to obtain a plurality of grayscale compensation values at the second display brightness value; wherein the plurality of grayscale compensation values at the second display brightness value correspond one-to-one to a plurality of pixel points of the display screen.
9. The method according to claim 8, characterized in that The method further comprises: storing first compensation information, wherein the first compensation information includes: the plurality of first display brightness values, and a plurality of grayscale compensation values under each first display brightness value; The second compensation information is stored, wherein the second compensation information includes: the plurality of second display brightness values, and a plurality of grayscale compensation values under each second display brightness value.
10. An electronic device, characterized in that: It comprises a memory and one or more processors; the memory is used to store code instructions; the processor is used to run the code instructions, so that the electronic device executes the method as described in any one of claims 1-7 or 8-9.
11. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 7 or 8 to 9.
Citation Information
Cited By
Brightness compensation method and device, storage medium and electronic equipment
CN120510075A
Brightness compensation method, device, storage medium and electronic device
CN120510075B
