A screen brightness compensation method, device and product
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BOE TECHNOLOGY GROUP CO LTD
- Filing Date
- 2024-12-05
- Publication Date
- 2026-08-07
AI Technical Summary
In existing technologies, the problem of uneven brightness on display screens leads to a lengthy and unquantifiable debugging process. The large differences between the inside and outside of the screen require manual adjustment of the brightness compensation value, which cannot be adaptive, resulting in a decrease in screen image quality.
A two-stage brightness compensation method is adopted. First, in offline mode, the first brightness compensation information is obtained through brightness measurement to perform initial compensation on the target screen. Then, in online mode, the first image and the standard image are obtained by taking pictures to determine the second brightness compensation information, and the target screen is further compensated to eliminate fine lines and improve compensation efficiency.
By employing a two-stage brightness compensation method, the problem of uneven screen brightness was quickly and effectively solved, screen lines were eliminated, and the efficiency and effectiveness of screen brightness compensation were improved.
Smart Images

Figure CN122535941A_ABST
Abstract
Description
A screen brightness compensation method, apparatus and product Technical Field
[0001] This application relates to the field of display screen technology, and in particular to a screen brightness compensation method, apparatus and product. Background Technology
[0002] A display panel includes multiple pixels to which analog signals (e.g., data voltages) generated by processing digital image signals are applied. Each pixel emits light according to the applied voltage (e.g., in an OLED display), or displays an image by controlling the intensity of light passing through the liquid crystal according to the liquid crystal transmittance (e.g., in an LCD display), wherein the liquid crystal transmittance is adjustable by the applied voltage. For example, an OLED display panel mainly includes a pixel driving circuit and light-emitting devices. The pixel driving circuit drives the light-emitting devices to emit light, thereby realizing image display, wherein the driving voltage for driving the light-emitting devices is adjustable. Summary of the Invention
[0003] In view of the above problems, embodiments of this application provide a screen brightness compensation method, apparatus and product to improve the compensation efficiency of screen brightness compensation.
[0004] A first aspect of this application provides a screen brightness compensation method, including:
[0005] First brightness compensation information is determined based on the brightness of the pixel units of the first screen at the target charging rate and the brightness at various charging rates different from the target charging rate.
[0006] Using the first brightness compensation information, perform the first stage of brightness compensation on the target screen;
[0007] Acquire a first image of the target screen after brightness compensation in the first stage, and acquire a standard image corresponding to the target screen, wherein the standard image corresponding to the target screen is an image of the target screen after brightness compensation.
[0008] Based on the first image and the standard image, determine the second brightness compensation information;
[0009] The target screen is then subjected to a second stage of brightness compensation using the second brightness compensation information.
[0010] In one possible implementation, the target charging rate refers to a fully charged state. First brightness compensation information is determined based on the brightness of pixel units on the first screen at the target charging rate and the brightness at various charging rates different from the target charging rate. This information includes:
[0011] When the charging rate is in a fully charged state, sample the first brightness information of each color channel of the pixel unit of the first screen at multiple gray levels;
[0012] In the case of multiple charging rates where the charging rate is not fully charged, the second brightness information of each color channel of the pixel unit of the first screen is sampled at multiple gray levels.
[0013] Based on the first brightness information and the second brightness information, the first brightness compensation information is determined.
[0014] In one possible implementation, determining the first brightness compensation information based on the first brightness information and the second brightness information includes:
[0015] Based on the first brightness information, determine the first brightness of the first color channel of the pixel unit of the first screen at the first grayscale when the charging rate is in a fully charged state.
[0016] Based on the second brightness information, determine the second brightness of the first color channel of the pixel unit of the first screen at the first grayscale when the charging rate is a first charging rate that is not fully charged.
[0017] Based on the first brightness and the second brightness, a second grayscale is determined from the second brightness information. The second grayscale satisfies the following: the brightness of the first color channel of the pixel unit of the first screen at the second grayscale is the first brightness.
[0018] The difference between the first gray level and the second gray level is determined as the compensation value of the first gray level under the first charging rate.
[0019] By iterating through each grayscale and the various charging rates, and performing the above steps, the brightness compensation information of the first color channel of the pixel unit of the first screen is obtained.
[0020] By iterating through each color channel and performing the above steps, the first brightness compensation information is obtained.
[0021] In one possible implementation, determining second brightness compensation information based on the first image and the standard image includes:
[0022] The first brightness compensation information is adjusted according to various compensation intensities to obtain various adjusted first brightness compensation information.
[0023] Acquire multiple second images of the target screen after brightness compensation using the various adjusted first brightness compensation information;
[0024] Each second image is divided into multiple image regions corresponding to different screen areas of the target screen, and the average brightness of each image region is calculated.
[0025] For each image region, establish the correspondence between compensation intensity and average brightness.
[0026] Based on the correspondence and the standard image, the second brightness compensation information is determined.
[0027] In one possible implementation, determining the second brightness compensation information based on the correspondence and the standard image includes:
[0028] Based on the standard image, determine the standard brightness distribution information of the target screen;
[0029] Based on the standard brightness distribution information and the first image, determine the average target brightness of different image regions in the first image;
[0030] Based on the average target brightness of different image regions in the first image, the corresponding relationship is queried to determine the target compensation intensity of different image regions in the first image;
[0031] Based on the target compensation intensity of different image regions in the first image and the first brightness compensation information, the second brightness compensation information is determined.
[0032] In one possible implementation, the first brightness compensation information is determined based on the brightness of the pixel units in the central region of the first screen at a target charging rate and the brightness at various charging rates different from the target charging rate.
[0033] Based on the standard image, determine the standard brightness distribution information of the target screen, including:
[0034] The standard image is divided into multiple image regions corresponding to different screen areas of the target screen, and the average brightness of each image region is calculated.
[0035] The ratio of the average brightness of the image region corresponding to the center region of the target screen to the average brightness of the image regions corresponding to other regions of the target screen is determined as the standard brightness distribution information.
[0036] Based on the standard brightness distribution information and the first image, the target brightness mean value of different image regions in the first image is determined, including:
[0037] For each image region in the first image, the ratio corresponding to that image region is determined from the standard brightness distribution information;
[0038] For each image region in the first image, the target average brightness of the image region is determined based on the ratio corresponding to that image region and the average brightness of the image region corresponding to the center region in the first image.
[0039] A second aspect of this application also provides a screen brightness compensation device, the device comprising:
[0040] The first brightness compensation information determination module is used to determine first brightness compensation information based on the brightness of the pixel unit of the first screen at a target charging rate and the brightness at multiple charging rates different from the target charging rate.
[0041] The first brightness compensation module is used to perform a first stage of brightness compensation on the target screen using the first brightness compensation information.
[0042] The image acquisition module is used to acquire a first image of the target screen after brightness compensation in the first stage, and to acquire a standard image corresponding to the target screen, wherein the standard image corresponding to the target screen is: an image of the target screen after brightness compensation.
[0043] The second brightness compensation information determination module is used to determine second brightness compensation information based on the first image and the standard image.
[0044] The second brightness compensation module is used to perform a second stage of brightness compensation on the target screen using the second brightness compensation information.
[0045] In one possible implementation, the second brightness compensation information determining module includes:
[0046] The information adjustment submodule is used to adjust the first brightness compensation information according to multiple compensation intensities to obtain multiple adjusted first brightness compensation information.
[0047] The second image acquisition submodule is used to acquire multiple second images of the target screen after brightness compensation using the multiple adjusted first brightness compensation information;
[0048] The brightness mean calculation submodule is used to divide each second image into multiple image regions corresponding to different screen areas of the target screen, and calculate the brightness mean of each image region.
[0049] The correspondence establishment submodule is used to establish the correspondence between compensation intensity and average brightness for each image region;
[0050] The information determination submodule is used to determine the second brightness compensation information based on the correspondence and the standard image.
[0051] A third aspect of this application provides an electronic device, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the computer program, it implements the steps of the screen brightness compensation method described in the first aspect of this application.
[0052] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the screen brightness compensation method described in the first aspect of this application.
[0053] The fifth aspect of this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the screen brightness compensation method as described in the first aspect of this application.
[0054] This application provides a screen brightness compensation method, which includes: determining first brightness compensation information based on the brightness of a pixel unit of a first screen at a target charging rate and the brightness at multiple charging rates different from the target charging rate; performing a first stage of brightness compensation on a target screen using the first brightness compensation information; acquiring a first image of the target screen after the first stage of brightness compensation, and acquiring a standard image corresponding to the target screen, wherein the standard image corresponding to the target screen is an image of the target screen after brightness compensation; determining second brightness compensation information based on the first image and the standard image; and performing a second stage of brightness compensation on the target screen using the second brightness compensation information.
[0055] The specific beneficial effects are as follows: This application proposes to perform screen brightness compensation in two stages: In the first stage, the correspondence between screen brightness and charging rate obtained in offline state (the brightness of the pixel unit of the first screen at the target charging rate and the brightness at various charging rates different from the target charging rate) is used to determine the first brightness compensation information, and then the target screen is subjected to the first stage of brightness compensation based on the first brightness compensation information; After the first stage of brightness compensation is completed, considering the difference between the target screen and the first screen, the target screen may still have insufficient or excessive compensation, the first image and the standard image are obtained by taking pictures to obtain the brightness compensation value for the target screen (i.e., the second brightness compensation information), and then the second stage of brightness compensation is performed for the target screen to solve the problem of uneven screen brightness, eliminate screen fine lines, and improve the compensation efficiency of screen brightness compensation. Attached Figure Description
[0056] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application 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.
[0057] Figure 1 is a flowchart of a screen brightness method provided in an embodiment of this application;
[0058] Figure 2 is a schematic diagram of compensation value calculation provided in an embodiment of this application;
[0059] Figure 3 is a schematic diagram of the relationship between compensation intensity and average brightness provided in an embodiment of this application;
[0060] Figure 4 is a schematic diagram of a screen brightness compensation device provided in an embodiment of this application;
[0061] Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Specific Implementation
[0062] Exemplary embodiments of this application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of this application are shown in the drawings, it should be understood that this application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of this application and to fully convey the scope of this application to those skilled in the art.
[0063] The LCD screen uses a dual-scan structure, meaning it scans line by line, scanning half the pixels of each line at a time to achieve a high refresh rate. The screen's luminous efficiency is affected by charging time. In this architecture, the pixel charging time is influenced by the data signal from the previous scan. If the signal changes abruptly, the charging time is insufficient, resulting in inadequate pixel brightness and causing horizontal and vertical lines on the display, severely impacting screen image quality.
[0064] Currently, addressing the aforementioned issue of uneven screen brightness requires manual adjustments to the brightness compensation values for each area of every screen. This presents three main problems: first, the adjustment process is lengthy and cannot be quantified; second, the unevenness within the screen necessitates repeated adjustments to the compensation values for different areas; and third, significant differences exist between screens, requiring piecemeal adjustments.
[0065] In view of the above problems, this application proposes a screen brightness compensation method, apparatus, and product to improve the compensation efficiency of screen brightness. The following, in conjunction with the accompanying drawings, provides a detailed description of the screen brightness compensation method, apparatus, and product provided by this application through some embodiments and application scenarios.
[0066] The first aspect of this application provides a screen brightness compensation method, which will be described below in sections 1.1, 1.2 and 1.3.
[0067] 1.1 A brief overview of screen brightness compensation methods:
[0068] Referring to Figure 1, Figure 1 shows a flowchart of a screen brightness compensation method. As shown in Figure 1, the method includes:
[0069] Step S101: Determine first brightness compensation information based on the brightness of the pixel units of the first screen at the target charging rate and the brightness at various charging rates different from the target charging rate.
[0070] In this embodiment, relevant information of the first screen can be pre-acquired offline through methods such as brightness measurement to generate first brightness compensation information. The first brightness compensation information includes at least the correspondence between grayscale, brightness, and compensation values of pixel units (fully charged and partially charged states) at different charging rates. Further, the first brightness compensation information may include: the correspondence between grayscale and brightness of pixel units at different charging rates in the fully charged state (as shown in Table 1 below), the correspondence between grayscale and brightness of pixel units at different charging rates in the partially charged state (as shown in Table 2 below), and the correspondence between grayscale and compensation values of pixel units at different charging rates in the partially charged state (as shown in Table 3 below). The compensation value refers to the compensation value required to adjust a pixel unit from its actual brightness (the brightness corresponding to the grayscale at a certain charging rate in the partially charged state) to its ideal brightness (the brightness corresponding to this grayscale at the same charging rate in the fully charged state). Step S102: Using the first brightness compensation information, perform a first-stage brightness compensation on the target screen.
[0071] Specifically, the target screen can be an Organic Light-Emitting Diode (OLED) display or a Liquid Crystal Display (LCD) screen with a Dual-gate structure. The target screen employs either Hardware Super Resolution (HSR) or Dual Line Gate (DLG) frequency multiplication mode. Here, "target screen" refers to the screen for which brightness compensation is required in this embodiment, and "first screen" refers to any screen produced in the same batch as the target screen.
[0072] Step S103: Obtain a first image of the target screen after the first stage of brightness compensation, and obtain a standard image corresponding to the target screen. The standard image corresponding to the target screen is: an image of the target screen after brightness compensation.
[0073] Specifically, after completing the initial compensation in the first stage, the target screen, after undergoing the first stage of brightness compensation, is photographed using a DSLR camera or a luminance meter to obtain a first image. Based on this first image, the actual brightness of the target screen after the first stage of brightness compensation can be determined. In this step, a standard image corresponding to the target screen can also be acquired. This standard image can be an image pre-taken for a screen that has undergone manual brightness adjustment (i.e., an image after brightness compensation). Based on the standard image, the ideal brightness that the target screen needs to achieve can be determined. This allows for the determination of second brightness compensation information in the second stage, based on the actual brightness of the target screen and the ideal brightness that needs to be achieved through brightness compensation.
[0074] Step S104: Determine second brightness compensation information based on the first image and the standard image. The second brightness compensation information refers to the compensation value used for the second stage of brightness compensation of the target screen. Further, the second brightness compensation information may include the brightness compensation value used for the second stage of brightness compensation of each screen area of the target screen. In online mode, using the brightness of the first image area in the first image as a reference, and based on the standard brightness distribution information of the standard image, determine the compensation value (i.e., the second brightness compensation information) required to make the brightness of each screen area of the target screen reach the ideal brightness, thereby performing the second stage of brightness compensation on the target screen. The first image area refers to the image area corresponding to the first screen area of the target screen, which may be the central area of the target screen. Step S105: Perform the second stage of brightness compensation on the target screen using the second brightness compensation information.
[0075] This application proposes a two-stage (initial compensation and final compensation) approach to screen brightness compensation: In the first stage (steps S101-S102), the correspondence between screen brightness and charging rate (brightness of pixel units of the first screen at the target charging rate and brightness at various charging rates different from the target charging rate) obtained offline is used to determine first brightness compensation information, thereby performing initial compensation on the screen based on the first brightness compensation information. After completing the first stage of brightness compensation, considering the differences between the target screen and the first screen, the target screen may still have insufficient or excessive compensation. In the second stage (steps S103-S105), a first image and a standard image are acquired by taking a picture to obtain a brightness compensation value for the target screen (i.e., second brightness compensation information), and then a second stage of brightness compensation is performed on the target screen to solve the problem of uneven screen brightness, eliminate screen lines, and improve the compensation efficiency of screen brightness compensation.
[0076] LCD screens suffer from insufficient charging of liquid crystal molecules due to high refresh rates of 60Hz and above, leading to uneven screen brightness and fine lines. Furthermore, the degree of fine lines varies across different areas of the screen and even between different screen sections. Currently, the main solution to this uneven screen brightness problem is manual adjustment of the screen's brightness compensation value. This adjustment process is lengthy, and due to the screen's inherent inhomogeneity, manually adjusted brightness parameters cannot adapt automatically. This application proposes a screen brightness compensation method (as described in steps S101-S105 above), which eliminates screen fine lines and achieves efficient screen brightness compensation through two-stage brightness compensation (offline compensation + online compensation).
[0077] 1.2 Specific implementation method of brightness compensation in the first stage:
[0078] The first stage of brightness compensation corresponds to steps S101-S102 above. Specifically, it refers to: in an offline state, acquiring first brightness compensation information in advance, determining a compensation value based on the first brightness compensation information, and then using the compensation value to perform the first stage of brightness compensation on the target screen. The first brightness compensation information can be information obtained by sampling a first screen area within the first screen. The first screen area refers to any one of the multiple screen areas obtained by dividing the first screen into regions, such as the center screen area. This embodiment of the application utilizes the first brightness compensation information acquired offline to quickly complete the first stage of brightness compensation for the target screen, which helps improve the efficiency of screen brightness compensation.
[0079] In one possible implementation, the target charging rate refers to a fully charged state. First brightness compensation information is determined based on the brightness of pixel units on the first screen at the target charging rate and the brightness at various charging rates different from the target charging rate. This information includes:
[0080] Step S1011: When the charging rate is in a fully charged state, sample the first brightness information of each color channel of the pixel unit of the first screen at multiple gray levels.
[0081] Since fine lines appear due to differences in subpixel brightness, it is necessary to capture the brightness of subpixels using a camera (e.g., a CCD camera), recording the brightness of subpixels in a fully charged state (i.e., at the target charging rate) and in various incompletely charged states (i.e., at multiple charging rates different from the target charging rate). This allows for the determination of grayscale differences based on the brightness differences, resulting in the final brightness compensation value. In this embodiment, a magnifying lens can be used for capturing images, and the positions of periodic pixels can be automatically marked to output the average brightness of subpixels under different conditions for several periods. By selecting a certain number of periods, the average brightness of subpixels under different conditions is statistically analyzed as the brightness of the currently captured image.
[0082] Specifically, a screen pixel unit generally includes three color channels: R (red), G (green), and B (blue). In practice, when the gray levels of the three channels are the same, the screen is in a fully charged state, and the brightness of the LED is the ideal brightness of the B=k gray level. Selecting the pixel unit at the center of the first screen as the sampling point, for each color channel, the corresponding relationship between gray level and brightness (i.e., the first brightness information) is obtained by sampling and averaging the brightness after shooting, using the method described above, when the first screen is in a fully charged state (i.e., when the gray levels of the three color channels are the same). Table 1 shows the corresponding relationship between the gray level value and brightness of a pixel unit at a certain charging rate in a fully charged state. For example, the first brightness information can be shown in Table 1: in a fully charged state, when the gray level is 32 (R=G=B=32), the brightness value of the B color channel of the pixel unit is 1.160497.
[0083] Table 1
[0084] Step S1012: In the case of multiple charging rates with non-fully charged states, sample the second brightness information of each color channel of the pixel unit of the first screen at multiple gray levels.
[0085] Specifically, the pixel unit at the center of the first screen is selected as the sampling point. For each color channel, the correspondence between gray level and brightness (i.e., the second brightness information) is obtained by sampling the average brightness after shooting, using the method described above. The first screen is in a state of incomplete charging (i.e., the gray levels of the three color channels are different). The second brightness information can be shown in Table 2. Table 2 shows the correspondence between the gray level value and brightness of a pixel unit under a certain charging rate in a state of incomplete charging. The gray level B of channel B (range 0-255) is statistically analyzed. Every few gray levels, with charging rate R=G=j, the actual brightness of gray level B=i under different charging rates is sampled.
[0086] For example, as shown in Table 2, in the incompletely charged state, when B = i = 64 and the other color channels are R = G = J = 32, the luminance value of the B color channel of the pixel unit is 4.8773. When B = i = 64 and the other color channels are R = G = J = 96, the luminance value of the B color channel of the pixel unit is 7.761179.
[0087] Table 2
[0088] Step S1013: Determine the first brightness compensation information based on the first brightness information and the second brightness information.
[0089] In one possible implementation, step S1013, determining first brightness compensation information based on the first brightness information and the second brightness information, includes:
[0090] Step S201: Based on the first brightness information, determine the first brightness of the first color channel of the pixel unit of the first screen at the first grayscale when the charging rate is in a fully charged state.
[0091] Specifically, referring to Figure 2, which illustrates a calculation diagram for compensation values, the horizontal axis represents grayscale, the vertical axis represents brightness, and curve K represents the relationship between grayscale and brightness of the first color channel of a pixel unit on the first screen when the charging rate is fully charged. Based on curve K, the first brightness (Lii as shown in Figure 2) at the first grayscale (B=i) can be determined. For example, if the current actual grayscale (i.e., the first grayscale) of the first screen is 64, and based on the first brightness information, the ideal brightness (i.e., the first brightness) corresponding to this grayscale is 21, then the corresponding point (64, 21) can be found on curve K.
[0092] Step S202: Based on the second brightness information, determine the second brightness of the first color channel of the pixel unit of the first screen at the first grayscale when the charging rate is a first charging rate in a non-fully charged state.
[0093] Specifically, as shown in Figure 2, curve J represents the relationship between the grayscale and brightness of the first color channel of a pixel unit on the first screen when the charging rate is a first charging rate that is not fully charged. Based on curve J, the second brightness Lij at the first grayscale (as shown by B=i in Figure 2) can be determined. For example, if the current actual grayscale (i.e., the first grayscale) of the first screen is 64, according to the second brightness information, the corresponding actual brightness (i.e., the second brightness) is 14, which can be found at the point (64, 14) on curve J.
[0094] Step S203: Determine a second grayscale from the second brightness information based on the first brightness and the second brightness. The second grayscale satisfies the following condition: the brightness of the first color channel of the pixel unit of the first screen at the second grayscale is the first brightness.
[0095] Specifically, as shown in Figure 2, another point (grayscale B = x) is found on curve J such that the brightness of this point is the same as the first brightness, i.e., Lxj = Lii. This means that when the current screen charging rate is j, the grayscale needs to be adjusted from i to x in order to make the screen brightness reach the ideal brightness (i.e., the brightness is adjusted from the second brightness to the first brightness). For example, after step S201, it has been determined that the ideal brightness (i.e., the first brightness) that the first screen needs to achieve after brightness compensation is 21. Therefore, based on the second brightness information, the corresponding grayscale 96 (i.e., the second grayscale) can be found, and the corresponding point (96, 21) can be found on curve J.
[0096] Step S204: The difference between the first gray level and the second gray level is determined as the compensation value of the first gray level under the first charging rate.
[0097] Specifically, as shown in Figure 2, the compensation value is the difference between gray level x and gray level i. In the example above, if the first gray level is 64 and the second gray level is 96, then the compensation value on the current first screen is the difference between 96 and 64, which is 32.
[0098] Step S205: Traverse each grayscale and the various charging rates, and perform the above steps to obtain the brightness compensation information of the first color channel of the pixel unit of the first screen.
[0099] Step S206: Traverse each color channel and execute the above steps to obtain the first brightness compensation information.
[0100] Specifically, the first brightness compensation information can be shown in Table 3. Table 3 shows the correspondence between the gray level value and the compensation value of a pixel unit under a certain charging rate. It also shows the compensation value corresponding to the gray level B (range 0-255) of the B channel at several gray levels, under the condition of charging rate R=G=j.
[0101] Table 3
[0102] In one possible implementation, the first brightness compensation information is determined based on the brightness of pixel units in the central region of the first screen at a target charging rate and at various charging rates different from the target charging rate. Specifically, the first brightness compensation information may be information obtained by sampling a first screen region within the first screen. The first screen region refers to the central region of multiple screen regions obtained by dividing the first screen into regions. For example, the first brightness information refers to the first brightness information of each color channel of pixel units in the central region of the first screen at multiple gray levels when the charging rate is in a fully charged state. The second brightness information refers to the second brightness information of each color channel of pixel units in the central region of the first screen at multiple gray levels when the charging rate is in a non-fully charged state at various charging rates.
[0103] Therefore, when performing step S102, the obtained first brightness compensation information can be used to perform the first stage of brightness compensation on the target screen.
[0104] Specifically, firstly, a target image captured from the target screen is acquired, and the target image is divided into multiple image regions corresponding to different screen areas of the target screen; wherein, the multiple image regions of the target image include: a first image region corresponding to a first screen area of the target screen. Dividing the target screen into multiple screen areas, for example, dividing the target screen into M*N screen areas, can correspondingly divide the target image into M*N image regions, with each image region corresponding one-to-one with a screen area.
[0105] The first screen area can be the central area of the target screen. Based on the first image area in the target image, the actual brightness and actual grayscale of the current first screen area (i.e., the central area) of the target screen are determined. In this embodiment, the first screen area of the first screen and the first screen area of the target screen refer to screen areas belonging to the same location. The corresponding first brightness compensation value is found in the first brightness compensation information. Initial compensation, i.e., the first stage of brightness compensation, is performed on the target screen based on the found first brightness compensation value. In step S102, the determined compensation value can be the first brightness compensation value corresponding to the first screen area determined based on the first image area, and this compensation value is applied to the initial compensation (first stage of brightness compensation) of each screen area of the entire target screen.
[0106] In this embodiment, through steps S101-S102 described above, the brightness of subpixels of the first screen is measured, and the brightness of each grayscale at different charging rates is statistically determined. Based on the ideal brightness and the actual brightness, the compensation value (OD value) for each grayscale at different charging rates is calculated in reverse, resulting in a LOD table (i.e., first brightness compensation information). This allows for offline acquisition of the first brightness compensation information, enabling the rapid retrieval of the corresponding brightness compensation value from the pre-obtained first brightness compensation information in practical applications, thus completing the first stage of brightness compensation for the target screen and improving the efficiency of screen brightness compensation.
[0107] 1.3 Specific implementation method of the second stage brightness compensation:
[0108] The second stage of brightness compensation corresponds to steps S103-S105 above. Specifically, it involves: in an online state, acquiring a first image (an image taken of the target screen after the first stage of brightness compensation) and a standard image (an image taken beforehand of a screen that has undergone manual brightness adjustment). Using the brightness of the first image region in the first image as a benchmark, and based on the standard brightness distribution information of the standard image, determining the compensation value (i.e., the second brightness compensation information) for each screen region of the target screen, thereby performing the second stage of brightness compensation on the target screen. Here, the first image region refers to the image region corresponding to the first screen region of the target screen, which can be the central region of the target screen. This embodiment of the application determines the compensation value for each screen region online in the second stage, thereby performing brightness compensation on the target screen again to address the potential problems of insufficient or excessive compensation in each screen region after the first stage of brightness compensation, further improving the screen brightness compensation effect.
[0109] In one possible implementation, step S104, determining second brightness compensation information based on the first image and the standard image, includes:
[0110] Step S1041: Adjust the first brightness compensation information according to multiple compensation intensities to obtain multiple adjusted first brightness compensation information.
[0111] Specifically, for the first screen area, a first brightness compensation value can be determined from the first brightness compensation information (this first brightness compensation value is used to perform the first stage of brightness compensation on the target screen in step S102). Then, the first brightness compensation value is adjusted according to multiple compensation intensities to obtain multiple adjusted first brightness compensation values. For example, the first brightness compensation value is determined to be 9 from the first brightness compensation information, and then the first brightness compensation information is adjusted according to multiple compensation intensities (which can be multiple ratios of 0.1, 0.5, 1, 5, 10), correspondingly obtaining multiple adjusted first brightness compensation values of 0.9, 4.5, 9, 45, and 90.
[0112] Step S1042: Acquire multiple second images of the target screen after brightness compensation using the multiple adjusted first brightness compensation information.
[0113] Specifically, the target screen before the first stage of brightness compensation is performed according to the multiple adjusted first brightness compensation information (i.e., the multiple adjusted first brightness compensation values obtained), and then multiple second images are captured on the compensated target screen.
[0114] Step S1043: Divide each second image into multiple image regions corresponding to different screen areas of the target screen, and calculate the average brightness of each image region.
[0115] Specifically, after capturing the second image, the second image is divided into multiple image regions. Then, the average brightness of each image region is calculated. This average brightness is obtained by averaging the brightness values of each pixel in the image region. For example, for the target screen, brightness compensation is applied at times 0.1, 0.5, 1, 5, and 10 times the first brightness compensation value, i.e., 0.9, 4.5, 9, 45, and 90, respectively, to capture the second image. Then, the average brightness of each image region in each second image is determined.
[0116] Step S1044: For each image region, establish the correspondence between compensation intensity and average brightness.
[0117] Specifically, for each image region, a curve showing the relationship between the compensation intensity and the average brightness is fitted. Referring to Figure 3, Figure 3 shows a schematic diagram of the relationship curve between the compensation intensity and the average brightness. As shown in Figure 3, the horizontal axis represents the compensation intensity, and the vertical axis represents the average brightness of the image region. Thus, by adjusting the intensity of the first brightness compensation information, the brightness of each image region under different compensation intensities can be obtained.
[0118] Step S1045: Determine the second brightness compensation information based on the correspondence and the standard image.
[0119] In this embodiment, the standard brightness distribution of each screen area can be known from the standard image, and then the ideal brightness required for each screen area can be determined. Based on the correspondence, the compensation intensity required to achieve the ideal brightness can be determined, thus determining the second brightness compensation information.
[0120] In one possible implementation, step S1045, determining the second brightness compensation information based on the correspondence and the standard image, includes:
[0121] Step S301: Determine the standard brightness distribution information of the target screen based on the standard image. Specifically, the standard brightness distribution information refers to the ratio between the brightness of each screen area after brightness compensation and the brightness of the first screen area.
[0122] In one possible implementation, the first brightness compensation information is determined based on the brightness of the pixel units in the central region of the first screen at a target charging rate and the brightness at various charging rates different from the target charging rate.
[0123] Step S301, determining the standard brightness distribution information of the target screen based on the standard image, includes:
[0124] Step S3011: Divide the standard image into multiple image regions corresponding to different screen areas of the target screen, and calculate the average brightness of each image region.
[0125] Step S3012: The ratio of the average brightness of the image area corresponding to the center area of the target screen to the average brightness of the image areas corresponding to other areas of the target screen is determined as the standard brightness distribution information.
[0126] In this embodiment, the first screen area can be the central area of the target screen. Based on the brightness distribution of the screen without fine lines (i.e., the average brightness of each image area of the standard image), the ratio of the brightness of the surrounding areas of the screen (the average brightness of the image areas corresponding to other areas of the target screen) to the brightness of the central area of the screen (the average brightness of the image area corresponding to the central area of the target screen) is calculated to obtain the brightness ratio distribution of the screen (i.e., standard brightness distribution information). For example, if the average brightness of image area A in the standard image is calculated to be 9, the average brightness of image area B is 8, the average brightness of image area C is 5, and the average brightness of the first image area located at the center of the image is 10, then the brightness ratio of image area A, image area B, image area C and the first image area can be calculated to be 0.9:0.8:0.5.
[0127] Step S302: Determine the average target brightness of different image regions in the first image based on the standard brightness distribution information and the first image.
[0128] In one possible implementation, step S302, determining the average target brightness of different image regions in the first image based on the standard brightness distribution information and the first image, includes:
[0129] Step S3021: For each image region in the first image, determine the ratio corresponding to that image region from the standard brightness distribution information.
[0130] Step S3022: For each image region in the first image, determine the target average brightness of the image region based on the ratio corresponding to the image region and the average brightness of the image region corresponding to the center region in the first image.
[0131] Specifically, for each image region, the corresponding brightness ratio is determined from the standard brightness distribution information. This ratio is then multiplied by the average brightness of the central region (i.e., the first image region) in the first image to obtain the target average brightness (i.e., ideal brightness) of the corresponding image region. For example, the average brightness of the central image region of the first image is 10. From the standard brightness distribution information, we know that the brightness ratio corresponding to image region B is 0.8. Therefore, the target average brightness of image region B is 8. In the second stage of brightness compensation, the brightness of the screen region corresponding to image region B needs to be compensated to 8.
[0132] Step S303: Based on the average target brightness of different image regions in the first image, query the corresponding relationship to determine the target compensation intensity of different image regions in the first image.
[0133] For example, for image region B, the target compensation intensity corresponding to the average target brightness 8 is determined to be 0.5 from the correspondence between compensation intensity and brightness (e.g., the relationship curve shown in Figure 3).
[0134] Step S304: Determine the second brightness compensation information based on the target compensation intensity of different image regions in the first image and the first brightness compensation information.
[0135] The second brightness compensation information includes compensation values corresponding to each screen region. For each image region, the compensation value for brightness compensation in the second stage can be obtained based on the target compensation intensity. For multiple screen regions of the target screen, such as M*N screen regions, regions with the same brightness compensation value in the second brightness compensation information can be merged to reduce the amount of parameters that need to be processed and stored for brightness compensation in the second stage.
[0136] In the first stage of this embodiment, first brightness compensation information is obtained for a first screen area (e.g., the central area) of the first screen. Based on this first brightness compensation information, a set of basic compensation parameters for the target screen are predicted, thereby performing first-stage brightness compensation on the target screen. However, considering the charging inconsistency between different screen areas, applying the first brightness compensation information determined based on the first screen area to other screen areas may result in insufficient or excessive compensation in other screen areas. Therefore, a second-stage brightness compensation is needed to address the above problems and compensate for the brightness differences between screen areas. In the second stage of this application embodiment, second brightness compensation information (brightness compensation values for different screen areas) is determined based on the first image and the standard image. Based on these compensation values, a second-stage fine-tuning of the target screen is performed to complete the brightness compensation of the target screen, thereby solving the problem of uneven screen brightness and the different fine lines between different screen areas, and improving the efficiency of screen brightness compensation. In summary, the embodiments of this application first obtain offline information (first brightness compensation information) to quickly perform a first-stage brightness compensation on the entire target screen, and then determine the compensation value (second brightness compensation information) for each screen area online to perform a second-stage brightness fine-tuning on each screen area of the target screen. This improves the screen brightness compensation efficiency while ensuring the brightness compensation effect of the screen.
[0137] A second aspect of this application also provides a screen brightness compensation device applied to the screen brightness compensation method described in the first aspect. Referring to FIG4, FIG4 shows a schematic diagram of the structure of a screen brightness compensation device. As shown in FIG4, the device includes:
[0138] The first brightness compensation information determination module is used to determine first brightness compensation information based on the brightness of the pixel unit of the first screen at a target charging rate and the brightness at multiple charging rates different from the target charging rate.
[0139] The first brightness compensation module is used to perform a first stage of brightness compensation on the target screen using the first brightness compensation information.
[0140] The image acquisition module is used to acquire a first image of the target screen after brightness compensation in the first stage, and to acquire a standard image corresponding to the target screen, wherein the standard image corresponding to the target screen is: an image of the target screen after brightness compensation.
[0141] The second brightness compensation information determination module is used to determine second brightness compensation information based on the first image and the standard image.
[0142] The second brightness compensation module is used to perform a second stage of brightness compensation on the target screen using the second brightness compensation information.
[0143] In one possible implementation, the target charging rate refers to a fully charged state, and the first brightness compensation information determination module includes:
[0144] The first brightness information determination submodule is used to sample the first brightness information of each color channel of the pixel unit of the first screen at multiple gray levels when the charging rate is in a fully charged state.
[0145] The second brightness information determination submodule is used to sample the second brightness information of each color channel of the pixel unit of the first screen at multiple gray levels when the charging rate is in a state of insufficient charging.
[0146] The first determining submodule is used to determine the first brightness compensation information based on the first brightness information and the second brightness information.
[0147] In one possible implementation, the first determining submodule includes:
[0148] The first brightness determination unit is used to determine, based on the first brightness information, the first brightness of the first color channel of the pixel unit of the first screen at the first grayscale when the charging rate is in a fully charged state.
[0149] The second brightness determination unit is used to determine, based on the second brightness information, the second brightness of the first color channel of the pixel unit of the first screen at the first grayscale when the charging rate is a first charging rate in a non-fully charged state.
[0150] The second grayscale determination unit is used to determine a second grayscale from the second brightness information based on the first brightness and the second brightness, wherein the second grayscale satisfies that the brightness of the first color channel of the pixel unit of the first screen under the second grayscale is the first brightness;
[0151] The compensation value determination unit is used to determine the difference between the first gray level and the second gray level as the compensation value of the first gray level under the first charging rate.
[0152] The first traversal unit is used to traverse each gray level and the various charging rates, and execute the above steps to obtain the brightness compensation information of the first color channel of the pixel unit of the first screen.
[0153] The second traversal unit is used to traverse each color channel, execute the above steps, and obtain the first brightness compensation information.
[0154] In one possible implementation, the second brightness compensation information determining module includes:
[0155] The information adjustment submodule is used to adjust the first brightness compensation information according to multiple compensation intensities to obtain multiple adjusted first brightness compensation information.
[0156] The second image acquisition submodule is used to acquire multiple second images of the target screen after brightness compensation using the multiple adjusted first brightness compensation information;
[0157] The brightness mean calculation submodule is used to divide each second image into multiple image regions corresponding to different screen areas of the target screen, and calculate the brightness mean of each image region.
[0158] The correspondence establishment submodule is used to establish the correspondence between compensation intensity and average brightness for each image region;
[0159] The information determination submodule is used to determine the second brightness compensation information based on the correspondence and the standard image.
[0160] In one possible implementation, the information determination submodule includes:
[0161] A standard brightness distribution information acquisition unit is used to determine the standard brightness distribution information of the target screen based on the standard image.
[0162] The target brightness average value determination unit is used to determine the target brightness average value of different image regions in the first image based on the standard brightness distribution information and the first image;
[0163] The target compensation intensity determination unit is used to query the correspondence based on the average target brightness of different image regions in the first image to determine the target compensation intensity of different image regions in the first image.
[0164] The second brightness compensation information determination unit is used to determine the second brightness compensation information based on the target compensation intensity of different image regions in the first image and the first brightness compensation information.
[0165] In one possible implementation, the first brightness compensation information is determined based on the brightness of the pixel units in the central region of the first screen at a target charging rate and the brightness at various charging rates different from the target charging rate.
[0166] The standard brightness distribution information acquisition unit includes:
[0167] The calculation subunit is used to divide the standard image into multiple image regions corresponding to different screen regions of the target screen, and calculate the average brightness of each image region.
[0168] The determination subunit is used to determine the ratio of the average brightness of the image area corresponding to the center area of the target screen to the average brightness of the image areas corresponding to other areas of the target screen as standard brightness distribution information;
[0169] The target brightness average determination unit includes:
[0170] The ratio determination subunit is used to determine the ratio corresponding to each image region in the first image from the standard brightness distribution information;
[0171] The target brightness average determination subunit is used to determine the target brightness average of each image region in the first image based on the ratio corresponding to that image region and the brightness average of the image region corresponding to the center region in the first image.
[0172] This application also provides an electronic device. Referring to FIG5, FIG5 is a schematic diagram of the structure of the electronic device proposed in this application. As shown in FIG5, the electronic device 100 includes: a memory 110 and a processor 120. The memory 110 and the processor 120 are connected via a bus communication. The memory 110 stores a computer program, which can run on the processor 120 to implement the steps of the screen brightness compensation method described in the first aspect of this application.
[0173] This application also provides a computer-readable storage medium storing a computer program / instructions thereon, which, when executed by a processor, implements the steps of the screen brightness compensation method described in the first aspect of this application.
[0174] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the screen brightness compensation method as described in the first aspect of this application.
[0175] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0176] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatus, electronic devices, and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal equipment to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal equipment, create means for implementing the functions specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.
[0177] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.
[0178] These computer program instructions may also be loaded onto a computer or other programmable data processing terminal equipment to cause a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable terminal equipment, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.
[0179] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.
[0180] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0181] The above provides a detailed description of a screen brightness compensation method, apparatus, and product provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A screen brightness compensation method, wherein, The method includes: First brightness compensation information is determined based on the brightness of the pixel units of the first screen at the target charging rate and the brightness at various charging rates different from the target charging rate. Using the first brightness compensation information, perform the first stage of brightness compensation on the target screen; Acquire a first image of the target screen after brightness compensation in the first stage, and acquire a standard image corresponding to the target screen, wherein the standard image corresponding to the target screen is an image of the target screen after brightness compensation. Based on the first image and the standard image, determine the second brightness compensation information; The target screen is then subjected to a second stage of brightness compensation using the second brightness compensation information.
2. The screen brightness compensation method according to claim 1, wherein, The target charging rate refers to a fully charged state. First brightness compensation information is determined based on the brightness of the pixel units of the first screen at the target charging rate and at various charging rates different from the target charging rate. This information includes: When the charging rate is in a fully charged state, sample the first brightness information of each color channel of the pixel unit of the first screen at multiple gray levels; In the case of multiple charging rates where the charging rate is not fully charged, the second brightness information of each color channel of the pixel unit of the first screen is sampled at multiple gray levels. Based on the first brightness information and the second brightness information, the first brightness compensation information is determined.
3. The screen brightness compensation method according to claim 2, wherein, The step of determining the first brightness compensation information based on the first brightness information and the second brightness information includes: Based on the first brightness information, determine the first brightness of the first color channel of the pixel unit of the first screen at the first grayscale when the charging rate is in a fully charged state. Based on the second brightness information, determine the second brightness of the first color channel of the pixel unit of the first screen at the first grayscale when the charging rate is a first charging rate that is not fully charged. Based on the first brightness and the second brightness, a second grayscale is determined from the second brightness information. The second grayscale satisfies the following: the brightness of the first color channel of the pixel unit of the first screen at the second grayscale is the first brightness. The difference between the first gray level and the second gray level is determined as the compensation value of the first gray level under the first charging rate. By iterating through each grayscale and the various charging rates, and performing the above steps, the brightness compensation information of the first color channel of the pixel unit of the first screen is obtained. By iterating through each color channel and performing the above steps, the first brightness compensation information is obtained.
4. The screen brightness compensation method according to claim 1, wherein, Based on the first image and the standard image, second brightness compensation information is determined, including: The first brightness compensation information is adjusted according to various compensation intensities to obtain various adjusted first brightness compensation information. Acquire multiple second images of the target screen after brightness compensation using the various adjusted first brightness compensation information; Each second image is divided into multiple image regions corresponding to different screen areas of the target screen, and the average brightness of each image region is calculated. For each image region, establish the correspondence between compensation intensity and average brightness. Based on the correspondence and the standard image, the second brightness compensation information is determined.
5. The screen brightness compensation method according to claim 4, wherein, Based on the correspondence and the standard image, the second brightness compensation information is determined, including: Based on the standard image, determine the standard brightness distribution information of the target screen; Based on the standard brightness distribution information and the first image, determine the average target brightness of different image regions in the first image; Based on the average target brightness of different image regions in the first image, the corresponding relationship is queried to determine the target compensation intensity of different image regions in the first image; Based on the target compensation intensity of different image regions in the first image and the first brightness compensation information, the second brightness compensation information is determined.
6. The screen brightness compensation method according to claim 5, wherein, The first brightness compensation information is determined based on the brightness of the pixel units in the central region of the first screen at the target charging rate and the brightness at various charging rates different from the target charging rate; Based on the standard image, determine the standard brightness distribution information of the target screen, including: The standard image is divided into multiple image regions corresponding to different screen areas of the target screen, and the average brightness of each image region is calculated. The ratio of the average brightness of the image region corresponding to the center region of the target screen to the average brightness of the image regions corresponding to other regions of the target screen is determined as the standard brightness distribution information. Based on the standard brightness distribution information and the first image, the target brightness mean value of different image regions in the first image is determined, including: For each image region in the first image, the ratio corresponding to that image region is determined from the standard brightness distribution information; For each image region in the first image, the target average brightness of the image region is determined based on the ratio corresponding to that image region and the average brightness of the image region corresponding to the center region in the first image.
7. A screen brightness compensation device, wherein, The device includes: The first brightness compensation information determination module is used to determine first brightness compensation information based on the brightness of the pixel unit of the first screen at a target charging rate and the brightness at multiple charging rates different from the target charging rate. The first brightness compensation module is used to perform a first stage of brightness compensation on the target screen using the first brightness compensation information. The image acquisition module is used to acquire a first image of the target screen after brightness compensation in the first stage, and to acquire a standard image corresponding to the target screen, wherein the standard image corresponding to the target screen is: an image of the target screen after brightness compensation. The second brightness compensation information determination module is used to determine second brightness compensation information based on the first image and the standard image. The second brightness compensation module is used to perform a second stage of brightness compensation on the target screen using the second brightness compensation information.
8. The screen brightness compensation device according to claim 7, wherein, The second brightness compensation information determination module includes: The information adjustment submodule is used to adjust the first brightness compensation information according to multiple compensation intensities to obtain multiple adjusted first brightness compensation information. The second image acquisition submodule is used to acquire multiple second images of the target screen after brightness compensation using the multiple adjusted first brightness compensation information; The brightness mean calculation submodule is used to divide each second image into multiple image regions corresponding to different screen areas of the target screen, and calculate the brightness mean of each image region. The correspondence establishment submodule is used to establish the correspondence between compensation intensity and average brightness for each image region; The information determination submodule is used to determine the second brightness compensation information based on the correspondence and the standard image.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein... When the processor executes the computer program, it implements the steps of the screen brightness compensation method as described in any one of claims 1-6.
10. A computer-readable storage medium, wherein, It stores a computer program that, when executed by a processor, implements the steps of the screen brightness compensation method as described in any one of claims 1-6.