[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN115691418A - Luminance compensation method, luminance compensation device, and storage medium - Google Patents

Luminance compensation method, luminance compensation device, and storage medium Download PDF

Info

Publication number
CN115691418A
CN115691418A CN202110862019.7A CN202110862019A CN115691418A CN 115691418 A CN115691418 A CN 115691418A CN 202110862019 A CN202110862019 A CN 202110862019A CN 115691418 A CN115691418 A CN 115691418A
Authority
CN
China
Prior art keywords
display
brightness
display brightness
screen
camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110862019.7A
Other languages
Chinese (zh)
Inventor
张嫄
陈佳斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110862019.7A priority Critical patent/CN115691418A/en
Publication of CN115691418A publication Critical patent/CN115691418A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The disclosure relates to a brightness compensation method, a brightness compensation device and a storage medium. The brightness compensation method is applied to the terminal, and comprises the following steps: and determining a first display brightness and a second display brightness in response to determining to perform brightness compensation on the display area of the under-screen camera of the terminal. The first display brightness is the reference display brightness of the display area of the camera under the screen, and the second display brightness is the real-time display brightness of the display area of the camera under the screen. And performing brightness compensation on the display area of the camera under the screen based on the first display brightness and the second display brightness. According to the brightness compensation method provided by the disclosure, the brightness compensation can be performed on the display brightness of the camera display area under the screen based on the difference between the real-time display brightness and the reference display brightness of the camera display area, so that the compensation mode of the screen brightness is simpler and more convenient, and has pertinence.

Description

Luminance compensation method, luminance compensation device, and storage medium
Technical Field
The present disclosure relates to the field of display driving technologies, and in particular, to a brightness compensation method, a brightness compensation apparatus, and a storage medium.
Background
Currently, many mobile phones are Active-matrix organic light-emitting diode (AMOLED) screens and front cameras under the screens. At the position of the camera under the screen, in order to increase the light entering amount of the camera, the transmittance of the part needs to be increased.
In the related art, the design of the display area of the camera under the screen is different from that of the display area of the camera under the non-screen, for example: the number of pixels (PPI) on the diagonal of each inch of the position of the camera under the screen is changed, or the material of the display screen is changed, so that the attenuation curves of the two display areas are different. Therefore, the display area of the screen lower camera can be kept adjusted to be consistent with the display area of the non-screen lower camera in the initial use stage. However, after the device is used for a period of time, the brightness attenuation of the position of the under-screen camera and other positions of the screen is asynchronous, so that the display brightness of the display area of the under-screen camera is different from that of the display area of the non-under-screen camera.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a luminance compensation method, a luminance compensation apparatus, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a brightness compensation method applied to a terminal, the brightness compensation method including: and determining a first display brightness and a second display brightness in response to determining to perform brightness compensation on the display area of the under-screen camera of the terminal. The first display brightness is the reference display brightness of the display area of the camera under the screen, and the second display brightness is the real-time display brightness of the display area of the camera under the screen. And performing brightness compensation on the display area of the lower screen camera based on the first display brightness and the second display brightness.
In an embodiment, the determining the first display brightness and the second display brightness includes: and displaying a plurality of test gray-scale images in a time-sharing manner in the display area of the camera under the screen, wherein the test gray-scale images correspond to attribute parameters, and the attribute parameters comprise backlight display brightness, a screen display gray-scale value and a reference gray-scale value of the terminal when the test gray-scale images are shot. And determining reference display brightness and real-time display brightness based on the attribute parameters of the test gray-scale images respectively aiming at each test gray-scale image in the test gray-scale images, and obtaining a plurality of display brightness pairs, wherein each display brightness pair comprises the reference display brightness and the real-time display brightness determined based on the attribute parameters of the same test gray-scale image. And taking the reference display brightness in the display brightness pair with the maximum brightness difference ratio among the plurality of display brightness pairs as the first display brightness, and taking the real-time display brightness in the display brightness pair with the maximum brightness difference ratio among the plurality of display brightness pairs as the second display brightness. The brightness difference ratio is a ratio between a difference between the reference display brightness and the real-time display brightness and the reference display brightness.
In another embodiment, the determining the reference display brightness based on the attribute parameters of the test grayscale image includes: and obtaining the display brightness corresponding to the reference gray scale value based on the reference gray scale value, the screen display gray scale value and the brightness conversion curve in the test gray scale image attribute information, and determining the display brightness corresponding to the reference gray scale value as the reference display brightness.
In yet another embodiment, the determining the second display brightness includes: and controlling the lower-screen camera to shoot a display picture in a display area of the lower-screen camera based on the backlight display brightness and the screen display gray scale value in the test gray scale image attribute information to obtain a shot image. And obtaining the display brightness corresponding to the shooting gray scale value based on the shooting gray scale value corresponding to the shot image, the screen display gray scale value and the brightness conversion curve, and determining the display brightness corresponding to the shooting gray scale value as second display brightness.
In another embodiment, the performing brightness compensation on the display area of the off-screen camera based on the first display brightness and the second display brightness includes: and if the brightness difference ratio between the first display brightness and the second display brightness is smaller than or equal to a first threshold value, keeping the display brightness of the display area of the camera under the screen unchanged. And if the brightness difference ratio between the first display brightness and the second display brightness is larger than the first threshold value, compensating the display brightness of the display area of the lower screen camera based on the brightness difference ratio between the first display brightness and the second display brightness and the display brightness of the non-lower screen camera display area of the terminal.
In another embodiment, the compensating the display brightness of the off-screen 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-off-screen camera display area of the terminal includes: determining a first compensation ratio of the backlight display brightness of the camera display area under the terminal screen or determining a second compensation ratio of the backlight display brightness of the camera display area under the terminal non-screen based on the brightness difference ratio between the first display brightness and the second display brightness;
if a first compensation ratio of the backlight display brightness of the display area of the camera under the screen of the terminal is determined, compensating the display brightness of the display area of the camera under the screen by compensating the backlight display brightness of the display area of the camera under the screen based on the first compensation ratio and the display brightness of the display area of the camera under the non-screen of the terminal;
and if a second compensation ratio of the backlight display brightness of the non-screen camera display area of the terminal is determined, compensating the display brightness of the non-screen camera display area by compensating the backlight display brightness of the non-screen camera display area based on the second compensation ratio and the display brightness of the non-screen camera display area of the terminal.
According to a second aspect of the embodiments of the present disclosure, there is provided an illumination compensation apparatus applied to a terminal, the illumination compensation apparatus including: and the determining unit is used for responding to the determination of brightness compensation of the display area of the under-screen camera of the terminal and determining the first display brightness and the second display brightness. The first display brightness is the reference display brightness of the display area of the camera under the screen, and the second display brightness is the real-time display brightness of the display area of the camera under the screen. And the compensation unit is used for performing brightness compensation on the display area of the camera under the screen based on the first display brightness and the second display brightness.
In one embodiment, the determining unit determines the first display brightness and the second display brightness in the following manner: and displaying a plurality of test gray-scale images in a time-sharing manner in the display area of the camera under the screen, wherein the test gray-scale images correspond to attribute parameters, and the attribute parameters comprise backlight display brightness, a screen display gray-scale value and a reference gray-scale value of the terminal when the test gray-scale images are shot. And determining reference display brightness and real-time display brightness based on the attribute parameters of the test gray-scale images respectively aiming at each test gray-scale image in the test gray-scale images, and obtaining a plurality of display brightness pairs, wherein each display brightness pair comprises the reference display brightness and the real-time display brightness determined based on the attribute parameters of the same test gray-scale image. And taking the reference display brightness in the display brightness pair with the maximum brightness difference ratio among the plurality of display brightness pairs as the first display brightness, and taking the real-time display brightness in the display brightness pair with the maximum brightness difference ratio among the plurality of display brightness pairs as the second display brightness. The luminance difference ratio is a ratio between a difference between a reference display luminance and a real-time display luminance and the reference display luminance.
In another embodiment, the determining unit determines the reference display luminance based on the attribute parameter of the test grayscale image in the following manner: and obtaining the display brightness corresponding to the reference gray scale value based on the reference gray scale value, the screen display gray scale value and the brightness conversion curve in the test gray scale image attribute information, and determining the display brightness corresponding to the reference gray scale value as the reference display brightness.
In a further embodiment, the determining unit determines the second display luminance in the following manner: and controlling the lower-screen camera to shoot a display picture in a display area of the lower-screen camera based on the backlight display brightness and the screen display gray scale value in the test gray scale image attribute information to obtain a shot image. And obtaining the display brightness corresponding to the shooting gray scale value based on the shooting gray scale value corresponding to the shooting image, the screen display gray scale value and the brightness conversion curve, and determining the display brightness corresponding to the shooting gray scale value as second display brightness.
In another embodiment, the compensation unit performs brightness compensation on the display area of the off-screen camera based on the first display brightness and the second display brightness in the following manner: and if the brightness difference ratio between the first display brightness and the second display brightness is smaller than or equal to a first threshold value, keeping the display brightness of the display area of the camera under the screen unchanged. And if the brightness difference ratio between the first display brightness and the second display brightness is larger than the first threshold value, compensating the display brightness of the display area of the lower screen camera based on the brightness difference ratio between the first display brightness and the second display brightness and the display brightness of the non-lower screen camera display area of the terminal.
In another embodiment, the compensation unit compensates the display brightness of the off-screen 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-off-screen camera display area of the terminal in the following manner: and determining a first compensation ratio of the backlight display brightness of the camera display area under the terminal screen or determining a second compensation ratio of the backlight display brightness of the camera display area under the terminal non-screen based on the brightness difference ratio between the first display brightness and the second display brightness. And if a first compensation ratio of the backlight display brightness of the display area of the camera under the screen of the terminal is determined, compensating the display brightness of the display area of the camera under the screen by compensating the backlight display brightness of the display area of the camera under the screen based on the first compensation ratio and the display brightness of the display area of the camera under the non-screen of the terminal. And if a second compensation ratio of the backlight display brightness of the non-screen camera display area of the terminal is determined, compensating the display brightness of the non-screen camera display area by compensating the backlight display brightness of the non-screen camera display area based on the second compensation ratio and the display brightness of the non-screen camera display area of the terminal.
According to a third aspect of the embodiments of the present disclosure, there is provided a luminance compensation apparatus including: a memory to store instructions; and the processor is used for calling the instructions stored in the memory to execute any one of the brightness compensation methods.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, in which instructions are stored, and when the instructions are executed by a processor, the method for luminance compensation is performed.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: according to the brightness compensation method provided by the disclosure, the brightness compensation can be performed on the display brightness of the camera display area under the screen based on the difference between the real-time display brightness and the reference display brightness of the camera display area, so that the compensation mode of the screen brightness is simpler and more convenient, and has pertinence.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram illustrating a display area of a terminal according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a method of brightness compensation according to an exemplary embodiment.
Fig. 3 is a flow chart illustrating a method of brightness determination according to an exemplary embodiment.
Fig. 4 is a flow chart illustrating another method of brightness determination according to an example embodiment.
FIG. 5 is an illustration showing an effect of display brightness of a display screen according to an example embodiment.
Fig. 6 is a flow chart illustrating another method of brightness compensation according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating a luminance compensation apparatus according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating another luminance compensation apparatus according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating still another luminance compensation apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
The brightness compensation method provided by the disclosure can be applied to any terminal with an under-screen camera display area. The distribution of the off-screen camera display area 1 and the non-off-screen camera display area 2 in the terminal display area can be as shown in fig. 1. Fig. 1 is a schematic diagram illustrating a display area of a terminal according to an exemplary embodiment. In one example, the class of terminals may include mobile terminals, such as: the mobile phone comprises a mobile phone, a tablet, an intelligent television, an intelligent sound box with a screen, an intelligent watch with a screen, an ipod and the like. In another example, the structure of the terminal may include: a dual-screen terminal, a folding screen terminal, a full-screen terminal, etc. The display brightness of the display area of the under-screen camera of the terminal can be reduced along with the use time and the brightness intensity. The brightness compensation method provided by the disclosure is suitable for a use scene in which the brightness attenuation between the display area of the under-screen camera and the display area of the non-under-screen camera of the terminal is inconsistent after the terminal is used for a period of time, and the display brightness of the pixels in the two display areas is different.
In the related art, when performing brightness compensation on the display area of the camera under the screen in the use scene, the following method is adopted for compensation: and counting the display information and the working time of the display area of the camera under the screen through terminal processing or an Integrated Circuit (IC) controlling the display area of the camera under the screen. When the screen is turned off, the display information and the data related to the working time duration are transmitted to an Application Processor (AP) of the terminal for recording. Therefore, when the brightness compensation is needed to be carried out on the pixel, the pixel needing compensation is determined through the aging model by utilizing the statistical data. However, when compensation is performed in this manner, the integrity of the statistical data needs to be guaranteed. If the statistical data is partially missing, the accuracy of the statistical data is affected, and the compensation result is affected.
In view of this, the present disclosure provides a brightness compensation method, which can perform brightness compensation on a display area of a lower-screen camera based on a difference between real-time display brightness and reference display brightness of the display area of the lower-screen camera, so that a compensation manner of screen brightness is more direct and simpler, and targeted compensation can be performed on the real-time display brightness of the display area of the lower-screen camera, so that a compensation result is more accurate.
Fig. 2 is a flow chart illustrating a method of brightness compensation according to an exemplary embodiment. As shown in fig. 2, the brightness compensation method is used in a terminal, and includes the following steps S11 to S12.
In step S11, in response to determining to perform brightness compensation on the off-screen camera display area of the terminal, a first display brightness and a second display brightness are determined.
In the embodiment of the disclosure, a first display brightness and a second display brightness of a display area of an off-screen camera of a terminal are respectively determined according to a determination of a response to a requirement for performing brightness compensation on the display area of the off-screen camera of the terminal. The first display brightness is the reference display brightness of the display area of the camera under the screen, and the second display brightness is the real-time display brightness of the display area of the camera under the screen. The reference display brightness may be understood as a reference brightness compensated for the real-time display brightness. In an example, since the attenuation condition of the display brightness of the display area of the off-screen camera is related to the operating time length and the display content, in order to improve the reliability of the reference display brightness, the first display brightness of the display area of the off-screen camera can be determined when the terminal leaves a factory, so that the obtained reference display brightness is more accurate and closer to the initial display brightness. The second display brightness can be understood as the display brightness at which the display area of the under-screen camera needs to be determined whether to perform brightness compensation at any time during use.
In one example, determining a need to brightness compensate an off-screen camera display area of a terminal may be user-initiated. In another example, as shown in fig. 1, the determination of the requirement for performing brightness compensation on the display area of the off-screen camera of the terminal may be that the terminal determines that the display area of the off-screen camera needs to perform brightness compensation based on self-detection, and then sends a request to the user, and the user initiates the determination according to the request.
In step S12, the brightness compensation is performed on the display area of the off-screen camera based on the first display brightness and the second display brightness.
Through the embodiment, based on the comparison between the first display brightness and the second display brightness, the difference between the current display brightness of the display area of the camera under the screen and the first display brightness can be determined, and then the brightness attenuation condition of the display area of the camera under the screen is determined, so that when the brightness compensation is performed on the display area of the camera under the screen, the targeted compensation can be performed, and the display brightness compensation mode of the display area of the camera under the screen is simpler and more direct.
The following examples will further illustrate the determination of the first display brightness and the second display brightness.
Fig. 3 is a flow chart illustrating a method of brightness determination according to an exemplary embodiment. As shown in fig. 3, the process of determining the first display brightness and the second display brightness includes the following steps.
In step S21, a plurality of test grayscale images are displayed in time division in the display area of the off-screen camera.
In the embodiment of the disclosure, since the brightness attenuation degree of the display pixels of the display screen is strongly related to the display content of the display screen, the longer the service time of the display screen is, the higher the gray scale value of the screen display is, and the faster the brightness attenuation speed of the display screen is further caused. However, the degree of luminance degradation varies depending on the usage habit of each person. Therefore, in order to perform targeted compensation on the display area of the under-screen camera, the reason of brightness attenuation of the display area of the under-screen camera is determined, and a plurality of test gray-scale images are sequentially displayed in a time-sharing manner. Wherein, the corresponding attribute parameters of different test gray scale images are different. The attribute parameters comprise backlight display brightness, screen display gray scale values and reference gray scale values of the terminal when the test gray scale image is shot. It can be understood that the different test gray scale images are images obtained by shooting through a camera under the condition that the backlight display brightness and the screen display gray scale value are different, and the reference gray scale values of the obtained test gray scale images are different. In one example, the backlight display brightness is related to the size of a brightness value register (DBV) for controlling the display area of the under-screen camera, and the size of the register is in a linear relation with the screen brightness. Thus, by changing the size of the value in the register, the backlight display brightness can be changed. The screen display gray scale value is a gray scale value used for controlling the terminal to display the picture content.
In an implementation scenario, in order to reflect the luminance change of the display area of the camera under the screen to the maximum, the test grayscale images may be obtained by capturing the pictures of the display area of the camera under the screen when the value of the register is set to the maximum value (2047) and the screen display grayscale value is set to the maximum value (255), when the value of the register is set to the maximum value (2047) and the screen display grayscale value is set to the intermediate value (128), and when the value of the register is set to the intermediate value (1024) and the screen display grayscale value is set to the maximum value (255). Take a pixel block (block) with a pixel size of 6 × 6 in the display area of the under-screen camera as an example. The correspondence between the register value of each test gray scale image, the screen display gray scale value, and the reference gray scale value may be as shown in table 1. Wherein, the reference gray-scale value is represented by RGB.
Figure BDA0003186068180000071
TABLE 1
The size of the register is linear with the screen brightness based on the above. Therefore, the backlight display brightness of the terminal can be determined by the value of the register. And when storing the attribute parameters of the test gray-scale image, storing the backlight display brightness, the screen display gray-scale value and the reference gray-scale value obtained by shooting. In one example, the on-screen display gray scale value may be obtained by screen capture.
In step S22, for each of the plurality of test grayscale images, the reference display brightness and the real-time display brightness are determined based on the attribute parameters of the test grayscale image, respectively, and a plurality of display brightness pairs are obtained.
In the embodiment of the disclosure, in order to clarify the reason of the brightness attenuation of the display area of the camera under the screen, the backlight display brightness, the screen display gray scale value, and the reference gray scale value of each test gray scale image are determined according to the attribute information of each test gray scale image. Through the reference gray scale value, the reference display brightness of the display area of the camera under the screen can be determined when the current test gray scale image is shot. The real-time gray scale value of the real-time shot image is obtained by controlling the value of a register of the backlight display brightness of the display area of the camera under the screen and the screen display gray scale value when the current test gray scale image is shot through the backlight display brightness and the screen display gray scale value, and then shooting the real-time shot image by adopting the backlight display brightness which is the same as the current test gray scale image and the screen display gray scale value, so that the real-time display brightness determined according to the real-time gray scale value is comparable to the reference display brightness of the current test gray scale image, namely, a display brightness pair is obtained. Each display brightness pair comprises reference display brightness and real-time display brightness which are determined based on the attribute parameters of the same test gray-scale image. Under the condition of the same backlight display brightness and screen display gray-scale value, the brightness attenuation change condition of the screen display brightness along with the use can be reflected through the display brightness pair based on the contrast so as to determine the change difference of the screen display brightness more quickly.
In step S23, the reference display luminance in the display luminance pair having the largest luminance difference ratio among the plurality of display luminance pairs is set as the first display luminance, and the real-time display luminance in the display luminance pair having the largest luminance difference ratio among the plurality of display luminance pairs is set as the second display luminance.
In the embodiment of the present disclosure, since the attribute parameters of each test grayscale image are different, in different display luminance pairs, the luminance difference ratio between each reference display luminance and the corresponding real-time display luminance is different, so that the factor of luminance attenuation occurring in the display area of the camera under the screen can be definitely influenced by the respective luminance difference ratios. The brightness difference ratio is a ratio between a difference between the reference display brightness and the real-time display brightness and the reference display brightness. For example: when the reference display luminance is 500nit (nit) and the real-time display luminance is 483nit, the luminance difference ratio is (500-483)/500 =0.034=3.4%. If the brightness difference ratio is larger, representing the backlight display brightness and the screen display gray-scale value adopted by the display area of the screen lower display camera when the display brightness pair is obtained, the larger the influence on the display brightness of the display area of the screen lower display camera is, and further causing the larger the influence on the brightness attenuation of the display brightness of the display area of the screen lower display camera is. Therefore, when the display brightness pair requiring brightness compensation is determined, the display brightness with the largest brightness difference ratio is taken as the display brightness pair requiring brightness compensation, the reference display brightness in 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 in the display brightness pair with the largest brightness difference ratio among the plurality of display brightness pairs is taken as the second display brightness. For example: according to different test gray scale images, the obtained display brightness is respectively 2.6 percent, 1.8 percent and 2.2 percent to the corresponding brightness difference ratio, and then the display brightness corresponding to 2.6 percent is selected
In one embodiment, the reference display brightness may be determined based on the attribute parameters of the test grayscale image using a light-to-brightness transition curve. That is, the display brightness corresponding to the reference gray scale value is obtained based on the reference gray scale value, the screen display gray scale value and the brightness conversion curve in the test gray scale image attribute information, and the display brightness corresponding to the reference gray scale value is determined as the reference display brightness. In one example, the photoelectric conversion curve may be a Gamma (Gamma) curve. The Gamma curve is a special tone curve, and when the Gamma value is equal to 1, the curve is a straight line forming 45 degrees with the coordinate axis, and represents that the input and output densities are the same. Gamma values above 1 will cause output dimming, and Gamma values below 1 will cause output brightening. Each pixel in the digital image has a certain brightness level, i.e. from black (0) to white (1). These pixel values are the information input into the computer display. The display can only output these values in a non-linear manner, namely: output = input/gamma. Generally, when electro-optical conversion is performed on a display screen, gamma (γ) is 2.2. Since the photoelectric conversion curve is an inverse operation of the photoelectric conversion curve, when the reference display luminance is determined from the reference gray scale value obtained by the camera, γ takes a value of (1/2.2). And substituting the reference gray scale value and the screen display gray scale value into the brightness conversion curve to determine the display brightness corresponding to the reference gray scale value, and further determining the reference display brightness according to the transmittance of the display area of the camera under the screen. For example: the display brightness corresponding to the obtained reference gray scale value is 150nit by substituting the reference gray scale value and the screen display gray scale value into the brightness conversion curve. According to the transmittance of the display area of the camera under the screen of 0.3, the current screen display brightness is 150/0.3=500nit.
In another embodiment, the process of determining the second display brightness may be as shown in FIG. 4. Fig. 4 is a flow chart illustrating another method of brightness determination according to an example embodiment.
In step S31, based on the backlight display brightness and the screen display gray scale value in the test gray scale image attribute information, controlling the under-screen camera to shoot a display picture in a display area of the under-screen camera, so as to obtain a shot image;
in step S32, a display luminance corresponding to the captured gray scale value is obtained based on the captured gray scale value, the screen display gray scale value, and the luminance conversion curve corresponding to the captured image, and the display luminance corresponding to the captured gray scale value is determined as a second display luminance.
In one implementation scenario, the backlight display brightness is 500nit, and the reference grayscale value is 250. Since the transmittance above the display area of the off-screen camera is 30%, the screen luminance received by the off-screen camera is 500 × 0.3=150nit, corresponding to the reference gray scale value 250. By the formula of the photoelectric conversion curve: (Lv/Lvmax) ^ (1/2.2) × 255= Gray; it can be seen that the maximum luminance received by the off-screen camera is Lvmax =156.7nit. When the captured gray scale value obtained by capturing is 246 gray scales, the screen display gray scale value (Lv ') is 144.8nit at 246 gray scales according to the above formula, (Lv'/156.7) ^ (1/2.2) = 255= 246. Further, the superimposed transmittance of 30% indicates that the display luminance corresponding to the captured gray-scale value is 144.8/0.3=483nit. That is, the second display luminance is 483nit.
In an embodiment, whether to perform brightness compensation on the display area of the off-screen camera is determined by comparing a brightness difference ratio between the first display brightness and the second display brightness with a first threshold. The first threshold value is understood to be the maximum threshold value at which the human eye can observe a change in brightness. Under normal ambient light, the difference in brightness recognizable to the human eye is statistically 2%. That is, when the light is around 100nit, the human eye can recognize the difference of 2nit in brightness. In other words, when the backlight display brightness corresponding to the register value of 2047 is 500nit and the screen display gray scale value is 255 gray scales, the human eye can see the difference when the brightness of the display area of the camera under the screen is reduced to 490nit (500 × 1-2%). Therefore, the brightness difference ratio between the first display brightness and the second display brightness can be compared with the first threshold value, so that whether the current brightness change can cause the perception of human vision can be determined, and whether the compensation is needed can be further judged.
If the ratio of the brightness difference between the first display brightness and the second display brightness is smaller than or equal to the first threshold, the representation brightness difference is not obvious in change, and the perception of human vision cannot be caused, so that compensation is not needed, and the display brightness of the display area of the camera under the screen is kept unchanged. If the brightness difference ratio between the first display brightness and the second display brightness is larger than the first threshold value, the characteristic brightness difference change can cause the perception of human vision, brightness compensation is needed, and then the use experience of a user is avoided, so that the display brightness of the display area of the camera under the screen can be compensated based on the brightness difference ratio between the first display brightness and the second display brightness and the display brightness of the display area of the camera under the non-screen terminal.
In one implementation scenario, when the register value is 2047, corresponding to a backlight display luminance of 500nit, and the screen display gray scale value is 255 gray scales, the reference gray scale value is 250 gray scales, and the reference display luminance is 500nit. When the register value is 2047, the corresponding backlight display brightness is 500nit, and the screen display gray scale value is 255 gray scales, the obtained shooting gray scale value is 246 gray scales, and the corresponding real-time display brightness is 483nit. The ratio of the brightness difference between the first display brightness and the second display brightness is (500-483)/500 > the first threshold (3%), and the display brightness of the display area of the off-screen camera needs to be 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-off-screen camera display area of the terminal.
In one example, in the case where the backlight display luminance and the screen display gray scale value are different, the maximum threshold value at which the human eye perceives a change in luminance is different. Therefore, when the first threshold is determined, the targeted setting can be performed according to the backlight display brightness and the screen display gray-scale value. For example: the first threshold value in the case where the register value is 2047 and the screen display gradation value is 255 gradations is set to 3%. The first threshold value in the case where the register value is 2047 and the on-screen display gray scale value is 128 gray scales is set to 2%. The first threshold value in the case where the value of the register is 1024 and the screen display gradation value is 255 gradations is set to 2%.
In another example, when acquiring the test grayscale image and the captured image, the terminal may be placed in a completely dark environment, and the off-screen camera is not blocked by other obstacles. For example: placed in a black box with a certain height or in a totally black space. And then the first display brightness and the second display brightness which are obtained can be more accurate, and the brightness interference of other external environments can be more easily avoided, so that the subsequent brightness compensation is more accurate. And when shooting is performed, shooting is performed using the same shooting parameters. For example: the method comprises the steps of selecting white balance daylight, selecting 1/60 shutter time and selecting 300 shooting parameters according to ISO, and obtaining a test gray-scale image and a shooting image.
In one embodiment, when the display brightness of the display area of the off-screen camera is compensated, the compensation can be performed through the IC. Based on the brightness difference ratio between the first display brightness and the second display brightness, a first compensation ratio of the backlight display brightness of the camera display area under the terminal screen can be determined, namely, the first compensation ratio of the brightness compensation to the camera display area under the screen is definitely needed, and further based on the linear relation between the brightness and the value of the register, the display brightness of the camera display area under the screen can be compensated by compensating the backlight display brightness of the camera display area under the screen, so that the display brightness of the camera display area under the screen after compensation is consistent with the display brightness of the camera display area under the non-screen. For example: the backlight display brightness of the display area of the camera under the screen can be compensated, the display brightness of the display area of the camera under the screen is increased, and therefore the display brightness of the display area of the camera under the non-screen is consistent with the display brightness of the display area of the camera under the screen.
Or, based on the brightness difference ratio between the first display brightness and the second display brightness, determining a second compensation ratio of the backlight display brightness of the non-screen camera display area of the terminal, that is, determining a second compensation ratio of the brightness compensation to the non-screen camera display area, and further based on the linear relationship between the brightness and the value of the register, compensating the display brightness of the non-screen camera display area by compensating the backlight display brightness of the non-screen camera display area, so that the compensated display brightness of the non-screen camera display area is consistent with the display brightness of the screen camera display area. Such as: the backlight display brightness of the non-screen lower camera display area can be compensated, the display brightness of the screen lower camera display area is reduced, and therefore the display brightness of the non-screen lower camera display area is consistent with the display brightness of the screen lower camera display area.
In another embodiment, when the display brightness of the display area of the off-screen camera is compensated, the compensation can be performed through the AP. The mode through adding the covering layer can be adopted, the display brightness of the non-screen lower camera display area is reduced, the display brightness of the non-screen lower camera display area and the display brightness of the screen lower camera display area can be kept consistent, and therefore the display brightness of the terminal display area can be kept integrally consistent.
In one implementation scenario, this may be as shown in FIG. 5. FIG. 5 is an illustration showing an effect of display brightness of a display screen according to an exemplary embodiment. If the determined display brightness of the display area 1 of the camera under the screen is 180nit and the determined display brightness of the display area 2 of the camera under the non-screen is 200nit, covering the display area of the camera under the non-screen through the covering layer 3, reducing the display brightness of the display area of the camera under the non-screen, and further enabling the display brightness of the display area of the camera under the non-screen to be consistent with the display brightness of the display area of the camera under the screen. In an example, if the value of the register is 2047 and the screen display gray scale value is 255 gray scales, the luminance compensation is performed by adding a masking layer, based on a first threshold value determined in advance when the value of the register is 2047 and the screen display gray scale value is 255 gray scales, the light transmittance covering the non-under-screen camera display area is determined, so that the display luminance of the compensated terminal display area can be kept consistent as a whole, and the influence on the use experience of a user due to an excessively large display luminance difference between the two display areas is avoided. For example: when the first threshold is 3%, the transmittance of the cover layer is 97%. When the first threshold is 2%, the transmittance of the cover layer is 98%.
In an implementation scenario, the process of performing brightness compensation on the display area of the camera under the screen of the terminal may be as shown in fig. 6. Fig. 6 is a flow chart illustrating another brightness compensation method according to an exemplary embodiment.
And responding to a detection instruction of a user, detecting the ambient environment of the terminal through an ambient light sensor in the terminal, and determining that the terminal is in a completely black environment. And when the terminal is determined to be in the full-black environment, responding according to the requirement for determining brightness compensation of the display area of the camera under the screen of the terminal. And displaying a plurality of test gray-scale images in a time-sharing manner in a display area of the camera under the screen. And correspondingly shooting through a camera under the screen to obtain a real-time display image aiming at each test gray scale image. And determining the first display brightness and the second display brightness according to the reference display brightness of each test gray scale image and the brightness difference ratio between the real-time display brightness of the real-time display image corresponding to each test gray scale image. And judging whether the brightness difference ratio between the first display brightness and the second display brightness is larger than a first threshold value. And if the brightness difference ratio between the first display brightness and the second display brightness is larger than a first threshold value, performing brightness compensation on the display area of the camera under the screen, and prompting a user that the compensation is finished. And if the brightness difference ratio between the first display brightness and the second display brightness is smaller than or equal to the first threshold, prompting the user that brightness compensation is not required to be performed on the display area of the camera under the screen.
Based on the same concept, the embodiment of the present disclosure also provides a brightness compensation device applied to a terminal.
It is understood that the brightness compensation device provided by the embodiments of the present disclosure includes a hardware structure and/or a software module for performing the above functions. The disclosed embodiments can be implemented in hardware or a combination of hardware and computer software, in combination with the exemplary elements and algorithm steps disclosed in the disclosed embodiments. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the subject matter of the embodiments of the present disclosure.
Fig. 7 is a block diagram illustrating a brightness compensation apparatus according to an exemplary embodiment. Referring to fig. 7, the luminance compensation apparatus 100 includes a determination unit 101 and a compensation unit 102.
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 an off-screen camera display area of the terminal. The first display brightness is the reference display brightness of the display area of the camera under the screen, and the second display brightness is the real-time display brightness of the display area of the camera under the screen.
And the compensation unit 102 is configured to perform brightness compensation on the display area of the off-screen camera based on the first display brightness and the second display brightness.
In one embodiment, the determining unit 101 determines the first display brightness and the second display brightness in the following manner: and displaying a plurality of test gray-scale images in a time-sharing manner in a display area of the camera under the screen, wherein the test gray-scale images correspond to attribute parameters, and the attribute parameters comprise backlight display brightness of a terminal when the test gray-scale images are shot, a screen display gray-scale value and a reference gray-scale value. And determining the reference display brightness and the real-time display brightness based on the attribute parameters of the test gray-scale images respectively aiming at each test gray-scale image in the test gray-scale images, and obtaining a plurality of display brightness pairs, wherein each display brightness pair comprises the reference display brightness and the real-time display brightness determined based on the attribute parameters of the same test gray-scale image. The reference display brightness in the display brightness pair with the maximum brightness difference ratio among the plurality of display brightness pairs is used as the first display brightness, and the real-time display brightness in the display brightness pair with the maximum brightness difference ratio among the plurality of display brightness pairs is used as the second display brightness. The luminance difference ratio is a ratio between a difference between the reference display luminance and the real-time display luminance and the reference display luminance.
In another embodiment, the determining unit 101 determines the reference display luminance based on the attribute parameter of the test grayscale image in the following manner: and obtaining the display brightness corresponding to the reference gray scale value based on the reference gray scale value, the screen display gray scale value and the brightness conversion curve in the test gray scale image attribute information, and determining the display brightness corresponding to the reference gray scale value as the reference display brightness.
In a further embodiment, the determining unit 101 determines the second display luminance in the following manner: and controlling the under-screen camera to shoot a display picture in a display area of the under-screen camera based on the backlight display brightness and the screen display gray scale value in the test gray scale image attribute information to obtain a shot image. And obtaining the display brightness corresponding to the shooting gray scale value based on the shooting gray scale value, the screen display gray scale value and the brightness conversion curve corresponding to the shot image, and determining the display brightness corresponding to the shooting gray scale value as the second display brightness.
In another embodiment, the compensation unit 102 performs brightness compensation on the display area of the off-screen camera based on the first display brightness and the second display brightness in the following manner: and if the ratio of the brightness difference between the first display brightness and the second display brightness is smaller than or equal to the first threshold, keeping the display brightness of the display area of the camera under the screen unchanged. And if the brightness difference ratio between the first display brightness and the second display brightness is larger than the first threshold value, compensating the display brightness of the display area of the camera under the screen based on the brightness difference ratio between the first display brightness and the second display brightness and the display brightness of the non-screen camera display area of the terminal.
In another embodiment, the compensation unit 102 compensates the display brightness of the off-screen 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-off-screen camera display area of the terminal in the following manner: and determining a first compensation ratio of the backlight display brightness of the camera display area under the screen of the terminal or determining a second compensation ratio of the backlight display brightness of the camera display area under the non-screen of the terminal based on the brightness difference ratio between the first display brightness and the second display brightness. And if the first compensation ratio of the backlight display brightness of the camera display area under the screen of the terminal is determined, compensating the display brightness of the camera display area under the screen by compensating the backlight display brightness of the camera display area under the screen based on the first compensation ratio and the display brightness of the camera display area under the non-screen of the terminal. And if the second compensation ratio of the backlight display brightness of the non-screen camera display area of the terminal is determined, compensating the display brightness of the non-screen camera display area by compensating the backlight display brightness of the non-screen camera display area based on the second compensation ratio and the display brightness of the non-screen camera display area of the terminal.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram illustrating another luminance compensation apparatus according to an exemplary embodiment. For example, the brightness compensation apparatus 200 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, the brightness compensation apparatus 200 may include one or more of the following components: a processing component 202, a memory 204, a power component 206, a multimedia component 208, an audio component 210, an input/output (I/O) interface 212, a sensor component 214, and a communication component 216.
The processing component 202 generally controls the overall operation of the brightness compensation apparatus 200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 202 may include one or more processors 220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 202 can include one or more modules that facilitate interaction between the processing component 202 and other components. For example, the processing component 202 can include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
The memory 204 is configured to store various types of data to support the operation at the luminance compensation apparatus 200. Examples of such data include instructions for any application or method operating on the illumination compensation apparatus 200, contact data, phonebook data, messages, images, videos, and the like. The memory 204 may be implemented by any type or combination of volatile or non-volatile memory devices, 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 memory, flash memory, magnetic or optical disks.
The power component 206 provides power to various components of the brightness compensation device 200. Power components 206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for brightness compensation device 200.
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 touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front facing camera and/or a rear facing camera. When the brightness compensation apparatus 200 is in an operation mode, such as a photographing mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 210 is configured to output and/or input audio signals. For example, the audio component 210 includes a Microphone (MIC) configured to receive an external audio signal when the brightness compensation apparatus 200 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 204 or transmitted via the communication component 216. In some embodiments, audio component 210 also includes a speaker for outputting audio signals.
The I/O interface 212 provides an interface between the processing component 202 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 214 includes one or more sensors for providing various aspects of state estimation for the illumination compensation apparatus 200. For example, the sensor assembly 214 may detect the open/closed state of the brightness compensation device 200, the relative positioning of the components, such as the display and keypad of the brightness compensation device 200, the sensor assembly 214 may also detect a change in the position of the brightness compensation device 200 or a component of the brightness compensation device 200, 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 a change in the temperature of the brightness compensation device 200. The sensor assembly 214 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The 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, the sensor assembly 214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 216 is configured to facilitate wired or wireless communication between the illumination compensation apparatus 200 and other devices. The brightness compensation device 200 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 further includes a Near Field Communication (NFC) module to facilitate short-range communications. 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.
In an exemplary embodiment, the brightness compensation apparatus 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, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 204 comprising instructions, executable by the processor 220 of the illumination compensation apparatus 200 to perform any of the illumination compensation methods described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 9 is a block diagram illustrating still another luminance compensation apparatus according to an exemplary embodiment. For example, the brightness compensation apparatus 300 may be provided as a server. Referring to fig. 9, the illumination compensation apparatus 300 includes a processing component 322 that further includes one or more processors and memory resources, represented by memory 332, for storing instructions, such as applications, that are executable by the processing component 322. The application programs stored in memory 332 may include one or more modules that each correspond to a set of instructions. Further, the processing component 322 is configured to execute instructions to perform any of the brightness compensation methods described above.
The illumination compensation apparatus 300 may further include a power supply component 326 configured to perform power management of the illumination compensation apparatus 300, a wired or wireless network interface 350 configured to connect the illumination compensation apparatus 300 to a network, and an input/output (I/O) interface 358. The illumination compensation apparatus 300 may operate based on an operating system stored in the memory 332, such as WindowsServerTM, macOSXTM, unixTM, linuxTM, freeBSDTM, or the like.
It is further understood that the use of "a plurality" in this disclosure means two or more, as other terms are analogous. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. The singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It will be further understood that the terms "first," "second," and the like are used to describe various information and that such information should not be limited by these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the terms "first," "second," and the like are fully interchangeable. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It is further understood that, unless otherwise specified, "connected" includes direct connections between the two without other elements and indirect connections between the two with other elements.
It is further to be understood that while operations are depicted in the drawings in a particular order, this is not to be understood as requiring that such operations be performed in the particular order shown or in serial order, or that all illustrated operations be performed, to achieve desirable results. In certain environments, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the scope of the appended claims.

Claims (14)

1. An illumination compensation method applied to a terminal, the illumination compensation method comprising:
determining first display brightness and second display brightness in response to determining to perform brightness compensation on an under-screen camera display area of the terminal;
the first display brightness is the reference display brightness of the display area of the lower screen camera, and the second display brightness is the real-time display brightness of the display area of the lower screen camera;
and performing brightness compensation on the display area of the lower screen camera based on the first display brightness and the second display brightness.
2. The luminance compensation method of claim 1, wherein the determining the first display luminance and the second display luminance comprises:
displaying a plurality of test gray scale images in a time-sharing manner in the display area of the camera under the screen, wherein the test gray scale images correspond to attribute parameters, and the attribute parameters comprise backlight display brightness, a screen display gray scale value and a reference gray scale value of the terminal when the test gray scale images are shot;
determining reference display brightness and real-time display brightness respectively based on the attribute parameters of the test gray scale images aiming at each test gray scale image in the test gray scale images, and obtaining a plurality of display brightness pairs, wherein each display brightness pair comprises the reference display brightness and the real-time display brightness determined based on the attribute parameters of the same test gray scale image;
taking the reference display brightness in the display brightness pair with the maximum brightness difference ratio among the plurality of display brightness pairs as first display brightness, and taking the real-time display brightness in the display brightness pair with the maximum brightness difference ratio among the plurality of display brightness pairs as second display brightness;
the brightness difference ratio is a ratio between a difference between the reference display brightness and the real-time display brightness and the reference display brightness.
3. The luminance compensation method according to claim 2, wherein the determining the reference display luminance based on the attribute parameter of the test gray-scale image comprises:
and obtaining the display brightness corresponding to the reference gray scale value based on the reference gray scale value, the screen display gray scale value and the brightness conversion curve in the test gray scale image attribute information, and determining the display brightness corresponding to the reference gray scale value as the reference display brightness.
4. The luminance compensation method of claim 2, wherein the determining the second display luminance comprises:
controlling the under-screen camera to shoot a display picture in a display area of the under-screen camera based on the backlight display brightness and the screen display gray scale value in the test gray scale image attribute information to obtain a shot image;
and obtaining the display brightness corresponding to the shooting gray scale value based on the shooting gray scale value corresponding to the shot image, the screen display gray scale value and the brightness conversion curve, and determining the display brightness corresponding to the shooting gray scale value as second display brightness.
5. The brightness compensation method according to claim 1, wherein the performing brightness compensation on the display area of the off-screen camera based on the first display brightness and the second display brightness comprises:
if the brightness difference ratio between the first display brightness and the second display brightness is smaller than or equal to a first threshold value, keeping the display brightness of the display area of the camera under the screen unchanged;
and if the brightness difference ratio between the first display brightness and the second display brightness is larger than the first threshold value, compensating the display brightness of the display area of the lower screen camera based on the brightness difference ratio between the first display brightness and the second display brightness and the display brightness of the non-lower screen camera display area of the terminal.
6. The brightness compensation method of claim 5, wherein the compensating the display brightness of the off-screen 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-off-screen camera display area of the terminal comprises:
determining a first compensation ratio of the backlight display brightness of the display area of the camera under the screen of the terminal or determining a second compensation ratio of the backlight display brightness of the display area of the camera under the non-screen of the terminal based on the brightness difference ratio between the first display brightness and the second display brightness;
if a first compensation ratio of the backlight display brightness of the display area of the camera under the screen of the terminal is determined, compensating the display brightness of the display area of the camera under the screen by compensating the backlight display brightness of the display area of the camera under the screen based on the first compensation ratio and the display brightness of the display area of the camera under the non-screen of the terminal;
and if a second compensation ratio of the backlight display brightness of the non-screen camera display area of the terminal is determined, compensating the display brightness of the non-screen camera display area by compensating the backlight display brightness of the non-screen camera display area based on the second compensation ratio and the display brightness of the non-screen camera display area of the terminal.
7. An illumination compensation apparatus applied to a terminal, the illumination compensation apparatus comprising:
the determining unit is used for responding to the determination of brightness compensation of the display area of the camera under the screen of the terminal and determining first display brightness and second display brightness;
the first display brightness is the reference display brightness of the display area of the lower screen camera, and the second display brightness is the real-time display brightness of the display area of the lower screen camera;
and the compensation unit is used for performing brightness compensation on the display area of the camera under the screen based on the first display brightness and the second display brightness.
8. The luminance compensation apparatus according to claim 7, wherein the determination unit determines the first display luminance and the second display luminance in such a manner that:
displaying a plurality of test gray scale images in a time-sharing manner in the display area of the camera under the screen, wherein the test gray scale images correspond to attribute parameters, and the attribute parameters comprise backlight display brightness, a screen display gray scale value and a reference gray scale value of the terminal when the test gray scale images are shot;
determining reference display brightness and real-time display brightness respectively based on the attribute parameters of the test gray scale images aiming at each test gray scale image in the test gray scale images, and obtaining a plurality of display brightness pairs, wherein each display brightness pair comprises the reference display brightness and the real-time display brightness determined based on the attribute parameters of the same test gray scale image;
taking the reference display brightness in the display brightness pair with the maximum brightness difference ratio among the plurality of display brightness pairs as first display brightness, and taking the real-time display brightness in the display brightness pair with the maximum brightness difference ratio among the plurality of display brightness pairs as second display brightness;
the brightness difference ratio is a ratio between a difference between the reference display brightness and the real-time display brightness and the reference display brightness.
9. The luminance compensation apparatus as claimed in claim 8, wherein the determining unit determines the reference display luminance based on the attribute parameter of the test grayscale image by:
and obtaining the display brightness corresponding to the reference gray scale value based on the reference gray scale value, the screen display gray scale value and the brightness conversion curve in the test gray scale image attribute information, and determining the display brightness corresponding to the reference gray scale value as the reference display brightness.
10. The luminance compensation device according to claim 8, wherein the determination unit determines the second display luminance in the following manner:
controlling the under-screen camera to shoot a display picture in a display area of the under-screen camera based on the backlight display brightness and the screen display gray scale value in the test gray scale image attribute information to obtain a shot image;
and obtaining the display brightness corresponding to the shooting gray scale value based on the shooting gray scale value corresponding to the shot image, the screen display gray scale value and the brightness conversion curve, and determining the display brightness corresponding to the shooting gray scale value as second display brightness.
11. The luminance compensation device according to claim 7, wherein the compensation unit performs luminance compensation on the display area of the off-screen camera based on the first display luminance and the second display luminance in the following manner:
if the brightness difference ratio between the first display brightness and the second display brightness is smaller than or equal to a first threshold value, keeping the display brightness of the display area of the camera under the screen unchanged;
and if the brightness difference ratio between the first display brightness and the second display brightness is larger than the first threshold value, compensating the display brightness of the display area of the camera under the screen based on the brightness difference ratio between the first display brightness and the second display brightness and the display brightness of the non-screen camera display area of the terminal.
12. The luminance compensation apparatus as claimed in claim 11, wherein the compensation unit compensates the display luminance of the off-screen camera display area based on the luminance difference ratio between the first display luminance and the second display luminance, and the display luminance of the non-off-screen camera display area of the terminal by:
determining a first compensation ratio of the backlight display brightness of the camera display area under the terminal screen or determining a second compensation ratio of the backlight display brightness of the camera display area under the terminal non-screen based on the brightness difference ratio between the first display brightness and the second display brightness;
if a first compensation ratio of the backlight display brightness of the display area of the camera under the screen of the terminal is determined, compensating the display brightness of the display area of the camera under the screen by compensating the backlight display brightness of the display area of the camera under the screen based on the first compensation ratio and the display brightness of the display area of the camera under the non-screen of the terminal;
and if a second compensation ratio of the backlight display brightness of the non-screen camera display area of the terminal is determined, compensating the display brightness of the non-screen camera display area by compensating the backlight display brightness of the non-screen camera display area based on the second compensation ratio and the display brightness of the non-screen camera display area of the terminal.
13. A luminance compensation apparatus, characterized in that the luminance compensation apparatus comprises:
a memory to store instructions; and
a processor for invoking the memory-stored instructions to perform the illumination compensation method of any of claims 1-6.
14. A computer readable storage medium having stored therein instructions which, when executed by a processor, perform a brightness compensation method according to any one of claims 1-6.
CN202110862019.7A 2021-07-29 2021-07-29 Luminance compensation method, luminance compensation device, and storage medium Pending CN115691418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110862019.7A CN115691418A (en) 2021-07-29 2021-07-29 Luminance compensation method, luminance compensation device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110862019.7A CN115691418A (en) 2021-07-29 2021-07-29 Luminance compensation method, luminance compensation device, and storage medium

Publications (1)

Publication Number Publication Date
CN115691418A true CN115691418A (en) 2023-02-03

Family

ID=85057699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110862019.7A Pending CN115691418A (en) 2021-07-29 2021-07-29 Luminance compensation method, luminance compensation device, and storage medium

Country Status (1)

Country Link
CN (1) CN115691418A (en)

Similar Documents

Publication Publication Date Title
CN107038037B (en) Display mode switching method and device
CN108986053B (en) Screen display method and device
CN113450713B (en) Screen display method and device and gray scale mapping information generation method and device
CN108492767A (en) Prevent the method, apparatus and storage medium of display burn-in
CN109215578B (en) Screen display method and device
CN112365863A (en) Brightness adjusting method and device, display equipment and storage medium
CN112201211A (en) Ambient light collection method and device, terminal and storage medium
CN111290723A (en) Display background adjusting method, device, terminal and storage medium
CN112116670A (en) Information processing method and device, electronic device and storage medium
CN112905135A (en) Screen brightness processing method, electronic device and storage medium
CN111383608B (en) Display control method and apparatus, electronic device, and computer-readable storage medium
CN109102779B (en) Backlight adjusting method and device
CN108156381B (en) Photographing method and device
CN113241044B (en) Screen brightness adjusting method, device, equipment and storage medium
CN114120898B (en) Brightness adjusting method, brightness adjusting device and computer readable storage medium
CN113066452B (en) Display control method and device, electronic equipment and computer readable storage medium
CN115691418A (en) Luminance compensation method, luminance compensation device, and storage medium
CN111383583B (en) Display control method and apparatus, electronic device, and computer-readable storage medium
CN111383568B (en) Display control method and device, electronic equipment and computer readable storage medium
CN116453459A (en) Screen display method and device, readable storage medium and electronic equipment
CN108986753B (en) Interface display method and device
CN115145662A (en) Screen display brightness adjusting method and device and storage medium
CN112188111A (en) Photographing method and device, terminal and storage medium
CN114416226A (en) Display adjusting method, device, terminal and storage medium
CN113470583B (en) Display screen adjusting method and device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination