Brightness compensation method and device, electronic equipment and computer readable storage medium

CN118098151BActive Publication Date: 2026-10-30KUNSHAN GO VISIONOX OPTO ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410251045.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-05
Publication Date
2026-10-30
Estimated Expiration
2044-03-05

AI Technical Summary

Technical Problem

但现有技术通过demura对显示屏中的mura区域进行亮度补偿时,一般是通过统一gamma值来对mura区域进行亮度补偿,补偿效果有限,导致补偿后的显示屏仍会存在mura现象

Benefits of technology

[0045]第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面中任一项所述的亮度补偿方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118098151B_ABST
    Figure CN118098151B_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of display, and particularly relates to a brightness compensation method and device, an electronic device and a computer readable storage medium. In the method, for each pixel in a to-be-compensated region, a first display brightness corresponding to the pixel can be determined. When the first display brightness is less than a target brightness, the pixel is subjected to brightness compensation according to a first gamma value corresponding to a gray scale of the pixel, and when the first display brightness is greater than the target brightness, the pixel is subjected to brightness compensation according to a second gamma value corresponding to the gray scale of the pixel. That is, for each pixel in the to-be-compensated region, different gamma values can be used for brightness compensation of the pixel according to the first display brightness corresponding to the pixel, instead of using a uniform gamma value for brightness compensation of all pixels in the to-be-compensated region, so that the deviation between an actual compensation value and a theoretical compensation value of brightness compensation of each pixel can be reduced, and the display effect can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of display technology, and in particular relates to a brightness compensation method, device, electronic device and computer-readable storage medium. Background Technology

[0002] Currently, due to material or manufacturing process limitations, displays may exhibit uneven brightness, known as mura, resulting in poor display quality. Therefore, brightness compensation is needed to eliminate these mura areas. The technique for eliminating mura is generally called demura compensation, which compensates for the brightness of mura areas. However, current demura compensation techniques typically use a uniform gamma value, which has limited effectiveness, resulting in the presence of mura even after compensation. Summary of the Invention

[0003] This application provides a brightness compensation method, apparatus, electronic device, and computer-readable storage medium, which can improve display performance.

[0004] In a first aspect, embodiments of this application provide a brightness compensation method, including:

[0005] Determine the first display brightness corresponding to the first pixel, where the first pixel is a pixel in the area to be compensated;

[0006] When the first display brightness is less than the target brightness, the brightness of the first pixel is compensated according to the first gamma value corresponding to the gray level of the first pixel;

[0007] When the first display brightness is greater than the target brightness, the brightness of the first pixel is compensated according to the second gamma value corresponding to the gray level of the first pixel;

[0008] Wherein, the first gamma value is the gamma value for increasing the brightness of the first display, and the second gamma value is the gamma value for decreasing the brightness of the first display.

[0009] In the brightness compensation method provided above, when compensating the area to be compensated, for each pixel (i.e., the first pixel) in the area to be compensated, a different gamma value (e.g., the first gamma value or the second gamma value) can be used to compensate the brightness of the first pixel according to the first display brightness corresponding to the first pixel, instead of using a uniform gamma value to compensate the brightness of all pixels in the area to be compensated. This can effectively reduce the deviation between the actual compensation value and the theoretical compensation value for each pixel, ensure the brightness compensation effect, eliminate the mura phenomenon in the display area, and improve the display effect.

[0010] For example, the first gamma value can be a gamma value used for positive compensation of the brightness of the first pixel. The second gamma value can be a gamma value used for negative compensation of the brightness of the first pixel. It should be understood that positive compensation can refer to compensation that increases brightness, and negative compensation can refer to compensation that decreases brightness. That is, the first gamma value can be used to brighten the brightness of the first pixel (e.g., the first display brightness), and the second gamma value can be used to darken the brightness of the first pixel.

[0011] Optionally, the first gamma value and the second gamma value corresponding to the same gray level are different. This allows for accurate brightness compensation based on different gamma values ​​for different mura phenomena appearing at the same gray level. This reduces the deviation between the actual compensation value and the theoretical compensation value, ensuring the brightness compensation effect.

[0012] Optionally, the first gamma value corresponding to different gray levels is different, and the second gamma value corresponding to different gray levels is also different. That is, instead of using a uniform gamma value for brightness compensation, different gamma values ​​are used to accurately compensate for the brightness of different gray levels. This can reduce the deviation between the actual compensation value and the theoretical compensation value for brightness compensation of each gray level, ensure the brightness compensation effect, and improve the display effect.

[0013] In one possible implementation, the method further includes:

[0014] Obtain the first gray level of each pixel in the region to be compensated under a preset binding point gray level. The first gray level is the gray level after the region to be compensated is compensated based on a preset demura method.

[0015] Based on the second gray level, determine the first target gray level corresponding to the preset binding point gray level, where the second gray level is one or more gray levels in the first gray level that are larger than the preset binding point gray level.

[0016] Based on the first target grayscale, determine the first gamma value corresponding to the preset binding point grayscale.

[0017] Optionally, the first target gray level is the maximum value in the second gray level.

[0018] For example, determining the first gamma value corresponding to the preset binding point grayscale based on the first target grayscale includes:

[0019] Obtain the second display brightness corresponding to the area to be compensated under the preset binding point grayscale;

[0020] Obtain the third display brightness corresponding to the area to be compensated under the first target grayscale;

[0021] Based on the preset binding point grayscale, the first target grayscale, the second display brightness, and the third display brightness, the first gamma value corresponding to the preset binding point grayscale is determined.

[0022] In the brightness compensation method provided by this implementation, when performing brightness compensation on the area to be compensated based on the preset demura method, the first gray level of each pixel in the area to be compensated at each preset binding point gray level can be obtained, that is, the gray level after compensation based on the preset demura method. And based on the first gray level of each pixel at each preset binding point gray level, the second gray level of each pixel at each preset binding point gray level can be determined. Thus, the first gamma value (i.e., the gamma value for positive compensation) corresponding to each preset binding point gray level can be accurately determined based on the second gray level. This allows the pixel to be accurately positively compensated based on the first gamma value corresponding to the preset binding point gray level when positive compensation is needed, thereby improving the brightness of the pixel and ensuring the brightness compensation effect.

[0023] In another possible implementation, the method further includes:

[0024] Obtain the first gray level of each pixel in the region to be compensated under a preset binding point gray level. The first gray level is the gray level after the region to be compensated is compensated based on a preset demura method.

[0025] Based on the third gray level, determine the second target gray level corresponding to the preset binding point gray level, wherein the third gray level is one or more gray levels in the first gray level that are smaller than the preset binding point gray level;

[0026] Based on the second target grayscale, determine the second gamma value corresponding to the preset binding point grayscale.

[0027] Optionally, the second target gray level is the minimum value among the third gray levels.

[0028] For example, determining the second gamma value corresponding to the preset binding point grayscale based on the second target grayscale includes:

[0029] Obtain the second display brightness corresponding to the area to be compensated under the preset binding point grayscale;

[0030] Obtain the fourth display brightness corresponding to the area to be compensated under the second target grayscale;

[0031] The second gamma value corresponding to the preset binding point grayscale is determined based on the preset binding point grayscale, the second target grayscale, the second display brightness, and the fourth display brightness.

[0032] In the brightness compensation method provided by this implementation, when performing brightness compensation on the area to be compensated based on the preset demura method, the first gray level of each pixel in the area to be compensated under each preset binding point gray level can be obtained. Based on the first gray level of each pixel under each preset binding point gray level, the third gray level of each pixel under each preset binding point gray level can be determined. Thus, the second gamma value (i.e., the gamma value for negative compensation) corresponding to each preset binding point gray level can be accurately determined based on the third gray level. This allows for accurate negative compensation of the pixel corresponding to a certain preset binding point gray level when negative compensation is required, based on the second gamma value corresponding to the preset binding point gray level, to reduce the brightness of the pixel and ensure the brightness compensation effect.

[0033] In one example, determining the second gamma value corresponding to the preset binding point grayscale based on the preset binding point grayscale, the second target grayscale, the second display brightness, and the fourth display brightness includes:

[0034] The second gamma value corresponding to the preset binding point grayscale is determined according to the following formula:

[0035]

[0036] Among them, G x2 ' represents the second target grayscale, G x2 For the preset binding point grayscale, L x2 ' is the fourth display brightness, L x2 ·2 represents the second display brightness, and ·2 represents the second gamma value.

[0037] Optionally, after determining the first gamma value corresponding to each preset binding point grayscale, the first gamma value corresponding to other non-binding point grayscales can be determined by interpolation based on the first gamma value corresponding to each preset binding point grayscale. Similarly, after determining the second gamma value corresponding to each preset binding point grayscale, the second gamma value corresponding to other non-binding point grayscales can be determined by interpolation based on the second gamma value corresponding to each preset binding point grayscale.

[0038] Secondly, embodiments of this application provide a brightness compensation device, comprising:

[0039] The display brightness acquisition module is used to determine the first display brightness corresponding to the first pixel, where the first pixel is a pixel in the area to be compensated.

[0040] The first brightness compensation module is used to perform brightness compensation on the first pixel according to the first gamma value corresponding to the gray level of the first pixel when the first display brightness is less than the target brightness.

[0041] The second brightness compensation module is used to perform brightness compensation on the first pixel according to the second gamma value corresponding to the gray level of the first pixel when the first display brightness is greater than the target brightness.

[0042] Wherein, the first gamma value is the gamma value for increasing the brightness of the first display, and the second gamma value is the gamma value for decreasing the brightness of the first display.

[0043] Thirdly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the electronic device implements the brightness compensation method described in any one of the first aspects above.

[0044] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a computer, causes the computer to implement the brightness compensation method described in any one of the first aspects above.

[0045] Fifthly, embodiments of this application provide a computer program product that, when run on an electronic device, causes the electronic device to execute the brightness compensation method described in any of the first aspects above.

[0046] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0047] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0048] Figure 1 This is an example of the mura phenomenon;

[0049] Figure 2 An example diagram of a demura;

[0050] Figure 3 This is a schematic flowchart of a brightness compensation method provided in an embodiment of this application;

[0051] Figure 4 This is a schematic diagram of an application scenario provided in the embodiments of this application;

[0052] Figure 5 This is a schematic diagram of the structure of a brightness compensation device provided in an embodiment of this application;

[0053] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0054] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0055] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0056] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0057] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0058] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0059] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0060] Please see Figure 1 and Figure 2 , Figure 1 An example diagram of a mura phenomenon is shown. Figure 2 An example diagram of a demura is shown.

[0061] like Figure 1 As shown, uneven brightness, known as mura, can occur in displays due to material or manufacturing processes, resulting in poor display quality. Therefore, brightness compensation is needed for the mura areas (areas exhibiting mura) to eliminate them. The technique for eliminating mura areas is generally called demura compensation, which compensates for the brightness of mura areas on the display.

[0062] like Figure 2As shown, existing technologies for brightness compensation in the mura region of a display screen using demura compensation typically employ a uniform gamma value, such as gamma 2.2. Specifically, when compensating for brightness in the mura region using a uniform gamma value, relevant data (e.g., display brightness) at a preset number of bound points at grayscale levels is collected. The gamma value is then determined based on this data, and the corresponding gamma curve is used to compensate for the brightness of each pixel within the mura region.

[0063] For example, such as Figure 2 As shown, the display brightness corresponding to each pixel in the mura region can be obtained, and the actual gamma curve a corresponding to the mura region can be determined based on the display brightness corresponding to each pixel. Subsequently, brightness compensation can be performed on each pixel in the mura region based on the gamma curve b corresponding to the gamma value in the mura and the actual gamma curve a corresponding to the mura region. Each pixel has a corresponding grayscale level. Both gamma curves a and b are curves relating grayscale and brightness; that is, the horizontal axis of gamma curves a and b is grayscale, and the vertical axis is brightness.

[0064] For example, such as Figure 2 As shown, for pixel G in the mura region x It can be based on grayscale G x 'Perform brightness compensation on it, for pixel G in the mura region y It can be based on grayscale G y 'Perform brightness compensation on it, for pixel G in the mura region z It can be based on grayscale G z 'Perform brightness compensation on it.'

[0065] In the demura calculation, the gamma curve 'b' corresponding to the gamma value is determined using a data fitting method (such as linear interpolation) based on relevant data collected at a preset number of bound-point grayscale levels. That is, during brightness compensation, the relationship between other non-bound-point grayscale levels (from 0 to 255) and brightness is determined based on the relationship between the preset number of bound-point grayscale levels and brightness. This can easily cause deviations or distortions in the brightness corresponding to other non-bound-point grayscale levels, resulting in a discrepancy between the actual and theoretical compensation values ​​for brightness compensation performed by demura. This limits the compensation effect, causing the compensated display to still exhibit the demura phenomenon.

[0066] To address the aforementioned problems, embodiments of this application provide a brightness compensation method, apparatus, electronic device, and computer-readable storage medium. In this method, when performing brightness compensation on an area to be compensated, for each pixel (e.g., a first pixel) in the area to be compensated, a first display brightness corresponding to the first pixel can be determined. When the first display brightness is less than the target brightness, brightness compensation can be performed on the first pixel based on a first gamma value corresponding to its grayscale. When the first display brightness is greater than the target brightness, brightness compensation can be performed on the first pixel based on a second gamma value corresponding to its grayscale. The first gamma value is a positive compensation gamma value for the first pixel to increase its brightness, i.e., increase the first display brightness corresponding to the first pixel. The second gamma value is a negative compensation gamma value for the first pixel to decrease its brightness, i.e., decrease the first display brightness corresponding to the first pixel. In this embodiment, for each pixel in the area to be compensated, a different gamma value (e.g., the first gamma value or the second gamma value corresponding to the pixel) can be used to compensate the brightness of the pixel, instead of using a uniform gamma value to compensate the brightness of all pixels in the area to be compensated. This can effectively reduce the deviation between the actual compensation value and the theoretical compensation value for each pixel, ensure the brightness compensation effect, eliminate the mura phenomenon in the area to be displayed, and improve the display effect.

[0067] The brightness compensation method provided in this application can be applied to electronic devices with displays, such as mobile phones, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). This application does not impose any restrictions on the specific type of electronic device.

[0068] Please see Figure 3 , Figure 3 This illustration shows a schematic flowchart of a brightness compensation method provided in an embodiment of this application. This method can be applied to electronic devices, which may have one or more displays. This embodiment of the application does not impose any limitation on the number of displays in an electronic device. Figure 3 As shown, the method may include:

[0069] S301. Determine the first display brightness corresponding to the first pixel, where the first pixel is a pixel in the area to be compensated.

[0070] For example, the area to be compensated refers to the area on the display screen of an electronic device where the mura phenomenon exists. This area can be the entire display screen or only a portion of it. Optionally, the display screen can be tested beforehand to determine the area to be compensated.

[0071] It is understood that the specific method for determining the area to be compensated in the display screen can be determined according to the actual scenario, and the embodiments of this application do not impose any restrictions on this.

[0072] In this embodiment of the application, after determining the area to be compensated in the display screen, the electronic device can determine the display brightness (hereinafter referred to as the first display brightness) corresponding to each pixel in the area to be compensated, and can perform brightness compensation on each pixel according to the first display brightness corresponding to each pixel.

[0073] Optionally, the first display brightness corresponding to each pixel can be obtained by measuring the area to be compensated using an optical measurement device (such as a color analyzer), or by taking a picture of the area to be compensated using a high-resolution and high-precision camera (such as a charge-coupled device (CCD) camera), and so on.

[0074] It should be noted that when performing brightness compensation on a specific pixel within the area to be compensated, that pixel can be used as the first pixel. For example, when performing brightness compensation on pixel A within the area to be compensated, pixel A can be used as the first pixel. Similarly, when performing brightness compensation on pixel B within the area to be compensated, pixel B can be used as the first pixel. Likewise, when performing brightness compensation on pixel C within the area to be compensated, pixel C can be used as the first pixel, and so on.

[0075] S302. When the first display brightness is less than the target brightness, the brightness of the first pixel is compensated according to the first gamma value corresponding to the gray level of the first pixel.

[0076] S303. When the first display brightness is greater than the target brightness, the brightness of the first pixel is compensated according to the second gamma value corresponding to the gray level of the first pixel.

[0077] For example, the first gamma value can be a gamma value used for positive compensation of the brightness of the first pixel. The second gamma value can be a gamma value used for negative compensation of the brightness of the first pixel. It should be understood that positive compensation can refer to compensation that increases brightness, and negative compensation can refer to compensation that decreases brightness. That is, the first gamma value can be used to brighten the brightness of the first pixel (e.g., the first display brightness), and the second gamma value can be used to darken the brightness of the first pixel (e.g., the first display brightness).

[0078] In some embodiments, when the first display brightness is less than the target brightness, it means that the current brightness of the first pixel is too dark and the brightness of the first pixel needs to be increased. That is, the brightness of the first pixel needs to be increased. The electronic device can perform brightness compensation on the first pixel according to the first gamma value corresponding to the first pixel to increase the brightness of the first pixel.

[0079] In other embodiments, when the first display brightness is greater than the target brightness, it indicates that the current brightness of the first pixel is too bright and the brightness of the first pixel needs to be dimmed, that is, the brightness of the first pixel needs to be reduced. The electronic device can perform brightness compensation on the first pixel according to the second gamma value corresponding to the first pixel to dim the brightness of the first pixel.

[0080] It should be noted that the target brightness can be determined based on the actual scenario, and this application embodiment does not impose any restrictions on it. For example, the brightness of the central area of ​​the display screen can be determined as the target brightness based on the actual scenario.

[0081] In other words, after determining the first display brightness corresponding to the first pixel, the electronic device can determine the difference between the first display brightness and the target brightness. Subsequently, the electronic device can perform brightness compensation on the first pixel based on the difference between the first display brightness and the target brightness. This involves darkening brighter areas and brightening darker areas in the area to be adjusted, thereby ensuring uniform brightness during the display process, eliminating the mura phenomenon in the display, and improving the display effect.

[0082] For example, the first gamma value and the second gamma value can be determined based on the grayscale corresponding to the first pixel. The first gamma value and the second gamma value for the same grayscale can be different, allowing for accurate brightness compensation based on different gamma values ​​for different mura phenomena occurring at the same grayscale. This reduces the deviation between the actual and theoretical compensation values, ensuring effective brightness compensation. Furthermore, the first gamma value for different grayscales can be different, and the second gamma value can also be different. That is, instead of using a uniform gamma value for brightness compensation, different gamma values ​​are used for accurate brightness compensation at different grayscales. This reduces the deviation between the actual and theoretical compensation values ​​for each grayscale, ensuring effective brightness compensation and improving display quality.

[0083] Optionally, the first gamma value and the second gamma value corresponding to each gray level can be determined in advance through testing, and the first gamma value and the second gamma value corresponding to each gray level can be stored in the electronic device, or stored in other devices that communicate with the electronic device, such as in a cloud server that communicates with the electronic device.

[0084] It should be understood that the first and second gamma values ​​corresponding to each grayscale level can be stored in the electronic device in a tabular format, or in another device communicatively connected to the electronic device in a tabular format. Alternatively, the first and second gamma values ​​corresponding to each grayscale level can be stored in the electronic device in a curve representation or a formula representation, or in another device communicatively connected to the electronic device in a curve representation or a formula representation. This application embodiment does not impose any restrictions on the storage method of the first and second gamma values ​​corresponding to each grayscale level.

[0085] The process of determining the first and second gamma values ​​corresponding to each gray level will be explained in detail below.

[0086] It should be understood that the entity responsible for determining the first and second gamma values ​​corresponding to each grayscale level can be the electronic device performing brightness compensation in this application embodiment, or a cloud server or other electronic computing device. The specific implementation can be determined based on the actual scenario, and this application embodiment does not impose any limitations on this. The following will use the electronic device performing brightness compensation in this application embodiment as an example to illustrate how the entity responsible for determining the first and second gamma values ​​corresponding to each grayscale level is indeed the electronic device performing brightness compensation in this application embodiment.

[0087] In some embodiments, after determining the area to be compensated, the electronic device can perform brightness compensation on the area to be compensated using a preset demura method. When performing brightness compensation on the area to be compensated using the preset demura method, the electronic device can obtain the grayscale of each pixel in the area to be compensated at a preset binding point grayscale (hereinafter referred to as the first grayscale), which is the grayscale after compensation using the demura method. The first grayscale can be the grayscale after positive compensation or the grayscale after negative compensation.

[0088] For each preset binding point grayscale, the electronic device can determine the first target grayscale corresponding to the preset binding point grayscale based on all positively compensated grayscales under the preset binding point grayscale (hereinafter referred to as the second grayscale), and can determine the first gamma value corresponding to the preset binding point grayscale based on the first target grayscale.

[0089] Similarly, for each preset binding point grayscale, the electronic device can determine the second target grayscale corresponding to the preset binding point grayscale based on all negatively compensated grayscales under the preset binding point grayscale (hereinafter referred to as the third grayscale), and can determine the second gamma value corresponding to the preset binding point grayscale based on the second target grayscale.

[0090] Optionally, after determining the first gamma value corresponding to the preset binding point grayscale, the electronic device can use an interpolation method to determine the first gamma values ​​corresponding to other non-binding point grayscales based on the first gamma value corresponding to the preset binding point grayscale. Similarly, after determining the second gamma value corresponding to the preset binding point grayscale, the electronic device can use an interpolation method to determine the second gamma values ​​corresponding to other non-binding point grayscales based on the second gamma value corresponding to the preset binding point grayscale. The interpolation method can be any existing interpolation method, and this application embodiment does not impose specific limitations on the interpolation method.

[0091] It should be understood that the preset demura method can be any existing demura method. The preset demura method can be specifically determined according to the actual scenario, and the embodiments of this application do not impose any restrictions on it. For example, the preset demura method can be determined to be a method of brightness compensation through gamma 2.2, depending on the actual scenario.

[0092] Optionally, the bound-point grayscale can be the grayscale adjustment point selected during the process of determining the compensated grayscale. That is, when determining the compensated grayscale, only the compensated grayscale corresponding to the bound-point grayscale can be determined, and the compensated grayscale corresponding to other non-bound-point grayscale can be determined by interpolation based on the compensated grayscale corresponding to the bound-point grayscale.

[0093] For example, the preset grayscale level can be one or more of 0 to 255 grayscale levels, which can be determined according to the actual scenario. This application embodiment does not impose any limitations on this. For example, the preset grayscale level can be determined to include 32, 64, and 128 grayscale levels according to the actual scenario. For example, the preset grayscale level can be determined to include 16, 32, 64, 96, 128, and 192 grayscale levels according to the actual scenario. For example, the preset grayscale level can be determined to include 16, 32, 48, 64, 96, 128, 192, and 255 grayscale levels according to the actual scenario, and so on. The following will use the example of preset grayscale levels including 32, 64, and 128 grayscale levels for illustrative purposes.

[0094] For example, the display screen may include a display panel. The display panel may be an organic light-emitting diode (OLED). The display panel may include a plurality of pixels arranged in an array, and each pixel may include sub-pixels of at least three colors. For example, each pixel of the display panel may include a red sub-pixel, a green sub-pixel, and a blue sub-pixel.

[0095] Therefore, when acquiring the first grayscale of each pixel in the area to be compensated under the preset binding point grayscale, the electronic device can acquire the first grayscale of each sub-pixel of each pixel in the area to be compensated under the preset binding point grayscale. For example, it can acquire the first grayscale of the red sub-pixel of each pixel in the area to be compensated under the preset binding point grayscale, it can acquire the first grayscale of the green sub-pixel of each pixel in the area to be compensated under the preset binding point grayscale, and it can acquire the first grayscale of the blue sub-pixel of each pixel in the area to be compensated under the preset binding point grayscale.

[0096] Understandably, before obtaining the first grayscale level of each sub-pixel in the area to be compensated under the preset grayscale level, it is necessary to illuminate the area to be compensated so that the first grayscale level of each sub-pixel under the preset grayscale level can be determined based on the display brightness of each sub-pixel in the area to be compensated. Illuminating the area to be compensated can mean illuminating the entire display screen, i.e., illuminating all areas of the display screen corresponding to the area to be compensated, or it can mean illuminating only the area to be compensated.

[0097] Optionally, the electronic device can display a monochrome image corresponding to each preset binding point grayscale in the area to be compensated, and obtain the display brightness of each sub-pixel in the area to be compensated under the preset binding point grayscale when the monochrome image corresponding to each preset binding point grayscale is displayed in the area to be compensated, so as to determine the first grayscale of each sub-pixel under each preset binding point grayscale based on the display brightness of each sub-pixel under each preset binding point grayscale and the preset demura method.

[0098] For example, when the preset grayscale levels include 32, 64, and 128 grayscale levels, the electronic device can display a red image corresponding to 32 grayscale levels in the area to be compensated, and obtain the display brightness of each red sub-pixel in the area to be compensated at 32 grayscale levels when the red image corresponding to 32 grayscale levels is displayed in the area to be compensated. Based on the display brightness of each red sub-pixel at 32 grayscale levels and the preset demura method, the first grayscale level of each red sub-pixel at 32 grayscale levels is determined.

[0099] Similarly, the electronic device can also display a green image corresponding to 32 gray levels in the area to be compensated, and obtain the display brightness of each green sub-pixel in the area to be compensated at 32 gray levels when the green image corresponding to 32 gray levels is displayed in the area to be compensated, so as to determine the first gray level of each green sub-pixel at 32 gray levels based on the display brightness of each green sub-pixel at 32 gray levels and the preset demura method.

[0100] Similarly, the electronic device can also display a blue image corresponding to 32 gray levels in the area to be compensated, and obtain the display brightness of each blue sub-pixel in the area to be compensated at 32 gray levels when the blue image corresponding to 32 gray levels is displayed in the area to be compensated, so as to determine the first gray level of each blue sub-pixel at 32 gray levels based on the display brightness of each blue sub-pixel at 32 gray levels and the preset demura method.

[0101] It is understandable that the methods for obtaining the first gray level of each red sub-pixel at 64 or 128 gray levels, the first gray level of each blue sub-pixel at 64 or 128 gray levels, and the first gray level of each green sub-pixel at 64 or 128 gray levels are similar to the methods for obtaining the first gray level of each red sub-pixel at 32 gray levels, the first gray level of each blue sub-pixel at 32 gray levels, and the first gray level of each green sub-pixel at 32 gray levels. For details, please refer to the above description. For the sake of brevity, it will not be repeated here.

[0102] For example, the first gray level of each pixel under the preset binding point gray level can be the gray level of each pixel after brightness compensation based on the preset demura method.

[0103] For example, for a red sub-pixel A with a gray level of 32, assuming that after brightness compensation of the red sub-pixel A based on the preset demura method, the gray level of the red sub-pixel A is 36 gray level, then it can be determined that the first gray level of the red sub-pixel A in the gray level of 32 is 36 gray level.

[0104] For example, for a red sub-pixel A with a gray level of 32, assuming that after brightness compensation of the red sub-pixel A based on the preset demura method, the gray level of the red sub-pixel A is 30 gray level, then it can be determined that the first gray level of the red sub-pixel A in the gray level of 32 is 30 gray level.

[0105] It should be understood that the first gray level of each pixel under the preset binding point gray level can be determined according to the following formula:

[0106]

[0107] in, Let j be the first gray level of the j-th pixel at the i-th preset binding point gray level. Let j be the current gray level of the j-th pixel (i.e., the gray level of the i-th preset binding point). The target brightness of each pixel at the gray level of the i-th preset binding point is determined based on the gamma value corresponding to the gray level of the i-th preset binding point. The display brightness of the j-th pixel at the i-th preset grayscale, · i The gamma value is the gray level corresponding to the i-th preset binding point determined by the preset demura method.

[0108] In some embodiments, after obtaining the first gray level of each sub-pixel (e.g., red sub-pixel, green sub-pixel, and blue sub-pixel) of each pixel in the region to be compensated under a preset binding point gray level, for each preset binding point gray level, the electronic device can determine the first target gray level corresponding to the preset binding point gray level based on the second gray level (i.e., the gray level after positive compensation) under the preset binding point gray level, and can determine the first gamma value corresponding to the preset binding point gray level based on the first target gray level.

[0109] Optionally, the first target gray level can be the maximum value in the second gray level.

[0110] For example, when the preset grayscale level includes 32 grayscale levels, suppose the area to be compensated can include pixel A, pixel B, pixel C, and pixel D. Specifically, the first grayscale level of the red sub-pixel A1 of pixel A in grayscale 32 can be grayscale 36; the first grayscale level of the green sub-pixel A2 of pixel A in grayscale 32 can be grayscale 34; the first grayscale level of the blue sub-pixel A3 of pixel A in grayscale 32 can be grayscale 34; the first grayscale level of the red sub-pixel B1 of pixel B in grayscale 32 can be grayscale 30; the first grayscale level of the green sub-pixel B2 of pixel B in grayscale 32 can be grayscale 30; the first grayscale level of the blue sub-pixel B3 of pixel B in grayscale 32 can be grayscale 31; and the first grayscale level of the red sub-pixel C1 of pixel C in grayscale 32 can be grayscale 36. The first gray level under a given gray level can be gray level 35. For pixel C, the green sub-pixel C2 can have a first gray level of 33 under a gray level of 32; for pixel C, the blue sub-pixel C3 can have a first gray level of 34 under a gray level of 32; for pixel D, the red sub-pixel D1 can have a first gray level of 29 under a gray level of 32; for pixel D, the green sub-pixel D2 can have a first gray level of 30 under a gray level of 32; and for pixel D, the blue sub-pixel D3 can have a first gray level of 28 under a gray level of 32. The electronic device can determine that the second gray level under a gray level of 32 includes {gray level 36, gray level 34, gray level 34, gray level 35, gray level 33, gray level 34}. Therefore, the electronic device can determine that the first target gray level corresponding to gray level 32 is gray level 36. That is, the electronic device can determine the first gamma value corresponding to gray level 32 based on gray level 36.

[0111] Optionally, after obtaining the first grayscale of each pixel in the area to be compensated under the preset binding point grayscale, the electronic device can delete the first grayscale with obvious deviation, and determine the second grayscale under each preset binding point grayscale based on the deletion of the first grayscale with obvious deviation. Thus, based on the second grayscale under each preset binding point grayscale, the first target grayscale corresponding to each preset binding point grayscale can be determined, and the first gamma value corresponding to each preset binding point grayscale can be determined. This can reduce the influence of abnormal compensation grayscale on the first gamma value or the second gamma value, and ensure the accuracy of the first gamma value or the second gamma value.

[0112] For example, for each preset binding point grayscale, after determining the first target grayscale corresponding to the preset binding point grayscale, the electronic device can obtain the display brightness (hereinafter referred to as the second display brightness) of the area to be compensated under the preset binding point grayscale, and the display brightness (hereinafter referred to as the third display brightness) of the area to be compensated under the first target grayscale, and determine the first gamma value corresponding to the preset binding point grayscale based on the second display brightness and the third display brightness.

[0113] It should be understood that the second and third display brightness corresponding to the area to be compensated can be the average value of the display brightness corresponding to all pixels in the area to be compensated.

[0114] In one example, for each preset grayscale point, after determining the first target grayscale point corresponding to that preset grayscale point, the electronic device can display the image A corresponding to the first target grayscale point in the area to be compensated, and can obtain the display brightness (i.e., the third display brightness) of the area to be compensated when the image A corresponding to the first target grayscale point is displayed in the area to be compensated. Similarly, the electronic device can also display the image A corresponding to the preset grayscale point in the area to be compensated, and can obtain the display brightness (i.e., the second display brightness) of the area to be compensated when the image A corresponding to the preset grayscale point is displayed in the area to be compensated.

[0115] Optionally, screen A may include one or more of red, green, or blue screens. It should be understood that when screen A includes multiple of red, green, or blue screens, the third display brightness can be the average of the display brightness of each screen corresponding to the first target grayscale in the area to be compensated. Similarly, the second display brightness can be the average of the display brightness of each screen corresponding to the preset bounding grayscale in the area to be compensated.

[0116] For example, when screen A includes red, green, and blue images, for each preset grayscale level, the electronic device can display the red image corresponding to that preset grayscale level in the area to be compensated, and obtain the display brightness A1 of the area to be compensated when the red image corresponding to that preset grayscale level is displayed. Similarly, the electronic device can also display the green image corresponding to that preset grayscale level in the area to be compensated, and obtain the display brightness A2 of the area to be compensated when the green image corresponding to that preset grayscale level is displayed. Similarly, the electronic device can also display the blue image corresponding to that preset grayscale level in the area to be compensated, and obtain the display brightness A3 of the area to be compensated when the blue image corresponding to that preset grayscale level is displayed. Therefore, the electronic device can determine a second display brightness corresponding to the area to be displayed based on display brightness A1, display brightness A2, and display brightness A3. For example, the second display brightness can be the average of display brightness A1, display brightness A2, and display brightness A3.

[0117] Similarly, the electronic device can display a red image corresponding to the first target grayscale in the area to be compensated, and acquire the display brightness B1 of the area to be compensated when the red image corresponding to the first target grayscale is displayed. Additionally, the electronic device can display a green image corresponding to the first target grayscale in the area to be compensated, and acquire the display brightness B2 of the area to be compensated when the green image corresponding to the first target grayscale is displayed. The electronic device can also display a blue image corresponding to the preset binding point grayscale in the area to be compensated, and acquire the display brightness B3 of the area to be compensated when the blue image corresponding to the preset binding point grayscale is displayed. Therefore, the electronic device can determine a third display brightness corresponding to the area to be displayed based on display brightness B1, display brightness B2, and display brightness B3. For example, the third display brightness can be the average of display brightness B1, display brightness B2, and display brightness B3.

[0118] It should be understood that the above-mentioned screen A includes one or more of the red screen, green screen or blue screen, which is only an exemplary interpretation and should not be construed as a limitation on the embodiments of this application. In the embodiments of this application, screen A may also be a screen that includes multiple of the red sub-pixels, green sub-pixels or blue sub-pixels.

[0119] Optionally, for each preset binding point grayscale, after obtaining the second display brightness corresponding to the area to be compensated under the preset binding point grayscale and the third display brightness corresponding to the area to be compensated under the first target grayscale, the electronic device can determine the first gamma value corresponding to the preset binding point grayscale according to the following formula 2.

[0120]

[0121] Among them, G x1 'G is the first target grayscale.' x1 For the preset grayscale of the binding points, L x1 'This is the third display brightness, L' x1 ·1 represents the second display brightness, and ·1 represents the first gamma value.

[0122] Similarly, after obtaining the first gray level of each sub-pixel (e.g., red sub-pixel, green sub-pixel, and blue sub-pixel) of each pixel in the area to be compensated under the preset binding point gray level, for each preset binding point gray level, the electronic device can determine the second target gray level corresponding to the preset binding point gray level based on the third gray level (i.e., the gray level after negative compensation) under the preset binding point gray level, and determine the second gamma value corresponding to the preset binding point gray level based on the second target gray level.

[0123] Optionally, the second target gray level can be the minimum value in the third gray level.

[0124] For example, when the preset grayscale level includes 32 grayscale levels, suppose the area to be compensated can include pixel A, pixel B, pixel C, and pixel D. Specifically, the first grayscale level of the red sub-pixel A1 of pixel A in grayscale 32 can be grayscale 36; the first grayscale level of the green sub-pixel A2 of pixel A in grayscale 32 can be grayscale 34; the first grayscale level of the blue sub-pixel A3 of pixel A in grayscale 32 can be grayscale 34; the first grayscale level of the red sub-pixel B1 of pixel B in grayscale 32 can be grayscale 30; the first grayscale level of the green sub-pixel B2 of pixel B in grayscale 32 can be grayscale 30; the first grayscale level of the blue sub-pixel B3 of pixel B in grayscale 32 can be grayscale 31; and the first grayscale level of the red sub-pixel C1 of pixel C in grayscale 32 can be grayscale 36. The first gray level under a given gray level can be gray level 35. For pixel C, the green sub-pixel C2 at gray level 32 can have a first gray level of 33; for pixel C, the blue sub-pixel C3 at gray level 32 can have a first gray level of 34; for pixel D, the red sub-pixel D1 at gray level 32 can have a first gray level of 29; for pixel D, the green sub-pixel D2 at gray level 32 can have a first gray level of 30; and for pixel D, the blue sub-pixel D3 at gray level 32 can have a first gray level of 28. The electronic device can determine that the third gray level under gray level 32 includes {gray level 30, gray level 30, gray level 31, gray level 29, gray level 30, gray level 28}. Therefore, the electronic device can determine that the second target gray level corresponding to gray level 32 is gray level 28. That is, the electronic device can determine the second gamma value corresponding to gray level 32 based on gray level 28.

[0125] For example, for each preset binding point grayscale, after determining the second target grayscale corresponding to the preset binding point grayscale, the electronic device can obtain the second display brightness corresponding to the area to be compensated under the preset binding point grayscale, and the display brightness corresponding to the area to be compensated under the second target grayscale (hereinafter referred to as the fourth display brightness), and determine the second gamma value corresponding to the preset binding point grayscale based on the second display brightness and the fourth display brightness.

[0126] It should be understood that the fourth display brightness corresponding to the area to be compensated can be the average value of the display brightness corresponding to all pixels in the area to be compensated.

[0127] In one example, for each preset grayscale point, after determining the second target grayscale point corresponding to that preset grayscale point, the electronic device can display the image B corresponding to the second target grayscale point in the area to be compensated, and can obtain the display brightness (i.e., the fourth display brightness) of the area to be compensated when the image B corresponding to the second target grayscale point is displayed in the area to be compensated. Similarly, the electronic device can also display the image B corresponding to the preset grayscale point in the area to be compensated, and can obtain the display brightness (i.e., the second display brightness) of the area to be compensated when the image B corresponding to the preset grayscale point is displayed in the area to be compensated.

[0128] It should be understood that screen B and the aforementioned screen A can be the same screen or different screens, depending on the actual scenario. This application embodiment does not impose any restrictions on this. The specific content of screen B can be referred to the relevant description of screen A, and will not be repeated here.

[0129] Optionally, for each preset binding point grayscale, after obtaining the second display brightness corresponding to the area to be compensated under the preset binding point grayscale and the fourth display brightness corresponding to the area to be compensated under the second target grayscale, the electronic device can determine the second gamma value corresponding to the preset binding point grayscale according to the following formula three.

[0130]

[0131] Among them, G x2 'For the second target grayscale, G' x2 For the preset grayscale of the binding points, L x2 'This is the fourth display brightness, L' x2 ·2 represents the second display brightness, and ·2 represents the second gamma value.

[0132] Optionally, after determining the first gamma value corresponding to each preset binding point grayscale, the electronic device can use interpolation to determine the first gamma value corresponding to other non-binding point grayscales based on the first gamma value corresponding to each preset binding point grayscale, thereby determining the first gamma value corresponding to each grayscale. Similarly, after determining the second gamma value corresponding to each preset binding point grayscale, the electronic device can use interpolation to determine the second gamma value corresponding to other non-binding point grayscales based on the second gamma value corresponding to each preset binding point grayscale, thereby determining the second gamma value corresponding to each grayscale.

[0133] In other embodiments, the determination of the first gamma value and the second gamma value corresponding to each gray level can be performed during the display screen generation process.

[0134] Optionally, during the display generation process, the electronic device can identify multiple displays exhibiting similar mura phenomena and determine the areas to be compensated within these displays. Subsequently, the electronic device can determine the first and second gamma values ​​corresponding to each grayscale level based on these areas to be compensated within the multiple displays. This avoids frequent adjustments to the acquisition parameters in the relevant acquisition devices (e.g., CCD cameras) when acquiring display brightness during the gamma value determination process, reducing the difficulty of data acquisition and improving the speed and efficiency of gamma value determination.

[0135] For example, for each display screen, the electronic device can determine the first gray level of each pixel in the area to be compensated of the display screen under each preset binding point gray level according to the aforementioned determination method, so as to determine the maximum positive deviation gray level and the maximum negative deviation gray level of the area to be compensated of the display screen under each preset binding point gray level based on the first gray level.

[0136] For each preset binding point grayscale, after determining the maximum positive deviation grayscale of the area to be compensated for each display screen at that preset binding point grayscale, the electronic device can determine the average value of the maximum positive deviation grayscale at that preset binding point grayscale based on each maximum positive deviation grayscale (hereinafter referred to as the average positive deviation). Similarly, after determining the maximum negative deviation grayscale of the area to be compensated for each display screen at that preset binding point grayscale, the electronic device can determine the average value of the maximum negative deviation grayscale at that preset binding point grayscale based on each maximum negative deviation grayscale (hereinafter referred to as the average positive deviation).

[0137] For each preset binding point grayscale, after determining the average positive or negative deviation at that preset binding point grayscale, the electronic device can determine the first target grayscale corresponding to that preset binding point grayscale based on the average positive deviation at that preset binding point grayscale, and determine the second target grayscale corresponding to that preset binding point grayscale based on the average negative deviation at that preset binding point grayscale. Subsequently, the electronic device can determine the first gamma value corresponding to that preset binding point grayscale based on the first target grayscale corresponding to that preset binding point grayscale, and determine the second gamma value corresponding to that preset binding point grayscale based on the second target grayscale corresponding to that preset binding point grayscale.

[0138] Optionally, the first target gray level corresponding to the preset binding point gray level can be the sum of the preset binding point gray level and the average positive deviation, and the second target gray level corresponding to the preset binding point gray level can be the sum of the preset binding point gray level and the average negative deviation. For example, when the preset binding point gray level is 32 gray levels, and the average positive deviation corresponding to 32 gray levels is determined to be 4 gray levels, and the average negative deviation corresponding to 32 gray levels is determined to be -2 gray levels, the electronic device can determine that the first target gray level corresponding to 32 gray levels is 36 gray levels (i.e., 32 gray levels + 4 gray levels), and the second target gray level corresponding to 32 gray levels is 30 gray levels (i.e., 32 gray levels - 2 gray levels).

[0139] It should be noted that the specific content of the first gamma value corresponding to the preset binding point gray level determined by the electronic device based on the first target gray level corresponding to the preset binding point gray level, and the specific content of the second gamma value corresponding to the preset binding point gray level determined based on the second target gray level corresponding to the preset binding point gray level can be referred to the relevant descriptions above, and will not be repeated here.

[0140] As described above, for each grayscale level, the electronic device can determine the corresponding first gamma value and second gamma value. When performing brightness compensation on the area to be compensated, the electronic device uses the first or second gamma value corresponding to the grayscale level to perform brightness compensation on the corresponding pixel. That is, the electronic device can accurately compensate the brightness of the pixel corresponding to the grayscale level based on the gamma values ​​near that grayscale level, reducing the deviation between the actual and theoretical compensation values, ensuring the brightness compensation effect, and improving the display effect of the screen.

[0141] For example, please see Figure 4 , Figure 4 A schematic diagram of an application scenario provided by an embodiment of this application is shown.

[0142] like Figure 4 As shown, when it is determined that brightness compensation is needed for pixels x1, x2, and x3 in the area to be compensated 400, the electronic device can determine the first gamma value corresponding to the grayscale of pixel x1 (e.g., based on the target brightness and the display brightness corresponding to pixel x1). Figure 4 The gamma value shown is P1) or the second gamma value (e.g., P1). Figure 4 As shown in the figure, gammaN1), so that brightness compensation can be performed on pixel x1 according to gamma P1 or gammaN1 to brighten or darken the display brightness corresponding to pixel x1. Similarly, the electronic device can determine the first gamma value corresponding to the grayscale of pixel x2 (e.g., gammaN1) according to the target brightness and the display brightness corresponding to pixel x2. Figure 4 The gamma value shown is P2) or a second gamma value (e.g., P2). Figure 4 As shown in the figure, gammaN2), thus, brightness compensation can be performed on pixel x2 based on gamma P2 or gammaN2 to brighten or darken the display brightness corresponding to pixel x2. Similarly, the electronic device can determine the first gamma value (e.g., gamma N2) corresponding to the grayscale of pixel x3 based on the target brightness and the display brightness corresponding to pixel x3. Figure 4 The gamma value shown is P3) or a second gamma value (e.g., P3). Figure 4 As shown in the figure, gammaN3 can be used to perform brightness compensation on pixel x3 according to gamma P3 or gammaN3, so as to brighten or darken the display brightness corresponding to pixel x3.

[0143] In this embodiment, when compensating the area to be compensated, for each pixel (i.e., the first pixel) in the area to be compensated, a first display brightness corresponding to the first pixel can be determined. When the first display brightness is less than the target brightness, the first pixel can be compensated for brightness based on the first gamma value corresponding to its grayscale. When the first display brightness is greater than the target brightness, the first pixel can be compensated for brightness based on the second gamma value corresponding to its grayscale. The first gamma value is the gamma value for positive compensation of the first pixel, i.e., the gamma value that increases the brightness of the first pixel (e.g., the first display brightness), and the second gamma value is the gamma value for negative compensation of the first pixel, i.e., the gamma value that decreases the brightness of the first pixel. In other words, in this embodiment, for each pixel in the area to be compensated, different gamma values ​​can be used to compensate for brightness based on the first display brightness corresponding to that pixel, instead of using a uniform gamma value for all pixels in the area to be compensated. This effectively reduces the deviation between the actual compensation value and the theoretical compensation value for each pixel, ensuring the brightness compensation effect, eliminating the mura phenomenon in the display area, and improving the display effect.

[0144] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0145] Corresponding to the brightness compensation method described in the above embodiments, Figure 5 A structural block diagram of a brightness compensation device provided in an embodiment of this application is shown. For ease of explanation, only the parts related to the embodiment of this application are shown.

[0146] like Figure 5 As shown, the device includes:

[0147] Display brightness acquisition module 501 is used to determine the first display brightness corresponding to the first pixel, where the first pixel is a pixel in the area to be compensated;

[0148] The first brightness compensation module 502 is used to perform brightness compensation on the first pixel according to the first gamma value corresponding to the gray level of the first pixel when the first display brightness is less than the target brightness.

[0149] The second brightness compensation module 503 is used to perform brightness compensation on the first pixel according to the second gamma value corresponding to the gray level of the first pixel when the first display brightness is greater than the target brightness.

[0150] Wherein, the first gamma value is the gamma value for increasing the brightness of the first display, and the second gamma value is the gamma value for decreasing the brightness of the first display.

[0151] In one possible implementation, the device further includes:

[0152] The first compensation grayscale acquisition module is used to acquire the first grayscale of each pixel in the area to be compensated under the preset binding point grayscale. The first grayscale is the grayscale after the area to be compensated is compensated based on the preset demura method.

[0153] The first target grayscale determination module is used to determine the first target grayscale corresponding to the preset binding point grayscale based on the second compensation grayscale, wherein the second grayscale is one or more grayscales in the first grayscale that are larger than the preset binding point grayscale.

[0154] The first gamma value determination module is used to determine the first gamma value corresponding to the preset binding point gray level based on the first target gray level.

[0155] Optionally, the first target gray level is the maximum value in the second gray level.

[0156] For example, the first gamma value determination module is specifically used to obtain the second display brightness corresponding to the area to be compensated under the preset binding point grayscale; obtain the third display brightness corresponding to the area to be compensated under the first target grayscale; and determine the first gamma value corresponding to the preset binding point grayscale based on the preset binding point grayscale, the first target grayscale, the second display brightness and the third display brightness.

[0157] In another possible implementation, the device further includes:

[0158] The first compensation grayscale acquisition module is used to acquire the first grayscale of each pixel in the area to be compensated under the preset binding point grayscale. The first grayscale is the grayscale after the area to be compensated is compensated based on the preset demura method.

[0159] The second target grayscale determination module is used to determine the second target grayscale corresponding to the preset binding point grayscale based on the third grayscale, wherein the third grayscale is one or more grayscales in the first grayscale that are smaller than the preset binding point grayscale;

[0160] The second gamma value determination module is used to determine the second gamma value corresponding to the preset binding point gray level based on the second target gray level.

[0161] Optionally, the second target gray level is the minimum value among the third gray levels.

[0162] For example, the second gamma value determination module is specifically used to obtain the second display brightness corresponding to the area to be compensated under the preset binding point grayscale; obtain the fourth display brightness corresponding to the area to be compensated under the second target grayscale; and determine the second gamma value corresponding to the preset binding point grayscale based on the preset binding point grayscale, the second target grayscale, the second display brightness and the fourth display brightness.

[0163] In one example, the second gamma value determination module is further configured to determine the second gamma value corresponding to the preset binding point grayscale according to the following formula:

[0164]

[0165] Among them, G x2 ' represents the second target grayscale, G x2 For the preset binding point grayscale, L x2 ' is the fourth display brightness, L x2 ·2 represents the second display brightness, and ·2 represents the second gamma value.

[0166] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0167] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments 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. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0168] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 6 As shown, the electronic device 6 of this embodiment includes: at least one processor 60 ( Figure 6(Only one is shown in the diagram), memory 61, and computer program 62 stored in said memory 61 and executable on said at least one processor 60, wherein said processor 60 executes said computer program 62 to implement the steps in any of the above-described brightness compensation method embodiments.

[0169] The electronic device 6 can be a desktop computer, laptop, handheld computer, cloud server, or other computing device. This electronic device may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will understand that... Figure 6 This is merely an example of electronic device 6 and does not constitute a limitation on electronic device 6. It may include more or fewer components than shown, or combine certain components, or different components, such as input / output devices, network access devices, etc.

[0170] The processor 60 can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0171] In some embodiments, the memory 61 may be an internal storage unit of the electronic device 6, such as a hard disk or memory of the electronic device 6. In other embodiments, the memory 61 may be an external storage device of the electronic device 6, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the electronic device 6. Furthermore, the memory 61 may include both internal and external storage units of the electronic device 6. The memory 61 is used to store the operating system, applications, bootloader, data, and other programs, such as the program code of the computer program. The memory 61 can also be used to temporarily store data that has been output or will be output.

[0172] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the above-described method embodiments.

[0173] This application provides a computer program product that, when run on an electronic device, enables the electronic device to implement the steps described in the various method embodiments above.

[0174] 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, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable storage medium can include at least: any entity or device capable of carrying computer program code to a device / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable storage media cannot be electrical carrier signals or telecommunication signals.

[0175] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0176] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software 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 this application.

[0177] In the embodiments provided in this application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings or direct couplings or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0178] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0179] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A brightness compensation method, characterized in that, include: Determine the first display brightness corresponding to the first pixel, where the first pixel is a pixel in the area to be compensated; When the first display brightness is less than the target brightness, the brightness of the first pixel is compensated according to the first gamma value corresponding to the gray level of the first pixel; When the first display brightness is greater than the target brightness, the brightness of the first pixel is compensated according to the second gamma value corresponding to the gray level of the first pixel; Wherein, the first gamma value and the second gamma value are associated with the gray level of the first pixel, and are determined based on the first gray level of the pixel in the area to be compensated under the preset binding point gray level and after compensation by the preset Demura method; for the same gray level, the corresponding first gamma value and the second gamma value are different; the first gamma value is the gamma value that increases the first display brightness, and the second gamma value is the gamma value that decreases the first display brightness. Obtain the first gray level of each pixel in the region to be compensated under a preset binding point gray level. The first gray level is the gray level after the region to be compensated is compensated based on a preset demura method. Based on the second gray level, determine the first target gray level corresponding to the preset binding point gray level, where the second gray level is one or more gray levels in the first gray level that are larger than the preset binding point gray level. Based on the first target gray level, determine the first gamma value corresponding to the preset binding point gray level, wherein the first target gray level is the maximum value in the second gray level, and the second target gray level is the minimum value in the third gray level; Obtain the first gray level of each pixel in the region to be compensated under a preset binding point gray level. The first gray level is the gray level after the region to be compensated is compensated based on a preset demura method. Based on the third gray level, determine the second target gray level corresponding to the preset binding point gray level, wherein the third gray level is one or more gray levels in the first gray level that are smaller than the preset binding point gray level; Based on the second target grayscale, determine the second gamma value corresponding to the preset binding point grayscale; The first gamma value is different for different gray levels; the second gamma value is also different for different gray levels. After determining the first gamma value and the second gamma value corresponding to each preset binding point grayscale, the first gamma value corresponding to the non-binding point grayscale is determined by interpolation based on the first gamma value corresponding to each preset binding point grayscale; the second gamma value corresponding to the non-binding point grayscale is determined by interpolation based on the second gamma value corresponding to each preset binding point grayscale.

2. The method according to claim 1, characterized in that, The step of determining the first gamma value corresponding to the preset binding point grayscale based on the first target grayscale includes: Obtain the second display brightness corresponding to the area to be compensated under the preset binding point grayscale; Obtain the third display brightness corresponding to the area to be compensated under the first target grayscale; Based on the preset binding point grayscale, the first target grayscale, the second display brightness, and the third display brightness, the first gamma value corresponding to the preset binding point grayscale is determined.

3. The method according to claim 1, characterized in that, The step of determining the second gamma value corresponding to the preset binding point grayscale based on the second target grayscale includes: Obtain the second display brightness corresponding to the area to be compensated under the preset binding point grayscale; Obtain the fourth display brightness corresponding to the area to be compensated under the second target grayscale; The second gamma value corresponding to the preset binding point grayscale is determined based on the preset binding point grayscale, the second target grayscale, the second display brightness, and the fourth display brightness.

4. The method according to claim 3, characterized in that, The step of determining the second gamma value corresponding to the preset binding point grayscale based on the preset binding point grayscale, the second target grayscale, the second display brightness, and the fourth display brightness includes: The second gamma value corresponding to the preset binding point grayscale is determined according to the following formula: ; in, The second target grayscale, The grayscale of the preset binding point, The fourth display brightness, The second display brightness, This is the second gamma value.

5. A brightness compensation device, characterized in that, include: The display brightness acquisition module is used to determine the first display brightness corresponding to the first pixel, where the first pixel is a pixel in the area to be compensated. The first brightness compensation module is used to compensate the brightness of the first pixel according to the first gamma value corresponding to the gray level of the first pixel when the first display brightness is less than the target brightness. The second brightness compensation module is used to perform brightness compensation on the first pixel according to the second gamma value corresponding to the gray level of the first pixel when the first display brightness is greater than the target brightness. Wherein, the first gamma value and the second gamma value are associated with the gray level of the first pixel, and are determined based on the first gray level of the pixel in the area to be compensated under the preset binding point gray level and after compensation by the preset Demura method; for the same gray level, the corresponding first gamma value and the second gamma value are different; the first gamma value is the gamma value that increases the first display brightness, and the second gamma value is the gamma value that decreases the first display brightness. Obtain the first gray level of each pixel in the region to be compensated under a preset binding point gray level. The first gray level is the gray level after the region to be compensated is compensated based on a preset demura method. Based on the second gray level, determine the first target gray level corresponding to the preset binding point gray level, where the second gray level is one or more gray levels in the first gray level that are larger than the preset binding point gray level. Based on the first target gray level, determine the first gamma value corresponding to the preset binding point gray level, wherein the first target gray level is the maximum value in the second gray level, and the second target gray level is the minimum value in the third gray level; Obtain the first gray level of each pixel in the region to be compensated under a preset binding point gray level. The first gray level is the gray level after the region to be compensated is compensated based on a preset demura method. Based on the third gray level, determine the second target gray level corresponding to the preset binding point gray level, wherein the third gray level is one or more gray levels in the first gray level that are smaller than the preset binding point gray level; Based on the second target grayscale, determine the second gamma value corresponding to the preset binding point grayscale; The first gamma value is different for different gray levels; the second gamma value is also different for different gray levels. After determining the first gamma value and the second gamma value corresponding to each preset binding point grayscale, the first gamma value corresponding to the non-binding point grayscale is determined by interpolation based on the first gamma value corresponding to each preset binding point grayscale; the second gamma value corresponding to the non-binding point grayscale is determined by interpolation based on the second gamma value corresponding to each preset binding point grayscale.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it causes the electronic device to implement the brightness compensation method as described in any one of claims 1 to 4.

7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the computer, it causes the computer to implement the brightness compensation method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Gray scale compensation method and device of display panel and related equipment

    CN116564224A

  • Brightness compensation method of display module and display device

    CN117059005A