CN109801605B - Screen brightness adjusting method, electronic equipment, mobile terminal and storage medium - Google Patents

Screen brightness adjusting method, electronic equipment, mobile terminal and storage medium Download PDF

Info

Publication number
CN109801605B
CN109801605B CN201910147290.5A CN201910147290A CN109801605B CN 109801605 B CN109801605 B CN 109801605B CN 201910147290 A CN201910147290 A CN 201910147290A CN 109801605 B CN109801605 B CN 109801605B
Authority
CN
China
Prior art keywords
area
gray scale
target image
scale range
module
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
CN201910147290.5A
Other languages
Chinese (zh)
Other versions
CN109801605A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910147290.5A priority Critical patent/CN109801605B/en
Publication of CN109801605A publication Critical patent/CN109801605A/en
Application granted granted Critical
Publication of CN109801605B publication Critical patent/CN109801605B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention provides a screen brightness adjusting method, electronic equipment, a mobile terminal and a storage medium, wherein the method comprises the following steps: under the condition that a target image indicates an optical fingerprint identification scene, acquiring a first area and a second area of the target image, wherein the first area is an optical fingerprint identification area, and the second area is an image area except the first area in the target image; determining a first gray scale range of a first area and a second gray scale range of a second area; and displaying the target image, and adjusting the screen brightness of the first area and the second area according to the first gray scale range and the second gray scale range respectively in the process of displaying the target image. By adopting the scheme of the embodiment of the invention, the problem of screen flashing glaring caused by circuit switching is avoided, and the experience of a user in using optical fingerprint identification is improved; the number of gray scales of the highlight display area is not reduced, so that the integrity of target image data is reserved, and the display effect of the image is improved.

Description

Screen brightness adjusting method, electronic equipment, mobile terminal and storage medium
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a screen brightness adjusting method, electronic equipment, a mobile terminal and a storage medium.
Background
Currently, a display screen of a mobile terminal includes: liquid Crystal Display (LCD) and Organic Light-Emitting Diode (OLED) Display, wherein the OLED Display realizes different gray scales corresponding to different screen brightness by adjusting Display parameter gamma (γ) voltages corresponding to different gray scales. The brightness of the existing screen is limited by luminescent materials, circuit design and the like, and can only achieve 430nit at most, while the requirement of the existing optical fingerprint on the brightness is higher and generally needs to achieve more than 600 nit. Therefore, the current main defects are as follows:
at present, when a High Brightness Mode (HBM) that a user opens an OLED screen of a mobile terminal is received, a circuit of a display module needs to be switched through a power-up and power-down sequence, so that the high brightness mode is opened, and at this time, the user is flashed in front of the eye; if the screen is maintained in the high brightness mode all the time, it is too dazzling for the user, resulting in poor user experience; and also increases the power consumption of the mobile terminal.
To solve this problem, in the related art, it is proposed to put the optical fingerprint area on the screen in a high brightness mode and the remaining area in a normal brightness mode. That is, a layer of mask is added on the rest area (i.e. non-fingerprint area) of the screen except the optical fingerprint area, and the gray scale of the display content is compressed by the mask to reduce the screen brightness, for example, a picture originally has 0-150 gray scale, but in order to reduce the brightness to 10nit, the gray scale may be compressed to 0-30 gray scale, so that the number information of gray scale that can be displayed is reduced, and the screen brightness of the non-fingerprint area is reduced. However, in the current technology, the screen brightness is reduced by compressing the gray scale information, if the required screen brightness is lower, the more the gray scale information is compressed, and when the gray scale information is compressed to a certain degree, the poor transition or the water ripple phenomenon is caused, which seriously affects the screen display effect.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method for adjusting screen brightness, so as to solve the technical problem in the prior art that a high brightness mode and a normal brightness mode on a screen cannot be effectively adjusted in a display screen area, resulting in poor screen display effect.
Correspondingly, the embodiment of the invention also provides electronic equipment, a mobile terminal and a storage medium, which are used for ensuring the realization and the application of the method.
In order to solve the problems, the invention is realized by the following technical scheme:
a first aspect provides a method for adjusting screen brightness, including:
under the condition that a target image indicates an optical fingerprint identification scene, acquiring a first area and a second area of the target image, wherein the first area is an optical fingerprint identification area, and the second area is an image area except the first area in the target image;
determining a first gray scale range of the first region and a second gray scale range of the second region;
and displaying the target image, and adjusting the screen brightness of the first area and the second area according to the first gray scale range and the second gray scale range respectively in the process of displaying the target image.
Optionally, the determining a first gray scale range of the first region and a second gray scale range of the second region includes:
calculating all gray scale values and the maximum gray scale value of the target image to be displayed in a normal display mode;
determining a gray scale range formed by gray scale values with values larger than the maximum gray scale value and smaller than or equal to 255 as a first gray scale range of the first area for drawing the target image;
and determining the gray scale range composed of all the gray scale values as a second gray scale range of the second area for drawing the target image.
Optionally, the displaying the target image, and before adjusting the screen brightness of the first region and the screen brightness of the second region according to the first grayscale range and the second grayscale range respectively in the process of displaying the target image, further includes:
and acquiring the brightness level corresponding to each gray scale in the first gray scale range and the second gray scale range according to the corresponding relation between the preset gray scale and the brightness level.
Optionally, before acquiring the first region and the second region of the target image, the method further includes:
establishing a corresponding relation between each gray-scale value of the first area and each gray-scale value of the second area and the brightness level;
wherein the lowest gray scale of the first region is higher than the highest gray scale of the second region.
Optionally, after the target image is displayed and the screen brightness of the first region and the screen brightness of the second region are adjusted according to the first gray scale range and the second gray scale range respectively in the process of displaying the target image, the method further includes:
receiving a first input of a user;
and responding to the first input, and adjusting the brightness level corresponding to at least one gray-scale value of the first area and/or the second area.
Optionally, after the target image is displayed and in the process of displaying the target image, the screen brightness of the first area and the screen brightness of the second area are adjusted according to the first gray scale range and the second gray scale range, respectively, or after a brightness level corresponding to at least one gray scale value of the first area and/or the second area is adjusted, the method further includes:
performing optical fingerprint identification on the image of the first area;
and after the optical fingerprint identification is finished, drawing the image content of the first area according to the second gray scale range of the second area.
A second aspect provides an electronic device comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first area and a second area of a target image to be displayed under the condition that the target image indicates an optical fingerprint identification scene, the first area is an optical fingerprint identification area, and the second area is an image area except the first area in the target image;
the determining module is used for determining a first gray scale range of the first area and a second gray scale range of the second area;
the display module is used for displaying the target image;
and the first adjusting module is used for adjusting the screen brightness of the first area and the second area according to the first gray scale range and the second gray scale range respectively in the process of displaying the target image by the display module.
Optionally, the determining module includes:
the calculation module is used for calculating all gray-scale values and the maximum gray-scale value of the target image to be displayed in a normal display mode;
a first determining module, configured to determine a gray scale range composed of gray scale values whose values are greater than the maximum gray scale value and less than or equal to 255 as a first gray scale range in which the first region performs drawing of the target image;
and the second determining module is used for determining the gray scale range formed by all the gray scale values as a second gray scale range for drawing the target image in the second area.
Optionally, the method further includes:
and the brightness level acquisition module is used for acquiring the brightness level corresponding to each gray scale in the first gray scale range and the second gray scale range according to a preset corresponding relation between the gray scale and the brightness level before the first adjustment module adjusts the screen brightness of the first area and the second area according to the first gray scale range and the second gray scale range.
Optionally, the apparatus further comprises:
and the establishing module is used for establishing the corresponding relation between each gray scale value and the brightness level of the first area and the second area before the acquiring module acquires the first area and the second area of the target image, wherein the lowest gray scale of the first area is higher than the highest gray scale of the second area.
Optionally, the apparatus further comprises:
the receiving module is used for receiving a first input of a user after the first adjusting module adjusts the screen brightness of the first area and the second area according to the first gray scale range and the second gray scale range;
and the second adjusting module is used for responding to the first input and adjusting the brightness level corresponding to at least one gray-scale value of the first area and/or the second area.
Optionally, the apparatus further comprises:
the identification module is used for carrying out optical fingerprint identification on the image of the first area after the first adjustment module adjusts the screen brightness or the second adjustment module adjusts the brightness level corresponding to the gray scale value;
and the recovery module is used for drawing the image content of the first area according to the second gray scale range of the second area after the optical fingerprint identification of the identification module is finished.
A third aspect provides a mobile terminal comprising: the screen brightness adjusting method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the computer program realizes the steps of the screen brightness adjusting method when being executed by the processor.
A fourth aspect provides an electronic device comprising: the screen brightness adjusting method comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the computer program realizes the steps of the screen brightness adjusting method when being executed by the processor.
A fifth aspect provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps in the screen brightness adjustment method as described above.
In the embodiment of the present invention, when a target image indicates an optical fingerprint recognition scene, a first region and a second region of the target image are obtained, where the first region is an optical fingerprint recognition region, and the second region is an image region of the target image except the first region, then a first grayscale range of the first region and a second grayscale range of the second region are determined, and finally, when the target image is displayed, screen brightness of the first region and the screen brightness of the second region are respectively adjusted according to the first grayscale range and the second grayscale range. That is to say, in the embodiment of the present invention, the gray scales of different areas are determined according to the content of the target image, and when the target image is displayed, the screen brightness is adjusted according to the brightness levels corresponding to the gray scale ranges corresponding to the different areas, so that the requirements for different brightness in different scenes in the same display screen are met. Meanwhile, for a highlight display area comprising an optical fingerprint identification scene, the number of gray scales in the area is not reduced, and the integrity of data is reserved, so that the display effect of an image is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
FIG. 1 is a flowchart illustrating a method for adjusting screen brightness according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a relationship between gray scales and brightness levels according to an embodiment of the present invention;
FIG. 3 is another flowchart of a method for adjusting screen brightness according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a display screen including a highlight region and a normal display region according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method for adjusting screen brightness according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a method for adjusting screen brightness according to an embodiment of the present invention; the method is applied to a mobile terminal of a full-screen, namely an Organic Light Emitting Diode (OLED) screen. The method may specifically comprise the steps of:
step 100: starting;
step 101: under the condition that a target image indicates an optical fingerprint identification scene, acquiring a first area and a second area of the target image to be displayed, wherein the first area is an optical fingerprint identification area, and the second area is an image area except the first area in the target image;
in the step, a current image to be displayed is obtained; when a user starts to use a mobile terminal (such as a mobile phone and the like), the system acquires a target image with a display on a screen of the mobile terminal, if the target image is a normally displayed target image, namely, no optical fingerprint identification scene exists in the target image, the system calculates gray scales (such as 0-X1) required for displaying all content details in the target image in a smooth transition mode, and outputs corresponding display contents with 0-X1 gray scales, namely, the contents of the target image are normally displayed.
The gray scale is the brightness variation between the brightest and darkest in the display screen, and is divided into several parts to facilitate the adjustment of the screen brightness. Each digital image is composed of a plurality of dots, also called pixels (pixels), each of which can usually represent a plurality of different colors, and is composed of three sub-pixels of red, green and blue (RGB). Each sub-pixel, the light source behind it, may exhibit a different brightness level. And the gray levels represent gradation levels of different brightness from the darkest to the brightest. The more the intermediate levels are, the more exquisite the picture effect can be presented.
If the target image comprises an optical fingerprint identification scene (namely under the condition that the target image indicates the optical fingerprint identification scene), acquiring a first area and a second area of the target image to be displayed, wherein the first area is an optical fingerprint identification area, and the second area is an image area except the first area in the target image; the first region is also called a highlight region, and the second region is also called a normal display region.
That is, the system determines whether the target image to be displayed includes an optical fingerprint recognition scene, and if so, marks a first region including the optical fingerprint recognition scene, that is, a highlight region, on the target image to be displayed, and other regions in the current image to be displayed are referred to as second regions, that is, normal display regions, that is, all regions except the highlight region in the image to be displayed. Wherein the optical fingerprinting scenario includes: an optical fingerprint payment scenario, an authentication scenario, an unlocking scenario, or the like, which is not limited to this, and other similar scenarios may also be included, and this embodiment is not limited to this.
Step 102: determining a first gray scale range of the first region and a second gray scale range of the second region;
in this step, the system calculates gray scale values and maximum gray scale values required by details of all contents in the target image to be displayed (the gray scale values are usually multiple, and the more the number of gray scales is, the finer and clearer the displayed picture is), for example, 0 to X1 gray scale values are required when the target image is normally displayed, and X1 represents the maximum gray scale value for normally displaying the target image; by the calculated gray-scale value, all contents in the target image can be displayed in a smooth transition. Then, taking the gray scale range formed by the calculated gray scale values as a second gray scale range of the image content to be drawn in the second area (namely the normal display area); and determining a gray scale range composed of gray scale values with values larger than the maximum gray scale value and smaller than or equal to 255 as a first gray scale range of the first area (namely, a highlight display area) for drawing the target image. That is, the normal display area uses the gray scale range of 0 to X1 (such as 0 to 250 gray scales) to draw the image content, and the highlight display area uses the gray scale range greater than X1 (such as 251 to 255 gray scales) to draw the image content, so as to dynamically adjust the gray scale ratio of different areas according to the content of the output image to be displayed, thereby covering different display pictures and scenes.
Step 103: displaying the target image, and adjusting the screen brightness of the first area and the second area according to the first gray scale range and the second gray scale range respectively in the process of displaying the target image;
in this step, the brightness level corresponding to each gray scale in the first gray scale range and the second gray scale range may be obtained from a preset correspondence between the gray scale and the brightness level. That is, the brightness level corresponding to the first gray scale range in which the first region (i.e., the highlight display region) draws the target image and the brightness level corresponding to the second gray scale range in which the second region (i.e., the normal display region) draws the target image are found from the corresponding relationship; and then, displaying the target image, and in the process of displaying the target image, adjusting the screen brightness of the first area (namely, a highlight display area) and the normal display area (namely, a second area) according to the searched brightness level corresponding to the first gray scale range and the brightness level corresponding to the second gray scale range. For example, the second gray scale range (i.e., 0-250) corresponding to the normal display area is defined, the highest gray scale 250 corresponds to the display brightness of 430nit (i.e., the highest brightness in the normal mode), and the 251-255 gray scales (i.e., the first gray scale range) correspond to different HBM brightness levels such as 480, 510, 540, 570, 600 nit.
Step 104: and (6) ending.
In the embodiment of the present invention, when a target image indicates an optical fingerprint recognition scene, a first region and a second region of the target image are obtained, where the first region is an optical fingerprint recognition region, and the second region is an image region of the target image except the first region, then a first grayscale range of the first region and a second grayscale range of the second region are determined, and finally, when the target image is displayed, screen brightness of the first region and the screen brightness of the second region are respectively adjusted according to the first grayscale range and the second grayscale range. That is to say, in the embodiment of the present invention, the gray scales of different areas are determined according to the content of the target image, and when the target image is displayed, the screen brightness is adjusted according to the brightness levels corresponding to the gray scale ranges corresponding to the different areas, so that the requirements for different brightness in different scenes in the same display screen are met. Meanwhile, for a highlight display area comprising an optical fingerprint identification scene, the integrity of data is reserved because the gray-scale value of the area is not reduced, so that the display effect of the image is improved.
Optionally, in another embodiment, on the basis of the above embodiment, before acquiring the first region and the second region of the target image, the method may further include: and establishing a corresponding relation between each gray scale value of the first area and the second area and the brightness level, wherein the lowest gray scale of the first area is higher than the highest gray scale of the second area. That is, the corresponding relation between each gray scale value and the brightness level of the normal display area and the highlight display area is established in advance; the lowest gray scale of the highlight display area is higher than the highest gray scale of the normal display area. Specifically, as shown in fig. 2, fig. 2 is a schematic diagram illustrating a corresponding relationship between gray scales and brightness levels according to an embodiment of the present invention.
As shown in fig. 2, the horizontal axis represents different gray levels, the vertical axis represents the luminance levels (which may also be referred to as luminance) corresponding to the gray levels, and the luminance level corresponding to a certain gray level X is defined, for example, the display luminance level corresponding to a gray level of 250 is defined as 430nit (i.e., the highest luminance in the normal mode). In the embodiment of the invention, the brightness level corresponding to the gray scale of 0-250 is defined as 0-430, and the corresponding area formed by the gray scale is called as the brightness level 201 of the normal display area; and defining that each gray scale of 251-255 corresponds to different HBM brightness levels of 480, 510, 540, 570, 600nit and the like, and the corresponding area formed by the gray scales is called as the brightness level 202 of the high-brightness display area. When the system outputs a target image, 251-255 gray scale contents can be output aiming at a special highlight display area such as a highlight fingerprint icon area, so that the requirement on brightness can be met, and a certain gray scale transition change can be realized; aiming at the normal display area without fingerprints, the maximum brightness of the normal display area meets the maximum brightness level 430nit of a normal mode, meanwhile, the display content in the gray scale range of 0-250 is reserved, and the quality and the effect of the displayed target image are good because the number of the gray scales is not compressed.
Referring to fig. 3, another flowchart of a method for adjusting screen brightness according to an embodiment of the present invention is shown, where the method specifically includes:
step 300 begins;
step 301: acquiring a target image to be displayed;
step 302: judging whether the target image comprises an optical fingerprint identification scene or not, and if so, executing a step 303; otherwise, the feedback continues to step 302;
in the step, the system judges whether the content of the target image to be displayed has an optical fingerprint identification scene, wherein the optical fingerprint identification scene can comprise an optical fingerprint payment scene or an authentication scene and the like; if so, go to step 303; if not, go to step 308: i.e. the content of the second area image is normally displayed.
Step 303: acquiring a first area and a second area of the target image, wherein the first area is an optical fingerprint identification area, and the second area is an image area except the first area in the target image;
the first region in this embodiment is illustrated as a highlight display region and the second region is illustrated as a normal display region. Marking a highlight display area and a normal display area comprising the optical fingerprint identification scene on the target image to be displayed, wherein the normal display area is all areas except the highlight display area in the target image to be displayed;
in this step, the system marks different display areas on the target image to be displayed, such as a highlight display area including the optical fingerprint recognition scene as a1, a normal display area as a2, and so on.
The specific process of this step refers to step 101, which is described in detail above and will not be described herein again.
Step 304: determining a first gray scale range of the first region and a second gray scale range of the second region;
the step is the same as step 102, and is described in detail above, and will not be described herein again.
Step 305: displaying the target image, and adjusting the screen brightness of the first area and the second area according to the first gray scale range and the second gray scale range respectively in the process of displaying the target image;
for convenience of understanding, please refer to fig. 4 specifically, wherein fig. 4 is a schematic diagram of a display screen including a first area and a second area according to an embodiment of the present invention.
In this embodiment, fig. 4 takes as an example that a target image a to be displayed is output, where the target image a includes: when the system outputs the target image a, the system calculates that the target image needs 0 to X1 gray scales to smoothly and transitionally display all the details in the target image, and then allocates the gray scale value in the range of 0 to X1 to the normal display area a2, that is, the normal display area a2 uses the gray scale value in the range of 0 to X1 to perform drawing. For the highlight region a1, the system assigns the X1+1 gray scale values to 255 gray scale values to the highlight region a1, i.e., the X1+1 gray scale values to 255 gray scale values are used for drawing the target image in the highlight region a 1. Then, the brightness level corresponding to each gray scale value in the gray scale range of the highlight display area and the normal display area is found from the preset corresponding relation; and then, adjusting the screen brightness of the highlight display area and the normal display area according to the searched brightness level.
In summary, in this embodiment, the system can dynamically adjust the gray scale ratios of different areas according to the content of the target image to be output and displayed, so as to cover different display pictures and scenes in the same display screen, so that the display effects of the highlight area a1 and the normal display area a2 are smooth, the problem of poor transition or water ripple does not exist, and the requirements of different areas for different brightnesses are met.
Step 306: after the screen brightness is adjusted, carrying out optical fingerprint identification on the image of the first area;
in the step, optical fingerprint identification is carried out on the image of the highlight display area; the process of performing optical fingerprint identification in the highlight area is well known to those skilled in the art, and will not be described herein.
Step 307: and after the optical fingerprint identification, drawing the image content of the first area according to the second gray scale range of the second area.
In this step, after the optical fingerprint recognition, the contents of the optical fingerprint recognition area are restored to the mode of the normal display area. That is, since the high luminance gradation HBM mode is not required to be used again in the highlight display region a1, the gray scale used in the highlight display region a1 needs to be restored to the gray scale used in the normal mode, that is, the same gray scale as that used in the normal display region a 2.
Step 309: and (6) ending.
In the embodiment of the invention, the gray scales of different areas are determined according to the content in the target image to be displayed, and the brightness of the screen is adjusted according to the brightness levels corresponding to the gray scale ranges of the different areas when the target image is displayed, so that the brightness requirements of the different areas in the same display screen are realized, the requirements of different scenes on different brightness are met, the problem of screen flickering caused by circuit switching is avoided by adopting the scheme of the embodiment, and the experience of a user in using optical fingerprint identification is improved. The number of gray scales of the highlight display area is not reduced, so that the integrity of data is kept, and the display effect of the image is improved. Furthermore, after the optical fingerprint identification, the highlight display area can be restored to the brightness mode of the normal display area, and the experience of the optical fingerprint identification scene and the image display effect are improved.
Referring to fig. 5, a flowchart of a method for adjusting screen brightness according to an embodiment of the present invention is shown, where the method includes:
step 500: starting;
step 501: acquiring a target image to be displayed;
step 502: judging whether the target image comprises an optical fingerprint identification scene, if so, executing step 503; otherwise, executing step 510, namely normally displaying the target image of the second area;
step 503: acquiring a first area and a second area of the target image, wherein the first area is an optical fingerprint identification area, and the second area is an image area except the first area in the target image;
step 504: determining a first gray scale range of the first region and a second gray scale range of the second region;
step 505: displaying the target image, and adjusting the screen brightness of the first area and the second area according to the first gray scale range and the second gray scale range respectively in the process of displaying the target image;
in this embodiment, the implementation processes of steps 501 to 505 are the same as those of steps 301 to 305, and are described in detail above, and are not described herein again.
Step 506: judging whether an adjusting instruction input by a user is received; if so, go to step 508 and step 509; otherwise, go to step 507;
in this step, the need for detail transition and brightness perception is different for different users, so that the user may need the brightness of the highlight area (such as the fingerprint area) to be lower or higher, or the detail transition of the normal display area to be lower or higher. If not, go to step 507; if so, steps 508 and 509 are performed.
Step 507: in response to the first input, adjusting a brightness level corresponding to at least one gray-scale value of the first area and/or the second area; thereafter, step 508 and step 509 are performed;
in this step, if the user thinks that the brightness of the highlight area (for example, the fingerprint display area) is too high and is a bit dazzling, the brightness ratio of the X +1 to 255 grayscales of the highlight area can be adjusted downward, for example, X is 250 grayscales, the brightness corresponding to the 251 to 255 grayscales default by the system is 480, 510, 540, 570, 600nit, respectively, and the user can adjust the brightness to 440, 470, 500, 530, 560 nit.
If the user considers that the transition effect of the normal picture in the normal display area is not good enough and more gray scales need to be allocated, the threshold of X can also be adaptively improved, for example, X is 230 gray scale, and the user can actively adjust the gray scale to 250 gray scale to satisfy the better transition effect. After this, the process proceeds to step 508 and step 509.
Step 508: after the screen brightness is adjusted, carrying out optical fingerprint identification on the image of the first area;
step 509: and after the optical fingerprint identification is finished, drawing the image content of the first area according to the second gray scale range of the second area.
The steps 508 and 509 are the same as the steps 306 and 307, and are described in detail above, and are not described herein again.
Step 511: and (6) ending.
In the embodiment of the invention, the content of an image to be displayed is acquired firstly, if the content comprises an optical fingerprint identification scene, a highlight display area and a normal display area comprising the optical fingerprint identification scene are marked on the image to be displayed, then the gray scales of the highlight display area and the normal display area are determined, and finally, when the content of the image to be displayed is displayed, the screen brightness of the highlight display area and the normal display area is adjusted according to the determined gray scales. And when the screen brightness is judged not to meet the use requirement, adjusting the gray scales of the highlight display area and the normal display area according to the requirement and the brightness levels corresponding to the gray scales, namely, in the embodiment of the invention, the gray scales of different areas are determined according to the content in the image to be displayed, and when the image is displayed, the screen brightness is adjusted according to the brightness levels of the gray scales corresponding to the different areas, so that the requirements of different users on different brightness in a scene in the same display screen are met aiming at the brightness requirements of the different areas, the problem of screen glare caused by circuit switching is avoided by adopting the scheme of the embodiment, and the experience of the users in using optical fingerprint identification is improved. Because the gray scale of the highlight display area is not reduced, the integrity of data is reserved, and the display effect of the image is improved. Furthermore, the user can provide more services for the effect according to the requirement of the user on the display effect, and the experience of the user is enriched. Furthermore, after optical fingerprint identification, the highlight display area can be restored to the brightness mode of the normal display area, so that the experience of optical fingerprint identification and payment is optimized, and the image display effect is optimized.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 6, a schematic structural diagram of screen brightness adjustment according to an embodiment of the present invention includes: an acquisition module 61, a determination module 62, a display module 63 and a first adjustment module 64, wherein,
an obtaining module 61, configured to obtain a first area and a second area of a target image to be displayed when the target image indicates an optical fingerprint identification scene, where the first area is an optical fingerprint identification area, and the second area is an image area of the target image except for the first area;
a determining module 62, configured to determine a first gray scale range of the first region and a second gray scale range of the second region;
a display module 63, configured to display the target image;
a first adjusting module 64, configured to adjust screen brightness of the first region and the second region according to the first grayscale range and the second grayscale range, respectively, in a process of displaying the target image by the display module 63.
Optionally, in another embodiment, on the basis of the foregoing embodiment, the determining module 64 includes: a calculation module, a first determination module and a second determination module (not shown), wherein,
the calculation module is used for calculating all gray-scale values and the maximum gray-scale value of the target image to be displayed in a normal display mode;
a first determining module, configured to determine a gray scale range composed of gray scale values whose values are greater than the maximum gray scale value and less than or equal to 255 as a first gray scale range in which the first region performs drawing of the target image;
and the second determining module is used for determining the gray scale range formed by all the gray scale values as a second gray scale range for drawing the target image in the second area.
Optionally, in another embodiment, on the basis of the above embodiment, the embodiment further includes: a brightness level obtaining module, wherein,
and the brightness level acquisition module is used for acquiring the brightness level corresponding to each gray scale in the first gray scale range and the second gray scale range according to a preset corresponding relation between the gray scale and the brightness level before the first adjustment module adjusts the screen brightness of the first area and the second area according to the first gray scale range and the second gray scale range.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus further includes: a building block (not shown) is created in which,
and the establishing module is used for establishing the corresponding relation between each gray scale value and the brightness level of the first area and the second area before the acquiring module acquires the first area and the second area of the target image, wherein the lowest gray scale of the first area is higher than the highest gray scale of the second area.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include: a receiving module 71 and a second adjusting module 72, which are schematically shown in fig. 7, wherein,
a receiving module 71, configured to receive a first input of a user after the first adjusting module adjusts the screen brightness of the first region and the screen brightness of the second region according to the first gray scale range and the second gray scale range;
and a second adjusting module 72, configured to adjust, in response to the first input, a brightness level corresponding to at least one gray scale value of the first area and/or the second area.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus further includes: the identification module 81 and the recovery module 82 are schematically shown in fig. 8, wherein,
an identifying module 81, configured to perform optical fingerprint identification on the image of the first area after the first adjusting module 64 adjusts the screen brightness or after the second adjusting module 72 adjusts the brightness level corresponding to the gray scale value;
and a restoring module 82, configured to draw the image content of the first area according to the second grayscale range of the second area after the optical fingerprint identification performed by the identifying module 81 is finished.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Preferably, an embodiment of the present invention further provides a terminal, including: the computer program is executed by the processor to implement each process of the above-mentioned screen brightness adjustment method embodiment, and can achieve the same technical effect, and is not described herein again in order to avoid repetition.
In the embodiment of the invention, under the condition that a target image indicates an optical fingerprint identification scene, a first area and a second area of the target image are acquired, a first gray scale range of the first area and a second gray scale range of the second area are determined, and in the process of displaying the target image, the screen brightness of the first area and the screen brightness of the second area are respectively adjusted according to the first gray scale range and the second gray scale range. That is to say, the gray scales of different areas are determined according to the content in the target image to be displayed, and when the image is displayed, the screen brightness is adjusted according to the brightness levels corresponding to the gray scales of the different areas, so that the brightness requirements of the different areas in the same display screen are realized, and the requirements of users on different brightness in different scenes are met. Meanwhile, the number of gray scales of the highlight display area is not reduced, so that the integrity of data is kept, and the display effect of the image is improved.
Furthermore, the system can adjust the screen brightness of different areas according to the requirements of the user on the display effect, so that more services are provided, and the user experience is enriched.
Furthermore, after optical fingerprint identification, the highlight display area can be restored to the brightness mode of the normal display area, and the experience of optical fingerprint identification and the effect of image display are provided.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned screen brightness adjustment method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The screen brightness adjusting method, device, terminal and network device provided by the present invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. A screen brightness adjusting method is characterized by comprising the following steps:
under the condition that a target image indicates an optical fingerprint identification scene, acquiring a first area and a second area of the target image, wherein the first area is an optical fingerprint identification area, and the second area is an image area except the first area in the target image;
determining a first gray scale range of the first region and a second gray scale range of the second region;
displaying the target image, and adjusting the screen brightness of the first area and the second area according to the first gray scale range and the second gray scale range respectively in the process of displaying the target image;
wherein, in the process of displaying the target image and before adjusting the screen brightness of the first area and the second area according to the first gray scale range and the second gray scale range respectively, the method further comprises:
acquiring the brightness level corresponding to each gray scale in the first gray scale range and the second gray scale range according to the corresponding relation between the preset gray scale and the brightness level;
the determining a first gray scale range of the first region and a second gray scale range of the second region comprises:
calculating all gray scale values and the maximum gray scale value of a target image to be displayed in a normal display mode;
determining a gray scale range formed by gray scale values with values larger than the maximum gray scale value and smaller than or equal to 255 as a first gray scale range of the first area for drawing the target image;
and determining the gray scale range composed of all the gray scale values as a second gray scale range of the second area for drawing the target image.
2. The method of claim 1, wherein prior to acquiring the first and second regions of the target image, the method further comprises:
establishing a corresponding relation between each gray-scale value of the first area and each gray-scale value of the second area and the brightness level;
wherein the lowest gray scale of the first region is higher than the highest gray scale of the second region.
3. The method according to claim 1, wherein after the displaying the target image and adjusting the screen brightness of the first region and the second region according to the first grayscale range and the second grayscale range respectively during the displaying the target image, the method further comprises:
receiving a first input of a user;
and responding to the first input, and adjusting the brightness level corresponding to at least one gray-scale value of the first area and/or the second area.
4. The method according to claim 1 or 3, wherein the displaying the target image, and after adjusting the screen brightness of the first region and the second region according to the first gray scale range and the second gray scale range respectively, or after adjusting the brightness level corresponding to at least one gray scale value of the first region and/or the second region during the displaying the target image, the method further comprises:
performing optical fingerprint identification on the image of the first area;
and after the optical fingerprint identification is finished, drawing the image content of the first area according to the second gray scale range of the second area.
5. An electronic device, comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first area and a second area of a target image to be displayed under the condition that the target image indicates an optical fingerprint identification scene, the first area is an optical fingerprint identification area, and the second area is an image area except the first area in the target image;
the determining module is used for determining a first gray scale range of the first area and a second gray scale range of the second area;
the display module is used for displaying the target image;
the first adjusting module is used for adjusting the screen brightness of the first area and the second area according to the first gray scale range and the second gray scale range respectively in the process of displaying the target image by the display module;
further comprising:
the brightness level obtaining module is used for obtaining the brightness level corresponding to each gray scale in the first gray scale range and the second gray scale range according to the corresponding relation between the preset gray scale and the brightness level before the first adjusting module adjusts the screen brightness of the first area and the second area according to the first gray scale range and the second gray scale range;
the determining module comprises:
the calculation module is used for calculating all gray-scale values and the maximum gray-scale value of the target image to be displayed in a normal display mode;
a first determining module, configured to determine a gray scale range composed of gray scale values whose values are greater than the maximum gray scale value and less than or equal to 255 as a first gray scale range in which the first region performs drawing of the target image;
and the second determining module is used for determining the gray scale range formed by all the gray scale values as a second gray scale range for drawing the target image in the second area.
6. The electronic device of claim 5, further comprising:
and the establishing module is used for establishing the corresponding relation between each gray scale value and the brightness level of the first area and the second area before the acquiring module acquires the first area and the second area of the target image, wherein the lowest gray scale of the first area is higher than the highest gray scale of the second area.
7. The electronic device of claim 5, further comprising:
the receiving module is used for receiving a first input of a user after the first adjusting module adjusts the screen brightness of the first area and the second area according to the first gray scale range and the second gray scale range;
and the second adjusting module is used for responding to the first input and adjusting the brightness level corresponding to at least one gray-scale value of the first area and/or the second area.
8. The electronic device of claim 5 or 7, further comprising:
the identification module is used for carrying out optical fingerprint identification on the image of the first area after the first adjustment module adjusts the screen brightness or the second adjustment module adjusts the brightness level corresponding to the gray scale value;
and the recovery module is used for drawing the image content of the first area according to the second gray scale range of the second area after the optical fingerprint identification of the identification module is finished.
9. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps of the screen brightness adjustment method according to any one of claims 1 to 4.
10. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps of the screen brightness adjustment method according to any one of claims 1 to 4.
11. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the screen brightness adjustment method according to any one of claims 1 to 4.
CN201910147290.5A 2019-02-27 2019-02-27 Screen brightness adjusting method, electronic equipment, mobile terminal and storage medium Active CN109801605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910147290.5A CN109801605B (en) 2019-02-27 2019-02-27 Screen brightness adjusting method, electronic equipment, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910147290.5A CN109801605B (en) 2019-02-27 2019-02-27 Screen brightness adjusting method, electronic equipment, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109801605A CN109801605A (en) 2019-05-24
CN109801605B true CN109801605B (en) 2021-01-08

Family

ID=66561473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910147290.5A Active CN109801605B (en) 2019-02-27 2019-02-27 Screen brightness adjusting method, electronic equipment, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109801605B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188698B (en) * 2019-05-31 2021-05-14 Oppo广东移动通信有限公司 Fingerprint identification control method and device and computer readable storage medium
CN110277074B (en) * 2019-06-12 2022-03-08 福建华佳彩有限公司 Cross striation improvement method and storage device
CN110276326B (en) 2019-06-27 2021-07-16 云谷(固安)科技有限公司 Display device and display method
CN110673812B (en) * 2019-09-29 2023-02-24 Oppo广东移动通信有限公司 Display method and device of terminal equipment, terminal equipment and storage medium
CN112992068B (en) * 2019-12-18 2022-06-21 敦泰电子股份有限公司 Extension gamma device of display panel and display equipment comprising same
CN112992067B (en) * 2019-12-18 2022-03-29 敦泰电子股份有限公司 Display device for realizing local high brightness
CN113257162B (en) * 2020-02-12 2022-12-27 北京小米移动软件有限公司 Screen brightness adjusting method and device and storage medium
CN111650995A (en) * 2020-05-21 2020-09-11 Oppo广东移动通信有限公司 Image display method and device, mobile terminal and storage medium
CN114120898B (en) * 2020-08-31 2023-02-24 北京小米移动软件有限公司 Brightness adjusting method, brightness adjusting device and computer readable storage medium
CN113257177B (en) * 2021-05-13 2022-09-16 北京集创北方科技股份有限公司 Brightness control method and device and electronic equipment
CN113539165B (en) * 2021-07-30 2023-04-07 合肥维信诺科技有限公司 Gamma debugging method, device and equipment for display panel and storage medium
TWI782718B (en) * 2021-09-27 2022-11-01 大陸商北京集創北方科技股份有限公司 Screen scanning method of self-luminous display, control circuit, self-luminous display device and information processing device
TWI800359B (en) * 2022-04-25 2023-04-21 大陸商北京歐錸德微電子技術有限公司 Dynamic brightness control method of OLED display panel, OLED display device, and information processing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106157890A (en) * 2016-08-15 2016-11-23 京东方科技集团股份有限公司 A kind of lines identification display device and driving method
CN107798303A (en) * 2017-10-18 2018-03-13 维沃移动通信有限公司 A kind of method and mobile terminal for adjusting screen backlight
CN108510962A (en) * 2018-03-29 2018-09-07 联想(北京)有限公司 A kind of display control method and electronic equipment
CN108806603A (en) * 2018-06-29 2018-11-13 上海天马有机发光显示技术有限公司 A kind of organic light emitting display panel and its driving method, organic light-emitting display device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830190A (en) * 2018-05-30 2018-11-16 昆山国显光电有限公司 A kind of display equipment and its control method
CN109256090B (en) * 2018-11-16 2020-05-05 京东方科技集团股份有限公司 Display picture adjusting method, display panel and display device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106157890A (en) * 2016-08-15 2016-11-23 京东方科技集团股份有限公司 A kind of lines identification display device and driving method
CN107798303A (en) * 2017-10-18 2018-03-13 维沃移动通信有限公司 A kind of method and mobile terminal for adjusting screen backlight
CN108510962A (en) * 2018-03-29 2018-09-07 联想(北京)有限公司 A kind of display control method and electronic equipment
CN108806603A (en) * 2018-06-29 2018-11-13 上海天马有机发光显示技术有限公司 A kind of organic light emitting display panel and its driving method, organic light-emitting display device

Also Published As

Publication number Publication date
CN109801605A (en) 2019-05-24

Similar Documents

Publication Publication Date Title
CN109801605B (en) Screen brightness adjusting method, electronic equipment, mobile terminal and storage medium
KR100843090B1 (en) Apparatus and method for improving a flicker for images
CN107170424B (en) Display control method, display method and electronic equipment
CN108962126B (en) Display panel driving method and system and display device comprising same
CN101740005B (en) Display control apparatus and display control method
CN101847372B (en) Method and system for determining intensity arrangement of light source
KR101234958B1 (en) Adaptive contrast enhancement
CN108510947B (en) Double-screen dimming method and display device
US11335277B2 (en) Method, apparatus, and device for adjusting backlight brightness based on human eye characteristics
EP3379822B1 (en) Video enhancement method, terminal, and nonvolatile computer readable storage medium
CN107689215B (en) Backlight adjusting method and device of intelligent display equipment
US10783837B2 (en) Driving method and driving device of display device, and related device
US20150009249A1 (en) Video display device and television receiving device
CN108665428B (en) Image enhancement method, device, equipment and storage medium
US7826680B2 (en) Integrated histogram auto adaptive contrast control (ACC)
CN110956932B (en) Display device, driving method thereof, driving apparatus thereof, and computer readable medium
US20040258324A1 (en) Method for dynamic contrast enhancement by area gray-level detection
CN109637437B (en) Image display control method, device, medium and display screen control system
CN113596573B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN103208107B (en) The restorative procedure of terminal, image and device
CN110379379B (en) Backlight driving method and device, display device and storage medium
CN115223509A (en) Backlight control method, backlight control device, display equipment and computer readable storage medium
CN111724447B (en) Image processing method, system, electronic equipment and storage medium
CN111770322A (en) White balance adjustment method for pixel, display panel and computer readable storage medium
CN109559707B (en) Gamma value processing method and device of display panel and display equipment

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