CN114283732B - Brightness compensation method and device, storage medium and electronic equipment - Google Patents

Brightness compensation method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114283732B
CN114283732B CN202111674430.8A CN202111674430A CN114283732B CN 114283732 B CN114283732 B CN 114283732B CN 202111674430 A CN202111674430 A CN 202111674430A CN 114283732 B CN114283732 B CN 114283732B
Authority
CN
China
Prior art keywords
brightness
under
values
display
screen
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.)
Active
Application number
CN202111674430.8A
Other languages
Chinese (zh)
Other versions
CN114283732A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202111674430.8A priority Critical patent/CN114283732B/en
Publication of CN114283732A publication Critical patent/CN114283732A/en
Application granted granted Critical
Publication of CN114283732B publication Critical patent/CN114283732B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a brightness compensation method, a device, a storage medium and electronic equipment, wherein the method comprises the following steps: acquiring gray scale values of all pixel points in an under-screen shooting area of a display screen and a current display brightness gear of the display screen; acquiring a brightness compensation table corresponding to the display brightness gear from a brightness compensation table set, and acquiring a brightness compensation value of each pixel point in the brightness compensation table based on the gray scale value of each pixel point; and carrying out brightness compensation on the pixel points based on each brightness compensation value. By adopting the method and the device, the display brightness of each pixel point in the under-screen shooting area can be consistent, and the user experience is improved.

Description

Brightness compensation method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a brightness compensation method, a device, a storage medium, and an electronic apparatus.
Background
In order to increase the screen occupation ratio of the mobile phone and improve the user experience, the under-screen camera shooting technology is now a development direction. The main realization method of the under-screen camera shooting technology is that a camera is placed below a display screen, and a shooting function is realized by improving the screen light inlet amount and the full-spectrum transmittance corresponding to the area where the camera is located.
Disclosure of Invention
The embodiment of the application provides a brightness compensation method, a device, a storage medium and electronic equipment, which can enable display brightness of each pixel point of an under-screen image pickup area to be consistent.
The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a brightness compensation method, including:
acquiring gray scale values of all pixel points in an under-screen shooting area of a display screen and a current display brightness gear of the display screen;
acquiring a brightness compensation table corresponding to the display brightness gear from a brightness compensation table set, and acquiring a brightness compensation value of each pixel point in the brightness compensation table based on the gray scale value of each pixel point;
and carrying out brightness compensation on the pixel points based on each brightness compensation value.
In a second aspect, an embodiment of the present application provides a brightness compensation device, including:
the data acquisition module is used for acquiring gray scale values of all pixel points in an under-screen shooting area of the display screen and the current display brightness gear of the display screen;
the compensation value acquisition module is used for acquiring a brightness compensation table corresponding to the display brightness gear in a brightness compensation table set, and acquiring the brightness compensation value of each pixel point in the brightness compensation table based on the gray scale value of each pixel point;
And the brightness compensation module is used for carrying out brightness compensation on the pixel points based on each brightness compensation value.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method steps of the first aspect described above.
In a fourth aspect, embodiments of the present application provide an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of the first aspect described above.
The technical scheme provided by some embodiments of the present application has the beneficial effects that at least includes:
in the embodiment of the application, gray scale values of all pixel points in an under-screen shooting area of a display screen and a current display brightness gear of the display screen are obtained; acquiring a brightness compensation table corresponding to the display brightness gear from a brightness compensation table set, and acquiring a brightness compensation value of each pixel point in the brightness compensation table based on the gray scale value of each pixel point; and carrying out brightness compensation on the pixel points based on each brightness compensation value. By adopting the method and the device, the display brightness of each pixel point in the under-screen shooting area can be consistent, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an exemplary schematic diagram of a mobile terminal according to an embodiment of the present application;
FIG. 2 is an exemplary schematic diagram of an under-screen camera switch area provided in an embodiment of the present application;
fig. 3 is an exemplary schematic diagram of a mobile terminal according to an embodiment of the present application;
fig. 4 is a flowchart of a brightness compensation method according to an embodiment of the present application;
FIG. 5 is an exemplary diagram of a display brightness level according to an embodiment of the present disclosure;
fig. 6 is a flowchart of a brightness compensation method according to an embodiment of the present application;
fig. 7 is a flowchart of a brightness compensation method according to an embodiment of the present application;
fig. 8 is an exemplary schematic diagram of a mobile terminal according to an embodiment of the present application;
fig. 9 is an exemplary schematic diagram of a mobile terminal according to an embodiment of the present application;
Fig. 10 is a schematic structural diagram of a brightness compensation device according to an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of a brightness compensation device according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of a luminance value obtaining module according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a brightness compensation generating module according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of a target compensation table generating unit provided in an embodiment of the present application;
fig. 15 is a schematic structural diagram of a target luminance value acquisition unit provided in the embodiment of the present application;
fig. 16 is a schematic structural diagram of a target luminance value acquisition unit provided in the embodiment of the present application;
fig. 17 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
In the description of the present application, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art in a specific context. Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
As shown in fig. 1, in a mobile terminal to which an under-screen image capturing technology is applied, a display screen of the mobile terminal may be divided into an under-screen image capturing area and a non-under-screen image capturing area. In order to make the light entering amount and the full spectrum transmittance of the under-screen image capturing area consistent with those of the non-under-screen image capturing area, in the prior art, control switches of pixels are placed on two sides of the under-screen image capturing area, as shown in fig. 2, in order to make the under-screen image capturing area of the display screen, the under-screen image capturing area comprises a plurality of pixel points, and each pixel point is controlled by a corresponding control switch. The control switches corresponding to the pixel points are placed on two sides of the pixel points, so that a control mode of controlling one pixel point by one control switch can ensure the light incoming quantity of the under-screen image pickup area and the transmittance of the full spectrum, but one control switch controls one pixel point, so that the connection line length between the control switch of each pixel point and the pixel point cannot be kept consistent, and the consistency of the brightness and the chromaticity of the under-screen image pickup area is poor when the brightness value of the under-screen image pickup area is in a lower range, as shown in fig. 3, the brightness display of the under-screen image pickup area is particularly uneven.
Based on the above, the present application provides a brightness compensation method, in which a brightness compensation table set is established in advance, the brightness compensation table set includes a brightness compensation table corresponding to a display brightness gear, and the brightness compensation table set is burned into a random access memory (Random Access Memory, RAM), when an image is displayed on a display screen, the brightness compensation table corresponding to the current display brightness gear is obtained from the brightness compensation table set, and brightness compensation is performed on each pixel point of an under-screen image capturing area based on the corresponding brightness compensation table, so that brightness display of the under-screen image capturing area is uniform.
The method may be implemented in dependence on a computer program, and may be run on a brightness compensation device based on von neumann systems. The computer program may be integrated in the application or may run as a stand-alone tool class application. The brightness compensation device in the embodiment of the present application may be a mobile terminal, including but not limited to: smart interactive tablets, personal computers, tablet computers, handheld devices, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and the like. User terminals may be called different names in different networks, for example: a user equipment, an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent or user equipment, a cellular telephone, a cordless telephone, a personal digital assistant (Personal Digital Assistant, PDA), a terminal device in a 5G network or a future evolution network, and the like.
The present application is described in detail with reference to specific examples.
The implementation scene of the brightness compensation method can be that when a display screen of the mobile terminal adopting the under-screen image pickup technology is used for carrying out image display, gray scale values of all pixel points in an under-screen image pickup area of the display screen and current display brightness gears of the display screen are obtained, a corresponding brightness compensation table is searched in a RAM (random access memory) of the mobile terminal based on the current display brightness gears of the display screen, brightness compensation is carried out on all pixel points corresponding to the under-screen image pickup area according to the searched brightness compensation values corresponding to all gray scales in the brightness compensation table, so that the brightness of the under-screen image pickup area is uniformly displayed, and user experience is improved.
Fig. 4 is a flowchart of a brightness compensation method according to an embodiment of the present application. The embodiment of the application is described by taking a mobile terminal side as an example, and the brightness compensation method may include the following steps:
s101, acquiring gray scale values of all pixel points in an under-screen shooting area of a display screen and a current display brightness gear of the display screen;
before the gray scale value of each pixel point in the under-screen shooting area of the display screen and the current display brightness gear of the display screen are obtained, gamma correction is needed to be carried out on the display screen, wherein the reason for carrying out the gamma correction is that the value corresponding to each basic color channel is not in a simple linear relation with power, but in a power function relation, the exponent of the function is called gamma correction value, generally 2.2, and the conversion process is called gamma correction. After gamma correction is carried out, the proportion of the dark color part and the light color part in the image is increased, so that the image picture is more suitable for the response of human eyes to the change of brightness, and a better display effect is achieved.
The basic color is based on the color set by the display screen, and in one embodiment, the basic color needs to include red, green and blue, and may also include other colors, for example, the basic color may be red, green, blue and yellow.
The gray scale value of each pixel point in the under-screen image pickup area can be obtained by inserting a corresponding source file into an image processor of the mobile terminal based on an established (Central Data Input Bureau, CDIB) type frame, and the gray scale value of each pixel point in the under-screen image pickup area can be obtained by using the image processor, or the gray scale value of each pixel point in the under-screen image pickup area can be directly read by using an open source code computer vision library (Open Source Computer Vision Library, OPENCV).
The display brightness levels are the display brightness levels of the display screen, as shown in fig. 5, the display brightness levels of the display screen can be several, and the display screen will display different brightness in different display brightness levels, and all the gray scale levels are corresponding to each display brightness level. For example, in an 8-bit processing system, i.e. a mobile terminal having 256 gray levels, if the mobile terminal is in the brightness display range of the first range, one image may have 256 gray levels.
The current display brightness gear of the display screen can be the display brightness gear automatically regulated by the mobile terminal according to the light environment of the mobile terminal, and can also be the display brightness gear selected by the user according to the self requirement.
S102, acquiring a brightness compensation table corresponding to the display brightness gear in a brightness compensation table set, and acquiring a brightness compensation value of each pixel point in the brightness compensation table based on the gray scale value of each pixel point;
the brightness compensation table set comprises brightness compensation tables corresponding to all brightness display gears of the mobile terminal, and each brightness compensation table corresponding to each brightness display gear comprises gray scale compensation values and brightness compensation values corresponding to all gray scales. The gray scale is the brightness level relationship between darkest black and brightest white of the display, namely the brightness. All gray levels represent all brightness levels between darkest black to brightest white of the display screen of the mobile terminal. The domestic LED display screen mainly adopts an 8-bit processing system, namely 256-level gray scales. The brightness compensation table may be brightness compensation values of all gray scales of each pixel point of the under-screen image capturing area in each basic color channel under all brightness display gears of the mobile terminal, where the brightness compensation values are brightness values that all gray scales of each pixel point of the under-screen image capturing area in each basic color channel need to be increased or decreased.
Because the brightness compensation table set includes the brightness compensation table corresponding to the current display brightness level of the display screen, the brightness compensation table corresponding to the display brightness level can be searched in the brightness compensation table set according to the current display brightness level of the display screen, for example, the display brightness level of the display screen includes ten display brightness levels in total, the current display brightness level of the display screen is the first level, and then the brightness compensation table set searches the brightness compensation table with the display brightness level being the first level.
And searching a brightness compensation value corresponding to the gray scale value of each pixel point of the image pickup area under the screen in a brightness compensation table corresponding to the current display brightness gear of the display screen.
And S103, performing brightness compensation on the pixel points based on the brightness compensation values.
The brightness compensation may be performed by increasing or decreasing the brightness of each pixel by a corresponding brightness compensation value, so that the brightness values of each pixel are consistent, and the brightness is not uniform due to different lengths of the connection lines between the control switch of each pixel and the pixel. For example, if the luminance value of a certain pixel point in the under-screen image capturing area is 99 nit and the luminance compensation corresponding to a certain pixel point in the under-screen image capturing area is 1 nit, the luminance value of the pixel point is increased by 1 nit to reach 100 nit.
In one embodiment, the brightness compensation values of all the gray scales of each pixel point of the under-screen image capturing area in each basic color channel can be converted into corresponding electrical signal values, and each electrical signal value is respectively used as the brightness compensation value of each gray scale in each basic color channel to obtain a target brightness compensation table corresponding to the target brightness gear.
For example, the brightness may be adjusted by adjusting the gray-scale value, and the gray-scale value may be adjusted by adjusting the current flowing in the driving circuit of the pixel, so that the led is allowed to continuously operate at about 20 milliamperes, and the gray-scale value of the other leds is basically proportional to the current flowing except for the red led. The gray scale value adjustment can also be realized by a pulse width modulation method, that is, the light pulse width, that is, the duty cycle, is periodically changed, so long as the period of repeated lighting is short enough, that is, the refresh frequency is high enough, and the human eyes cannot feel that the luminous pixels shake.
By adopting the embodiment of the application, the gray scale value of each pixel point in the under-screen shooting area of the display screen and the current display brightness gear of the display screen are obtained; acquiring a brightness compensation table corresponding to the display brightness gear from a brightness compensation table set, and acquiring a brightness compensation value of each pixel point in the brightness compensation table based on the gray scale value of each pixel point; and carrying out brightness compensation on the pixel points based on each brightness compensation value. The brightness display of the under-screen camera shooting area can be uniform, and the user experience is improved.
Fig. 6 is a flowchart of a brightness compensation method according to an embodiment of the present application. In this embodiment, based on the brightness values of all the gray scales of each pixel point of the under-screen image capturing area under each display brightness level in each basic color channel and the brightness values of all the gray scales of the under-screen image capturing area of the display screen under each display brightness level in each basic color channel, a brightness compensation table set is generated and stored in the RAM so as to be directly called when brightness compensation is executed subsequently. The embodiment of the application will be described taking the side of the brightness compensation device as an example, and the brightness compensation method may include the following steps:
s201, obtaining brightness values of all gray scales of all pixel points of an under-screen image pickup area under each display brightness level in each basic color channel, and obtaining brightness values of all gray scales of an under-screen image pickup area of a display screen under each display brightness level in each basic color channel;
in one embodiment, a brightness compensation table corresponding to the white channel may be generated based on brightness values of all gray scales of each pixel point in the white channel and brightness values of all gray scales of the non-under-screen image capturing area in the white channel, after brightness compensation is performed on each pixel point in the under-screen image capturing area based on the brightness compensation table, brightness values of all gray scales of each basic color channel of each pixel point in the under-screen image capturing area under each display brightness level are further based on the brightness values of all gray scales of each basic color channel in the non-under-screen image capturing area of the display screen under each display brightness level, and a corresponding brightness compensation table set is generated so as to perform brightness compensation on each pixel point in the under-screen image capturing area based on the brightness compensation table set.
In one embodiment, one color of the basic colors is input to a display screen of the terminal device, brightness values of all gray scales of all pixel points of an under-screen image capturing area under each display brightness level in the input color channel are obtained, and brightness values of all gray scales of other color channels in the basic colors can be obtained in the same manner until brightness values of all gray scales of all basic color channels of all pixel points of the under-screen image capturing area under each display brightness level are obtained. The sequence of the basic colors is not limited.
The brightness values of all the gray scales of the pixel points of the image capturing area under the screen under each display brightness level can be obtained by adopting a charge coupled device (Charge Coupled Device Camera, CCD), and the brightness values of all the gray scales of the pixel points of the image displayed on the display screen under each display brightness level can not be directly obtained from the mobile terminal because only the gray scale information of the image displayed on the display screen of the mobile terminal can be obtained from the mobile terminal, so that a CCD camera with higher resolution than the resolution of the mobile terminal can be adopted to obtain the brightness values of all the gray scales of the pixel points of the image capturing area under the screen under each display brightness level and the brightness values of all the gray scales of the non-screen image capturing area of the display screen under each display brightness level.
The brightness compensation values of all gray scales of each basic color channel for each pixel point may be different for different display brightness levels, so that the brightness values of all gray scales of the non-under-screen image capturing area of the display screen in each basic color channel under each display brightness level need to be obtained.
For example, for one of the display luminance levels, taking the green channel as an example, the luminance values of all the gray scales of the non-under-screen image capturing area in the green channel are shown in table 1.
TABLE 1
Gray scale value G1 G2 G100 G101 G102 G256
Brightness value L1 L2 L100 L101 L102 L256
For example, for one of the display luminance ranges, the luminance values of all the gray scales of one pixel point in the green channel of the under-screen image pickup area are shown in table 2.
TABLE 2
Gray scale value G-1 G-2 G-100 G-101 G-102 G-256
Brightness value L-1 L-2 L-100 L-101 L-102 L-256
It can be understood that the brightness values of all gray scales of the other color channels are obtained in the same manner as described above.
S202, generating a brightness compensation table set based on brightness values of all gray scales of each pixel point in each basic color channel and brightness values of all gray scales of the non-screen image pickup area in each basic color channel, wherein the brightness compensation table set comprises brightness compensation tables respectively corresponding to different display brightness levels;
and generating a brightness compensation table set based on the brightness values of all the gray scales of one pixel point of the under-screen image pickup area in each basic color and the brightness values of one pixel point of the non-under-screen image pickup area in each basic color, namely based on the difference value corresponding to the brightness values of all the gray scales of the pixel points in each basic color channel and the brightness values of all the gray scales of the non-under-screen image pickup area in each basic color channel, wherein the difference value is used as the brightness compensation value of all the gray scales of each pixel point of the under-screen image pickup area in each basic color channel, and based on the brightness compensation values of all the gray scales of each pixel point of the under-screen image pickup area in each basic color channel under different display brightness gears, and the brightness compensation table set comprises brightness compensation tables respectively corresponding to different display brightness gears. The brightness compensation table set is stored in the RAM, and can be directly called in the subsequent brightness compensation process.
In one embodiment, the brightness compensation values of all the gray scales of each pixel point of the under-screen image capturing area in each basic color channel can be converted into corresponding electric signals, and the electric signal values are respectively used as the brightness compensation values of each gray scale in each basic color channel to obtain a target brightness compensation table corresponding to the target brightness gear.
S203, acquiring gray scale values of all pixel points in an under-screen shooting area of a display screen and a current display brightness gear of the display screen;
please refer to S101, which is not described herein.
S204, acquiring a brightness compensation table corresponding to the display brightness gear in a brightness compensation table set, and acquiring a brightness compensation value of each pixel point in the brightness compensation table based on the gray scale value of each pixel point;
please refer to S102, which is not described herein.
And S205, carrying out brightness compensation on the pixel points based on each brightness compensation value.
Please refer to S103, which is not described herein.
By means of the embodiment of the application, the brightness compensation table set is established in advance, the brightness compensation table set comprises a brightness compensation table corresponding to a display brightness gear, the brightness compensation table set is burnt into the RAM, when an image is displayed on a display screen, gray scale values of all pixel points in an under-screen shooting area of the display screen and the current display brightness gear of the display screen are obtained, the brightness compensation table corresponding to the display brightness gear is obtained in the brightness compensation table set, brightness compensation values of all pixel points are obtained in the brightness compensation table based on the gray scale values of all the pixel points, and brightness compensation is conducted on the pixel points based on all the brightness compensation values. Therefore, when the display screen displays images, the brightness of each pixel point of the under-screen image pickup area is compensated in real time, so that the brightness display of the under-screen image pickup area is uniform, the user experience is improved, and the brightness compensation table set comprising the brightness compensation tables corresponding to the display brightness gears generated by using the brightness values of all gray scales of each basic color channel based on the non-under-screen image pickup area can be used for compensating the brightness values of the under-screen image pickup area to be consistent with the brightness values of the non-under-screen area, so that the display effect of the under-screen image pickup area is identical with the display effect of the non-under-screen image pickup area.
Fig. 7 is a flowchart of a brightness compensation method according to an embodiment of the present application.
In this embodiment, the description is made taking the basic colors as red, green and blue as examples, and based on the brightness values of all the gray scales of each pixel point of the under-screen image capturing area and the non-under-screen image capturing area of one display brightness level respectively in each basic color channel, the brightness values of all the gray scales of each pixel point of the under-screen image capturing area and the non-under-screen image capturing area of other display brightness levels respectively in each basic color channel can be obtained, so as to generate brightness compensation tables corresponding to all the display brightness levels. The embodiment of the application will be described taking the side of the brightness compensation device as an example, and the brightness compensation method may include the following steps:
s301, obtaining brightness values of all gray scales of each pixel point of an image pickup area under a screen under a target display brightness gear in each basic color channel; acquiring brightness values of all gray scales of a non-under-screen shooting area of the display screen in each basic color channel under the target display brightness gear;
the target display brightness level may be any display brightness in all display brightness levels of the mobile terminal, and the method of obtaining brightness values of all gray scales of each pixel point of the under-screen image pickup area in each basic color channel under any display brightness level in all display brightness levels may be that brightness values of preset number of gray scales of each pixel point of the under-screen image pickup area in each basic color channel under any display brightness level are obtained; and linearly interpolating the brightness values of the preset number of gray scales of each pixel point of the image pickup area under the screen under any display brightness level in each basic color channel.
For example, if the display screen is 10 bytes, the corresponding maximum gray level is 1023, the brightness values of 6 gray levels of each pixel point of the under-screen image capturing area under any display brightness level in each basic color channel are obtained, and then the brightness values of 0-1023 gray levels of each pixel point of the under-screen image capturing area under any display brightness level in each basic color channel are obtained by adopting a linear interpolation mode based on the obtained brightness values of 6 gray levels.
The obtaining of the brightness values of all gray scales of the non-under-screen image pickup area of the display screen under the target display brightness level in each basic color channel can be that of obtaining the preset number of gray scales of the non-under-screen image pickup area of the display screen under the target display brightness level in each basic color channel;
and linearly interpolating the brightness values of the gray scales designated by the preset number of the non-under-screen shooting areas of the display screen under the target display brightness level in each basic color channel to obtain the brightness values of all the gray scales of the non-under-screen shooting areas of the display screen under the target display brightness level in each basic color channel.
Taking basic colors as red, green and blue as examples, if the display screen is 8 bytes, the corresponding maximum gray level is 255, the brightness values of 6 gray levels of the non-under-screen shooting area of the display screen in red, green and blue three channels under any display brightness level are obtained, and then the brightness values of 0-255 gray levels of the non-under-screen shooting area of the display screen in the target display brightness level are obtained by adopting a linear interpolation mode based on the obtained brightness values of 6 gray levels.
In order to reduce the data volume to be acquired, only a target area in a non-screen lower image pickup area can be intercepted, and the brightness values of all gray scales of all pixel points of the target area in red, green and blue channels under a target display brightness gear can be acquired; for example, as shown in fig. 8, a rectangular portion in the non-under-screen image pickup area is a selected target area, and only luminance values of all gray scales of each pixel point in three channels of red, green, and blue in the target area are acquired.
Then, the average value of the brightness values of all the gray scales of each pixel point in the red, green and blue channels in the target area in the target display brightness level can be calculated, and the brightness values of all the gray scales of the non-under-screen image capturing area in the red, green and blue channels in the non-under-screen image capturing area in the target display brightness level can be obtained by taking the average value as the brightness value of each gray scale in the red, green and blue channels in the non-under-screen image capturing area in the target display brightness level.
The target area is a preset area in the non-under-screen image capturing area, or may be an area selected randomly when brightness values of all gray scales of the red, green and blue three channels of the non-under-screen image capturing area of the display screen under the target display brightness level are obtained, the number, the area and the shape of the target area are not limited, but the area of the target area may be smaller than that of the non-under-screen image capturing area.
S302, fitting brightness values of all gray scales of all pixel points of the under-screen image pickup area under the target display brightness level in each basic color channel to obtain brightness values of all gray scales of all pixel points of the under-screen image pickup area under other display brightness levels in each basic color channel; fitting the brightness values of all gray scales of all pixel points of the non-under-screen photographing area in each basic color channel under the target display brightness level to obtain the brightness values of all gray scales of all pixel points of the non-under-screen photographing area in each basic color channel under other display brightness levels;
taking basic colors as red, green and blue as examples, a primary fitting or secondary fitting mode can be adopted to fit all brightness values of all pixel points of an under-screen image pickup area in red, green and blue three channels under a target display brightness gear, so that brightness values of all gray scales of all pixel points of the under-screen image pickup area in the red, green and blue three channels under other display brightness gears except the target display brightness gear are obtained.
And fitting the brightness values of all gray scales of the non-under-screen shooting area of the display screen in the red, green and blue channels under the target display brightness level by adopting a one-time fitting or two-time fitting mode to obtain the brightness values of all gray scales of the non-under-screen shooting area of the display screen in the red, green and blue channels under the target display brightness level.
S303, generating a target brightness compensation table corresponding to a target display brightness level based on brightness values of all gray scales of each pixel point of an under-screen image pickup area of the target display brightness level in each basic color channel and brightness values of all gray scales of a non-under-screen image pickup area of the display screen in each basic color channel in the target display brightness level;
taking basic colors as red, green and blue as examples, the difference value corresponding to the brightness value of all the gray scales of all the pixel points of the image pickup area under the screen of the target display brightness level and the brightness value of all the gray scales of the non-screen image pickup area of the display screen under the target display brightness level under the red, green and blue channels can be calculated, the corresponding difference value is taken as the brightness compensation value of all the gray scales of all the pixel points of the image pickup area under the screen under the target display brightness level under the red, green and blue channels, and a target brightness compensation table corresponding to the target display brightness level is generated based on the brightness compensation value, the brightness value of all the gray scales of all the pixel points of the image pickup area under the screen under the target display brightness level under the red, green and blue channels.
In one embodiment, converting brightness values of all gray scales of each pixel point in red, green and blue channels into corresponding first gray scale values; converting brightness values of all gray scales of the non-screen image pickup area in red, green and blue channels into corresponding second gray scale values; and generating a target brightness compensation table corresponding to the target brightness gear based on the first gray scale values and the second gray scale values.
The first gray scale value is a corresponding gray scale value obtained by converting brightness values of all gray scales of all pixel points of the under-screen image pickup area in the red, green and blue channels, and the second gray scale value is a corresponding gray scale value obtained by converting brightness values of all gray scales of the under-screen image pickup area in the red, green and blue channels.
The conversion relation between the brightness value and the gray scale value is as follows: luminance value=0.299×r+0.587×g+0.114×b, where R is a d value of a red channel, G is a value of a green channel, and B is a value of a blue channel.
The brightness value of all gray scales of each pixel point in the under-screen image pickup area in red, green and blue channels=0.299×r1+0.587xg1+0.114×b1, wherein R1 is the value of each pixel point in the under-screen image pickup area in the red channel, G1 is the value of each pixel point in the under-screen image pickup area in the green channel, and B1 is the value of each pixel point in the under-screen image pickup area in the blue channel.
The brightness values of all gray scales of the non-under-screen image pickup area in red, green and blue channels=0.299×R-1+0.587×G-1+0.114×B-1, wherein R-1 is the value of the non-under-screen image pickup area in the red channel, G-1 is the value of the non-under-screen image pickup area in the green channel, and B-1 is the value of the non-under-screen image pickup area in the blue channel.
Calculating gray scale difference values of a first gray scale value and a corresponding second gray scale value of each gray scale in the red, green and blue channels;
converting each gray level difference value into an electric signal value, and respectively using each electric signal value as a brightness compensation value of each gray level in the red, green and blue channels to obtain a target brightness compensation table corresponding to the target brightness gear.
The electric signal may be a current signal or a voltage signal, for example, when the electric signal is a current signal, the corresponding current difference value may be used as a brightness compensation value of each gray scale in the red, green and blue channels, so as to obtain a target brightness compensation table corresponding to the target brightness gear.
For example, as shown in table 3, the gray-scale values in the table are the gray-scale values of the under-screen image capturing area in the green channel, the compensation values in the table are the gray-scale difference values of the first gray-scale values and the corresponding second gray-scale values of the green channel, that is, the gray-scale compensation values of the under-screen image capturing area in the green channel, which need to be compensated, and the gray-scale difference values are converted into electrical signal values, for example, converted into corresponding voltage values, and are burnt into the RAM.
TABLE 3 Table 3
Address of Gray scale value Compensation value Register value
0×1 G1 D-G1 reg-1
0×2 G2 D-G2 reg-2
0×3 G3 D-G3 reg-3
0×4 G4 D-G4 reg-4
0×5 G5 D-G5 reg-5
0×6 G6 D-G6 reg-6
0×7 G7 D-G7 reg-7
0×255 G256 D-G256 reg-256
S304, generating brightness compensation tables corresponding to other display brightness levels based on brightness values of all gray scales of all pixel points of the under-screen image capturing area in each basic color channel under other display brightness levels and brightness values of all gray scales of all pixel points of the under-screen image capturing area in each basic color channel under other display brightness levels;
taking basic colors as red, green and blue as examples, the same way as the generation mode of the brightness compensation table corresponding to the target display brightness level is adopted, so that brightness values of all gray scales of all pixels of the image capturing area under the screen in the red, green and blue three channels under other display brightness levels can be calculated, and differences between the brightness values of all the gray scales of all the pixels of the image capturing area under the non-screen in the other display brightness levels under the screen in the red, green and blue three channels under other display brightness levels are used as brightness compensation values of all the gray scales of all the pixels of the image capturing area under the screen in the red, green and blue three channels under other display brightness levels, and the brightness values of all the gray scales of all the pixels of the image capturing area under the non-screen in the red, green and blue three channels under other display brightness levels are generated based on the brightness compensation values of all the gray scales of all the pixels in the red, green and blue three channels under the other display brightness levels under the screen.
S305, acquiring gray scale values of all pixel points in an under-screen shooting area of a display screen and a current display brightness gear of the display screen;
please refer to S101, which is not described herein.
S306, acquiring a brightness compensation table corresponding to the display brightness gear in a brightness compensation table set, and acquiring a brightness compensation value of each pixel point in the brightness compensation table based on the gray scale value of each pixel point;
please refer to S102, which is not described herein.
S307, carrying out brightness compensation on the pixel points based on the brightness compensation values.
Please refer to S103, which is not described herein.
After the brightness compensation is performed on the pixel points based on the brightness compensation values, as shown in fig. 9, brightness display of the under-screen image capturing area is uniform, and user experience is improved.
By adopting the method and the device, the brightness values of all gray scales of the lower-screen image pickup area and the non-lower-screen image pickup area of the lower-screen image pickup area of one display brightness level can be obtained based on the brightness values of all gray scales of the lower-screen image pickup area and the non-lower-screen image pickup area of the other display brightness level, and then the brightness compensation tables corresponding to all the display brightness levels are generated. The calculation mode can reduce the calculation amount by only calculating the brightness values of all the gray scales of each pixel point of the under-screen image pickup area in each basic color channel under one display brightness gear and the brightness values of all the gray scales of the non-under-screen image pickup area in each basic color channel, thereby reducing the calculation amount. When the display screen displays images, compensation is performed on each pixel point of the under-screen image pickup area in real time, so that the brightness of the under-screen image pickup area is uniformly displayed, and the user experience is improved. And because the brightness values of all gray scales of each basic color channel based on the non-under-screen image pickup area are used for generating a brightness compensation table set comprising brightness compensation tables corresponding to display brightness gears, the brightness values of the under-screen image pickup area are compensated to be consistent with the brightness values of the non-under-screen area, and the display effect of the under-screen image pickup area is the same as that of the non-under-screen image pickup area.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Referring to fig. 10, a schematic structural diagram of a brightness compensation device according to an exemplary embodiment of the present application is shown. The brightness compensation means may be implemented as all or part of the mobile terminal by software, hardware or a combination of both. The brightness compensation device 1 comprises a data acquisition module 11, a compensation value acquisition module 12 and a brightness compensation module 13, wherein:
the data acquisition module 11 is used for acquiring gray scale values of all pixel points in an under-screen shooting area of the display screen and the current display brightness gear of the display screen;
a compensation value obtaining module 12, configured to obtain a brightness compensation table corresponding to the display brightness level in a brightness compensation table set, and obtain a brightness compensation value of each pixel point in the brightness compensation table based on a gray-scale value of each pixel point;
and the brightness compensation module 8 is used for carrying out brightness compensation on the pixel points based on each brightness compensation value.
Optionally, referring to fig. 11, the brightness compensation device 1 further includes:
The brightness value obtaining module 14 is configured to obtain brightness values of all gray scales of each pixel point of the under-screen image capturing area in each basic color channel under each display brightness level, and obtain brightness values of all gray scales of the under-screen image capturing area of the display screen in each basic color channel under each display brightness level;
the brightness compensation table generating module 15 is configured to generate a brightness compensation table set based on brightness values of all gray scales of each pixel point in each basic color channel and brightness values of all gray scales of the non-under-screen image capturing area in each basic color channel, where the brightness compensation table set includes brightness compensation tables respectively corresponding to different display brightness levels.
Optionally, referring to fig. 12, the luminance value obtaining module 14 includes:
a target brightness value obtaining unit 141, configured to obtain brightness values of all gray scales of each pixel point of an under-screen image capturing area under a target display brightness level in each basic color channel, and obtain brightness values of all gray scales of a non-under-screen image capturing area of the display screen under the target display brightness level in each basic color channel;
the luminance value fitting unit 142 is configured to fit luminance values of all gray scales of each pixel point of the under-screen image capturing area under the target display luminance level in each basic color channel to obtain luminance values of all gray scales of each pixel point of the under-screen image capturing area under the other display luminance level in each basic color channel;
The luminance value fitting unit 142 is further configured to fit luminance values of all gray scales of each pixel point of the non-under-screen image capturing area in each basic color channel under the target display luminance level, so as to obtain luminance values of all gray scales of each pixel point of the non-under-screen image capturing area in each basic color channel under other display luminance levels;
optionally, referring to fig. 13, the brightness compensation table generating module 15 includes:
a target compensation table generating unit 151, configured to generate a target brightness compensation table corresponding to a target display brightness level based on brightness values of all gray scales of each pixel point of an under-screen image capturing area of the target display brightness level in each basic color channel and brightness values of all gray scales of a non-under-screen image capturing area of the display screen in the target display brightness level in each basic color channel;
the other compensation table generating unit 152 is configured to generate a brightness compensation table corresponding to other display brightness levels based on brightness values of all gray scales of each pixel point of the under-screen image capturing area in each of the basic color channels under other display brightness levels and brightness values of all gray scales of each pixel point of the non-under-screen image capturing area in each of the basic color channels under other display brightness levels.
Alternatively, referring to fig. 14, the target compensation table generation unit 151 includes:
a gray-scale conversion subunit 1511, configured to convert brightness values of all gray scales of each pixel point in each basic color channel into corresponding first gray-scale values;
a gray level conversion subunit 1511, configured to convert luminance values of all gray levels of the non-under-screen image capturing area in each of the basic color channels into corresponding second gray level values;
and a target compensation table generating subunit 1512, configured to generate a target brightness compensation table corresponding to the target display brightness level based on each of the first gray-scale values and each of the second gray-scale values.
Optionally, the target luminance value acquisition unit 141 includes:
a target brightness value obtaining subunit 1411, configured to obtain brightness values of a preset number of gray scales of each pixel point in the image capturing area under the screen of the target display brightness level;
and the linear difference subunit 1412 is configured to perform linear interpolation on the luminance values of the preset number of gray scales of each pixel point of the under-screen image capturing area under the target display luminance level in each basic color channel, so as to obtain the luminance values of all the gray scales of each pixel point of the under-screen image capturing area under the target display luminance level in each basic color channel.
Alternatively, referring to fig. 15, the target luminance value acquisition unit 141 includes:
a target brightness value obtaining subunit 1411, configured to obtain brightness values of a preset number of gray scales of a non-under-screen image capturing area of the display screen in each basic color channel in the target display brightness range;
the linear difference subunit 1412 is further configured to perform linear interpolation on luminance values of a preset number of specified gray scales of the non-under-screen image capturing area of the display screen in each basic color channel in the target display luminance range, so as to obtain luminance values of all gray scales of the non-under-screen image capturing area of the display screen in each basic color channel in the target display luminance range.
Alternatively, referring to fig. 16, the target luminance value acquisition unit 141 includes:
a region capturing subunit 1413, configured to capture a target region in the non-under-screen image capturing region, and obtain brightness values of all gray scales of each pixel point of the target region in each basic color channel under the target display brightness level;
and an average value calculating subunit 1414, configured to calculate an average value of luminance values of each gray level of each basic color channel of each pixel point of the target area in the target display luminance range, and use each average value as the luminance value of each gray level of each basic color channel of the non-under-screen image capturing area in the target display luminance range.
According to the embodiment of the application, based on the brightness values of all gray scales of the under-screen image pickup area and the non-under-screen image pickup area under one display brightness level, the brightness values of all gray scales of the under-screen image pickup area and the non-under-screen image pickup area under other display brightness levels can be obtained, the brightness values of all gray scales of the under-screen image pickup area and the non-under-screen image pickup area under each basic color channel are generated, and then brightness compensation tables corresponding to all display brightness levels are generated, so that a brightness compensation table set is formed, the calculated amount can be reduced, and only the brightness values of all gray scales of the under-screen image pickup area and the brightness values of all gray scales of the non-under-screen image pickup area under each basic color channel under one display brightness level are calculated. The brightness compensation table set is established in advance, the brightness compensation table set comprises a brightness compensation table corresponding to a display brightness gear, the brightness compensation table set is burnt into the RAM, when an image is displayed on a display screen, gray scale values of all pixel points in an under-screen shooting area of the display screen and the current display brightness gear of the display screen are obtained, the brightness compensation table corresponding to the display brightness gear is obtained in the brightness compensation table set, brightness compensation values of all pixel points are obtained in the brightness compensation table based on the gray scale values of all pixel points, brightness compensation is carried out on the pixel points based on the brightness compensation values, when the image is displayed on the display screen, compensation is carried out on all pixel points in the under-screen shooting area in real time, brightness display of the under-screen shooting area can be uniform, and user experience is improved. And because the brightness values of all gray scales of each basic color channel based on the non-under-screen image pickup area are used for generating a brightness compensation table set comprising brightness compensation tables corresponding to display brightness gears, the brightness values of the under-screen image pickup area are compensated to be consistent with the brightness values of the non-under-screen area, and the display effect of the under-screen image pickup area is the same as that of the non-under-screen image pickup area.
It should be noted that, in the brightness compensation device provided in the above embodiment, only the division of the above functional modules is used for illustration when the brightness compensation method is executed, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the brightness compensation device and the brightness compensation method provided in the above embodiments belong to the same concept, which embody the detailed implementation process of the method embodiment, and are not described herein again.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
The present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above method. The computer readable storage medium may include, among other things, any type of disk including floppy disks, optical disks, DVDs, CD-ROMs, micro-drives, and magneto-optical disks, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
The application further provides an electronic device, where the robot stores at least one instruction, where the at least one instruction is loaded by the processor and executed by the processor, where the specific execution process may refer to the specific description of the embodiment shown in fig. 1 to 9, and details are not repeated herein.
Referring to fig. 17, a schematic structural diagram of an electronic device is provided in an embodiment of the present application. As shown in fig. 17, the electronic device 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, a memory 1005, at least one communication bus 1002.
Wherein the communication bus 1002 is used to enable connected communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may further include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 1001 may include one or more processing cores. The processor 1001 connects various parts within the entire electronic device 1000 using various interfaces and lines, and performs various functions of the electronic device 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, and invoking data stored in the memory 1005. Alternatively, the processor 1001 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 1001 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 1001 and may be implemented by a single chip.
The Memory 1005 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). The memory 1005 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described respective method embodiments, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 1005 may also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 17, an operating system, a network communication module, a user interface module, and a robot positioning application may be included in a memory 1005, which is one type of computer storage medium.
In the mobile terminal 1000 shown in fig. 17, a user interface 1003 is mainly used for providing an input interface for a user, and acquiring data input by the user; and the processor 1001 may be configured to invoke the generated brightness compensation application stored in the memory 1005, and specifically perform the following operations:
Acquiring gray scale values of all pixel points in an under-screen shooting area of a display screen and a current display brightness gear of the display screen;
acquiring a brightness compensation table corresponding to the display brightness gear from a brightness compensation table set, and acquiring a brightness compensation value of each pixel point in the brightness compensation table based on the gray scale value of each pixel point;
and carrying out brightness compensation on the pixel points based on each brightness compensation value.
In one embodiment, before performing the obtaining of the gray-scale value of each pixel point in the under-screen image capturing area of the display screen and the current display brightness value of the display screen, the processor 1001 further performs the following operations:
acquiring brightness values of all gray scales of all pixel points of an under-screen image pickup area under each display brightness level in each basic color channel, and acquiring brightness values of all gray scales of an under-screen image pickup area of a non-screen image pickup area of a display screen under each display brightness level in each basic color channel;
and generating a brightness compensation table set based on brightness values of all gray scales of each pixel point in each basic color channel and brightness values of all gray scales of the non-screen image pickup area in each basic color channel, wherein the brightness compensation table set comprises brightness compensation tables respectively corresponding to different display brightness levels.
In one embodiment, the processor 1001 performs the following operations when executing to obtain the luminance values of all the gray scales of each pixel point of the under-screen image capturing area under each display luminance level in each basic color channel, and obtain the luminance values of all the gray scales of the non-under-screen image capturing area of the display screen under each display luminance level in each basic color channel:
acquiring brightness values of all gray scales of each pixel point of an under-screen image pickup area under a target display brightness level in each basic color channel, and acquiring brightness values of all gray scales of a non-under-screen image pickup area of a display screen under the target display brightness level in each basic color channel;
fitting the brightness values of all the gray scales of all the pixel points of the image pickup area under the screen of the target display brightness level in each basic color channel to obtain the brightness values of all the gray scales of all the pixel points of the image pickup area under the screen of other display brightness levels in each basic color channel;
fitting the brightness values of all gray scales of all pixel points of the non-under-screen photographing area in each basic color channel under the target display brightness level to obtain the brightness values of all gray scales of all pixel points of the non-under-screen photographing area in each basic color channel under other display brightness levels;
And generating a brightness compensation table set based on the brightness values of all gray scales of each pixel point in each basic color channel and the brightness values of all gray scales of the non-under-screen image pickup area in each basic color channel, wherein the brightness compensation table set comprises brightness compensation tables respectively corresponding to different display brightness levels, and the following operations are collectively executed:
generating a target brightness compensation table corresponding to the target display brightness level based on brightness values of all gray scales of all pixel points of the under-screen image pickup area of the target display brightness level in each basic color channel and brightness values of all gray scales of the under-screen image pickup area of the display screen in each basic color channel in the target display brightness level;
and generating brightness compensation tables corresponding to other display brightness levels based on brightness values of all gray scales of all pixel points of the under-screen image capturing area under other display brightness levels in each basic color channel and brightness values of all gray scales of all pixel points of the under-screen image capturing area under other display brightness levels in each basic color channel.
In one embodiment, when executing the generation of the target brightness compensation table corresponding to the target display brightness level based on the brightness values of all the gray scales of the pixel points of the under-screen image capturing area in each of the basic color channels in the target display brightness level and the brightness values of all the gray scales of the non-under-screen image capturing area in each of the basic color channels in the target display brightness level, the processor 1001 specifically executes the following operations:
Converting brightness values of all gray scales of each pixel point in each basic color channel into corresponding first gray scale values;
converting brightness values of all gray scales of the non-under-screen image pickup area in each basic color channel into corresponding second gray scale values;
and generating a target brightness compensation table corresponding to the target display brightness gear based on each first gray scale value and each second gray scale value.
In one embodiment, the processor 1001, when executing the generation of the target brightness compensation table corresponding to the target display brightness level based on each of the first gray-scale values and each of the second gray-scale values, specifically executes the following operations:
calculating a gray scale difference value between a first gray scale value and a corresponding second gray scale value of each gray scale of each basic color channel;
converting each gray level difference value into an electric signal value, and using each electric signal value as a brightness compensation value of each gray level of each basic color channel to obtain a target brightness compensation table corresponding to the target display brightness gear.
In one embodiment, when the processor 1001 performs the acquisition of the brightness values of all the gray scales of each of the basic color channels for each pixel point of the under-screen image capturing area under the target display brightness level, the following operations are specifically performed:
Acquiring brightness values of preset number of gray scales of each pixel point of an image pickup area under a screen under a target display brightness gear in each basic color channel;
and linearly interpolating the brightness values of the preset number of gray scales of each pixel point of the image pickup area under the screen under the target display brightness level, so as to obtain the brightness values of all the gray scales of each pixel point of the image pickup area under the screen under the target display brightness level.
In one embodiment, the processor 1001, when executing the acquisition of the luminance values of all the gray scales of the non-under-screen image capturing area of the display screen in the target display luminance range, specifically executes the following operations:
acquiring brightness values of a preset number of gray scales of a non-under-screen shooting area of the display screen in each basic color channel under the target display brightness gear;
and linearly interpolating the brightness values of the preset number of specified gray scales of the non-under-screen image pickup areas of the display screen in each basic color channel under the target display brightness level to obtain the brightness values of all the gray scales of the non-under-screen image pickup areas of the display screen in each basic color channel under the target display brightness level.
In one embodiment, the processor 1001, when executing the acquisition of the luminance values of all the gray scales of the non-under-screen image capturing area of the display screen in the target display luminance range, specifically executes the following operations:
intercepting a target area in the non-under-screen shooting area, and acquiring brightness values of all gray scales of each pixel point of the target area in each basic color channel under the target display brightness gear;
calculating the average value of the brightness values of each gray scale of each pixel point of the target area in each basic color channel under the target display brightness level, and taking each average value as the brightness value of each gray scale of the non-screen image pickup area in each basic color channel under the target display brightness level.
According to the embodiment of the application, based on the brightness values of all gray scales of the under-screen image pickup area and the non-under-screen image pickup area under one display brightness level, the brightness values of all gray scales of the under-screen image pickup area and the non-under-screen image pickup area under other display brightness levels can be obtained, the brightness values of all gray scales of the under-screen image pickup area and the non-under-screen image pickup area under each basic color channel are generated, and then brightness compensation tables corresponding to all display brightness levels are generated, so that a brightness compensation table set is formed, the calculated amount can be reduced, and only the brightness values of all gray scales of the under-screen image pickup area and the brightness values of all gray scales of the non-under-screen image pickup area under each basic color channel under one display brightness level are calculated. The brightness compensation table set is established in advance, the brightness compensation table set comprises brightness compensation tables corresponding to display brightness levels, the brightness compensation table set is burnt into the RAM, when an image is displayed on a display screen, gray scale values of all pixel points in an under-screen shooting area of the display screen and the current display brightness levels of the display screen are obtained, the brightness compensation tables corresponding to the display brightness levels are obtained in the brightness compensation table set, brightness compensation values of all pixel points are obtained in the brightness compensation tables based on the gray scale values of all pixel points, and brightness compensation is carried out on the pixel points based on all the brightness compensation values. When the display screen displays images, compensation is performed on each pixel point of the under-screen image pickup area in real time, so that the brightness of the under-screen image pickup area is uniformly displayed, and the user experience is improved. And because the brightness values of all gray scales of each basic color channel based on the non-under-screen image pickup area are used for generating a brightness compensation table set comprising brightness compensation tables corresponding to display brightness gears, the brightness values of the under-screen image pickup area are compensated to be consistent with the brightness values of the non-under-screen area, and the display effect of the under-screen image pickup area is the same as that of the non-under-screen image pickup area.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
The foregoing disclosure is only illustrative of the preferred embodiments of the present application and is not intended to limit the scope of the claims herein, as the equivalent of the claims herein shall be construed to fall within the scope of the claims herein.

Claims (10)

1. A method of brightness compensation, the method comprising:
acquiring brightness values of all gray scales of all pixel points of an under-screen image pickup area under each display brightness gear in each basic color channel of a display screen, and acquiring brightness values of all gray scales of an under-screen image pickup area of the display screen under each display brightness gear in each basic color channel;
generating a brightness compensation table set based on brightness values of all gray scales of each pixel point in each basic color channel and brightness values of all gray scales of each non-screen image pickup area in each basic color channel, wherein the brightness compensation table set comprises brightness compensation tables respectively corresponding to different display brightness levels;
Acquiring gray scale values of all pixel points in an under-screen image pickup area of a display screen and the current display brightness level of the display screen, wherein the display brightness level is the display brightness level of the display screen, and the display screen displays different brightness under different display brightness levels and corresponds to all gray scale levels under each display brightness level;
acquiring a brightness compensation table corresponding to the display brightness gear from a brightness compensation table set, and acquiring a brightness compensation value of each pixel point in the brightness compensation table based on the gray scale value of each pixel point; the brightness compensation table comprises gray scale compensation values and brightness compensation values corresponding to all gray scales, wherein the brightness compensation values are brightness values which are increased or reduced under all gray scales of each basic color channel by each pixel point of the under-screen image pickup area;
and carrying out brightness compensation on the pixel points based on each brightness compensation value.
2. The method according to claim 1, wherein the obtaining the brightness values of all the gray scales of each pixel point of the under-screen image capturing area of each display brightness level in each basic color channel of the display screen, and obtaining the brightness values of all the gray scales of the under-screen image capturing area of the display screen in each display brightness level in each basic color channel, includes:
Acquiring brightness values of all gray scales of each pixel point of an under-screen image pickup area under a target display brightness level in each basic color channel, and acquiring brightness values of all gray scales of a non-under-screen image pickup area of a display screen under the target display brightness level in each basic color channel;
fitting the brightness values of all the gray scales of all the pixel points of the image pickup area under the screen of the target display brightness level in each basic color channel to obtain the brightness values of all the gray scales of all the pixel points of the image pickup area under the screen of other display brightness levels in each basic color channel;
fitting the brightness values of all gray scales of all pixel points of the non-under-screen photographing area in each basic color channel under the target display brightness level to obtain the brightness values of all gray scales of all pixel points of the non-under-screen photographing area in each basic color channel under other display brightness levels;
the generating a brightness compensation table set based on the brightness values of all gray scales of each pixel point in each basic color channel and the brightness values of all gray scales of the non-under-screen image capturing area in each basic color channel, wherein the brightness compensation table set comprises brightness compensation tables respectively corresponding to different display brightness levels and comprises:
Generating a target brightness compensation table corresponding to the target display brightness level based on brightness values of all gray scales of all pixel points of the under-screen image pickup area of the target display brightness level in each basic color channel and brightness values of all gray scales of the under-screen image pickup area of the display screen in each basic color channel in the target display brightness level;
and generating brightness compensation tables corresponding to other display brightness levels based on brightness values of all gray scales of all pixel points of the under-screen image capturing area under other display brightness levels in each basic color channel and brightness values of all gray scales of all pixel points of the under-screen image capturing area under other display brightness levels in each basic color channel.
3. The method according to claim 2, wherein the generating the target brightness compensation table corresponding to the target display brightness level based on the brightness values of all the gray scales of the pixels of the under-screen image capturing area in each of the basic color channels in the target display brightness level and the brightness values of all the gray scales of the non-under-screen image capturing area of the display screen in each of the basic color channels in the target display brightness level includes:
Converting brightness values of all gray scales of each pixel point in each basic color channel into corresponding first gray scale values;
converting brightness values of all gray scales of the non-under-screen image pickup area in each basic color channel into corresponding second gray scale values;
and generating a target brightness compensation table corresponding to the target display brightness gear based on each first gray scale value and each second gray scale value.
4. The method of claim 3, wherein generating the target brightness compensation table corresponding to the target display brightness level based on each of the first gray-scale values and each of the second gray-scale values comprises:
calculating a gray scale difference value between a first gray scale value and a corresponding second gray scale value of each gray scale of each basic color channel;
converting each gray level difference value into an electric signal value, and using each electric signal value as a brightness compensation value of each gray level of each basic color channel to obtain a target brightness compensation table corresponding to the target display brightness gear.
5. The method according to claim 2, wherein the obtaining the brightness values of all gray scales of each pixel point of the under-screen image capturing area in each basic color channel under the target display brightness level includes:
Acquiring brightness values of preset number of gray scales of each pixel point of an image pickup area under a screen under a target display brightness gear in each basic color channel;
and linearly interpolating the brightness values of the preset number of gray scales of each pixel point of the image pickup area under the screen under the target display brightness level, so as to obtain the brightness values of all the gray scales of each pixel point of the image pickup area under the screen under the target display brightness level.
6. The method according to claim 2, wherein the obtaining the luminance values of all gray scales of the non-under-screen image capturing area of the display screen in the target display luminance range in each of the basic color channels includes:
acquiring brightness values of a preset number of gray scales of a non-under-screen shooting area of the display screen in each basic color channel under the target display brightness gear;
and linearly interpolating the brightness values of the preset number of specified gray scales of the non-under-screen image pickup areas of the display screen in each basic color channel under the target display brightness level to obtain the brightness values of all the gray scales of the non-under-screen image pickup areas of the display screen in each basic color channel under the target display brightness level.
7. The method according to claim 2 or 6, wherein the obtaining the luminance values of all gray scales of the non-under-screen image capturing area of the display screen in the target display luminance range in each of the basic color channels includes:
intercepting a target area in the non-under-screen shooting area, and acquiring brightness values of all gray scales of each pixel point of the target area in each basic color channel under the target display brightness gear;
calculating the average value of the brightness values of each gray scale of each pixel point of the target area in each basic color channel under the target display brightness level, and taking each average value as the brightness value of each gray scale of the non-screen image pickup area in each basic color channel under the target display brightness level.
8. A brightness compensation device, the device comprising:
the data acquisition module is used for acquiring gray scale values of all pixel points in an under-screen shooting area of the display screen and the current display brightness level of the display screen, wherein the display brightness level is the display brightness level of the display screen, and the display screen displays different brightness under different display brightness levels and corresponds to all gray scale levels under each display brightness level;
The compensation value acquisition module is used for acquiring a brightness compensation table corresponding to the display brightness gear in a brightness compensation table set, and acquiring the brightness compensation value of each pixel point in the brightness compensation table based on the gray scale value of each pixel point; the brightness compensation table comprises gray scale compensation values and brightness compensation values corresponding to all gray scales, wherein the brightness compensation values are brightness values which are increased or reduced under all gray scales of each basic color channel by each pixel point of the under-screen image pickup area;
the brightness compensation module is used for carrying out brightness compensation on the pixel points based on the brightness compensation values;
the device is also for: the method comprises the steps of obtaining brightness values of all gray scales of all pixel points of an under-screen image pickup area under each display brightness level in each basic color channel of a display screen, obtaining brightness values of all gray scales of an under-non-screen image pickup area of the display screen under each display brightness level in each basic color channel, and generating a brightness compensation table set based on the brightness values of all gray scales of all pixel points in each basic color channel and the brightness values of all gray scales of the under-non-screen image pickup area in each basic color channel, wherein the brightness compensation table set comprises brightness compensation tables respectively corresponding to different display brightness levels.
9. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method steps of any of claims 1-7.
10. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1-7.
CN202111674430.8A 2021-12-29 2021-12-29 Brightness compensation method and device, storage medium and electronic equipment Active CN114283732B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111674430.8A CN114283732B (en) 2021-12-29 2021-12-29 Brightness compensation method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111674430.8A CN114283732B (en) 2021-12-29 2021-12-29 Brightness compensation method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114283732A CN114283732A (en) 2022-04-05
CN114283732B true CN114283732B (en) 2024-02-23

Family

ID=80879581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111674430.8A Active CN114283732B (en) 2021-12-29 2021-12-29 Brightness compensation method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114283732B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114708826B (en) * 2022-04-27 2023-11-10 北京欧铼德微电子技术有限公司 Luminance correction method, apparatus, electronic device, and storage medium
CN115188326A (en) * 2022-06-08 2022-10-14 云谷(固安)科技有限公司 Display driving method, device, equipment and medium for display screen
CN115616938B (en) * 2022-08-26 2024-01-05 广州汽车集团股份有限公司 Control method and device of electrochromic device, electronic equipment and storage medium
CN115713917A (en) * 2022-11-29 2023-02-24 友达光电股份有限公司 Display device and method for compensating brightness and chroma thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107591138A (en) * 2017-09-18 2018-01-16 青岛海信电器股份有限公司 Content display method and device
CN110634437A (en) * 2019-09-26 2019-12-31 昆山国显光电有限公司 Gamma curve acquisition method and device for multi-segment display brightness and display equipment
CN111816113A (en) * 2020-07-29 2020-10-23 昆山工研院新型平板显示技术中心有限公司 Brightness compensation method, device and equipment of display panel
CN112419950A (en) * 2020-12-15 2021-02-26 合肥维信诺科技有限公司 Display difference judging method and system of display device and display device
CN112562587A (en) * 2020-12-11 2021-03-26 昆山国显光电有限公司 Display panel brightness compensation method and device and display panel
CN112562585A (en) * 2020-12-09 2021-03-26 昆山国显光电有限公司 Brightness compensation method and device of display panel

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107591138A (en) * 2017-09-18 2018-01-16 青岛海信电器股份有限公司 Content display method and device
CN110634437A (en) * 2019-09-26 2019-12-31 昆山国显光电有限公司 Gamma curve acquisition method and device for multi-segment display brightness and display equipment
CN111816113A (en) * 2020-07-29 2020-10-23 昆山工研院新型平板显示技术中心有限公司 Brightness compensation method, device and equipment of display panel
CN112562585A (en) * 2020-12-09 2021-03-26 昆山国显光电有限公司 Brightness compensation method and device of display panel
CN112562587A (en) * 2020-12-11 2021-03-26 昆山国显光电有限公司 Display panel brightness compensation method and device and display panel
CN112419950A (en) * 2020-12-15 2021-02-26 合肥维信诺科技有限公司 Display difference judging method and system of display device and display device

Also Published As

Publication number Publication date
CN114283732A (en) 2022-04-05

Similar Documents

Publication Publication Date Title
CN114283732B (en) Brightness compensation method and device, storage medium and electronic equipment
CN101388950B (en) Content-adaptive contrast improving method and apparatus for digital image
CN113299245B (en) Method and device for adjusting local backlight of display equipment, display equipment and storage medium
CN109313796B (en) Image processing method and device
CN113242465B (en) Video processing method and device, electronic equipment and readable storage medium
CN113507598B (en) Video picture display method, device, terminal and storage medium
CN109637437B (en) Image display control method, device, medium and display screen control system
CN104427317A (en) Image acquisition method and electronic equipment
US11380284B2 (en) Color space mapping method, equipment, computer readable storage medium, and device
CN107465811B (en) Method for reducing temperature rise, computer readable storage medium and electronic equipment
CN112289278A (en) Screen brightness adjusting method, screen brightness adjusting device and electronic equipment
CN110807735A (en) Image processing method, image processing device, terminal equipment and computer readable storage medium
CN102469248B (en) Device for filming image and image synthesis method thereof
CN105654925A (en) high dynamic-range image processing method and system
CN116453470B (en) Image display method, device, electronic equipment and computer readable storage medium
CN112562565A (en) Driving device, method, display panel and electronic equipment
CN116382540A (en) Display method and device for electronic paper, electronic equipment and storage medium
CN114187865B (en) Image processing method and device for LED display screen and control card
CN115346475A (en) LED display control method, control device, electronic device and storage medium
JP2012114498A (en) Image processing device, electronic device, image processing method, and image processing program
CN113539207B (en) Display screen adjusting method, device and equipment
CN104754313A (en) Image collecting method and electronic device
CN112991497A (en) Method, device, storage medium and terminal for coloring black-and-white cartoon video
CN114584641A (en) Display adjustment method, device, electronic equipment and storage medium
CN111711809A (en) Image processing method and device, electronic 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
GR01 Patent grant
GR01 Patent grant