Brightness compensation method of display panel and electronic equipment

CN120641970APending Publication Date: 2025-09-12HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202480009866.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-07-31
Filing Date
2024-02-29
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

The prior art is difficult to effectively eliminate the uneven brightness (mura) phenomenon that display panels appear at different brightness, affecting the display effect.

Method used

By dividing the brightness interval of the display panel into multiple sub-intervals and setting different grayscale node values ​​and brightness compensation values ​​for each brightness interval, the brightness compensation value is dynamically adjusted to match the current brightness interval and grayscale value.

Benefits of technology

It effectively eliminates the uneven brightness phenomenon of the display panel under different brightness conditions, and improves the uniformity and quality of the display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120641970A_ABST
    Figure CN120641970A_ABST
Patent Text Reader

Abstract

The invention provides a brightness compensation method of a display panel and electronic equipment, and relates to the technical field of display, and the method comprises the steps: determining a brightness interval where a current display brightness value is located when it is detected that the display panel displays a to-be-displayed image at the current display brightness value; wherein the difference information of the mura image presented on the display panel with the display brightness value in the same brightness interval is within a first preset difference range; determining a gray scale interval corresponding to the brightness interval; wherein the gray scale interval corresponding to the brightness interval is determined according to the gray scale node value corresponding to the brightness interval, different brightness intervals correspond to different gray scale node values, and different gray scale intervals correspond to different brightness compensation values; and obtaining a gray-scale value of the to-be-displayed image, and compensating each pixel unit in the display panel according to the brightness compensation value corresponding to the gray-scale interval where the gray-scale value is located. According to the scheme, the brightness compensation value of the display panel can be dynamically adjusted according to the display brightness value, and the display effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Brightness compensation method for display panel and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on July 31, 2023, with application number 202310956022.4 and invention name “A brightness compensation method and electronic device for a display panel”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of display technology, and in particular to a brightness compensation method for a display panel and an electronic device. Background Art

[0003] Currently, display panels may experience uneven brightness (mura) during display, affecting the display quality. Conventional technology can eliminate mura by performing brightness compensation on the display panel. However, conventional technology is not effective in eliminating mura.

[0004] Summary of the Invention

[0005] Embodiments of the present application provide a brightness compensation method for a display panel and an electronic device, which can dynamically adjust the brightness compensation value of the display panel according to the display brightness value to improve the display effect.

[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0007] In a first aspect, a brightness compensation method for a display panel is provided. The method includes: when detecting that the display panel displays an image to be displayed at a current display brightness value, determining a brightness interval within which the current display brightness value lies; wherein difference information of a mura image presented on the display panel at display brightness values ​​within the same brightness interval is within a first preset difference range; determining a grayscale interval corresponding to the brightness interval; wherein the grayscale interval corresponding to the brightness interval is determined based on a grayscale node value corresponding to the brightness interval, different brightness intervals correspond to different grayscale node values, and different grayscale intervals correspond to different brightness compensation values, the brightness compensation value being the difference between an actual brightness value of each pixel unit in the display panel in the corresponding grayscale interval and a target brightness value; obtaining a grayscale value of the image to be displayed, and compensating each pixel unit in the display panel based on the brightness compensation value corresponding to the grayscale interval within which the grayscale value lies.

[0008] By adopting this technical solution, the electronic device can pre-divide the brightness intervals, set different grayscale node values ​​for different brightness intervals, and set corresponding different brightness compensation values ​​for each grayscale interval composed of grayscale node values ​​in the same brightness interval. Among them, the corresponding brightness compensation values ​​can be calculated for the display panel of the preset grayscale value according to the two different display brightness values ​​selected in advance through the demura algorithm. Then, when the current display brightness value changes across intervals, the corresponding grayscale node value can be determined according to the brightness interval in which the current display brightness value is located. That is, the brightness compensation values ​​corresponding to the different grayscale intervals composed of the corresponding grayscale node values ​​in this brightness interval are determined. Therefore, after obtaining the grayscale value of the image to be displayed on the display panel, the corresponding brightness compensation value is selected according to the grayscale interval in which the grayscale value is located, and compensation is performed on each pixel unit in the display panel. Finally, the display panel displays the display image after brightness compensation, which can eliminate the uneven brightness of the display panel.

[0009] The current display brightness value may be an initialized display brightness value, or may be an adjusted display brightness value, for example, a display brightness value obtained by adjusting a previous display brightness value.

[0010] Among them, after determining the corresponding grayscale node value according to the brightness interval in which the current display brightness value is located, the grayscale node value and the current display brightness value will be packaged and sent to the register, that is, the grayscale node value stored in the register will be modified, and then the display driver will select the corresponding brightness compensation value according to the grayscale interval in which the grayscale value of the image to be displayed is located for brightness compensation. It can be understood that the register stores two pre-calculated brightness compensation values. After the electronic device obtains the brightness interval corresponding to the initial brightness value, the grayscale node value corresponding to the brightness interval will be stored in the register for the IC chip to select the corresponding brightness compensation value according to the grayscale interval in which the grayscale value of the image to be displayed is located. After detecting that the display brightness value crosses the brightness interval, the grayscale node value corresponding to the new brightness interval will be obtained and rewritten into the register for the IC chip to select the corresponding brightness compensation value according to the grayscale interval in which the grayscale value of the current image to be displayed is located. In other words, every time the display brightness value changes across the brightness interval, the grayscale node value stored in the register will be updated. Furthermore, the current display brightness value and the grayscale node value corresponding to the updated brightness interval are packaged and sent in the same frame, so that when the display panel displays the next frame of the image to be displayed, the display brightness value matches the grayscale node value of the brightness interval.

[0011] In a possible implementation, the display panel is pre-configured with brightness compensation values ​​corresponding to target grayscale node values ​​of multiple display brightness values, and the brightness intervals correspond to a first grayscale interval and a second grayscale interval; the brightness compensation value corresponding to the first grayscale interval is the brightness compensation value corresponding to the target grayscale node value of the first display brightness value among the multiple display brightness values, and the difference between image information of the mura image corresponding to the first grayscale interval and the image information of the mura image corresponding to the target grayscale node value of the first display brightness value is minimized; the brightness compensation value corresponding to the second grayscale interval is the brightness compensation value corresponding to the target grayscale node value of the second display brightness value among the multiple display brightness values, and the difference between image information of the mura image corresponding to the second grayscale interval and the image information of the mura image corresponding to the target grayscale node value of the second display brightness value is minimized.

[0012] It can be understood that this is done by comparing the image information of the mura image corresponding to the first grayscale interval with the image information of the mura image corresponding to the target grayscale node value of the first display brightness value and the image information of the mura image corresponding to the target grayscale node value of the second display brightness value before the electronic device leaves the factory, thereby determining the brightness compensation value of the display panel in the first grayscale interval. Furthermore, by comparing the image information of the mura image corresponding to the second grayscale interval with the image information of the mura image corresponding to the target grayscale node value of the first display brightness value and the image information of the mura image corresponding to the target grayscale node value of the second display brightness value, thereby determining the brightness compensation value of the display panel in the second grayscale interval. In other words, these two brightness compensation values ​​are already burned into the registers of the electronic device before leaving the factory.

[0013] In one possible implementation, the brightness range also includes a third grayscale range, the grayscale values ​​within the third grayscale range are greater than the grayscale values ​​within the first grayscale range, and the grayscale values ​​within the third grayscale range are less than the grayscale values ​​within the second grayscale range; the brightness compensation scheme corresponding to the third grayscale range is obtained by analyzing the brightness compensation value of the first grayscale range, the grayscale values ​​of the first grayscale range, the brightness compensation value of the second grayscale range, and the grayscale values ​​of the second grayscale range using a brightness compensation value fitting curve, wherein the brightness compensation value fitting curve is used to indicate the trend of the brightness compensation value changing with the grayscale range. The present application does not limit the method for determining the fitting curve, and any existing method for determining the fitting curve can be used.

[0014] In a possible implementation, the display panel corresponds to mura images presented at multiple display brightness values; the multiple display brightness values ​​include a first display brightness value and a second display brightness value; wherein difference information between the mura image presented by the display panel at the first display brightness value and the mura image presented at the second display brightness value is greater than a second preset difference range, and the second display brightness value is greater than the first display brightness value; the brightness compensation value corresponding to the target grayscale node value of the first display brightness value is obtained by brightness compensating the display panel at the target grayscale node value of the first display brightness value; the brightness compensation value corresponding to the target grayscale node value of the second display brightness value is obtained by brightness compensating the display panel at the target grayscale node value of the second display brightness value.

[0015] In one possible implementation, the brightness interval corresponds to a first grayscale interval and a second grayscale interval; the smaller the display brightness value within the brightness interval, the greater the proportion of the first grayscale interval corresponding to the brightness interval in the total grayscale range; the smaller the display brightness value within the brightness interval, the smaller the proportion of the second grayscale interval corresponding to the brightness interval in the total grayscale range.

[0016] In one possible implementation, each pixel unit in the display panel is compensated according to the brightness compensation value corresponding to the grayscale interval in which the grayscale value is located, including: if the grayscale value is in a first grayscale interval corresponding to the brightness interval, each pixel unit in the display panel is compensated according to the first brightness compensation value corresponding to the first grayscale interval; if the grayscale value is in a second grayscale interval corresponding to the brightness interval, each pixel unit in the display panel is compensated according to the second brightness compensation value corresponding to the second grayscale interval. If the grayscale value is in a third grayscale interval corresponding to the brightness interval, each pixel unit in the display panel is compensated according to the third brightness compensation value corresponding to the third grayscale interval. In this solution, based on the grayscale interval in which the grayscale value of the image to be displayed is located and the current display brightness value, a corresponding brightness compensation value can be determined to compensate the display panel.

[0017] In one possible implementation, the method further includes: in response to a scan start signal of an image to be displayed, packaging the current display brightness value and the grayscale node value corresponding to the current display brightness value together and sending them to a display driver of an electronic device. The current display brightness value and the grayscale node value corresponding to the current display brightness value are sent in the same frame, ensuring that the display brightness value and the grayscale node value corresponding to the brightness interval in which they are located are effective when displaying the same frame of image. Furthermore, the current display brightness value and the grayscale node value corresponding to the current display brightness value are sent at a high level, and the display brightness value before being sent at a low level and the grayscale node value corresponding to the current display brightness value are sent synchronously with the TE signal, ensuring that the current display brightness value and the grayscale node value match.

[0018] In one possible implementation, the method further includes: detecting a current display brightness value of the display panel in response to a user's instruction to adjust the display brightness value of the display panel; the adjustment instruction is used to indicate that the current display brightness value of the display panel changes across intervals; or, when a change in the ambient light brightness of the display panel is detected, detecting the current display brightness value of the display panel.

[0019] In one possible implementation, after obtaining the grayscale value of an image to be displayed on the display panel and compensating each pixel unit in the display panel according to the brightness compensation value corresponding to the grayscale interval in which the grayscale value lies, the method further includes: driving the display panel to display the image to be displayed. At this point, the image displayed by the display panel has been brightness compensated, thereby eliminating brightness unevenness.

[0020] In a second aspect, the present application provides an electronic device comprising: a display screen, a memory, and one or more processors; the display screen comprises a display panel; the display screen, the memory, and the processor are coupled; the memory is used to store computer program code, and the computer program code comprises computer instructions, which, when executed by the electronic device, enables the electronic device to execute any of the methods described in the first aspect above.

[0021] In a third aspect, the present application provides a computer-readable storage medium having instructions stored therein. When the computer-readable storage medium is run on a computer, the computer can execute the charging method described in any one of the first aspects above.

[0022] In a fourth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any one of the methods described in the first aspect.

[0023] It can be understood that the electronic device described in the second aspect provided above, the computer-readable storage medium described in the third aspect, and the computer program product described in the fourth aspect are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] FIG1 is a schematic diagram of a display panel provided in an embodiment of the present application;

[0025] FIG2 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0026] FIG3 is a schematic diagram of a dynamic grayscale node value provided by an embodiment of the present application;

[0027] FIG4 is a schematic flow chart of a brightness compensation method for a display panel provided in an embodiment of the present application;

[0028] FIG5 is a schematic diagram of sending grayscale node values ​​and DBVs according to an embodiment of the present application;

[0029] FIG6 is a schematic diagram of another method for sending grayscale node values ​​and DBVs according to an embodiment of the present application;

[0030] FIG7 is a flowchart of a method for adjusting grayscale node values ​​according to an embodiment of the present application;

[0031] FIG8 is a timing diagram of a software implementation of a brightness compensation method for a display panel provided in an embodiment of the present application;

[0032] FIG9 is a schematic structural diagram of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The following will describe the technical solutions in the embodiments of this application in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.

[0034] It should be noted that the terms "first", "second", etc. below are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0035] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.

[0036] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0037] For ease of understanding, the following terms are used in the embodiments of this application:

[0038] (1) Gray level refers to the brightness value of each pixel in a grayscale image, usually represented by an integer from 0 to 255. In a grayscale image, the grayscale value of each pixel represents the brightness of the pixel. The grayscale value of a pixel is directly proportional to the brightness of the pixel. The larger the grayscale value of a pixel, the higher the brightness of the pixel, and the smaller the grayscale value of a pixel, the lower the brightness of the pixel. For example, a grayscale value of 0 indicates that the brightness of the pixel is very low, such as no brightness, and the pixel appears black. A grayscale value of 255 indicates that the brightness of the pixel is very high, close to or appears white. Grayscale values ​​between 0 and 255 represent different grayscale levels. It should be noted that grayscale values ​​are only applicable to grayscale images. For color images, each pixel usually contains color values ​​of three channels: red, green, and blue. The color image needs to be converted into a grayscale image before the grayscale value can be used to describe the image characteristics of the color image.

[0039] (2) Mura is a phenomenon of various marks caused by uneven brightness of the display panel. The presence of mura on a display panel can be determined by switching the display panel to a black screen or other low-grayscale screen in a dark room, and then observing the display screen from various angles to see if there are marks. Such marks may be horizontal stripes or 45-degree stripes, may be straight squares, may appear in a corner, or may be irregular marks.

[0040] (3) The Tearing Effect (TE) signal is used to prevent tearing during image display. The TE signal is generated by the display driver integrated circuit (DDIC), and the image frame can be refreshed based on the TE signal. When the next image frame is ready to be refreshed, the DDIC chip generates a TE signal and synchronizes it to the application processor (AP), also known as the host. Correspondingly, after detecting the trigger edge of the TE signal, the AP sends the data of the next image frame to the DDIC chip.

[0041] Currently, the internal screen (also known as the display) of electronic devices, due to the combined effects of camera aperture design and / or ultra-high-frequency pulse width modulation (PWM) dimming, significantly worsens the display mura effect at low brightness. The display includes the display panel, and display mura here refers to the mura of the display panel within the display.

[0042] For ultra-high-frequency PWM dimming, the higher the frequency, the greater the number of pulses. The emission control signal (EM) in the display panel controls the lighting of pixels within the display panel. A higher number of pulses means a greater number of times the EM signal illuminates the pixel. Pixel lighting is achieved by driving a desired current to achieve the desired brightness on the screen. Therefore, a greater number of pixel illumination cycles equates to a greater number of charge and discharge cycles. This makes it more difficult to maintain the same brightness across the pixel compared to a lower number, resulting in poor brightness uniformity across the display panel.

[0043] The camera's offset hole design can cause mura on the display panel, while ultra-high-frequency PWM dimming can also cause mura on the display panel. The combined effect of these two factors significantly worsens the mura effect on the display panel.

[0044] In the related art, the mura phenomenon of the display panel can be eliminated by performing demura compensation on the display panel. Demura refers to a method of obtaining the brightness information of each pixel of the display panel to calculate a brightness compensation value, and adding the brightness compensation value to the pixels of the display panel to remove the brightness deviation of the pixels, so that the brightness of the display panel becomes more uniform. As shown in Figure 1, A in Figure 1 is a schematic diagram of a display panel without demura compensation, and the brightness of the display panel is uneven. Figure 1 B is a schematic diagram of a display panel with demura compensation, which eliminates mura and makes the brightness of the display panel uniform.

[0045] However, because the mura trends exhibited by display panels vary at different brightness levels, and traditional fixed-node demura solutions provide fixed brightness compensation values ​​for display panels at different brightness levels, these traditional demura compensation solutions are unable to address the mura effect at the current brightness level when the display panel's brightness changes.

[0046] Therefore, an embodiment of the present application provides a brightness compensation method for a display panel. An electronic device can pre-divide the display brightness value (DBV) of the display panel into multiple brightness intervals, set different grayscale node values ​​for different brightness intervals, and set different brightness compensation values ​​for each grayscale interval composed of grayscale node values ​​within the same brightness interval. The brightness of the display panel is represented by the display brightness value of the display panel. The electronic device can calculate the brightness compensation values ​​corresponding to different display brightness values ​​for the display panel with a preset grayscale value using a demura algorithm based on at least two different display brightness values ​​pre-selected. Thus, after adjusting the display brightness value, the electronic device can determine the corresponding grayscale node value according to the brightness interval in which the current display brightness value is located, that is, determine the brightness compensation values ​​corresponding to different grayscale intervals composed of corresponding grayscale node values ​​within the brightness interval. Then, the electronic device selects the corresponding brightness compensation value according to the grayscale interval in which the current grayscale value is located to perform brightness compensation on each pixel unit in the display panel, thereby eliminating display unevenness of the display panel.

[0047] The electronic device in the embodiments of the present application may be an electronic device equipped with a display screen. For example, the electronic device in the embodiments of the present application may be a tablet computer, a mobile phone, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook computer, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) or virtual reality (VR) device, an in-vehicle device, or the like. The embodiments of the present application do not impose any particular restrictions on the specific form of the electronic device.

[0048] The brightness compensation method provided in the embodiments of the present application may be executed by a brightness compensation device, which may be the electronic device shown in FIG2 . Furthermore, the execution device may also be a central processing unit (CPU) of the electronic device, or a control module for brightness compensation in the electronic device. In the embodiments of the present application, the brightness compensation method provided in the embodiments of the present application is described by taking the electronic device executing the brightness compensation method as an example.

[0049] The following is a detailed description of the implementation of the embodiment of the present application with reference to the accompanying drawings. Taking the above-mentioned electronic device as a mobile phone as an example, the hardware structure of the electronic device (such as electronic device 200) is introduced. As shown in Figure 2, the electronic device 200 may include: a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display 294, and a subscriber identification module (SIM) card interface 295, etc.

[0050] Among them, the above-mentioned sensor module 280 may include sensors such as pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor and bone conduction sensor.

[0051] It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 200. In other embodiments, the electronic device 200 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0052] The processor 210 may include one or more processing units. For example, the processor 210 may include an application processor (AP), a modem processor, a graphics processing unit (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 processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.

[0053] The controller may be the nerve center and command center of the electronic device 200. 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.

[0054] Processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 210 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 210. If processor 210 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 210 latency, and thus improves system efficiency.

[0055] In some embodiments, the processor 210 may include one or more interfaces. The interfaces 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.

[0056] It is understood that the interface connection relationship between the modules illustrated in this embodiment is merely an illustrative illustration and does not limit the structure of the electronic device 200. In other embodiments, the electronic device 200 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0057] The charging management module 240 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 can receive charging input from the wired charger via the USB interface 230. In some wireless charging embodiments, the charging management module 240 can receive wireless charging input via the wireless charging coil of the electronic device 200. While charging the battery 242, the charging management module 240 can also provide power to the electronic device via the power management module 241.

[0058] The power management module 241 is used to connect the battery 242, the charging management module 240, and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240 and provides power to the processor 210, the internal memory 221, the external memory, the display 294, the camera 293, and the wireless communication module 260. The power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 241 can also be set in the processor 210. In other embodiments, the power management module 241 and the charging management module 240 can also be set in the same device.

[0059] The wireless communication function of the electronic device 200 can be implemented through the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor and the baseband processor.

[0060] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0061] The mobile communication module 250 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for the electronic device 200. The mobile communication module 250 can include at least one filter, a switch, a power amplifier, a low-noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation.

[0062] The mobile communication module 250 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 250 can be set in the processor 210. In some embodiments, at least some functional modules of the mobile communication module 250 can be set in the same device as at least some modules of the processor 210.

[0063] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 270A, the receiver 270B, etc.) or displays an image or video through the display screen 294. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 210 and be set in the same device as the mobile communication module 250 or other functional modules.

[0064] The wireless communication module 260 can provide wireless communication solutions for application on the electronic device 300, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.

[0065] Wireless communication module 260 can be one or more devices that integrate at least one communication processing module. Wireless communication module 260 receives electromagnetic waves via antenna 2, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to processor 210. Wireless communication module 260 can also receive signals to be transmitted from processor 210, frequency-modulate and amplify them, and then convert them into electromagnetic waves for radiation via antenna 2.

[0066] In some embodiments, antenna 1 of electronic device 200 is coupled to mobile communication module 250, and antenna 2 is coupled to wireless communication module 260, so that electronic device 200 can communicate with a network and other devices via wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0067] Electronic device 200 implements display functionality through a GPU, display screen 294, and an application processor. A GPU is a microprocessor for image processing that connects display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or modify display information.

[0068] Display screen 294 is used to display images, videos, etc. Display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED).

[0069] The electronic device 200 can implement a shooting function through an ISP, a camera 293, a video codec, a GPU, a display screen 294, and an application processor.

[0070] The ISP processes data fed back by camera 293. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 293.

[0071] The camera 293 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 light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion 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 electronic device 200 may include 1 or N cameras 293, where N is a positive integer greater than 1.

[0072] In the embodiment of the present application, a hole can be opened in the display panel at a position deviating from the center line for placing the camera.

[0073] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 200 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0074] Video codecs are used to compress or decompress digital video. Electronic device 200 may support one or more video codecs. This allows electronic device 200 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0075] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 200, such as image recognition, face recognition, speech recognition, and text comprehension.

[0076] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200. The external memory card communicates with the processor 210 via the external memory interface 220 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0077] The internal memory 221 can be used to store computer executable program code, which includes instructions. The processor 210 executes various functional applications and data processing of the electronic device 200 by running the instructions stored in the internal memory 221. For example, in an embodiment of the present application, the processor 210 can execute instructions stored in the internal memory 221, and the internal memory 221 can include a program storage area and a data storage area.

[0078] The program storage area may store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 200 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 221 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0079] The electronic device 200 can implement audio functions such as music playback and recording through the audio module 270 , the speaker 270A, the receiver 270B, the microphone 270C, the headphone jack 270D, and the application processor.

[0080] A touch sensor, also known as a "touch panel," can be provided on the display screen 294. The touch sensor and the display screen 294 form a touch screen, also known as a "touch screen." The touch sensor is used to detect touch operations applied to or near the touch sensor. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 294. In other embodiments, the touch sensor can also be provided on the surface of the electronic device 200, in a location different from that of the display screen 294.

[0081] In the embodiment of the present application, the electronic device 200 can detect a touch operation input by a user on the touch screen through a touch sensor and collect one or more of the touch position, touch area, touch direction, and touch time of the touch operation on the touch screen. In some embodiments, the electronic device 200 can determine the touch position of the touch operation on the touch screen by combining a touch sensor and a pressure sensor.

[0082] The buttons 290 include a power button, a volume button, and the like. The buttons 290 may be mechanical buttons or touch buttons. The electronic device 200 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 200.

[0083] Motor 291 can generate vibration prompts. Motor 291 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 294, motor 291 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0084] Indicator 292 can be an indicator light that can be used to indicate charging status, power level changes, messages, missed calls, notifications, etc. SIM card interface 295 is used to connect a SIM card. A SIM card can be connected to and disconnected from electronic device 200 by inserting or removing it from SIM card interface 295. Electronic device 200 can support one or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 295 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like.

[0085] The methods in the following embodiments can all be implemented in the electronic device 200 having the above hardware structure.

[0086] In the embodiments of the present application, steps 1-4 are first described for setting corresponding brightness compensation values ​​for different brightness ranges and grayscale ranges of a display panel. The brightness compensation values ​​herein may be referred to as mura compensation data. The brightness compensation values ​​can be used to compensate for the brightness of each pixel in the display panel when the display panel exhibits a mura image. The brightness compensation values ​​can be calculated using a demura compensation algorithm.

[0087] It is understandable that the display panel exhibits different mura at different grayscales, and the display panel also exhibits different mura at different display brightness values ​​(DBV).

[0088] Step 1: First, the electronic device selects at least one group of mura images from mura images presented by the display panel at various display brightness values. The group of mura images includes multiple mura images with significant differences. One mura image among the multiple mura images corresponds to one display brightness value. The multiple mura images may include two mura images, such as a first mura image and a second mura image, or may include more than two mura images, such as three mura images or four mura images.

[0089] In some embodiments, there is no limit on the number of display brightness values ​​that can be selected, but the mura images presented by the display panel at the selected display brightness values ​​must be clearly distinct. In other embodiments, due to storage space limitations of electronic devices, to reduce storage space pressure, a preset threshold number can be set, and multiple mura images with significant differences within the preset threshold number can be selected for subsequent generation of corresponding compensation solutions. Generally, two mura images with significant differences at display brightness values ​​are selected to generate the corresponding compensation solution.

[0090] In this application, "substantially different" may include a relatively large difference in the image information of the mura images. The image information may include the shape, size, and color of the mura images. Multiple mura images with significantly different images may alternatively be described as having difference information between the multiple mura images that is greater than a preset difference range. The difference information may include differences in any one or more of the shape, size, and color of the mura images. The preset difference range can be set as needed and is not limited. If the difference information is greater than the preset difference range, it indicates a relatively large difference. If the difference information is less than the preset difference range, it indicates a relatively small difference.

[0091] In one example, generally speaking, ultra-high frequency PWM dimming is mainly for dimming at low brightness. Then, due to ultra-high frequency PWM dimming, mura is present in the display panel, which actually causes mura to exist in the display panel at low brightness. In order to better eliminate the mura of the display panel at low brightness, when selecting the display brightness value for generating the compensation scheme, it is usually selected from the low brightness range first, that is, it can be understood that the above-selected set of mura images includes at least one mura image presented at low brightness. Optionally, the difference between the mura image presented at low brightness and the mura image presented at high brightness is usually relatively large. Then, a display brightness value is selected from the low brightness range (set to the first display brightness value), and after obtaining the mura image corresponding to the first display brightness value, a display brightness value can be selected from the high brightness range (set to the second display brightness value) to obtain the mura image corresponding to the second display brightness value. Then, the mura image corresponding to the first display brightness value and the mura image corresponding to the second display brightness value are combined to obtain a group of mura images with a large difference.

[0092] In the embodiment of the present application, the low brightness range can be referred to as a low brightness interval, and the low brightness range can include multiple low display brightness values. The high brightness range can be referred to as a high brightness interval, and the high brightness range can include multiple high brightness display values, wherein the low brightness range and the high brightness range can be adjusted according to actual needs and are not limited. Selecting a display brightness value from the low brightness range may include randomly selecting one or more display brightness values ​​from the low brightness range, and selecting a display brightness value from the high brightness range may include randomly selecting one or more display brightness values ​​from the high brightness range. Alternatively, a number (which may be referred to as a preset number) may be pre-set, and selecting a display brightness value from the low brightness range may include selecting a preset number of display brightness values ​​with lower display brightness values ​​from the low brightness range, and selecting a display brightness value from the high brightness range may include selecting a preset number of display brightness values ​​with higher display brightness values ​​from the high brightness range.

[0093] For example, the mura image corresponding to the lowest display brightness value and the mura image corresponding to the highest display brightness value can be considered as a set of mura images. Taking 2nit-600nit as an example, 2nit is the lowest display brightness value and 600nit is the highest display brightness value. In this case, the mura image presented by the display panel when the DBV is 2nit and the mura image presented by the display panel when the DBV is 600nit can be considered as a set of mura images with significant differences.

[0094] In another example, mura images presented at various display brightness values ​​are traversed to find multiple mura images with large differences (or multiple mura images with large differences in image information), and the multiple mura images with large differences are taken as a group of mura images.

[0095] For example, a pixel unit in a display panel includes multiple pixels. If the efficiency of the red pixel in the pixel unit is higher than that of the green pixel and the blue pixel, the pixel unit as a whole will be reddish. If the efficiency of the green pixel in the pixel unit is higher than that of the red pixel and the blue pixel, the pixel unit as a whole will be greenish. Taking the example of image information including the color of a mura image, and difference information including the difference between the colors of multiple mura images, a review of mura images presented at various display brightness values ​​reveals that when the DBV is 2 nits, the pixel units in the upper region of the display panel as a whole are reddish, while the pixel units in the lower region as a whole are greenish. If the DBV is 600 nits, the pixel units in the upper region of the display panel as a whole are greenish, while the pixel units in the lower region as a whole are reddish. In other words, the colors presented in the same region of the display panel at different DBVs vary significantly, and the difference information between the mura image presented by the display panel at a DBV of 2 nits and the mura image presented by the display panel at a DBV of 600 nits is greater than a predetermined difference range. Therefore, it can be assumed that the difference between the mura image presented by the display panel when the DBV is 2 nit and the mura image presented by the display panel when the DBV is 600 nit is greater than the above-mentioned preset difference range. The above-mentioned difference in the color displayed by the pixel unit is only an example, and the difference in the shape or size of the mura image can also be used.

[0096] Step 2: Then, for any set of mura images, adjust the grayscale value of each mura image in the set of mura images, take a photo of the mura image after adjusting the grayscale value, and obtain a mura image corresponding to the grayscale value at a certain display brightness value. Further, save the mura image obtained by taking the photo.

[0097] In the embodiment of the present application, adjusting the grayscale value of each mura image in the set of mura images may include adjusting the grayscale value of the mura image to a preset grayscale value. The preset grayscale value can be set as needed, for example, a single preset grayscale value or multiple preset grayscale values. It should be understood that if there is a single preset grayscale value, a mura image corresponding to the single grayscale value of the display brightness value can be obtained by taking a photo. If there are multiple preset grayscale values, mura images corresponding to multiple grayscale values ​​of the display brightness value can be obtained by taking a photo.

[0098] Optionally, the preset grayscale value may be a low grayscale value, or a grayscale value less than a preset grayscale threshold. The preset grayscale threshold in the embodiment of the present application may be adjusted according to actual needs. For example, the preset grayscale value may include a low grayscale value in the grayscale range of 0-255, which can improve the efficiency of selecting grayscale values ​​to be compensated under different display brightness values. Alternatively, the preset grayscale value may include all grayscale values ​​from 0-255 without limitation.

[0099] For example, if the mura image presented by the display panel when the DBV is 2 nit and the mura image presented by the display panel when the DBV is 600 nit are considered to be a set of mura images with significant differences, the DBV value of the display panel can be adjusted to 600 nit. At 600 nit, the grayscale value can be adjusted, and then the mura images at the preset grayscale values ​​can be photographed separately. Among them, grayscale values ​​such as 16, 32, and 64 can be selected as preset grayscale values. After adjusting to the corresponding grayscale value, the mura image presented at this time is photographed. After photographing the mura image at 600 nit, the DBV value of the display panel is similarly adjusted to 2 nit, and the mura images at the preset grayscale values ​​are photographed separately. For example, the preset grayscale value can also be 32, 64 grayscale, etc.

[0100] Step 3: Further, for the mura image corresponding to the grayscale value at any display brightness value obtained by taking a photo, the grayscale node value corresponding to each display brightness value is determined, and the brightness compensation scheme corresponding to the target grayscale node value at the display brightness value is determined.

[0101] For example, in step 2, a mura image corresponding to a grayscale value of the display brightness value or mura images corresponding to multiple grayscale values ​​of the display brightness value is obtained by taking a photograph. If a mura image corresponding to one grayscale value exists, the grayscale value is the grayscale node value corresponding to the display brightness value. If multiple mura images corresponding to multiple grayscale values ​​exist, the mura image corresponding to any grayscale value is checked, and based on difference information of the mura images corresponding to the respective grayscale values, one or more grayscale node values ​​corresponding to the display brightness value are determined from the multiple grayscale values.

[0102] In the embodiment of the present application, the grayscale node value may be referred to as a demarcation point. The grayscale node value here refers to the difference between the mura image presented by the display panel when the grayscale value is less than the grayscale node value and the mura image presented by the display panel when the grayscale value is greater than the grayscale node value, which is greater than a predetermined difference range.

[0103] For example, the preset grayscale value is a grayscale value, such as 32 grayscale. When taking pictures, the mura image presented by the display panel at 32 grayscale at 2nit and the mura image presented by the display panel at 32 grayscale at 600nit can be selected. 32 grayscale can be selected as the grayscale node value of 2nit, and 32 grayscale can be selected as the grayscale node value of 600nit.

[0104] For another example, the preset grayscale value is multiple grayscale values, such as grayscale 6 and grayscale 60. Taking photos, mura images of the display panel at grayscale 6 and grayscale 60 at 2 nit are obtained, and mura images of the display panel at grayscale 6 and grayscale 60 at 600 nit are obtained. If the difference between the mura image presented when the grayscale value is less than 60 at 2 nit and the mura image presented when the grayscale value is greater than 60 is greater than the preset difference range, the grayscale node value at 2 nit is determined to be grayscale 60. If the difference between the mura image presented when the grayscale value is less than 6 at 600 nit and the mura image presented when the grayscale value is greater than 6 is greater than the preset difference range, the grayscale node value at 600 nit is determined to be grayscale 6.

[0105] In an embodiment of the present application, when a display brightness value corresponds to multiple grayscale node values, the target grayscale value may be any grayscale node value of the multiple grayscale node values ​​corresponding to the display brightness value. Alternatively, the target grayscale value may be the grayscale node value corresponding to the most severe mura image among the multiple grayscale node values ​​corresponding to the display brightness value. A brightness compensation scheme may be referred to as a demura compensation scheme, which refers to the brightness compensation value for each pixel unit in a display panel calculated using a demura compensation algorithm.

[0106] Exemplarily, the brightness compensation scheme corresponding to the target grayscale node value under the display brightness value can be determined according to the following method: set the target brightness value of each pixel unit included in the display panel, obtain the actual brightness value of each pixel unit included in the display panel when displaying with the display brightness value and the target grayscale node value, and for each pixel unit, calculate the difference between the actual pixel value of the pixel unit and the target brightness value (or called the offset) to obtain the brightness compensation value of the pixel unit, and then use the brightness compensation value of each pixel unit included in the display panel as the brightness compensation value corresponding to the target grayscale node value under the display brightness value.

[0107] In an embodiment of the present application, for ease of description, the brightness compensation scheme corresponding to the target grayscale node value under the display brightness value can replace the demura compensation scheme described as the generation of the mura image under the display brightness value. The demura compensation schemes for the generation of mura images under different brightness display values ​​are different and can be distinguished by different names. For example, the demura compensation scheme for the generation of the mura image under 2nit can be called the first demura compensation scheme, and the demura compensation scheme for the generation of the mura image under 600nit can be called the second demura compensation scheme. Specifically, at 2nit, each pixel unit of the display panel under 32 grayscales corresponds to a target brightness value, and the brightness compensation value of each pixel unit is calculated based on the difference between the actual brightness value of each pixel unit and the target brightness value at this time. And, for the mura image presented by the display panel under 32 grayscales at 600nit, a corresponding demura compensation scheme (second compensation scheme) is generated.

[0108] Optionally, the electronic device may store the brightness compensation value corresponding to each pixel unit based on the position of each pixel unit within the display panel. Alternatively, the electronic device may generate a compensated image based on the brightness compensation value of each pixel unit, and then burn the generated compensated images corresponding to the two display brightness values ​​into the random access memory (RAM) of an integrated circuit (IC) chip.

[0109] Step 4: The display brightness value can be divided into multiple brightness intervals according to the mura image presented by the display panel at different display brightness values. Then, for each brightness interval in the multiple brightness intervals, the grayscale node value corresponding to each brightness interval is determined. Multiple grayscale intervals are obtained according to the grayscale node values ​​corresponding to the brightness intervals, and a brightness compensation scheme (or compensation scheme or demura compensation scheme) corresponding to each grayscale interval is determined, wherein the grayscale node value corresponding to each display brightness value is obtained according to step 3.

[0110] In an embodiment of the present application, the brightness interval includes multiple display brightness values. The difference information of the mura image displayed on the display panel with the display brightness value within the same brightness interval is within the preset difference range. In other words, the mura images displayed with the display brightness value within the same brightness interval are basically the same and there will be no significant difference. The preset difference range can be set as needed and is not limited. Because the grayscale node values ​​corresponding to the same or similar mura images can be the same, the grayscale node values ​​corresponding to different display brightness values ​​within the same brightness interval are the same. At this time, the grayscale node values ​​corresponding to different display brightness values ​​within the brightness interval can be called the grayscale node values ​​corresponding to the brightness interval.

[0111] In an embodiment of the present application, the preset grayscale value range can be divided into different grayscale intervals using the grayscale node values ​​corresponding to the display brightness values ​​included in the same brightness interval as dividing points. Optionally, the grayscale value range can be a pre-set grayscale range of 0-255. Specifically, the grayscale range of 0-255 can be divided into multiple grayscale intervals using the grayscale node values ​​as dividing points in the order of the grayscale range of 0-255 from small to large. For example, if the grayscale node values ​​corresponding to the brightness intervals are 60 and 80, then the grayscale intervals composed of the grayscale node values ​​are 0-60, 61-79, and 80-255.

[0112] In the present application, for any brightness interval, the image information of the mura image corresponding to the first grayscale interval corresponding to the brightness interval is compared with the image information of the mura image corresponding to the target grayscale node value of each display brightness value obtained in step 3, and the brightness compensation value corresponding to the target grayscale node value of the display brightness value with the smallest difference is used as the brightness compensation value of the first grayscale interval. For example, in step 3, the first brightness compensation scheme corresponding to the target grayscale node value of the first display brightness value and the second brightness compensation scheme corresponding to the target grayscale node value of the second display brightness value are obtained. At this time, the difference between the image information of the mura image corresponding to the first grayscale interval and the mura image corresponding to the target grayscale node value of the first display brightness value (which can be called the first difference) and the difference between the image information of the mura image corresponding to the first grayscale interval and the mura image corresponding to the target grayscale value of the second display brightness value (which can be called the second difference) can be compared. If the first difference is greater than the second difference, the brightness compensation value indicated by the second brightness compensation scheme is used as the brightness compensation value corresponding to the first grayscale interval. If the first difference is less than the second difference, the brightness compensation value indicated by the first brightness compensation scheme is used as the brightness compensation value of the first grayscale interval.

[0113] The above process can be understood as follows: when selecting the corresponding brightness compensation value for the first grayscale interval, the mura image presented by the display panel in the first grayscale interval is compared with the mura image presented by the display panel at the preset grayscale of the first display brightness value and the mura image presented by the display panel at the preset grayscale of the second display brightness value. If the mura image presented by the display panel in the first grayscale interval is closer to the mura image presented by the display panel at the preset grayscale of the first display brightness value, then the brightness compensation value corresponding to the first grayscale interval is the brightness compensation value corresponding to the first compensation scheme. If the mura image presented by the display panel in the first grayscale interval is closer to the mura image presented by the display panel at the preset grayscale of the second display brightness value, then the brightness compensation value corresponding to the first grayscale interval is the brightness compensation value corresponding to the second compensation scheme.

[0114] The first grayscale interval may include a grayscale interval consisting of a first grayscale node value and a minimum grayscale value within the total grayscale range, and a grayscale interval consisting of a second grayscale node value and a maximum grayscale value within the total grayscale range, the first grayscale value is less than the second grayscale value, and the first grayscale interval may include one or more grayscale intervals. For ease of description, when one grayscale interval is included, the grayscale interval may be referred to as the first grayscale interval. When multiple grayscale intervals are included, such as two grayscale intervals, the two grayscale intervals may be referred to as the first grayscale interval and the second grayscale interval, respectively, without limitation.

[0115] Furthermore, for the grayscale interval other than the first grayscale interval corresponding to the same brightness interval (which can be called the third grayscale interval), a fitting function related to the grayscale value and the brightness compensation value can be obtained based on the brightness compensation value of the first grayscale interval, the grayscale value of the first grayscale interval and the brightness compensation value of the second grayscale interval, and the grayscale value of the second grayscale interval, so as to calculate the brightness compensation value of each pixel unit in the display panel within the third grayscale interval (third compensation scheme).

[0116] Thus, the above method can sequentially select matching brightness compensation values ​​for display panels in different grayscale intervals within the same brightness interval. Similarly, matching brightness compensation values ​​can be sequentially selected for display panels in different grayscale intervals within each brightness interval.

[0117] For example, if the grayscale node values ​​corresponding to the brightness interval are 60 and 80, then the grayscale intervals composed of the grayscale node values ​​are 0-60, 61-79, and 80-255. The above three grayscale intervals correspond to different brightness compensation schemes. Let the grayscale interval with the smallest grayscale value be the first grayscale interval, let the grayscale interval with the largest grayscale value be the second grayscale interval, and the grayscale interval in the middle be the third grayscale interval. If the grayscale value of the image to be displayed on the display panel is within the first grayscale interval, the first compensation scheme for the display panel at low brightness can be selected. If the grayscale value of the image to be displayed on the display panel is within the third grayscale interval, the first compensation scheme for the display panel at high brightness can be selected.

[0118] In the embodiment of the present application, the smaller the display brightness value within the brightness interval, the larger the proportion of the first grayscale interval corresponding to the brightness interval in the total grayscale range; the smaller the display brightness value within the brightness interval, the smaller the proportion of the second grayscale interval corresponding to the brightness interval in the total grayscale range.

[0119] Taking a DBV of 2 nit as an example, since the compensation image corresponding to a 2 nit DBV compensates for low-brightness mura images, the smaller the DBV value of the display panel, the more consistent the brightness compensation for mura images will be with the compensation image corresponding to a 2 nit DBV. Therefore, the smaller the DBV value within the brightness range, the display panel will use the compensation image corresponding to a 2 nit DBV to perform brightness compensation within a larger grayscale range. In other words, the grayscale range of the compensation image corresponding to a 2 nit DBV will account for a larger proportion of the total grayscale range. The larger the DBV value within the brightness range, the smaller the grayscale range of the compensation image corresponding to a 2 nit DBV. In other words, the grayscale range of the compensation image corresponding to a 2 nit DBV will account for a smaller proportion of the total grayscale range. Therefore, since the grayscale range corresponding to the first compensation scheme is composed of the grayscale node and the minimum grayscale value within the total grayscale range, the grayscale node value corresponding to the first compensation scheme will be smaller for brightness ranges corresponding to larger display brightness values. For example, assuming that the display brightness value in the first brightness range is lower than the display brightness value in the second brightness range, if the grayscale node value corresponding to the first compensation solution in the first brightness range is 60, then the grayscale node value corresponding to the first compensation solution in the second brightness range can be 20. It can be seen that the proportion of the first grayscale range 0-60 in the total grayscale range is greater than the proportion of the second grayscale range 0-200 in the total grayscale range.

[0120] Taking a DBV of 600 nit as an example, since the compensation image corresponding to a DBV of 600 nit performs brightness compensation for high-brightness mura images, the larger the DBV value of the display panel, the more consistent the brightness compensation for mura images is with the compensation image corresponding to a DBV of 600 nit. Therefore, the larger the DBV brightness value within the brightness range, the larger the grayscale range of the display panel will perform brightness compensation using the compensation image corresponding to a DBV of 600 nit. In other words, the grayscale range corresponding to the compensation image selected for a DBV of 600 nit accounts for a larger proportion of the total grayscale range. Therefore, since the grayscale range corresponding to the second compensation scheme is composed of the grayscale node and the maximum grayscale value within the total grayscale range, the larger the display brightness value, the smaller the grayscale node value corresponding to the second compensation scheme. For example, assuming that the display brightness value of the first brightness range is lower than that of the second brightness range, if the grayscale node value corresponding to the second compensation scheme in the first brightness range is 80, then the grayscale node value corresponding to the second compensation scheme in the second brightness range can be 32. It can be seen that the proportion of the second grayscale range 80-255 in the total grayscale range is smaller than the proportion of the second grayscale range 32-255 in the total grayscale range.

[0121] It is understandable that the calculation of the brightness compensation scheme in steps 1-4, the setting of the grayscale node values ​​corresponding to different brightness intervals, and the setting of the brightness compensation scheme corresponding to different grayscale intervals are all factory settings of the electronic device.

[0122] Please refer to Figure 3, which is a schematic diagram of a dynamic grayscale node provided in an embodiment of the present application. As shown in Figure 3, the electronic device chooses to first perform demura compensation on the mura presented by the display panel at 2 nits and 600 nits. The electronic device takes a picture of the mura presented by the display panel at preset grayscale values ​​with DBV values ​​of 2nit and 600nit, and calculates the mura compensation value of each pixel unit in the display panel through the demura algorithm. Among them, two compensation images can be generated according to the mura compensation value of each pixel unit in the display panel, set as demura map, namely offset1 and offset2 in the figure. Offset1 corresponds to the compensation image of the display panel at 2nit, and offset2 corresponds to the compensation image of the display panel at 600nit. Among them, the vertical axis is the display brightness value DBV, and the horizontal axis is the grayscale value.

[0123] As shown in Figure 3, the display brightness value of the display panel can be divided into four brightness intervals, which are set as the first brightness interval, the second brightness interval, the third brightness interval, and the fourth brightness interval according to the display brightness values ​​included in the brightness interval from small to large. In the first brightness interval, the grayscale node value corresponding to 2 nits is 60, and the grayscale node value corresponding to 6000 nits is 80. In the second brightness interval, the grayscale node value corresponding to 2 nits is 20, and the grayscale node value corresponding to 6000 nits is 32. In the third brightness interval, the grayscale node value corresponding to 2 nits is 11, and the grayscale node value corresponding to 6000 nits is 16. In the fourth brightness interval, the grayscale node value corresponding to 2 nits is 4,600 nits, and the grayscale node value corresponding to 6. In other words, when it is detected that the display brightness value is within the first brightness interval, if the calculated grayscale value at this time is not greater than 60 (set as the first grayscale interval), the IC of the electronic device will select the compensation scheme corresponding to offset1 to compensate the brightness of the display panel. If the calculated grayscale value is not less than 80 (set as the second grayscale interval), the IC of the electronic device will select the compensation solution corresponding to offset2 to perform brightness compensation on the display panel.

[0124] Among them, if the grayscale value is between two grayscale node values, for example, in the first brightness interval, the grayscale value is greater than 60 and less than 80 (set as the third grayscale interval). Then, the electronic device can obtain a fitting function related to the grayscale value and the brightness compensation value based on the brightness compensation value of the first grayscale interval, the grayscale value of the first grayscale interval and the brightness compensation value of the second grayscale interval, and the grayscale value of the second grayscale interval, so as to calculate the brightness compensation value of each pixel unit in the display panel in the third grayscale interval. Therefore, when it is detected that the display brightness value is within the first brightness interval, if the calculated grayscale value at this time is greater than 60 and less than 80, the IC of the electronic device will select the fitted brightness compensation value scheme (the third compensation scheme) to perform brightness compensation on each pixel unit in the display panel.

[0125] As shown in Figure 3, for offset 1, the smaller the DBV value, the larger the proportion of the corresponding grayscale interval in the grayscale value; for offset 2, the larger the DBV value, the larger the proportion of the corresponding grayscale interval in the grayscale value. It should be understood that the division of brightness intervals and the corresponding grayscale node values ​​here are only examples.

[0126] Furthermore, the mapping relationship between each brightness interval and the corresponding grayscale node value and the brightness compensation scheme (or compensation scheme or demura compensation scheme) corresponding to each grayscale interval can be pre-stored in the electronic device, such as in a storage module of the electronic device.

[0127] The above describes the process of generating and storing a compensation scheme for a mura image corresponding to a grayscale value under a display brightness value. In an embodiment of the present application, after presetting each brightness interval and the corresponding grayscale node value, when the display panel displays the image subsequently, the corresponding compensation scheme can be selected according to the display brightness value and the grayscale value to perform brightness compensation on the display panel and then display it, thereby eliminating the uneven display brightness of the display panel. Among them, the storage module in the electronic device can store the mapping relationship between the above-mentioned pre-set brightness intervals and the corresponding grayscale node values. When the current display brightness value of the display panel changes across intervals, the electronic device can select the corresponding grayscale node value from the mapping relationship according to the current brightness interval, and then rewrite the grayscale node value into the RAM. Thus, the IC chip can select the corresponding brightness compensation scheme according to the grayscale interval where the grayscale value of the image to be displayed is located. Among them, the grayscale interval here is divided according to the rewritten grayscale node value, and the RAM has already stored various brightness compensation schemes.

[0128] Please refer to Figure 4, which is a flowchart of a brightness compensation method for a display panel provided by an embodiment of the present application. As shown in Figure 4, the brightness compensation method may include S401-S403.

[0129] S401: When detecting that the display panel displays at the current display brightness value, the electronic device determines the brightness interval in which the current display brightness value belongs.

[0130] In the embodiments of the present application, the display brightness value can be understood as the backlight brightness of the display panel of the electronic device, that is, the backlight brightness of the display panel can be represented by the display brightness value DBV. The backlight brightness of the display panel of the electronic device can be adjusted, for example, from a first display brightness value to a second display brightness value, etc.

[0131] Among them, the current display brightness value described in this application can be an initialized display brightness value, or it can be an adjusted display brightness value, for example, it can be a display brightness value obtained by adjusting the previous display brightness value. In the case where the current display brightness value is an adjusted display brightness value, the electronic device can adjust the display brightness value of the display panel in response to the user's instruction to adjust the display brightness value. Alternatively, when the brightness of the environment in which the electronic device is located changes, the electronic device automatically adjusts the display brightness value of the display panel. For example, when a user walks from indoors to outdoors, the brightness of the environment in which the electronic device held by the user is located will change, and the electronic device will trigger a process for adjusting the display brightness value.

[0132] Optionally, when the current display brightness value is the adjusted display brightness value, the electronic device detects whether the display brightness value changes across intervals after detecting that the display panel is displayed at the current display brightness value. For example, suppose the electronic device divides the display brightness value into a first brightness interval (1 nit-240 nits), a second brightness interval (241 nits-666 nits), and a third brightness interval (667 nits-1284 nits) according to the mura image presented by the display panel under different display brightness values. Specifically, the division of the brightness intervals can refer to the above step 4 and will not be repeated. If it is detected that the current display brightness value of the display panel changes from 200 nits to 400 nits, then the display brightness value of the display panel changes across intervals, that is, from the first brightness interval to the second brightness interval.

[0133] Then, the electronic device determines the brightness interval in which the current display brightness value is located, and executes step S402.

[0134] S402: The electronic device determines a corresponding grayscale interval according to the brightness interval.

[0135] In the embodiment of the present application, since the grayscale node values ​​corresponding to each brightness interval have been pre-set, the grayscale interval can be determined based on the grayscale node values. Specifically, the grayscale interval corresponding to the brightness interval can be determined with reference to the method described in step 4 above. For example, assuming that the grayscale node values ​​corresponding to the first brightness interval can be 30 and 72, then the corresponding grayscale intervals that can be formed by the grayscale node values ​​are 0-30 (grayscale interval 1), 31-71 (grayscale interval 2) and 72-255 (grayscale interval 3). assuming that the grayscale node values ​​corresponding to the second brightness interval can be 24 and 31, then the corresponding grayscale intervals that can be formed by the grayscale node values ​​are 0-24 (grayscale interval 1), 25-30 (grayscale interval 2) and 31-255 (grayscale interval 3). assuming that the grayscale node values ​​corresponding to the third brightness interval can be 5 and 24, then the corresponding grayscale intervals that can be formed by the grayscale node values ​​are 0-5 (grayscale interval 1), 6-23 (grayscale interval 2) and 24-255 (grayscale interval 3).

[0136] Grayscale range 1 corresponds to the first compensation scheme, grayscale range 3 corresponds to the second compensation scheme, and grayscale range 2 corresponds to the third compensation scheme. The compensation schemes herein refer to the brightness compensation values ​​corresponding to each pixel unit in the display panel. For specific determination of each compensation scheme, please refer to the steps for determining the first, second, and third compensation schemes in the aforementioned embodiment.

[0137] It can be seen that different brightness intervals correspond to different grayscale intervals, and different grayscale intervals within the same brightness interval correspond to different brightness compensation values. The brightness compensation value is the difference between the current brightness value of each pixel unit in the display panel in the grayscale interval and the target brightness value.

[0138] S403: The electronic device obtains the grayscale value of the image to be displayed on the display panel, and compensates each pixel unit in the display panel according to the brightness compensation value corresponding to the grayscale interval in which the grayscale value belongs.

[0139] In an embodiment of the present application, an electronic device obtains the grayscale value of an image to be displayed on a display panel. Specifically, an image processing module within an integrated circuit (IC) of the electronic device can calculate the grayscale value of the image to be displayed on the display panel. The average grayscale value of each pixel unit within the display panel can be calculated as the grayscale value of the image to be displayed on the display panel. The IC of the electronic device then selects a corresponding compensation scheme based on the grayscale interval within which the current grayscale value falls, and compensates each pixel unit within the display panel.

[0140] For example, assuming that the grayscale node values ​​corresponding to the second brightness interval can be 24 and 31, then the corresponding grayscale intervals that can be formed by the grayscale node values ​​are 0-24 (grayscale interval 1), 25-30 (grayscale interval 2) and 31-255 (grayscale interval 3). If the electronic device detects that the display brightness value of the display panel changes from 200 nits to 400 nits, then the display brightness value of the display panel changes from the first brightness interval to the second brightness interval. If the electronic device calculates that the current grayscale value of the display panel is 20, then the grayscale interval is grayscale interval 1. The electronic device can then select the first compensation scheme corresponding to grayscale interval 1, obtain the brightness compensation value corresponding to each pixel unit in the display panel, and perform brightness compensation on each pixel unit in the display panel. Finally, the electronic device drives the display panel to display the brightness compensated picture.

[0141] In the embodiment of the present application, in order to ensure that the display brightness value matches the brightness compensation scheme, that is, to ensure that the display brightness value matches the grayscale node value corresponding to the brightness interval in which it is located, the display driver of the electronic device sends the current display brightness value and the grayscale node value corresponding to the brightness interval in which the current display brightness value is located to the IC in the same frame, such as the image processing module in the IC. Among them, it can be achieved by packaging the current display brightness value and the grayscale node value corresponding to the brightness interval in which the current display brightness value is located and sending them together. The packaging here refers to putting the current display brightness value and the grayscale node value corresponding to the brightness interval in which the current display brightness value is located in the same code package. By sending the code package, the current display brightness value and the grayscale node value corresponding to the brightness interval in which the current display brightness value is located can be sent to the IC together in the same frame. Thus, it can be ensured that the display driver of the electronic device simultaneously sends the current display brightness value and the grayscale node value corresponding to the brightness interval in which the current display brightness value is located, so that the current display brightness value and the grayscale node value corresponding to the brightness interval in which the current display brightness value is located take effect when displaying the same frame image.

[0142] It can be understood that the current display brightness value and the grayscale node value corresponding to the brightness range of the current display brightness value are packaged and sent together to ensure that the display brightness value and the grayscale node value corresponding to the brightness range of the display brightness value are effective when the same frame image is displayed. This application does not impose any restrictions on this, as long as it can ensure that the display brightness value and the grayscale node value are effective when the same frame image is displayed.

[0143] At the same time, the display brightness value and the grayscale node value corresponding to the brightness interval of the display brightness value (which can be called a demura node) will have inconsistent effective time after being sent in the same frame. For example, as shown in Figure 5, the demura node will take effect immediately after being sent, while the display brightness value DBV will take effect after the vertical synchronization (Vsync) signal. This will cause the display brightness value and the demura interval to be mismatched, and there will be a problem where part of the displayed image uses the previous demura interval, while the other part of the image uses the next demura interval. Among them, the Vsync signal is a signal used to indicate the end of scanning the previous image frame and the start of scanning the next image frame. Specifically, because the application processor (such as AP) cannot change the grayscale node value in RAM when sending the image data of the image frame to the IC (which can be called sending the image), after the AP finishes sending the image frame, the IC can change the grayscale node value in RAM based on the sent display brightness value. Therefore, if the display brightness value is sent at a low level and the IC is reading image data from the RAM and displaying it on the display panel, it may cause part of the displayed image to use the demura interval corresponding to the unchanged grayscale node value (or called the previous demura interval), while the other part of the image uses the demura interval corresponding to the changed grayscale node value in the RAM.

[0144] Therefore, to solve the above problem, the display driver of the electronic device not only sends the display brightness value and the grayscale node value corresponding to the grayscale interval in which the display brightness value is located simultaneously, but also sends them synchronously with the TE signal, as shown in Figure 6. In other words, the display brightness value and the grayscale node value corresponding to the grayscale interval in which the display brightness value is located are sent when the Vsync signal is on, and the display brightness value and the grayscale node value corresponding to the grayscale interval in which the display brightness value is located are not sent when the voltage level is low.

[0145] Among them, the demura node here is the grayscale node value, and the demura interval is the grayscale interval composed of the demura nodes. Every time the display brightness value of the display panel changes across the interval, the electronic device will determine the grayscale node value corresponding to the brightness interval where the current display brightness value is located from the storage module that pre-stores the mapping relationship between the brightness interval and the grayscale node value, and re-write the updated grayscale node value into the RAM. The IC of the electronic device can judge the updated grayscale node value based on the current grayscale value, select the corresponding brightness compensation scheme to compensate the brightness of each pixel unit in the display panel, and eliminate the phenomenon of uneven brightness when the display panel displays the image.

[0146] Below, in conjunction with Figure 7, taking the current display brightness value as the adjusted display brightness value, that is, the display brightness value of the electronic device across the interval brightness as an example, a grayscale node value adjustment provided by the present application is introduced. In a flowchart of adjusting the grayscale node value as shown in Figure 7, the electronic device adjusts the backlight value (display brightness value), and before the display driver of the electronic device sends the updated backlight value, it is determined whether the backlight value crosses the brightness interval. If the backlight value crosses the brightness interval, the electronic device obtains the new grayscale node value corresponding to the new brightness interval where the backlight value is located, and after packaging with the backlight value, it is synchronized with the TE signal and sent to the kernel layer. Then, the electronic device can judge based on the current grayscale value of the display panel and the updated grayscale node value, and select the corresponding brightness compensation scheme to perform brightness compensation on each pixel unit in the display panel. If the backlight value does not cross the interval, the electronic device can normally obtain the grayscale node value corresponding to the brightness interval where the backlight value is located, judge based on the current grayscale value of the display panel and the grayscale node value already written in the RAM, and select the corresponding brightness compensation scheme to perform brightness compensation on each pixel unit in the display panel. At this time, there is no need to rewrite new grayscale node values ​​into the RAM of the electronic device, and the judgment can be made directly based on the current grayscale value of the display panel and the grayscale node values ​​previously stored in the RAM.

[0147] In summary, the embodiment of the present application provides a brightness compensation method for a display panel. The method can divide the display brightness value of the display panel into multiple brightness intervals in advance, set different grayscale node values ​​for different brightness intervals, and set different brightness compensation values ​​for each grayscale interval composed of grayscale node values ​​in the same brightness interval. The brightness of the display panel is represented by the display brightness value of the display panel. The electronic device can calculate the brightness compensation values ​​corresponding to different display brightness values ​​for the display panel with a preset grayscale value through a demura algorithm based on at least two different display brightness values ​​selected in advance. Thus, after adjusting the display brightness value, the electronic device can determine the corresponding grayscale node value according to the brightness interval in which the current display brightness value is located, that is, determine the brightness compensation values ​​corresponding to different grayscale intervals composed of corresponding grayscale node values ​​in the brightness interval. Then, the electronic device selects the corresponding brightness compensation value according to the grayscale interval in which the current grayscale value is located to perform brightness compensation on each pixel unit in the display panel, thereby eliminating the uneven brightness display of the display panel.

[0148] Please refer to Figure 8, which is a software flow chart for adjusting grayscale node values, provided in an embodiment of the present application. The layered architecture divides software into several layers, each with clear roles and divisions of labor. Layers communicate with each other via software interfaces. In some embodiments, from top to bottom, these layers may be the application layer, the application framework layer, the hardware abstraction layer, and the kernel layer.

[0149] The application layer can include a series of application packages.

[0150] As shown in Figure 8, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message. When the application layer detects a change in backlight brightness, it initiates the backlight adjustment process to the application framework layer, hardware abstraction layer, and kernel layer.

[0151] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 8, the application framework layer may include a window manager, content provider, view system, resource manager, notification manager, activity manager, input manager, etc.

[0152] The hardware abstraction layer runs in user space, encapsulates kernel layer drivers, and serves as an interface layer between the framework layer and the kernel layer.

[0153] The kernel layer is the layer between hardware and software. It includes at least the display driver, camera driver, audio driver, and sensor driver. The display driver in the kernel layer adjusts the backlight value and drives the display screen to display the image.

[0154] An embodiment of the present application also provides a chip system, as shown in Figure 9, the chip system 90 includes at least one processor 901 and at least one interface circuit 902. The processor 901 and the interface circuit 902 can be interconnected via lines. For example, the interface circuit 902 can be used to receive signals from other devices (such as the memory of an electronic device). For another example, the interface circuit 902 can be used to send signals to other devices (such as the processor 901). Exemplarily, the interface circuit 902 can read instructions stored in the memory and send the instructions to the processor 901. When the instructions are executed by the processor 901, the electronic device can perform the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which is not specifically limited in the embodiment of the present application.

[0155] An embodiment of the present application further provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes the various functions or steps executed by the mobile phone in the above-mentioned method embodiment.

[0156] The embodiment of the present application further 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 in the above method embodiment.

[0157] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0158] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0159] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0160] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0161] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0162] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A brightness compensation method for a display panel, characterized in that: include: When it is detected that the display panel displays the image to be displayed at the current display brightness value, determining the brightness interval in which the current display brightness value is located; wherein the difference information of the mura image presented on the display panel at the display brightness values ​​in the same brightness interval is within a first preset difference range; Determine a grayscale interval corresponding to the brightness interval; wherein the grayscale interval corresponding to the brightness interval is determined according to a grayscale node value corresponding to the brightness interval, different brightness intervals correspond to different grayscale node values, different grayscale intervals correspond to different brightness compensation values, and the brightness compensation value is a difference between an actual brightness value of each pixel unit in the display panel in the corresponding grayscale interval and a target brightness value; The grayscale value of the image to be displayed is obtained, and each pixel unit in the display panel is compensated according to the brightness compensation value corresponding to the grayscale interval where the grayscale value is located.

2. The method according to claim 1, characterized in that The display panel is preliminarily provided with brightness compensation values ​​corresponding to target grayscale node values ​​of a plurality of display brightness values, and the brightness interval corresponds to a first grayscale interval and a second grayscale interval; The brightness compensation value corresponding to the first grayscale interval corresponds to the brightness compensation value corresponding to the target grayscale node value of the first display brightness value among the multiple display brightness values, and the difference between the image information of the mura image corresponding to the first grayscale interval and the image information of the mura image corresponding to the target grayscale node value of the first display brightness value is minimal; The brightness compensation value corresponding to the second grayscale interval is the brightness compensation value corresponding to the target grayscale node value of the second display brightness value among the multiple display brightness values, and the difference between the image information of the mura image corresponding to the second grayscale interval and the image information of the mura image corresponding to the target grayscale node value of the second display brightness value is minimal.

3. The method according to claim 2, characterized in that The brightness interval also includes a third grayscale interval, the grayscale value in the third grayscale interval is greater than the grayscale value in the first grayscale interval, and the grayscale value in the third grayscale interval is less than the grayscale value in the second grayscale interval; The brightness compensation scheme corresponding to the third grayscale interval is obtained by analyzing the brightness compensation value of the first grayscale interval, the grayscale value of the first grayscale interval, the brightness compensation value of the second grayscale interval, and the grayscale value of the second grayscale interval using a brightness compensation value fitting curve, wherein the brightness compensation value fitting curve is used to indicate the trend of the brightness compensation value changing with the grayscale interval.

4. The method according to claim 2 or 3, characterized in that: The display panel corresponds to a mura image presented at the multiple display brightness values; the multiple display brightness values ​​include the first display brightness value and the second display brightness value; wherein the difference information between the mura image presented by the display panel at the first display brightness value and the mura image presented at the second display brightness value is greater than a second preset difference range, and the second display brightness value is greater than the first display brightness value; The target grayscale node value of the first display brightness value corresponds to a brightness compensation value obtained by performing brightness compensation on the display panel at the target grayscale node value of the first display brightness value; The brightness compensation value corresponding to the target grayscale node value of the second display brightness value is obtained by performing brightness compensation on the display panel at the target grayscale node value of the second display brightness value.

5. The method according to any one of claims 1 to 4, characterized in that: The brightness interval corresponds to a first grayscale interval and a second grayscale interval; The smaller the display brightness value in the brightness interval, the greater the first grayscale interval corresponding to the brightness interval. The larger the proportion occupied in the grayscale range, the smaller the display brightness value in the brightness interval, and the smaller the proportion occupied by the second grayscale interval corresponding to the brightness interval in the total grayscale range.

6. The method according to any one of claims 1 to 5, characterized in that: The compensating each pixel unit in the display panel according to the brightness compensation value corresponding to the grayscale interval where the grayscale value is located includes: If the grayscale value is in a first grayscale interval corresponding to the brightness interval, each pixel unit in the display panel is compensated according to a first brightness compensation value corresponding to the first grayscale interval; If the grayscale value is in a second grayscale interval corresponding to the brightness interval, each pixel unit in the display panel is compensated according to a second brightness compensation value corresponding to the second grayscale interval; If the grayscale value is in a third grayscale interval corresponding to the brightness interval, each pixel unit in the display panel is compensated according to a third brightness compensation value corresponding to the third grayscale interval.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: In response to the scan start signal of the image to be displayed, the current display brightness value and the grayscale node value corresponding to the current display brightness value are packaged together and sent to the display driver of the electronic device.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In response to a user's instruction to adjust the display brightness value of the display panel, detecting the current display brightness value of the display panel; the adjustment instruction is used to instruct the current display brightness value of the display panel to change across intervals; or, When it is detected that the ambient light brightness of the display panel changes, the current display brightness value of the display panel is detected.

9. The method according to any one of claims 1 to 8, characterized in that: After obtaining the grayscale value of the image to be displayed on the display panel and compensating each pixel unit in the display panel according to the brightness compensation value corresponding to the grayscale interval where the grayscale value is located, the method further includes: The display panel is driven to display the image to be displayed.

10. An electronic device, characterized in that: The electronic device comprises: a display screen, a memory and one or more processors; the display screen comprises a display panel; the display screen, the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code comprises computer instructions, and when the computer instructions are executed by the electronic device, the electronic device executes the method as described in any one of claims 1 to 9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed in an electronic device, the electronic device executes the method according to any one of claims 1 to 9.