Brightness compensation method, brightness compensation device and storage medium
By displaying test grayscale images in the under-display camera display area in a time-division manner and calculating the brightness difference ratio for brightness compensation, the problem of inconsistent brightness between the under-display camera display area and the non-under-display camera display area is solved, achieving simplicity and accuracy in brightness compensation and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2021-07-29
- Publication Date
- 2026-06-05
AI Technical Summary
The brightness decay of the under-display camera display area and the non-under-display camera display area is not synchronized, resulting in different display brightness between the under-display camera display area and the non-under-display camera display area, which affects the user experience.
By displaying multiple test grayscale images in a time-division manner, the baseline display brightness and real-time display brightness of the under-display camera display area are determined, the brightness difference ratio is calculated, and targeted brightness compensation is performed based on the difference ratio. Compensation is also performed using the brightness conversion curve and backlight display brightness.
It achieves simplicity and specificity in brightness compensation for the under-display camera display area, ensuring the accuracy and consistency of screen brightness compensation results and improving user experience.
Smart Images

Figure CN115691418B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of display driver technology, and in particular to a brightness compensation method, a brightness compensation device, and a storage medium. Background Technology
[0002] Currently, many mobile phones use Active-Matrix Organic Light-Emitting Diode (AMOLED) screens and under-display front-facing cameras. To increase the amount of light entering the camera area, the transmittance of this portion needs to be increased.
[0003] In related technologies, the under-display camera display area and the non-under-display camera display area are designed differently. For example, the number of pixels per inch (PPI) on the diagonal of the under-display camera location may be changed, or the display material may be altered, resulting in different degradation curves for the two display areas. Therefore, initially, the under-display camera display area and the non-under-display camera display area can maintain consistent brightness. However, after a period of use, due to the asynchronous brightness decay between the under-display camera location and other areas of the screen, the display brightness of the under-display camera display area differs from that of the non-under-display camera display area. Summary of the Invention
[0004] To overcome the problems existing in related technologies, this disclosure provides a brightness compensation method, a brightness compensation device, and a storage medium.
[0005] According to a first aspect of the present disclosure, a brightness compensation method is provided, applied to a terminal. The brightness compensation method includes: in response to determining that brightness compensation should be performed on the display area of an under-display camera of the terminal, determining a first display brightness and a second display brightness. The first display brightness is a reference display brightness of the display area of the under-display camera, and the second display brightness is a real-time display brightness of the display area of the under-display camera. Brightness compensation is performed on the display area of the under-display camera based on the first display brightness and the second display brightness.
[0006] In one embodiment, determining the first display brightness and the second display brightness includes: displaying multiple test grayscale images in a time-division manner in the under-display camera display area. Each test grayscale image corresponds to attribute parameters, including the backlight display brightness of the terminal when the test grayscale image was captured, the screen display grayscale value, and a reference grayscale value. For each of the multiple test grayscale images, a reference display brightness and a real-time display brightness are determined based on the attribute parameters of the test grayscale image, resulting in multiple display brightness pairs. Each display brightness pair includes a reference display brightness and a real-time display brightness determined based on the attribute parameters of the same test grayscale image. The reference display brightness of the display brightness pair with the largest brightness difference ratio among the multiple display brightness pairs is taken as the first display brightness, and the real-time display brightness of the display brightness pair with the largest brightness difference ratio among the multiple display brightness pairs is taken as the second display brightness. The brightness difference ratio is the ratio between the difference between the reference display brightness and the real-time display brightness and the reference display brightness.
[0007] In another embodiment, determining the reference display brightness based on the attribute parameters of the test grayscale image includes: obtaining the display brightness corresponding to the reference grayscale value based on the reference grayscale value in the attribute information of the test grayscale image, the screen display grayscale value, and the brightness conversion curve, and determining the display brightness corresponding to the reference grayscale value as the reference display brightness.
[0008] In another embodiment, determining the second display brightness includes: based on the backlight display brightness and screen display grayscale value in the test grayscale image attribute information, controlling the under-display camera to capture the displayed image in the under-display camera display area to obtain a captured image. Based on the captured image's corresponding captured grayscale value, the screen display grayscale value, and the brightness conversion curve, the display brightness corresponding to the captured grayscale value is obtained, and the display brightness corresponding to the captured grayscale value is determined as the second display brightness.
[0009] In another embodiment, the step of compensating for brightness in the under-display camera display area based on the first display brightness and the second display brightness includes: if the ratio of the brightness difference between the first display brightness and the second display brightness is less than or equal to a first threshold, then the display brightness of the under-display camera display area remains unchanged. If the ratio of the brightness difference between the first display brightness and the second display brightness is greater than the first threshold, then the display brightness of the under-display camera display area is compensated based on the ratio of the brightness difference between the first display brightness and the second display brightness, and the display brightness of the non-under-display camera display area of the terminal.
[0010] In another embodiment, the step of compensating the display brightness of the under-display camera display area based on the brightness difference ratio between the first display brightness and the second display brightness, and the display brightness of the non-under-display camera display area of the terminal, includes: determining a first compensation ratio for the backlight display brightness of the under-display camera display area of the terminal based on the brightness difference ratio between the first display brightness and the second display brightness, or determining a second compensation ratio for the backlight display brightness of the non-under-display camera display area of the terminal;
[0011] If a first compensation ratio for the backlight display brightness of the under-display camera display area of the terminal is determined, then based on the first compensation ratio and the display brightness of the non-under-display camera display area of the terminal, the display brightness of the under-display camera display area is compensated by compensating for the backlight display brightness of the under-display camera display area.
[0012] If a second compensation ratio for the backlight display brightness of the non-under-display camera display area of the terminal is determined, then based on the second compensation ratio and the display brightness of the non-under-display camera display area of the terminal, the display brightness of the under-display camera display area is compensated by compensating for the backlight display brightness of the non-under-display camera display area.
[0013] According to a second aspect of the present disclosure, a brightness compensation device is provided, applied to a terminal. The brightness compensation device includes: a determining unit, configured to determine a first display brightness and a second display brightness in response to determining to perform brightness compensation on the display area of an under-display camera of the terminal. The first display brightness is a reference display brightness of the display area of the under-display camera, and the second display brightness is a real-time display brightness of the display area of the under-display camera. A compensation unit is configured to perform brightness compensation on the display area of the under-display camera based on the first display brightness and the second display brightness.
[0014] In one embodiment, the determining unit determines the first display brightness and the second display brightness in the following manner: Multiple test grayscale images are displayed in a time-division multiplexing manner in the under-display camera display area. Each test grayscale image corresponds to attribute parameters, including the backlight display brightness of the terminal when the test grayscale image is captured, the screen display grayscale value, and the reference grayscale value. For each of the multiple test grayscale images, a reference display brightness and a real-time display brightness are determined based on the attribute parameters of the test grayscale image, resulting in multiple display brightness pairs. Each display brightness pair includes a reference display brightness and a real-time display brightness determined based on the attribute parameters of the same test grayscale image. The reference display brightness of the display brightness pair with the largest brightness difference ratio among the multiple display brightness pairs is taken as the first display brightness, and the real-time display brightness of the display brightness pair with the largest brightness difference ratio among the multiple display brightness pairs is taken as the second display brightness. The brightness difference ratio is the ratio between the difference between the reference display brightness and the real-time display brightness and the reference display brightness.
[0015] In another embodiment, the determining unit determines the reference display brightness based on the attribute parameters of the test grayscale image in the following manner: based on the reference grayscale value in the attribute information of the test grayscale image, the screen display grayscale value, and the brightness conversion curve, the display brightness corresponding to the reference grayscale value is obtained, and the display brightness corresponding to the reference grayscale value is determined as the reference display brightness.
[0016] In another embodiment, the determining unit determines the second display brightness in the following manner: based on the backlight display brightness and screen display grayscale value in the test grayscale image attribute information, it controls the under-display camera to capture the displayed image in the under-display camera display area to obtain a captured image. Based on the captured grayscale value corresponding to the captured image, the screen display grayscale value, and the brightness conversion curve, it obtains the display brightness corresponding to the captured grayscale value, and determines the display brightness corresponding to the captured grayscale value as the second display brightness.
[0017] In another embodiment, the compensation unit performs brightness compensation on the under-display camera display area based on the first display brightness and the second display brightness in the following manner: if the ratio of the brightness difference between the first display brightness and the second display brightness is less than or equal to a first threshold, the display brightness of the under-display camera display area remains unchanged. If the ratio of the brightness difference between the first display brightness and the second display brightness is greater than the first threshold, the display brightness of the under-display camera display area is compensated based on the ratio of the brightness difference between the first display brightness and the second display brightness, and the display brightness of the non-under-display camera display area of the terminal.
[0018] In another embodiment, the compensation unit compensates for the display brightness of the under-display camera display area based on the brightness difference ratio between the first display brightness and the second display brightness, and the display brightness of the non-under-display camera display area of the terminal, in the following manner: Based on the brightness difference ratio between the first display brightness and the second display brightness, a first compensation ratio for the backlight display brightness of the under-display camera display area of the terminal is determined, or a second compensation ratio for the backlight display brightness of the non-under-display camera display area of the terminal is determined. If the first compensation ratio for the backlight display brightness of the under-display camera display area of the terminal is determined, then based on the first compensation ratio and the display brightness of the non-under-display camera display area of the terminal, the display brightness of the under-display camera display area is compensated by compensating for the backlight display brightness of the under-display camera display area. If the second compensation ratio for the backlight display brightness of the non-under-display camera display area of the terminal is determined, then based on the second compensation ratio and the display brightness of the non-under-display camera display area of the terminal, the display brightness of the under-display camera display area is compensated by compensating for the backlight display brightness of the non-under-display camera display area.
[0019] According to a third aspect of the present disclosure, a brightness compensation device is provided, comprising: a memory for storing instructions; and a processor for calling the instructions stored in the memory to execute any of the brightness compensation methods described above.
[0020] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein instructions are stored, which, when executed by a processor, perform any of the brightness compensation methods described above.
[0021] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: the brightness compensation method provided by this disclosure can compensate for the brightness of the under-display camera display area based on the difference between the real-time display brightness of the camera display area and the reference display brightness, thereby making the screen brightness compensation method simpler, more convenient, and more targeted.
[0022] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0023] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0024] Figure 1 This is a schematic diagram of a terminal display area according to an exemplary embodiment.
[0025] Figure 2 This is a flowchart illustrating a brightness compensation method according to an exemplary embodiment.
[0026] Figure 3 This is a flowchart illustrating a brightness determination method according to an exemplary embodiment.
[0027] Figure 4 This is a flowchart illustrating another brightness determination method according to an exemplary embodiment.
[0028] Figure 5 This is an illustration of the brightness effect of a display screen according to an exemplary embodiment.
[0029] Figure 6 This is a flowchart illustrating another brightness compensation method according to an exemplary embodiment.
[0030] Figure 7 This is a block diagram illustrating a brightness compensation device according to an exemplary embodiment.
[0031] Figure 8 This is a block diagram illustrating another brightness compensation device according to an exemplary embodiment.
[0032] Figure 9 This is a block diagram illustrating yet another brightness compensation device according to an exemplary embodiment. Detailed Implementation
[0033] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0034] The brightness compensation method provided in this disclosure can be applied to any terminal with an under-display camera display area. The distribution of the under-display camera display area 1 and the non-under-display camera display area 2 within the terminal display area can be as follows: Figure 1 As shown. Figure 1This is a schematic diagram illustrating a terminal display area according to an exemplary embodiment. In one example, the type of terminal may include a mobile terminal, such as a mobile phone, tablet, smart TV, smart speaker with screen, smartwatch with screen, iPod, etc. In another example, the structure of the terminal may include a dual-screen terminal, a foldable screen terminal, a full-screen terminal, etc. The display brightness of the under-display camera display area of the terminal will decrease with usage time and light intensity. The brightness compensation method provided in this disclosure is applicable to usage scenarios where, after a period of use, the brightness decay between the under-display camera display area and the non-under-display camera display area of the terminal is inconsistent, resulting in different display brightness of pixels in the two display areas.
[0035] In related technologies, when performing brightness compensation for the under-display camera display area in the aforementioned usage scenarios, the compensation is performed in the following way: The display information and operating time of the under-display camera display area are statistically analyzed by the terminal processing or by the integrated circuit (IC) controlling the display area. When the screen is off, the display information and operating time data are transmitted to the terminal's application processor (AP) for recording. Therefore, when pixel brightness compensation is needed, the statistical data is used to determine the pixels requiring compensation through an aging model. However, when using this method, the completeness of the statistical data must be ensured. If some statistical data is missing, the accuracy of the data will be affected, thus affecting the compensation result.
[0036] In view of this, this disclosure provides a brightness compensation method that can compensate for the brightness of the under-display camera display area based on the difference between the real-time display brightness and the reference display brightness of the under-display camera display area. This makes the screen brightness compensation method more direct and simpler, and can provide targeted compensation for the real-time display brightness of the under-display camera display area, thereby making the compensation result more accurate.
[0037] Figure 2 This is a flowchart illustrating a brightness compensation method according to an exemplary embodiment. Figure 2 As shown, the brightness compensation method is used in the terminal and includes the following steps S11 to S12.
[0038] In step S11, in response to determining to perform brightness compensation on the under-display camera display area of the terminal, a first display brightness and a second display brightness are determined.
[0039] In this embodiment, in response to the requirement to perform brightness compensation on the under-display camera display area of the terminal, a first display brightness and a second display brightness of the under-display camera display area are determined. The first display brightness is the reference display brightness of the under-display camera display area, and the second display brightness is the real-time display brightness of the under-display camera display area. The reference display brightness can be understood as a reference brightness for compensating the real-time display brightness. In one example, since the attenuation of the display brightness of the under-display camera display area is related to the working time and the displayed content, to improve the reliability of the reference display brightness, the first display brightness of the under-display camera display area can be determined at the factory, thereby making the obtained reference display brightness more accurate and closer to the initial display brightness. The second display brightness can be understood as the display brightness at which brightness compensation needs to be determined at any time during use of the under-display camera display area.
[0040] In one example, the need to determine the brightness compensation requirement for the under-display camera area of the terminal can be user-initiated. In another example, such as Figure 1 As shown, the requirement to perform brightness compensation on the display area of the under-display camera of the terminal can be determined by the terminal based on self-detection, which determines that the display area of the under-display camera needs brightness compensation, and then sends a request to the user, who then initiates the process after confirming the request.
[0041] In step S12, brightness compensation is performed on the under-display camera display area based on the first display brightness and the second display brightness.
[0042] Through the above embodiments, based on the comparison between the first display brightness and the second display brightness, the difference between the current display brightness of the under-display camera display area and the first display brightness can be determined, thereby determining the brightness attenuation of the under-display camera display area. Thus, when performing brightness compensation on the under-display camera display area, targeted compensation can be performed, making the display brightness compensation method for the under-display camera display area simpler and more direct.
[0043] The following embodiments will further illustrate the process of determining the first display brightness and the second display brightness.
[0044] Figure 3 This is a flowchart illustrating a brightness determination method according to an exemplary embodiment. Figure 3 As shown, the process of determining the first display brightness and the second display brightness includes the following steps.
[0045] In step S21, multiple test grayscale images are displayed in the under-display camera display area in a time-division manner.
[0046] In this embodiment, since the brightness decay of the display pixels is strongly correlated with the displayed content, the longer the display is used, the higher the grayscale value, leading to a faster brightness decay. However, due to different usage habits, the degree of brightness decay varies. Therefore, to provide targeted compensation for the under-display camera display area and determine the cause of brightness decay, multiple test grayscale images are displayed sequentially in a time-sharing manner. Different test grayscale images correspond to different attribute parameters. These parameters include the backlight brightness of the terminal, the screen grayscale value, and the reference grayscale value when the test grayscale images are captured. It can be understood that different test grayscale images are images captured by the camera under different backlight brightness and screen grayscale values, resulting in different reference grayscale values for each test grayscale image. In one example, the backlight brightness is related to the size of the brightness value register (DBV) controlling the under-display camera display area, and the register size is linearly related to the screen brightness. Therefore, by changing the value in the register, the backlight brightness can be changed. The grayscale value displayed on the screen is the grayscale value used to control the content displayed on the terminal screen.
[0047] In one implementation scenario, to maximize the reflection of brightness changes in the under-display camera display area, multiple test grayscale images can be obtained by capturing images of the under-display camera display area under the following conditions: the register value is set to the maximum value (2047) and the screen display grayscale value is set to the maximum value (255); the register value is set to the maximum value (2047) and the screen display grayscale value is set to the intermediate value (128); and the register value is set to the intermediate value (1024) and the screen display grayscale value is set to the maximum value (255). Taking a 6x6 pixel block as an example, the correspondence between the register value, screen display grayscale value, and reference grayscale value of each test grayscale image is shown in Table 1. The reference grayscale value is represented using RGB.
[0048]
[0049] Table 1
[0050] As mentioned earlier, the size of the register has a linear relationship with the screen brightness. Therefore, the backlight brightness of the terminal can be determined by the register value. When storing the attribute parameters of the test grayscale image, the backlight brightness, the screen display grayscale value, and the reference grayscale value obtained by taking a picture are stored. In one example, the screen display grayscale value can be obtained by taking a screenshot.
[0051] In step S22, for each of the multiple test grayscale images, the baseline display brightness and real-time display brightness are determined based on the attribute parameters of the test grayscale image, and multiple display brightness pairs are obtained.
[0052] In this embodiment, to clarify the cause of brightness attenuation in the under-display camera display area, the backlight brightness, screen display grayscale value, and reference grayscale value of each test grayscale image are determined based on the attribute information of each test grayscale image. The reference grayscale value determines the reference display brightness of the under-display camera display area when capturing the current test grayscale image. The backlight brightness and screen display grayscale value determine the value of the register controlling the backlight brightness of the under-display camera display area and the screen display grayscale value when capturing the current test grayscale image. Therefore, when capturing a real-time image, the same backlight brightness and screen display grayscale value as the current test grayscale image can be used, resulting in a real-time grayscale value for the captured image. This makes the real-time display brightness determined based on the real-time grayscale value comparable to the reference display brightness of the current test grayscale image, thus obtaining a display brightness pair. Each display brightness pair includes a reference display brightness and a real-time display brightness determined based on the attribute parameters of the same test grayscale image. With the same backlight brightness and screen grayscale value, by comparing the brightness levels, it is possible to reflect the changes in screen brightness as it decreases with use, so as to more quickly determine the differences in screen brightness.
[0053] In step S23, the reference display brightness of the display brightness pair with the largest brightness difference ratio among the multiple display brightness pairs is taken as the first display brightness, and the real-time display brightness of the display brightness pair with the largest brightness difference ratio among the multiple display brightness pairs is taken as the second display brightness.
[0054] In this embodiment, because the attribute parameters of each test grayscale image are different, the brightness difference ratio between each reference display brightness and its corresponding real-time display brightness is different in different display brightness pairs. Therefore, the factors affecting the brightness attenuation of the under-display camera display area can be clearly identified through their respective brightness difference ratios. The brightness difference ratio is the ratio of the difference between the reference display brightness and the real-time display brightness to the reference display brightness. For example, if the reference display brightness is 500 nits and the real-time display brightness is 483 nits, then the brightness difference ratio is (500-483) / 500 = 0.034 = 3.4%. A larger brightness difference ratio indicates a greater impact of the backlight brightness and screen grayscale values used by the under-display camera display area when acquiring the display brightness pair, leading to a greater impact on the display brightness of the under-display camera display area and consequently, a greater impact on the brightness attenuation of the display brightness of the under-display camera display area. Therefore, when determining the display brightness pairs that require brightness compensation, the display brightness pair with the largest brightness difference ratio is selected as the pair requiring compensation. The reference display brightness from the pair with the largest brightness difference ratio among multiple display brightness pairs is used as the first display brightness, and the real-time display brightness from the pair with the largest brightness difference ratio among multiple display brightness pairs is used as the second display brightness. For example, if the brightness difference ratios corresponding to the display brightness pairs obtained based on different test grayscale images are 2.6%, 1.8%, and 2.2%, then the display brightness pair corresponding to 2.6% is selected.
[0055] In one embodiment, a reference display brightness can be determined based on the attribute parameters of a test grayscale image using a brightness conversion curve. That is, based on the reference grayscale value in the attribute information of the test grayscale image, the screen display grayscale value, and the brightness conversion curve, the display brightness corresponding to the reference grayscale value is obtained, and this display brightness is determined as the reference display brightness. In one example, the photoelectric conversion curve can be a gamma curve. A gamma curve is a special tone curve; when the gamma value equals 1, the curve is a straight line at 45° to the coordinate axis, indicating that the input and output densities are the same. A gamma value higher than 1 will cause the output to darken, and a gamma value lower than 1 will cause the output to brighten. Each pixel in a digital image has a certain brightness level, ranging from black (0) to white (1). These pixel values are the information input to the computer monitor. The monitor can only output these values in a non-linear manner, i.e., output = input / gamma. Generally, when performing electro-optical conversion on a display screen, the gamma (γ) value is taken as 2.2. The photoelectric conversion curve is the inverse operation of the electro-optical conversion curve. Therefore, when determining the reference display brightness based on the reference grayscale value obtained through the camera, γ is taken as (1 / 2.2). By substituting the reference grayscale value and the screen display grayscale value into the brightness conversion curve, the display brightness corresponding to the reference grayscale value can be determined. Then, based on the transmittance of the under-display camera display area, the reference display brightness is determined. For example, by substituting the reference grayscale value and the screen display grayscale value into the brightness conversion curve, the display brightness corresponding to the obtained reference grayscale value is 150 nits. Based on the transmittance of the under-display camera display area of 0.3, the current screen display brightness is 150 / 0.3 = 500 nits.
[0056] In another embodiment, the process of determining the second display brightness can be as follows: Figure 4 As shown. Figure 4 This is a flowchart illustrating another brightness determination method according to an exemplary embodiment.
[0057] In step S31, based on the backlight brightness and screen display grayscale value in the test grayscale image attribute information, the under-display camera is controlled to capture the image displayed in the under-display camera display area to obtain the captured image;
[0058] In step S32, based on the captured grayscale value, the screen display grayscale value, and the brightness conversion curve, the display brightness corresponding to the captured grayscale value is obtained, and the display brightness corresponding to the captured grayscale value is determined as the second display brightness.
[0059] In one implementation scenario, taking a backlight brightness of 500 nits and a base grayscale value of 250 as an example, since the transmittance above the under-display camera display area is 30%, the screen brightness received by the under-display camera is 500 * 0.3 = 150 nits, corresponding to the base grayscale value of 250. Using the photoelectric conversion curve formula: (Lv / Lvmax)^(1 / 2.2) * 255 = Gray, we know that the maximum brightness received by the under-display camera is Lvmax = 156.7 nits. When the captured grayscale value is 246, according to the above formula, (Lv' / 156.7)^(1 / 2.2) * 255 = 246, we know that at grayscale 246, the screen display grayscale value (Lv') is 144.8 nits. Furthermore, considering the superimposed 30% transmittance, the display brightness corresponding to the captured grayscale value is 144.8 / 0.3 = 483 nits. That is, the brightness of the second display is 483 nits.
[0060] In one embodiment, determining whether to perform brightness compensation on the under-display camera display area can be done by comparing the ratio of the brightness difference between the first display brightness and the second display brightness with a first threshold. The first threshold can be understood as the maximum threshold at which the human eye can observe a change in brightness. Under normal ambient light, it is statistically estimated that the human eye can perceive a brightness difference of 2%. That is, with 100 nits of ambient light, a brightness difference of 2 nits is perceptible to the human eye. In other words, when the register value is 2047, corresponding to a backlight display brightness of 500 nits, and the screen display grayscale value is 255 grayscale levels, when the brightness of the under-display camera display area drops to 490 nits, the human eye can see a difference of (500 * (1-2%)). Therefore, by comparing the ratio of the brightness difference between the first display brightness and the second display brightness with the first threshold, it can be determined whether the current brightness change can be perceived by the human eye, and further, whether compensation is needed.
[0061] If the ratio of the brightness difference between the first and second display brightness is less than or equal to the first threshold, the change in brightness difference is not significant and will not be perceptible to the human eye. Therefore, no compensation is needed, and the display brightness of the under-display camera area can remain unchanged. If the ratio of the brightness difference between the first and second display brightness is greater than the first threshold, the change in brightness difference can be perceptible to the human eye, and brightness compensation is required to improve the user experience. Therefore, the display brightness of the under-display camera area can be compensated based on the ratio of the brightness difference between the first and second display brightness, as well as the display brightness of the non-under-display camera area of the terminal.
[0062] In one implementation scenario, with a register value of 2047 corresponding to a backlight brightness of 500 nits and a screen grayscale value of 255, the reference grayscale value is 250, and the reference display brightness is 500 nits. With a register value of 2047 corresponding to a backlight brightness of 500 nits and a screen grayscale value of 255, the obtained shooting grayscale value is 246, corresponding to a real-time display brightness of 483 nits. The brightness difference ratio between the first and second display brightness is (500-483) / 500 > the first threshold (3%). Therefore, based on the brightness difference ratio between the first and second display brightness, and the display brightness of the non-under-display camera display area, compensation is needed for the display brightness of the under-display camera display area.
[0063] In one example, the maximum threshold at which the human eye perceives a change in brightness differs depending on the backlight brightness and the screen grayscale value. Therefore, the first threshold can be specifically set based on the backlight brightness and the screen grayscale value. For example: the first threshold might be set to 3% when the register value is 2047 and the screen grayscale value is 255. The first threshold might be set to 2% when the register value is 2047 and the screen grayscale value is 128. The first threshold might be set to 2% when the register value is 1024 and the screen grayscale value is 255.
[0064] In another example, when acquiring the test grayscale image and the captured image, the terminal can be placed in a completely dark environment, ensuring the under-display camera is not obstructed by any obstacles. For example, it could be placed inside a black box of a certain height or in a completely dark space. This allows for more accurate acquisition of the first and second display brightness levels, making it easier to avoid interference from external ambient light and thus resulting in more accurate subsequent brightness compensation. Furthermore, the same shooting parameters are used when capturing the image. For example, selecting daylight white balance, a shutter speed of 1 / 60, and ISO 300 to acquire the test grayscale image and the captured image.
[0065] In one embodiment, compensation for the display brightness of the under-display camera area can be performed using an IC. Based on the brightness difference ratio between a first display brightness and a second display brightness, a first compensation ratio for the backlight display brightness of the under-display camera area can be determined. That is, the first compensation ratio for brightness compensation of the under-display camera area is clearly defined. Then, based on the linear relationship between brightness and register values, by compensating for the backlight display brightness of the under-display camera area, the display brightness of the under-display camera area can be compensated, making the compensated display brightness of the under-display camera area consistent with the display brightness of the non-under-display camera area. For example, by compensating for the backlight display brightness of the under-display camera area, the display brightness of the under-display camera area can be increased, thereby making the display brightness of the non-under-display camera area consistent with the display brightness of the under-display camera area.
[0066] Alternatively, based on the brightness difference ratio between the first and second display brightness, a second compensation ratio for the backlight brightness of the non-under-display camera display area can be determined. That is, the second compensation ratio for brightness compensation in the non-under-display camera display area is clearly defined. Then, based on the linear relationship between brightness and register values, by compensating for the backlight brightness of the non-under-display camera display area, the display brightness of the non-under-display camera display area can be compensated, making the compensated display brightness of the non-under-display camera display area consistent with that of the under-display camera display area. For example, by compensating for the backlight brightness of the non-under-display camera display area, the display brightness of the under-display camera display area can be reduced, thereby making the display brightness of the non-under-display camera display area consistent with that of the under-display camera display area.
[0067] In another embodiment, when compensating for the display brightness of the under-display camera area, compensation can be performed via an access point (AP). This can be achieved by adding a mask layer to reduce the display brightness of the non-under-display camera area, ensuring that the display brightness of the non-under-display camera area remains consistent with that of the under-display camera area, thereby guaranteeing that the overall display brightness of the terminal display area remains consistent.
[0068] In one implementation scenario, it can be like Figure 5 As shown. Figure 5This is an illustration of the display brightness effect of a display screen according to an exemplary embodiment. If the display brightness of the under-display camera display area 1 is determined to be 180 nits, and the display brightness of the non-under-display camera display area 2 is 200 nits, then a mask layer 3 is used to cover the non-under-display camera display area, reducing its display brightness and thus ensuring that the display brightness of the non-under-display camera display area is consistent with that of the under-display camera display area. In one example, if the register value is 2047 and the screen display grayscale value is 255, brightness compensation by adding a mask layer can be performed based on a first threshold determined in advance when the register value is 2047 and the screen display grayscale value is 255. This allows the transmittance of the covered non-under-display camera display area to be determined, ensuring that the display brightness of the compensated terminal display area remains consistent overall and avoiding excessive differences in display brightness between the two display areas, which could affect the user experience. For example, if the first threshold is 3%, the transmittance of the mask layer is 97%. If the first threshold is 2%, the transmittance of the mask layer is 98%.
[0069] In one implementation scenario, the process of brightness compensation for the display area of the under-display camera on the terminal can be as follows: Figure 6 As shown. Figure 6 This is a flowchart illustrating another brightness compensation method according to an exemplary embodiment.
[0070] In response to the user's detection command, the ambient light sensor in the terminal detects the surrounding environment and determines that the terminal is in a completely dark environment. Upon determining that the terminal is in a completely dark environment, the system responds to the requirement to perform brightness compensation on the under-display camera display area. Multiple test grayscale images are displayed in a time-division manner on the under-display camera display area. For each test grayscale image, a corresponding real-time display image is captured by the under-display camera. Based on the baseline display brightness of each test grayscale image and the brightness difference ratio between the real-time display brightness of the corresponding real-time display image, a first display brightness and a second display brightness are determined. It is then determined whether the brightness difference ratio between the first and second display brightness is greater than a first threshold. If the brightness difference ratio is greater than the first threshold, brightness compensation is performed on the under-display camera display area, and the user is notified that compensation is complete. If the brightness difference ratio is less than or equal to the first threshold, the user is notified that brightness compensation for the under-display camera display area is unnecessary.
[0071] Based on the same concept, this disclosure also provides a brightness compensation device for a terminal.
[0072] It is understood that the brightness compensation device provided in this disclosure includes hardware structures and / or software modules corresponding to each function in order to achieve the above-mentioned functions. In conjunction with the units and algorithm steps of the various examples disclosed in this disclosure, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of this disclosure.
[0073] Figure 7 This is a block diagram illustrating a brightness compensation device according to an exemplary embodiment. (Refer to...) Figure 7 The brightness compensation device 100 includes a determining unit 101 and a compensation unit 102.
[0074] The determining unit 101 is configured to determine a first display brightness and a second display brightness in response to determining to perform brightness compensation on the under-display camera display area of the terminal. The first display brightness is a reference display brightness of the under-display camera display area, and the second display brightness is a real-time display brightness of the under-display camera display area.
[0075] The compensation unit 102 is used to perform brightness compensation on the display area of the under-display camera based on the first display brightness and the second display brightness.
[0076] In one embodiment, the determining unit 101 determines the first display brightness and the second display brightness in the following manner: Multiple test grayscale images are displayed in a time-division multiplexing manner in the under-display camera display area. Each test grayscale image corresponds to attribute parameters, including the backlight display brightness of the terminal when the test grayscale image is captured, the screen display grayscale value, and the reference grayscale value. For each test grayscale image, a reference display brightness and a real-time display brightness are determined based on the attribute parameters of the test grayscale image, resulting in multiple display brightness pairs. Each display brightness pair includes a reference display brightness and a real-time display brightness determined based on the attribute parameters of the same test grayscale image. The reference display brightness of the display brightness pair with the largest brightness difference ratio among the multiple display brightness pairs is taken as the first display brightness, and the real-time display brightness of the display brightness pair with the largest brightness difference ratio among the multiple display brightness pairs is taken as the second display brightness. The brightness difference ratio is the ratio between the difference between the reference display brightness and the real-time display brightness and the reference display brightness.
[0077] In another embodiment, the determining unit 101 determines the reference display brightness based on the attribute parameters of the test grayscale image in the following manner: based on the reference grayscale value, the screen display grayscale value, and the brightness conversion curve in the attribute information of the test grayscale image, the display brightness corresponding to the reference grayscale value is obtained, and the display brightness corresponding to the reference grayscale value is determined as the reference display brightness.
[0078] In another embodiment, the determining unit 101 determines the second display brightness in the following manner: based on the backlight display brightness and screen display grayscale value in the test grayscale image attribute information, it controls the under-display camera to capture the displayed image in the under-display camera display area to obtain a captured image. Based on the captured grayscale value, the screen display grayscale value, and the brightness conversion curve corresponding to the captured image, the display brightness corresponding to the captured grayscale value is obtained, and the display brightness corresponding to the captured grayscale value is determined as the second display brightness.
[0079] In another embodiment, the compensation unit 102 performs brightness compensation on the under-display camera display area based on a first display brightness and a second display brightness in the following manner: if the ratio of the brightness difference between the first display brightness and the second display brightness is less than or equal to a first threshold, the display brightness of the under-display camera display area remains unchanged. If the ratio of the brightness difference between the first display brightness and the second display brightness is greater than the first threshold, the display brightness of the under-display camera display area is compensated based on the ratio of the brightness difference between the first display brightness and the second display brightness, and the display brightness of the non-under-display camera display area of the terminal.
[0080] In another embodiment, the compensation unit 102 compensates for the display brightness of the under-display camera display area based on the brightness difference ratio between the first and second display brightness, and the display brightness of the non-under-display camera display area of the terminal, in the following manner: Based on the brightness difference ratio between the first and second display brightness, a first compensation ratio for the backlight display brightness of the terminal's under-display camera display area is determined, or a second compensation ratio for the backlight display brightness of the non-under-display camera display area of the terminal is determined. If the first compensation ratio for the backlight display brightness of the terminal's under-display camera display area is determined, then based on the first compensation ratio and the display brightness of the non-under-display camera display area of the terminal, the display brightness of the under-display camera display area is compensated by compensating for the backlight display brightness of the under-display camera display area. If the second compensation ratio for the backlight display brightness of the non-under-display camera display area of the terminal is determined, then based on the second compensation ratio and the display brightness of the non-under-display camera display area of the terminal, the display brightness of the under-display camera display area is compensated by compensating for the backlight display brightness of the non-under-display camera display area.
[0081] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0082] Figure 8 This is a block diagram illustrating another brightness compensation device according to an exemplary embodiment. For example, the brightness compensation device 200 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0083] Reference Figure 8 The brightness compensation device 200 may include one or more of the following components: processing component 202, memory 204, power component 206, multimedia component 208, audio component 210, input / output (I / O) interface 212, sensor component 214, and communication component 216.
[0084] Processing component 202 typically controls the overall operation of brightness compensation device 200, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 202 may include one or more modules to facilitate interaction between processing component 202 and other components. For example, processing component 202 may include a multimedia module to facilitate interaction between multimedia component 208 and processing component 202.
[0085] Memory 204 is configured to store various types of data to support the operation of the brightness compensation device 200. Examples of such data include instructions for any application or method operating on the brightness compensation device 200, contact data, phonebook data, messages, images, videos, etc. Memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0086] The power supply component 206 provides power to the various components of the brightness compensation device 200. The power supply component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the brightness compensation device 200.
[0087] The multimedia component 208 includes a screen that provides an output interface between the brightness compensation device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 208 includes a front-facing camera and / or a rear-facing camera. When the brightness compensation device 200 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0088] Audio component 210 is configured to output and / or input audio signals. For example, audio component 210 includes a microphone (MIC) configured to receive external audio signals when the brightness compensation device 200 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 204 or transmitted via communication component 216. In some embodiments, audio component 210 also includes a speaker for outputting audio signals.
[0089] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0090] Sensor assembly 214 includes one or more sensors for providing status assessments of various aspects of the brightness compensation device 200. For example, sensor assembly 214 can detect the on / off state of the brightness compensation device 200, the relative positioning of components such as the display and keypad of the brightness compensation device 200, changes in the position of the brightness compensation device 200 or one of its components, the presence or absence of user contact with the brightness compensation device 200, the orientation or acceleration / deceleration of the brightness compensation device 200, and temperature changes of the brightness compensation device 200. Sensor assembly 214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 214 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0091] Communication component 216 is configured to facilitate wired or wireless communication between brightness compensation device 200 and other devices. Brightness compensation device 200 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 216 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 216 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0092] In an exemplary embodiment, the brightness compensation device 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described method.
[0093] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, which can be executed by the processor 220 of the brightness compensation device 200 to complete any of the brightness compensation methods described above. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0094] Figure 9 This is a block diagram illustrating yet another brightness compensation device according to an exemplary embodiment. For example, the brightness compensation device 300 may be provided as a server. (Refer to...) Figure 9 The brightness compensation device 300 includes a processing component 322, which further includes one or more processors, and memory resources represented by a memory 332 for storing instructions, such as application programs, that can be executed by the processing component 322. The application programs stored in the memory 332 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 322 is configured to execute instructions to perform any of the aforementioned brightness compensation methods.
[0095] The brightness compensation device 300 may also include a power supply component 326 configured to perform power management of the brightness compensation device 300, a wired or wireless network interface 350 configured to connect the brightness compensation device 300 to a network, and an input / output (I / O) interface 358. The brightness compensation device 300 can operate on an operating system stored in memory 332, such as Windows Server™, MacOSX™, Unix™, Linux™, FreeBSD™, or similar.
[0096] It can be further understood that in this disclosure, "multiple" refers to two or more, and other quantifiers are similar. "And / or" describes the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. The singular forms "a," "the," and "the" are also intended to include the plural forms unless the context clearly indicates otherwise.
[0097] It is further understood that the terms "first," "second," etc., are used to describe various types of information, but this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and do not indicate a specific order or degree of importance. In fact, the expressions "first," "second," etc., are completely interchangeable. For example, without departing from the scope of this disclosure, first information can also be referred to as second information, and similarly, second information can also be referred to as first information.
[0098] It can be further understood that, unless otherwise specified, "connection" includes both direct connections where no other components exist between the two parties and indirect connections where other components exist between them.
[0099] It is further understood that although operations are described in a specific order in the accompanying drawings in the embodiments of this disclosure, this should not be construed as requiring these operations to be performed in the specific order or serial order shown, or requiring all of the shown operations to be performed to obtain the desired result. In certain environments, multitasking and parallel processing may be advantageous.
[0100] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following scope of claims.
[0101] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A brightness compensation method, characterized in that, The brightness compensation method includes: In response to determining to perform brightness compensation on the display area of the under-display camera of the terminal, a first display brightness and a second display brightness are determined; The first display brightness is the reference display brightness of the under-display camera display area, and the second display brightness is the real-time display brightness of the under-display camera display area. The reference display brightness is a reference brightness that is compensated for the real-time display brightness. Based on the brightness difference ratio between the first display brightness and the second display brightness, brightness compensation is performed on the display area of the under-display camera. The brightness difference ratio is the ratio between the difference between the first display brightness and the second display brightness and the first display brightness. The determination of the first display brightness and the second display brightness includes: In the under-display camera display area, multiple test grayscale images are displayed in a time-division manner. Each test grayscale image has corresponding attribute parameters, including the backlight display brightness of the terminal, the screen display grayscale value, and the reference grayscale value when the test grayscale image is captured. For each of the multiple test grayscale images, a baseline display brightness and a real-time display brightness are determined based on the attribute parameters of the test grayscale image, resulting in multiple display brightness pairs. Each display brightness pair includes a baseline display brightness and a real-time display brightness determined based on the attribute parameters of the same test grayscale image. The reference display brightness of the display brightness pair with the largest brightness difference ratio among the plurality of display brightness pairs is taken as the first display brightness, and the real-time display brightness of the display brightness pair with the largest brightness difference ratio among the plurality of display brightness pairs is taken as the second display brightness.
2. The brightness compensation method according to claim 1, characterized in that, The determination of the baseline display brightness based on the attribute parameters of the test grayscale image includes: Based on the reference grayscale value in the test grayscale image attribute parameters, the screen display grayscale value, and the brightness conversion curve, the display brightness corresponding to the reference grayscale value is obtained, and the display brightness corresponding to the reference grayscale value is determined as the reference display brightness.
3. The brightness compensation method according to claim 1, characterized in that, Determining the second display brightness includes: Based on the backlight brightness and screen grayscale value in the test grayscale image attribute parameters, the under-display camera is controlled to capture the image displayed in the under-display camera display area to obtain the captured image; Based on the captured image's corresponding grayscale value, the screen display grayscale value, and the brightness conversion curve, the display brightness corresponding to the captured grayscale value is obtained, and the display brightness corresponding to the captured grayscale value is determined as the second display brightness.
4. The brightness compensation method according to claim 1, characterized in that, The step of performing brightness compensation on the under-display camera display area based on the brightness difference ratio between the first display brightness and the second display brightness includes: If the ratio of the brightness difference between the first display brightness and the second display brightness is less than or equal to the first threshold, then the display brightness of the under-display camera display area remains unchanged; If the ratio of the brightness difference between the first display brightness and the second display brightness is greater than the first threshold, then the display brightness of the under-display camera display area is compensated based on the ratio of the brightness difference between the first display brightness and the second display brightness, and the display brightness of the non-under-display camera display area of the terminal.
5. The brightness compensation method according to claim 4, characterized in that, The compensation for the display brightness of the under-display camera display area based on the brightness difference ratio between the first display brightness and the second display brightness, and the display brightness of the non-under-display camera display area of the terminal, includes: Based on the ratio of the brightness difference between the first display brightness and the second display brightness, a first compensation ratio for the backlight display brightness of the under-display camera display area of the terminal is determined, or a second compensation ratio for the backlight display brightness of the non-under-display camera display area of the terminal is determined. If a first compensation ratio for the backlight display brightness of the under-display camera display area of the terminal is determined, then based on the first compensation ratio and the display brightness of the non-under-display camera display area of the terminal, the display brightness of the under-display camera display area is compensated by compensating for the backlight display brightness of the under-display camera display area. If a second compensation ratio for the backlight display brightness of the non-under-display camera display area of the terminal is determined, then based on the second compensation ratio and the display brightness of the non-under-display camera display area of the terminal, the display brightness of the under-display camera display area is compensated by compensating for the backlight display brightness of the non-under-display camera display area.
6. A brightness compensation device, characterized in that, The brightness compensation device includes: The determining unit is configured to determine a first display brightness and a second display brightness in response to determining to perform brightness compensation on the display area of the under-display camera of the terminal; The first display brightness is the reference display brightness of the under-display camera display area, and the second display brightness is the real-time display brightness of the under-display camera display area. The reference display brightness is a reference brightness that is compensated for the real-time display brightness. The compensation unit is used to perform brightness compensation on the display area of the under-display camera based on the brightness difference ratio between the first display brightness and the second display brightness, wherein the brightness difference ratio is the ratio between the difference between the first display brightness and the second display brightness and the first display brightness. The determining unit determines the first display brightness and the second display brightness in the following manner: In the under-display camera display area, multiple test grayscale images are displayed in a time-division manner. Each test grayscale image has corresponding attribute parameters, including the backlight display brightness of the terminal, the screen display grayscale value, and the reference grayscale value when the test grayscale image is captured. For each of the multiple test grayscale images, a baseline display brightness and a real-time display brightness are determined based on the attribute parameters of the test grayscale image, resulting in multiple display brightness pairs. Each display brightness pair includes a baseline display brightness and a real-time display brightness determined based on the attribute parameters of the same test grayscale image. The reference display brightness of the display brightness pair with the largest brightness difference ratio among the plurality of display brightness pairs is taken as the first display brightness, and the real-time display brightness of the display brightness pair with the largest brightness difference ratio among the plurality of display brightness pairs is taken as the second display brightness.
7. The brightness compensation device according to claim 6, characterized in that, The determining unit determines the baseline display brightness based on the attribute parameters of the test grayscale image in the following manner: Based on the reference grayscale value in the test grayscale image attribute parameters, the screen display grayscale value, and the brightness conversion curve, the display brightness corresponding to the reference grayscale value is obtained, and the display brightness corresponding to the reference grayscale value is determined as the reference display brightness.
8. The brightness compensation device according to claim 6, characterized in that, The determining unit determines the second display brightness in the following manner: Based on the backlight brightness and screen grayscale value in the test grayscale image attribute parameters, the under-display camera is controlled to capture the image displayed in the under-display camera display area to obtain the captured image; Based on the captured image's corresponding grayscale value, the screen display grayscale value, and the brightness conversion curve, the display brightness corresponding to the captured grayscale value is obtained, and the display brightness corresponding to the captured grayscale value is determined as the second display brightness.
9. The brightness compensation device according to claim 6, characterized in that, The compensation unit performs brightness compensation on the under-display camera display area based on the brightness difference ratio between the first display brightness and the second display brightness in the following manner: If the ratio of the brightness difference between the first display brightness and the second display brightness is less than or equal to the first threshold, then the display brightness of the under-display camera display area remains unchanged; If the ratio of the brightness difference between the first display brightness and the second display brightness is greater than the first threshold, then the display brightness of the under-display camera display area is compensated based on the ratio of the brightness difference between the first display brightness and the second display brightness, and the display brightness of the non-under-display camera display area of the terminal.
10. The brightness compensation device according to claim 9, characterized in that, The compensation unit compensates for the display brightness of the under-display camera display area based on the brightness difference ratio between the first display brightness and the second display brightness, and the display brightness of the non-under-display camera display area of the terminal, in the following manner: Based on the ratio of the brightness difference between the first display brightness and the second display brightness, a first compensation ratio for the backlight display brightness of the under-display camera display area of the terminal is determined, or a second compensation ratio for the backlight display brightness of the non-under-display camera display area of the terminal is determined. If a first compensation ratio for the backlight display brightness of the under-display camera display area of the terminal is determined, then based on the first compensation ratio and the display brightness of the non-under-display camera display area of the terminal, the display brightness of the under-display camera display area is compensated by compensating for the backlight display brightness of the under-display camera display area. If a second compensation ratio for the backlight display brightness of the non-under-display camera display area of the terminal is determined, then based on the second compensation ratio and the display brightness of the non-under-display camera display area of the terminal, the display brightness of the under-display camera display area is compensated by compensating for the backlight display brightness of the non-under-display camera display area.
11. A brightness compensation device, characterized in that, The brightness compensation device includes: Memory, used to store instructions; and A processor is configured to invoke instructions stored in the memory to execute the brightness compensation method as described in any one of claims 1-5.
12. A computer-readable storage medium storing instructions that, when executed by a processor, perform the brightness compensation method as described in any one of claims 1-5.