A compensation method, system, electronic device, and storage medium for a display device.

By setting a target exposure time for the image acquisition device and enhancing the acquired image, the image quality problem in the prior art is solved, the image quality is improved, and the problem of low production line efficiency caused by excessively long automatic exposure time of the image acquisition device in the prior art is solved. The method achieves efficient image compensation effect, improves production line efficiency, and ensures the brightness uniformity of the display device.

CN119274483BActive Publication Date: 2026-01-06HONOR DEVICE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410414423.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-07
Publication Date
2026-01-06
Estimated Expiration
2044-04-07

AI Technical Summary

Technical Problem

Existing Demura compensation methods are inefficient in production line processes, especially in low-light conditions where the automatic exposure time of image acquisition equipment is too long, resulting in excessively long shooting time and affecting production line efficiency.

Method used

By setting a target exposure time for the image acquisition device under low-light conditions, shortening the exposure time, and enhancing the acquired images, the image quality can be ensured to meet compensation requirements, thereby improving image acquisition efficiency.

Benefits of technology

Without compromising image quality, the image acquisition time was significantly shortened, production efficiency and compensation accuracy of the production line were improved, and the brightness uniformity of the display device was ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119274483B_ABST
    Figure CN119274483B_ABST
Patent Text Reader

Abstract

The application provides a compensation method and system of a display device, an electronic device and a storage medium, and relates to the technical field of display. The exposure time used when collecting the display picture of the display device is reduced, the shooting time is shortened, and the efficiency of the whole production line is improved. The compensation method comprises the following steps: in the case that a first display device displays a picture at a first display brightness, an electronic device sends a target exposure time corresponding to the first display brightness to an image collection device; the target exposure time is less than the automatic exposure time of the image collection device; the electronic device receives a first target image from the image collection device, the first target image is an image obtained by the image collection device shooting the display picture of the first display device in response to the target exposure time, and the electronic device determines corresponding compensation data according to the first target image; and the electronic device sends the compensation data of the first target image to the first display device, so as to trigger the first display device to adjust the display brightness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of display technology, and in particular to a compensation method, system, electronic device, and storage medium for a display device. Background Technology

[0002] Organic light-emitting diode (OLED) displays suffer from uneven screen brightness, resulting in various marks, known as the mura phenomenon.

[0003] Currently, demura compensation methods are commonly used to compensate for mura, ensuring that the grayscale of the compensated mura areas matches that of the standard areas. Existing demura compensation methods all require using a camera to capture the display screen's image and obtain its brightness before determining the mura compensation data. Currently, in production lines with a large number of displays to be compensated, determining the mura compensation data is inefficient, thus impacting production line efficiency. Summary of the Invention

[0004] This application provides a compensation method, system, electronic device, and storage medium for a display device. The electronic device reduces the exposure time used when capturing the display screen of the display device, thereby shortening the shooting time and improving the efficiency of the entire production line.

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

[0006] In a first aspect, this application provides a compensation method for a display device, the compensation method comprising:

[0007] When the first display device displays an image at a first display brightness, the electronic device sends a target exposure time corresponding to the first display brightness to the image acquisition device; the target exposure time is less than the automatic exposure time of the image acquisition device; the electronic device receives a first target image from the image acquisition device, the first target image being an image obtained by the image acquisition device in response to the target exposure time, the exposure duration of the first target image being the target exposure time; the electronic device determines corresponding compensation data based on the first target image; the electronic device sends the compensation data of the first target image to the first display device, triggering the first display device to adjust its display brightness.

[0008] This can be understood as the image acquisition device using a target exposure time shorter than the automatic exposure time to capture the display screen of the first display device. By reducing the exposure time of the image acquisition device, the shooting time is shortened, thereby improving the overall production efficiency of the display device.

[0009] In another possible implementation of the first aspect, the electronic device sending compensation data of the first target image to the first display device may include:

[0010] The electronic device performs enhancement processing on the first target image to obtain a first target image with adjusted brightness; after determining the compensation data of the first target image with adjusted brightness, the electronic device sends the compensation data of the first target image with adjusted brightness to the first display device.

[0011] In other words, the electronic device enhances the first target image so that the enhanced first target image can replace the image acquired using automatic exposure time, thereby ensuring that the brightness of the enhanced first target image meets the subsequent compensation requirements.

[0012] Because the target exposure time is shorter than the automatic exposure time, there may be a situation where the image amplitude of the first target image obtained by the image acquisition device using the target exposure time differs significantly from the image amplitude obtained using the automatic exposure time. The electronic device can perform enhancement processing on the first target image to make the image amplitude of the enhanced first target image consistent with the image amplitude obtained using the automatic exposure time. Furthermore, this improves the compensation accuracy of the display device, thereby improving the brightness uniformity of the display device.

[0013] In another possible implementation of the first aspect, the electronic device enhances the first target image to obtain a brightness-adjusted first target image, including:

[0014] The electronic device uses the target filtering parameters corresponding to the first display brightness to enhance the first target image, thereby obtaining the first target image after brightness adjustment.

[0015] This can be understood as the electronic device using target filtering parameters to enhance the first target image, so that the processed first target image can replace the image acquired using automatic exposure time, thereby ensuring that the brightness of the enhanced first target image meets the subsequent compensation requirements.

[0016] In another possible implementation of the first aspect, the compensation method may further include:

[0017] The electronic device receives multiple first images from an image acquisition device. These multiple first images are images obtained by the image acquisition device using different exposure times to capture the display screen of a second display device. The brightness of the second display device is the same as the first display brightness, and the screen types of the second and first display devices are the same. The electronic device also receives second images from the image acquisition device. These second images are images obtained by the image acquisition device using automatic exposure times to capture the display screen of the second display device. The electronic device determines the similarity between the multiple first images and the second images. Based on the similarity between the multiple first images and the second images, the electronic device determines the target exposure time.

[0018] In other words, electronic devices compare the similarity between multiple frames of the first image and the second image to find a target exposure time that is close to the automatic exposure time but shorter than the automatic exposure time, so as to reduce the shooting time in the subsequent process of brightness compensation for the screen of the same type of display device.

[0019] In another possible implementation of the first aspect, the electronic device determines the target exposure time based on the similarity between multiple frames of the first image and the second image, including:

[0020] The electronic device identifies the first image, whose similarity to the second image is greater than a similarity threshold, as the second target image; the electronic device also identifies the exposure time of the second target image acquired by the image acquisition device as the target exposure time.

[0021] Here, when the similarity between the first image and the second image is greater than a similarity threshold, the image quality of the first image is considered acceptable to the user. Subsequently, the electronic device receives images from the image acquisition device acquired using the target exposure time, ensuring the quality meets compensation requirements.

[0022] In another possible implementation of the first aspect, the first image, whose similarity to the second image is greater than a similarity threshold, is identified as the second target image, including:

[0023] The electronic device identifies the first image, whose similarity to the second image is greater than a similarity threshold, as the third image. The third image consists of multiple frames. The electronic device identifies the image with the shortest exposure time when acquiring the multiple frames of the third image as the second target image.

[0024] This can be understood as follows: when the electronic device determines that the first image, with a similarity greater than a similarity threshold to the second image, consists of multiple frames, the image with the shortest exposure time can be designated as the second target image. In this way, when the electronic device subsequently acquires images using the exposure time corresponding to the second target image, it saves the image acquisition time.

[0025] In another possible implementation of the first aspect, determining the first image, whose similarity to the second image is greater than a similarity threshold, as the second target image further includes:

[0026] The electronic device identifies the first image, whose similarity to the second image is greater than a similarity threshold, as the third image. The third image consists of multiple frames. The electronic device determines the image amplitude of each frame of the third image and the image amplitude of the second image. The image amplitude is used to characterize the brightness of the image. After comparing the image amplitude of each frame of the third image with the image amplitude of the second image, the electronic device identifies the third image with the smallest difference in image amplitude from the second image as the second target image.

[0027] This can be understood as follows: the image amplitude of the second target image acquired by the image acquisition device using the target exposure time is little different from or not different from the image amplitude of the second image acquired using the automatic exposure time. This achieves the goal of shortening the shooting time and improving the efficiency of the entire production line by reducing the exposure time of the image acquisition device without reducing the compensation accuracy of the display screen.

[0028] In another possible implementation of the first aspect, determining the similarity between multiple frames of the first image and the second image includes:

[0029] For each frame of the first image, the electronic device determines the similarity between the first image and the second image based on the cross-correlation coefficient between the first image and the second image. The cross-correlation coefficient is used to characterize the degree of similarity between the first image and the second image.

[0030] Cross-correlation coefficient can be understood as a metric used to measure the similarity between two images. Electronic devices can determine the similarity between two images based on the cross-correlation coefficient between the first and second images.

[0031] In another possible implementation of the first aspect, before determining the similarity based on the cross-correlation coefficient between the first image and the second image, the compensation method may further include:

[0032] The electronic device converts both the first image and the second image into grayscale images to obtain the first grayscale image and the second grayscale image;

[0033] The electronic device determines the mean and standard deviation of the first grayscale image and the second grayscale image;

[0034] For each pixel location, the electronic device subtracts the mean of the first grayscale image from the pixel value corresponding to the pixel location in the first grayscale image to obtain the first pixel value; subtracts the mean of the second grayscale image from the pixel value corresponding to the pixel location in the second grayscale image to obtain the second pixel value; and determines the product of the first pixel value and the second pixel value.

[0035] The electronic device adds up the product values ​​corresponding to all pixel positions, and then divides the sum of the product values ​​by the total number of pixels to determine the cross-correlation coefficient.

[0036] In another possible implementation of the first aspect, the compensation method may further include:

[0037] The electronic device sends a target exposure time corresponding to the first display brightness to the image acquisition device; the electronic device receives a second target image from the image acquisition device, the second target image being an image obtained by the image acquisition device capturing the display screen of the second display device using the target exposure time; the electronic device performs enhancement processing on the second target image using at least two preset filtering parameters respectively, obtaining at least two frames of brightness-adjusted second target images; the electronic device determines the image difference between each frame of brightness-adjusted second target image and the second image; the electronic device determines the preset filtering parameter corresponding to the brightness-adjusted second target image with the smallest image difference as the target filtering parameter.

[0038] This can be understood as follows: after the electronic device determines more precise target filtering parameters, it uses the target filtering parameters to enhance the target image, so that the brightness of the processed target image meets the subsequent compensation requirements.

[0039] In another possible implementation of the first aspect, determining the image difference between the brightness-adjusted second target image and the second image for each frame includes:

[0040] The electronic device determines the image difference based on the sum of the differences between the second target image after brightness adjustment and the pixel values ​​of all pixels in the second image; or, the electronic device determines the image difference based on the sum of the squared differences between the corresponding pixel values ​​of the second target image after brightness adjustment and the second image.

[0041] In another possible implementation of the first aspect, enhancing the first target image using target filtering parameters corresponding to the first display brightness may include:

[0042] The electronic device controls the spatial filter to enhance the first target image using the target filtering parameters.

[0043] Secondly, this application provides a compensation system for a display device, comprising:

[0044] A first display device is used to display an image at a first display brightness.

[0045] An image acquisition device is used to capture the display screen of a first display device using a target exposure time to obtain a first target image; the target exposure time is less than the automatic exposure time of the image acquisition device.

[0046] An electronic device is used to compensate the display brightness of a first display device based on the compensation data of the first target image after determining the compensation data of the first target image.

[0047] Thirdly, this application provides an electronic device including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in the first aspect.

[0048] Fourthly, this application provides a computer-readable storage medium having a computer program / instructions stored thereon, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0049] Fifthly, this application provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of the method described in the first aspect.

[0050] Understandably, the compensation system described in the second aspect, the electronic device described in the third aspect, the computer storage medium described in the fourth aspect, and the computer program product described in the fifth aspect are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here. Attached Figure Description

[0051] Figure 1 Example of display effect of a portion of the display screen provided in the embodiments of this application Figure 1 ;

[0052] Figure 2 Example of display effect of a portion of the display screen provided in the embodiments of this application Figure 2 ;

[0053] Figure 3 Example of display effect of a portion of the display screen provided in the embodiments of this application Figure 3 ;

[0054] Figure 4 This is a schematic diagram of a compensation scenario provided in an embodiment of this application;

[0055] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0056] Figure 6 A schematic diagram of a process for determining target exposure time provided in an embodiment of this application;

[0057] Figure 7 Example images of images acquired by the image acquisition device provided in this application embodiment using different exposure times;

[0058] Figure 8 Example diagrams for determining target exposure time provided in embodiments of this application;

[0059] Figure 9 A flowchart illustrating a compensation method provided in an embodiment of this application;

[0060] Figure 10 Example diagrams of the amplitude of images acquired by the image acquisition device provided in this application embodiment using different exposure times;

[0061] Figure 11 A flowchart illustrating another compensation method provided in an embodiment of this application;

[0062] Figure 12 This is a schematic diagram of the process for enhancing a target image provided in an embodiment of this application;

[0063] Figure 13 This is a flowchart illustrating the process of determining target filtering parameters as provided in an embodiment of this application. Detailed Implementation

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

[0065] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of this application, unless otherwise stated, "a plurality of" means two or more.

[0066] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0067] As a current-driven light-emitting device, OLEDs are increasingly being used in high-performance displays. OLEDs are self-emissive materials with advantages such as high contrast, ultra-thinness, and flexibility. Due to limitations in equipment and manufacturing processes, in low-temperature poly-silicon thin film transistors (LTPS TFTs) fabricated on large-area glass substrates, TFTs at different locations typically exhibit non-uniformity in electrical parameters such as threshold voltage and mobility. This non-uniformity translates into differences in current and brightness in the OLED screen, which are perceived by the human eye, known as the Mura phenomenon.

[0068] Screen brightness (Luminance) refers to the physical quantity of the intensity of light emitted from the surface of a light-emitting object, measured in nits. Screen brightness is an important indicator for measuring the luminous intensity of a display screen. Screen brightness is adjusted through the display brightness value (DBV), therefore, there is a one-to-one correspondence between screen brightness and display brightness. For example, in bright light, users can increase the DBV value to increase the screen brightness, making it easier to see the displayed content. In low light, users can decrease the DBV value to decrease the screen brightness, avoiding excessive differences between ambient light and screen brightness that could negatively impact eye health.

[0069] It's important to explain that the voltage difference across the LEDs of a display determines the display's DBV value. Therefore, adjusting the DBV value is actually achieved by adjusting the magnitude of the voltage difference across the LEDs. Typically, DBV dimming modes can include direct current (DC) dimming mode and pulse width modulation (PWM) dimming mode.

[0070] DC dimming mode changes the display's depth-of-view (DBV) by increasing or decreasing circuit power. Higher circuit power results in a brighter screen, while lower circuit power results in a dimmer screen. In DC dimming mode, low circuit power can cause severe mura (distortion) on the display, even leading to blurry images. Therefore, DC mode is typically suitable for high DBV ranges.

[0071] PWM dimming achieves a continuous display effect by controlling the display screen to flicker alternately at a certain frequency, utilizing the persistence of vision. The faster the screen flickers, the larger the dBV (dead-width value), and the brighter the screen; conversely, the slower the flicker, the smaller the dBV, and the dimmer the screen. Low-frequency PWM dimming produces good display results; therefore, PWM dimming is typically suitable for low dBV ranges.

[0072] In the two different dimming modes mentioned above, the brightness of the images captured by the camera on the display screen differs between the high and low DBV ranges, and the image brightness is not consistent even at the same display brightness and grayscale. For example, the Mura pattern of the same grayscale differs across different DBV ranges. Grayscale refers to the tonal depth of electromagnetic radiation intensity of ground objects in a black-and-white image, typically dividing the screen brightness variation between the brightest and darkest points into 0 to 255 levels to facilitate control of the screen brightness input signal. Here, Mura pattern refers to the phenomenon of uneven screen brightness during display.

[0073] For example, Figure 1 Example of display effect of a portion of the display screen provided in the embodiments of this application Figure 1 , Figure 1 When an electronic device uses PWM dimming mode to control the display screen, the electronic device controls a camera to capture an image of a portion of the displayed screen. For example... Figure 1 In the middle (a), the image is a partial area of ​​the display screen with a DBV of 266, a screen brightness of 0.06 nit, and a corresponding grayscale level of 32. Figure 1 Image (b) shows a portion of the display screen with a DBV of 1291, a screen brightness of 0.93 nits, and a corresponding grayscale level of 32. Figure 1 It is known that, at different screen brightness levels and the same grayscale, different DBVs result in inconsistent display effects in certain areas of the display. For example, Figure 1 Region A1 in (a) and Figure 1 In (b), area A2 is the shooting area corresponding to the same area of ​​the display screen, and the brightness of area A1 and area A2 is different.

[0074] Figure 2 Example of display effect of a portion of the display screen provided in the embodiments of this application Figure 2 .like Figure 2 In the middle (a), the display effect of a part of the screen is shown when the DBV is 1, the screen brightness is 0.02 nit, and the corresponding gray level is 32. Figure 2Image (b) shows the display effect of a portion of the screen when the DBV is 266, the screen brightness is 0.06 nits, and the corresponding grayscale level is 32. Figure 2 It can be seen that, at the same grayscale, different DBVs and screen brightness levels result in different display effects in certain areas of the screen. For example, Figure 2 Region B1 in (a) and Figure 2 In (b), area B2 is the shooting area corresponding to the same area of ​​the display screen, and the brightness of area B1 and area B2 is different.

[0075] Figure 3 Example of display effect of a portion of the display screen provided in the embodiments of this application Figure 3 . Figure 3 This is a diagram showing the display effect of a portion of the screen when using DC dimming mode to control the display. Figure 3 In the middle (a), the display effect of a part of the screen is shown when the DBV is 3515, the screen brightness is 1.3578 nit, and the corresponding gray level is 16. Figure 3 Image (b) shows the display effect of a portion of the screen when the DBV is 3515, the screen brightness is 0.2955 nits, and the corresponding grayscale level is 8. Figure 3 It can be seen that in the high DBV range, at the same DBV, different screen brightness levels correspond to different display areas with different display effects. For example, Figure 3 Region C1 in (a) and Figure 3 In (b), area C2 is the shooting area corresponding to the same area of ​​the display screen, and the brightness of areas C1 and C2 is different.

[0076] In other words, the display effect of a screen is predictable in the high DBV range, but in the low DBV range, the display effect is unpredictable and shows no clear pattern, regardless of the screen brightness or grayscale. Therefore, the Demura method, which uses grayscale compensation curves for mapping compensation, is not suitable for the low DBV range. This Demura method is ineffective in compensating for low DBV and cannot eliminate Mura on the screen at low DBV.

[0077] Understandably, the ideal state for a display is uniform grayscale at a given DBV. However, the presence of Mura (duration of grayscale) causes inconsistencies in grayscale. For example, if a display shows a completely uniform solid color image across all areas, and the screen brightness is 500 nits at the corresponding DBV, each pixel should correspond to 128 grayscale levels. However, some pixels in the Mura area may actually correspond to 32, 64, or other grayscale levels, resulting in uneven screen brightness.

[0078] The Demura method uses external driving circuits or devices to sense the electrical or optical characteristics of pixels and perform external compensation on the murura region to ensure that the grayscale of the murura region is consistent with that of the standard region. External compensation includes electrical compensation and optical compensation. Among them, optical compensation is a commonly used compensation method.

[0079] For example, Figure 4 This is a schematic diagram of a compensation scenario provided for an embodiment of this application. For example... Figure 4 As shown, camera 410 can be a complementary metal oxide semiconductor (CMOS) camera or a charge coupled device (CCD) camera, or other types of cameras; this embodiment does not limit the specific camera used. The display screen 430 can be the display screen to be compensated. Camera 410 is electrically connected to electronic device 420, and electronic device 420 is electrically connected to display screen 430.

[0080] It needs to be explained that, Figure 4 The electronic device 420 shown is a laptop computer, and the display screen 430 is a mobile phone screen. This is only an example, and the embodiments in this application are not limited thereto. For example, the electronic device 420 can also be a desktop computer, a tablet computer, etc., and the display screen 430 can also be a laptop computer display screen, a tablet computer display screen, etc.

[0081] by Figure 4 Taking the optical compensation scenario as an example, the optical compensation process of the Demura method can include: electronic device 420 controls display screen 430 to display a standard image signal, so that the display screen 430 displays the image to be tested at a certain DBV. The image to be tested can be a grayscale image or an RGB color mode (Red Green Blue Color Mode) image. Electronic device 420 controls camera 410 to acquire image data of the image to be tested at several grayscale levels and sends the image data to electronic device 420. After receiving the image data, electronic device 420 obtains grayscale compensation data of the image data through the Demura compensation algorithm, and burns the compensation data into the memory of the display screen to eliminate the Mura on the display screen 430. Electronic device 420 controls camera 410 to re-acquire the compensated image data to confirm that the Mura on the display screen has been successfully eliminated.

[0082] Because camera 410 only captures the Mura pattern of the display screen under a single DBV (Depth of Field) when acquiring images, compensation for other brightness levels will be inaccurate. Furthermore, when display screen 430 is at low brightness, camera 410 acquires image data of the display screen under low brightness. Electronic device 420 controls camera 410 to use automatic exposure time to capture the display screen image, which results in excessively long automatic exposure time for camera 410, leading to a significant time consumption during the shooting process. For example, the automatic exposure time of camera 410 can be as long as several minutes. In the production line process, assuming electronic device 420 controls camera 410 to sequentially capture the display images of 500 displays using automatic exposure time, it would take several thousand minutes, resulting in low production capacity. To reduce image acquisition time, if camera 410 uses a large aperture to acquire images, the shallow depth of field will prevent accurate focusing, resulting in low image quality. This will affect the subsequent compensation effect of the Demura method in the low DBV range, failing to eliminate the Mura of the display screen.

[0083] Therefore, this application proposes a display screen compensation method. When the first display device displays an image at a first display brightness, the electronic device sends a target exposure time corresponding to the first display brightness to the image acquisition device; the electronic device receives a first target image from the image acquisition device, and the electronic device determines corresponding compensation data based on the first target image; the electronic device sends the compensation data of the first target image to the first display device, triggering the first display device to adjust the display brightness.

[0084] The first target image is an image obtained by the image acquisition device in response to the target exposure time and capturing the display screen of the first display device. The exposure time for capturing the first target image is the target exposure time.

[0085] Therefore, when acquiring images in low light conditions, shortening the exposure time during image acquisition reduces the shooting time without affecting image quality, thus improving production line efficiency.

[0086] For example, the display compensation method provided in this application embodiment can be applied to electronic devices such as mobile phones, tablets, personal computers (PCs), personal digital assistants (PDAs), netbooks, handheld computing devices, and industrial computing devices. This application embodiment does not impose any limitations on this.

[0087] For example, such as Figure 5 As shown, Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0088] Electronic device 500 may include processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, and display screen 194, etc.

[0089] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 500. In other embodiments of this application, the electronic device 500 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0090] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0091] The controller can be the nerve center and command center of the electronic device 500. The controller can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.

[0092] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0093] The wireless communication function of electronic device 500 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.

[0094] Electronic device 500 implements display functions through a GPU, display screen 194, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU performs mathematical and geometric calculations and is used for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0095] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 500. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0096] Internal memory 121 can be used to store computer executable program code, which includes instructions.

[0097] Electronic device 500 can implement audio functions such as music playback and recording through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0098] The following is combined with Figures 6 to 13 The compensation method for the display device provided in the embodiments of this application will be described in detail below. The following description uses a display screen as an example, but other display devices are also possible and are not limited here.

[0099] In this embodiment, during the manufacturing process of the display screen, in order to eliminate mura (display distortion), the electronic device can employ the Demura method to eliminate mura. In one scenario, when the electronic device determines that the display screen's brightness is low, before the production line officially starts operating, the electronic device can calibrate the exposure time of the image acquisition device based on the target exposure time corresponding to the display screen's brightness. This reduces the exposure time of the image acquisition device, thereby shortening the shooting time and improving production line efficiency.

[0100] In essence, the exposure time of an image acquisition device refers to the time interval between the shutter opening and closing in order to project light onto the photosensitive surface of the photographic material. When the electronic device determines that the display brightness of the screen is different, it controls the image acquisition device to use different exposure times to capture the display image.

[0101] When electronic devices determine that the display brightness is low, to avoid excessively long image capture times caused by the electronic devices controlling the image acquisition device to use longer exposure times, the electronic devices can determine a target exposure time for the image acquisition device at the same display brightness (e.g., brightness 1) by comparing the similarity between multiple frames captured by the image acquisition device at different exposure times and images captured with automatic exposure times. During production, when the electronic devices determine that the produced display brightness is brightness 1, they first adjust the exposure time of the image acquisition device to the target exposure time, and then control the image acquisition device to capture the display image at the target exposure time, thus reducing image capture time.

[0102] The target exposure time refers to the exposure time used by the image acquisition device when actually acquiring image data from the display screen, and the target exposure time is less than the automatic exposure time of the image acquisition device.

[0103] It should be explained that the automatic exposure time for the image acquisition device to capture the displayed image varies depending on the screen's brightness. Therefore, under different screen brightness levels, the electronic device can determine the target exposure time for the image acquisition device at different brightness levels by comparing the similarity between multiple frames captured by the image acquisition device using different exposure times and images captured with the corresponding automatic exposure time for that brightness level.

[0104] In some embodiments, since the settings of the image acquisition device itself are crucial for the accurate acquisition of image data, the image acquisition device can be calibrated before it is controlled to capture the display screen at the target exposure time. This can be done to avoid problems where the image acquisition device itself affects the quality of the captured image. For example, the image acquisition device can be routinely calibrated.

[0105] In this embodiment, since the target exposure time is shorter than the automatic exposure time, the image acquisition device uses the target exposure time to acquire the display screen's image. The resulting image amplitude of image 1 may differ significantly from the image amplitude of image 2 acquired using the automatic exposure time. Directly using the compensation data from image 1 to compensate the screen's brightness may not completely eliminate mura. To reduce the difference between the image amplitudes of image 1 and image 2, the electronic device can enhance image 1 so that its image amplitude is the same as that of image 2. Subsequently, the electronic device obtains the grayscale compensation data of the enhanced image 1 using a demura compensation algorithm and burns the compensation data into the display screen's memory to completely eliminate mura.

[0106] Image amplitude is used to characterize the brightness level of an image. For example, if a region of an image is darker, its image amplitude is larger; if a region is lighter, its image amplitude is smaller. Using the brightness value of the image center point as a reference, assuming the brightness value of region A is 0.7 times that of the image center point, and the brightness value of region B is twice that of the image center point, it means that the amplitude of region B is greater than that of region A.

[0107] The following example uses the display screen during the production stage of the production line as the first display screen and the display screen during the testing stage as the second display screen, combined with... Figure 6 The process of determining the target exposure time of the image acquisition device corresponding to the second display screen under the first display brightness during the testing phase is described in detail. It is acceptable that the first display screen and the second display screen are of the same type. In this embodiment, the type of display screen is not limited.

[0108] like Figure 6 As shown, the method may include steps 601 to 606.

[0109] Step 601: The image acquisition device captures images of the second display screen at different exposure times, and after acquiring multiple frames of the first image, sends the multiple frames of the first image to the electronic device; correspondingly, the electronic device receives the multiple frames of the first image sent by the image acquisition device.

[0110] In this embodiment of the application, during the testing phase, when the second display screen maintains a constant first display brightness, the electronic device can control the image acquisition device to capture the display screen of the second display screen using different exposure times, so as to acquire multiple frames of the first image corresponding to different exposure times.

[0111] For example, assuming the display brightness of the second display screen is 20, the electronic device can control the image acquisition device to capture the display screen of the second display screen using exposure time 1, exposure time 2 and exposure time 3 respectively, so as to acquire 3 frames of the first image corresponding to different exposure times.

[0112] Understandably, when other shooting parameters of the image acquisition device remain constant, a longer exposure time results in a better image quality for the first captured image. Therefore, the image acquisition device captures multiple first images at different exposure times to obtain images of varying qualities.

[0113] Step 602: The image acquisition device captures the display screen of the second display screen under automatic exposure time, obtains the second image, and then sends the second image to the electronic device; correspondingly, the electronic device receives the second image sent by the image acquisition device.

[0114] In this embodiment, the automatic exposure time of the image acquisition device is longer than the exposure time used when acquiring multiple frames of the first image. Therefore, there are differences between the multiple frames of the first image acquired by the image acquisition device and the second image acquired by the image acquisition device. Subsequently, the electronic device can determine a second target image with smaller differences from the second image from the multiple frames of the first image based on the similarity between the multiple frames of the first image and the second image.

[0115] Step 603: The electronic device determines the similarity between the multiple frames of the first image and the second image, respectively.

[0116] In some embodiments, the electronic device can determine the similarity between the first image and the second image based on the cross-correlation coefficient between the two images. The cross-correlation coefficient is used to characterize the degree of similarity between the first image and the second image.

[0117] Optionally, the electronic device converts both the first image and the second image into grayscale images. After obtaining the first grayscale image and the second grayscale image, it calculates the mean and standard deviation of the first grayscale image and the second grayscale image, respectively. Then, for each pixel location, the electronic device subtracts the mean of the first grayscale image and the second grayscale image from the pixel value at that location to obtain the first pixel value and the second pixel value. For each pixel location, the electronic device calculates the product of the first pixel value and the second pixel value. The electronic device adds up the product values ​​corresponding to all pixel locations to obtain the numerator of the cross-correlation coefficient, and then divides the numerator by the total number of pixels to obtain the cross-correlation coefficient.

[0118] For example, an electronic device may use the following formula (1) to calculate the cross-correlation coefficient of the first image and the second image to determine the similarity between the first image and the second image based on the cross-correlation value.

[0119] Formula (1)

[0120] Where r represents the cross-correlation coefficient between the first image and the second image. The pixel mean of the first grayscale image corresponding to the first image. Let m and n be the average pixel values ​​of the second grayscale image of the second image object, where m and n are both positive integers.

[0121] In other embodiments, the electronic device can input each frame of the first image from multiple frames of first images, along with a second image, into a trained image similarity detection model to determine the similarity between each frame of the first image and the second image based on the output of the image similarity detection model. The image similarity detection model is pre-trained using a large number of sample images and has the ability to accurately determine the similarity between two frames of images.

[0122] In other embodiments, the electronic device can calculate the cosine similarity between each frame of the first image and the second image in a plurality of first images. Specifically, the electronic device can represent both the plurality of first images and the second image as vectors, and characterize the similarity between the first image and the second image by calculating the cosine distance between the vector of each frame of the first image and the vector of the second image.

[0123] It should be explained that the method described above for determining the similarity between multiple frames of the first image and the second image is only an example. Other image similarity calculation methods are also applicable to this application, but will not be described in detail here.

[0124] Step 604: The electronic device identifies the first image, whose similarity to the second image is greater than the similarity threshold, as the second target image.

[0125] The similarity threshold refers to the minimum similarity value that a pre-defined first image and a second image must satisfy. In other words, when the similarity between the first image and the second image is greater than the similarity threshold, the image quality of the first image is considered acceptable to the user.

[0126] In this embodiment of the application, after the electronic device determines the similarity between multiple frames of the first image and the second image, the first image whose similarity to the second image is greater than the similarity threshold is determined as the second target image.

[0127] For example, assuming a similarity threshold of 95%, after the electronic device determines the similarity between multiple frames of the first image and the second image, it identifies the first image with a similarity greater than 95% with the second image as the second target image.

[0128] Step 605: The electronic device determines the exposure time used by the image acquisition device when acquiring the second target image as the target exposure time.

[0129] This can be understood as follows: when the electronic device determines that among multiple frames acquired by the image acquisition device using different exposure times, the first image whose similarity to the second image is greater than a similarity threshold, is identified as the third image. The electronic device can identify the third image as one frame or multiple frames. In this embodiment, the number of frames for the third image is not limited.

[0130] In one scenario, if the electronic device determines that the third image consists of only one frame, the electronic device will determine the exposure time used by the image acquisition device when acquiring that third frame as the target exposure time.

[0131] For example, suppose an image acquisition device captures images of the display screen using exposure times 1, 2, and 3, respectively, obtaining first image 1, first image 2, and first image 3. After calculating the similarity between the second image and each of the first images 1, 2, and 3, the electronic device determines that the similarity between the first image 1 and the second image is greater than a similarity threshold, and therefore identifies the second target image as the first image 1. In this case, the electronic device determines the exposure time 1 used by the image acquisition device to capture the first image 1 as the target exposure time.

[0132] In another scenario, if the electronic device determines that the third image consists of at least two frames, it determines the target exposure time as the shortest exposure time among the exposure times used by the image acquisition device to capture at least two frames of the third image. Therefore, the target exposure time determined by the electronic device is the shortest, thus saving the image acquisition device's shooting time.

[0133] For example, suppose the image acquisition device acquires multiple frames of the first image using different exposure times, such as... Figure 7Images a through g are captured in the image acquisition device. For example, the image acquisition device captures images of the second display screen with exposure times of 1s, 3s, 5s, 7s, 10s, 20s, and 30s, respectively, resulting in images a through g. The image acquisition device then captures images of the second display screen with an automatic exposure time of 90s, resulting in image h. After acquiring images a through h, the electronic device calculates the similarity between each frame of images a through g and image h. If the electronic device determines that the similarity between images b, c, and d and image h is greater than a similarity threshold, then the electronic device determines the third image to be images b, c, and d. The electronic device determines that the exposure time distribution used by the image acquisition device to capture images b, c, and d is 3s, 5s, and 7s. The electronic device determines that the exposure time used by the image acquisition device to capture image b is the shortest, and therefore determines the target exposure time to be the exposure time used by the image acquisition device to capture image b, i.e., the target exposure time is 3s.

[0134] It's important to explain that the closer the exposure time used by the image acquisition device is to the automatic exposure time, the greater the similarity between the acquired image and the image acquired using the automatic exposure time. For example, if the electronic device determines that the exposure time for image e is 10s, the exposure time for image f is 20s, and the exposure time for image g is 30s, then the similarity between image e and image h is determined as similarity e, the similarity between image f and image h is determined as similarity f, and the similarity between image g and image h is determined as similarity g. In this case, similarity e is less than similarity f, and similarity f is less than similarity g. Figure 7 Images a to h, captured by the image acquisition device at different exposure times, are shown as examples only. In actual shooting, the images actually captured by the image acquisition device shall prevail. Furthermore, Figure 7 The automatic exposure time of 90s shown for the image acquisition device is only an example. In actual scenarios, the actual automatic exposure time of the image acquisition device shall prevail, and no limitation is made here.

[0135] For example, such as Figure 8 As shown, after the electronic device calculates the similarity between multiple frames of first and second images acquired by the image acquisition device using different exposure times, it determines the similarity between each frame of the first and second images and the exposure time for acquiring that frame of the first image, and then plots the results. Figure 8 Example diagram in the image. (By...) Figure 8It can be seen that when an electronic device determines that a third image with a similarity greater than the similarity threshold is a third image, it is considered to be a third image with a similarity greater than the threshold as a third image. The electronic device can then determine the shortest exposure time among the two third images as the target exposure time.

[0136] In another scenario, when the electronic device determines that the third image has at least two frames, after determining the image amplitudes corresponding to the at least two frames of the third image and the second image respectively, the electronic device compares the image amplitude of each frame of the third image with the image amplitude of the second image, and determines the exposure time of the third image with the smallest difference from the image amplitude of the second image as the target exposure time.

[0137] For example, suppose the electronic device determines that the third image has 3 frames, namely the third image 1, the third image 2 and the third image 3. The electronic device determines the image amplitude of the 3 frames of the third image and the image amplitude of the second image. The electronic device compares the image amplitude of the third image with the image amplitude of the second image and determines that the image amplitude of the third image 1 has the smallest difference from the image amplitude of the second image. The electronic device determines the exposure time used by the image acquisition device to acquire the third image 1 as the target exposure time.

[0138] This can be understood as the electronic device determining the exposure time of the third image (among multiple frames of third images) that has the smallest difference in image amplitude from the second image as the target exposure time. Therefore, the image amplitude of the target image acquired by the image acquisition device using the target exposure time is little or no different from the image amplitude of the second image acquired using the automatic exposure time. This achieves the goal of shortening the shooting time and improving the efficiency of the entire production line by reducing the exposure time of the image acquisition device without reducing the compensation accuracy of the display screen.

[0139] 606, The electronic device will store the correspondence between the first display brightness and the target exposure time.

[0140] In this embodiment, after the electronic device determines that the display brightness of the second display screen is the target exposure time corresponding to the first display brightness, the electronic device can store the correspondence between the first display brightness and the target exposure time. During the production process on the production line, when the electronic device determines that the display brightness of the display screen to be compensated is the first display brightness, the electronic device can determine the target exposure time corresponding to the first display brightness according to the pre-stored correspondence between the first display brightness and the target exposure time, and control the image acquisition device to take pictures of the display screen using the target exposure time.

[0141] It should be explained that the target exposure time determined in steps 601 to 606 above is based on the target exposure time corresponding to the image acquisition device when the electronic device determines that the display brightness of the second display screen is the first display brightness. Even if the display brightness of the second display screen is at other brightness levels, such as the second display brightness, the electronic device can still use the process described in steps 601 to 606 to determine the target exposure time and store the correspondence between the second display brightness and the target exposure time; this will not be elaborated further here.

[0142] During production, when the electronic equipment determines that the display brightness of the screen to be compensated is the first display brightness, it can determine the target exposure time corresponding to the first display brightness based on a pre-stored correspondence between the first display brightness and the target exposure time. Then, the electronic equipment can use an image acquired at the target exposure time to compensate for the display brightness. Figure 9 This is a flowchart illustrating the display compensation method provided in an embodiment of this application, as shown below. Figure 9 As shown, the method may include steps 901 to 907.

[0143] Step 901: When the first display screen displays the image at a first display brightness, the electronic device determines the target exposure time corresponding to the first display brightness.

[0144] The target exposure time is shorter than the automatic exposure time of the image acquisition device.

[0145] This can be understood as the electronic device pre-storing target exposure times corresponding to different display brightness levels. For example, display brightness 1 corresponds to target exposure time 1, display brightness 2 corresponds to target exposure time 2, and so on. When the electronic device determines that the display brightness of the first display screen is the first display brightness, it determines the target exposure time corresponding to the first display brightness based on the pre-stored correspondence between display brightness and target exposure time, and then sends the target exposure time corresponding to the first display brightness to the image acquisition device.

[0146] Step 902: The electronic device sends the target exposure time corresponding to the first display brightness to the image acquisition device; correspondingly, the image acquisition device receives the target exposure time corresponding to the first display brightness.

[0147] Step 903: The image acquisition device captures the image displayed on the first display screen using the target exposure time to obtain the first target image.

[0148] Step 904: The image acquisition device sends the first target image to the electronic device;

[0149] Step 905: After receiving the first target image, the electronic device determines the compensation data of the first target image.

[0150] Step 906: The electronic device sends the compensation data of the first target image to the first display screen.

[0151] Step 907: The first display screen stores the compensation data of the first target image to compensate for the display brightness of the first display screen.

[0152] In this embodiment, after receiving the first target image sent by the image acquisition device, the electronic device determines the compensation data of the first target image using the Demura compensation algorithm, and then burns the compensation data of the first target image into the memory of the first display screen to eliminate the mura on the display screen when it is displayed. Therefore, by reducing the exposure time of the image acquisition device, the shooting time of the image acquisition device is shortened, and the efficiency of the entire production line is improved.

[0153] In one possible scenario of this application embodiment, if the electronic device determines that the image amplitude of the first target image is consistent with the image amplitude obtained by automatic exposure time acquisition, the electronic device can use the compensation data of the first target image to perform compensation processing on the first display screen without performing enhancement processing on the first target image.

[0154] like Figure 10 As shown, assuming Figure 10 Image h in the image is the image acquired by the image acquisition device using automatic exposure time, and image f is the first target image. From Figure 10 As can be seen, the brightness difference between region D3 in image f and region D1 in image h is not significant. The electronic device determines that the image amplitudes of image f and image h are basically the same, so the electronic device does not need to perform enhancement processing on image f.

[0155] In another possible scenario in this application embodiment, since the target exposure time is shorter than the automatic exposure time, there may be a situation where the image amplitude of the first target image obtained by the image acquisition device using the target exposure time differs significantly from the image amplitude of the second image obtained using the automatic exposure time. In this case, the electronic device can perform enhancement processing on the first target image. Subsequently, the electronic device obtains the compensation data of the enhanced target image through the Demura compensation algorithm and burns the compensation data into flash memory to eliminate the Demura of the display screen, further improving the compensation accuracy of the display screen, and thus improving the brightness uniformity of the display screen.

[0156] Continue with Figure 10 For example, suppose the electronic device is determined Figure 10 Image b is the first target image, from Figure 10 It can be seen that the image amplitudes of image b and image h differ significantly. For example, the brightness difference between region D2 in image b and region D1 in image h is substantial. Electronic devices can enhance image b so that the image amplitude of the enhanced image b matches that of image h.

[0157] In other words, such as Figure 11 As shown above, in the above Figure 9 After step 905, if the electronic device determines that the difference between the image amplitudes of the first target image and the second image is greater than an amplitude threshold, the electronic device can perform enhancement processing on the first target image to compensate the first display screen using the enhanced first target image. The specific process is as follows: steps 1101 to 1105.

[0158] Step 1101: The electronic device determines that the difference between the image amplitude of the first target image and the image amplitude of the second image is greater than the amplitude threshold.

[0159] In one scenario, if the electronic device determines that the difference in image amplitude between the first target image and the second image is less than an amplitude threshold, the electronic device also determines that the brightness difference between the first target image and the second image is not significant, and the difference in image quality between the first target image and the second image is also not significant. In this case, the electronic device does not need to perform enhancement processing on the first target image.

[0160] In another scenario, if the electronic device determines that the difference in image amplitude between the first target image and the second image is greater than an amplitude threshold, the electronic device also determines that the brightness difference between the first target image and the second image is significant, and the image quality difference between the first target image and the second image is also significant. In this case, the electronic device can perform enhancement processing on the first target image to make the brightness of the enhanced first target image consistent with the brightness of the second image.

[0161] Step 1102: Enhance the first target image to obtain the first target image with adjusted brightness.

[0162] In this embodiment, the electronic device pre-stores target filtering parameters corresponding to different display brightness levels of the display screen. The electronic device determines the target filtering parameters corresponding to the first display brightness based on the first display brightness of the first display screen. The electronic device then performs enhancement processing on the first target image based on the target filtering parameters to obtain a first target image with adjusted brightness.

[0163] In this embodiment, the target filtering parameter can be a filtering parameter corresponding to a filtering amplification factor. For example, the target filtering parameter can be a filtering parameter corresponding to a filtering amplification factor of 2.5x, 2.8x, or 3x.

[0164] In some embodiments, such as Figure 12 As shown, the electronic device can use the Fourier transform method to transform the first target image from the spatial domain to the frequency domain, perform enhancement processing in the frequency domain, and then use the inverse Fourier transform to transform the enhanced first target image in the frequency domain back to the spatial domain to obtain the first target image with adjusted brightness.

[0165] For example, electronic devices can use filters such as spatial filters or homomorphic filters to enhance the first target image. In this embodiment, the type of filter is not limited.

[0166] It should be explained that the above-mentioned electronic device uses a filter to enhance the target image, which is only an example. The electronic device can also use other image enhancement methods to enhance the target image, such as grayscale transformation method, histogram adjustment method, etc. The image enhancement method is not limited in the embodiments of this application.

[0167] The process by which the electronic device determines the target filtering parameters corresponding to different display brightness levels of the display screen will be described in detail in subsequent embodiments, and will not be described in detail here.

[0168] Step 1103: The electronic device determines the compensation data of the first target image after brightness adjustment.

[0169] Step 1104: The electronic device sends compensation data of the first target image after brightness adjustment to the first display screen.

[0170] Step 1105: The first display screen stores the compensation data of the first target image after brightness adjustment in order to compensate the display brightness of the first display screen.

[0171] After determining the compensation data of the first target image after brightness adjustment, the electronic device sends the first target image after brightness adjustment to the first display screen for storage, so as to compensate the display brightness of the first display screen according to the compensation data of the first target image after brightness adjustment.

[0172] In this embodiment, the electronic device pre-stores target filtering parameters corresponding to different display brightness levels of the display screen. The following example illustrates the process of the electronic device determining the target filtering parameters corresponding to the first display brightness of the second display screen during the testing phase and storing these parameters. Figure 13 A detailed introduction will be provided. For example... Figure 13 As shown, the process may include steps 1301 to 1304.

[0173] Step 1301: The electronic device uses at least two preset filtering parameters to enhance the second target image, thereby obtaining at least two frames of the second target image with adjusted brightness.

[0174] The second target image is the image corresponding to the target exposure time determined by the electronic device during the aforementioned test phase, when the display brightness of the second display screen is the same as the first display brightness. If the difference in image amplitude between the second target image determined by the electronic device and the second image acquired using automatic exposure time is significant, the electronic device can determine the target filtering parameters to be used when enhancing the second target image.

[0175] The preset filter parameters can be pre-set based on the filter amplification factor. For example, assuming the filter amplification factor is 3, filter parameters corresponding to filter amplification factors of 2.5x, 2.8x, and 3x can be pre-set.

[0176] In some embodiments, the electronic device may use a Fourier transform method to transform the second target image from the spatial domain to the frequency domain, perform enhancement processing in the frequency domain, and then use an inverse Fourier transform to transform the enhanced second target image in the frequency domain back to the spatial domain to obtain the second target image with adjusted brightness.

[0177] In this embodiment, the electronic device can use different preset filtering parameters to enhance the second target image to obtain the corresponding brightness-adjusted second target image. The electronic device can use filters such as spatial filters or homomorphic filters to enhance the second target image; the type of filter is not limited in this embodiment.

[0178] Step 1302: The electronic device determines the image difference between the second target image after brightness adjustment and the second image in each frame.

[0179] In some embodiments, the electronic device can determine the image difference between the brightness-adjusted second target image and the second image based on the sum of the differences between all pixel values ​​in the brightness-adjusted second target image and the second image.

[0180] In other embodiments, the electronic device may also determine the image difference between the brightness-adjusted second target image and the second image based on the sum of the squared differences of the pixel values ​​of corresponding pixels in the brightness-adjusted second target image and the second image.

[0181] For example, an electronic device may use the following formula (2) to determine the image difference between the second target image after brightness adjustment and the second image.

[0182] Formula (2)

[0183] Where S represents the difference between the second target image after brightness adjustment and the second image, A(x,y) is the pixel value of the second target image after brightness adjustment, B(x,y) is the pixel value of the second image, and M and N are positive integers.

[0184] Step 1303: The electronic device determines the preset filtering parameters corresponding to the second target image with the smallest brightness adjustment as the target filtering parameters.

[0185] In this embodiment of the application, after the electronic device determines the image difference between the second target image after each frame enhancement processing and the second image, the electronic device determines the preset filtering parameter corresponding to the second target image with the smallest image difference after brightness adjustment as the target filtering parameter.

[0186] For example, the electronic device enhances the second target image using three preset filtering parameters to obtain three frames of brightness-adjusted second target images. For instance, the electronic device enhances the second target image using preset filtering parameter 1 to obtain target image 1, uses preset filtering parameter 2 to obtain target image 2, and uses preset filtering parameter 3 to obtain target image 3. The electronic device determines the image differences between the three brightness-adjusted second target images and the second image, obtaining image difference 1, image difference 2, and image difference 3. The electronic device determines that image difference 1 corresponds to the smallest value, and therefore sets preset filtering parameter 1 as the target filtering parameter.

[0187] It should be explained that the above-mentioned electronic device uses a filter to enhance the second target image, which is only an example. The electronic device can also use other image enhancement methods to enhance the target image, such as grayscale transformation method, histogram adjustment method, etc. The image enhancement method is not limited in the embodiments of this application.

[0188] Step 1304: The electronic device stores the correspondence between the first display brightness and the target filtering parameters.

[0189] When the electronic device determines that the display brightness of the second display screen is different, the automatic exposure time of the image acquisition device when acquiring the second image is also different, and the final determined target exposure time is also different. Therefore, when the display brightness of the second display screen is different, after the electronic device acquires the corresponding second target image acquired by the image acquisition device using different target exposure times, the filtering parameters used by the electronic device when enhancing the target image acquired under different display brightness are also different.

[0190] After determining the target filtering parameters corresponding to different display brightness levels on the second display screen, the electronic device stores the correspondence between display brightness and target filtering parameters. During subsequent production, once the electronic device determines the display brightness of the display screen to be compensated, it can look up the corresponding target filtering parameters based on the display brightness and use these parameters to enhance the image acquired at that brightness level.

[0191] For example, when the electronic device determines that the display brightness of the second display screen is display brightness 1, display brightness 2, and display brightness 3, the corresponding target filtering parameters are filtering parameter 1, filtering parameter 2, and filtering parameter 3, respectively. In subsequent production line processes, assuming the electronic device determines the display brightness of the screen to be display brightness 2, the electronic device uses filtering parameter 2 to enhance the target image acquired at display brightness 2.

[0192] In this embodiment, after determining the correspondence between the display brightness, target exposure time, and target filtering parameters of the second display screen, the electronic device stores this correspondence. During subsequent production on the actual production line, after determining the display brightness of the display screen to be compensated, the electronic device determines the corresponding target exposure time based on the display brightness. Then, the electronic device controls the image acquisition device to acquire the target image using the target exposure time. The electronic device then enhances the target image according to the target filtering parameters corresponding to the display brightness, obtaining a brightness-adjusted target image. After obtaining the compensation data for the brightness-adjusted target image, the electronic device compensates for the display brightness of the display screen based on this compensation data.

[0193] It is understood that the aforementioned electronic devices, etc., include hardware structures and / or software modules corresponding to the execution of each function in order to achieve the above-mentioned functions. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this invention.

[0194] This application embodiment can divide the above-mentioned electronic device into functional modules according to the method example described above. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0195] When each functional module is divided according to its corresponding function, the above embodiments illustrate a possible composition of the electronic device, which may include a display unit, a transmission unit, and a processing unit. It should be noted that all relevant content regarding the steps in the above method embodiments can be referenced from the functional descriptions of the corresponding functional modules, and will not be repeated here.

[0196] This application also provides an electronic device, including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, including computer instructions. When the one or more processors execute the computer instructions, the electronic device performs the aforementioned method steps to implement the display compensation method in the above embodiments.

[0197] Embodiments of this application also provide a computer-readable storage medium storing computer instructions that, when executed on an electronic device, cause the electronic device to perform the aforementioned method steps to implement the display compensation method in the above embodiments.

[0198] Embodiments of this application also provide a computer program product, which includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the aforementioned related method steps to implement the display screen compensation method in the above embodiments.

[0199] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component or module. The apparatus may include a connected processor and a memory. The memory is used to store computer execution instructions. When the apparatus is running, the processor may execute the computer execution instructions stored in the memory to cause the apparatus to perform the display compensation method executed by the electronic device in the above method embodiments.

[0200] In this embodiment, the electronic device, computer-readable storage medium, computer program product or device are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0201] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above 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. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0202] In the embodiments of this application, the functional units can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0203] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as flash memory, portable hard disk, read-only memory, random access memory, magnetic disk, or optical disk.

[0204] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A compensation method of a display device, characterized by, The method comprises: The electronic device receives multiple frames of first images and second images from an image acquisition device; the multiple frames of first images are images obtained by the image acquisition device shooting a display screen of a second display device with different exposure times, the brightness of the second display device being a first display brightness, the screen type of the second display device being the same as that of a first display device; the second image is an image obtained by the image acquisition device shooting the display screen of the second display device with an automatic exposure time; After the electronic device determines the similarity between each of the multiple frames of first images and the second image, the first image with a similarity greater than a similarity threshold value to the second image is determined as a second target image; The electronic device determines the exposure time of the second target image collected by the image acquisition device as a target exposure time corresponding to the first display brightness; the target exposure time is less than the automatic exposure time of the image acquisition device; In the case that the first display device displays a screen with the first display brightness, the electronic device sends the target exposure time corresponding to the first display brightness to the image acquisition device; The electronic device receives a first target image from the image acquisition device, the first target image being an image obtained by the image acquisition device shooting the display screen of the first display device in response to the target exposure time, the exposure time of shooting the first target image being the target exposure time; The electronic device determines corresponding compensation data according to the first target image; The electronic device performs enhancement processing on the first target image to obtain a first target image with adjusted brightness; After the electronic device determines the compensation data of the first target image with adjusted brightness, the electronic device sends the compensation data of the first target image with adjusted brightness to the first display device to trigger the first display device to adjust the display brightness.

2. The method of claim 1, wherein, The electronic device performs enhancement processing on the first target image to obtain a first target image with adjusted brightness, comprising: The electronic device performs enhancement processing on the first target image with the target filter parameter corresponding to the first display brightness to obtain a first target image with adjusted brightness.

3. The method of claim 1, wherein, The first image with a similarity greater than a similarity threshold value to the second image is determined as a second target image, comprising: The electronic device determines the first image with a similarity greater than a similarity threshold value to the second image as a third image, the third image being multiple frames; The electronic device determines the image with the shortest exposure time when collecting multiple frames of third images as the second target image.

4. The method of claim 1, wherein, The first image with a similarity greater than a similarity threshold value to the second image is determined as a second target image, further comprising: The electronic device determines the first image with a similarity greater than a similarity threshold value to the second image as a third image, the third image being multiple frames; The electronic device determines the image amplitude of each frame of the third image and the image amplitude of the second image, the image amplitude being used to represent the depth of image brightness; The electronic device determines the third image with the least difference in image amplitude from the second image as the second target image after comparing the image amplitude of each frame of the third image with the image amplitude of the second image.

5. The method of claim 1, wherein, The method further comprises: For each frame of the first image, the electronic device determines the similarity between the first image and the second image according to a cross-correlation coefficient of the first image and the second image, the cross-correlation coefficient being used to represent the degree of similarity between the first image and the second image.

6. The method of claim 5, wherein, Before determining the similarity according to the cross-correlation coefficient of the first image and the second image, the method further comprises: The electronic device converts the first image and the second image into grayscale images to obtain a first grayscale image and a second grayscale image. The electronic device determines the mean value and the standard deviation of the first grayscale image and the second grayscale image. For each pixel position, the electronic device subtracts the mean value of the first grayscale image from the pixel value of the first grayscale image at the pixel position to obtain a first pixel value, subtracts the mean value of the second grayscale image from the pixel value of the second grayscale image at the pixel position to obtain a second pixel value, and determines the product value of the first pixel value and the second pixel value. The electronic device adds the product values corresponding to all pixel positions to obtain the sum of the product values, and then divides the sum of the product values by the total number of pixels to determine the cross-correlation coefficient.

7. The method according to any one of claims 1 to 6, characterized in that, The method further comprises: The electronic device sends the target exposure time corresponding to the first display brightness to the image acquisition device. The electronic device receives a second target image from the image acquisition device, the second target image being an image obtained by the image acquisition device when capturing the display screen of the second display device using the target exposure time. The electronic device performs enhancement processing on the second target image using at least two preset filter parameters to obtain at least two frames of second target images with adjusted brightness. The electronic device determines the image difference between each frame of the second target image with adjusted brightness and the second image. The electronic device determines the preset filter parameter corresponding to the second target image with adjusted brightness with the least image difference as the target filter parameter.

8. The method of claim 7, wherein, The determination of the image difference between each frame of the second target image with adjusted brightness and the second image comprises: The electronic device determines the image difference according to the sum of the differences between all pixel values in the second target image with adjusted brightness and the second image; or The electronic device determines the image difference according to the sum of the squared differences between the pixel values of corresponding pixel points in the second target image with adjusted brightness and the second image.

9. The method of claim 2, wherein, The enhancement processing on the first target image using the target filter parameter corresponding to the first display brightness comprises: The electronic device controls the spatial filter to perform enhancement processing on the first target image using the target filter parameter.

10. A compensation system for a display device, characterized by The method further comprises: A first display device configured to display a screen with a first display brightness. An image acquisition device is configured to capture a plurality of first images of a display screen of a second display device using different exposure times and capture a second image of the display screen of the second display device using an automatic exposure time, wherein the second display device has the same screen type as the first display device and has a display brightness that is the same as the first display brightness; An electronic device is configured to determine a similarity between each of the plurality of first images and the second image, and determine a first image having a similarity greater than a similarity threshold as a second target image corresponding to the first display brightness based on the similarity between the first image and the second image. The electronic device is further configured to determine a target exposure time for capturing the second target image by the image acquisition device, wherein the target exposure time is less than the automatic exposure time. The image acquisition device is further configured to capture a first target image of the display screen of the first display device using the target exposure time, and the electronic device is further configured to perform an enhancement process on the first target image based on compensation data of the first target image to obtain a first target image with adjusted brightness, and perform compensation on the display brightness of the first display device based on the compensation data of the first target image with adjusted brightness.

11. An electronic device comprising a memory, a processor, and a computer program stored on the memory, wherein the computer program, when executed by the processor, is arranged to perform the method of any one of claims 1 to 10. The processor executes the computer program to implement the steps of the method of any one of claims 1-9.

12. A computer readable storage medium having stored thereon computer programs / instructions, characterized in that, The computer program / instruction is executed by the processor to implement the steps of the method of any one of claims 1-9.

13. A computer program product comprising computer programs / instructions, characterized in that, The computer program / instruction is executed by the processor to implement the steps of the method of any one of claims 1-9.

Citation Information

Patent Citations

  • Compensation method and device of display panel and display panel

    CN111028779A