CN116048368B - Brightness adjustment method and electronic device - Google Patents

Brightness adjustment method and electronic device Download PDF

Info

Publication number
CN116048368B
CN116048368B CN202310041568.7A CN202310041568A CN116048368B CN 116048368 B CN116048368 B CN 116048368B CN 202310041568 A CN202310041568 A CN 202310041568A CN 116048368 B CN116048368 B CN 116048368B
Authority
CN
China
Prior art keywords
screen
image
fingerprint
displayed
brightness value
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
CN202310041568.7A
Other languages
Chinese (zh)
Other versions
CN116048368A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310041568.7A priority Critical patent/CN116048368B/en
Priority to CN202311049532.XA priority patent/CN117215471A/en
Publication of CN116048368A publication Critical patent/CN116048368A/en
Application granted granted Critical
Publication of CN116048368B publication Critical patent/CN116048368B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • G09G3/3208Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
    • G09G3/3225Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED] using an active matrix
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application provides a brightness adjustment method and electronic equipment. By implementing the technical scheme provided by the application, at the time A, the electronic equipment detects the unlocking operation, and at the moment, the screen brightness of the electronic equipment is the screen brightness value A. In response to the unlocking operation, the electronic device displays an unlocking special effect (e.g., displays a fingerprint spot) and starts acquiring a fingerprint image. Under the condition that the screen brightness value A is smaller than the preset brightness value A, the gray scale value of a pixel point in the image to be displayed is reduced based on the ratio A, and then the image to be displayed (the gray scale value of the pixel point is reduced) is displayed through a gamma curve (also called as a target gamma curve 1) corresponding to the preset brightness value A in a group of gamma curves related to the frame rate A, so that the screen brightness still corresponds to the screen brightness value A when the image to be displayed is displayed.

Description

Brightness adjustment method and electronic device
Technical Field
The present application relates to the field of terminals, and in particular, to a brightness adjustment method and an electronic device.
Background
Currently, there are electronic devices having a fingerprint unlocking function. Some unlock special effects are typically accompanied when the fingerprint is unlocked, for example, unlock special effects including, but not limited to, the fingerprint icon may illuminate, an animation is displayed around the fingerprint icon, etc. A scene in which the electronic device displays an unlock special effect when fingerprint unlocking is performed may also be referred to as a partial highlight mode (lhbm) scene. In lhbm scenes, the electronic device can also control the brightness of the screen so that its brightness remains within a suitable range.
It is worth discussing how to reasonably control the screen brightness when the fingerprint is unlocked.
Disclosure of Invention
The application provides a brightness adjustment method and electronic equipment, which can keep a screen to continuously emit light when a fingerprint is unlocked, and does not influence the acquisition of fingerprint images.
In a first aspect, the present application provides a brightness adjustment method, the method comprising: the method comprises the steps that at first time, the electronic equipment detects unlocking operation of a user on a first control; responding to the unlocking operation, displaying indication information by the electronic equipment, and acquiring a fingerprint image; the fingerprint image is used for indicating the fingerprint of the user; the indication information is used for indicating the electronic equipment to unlock the fingerprint; the electronic equipment also displays a screen-off image when displaying the indication information; the screen brightness of the electronic equipment when displaying the screen-off image is the same as the screen brightness corresponding to the first time; the screen-off image is an image displayed when the electronic equipment locks the screen; under the condition that the fingerprint image is matched with the preset fingerprint image, the electronic equipment completes fingerprint unlocking.
In the above embodiment, the first time may be time a referred to in the following embodiment, and the first control may be a fingerprint icon referred to in the following embodiment. The indication information may be regarded as a partial or complete unlocking special effect, such as a fingerprint spot or a water wave, which is involved in the following embodiments. The indication information has the function of prompting the user that the electronic equipment is unlocked by the fingerprint; the off-screen image can be understood as an image to be displayed as referred to in the following embodiments.
By implementing the brightness adjustment method, the brightness of the screen can be kept consistent with that before unlocking when the electronic equipment performs fingerprint unlocking. The screen brightness before unlocking can be understood as the screen brightness corresponding to the first time.
With reference to the first aspect, in some embodiments, when the electronic device displays the off-screen image, the screen brightness is the same as the screen brightness corresponding to the first time, and specifically includes: the electronic equipment adjusts the gray scale value of the pixel point in the first screen extinguishing image based on a first ratio to obtain a second screen extinguishing image under the condition that the electronic equipment determines that the first screen brightness value is smaller than a preset brightness value; the first screen brightness value is the screen brightness corresponding to the first time; wherein the first screen-off image and the second screen-off image are screen-off images; the electronic equipment determines the corresponding conduction voltage of a first pixel channel through a first color correction curve and the gray scale value of the first pixel channel in the second screen-off image, and displays the second screen-off image based on the corresponding conduction voltage of the first pixel channel, so that the screen brightness is the first screen brightness value when the second screen-off image is displayed; wherein the first color correction curve is a color correction curve corresponding to the preset brightness value in a group of color correction curves associated with a first frame rate; the first frame rate is used for indicating a corresponding screen refresh rate when the screen-off image is displayed; the first pixel channel is a channel of any pixel in the second screen-off image; when the electronic equipment determines that the first screen brightness value is greater than or equal to the preset brightness value, the electronic equipment determines the corresponding conducting voltage of a second pixel channel through a second color correction curve and the gray scale value of the second pixel channel in the first screen-off image, and displays the first screen-off image based on the corresponding conducting voltage of the second pixel channel, so that the screen brightness is the first screen brightness value when the first screen-off image is displayed; the second color correction curve is a color correction curve corresponding to the first screen brightness value in a group of color correction curves associated with the first frame rate; the second pixel channel is a channel of any pixel in the first screen-off image.
In the above-described embodiments, the first screen brightness value may be understood as the screen brightness value a referred to in the following embodiments; the preset luminance value may be understood as the preset luminance value a referred to in the following embodiments; the first screen-off image may be a to-be-displayed image which is related to the following embodiment, and the second screen-off image may be understood as a to-be-displayed image with the pixel gray scale value reduced; the first ratio may be understood as ratio a referred to in the following examples. The first frame rate may be understood as the frame rate a referred to in the following embodiments.
Under the condition that the brightness value of the first screen is smaller than the preset brightness value, and under the condition that the brightness value (screen brightness value) corresponding to the color correction curve is larger than or equal to the preset brightness value, the working mode of the color correction curve is a DC mode, and the acquisition of fingerprint images cannot be affected when the off-screen image is displayed based on the color correction curve. The working modes of the first color correction curve and the second color correction curve are DC modes, so that when the electronic equipment performs fingerprint unlocking, the brightness of the screen can be kept consistent with that before unlocking while fingerprint image acquisition is not influenced.
With reference to the first aspect, in some embodiments, before the electronic device displays the indication information, the method further includes: the electronic device determines whether a screen refresh rate at a first time is greater than a preset screen refresh rate; determining that the electronic device sets the first frame rate to a value greater than or equal to the preset screen refresh rate if the screen refresh rate at the first time is less than the preset screen refresh rate; and determining that the first frame rate is the screen refresh rate of the electronic device at the first time under the condition that the screen refresh rate at the first time is greater than or equal to the preset screen refresh rate.
In the above embodiment, setting the first frame rate to a value greater than or equal to the preset screen refresh rate may enable the electronic device to complete fingerprint unlocking faster.
With reference to the first aspect, in some embodiments, the first frame rate is a screen refresh rate of the electronic device at a first time.
With reference to the first aspect, in some embodiments, after the fingerprint unlocking is completed, the screen refresh rate is a screen refresh rate at a first time.
In the above embodiment, the screen refresh rate after the fingerprint unlocking is completed should be the same as the screen refresh rate at the first time, and conform to the usage habit of the user.
With reference to the first aspect, in some embodiments, the method further includes: the electronic device does not include a set of color correction curves associated with the local highlight mode and includes a set of color correction curves associated with a second frame rate that includes 48hz.
In the above embodiment, the second frame rate may be a newly added screen refresh rate. The electronic device has limited space for storing color correction curves and may store a set of color correction curves associated with a new screen refresh rate using space for storing a set of color correction curves associated with a local highlight mode.
With reference to the first aspect, in some embodiments, the electronic device displays indication information, specifically includes: the electronic device displays a lighting pattern in the first control, the lighting pattern becoming brighter over time.
With reference to the first aspect, in some embodiments, the preset luminance value is a display luminance value corresponding to a screen luminance of 90 candelas per square meter.
With reference to the first aspect, in some embodiments, the preset screen refresh rate is 60hz, 90hz, or 120hz.
With reference to the first aspect, in some embodiments, an operation mode of a color correction curve corresponding to a luminance value smaller than the preset luminance value in the set of color correction curves associated with the second frame rate is different from an operation mode of a color correction curve corresponding to a luminance value greater than or equal to the preset luminance value in the set of color correction curves associated with the second frame rate.
In the above embodiment, the operation mode of the color correction curves in the group of color correction curves associated with the second frame rate, where the corresponding luminance value is smaller than the preset luminance value, may be the DC mode involved in the embodiment; the operation mode of the color correction curves in the group of color correction curves associated with the second frame rate, where the corresponding luminance value is greater than or equal to the preset luminance value, may be a PWM mode as referred to in the embodiment.
In a second aspect, the present application provides a brightness adjustment method, the method comprising: the method comprises the steps that at first time, the electronic equipment detects unlocking operation of a user on a first control; responding to the unlocking operation, displaying indication information by the electronic equipment, and acquiring a fingerprint image; the fingerprint image is used for indicating the fingerprint of the user; the electronic equipment also displays a third screen-off image when displaying the indication information; under the condition that the electronic equipment determines that the first screen brightness value is smaller than a preset brightness value, the electronic equipment determines the corresponding conducting voltage of a third pixel channel through a first color correction curve and the gray scale value of the third pixel channel in the third screen extinguishing image, and displays the third screen extinguishing image based on the corresponding conducting voltage of the third pixel channel determined by the first color correction curve, so that the screen brightness is the preset brightness value when the third screen extinguishing image is displayed; wherein the third screen-off image is a screen-off image; the first frame rate is used for indicating a corresponding screen refresh rate when the screen-off image is displayed; the first color correction curve is a color correction curve corresponding to the preset brightness value in a group of color correction curves associated with a first frame rate; the third pixel channel is a channel of any pixel in the third screen-off image; the electronic equipment determines the corresponding conducting voltage of the third pixel channel through a second color correction curve and the gray scale value of the third pixel channel under the condition that the first screen brightness value is larger than or equal to the preset brightness value, and displays the third screen extinguishing image based on the corresponding conducting voltage of the third pixel channel determined by the second color correction curve, so that the screen brightness is the first screen brightness value when the third screen extinguishing image is displayed; under the condition that the fingerprint image is matched with the preset fingerprint image, the electronic equipment completes fingerprint unlocking.
In the above embodiment, although the screen may be lightened, the operation mode of the gamma curve involved in displaying the image to be displayed is the DC mode, which does not affect the acquisition of the fingerprint image and is beneficial to unlocking the fingerprint.
In a third aspect, the present application provides an electronic device comprising: one or more processors and memory; the memory is coupled to the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors call to cause the electronic device to perform the method as described in the first aspect or any implementation of the first aspect.
In the above embodiment, when the first screen brightness value is smaller than the preset brightness value, and when the brightness value (screen brightness value) corresponding to the color correction curve is greater than or equal to the preset brightness value, the working mode of the color correction curve is a DC mode, and displaying the off-screen image based on the color correction curve does not affect the acquisition of the fingerprint image. The working modes of the first color correction curve and the second color correction curve are DC modes, so that when the electronic equipment performs fingerprint unlocking, the brightness of the screen can be kept consistent with that before unlocking while fingerprint image acquisition is not influenced.
In a fourth aspect, embodiments of the present application provide a chip system for application to an electronic device, the chip system comprising one or more processors configured to invoke computer instructions to cause the electronic device to perform a method as described in the first aspect or any implementation of the first aspect.
In the above embodiment, when the first screen brightness value is smaller than the preset brightness value, and when the brightness value (screen brightness value) corresponding to the color correction curve is greater than or equal to the preset brightness value, the working mode of the color correction curve is a DC mode, and displaying the off-screen image based on the color correction curve does not affect the acquisition of the fingerprint image. The working modes of the first color correction curve and the second color correction curve are DC modes, so that when the electronic equipment performs fingerprint unlocking, the brightness of the screen can be kept consistent with that before unlocking while fingerprint image acquisition is not influenced.
In a fifth aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform a method as described in the first aspect or any implementation of the first aspect.
In the above embodiment, when the first screen brightness value is smaller than the preset brightness value, and when the brightness value (screen brightness value) corresponding to the color correction curve is greater than or equal to the preset brightness value, the working mode of the color correction curve is a DC mode, and displaying the off-screen image based on the color correction curve does not affect the acquisition of the fingerprint image. The working modes of the first color correction curve and the second color correction curve are DC modes, so that when the electronic equipment performs fingerprint unlocking, the brightness of the screen can be kept consistent with that before unlocking while fingerprint image acquisition is not influenced.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform a method as described in the first aspect or any implementation of the first aspect.
In the above embodiment, when the first screen brightness value is smaller than the preset brightness value, and when the brightness value (screen brightness value) corresponding to the color correction curve is greater than or equal to the preset brightness value, the working mode of the color correction curve is a DC mode, and displaying the off-screen image based on the color correction curve does not affect the acquisition of the fingerprint image. The working modes of the first color correction curve and the second color correction curve are DC modes, so that when the electronic equipment performs fingerprint unlocking, the brightness of the screen can be kept consistent with that before unlocking while fingerprint image acquisition is not influenced.
Drawings
FIG. 1 shows a schematic diagram of how screen brightness remains unchanged before and after an unlock special effect (e.g., a fingerprint spot) is displayed;
FIG. 2 is a schematic diagram of the correspondence between DBV and nit;
FIG. 3 is a schematic diagram showing the correspondence between gray scale values and brightness under different gamma curves;
FIG. 4 shows an exemplary graph of gamma curves;
FIG. 5 shows a schematic diagram of the operation of an OLED;
FIG. 6 illustrates an exemplary flow chart relating to a brightness adjustment method in accordance with the present application;
FIG. 7 is a schematic diagram showing the adjustment of gray scale values and the display of a display image based on a target gamma curve;
FIG. 8 is a schematic software block diagram of a brightness adjustment method according to the present application;
FIG. 9 is a schematic diagram showing the effect of the scheme according to the embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates to the contrary. It should also be understood that the term "and/or" as used in this disclosure refers to and encompasses any or all possible combinations of one or more of the listed items.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the application, unless otherwise indicated, the meaning of "a plurality" is two or more.
In one scheme, when the fingerprint is unlocked, the electronic device can control the brightness of the screen by adjusting the brightness of each pixel point in the image displayed on the screen. Some or all of the content that is involved in unlocking the fingerprint, such as a fingerprint icon and an animation displayed around the fingerprint icon, may be included in the screen displayed image. The electronic device may determine the brightness of each pixel in the image displayed by the screen based on a set of color correction curves (gamma curves) associated with the local highlight mode (lhbm) such that the brightness of the screen reaches the target brightness. The local highlighting mode is associated with a set of gamma curves, different gamma curves in the set of gamma curves each corresponding to a luminance value. If the brightness of the screen is required to be controlled to be a brightness value 1 during fingerprint unlocking, the gamma curve corresponding to the brightness value 1 in a group of gamma curves associated with the local highlighting mode can be determined to determine the brightness of each pixel point in the image displayed by the screen, so that the brightness of the screen reaches the brightness value 1. Wherein the luminance value comprises a screen luminance value.
A set of gamma curves corresponding to the local highlighting mode (lhbm) is stored in a chip (IC) of the electronic device (chip 1), for example, the chip 1 may be a Display Driver IC (DDIC), and gamma curves associated with different screen refresh rates are also stored in the chip 1. Each screen refresh rate is associated with a set of gamma curves, and different gamma curves in the set of gamma curves also each correspond to a luminance value (screen luminance value). Under the condition that the electronic equipment works at the screen refreshing rate 1 and the brightness value 1, after the electronic equipment finishes fingerprint unlocking, the brightness of each pixel point in an image displayed on the screen can be determined by utilizing the gamma curve corresponding to the brightness value 1 in a group of gamma curves associated with the screen refreshing rate 1, so that the brightness of the screen reaches the brightness value 1. At present, there is a new screen refresh rate (e.g. 48 hz) added to the electronic device, and a set of gamma curves associated with the new screen refresh rate needs to be configured, and because the space for storing gamma curves in the chip 1 is limited, a possible scheme is to use the space for storing a set of gamma curves associated with lhbm in the chip 1 for storing a set of gamma curves associated with the new screen refresh rate. When the fingerprint is unlocked, the brightness of each pixel point in the image displayed by the screen can be determined by using the gamma curve corresponding to the target brightness in the group of gamma curves associated with the current screen refreshing rate, so that the brightness of the screen reaches the target brightness.
There are two modes of operation for the gamma curve associated with the screen refresh rate, including Direct Current (DC) mode and pulse width modulation (pulse widthmodulation, PWM) mode. When the target brightness of the screen is smaller than the preset brightness value A, the gamma curve associated with the screen refresh rate is in a PWM mode. When the target brightness of the screen is greater than or equal to the preset brightness value A, the gamma curve associated with the screen refresh rate is in a DC mode.
However, when the gamma curve associated with the screen refresh rate is in the PWM mode, fingerprint unlocking may affect fingerprint image acquisition, and the acquired fingerprint image cannot normally represent the fingerprint of the user. One reason for this problem is that: in the case that the gamma curve associated with the screen refresh rate is in the PWM mode, each pixel point in the image displayed on the screen is not continuously illuminated in order to make the target brightness of the screen smaller than the preset brightness value a. In the case where none of the pixels is displayed with light, a low screen brightness can be understood as a black screen (extremely short time, unnoticeable to the user), in which state the capture of the fingerprint image by the electronic device is affected. The method for enabling each pixel point in the image displayed on the screen not to continuously emit light comprises the following steps: the organic light-emitting diode (OLED) corresponding to each pixel is controlled not to be continuously turned on, so that the organic light-emitting diode corresponding to the pixel does not continuously emit light, i.e., each pixel does not continuously emit light.
It should be understood here that each pixel in the displayed image is displayed by emitting light from the OLED corresponding to the pixel. In some possible cases, a pixel may correspond to three OLEDs, where the three OLEDs respectively correspond to a red channel, a blue channel, or a green channel of the pixel, and when the three OLEDs are turned on (current flows), the pixel corresponding to the three OLEDs may be indicated to emit light for display.
For a detailed description of the gamma curve associated with the screen refresh rate and the two operation modes thereof, reference is made to fig. 5 and the related contents thereof, which are not repeated herein.
In order to solve the problem that fingerprint image acquisition is affected when a gamma curve associated with a screen refresh rate is in a PWM mode, the embodiment of the application provides a brightness adjustment method, and when the fingerprint is unlocked, the brightness of the screen of electronic equipment is adjusted based on a local highlight mode transparency (lhbmalpha) scheme. In the scheme, when the electronic equipment performs fingerprint unlocking, the screen brightness can be reasonably controlled before and after the unlocking special effect (for example, fingerprint light spots are displayed) is displayed under the condition that fingerprint acquisition is completed. The reasonable control of screen brightness here includes: the brightness of the screen is kept unchanged after the unlocking special effect is displayed (the process of displaying the unlocking special effect can be included), and before the unlocking special effect is displayed, so that the screen brightness change can not exist when a user feels unlocking. The method further comprises the step of exiting the state of displaying the unlocking special effect (for example, exiting the state of displaying the fingerprint light spot) after the unlocking special effect is displayed. Reasonably controlling the screen brightness is also understood to mean that the screen brightness is kept consistent with the screen brightness before unlocking when fingerprint unlocking is performed.
In some possible cases, the fingerprint light spot is a luminous pattern, and may be displayed in the fingerprint icon, so that the fingerprint icon emits light. The luminance of the light emitting pattern may become greater over time until a preset luminance maximum value is reached.
One way to keep the brightness of the screen unchanged before and after displaying the unlock special effect includes: and at the time A, the electronic equipment detects unlocking operation, and at the moment, the screen brightness of the electronic equipment is a screen brightness value A. In response to the unlocking operation, the electronic device displays an unlocking special effect (e.g., displays a fingerprint spot) and starts acquiring a fingerprint image. Under the condition that the screen brightness value A is smaller than the preset brightness value A, the gray scale value of a pixel point in the image to be displayed is reduced based on the ratio A, and then the image to be displayed (the gray scale value of the pixel point is reduced) is displayed through a gamma curve (also called as a target gamma curve 1) corresponding to the preset brightness value A in a group of gamma curves related to the frame rate A, so that the screen brightness still corresponds to the screen brightness value A when the image to be displayed is displayed. The screen brightness value a is the latest (including time a) updated screen brightness value before time a. Frame rate a includes the screen refresh rate of the time a electronic device. The ratio A is a preset parameter stored in the electronic equipment for adjusting the gray scale value of each pixel point in the image to be displayed. The image to be displayed includes an image displayed in the process of displaying the unlock special effect (for example, displaying a fingerprint spot). Also included are images displayed when an unlock special effect (e.g., a fingerprint spot) is displayed. In some possible cases, the image to be displayed may be understood as a screen-off image, which is an image displayed by the electronic device when the screen is locked.
It should be understood that the factors determining the brightness of the screen include a gamma curve used when displaying the image to be displayed, and gray-scale values of pixels in the image to be displayed. When the gray scale value of each pixel point in the image to be displayed is kept unchanged, in a group of gamma curves associated with the frame rate A, the gamma curve corresponding to any brightness value is selected to display the image to be displayed, so that the brightness corresponding to the screen is the any brightness value. Here, when the gray scale value of each pixel point remains unchanged, the screen brightness may be made to be the preset brightness value a (greater than the screen brightness value a) when the image to be displayed (the gray scale value remains unchanged) is displayed through the gamma curve (the target gamma curve 1) corresponding to the preset brightness value a in the group of gamma curves associated with the frame rate a. Although the gamma curve is in the DC mode under the preset brightness value A, the continuous illumination of the screen can not influence the fingerprint image acquisition. However, when the unlocking operation is detected, the latest brightness of the screen is a screen brightness value A, and the screen brightness value A is smaller than a preset brightness value A, which is equivalent to that the screen brightness is increased when the fingerprint is unlocked, and the screen is lightened. If the screen brightness is desired to be kept at the screen brightness value A before and after the fingerprint unlocking is displayed, the gray scale value of each pixel point in the image to be displayed can be reduced so that the screen brightness can not be increased when the image to be displayed is displayed by utilizing the target gamma curve 1. Compared with the case that the screen brightness is the screen brightness value A, in the case that the brightness value corresponding to the target gamma curve 1 is the preset brightness value A, if the screen brightness value is to be kept at the screen brightness value A (not becoming larger), the gray scale value of each pixel point in the image to be displayed can be reduced according to a certain ratio value. The certain ratio value is the ratio value a related to the above, and the ratio value a is preset. The theoretical basis involved here is: one pixel corresponds to three gray-scale values, namely, a gray-scale value corresponding to a red channel, a gray-scale value corresponding to a blue channel and a gray-scale value corresponding to a green channel. Under the condition that the same gamma curve is used for displaying the image to be displayed, the smaller the gray-scale value of one channel is, the smaller the OLED brightness corresponding to the channel is, the larger the gray-scale value of one channel is, and the larger the OLED brightness corresponding to the channel is. After all three gray scale values corresponding to a pixel point are reduced, the brightness of the three OLEDs corresponding to the pixel point is reduced, so that the brightness of the pixel point is reduced. And the gray scale values corresponding to all the pixel points in the image to be displayed are adjusted to be smaller, so that the brightness of the image to be displayed can be reduced, and the screen brightness is reduced.
Fig. 1 shows a schematic diagram related to the screen brightness being kept unchanged before and after displaying an unlocking special effect (for example, displaying a fingerprint spot).
As shown in fig. 1 (1), a schematic diagram of entering an all-weather on display (AOD) mode when the electronic device is turned off may be shown. After the screen is turned off and before the unlocking operation is detected, the screen of the electronic device is not turned on (the background is in a black state), and at this time, the DBV value may be 0 (i.e., the aforementioned related screen brightness value a is 0). Referring to the user interface 11, an operation for the fingerprint icon 101 is detected (i.e., an unlocking operation is detected), and in response to the operation, the electronic device may display an unlocking special effect. For example, referring to the user interface 12, the electronic device may display an unlock special effect around the fingerprint icon 101, e.g., display the fingerprint spot 102, and may also display an animation around the fingerprint icon, e.g., display the water ripple 103, etc. The subsequent electronic device may exit (no longer display) the fingerprint spot 102, during which the screen brightness remains unchanged.
As shown in (2) of fig. 1, the electronic device is lit up with the DBV value greater than 0 when the screen is turned off. Referring to the user interface 13 and the user interface 14, when fingerprint unlocking is performed, screen brightness remains unchanged after the unlocking special effect is displayed (may also include during the process of displaying the unlocking special effect) and before the unlocking special effect is displayed.
It should be understood here that the fingerprint icon is a control for unlocking that is displayed by the electronic device when the electronic device is turned off, and may receive an unlocking operation and trigger an unlocking procedure.
In some possible cases, the foregoing screen brightness value for describing the screen brightness may be represented by a display brightness value (display brightness value, DBV), where DBV is a concept of one gear for describing the screen brightness in a Display Driver IC (DDIC), and may include 4096 gears (e.g., 0-4095 th order), and the larger DBV, the brighter the screen in the case that the gray-scale value of the pixel point in the image to be displayed is fixed. The luminance value corresponding to the gamma curve may also be represented by a DBV.
In some possible cases, the units involved in the screen brightness perceived by the user may be expressed in nit, alternatively referred to as candela per square meter (cd/m) 2 )。
In some possible cases, the above-mentioned different gamma curves each correspond to a luminance value, and the luminance value corresponding to the gamma curve may also be represented by a display luminance value (display brightness value, DBV). Alternatively, the luminance value corresponding to the gamma curve may be indicated by nit.
It should be understood that when the screen brightness value describing the screen brightness is not consistent with the description value corresponding to the brightness value corresponding to the gamma curve, for example, one is represented by DBV, and the other is represented by nit, the converted correspondence may be performed. There is a correspondence between nit and DBV. Reference is made in particular to the description of fig. 2 below.
Fig. 2 shows a schematic diagram of the correspondence between DBV and nit.
As described in fig. 2, there is a correspondence between nit value and DBV value of screen brightness. In some possible cases, the preset luminance value a referred to above may be expressed as 90nit, and may also be expressed as a DBV value corresponding to 90nit, for example, 1200. When the fingerprint is unlocked, the electronic device determines that the screen brightness value a is smaller than 90nit (corresponding to 1200 DBV), adjusts the gray scale value of the pixel point in the image to be displayed based on the ratio a, and then displays the image to be displayed (the gray scale value of the pixel point is adjusted to be smaller) through the gamma curve corresponding to 90nit (corresponding to 1200 DBV) in the group of gamma curves associated with the frame rate a, so that the screen brightness corresponds to the screen brightness value a when the image to be displayed. The ratio a corresponding to the different screen brightness values a is different.
The related contents of the screen brightness corresponding to the gamma curve and the gray scale value of the pixel point are described below.
Firstly, the content related to the corresponding relation between the gray scale value and the brightness is determined based on the gamma curve.
FIG. 3 is a schematic diagram showing the correspondence between gray scale values and brightness under different gamma curves.
The gamma curve describes the corresponding relation between the gray scale value and the brightness corresponding to different pixel points, and the brightness of the OLED corresponding to a certain channel can be determined when the channel is turned on (light emitting) based on the gamma curve under the condition that the gray scale value of the channel of the pixel points is determined. The gray-scale value of a channel can also be determined based on the condition that the brightness of the gamma curve when the OLED corresponding to the channel of the pixel point is turned on (emits light) is determined.
As shown in fig. 3, the curve coefficients corresponding to different gamma curves are different, the curve coefficient corresponding to the gamma curve 11 in fig. 3 is 1, and the curve coefficient corresponding to the gamma curve 12 is 2. In some possible cases, the correspondence between the brightness of an OLED corresponding to a channel when it is turned on (emits light) and the gray-scale value of the channel can be expressed as: luminance= (gray level value/255) curve coefficient.
Rule 1 and rule 2 can be seen on the basis of fig. 3.
Rule 1: the luminance values corresponding to different gamma curves are different, the luminance value corresponding to the gamma curve 11 is larger than the luminance value corresponding to the gamma curve 12, and when the gray scale value of a certain channel of the pixel point is the same, compared with the gamma curve 12, the luminance of the channel OLED corresponding to the channel is larger when the channel OLED corresponding to the channel is conducted (light-emitting) based on the gamma curve 11.
Rule 2: under the same gamma curve, the smaller the gray scale value corresponding to a certain channel of the pixel point is, the smaller the brightness of the OLED corresponding to the channel is when the OLED is turned on (emits light). And (3) all pixel points in the image to be displayed follow the rule 2, and the gray scale values corresponding to all pixel points in the image to be displayed are reduced, so that the screen brightness can be reduced.
FIG. 4 shows an exemplary graph of gamma curves.
In some possible cases, the gamma curve stored in the electronic device may represent a correspondence between the gray-scale value of any channel of different pixels and the on-voltage (Vdata) mapping value of the OLED corresponding to the channel. There is a mapping relationship between the Vdata mapping value of the OLED and the on voltage (Vdata) actually input to the operating circuit where the OLED is located, for example, the larger the Vdata mapping value is, the smaller Vdata corresponding to the Vdata mapping value is. The turn-on voltage (Vdata) of the operating circuit where the OLED is located may also be referred to as the turn-on voltage (Vdata) corresponding to the OLED. The Vdata map value (Vdata map value) of an OLED determines the luminance of that OLED: when the OLED is turned on, the larger the Vdata map value of the OLED is, the smaller the on voltage corresponding to the OLED is, and the larger the current flowing through the OLED is, the larger the luminance of the OLED is. The on-voltage corresponding to an OLED can also be understood as the on-voltage corresponding to the channel corresponding to the OLED. It should be understood here that the on voltage corresponding to the OLED is not the voltage across the OLED, but the input voltage on the operating circuit where the OLED is located, for example, may be a 7T1C circuit. An exemplary description of the operating circuit in which the OLED is located may refer to the following description of fig. 5, which is not repeated here.
It should be understood herein that different screen refresh rates are each associated with a set of gamma curves, and that different gamma curves in the set of gamma curves associated with a screen refresh rate correspond to different brightness values.
As shown in fig. 4, it is assumed that the display of the image to be displayed is performed according to the gamma curve corresponding to the screen refresh rate H1 and the screen brightness H2 shown in fig. 4, so that the screen brightness H2 may be obtained. The gamma curve includes three sets of corresponding relations, which are the corresponding relations between the gray scale values of three channels of the pixel point and the on voltage (Vdata) mapping value of the OLED corresponding to the channel. In fig. 4, a curve 401 may represent a correspondence between a gray-scale value of a blue channel of a pixel point and a conduction voltage (Vdata) mapping value of an OLED corresponding to the blue channel. The curve 402 may represent a correspondence between a gray level value of a red channel of a pixel and a conduction voltage (Vdata) mapping value of an OLED corresponding to the red channel. The curve 403 may represent the correspondence between the gray-scale value of the green channel of the pixel point and the on-voltage (Vdata) mapping value of the OLED corresponding to the green channel.
It should be understood here that displaying the image to be displayed using the gamma curve may include: the electronic equipment determines the corresponding on voltage of the pixel channel through the gamma curve and the gray scale value of the pixel channel in the image to be displayed, and displays the image to be displayed based on the corresponding on voltage of the pixel channel.
Fig. 5 shows a schematic diagram of the operation of an OLED.
An OLED is a light emitting device that can be seen as a hardware representation of the gray scale value of a channel of a pixel.
Fig. 5 (1) shows an exemplary circuit diagram of an operating circuit of an OLED, where ELVDD represents a positive voltage, ELVSS represents a negative voltage, and Vdata is a corresponding turn-on voltage of the OLED. The electronic device may control the conduction of the OLED by controlling the voltage input at the EM terminal. As shown in fig. 5 (2), the EM terminal may input a low level for a part of the time in one period (T), and input a high level for the other times in the period when the part of the time is less than the duration of the one period. The OLED is turned on to emit light when a low level is input, and is turned off to emit light when a high level is input. When the OLED is on, the smaller Vdata flows through the OLED, the brighter the OLED (i.e., the greater the luminance). In some possible cases, OLED conduction may be achieved by controlling transistor T1 or transistor T2 to conduct.
In some possible cases, two modes of operation exist for the aforementioned related gamma curves associated with the screen refresh rate by controlling the voltage input at the EM terminal. When the target brightness of the screen is smaller than the preset brightness value A, the gamma curve associated with the screen refresh rate is in a PWM mode. At this time, the EM terminal may input a low level for a part of the time and input a high level for the other time during one period (T). In this way, the OLED may be made not to emit light continuously (i.e., each pixel is not to be displayed by emitting light continuously) so that the target luminance of the screen is smaller than the preset luminance value a. When the target brightness of the screen is greater than or equal to the preset brightness value A, the gamma curve associated with the screen refresh rate is in a DC mode. At this time, the EM terminal inputs a low level for one period (T).
It should be appreciated that the high level referred to above may be represented by 1 and the low level may be represented by 0. The high and low level functions are merely illustrative, and the high and low level functions may be interchanged in practice.
As shown in fig. 5 (1), the operation state of the OLED includes light emission and non-light emission. Wherein, the EM terminal inputs low level when emitting light, and Gn-1 terminal and Gn terminal input high level. The non-light emitting state includes reset state and compensation state, and in the reset state, the EM terminal inputs high level, the Gn-1 terminal inputs low level and the Gn terminal inputs high level. In the compensation state, the EM terminal inputs a high level, the Gn-1 terminal inputs a high level, and the Gn terminal inputs a low level.
Fig. 6 shows an exemplary flowchart related to the brightness adjustment method in the present application.
When the fingerprint is unlocked, the brightness of the screen is adjusted so that the brightness of the screen is unchanged after the unlocking special effect is displayed (the process of displaying the unlocking special effect can be included) and before the unlocking special effect is displayed. The process may be referred to as the following description of step S101 to step S105.
S101, at time A, the electronic equipment detects unlocking operation.
Time a is the time when the electronic device detects the unlocking operation.
The unlocking operation may include an operation for a fingerprint icon, such as a click operation.
In some possible cases, the schematic diagram involved in the detection of the unlocking operation by the electronic device may refer to the user interface 11 involved in (1) in fig. 1 and the unlocking operation for the finger print icon 101 in the user interface 11.
In other possible cases, the schematic diagram involved in the detection of the unlocking operation by the electronic device may refer to the user interface 13 involved in (2) in fig. 1 and the unlocking operation for the finger print icon 101 in the user interface 13.
S102, responding to the unlocking operation, displaying fingerprint light spots by the electronic equipment, and acquiring fingerprint images.
In some possible cases, the fingerprint spot displayed by the electronic device may refer to the fingerprint spot 102 shown in fig. 1 described previously. The luminous content displayed in the fingerprint icon by the fingerprint light spot indication electronic equipment can be used for prompting a user that the electronic equipment enters fingerprint unlocking.
The fingerprint image may be used to indicate a fingerprint of the user.
In some possible cases, in the case that the electronic device displays the fingerprint light spot, other unlocking special effects may also be displayed, for example, animation such as water ripple may also be displayed around the fingerprint icon, and one example of the water ripple may refer to the water ripple 103 shown in fig. 1 and the like.
S103, determining whether the screen brightness value A is smaller than a preset brightness value A, wherein the screen brightness value A is the latest updated screen brightness value before the time A.
The electronic device acquires the screen brightness value updated last time when the unlocking operation is detected as the screen brightness value a (which may also be understood as the screen brightness value corresponding to the time a). The screen brightness value a may be understood as a screen brightness value updated by the electronic device when the electronic device detects the last time of the unlocking operation, that is, the screen brightness value a is the screen brightness value updated recently (including time a) before time a. I.e. the screen brightness value corresponding to time a can be understood as: the screen brightness value acquired at time a may acquire, as the screen brightness value a, the screen brightness value that was recently updated before time a in the case where the time a electronic device did not update the screen brightness value.
Under some possible situations, when the screen brightness value a is smaller than the preset brightness value a, since the gamma curve associated with the screen refresh rate is in the PWM mode and affects the acquisition of the fingerprint image, the following step S104a may be executed to display the image to be displayed by using the gamma curve corresponding to the preset brightness value a (greater than the screen brightness value a), and reduce the gray scale value of the pixel point in the image to be displayed so that the screen brightness still maintains the screen brightness value a before and after the unlocking special effect is displayed.
In some possible cases, when the screen brightness value a is greater than or equal to the preset brightness value a, since the gamma curve associated with the screen refresh rate is in the DC mode and does not affect the acquisition of the fingerprint image, the following step S104b may be executed to display the image to be displayed by using the gamma curve corresponding to the screen brightness value a, where the screen brightness value a is still maintained before and after unlocking the special effect.
S104a, adjusting the gray scale value of a pixel point in the image to be displayed based on the ratio A, and displaying the image to be displayed through a preset brightness value A and a gamma curve corresponding to the frame rate A, so that the screen brightness corresponds to the screen brightness value A when the image to be displayed is displayed.
The frame rate a may be used to indicate a corresponding screen refresh rate of the electronic device when displaying the image to be displayed, which in some possible cases includes the screen refresh rate of the electronic device when an unlock operation is detected (time a).
The preset luminance value a and the gamma curve corresponding to the frame rate a may be understood as a gamma curve corresponding to the preset luminance value a in a group of gamma curves associated with the frame rate a, and may be referred to as a target gamma curve 1.
In some possible cases, the electronic device may display one frame of image at time a, and after time a detects an unlock operation, as the electronic device refreshes the screen based on the frame rate a, other frame images (i.e., images to be displayed) need to be displayed. When the target gamma curve 1 (the preset brightness value A corresponding to the screen brightness value A) is used for displaying the image to be displayed, the screen brightness value is the preset brightness value A (greater than the screen brightness value A) when the image to be displayed is displayed, and the target gamma curve 1 works in the DC mode and does not influence the acquisition of the fingerprint image, but the screen suddenly lightens, so that the gray scale value of a pixel point in the image to be displayed can be reduced based on the ratio A besides the image to be displayed by using the target gamma curve 1, and then the image to be displayed (the gray scale value of the pixel point is reduced) by using the target gamma curve 1, so that the screen brightness is kept at the screen brightness value A.
The ratio a is a parameter which is preset and stored in the electronic device to adjust the gray scale value of each pixel point in the image to be displayed. The gray scale value of the pixel point in the image to be displayed of the electronic equipment can be reduced based on the ratio A, and then the image to be displayed (the gray scale value of the pixel point is reduced) is displayed by using the target gamma curve, so that the screen brightness is kept at the screen brightness value A.
It should be understood that, after the gray-scale value of the pixel point in the image to be displayed is adjusted to be smaller based on the ratio a, the image to be displayed with the gray-scale value adjusted to be smaller can be obtained. The image in which the gray-scale value of the pixel point in the image to be displayed is reduced based on the ratio a may also be referred to as an image to be displayed in which the gray-scale value is reduced.
An exemplary description of step S104a may refer to the description of fig. 7 below.
FIG. 7 is a schematic diagram showing the adjustment of gray scale values and the display of a display image based on a target gamma curve.
In fig. 7, the gamma curve 21 is a gamma curve corresponding to the screen brightness value a in a group of gamma curves associated with the frame rate a, and the working mode of the gamma curve 21 is a PWM mode because the screen brightness value a is smaller than the preset brightness value a. The gamma curve 22 in fig. 7 is a gamma curve corresponding to the preset brightness value a in a group of gamma curves associated with the frame rate a, and the working mode of the gamma curve 22 is a DC mode.
In the case where the screen luminance value a is smaller than the preset luminance value a, the image to be displayed is displayed not using the gamma curve 21 but using the gamma curve 22.
As shown in fig. 7, when the gamma curve 22 is used to display the same pixel without decreasing the gray scale value of the pixel in the image to be displayed, compared with the gamma curve 21, the Vdata mapping value of the corresponding OLED in each channel of the pixel is larger, and the smaller the Vdata corresponding to the OLED, the larger the current flowing through the OLED, the brighter the OLED, and the brighter the pixel. For example, as shown in fig. 7 at a, if the gray-scale value of one channel of the pixel corresponding to the a point is 250, the on-voltage (Vdata) mapping value corresponding to the gamma curve 21 is 350, and the pixel corresponding to the a point in the gamma curve 22 refers to the pixel corresponding to the B1 point: if the Vdata mapping value is greater than 350, the pixel corresponding to the point a is brighter when displayed based on the gamma curve 22 than when displayed based on the gamma curve 21. The display of the image to be displayed using the gamma curve 22 (the gray scale value remains unchanged) will lighten the screen compared to the gamma curve 21 if all the pixels in the image to be displayed follow the rule.
Based on the foregoing combination step S104a, as shown in fig. 7, when the gray scale value of the pixel in the image to be displayed is reduced, for the same pixel, compared with the gamma curve 21, when the gamma curve 22 is used to display the pixel, the Vdata mapping values of the OLEDs corresponding to the channels of the pixel can be the same or similar, so that the brightness of the pixel remains unchanged or is less perceived (can be considered to be unchanged). For example, as shown in fig. 7 at a, if the gray-scale value of one channel of the pixel corresponding to the a point is 250, the on-voltage (Vdata) mapping value corresponding to the gamma curve 21 is 350, and the pixel corresponding to the a point in the gamma curve 22 refers to the pixel corresponding to the B2 point: the gray scale value is less than 250, but the Vdata mapping value is still 350 or close to 350, so that the brightness of the pixel corresponding to the point a remains unchanged or is less perceived (can be considered to remain unchanged) when displayed based on the gamma curve 22 than when displayed based on the gamma curve 21. When all the pixel points in the image to be displayed follow the rule, compared with the gamma curve 21, the gamma curve 22 is used for displaying the image to be displayed (the gray scale value is kept unchanged), so that the screen brightness is kept unchanged, and is still the screen brightness value A.
It should be understood here that the operation of adjusting down the gray-scale value of the pixel point in the image to be displayed based on the ratio a in step S104a is optional. In other possible cases, in the case where the screen brightness value a is smaller than the preset brightness value a, the electronic device may not perform the operation of reducing the gray-scale value of the pixel point in the image to be displayed based on the ratio a, but perform the operation of displaying the image to be displayed (the gray-scale value of the pixel point remains unchanged) through the preset brightness value a and the gamma curve (the target gamma curve) corresponding to the frame rate a, so that the screen brightness corresponds to the preset brightness value a when the image to be displayed. Therefore, although the screen can lighten, the working mode of the target gamma curve is a DC mode, the acquisition of fingerprint images is not affected, and fingerprint unlocking is facilitated.
S104b, displaying the image to be displayed through a gamma curve corresponding to the screen brightness value A and the frame rate A, so that the screen brightness corresponds to the screen brightness value A when the image to be displayed is displayed.
Under the condition that the screen brightness value A is larger than or equal to the preset brightness value A, the working mode of the gamma curve corresponding to the screen brightness value A and the frame rate A is a DC mode, and the collection of fingerprint images is not affected. The electronic device may display the image to be displayed through the screen brightness value a and the gamma curve corresponding to the frame rate a, so that the screen brightness corresponds to the screen brightness value a when the image to be displayed is displayed.
S105, under the condition that the fingerprint images are determined to be matched, unlocking is completed.
The electronic equipment determines whether the collected fingerprint image is matched with a preset fingerprint image or not, and under the condition that the fingerprint image is determined to be matched, unlocking is completed.
The preset fingerprint image is a fingerprint image input by a user through the electronic equipment, and can be used for fingerprint unlocking and other operations.
In some possible embodiments, the frame rate a referred to in the foregoing step S104a and step S104b may be a screen refresh rate of the electronic device when the unlocking operation is detected (time a).
In other possible embodiments, in the case where the unlock special effect includes a fingerprint spot, and the brightness of the fingerprint spot gradually becomes larger, the operation of performing fingerprint image matching may be performed when the fingerprint spot reaches the maximum brightness. The lower the screen refresh rate is, the longer the fingerprint light spot reaches the maximum brightness, and the lower the screen refresh rate is, the slower the fingerprint unlocking completion time is. The time required for the fingerprint light spot to reach maximum brightness is time B (e.g., 50 ms), the minimum screen refresh rate is compatible to 60hz, and a screen refresh rate less than 60hz will affect fingerprint unlocking. Then when fingerprint unlocking is performed, a framing decision may be performed such that the frame rate a is greater than or equal to 60hz to complete fingerprint unlocking. The process is as follows: under the condition of determining frame cutting, judging whether the screen refresh rate corresponding to the time A meets the requirement A, and switching according to a preset rule if the screen refresh rate does not meet the requirement A, for example, when the electronic equipment is high, the screen refresh rate when the image to be displayed is displayed can be switched to 120hz, namely, when the frame rate A is 120hz, and when the frame rate A is standard, the screen refresh rate when the image to be displayed is displayed can be switched to 60hz, namely, when the frame rate A is 60hz. Alternatively, the frame rate a is set to be equal to or greater than a preset screen refresh rate by default (e.g., set to 60hz or 120hz, etc.). Where requirement a includes a screen refresh rate less than a preset screen refresh rate (e.g., 60 hz).
The frame slicing decision indicates whether a screen refresh rate corresponding to a screen needs to be switched when displaying an image to be displayed. In the case where it is determined that no frames are cut, the frame rate a is the screen refresh rate of the time a electronic device.
After the fingerprint unlocking is completed, the screen refresh rate corresponding to the electronic device may be set to the screen refresh rate corresponding to the time a.
Fig. 8 is a schematic software structure block diagram related to the brightness adjustment method in the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the system is divided into five layers, from top to bottom, an application layer, an application framework layer, a local service layer, a hardware abstraction layer, and a kernel layer, respectively. Also shown in FIG. 8 is a hardware (hardware) layer that can communicate with the kernel layer.
The application layer may include a series of application packages.
As shown in fig. 8, the application package may include applications (which may also be referred to as applications) for cameras, calendars, maps, WLANs, music, gallery, conversation, navigation, bluetooth, etc.
An application framework (frame) layer provides an application programming interface (applicationprogramming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
The application framework layer may include Fingerprint (FP) service (service) modules.
The fingerprint service may be configured to trigger the advanced graphics platform service to determine whether to make a frame-cut decision after receiving the notification of the fingerprint hardware abstraction layer, where the frame-cut decision indicates whether a screen refresh rate corresponding to a screen needs to be switched when displaying an image to be displayed.
The native services (native) layer may include modules such as advanced graphics platform (advanced graphics platform, AGP) services, android image engine (SF), and the like.
The advanced graphics platform service is used for determining whether to make a frame cutting decision and notifying the android image engine whether to make the frame cutting decision.
The android image engine is used for determining a screen refresh rate corresponding to a screen when displaying an image to be displayed. For example, under the condition of determining frame cutting, judging whether the screen refresh rate corresponding to the time A meets the requirement A, and if not, switching according to a preset rule, for example, when the electronic equipment is high, the screen refresh rate can be switched to 120hz, and when the electronic equipment is high, the screen refresh rate can be switched to 60hz. Where requirement a includes a screen refresh rate less than a preset screen refresh rate (e.g., 60 hz). In the case where it is determined that frame cutting is not performed, the screen refresh rate corresponding to the time a may be used as the screen refresh rate corresponding to the screen when the image to be displayed is displayed.
The android image engine is further used for sending a screen refresh rate corresponding to a screen when the image to be displayed is displayed to the hardware hybrid renderer. The android image engine is further configured to obtain an image related to the image to be displayed, for example, obtain an image such as a background image and a fingerprint icon, and send the image related to the image to be displayed to a hardware hybrid renderer related to the following.
The hardware abstraction layer (hardware abstraction laye, HAL) is an interface layer between the operating system kernel layer and other layers of the electronic device (e.g., a local service layer) that aims at abstracting the hardware to provide a virtual hardware platform for the operating system.
The hardware abstraction layer comprises fingerprint hardware abstraction layer (FPHAL), hardware hybrid renderer (HWC) and other modules.
The fingerprint hardware abstraction layer may be configured to, upon receiving a fingerprint driven notification, notify the fingerprint service to trigger the advanced graphics platform service to determine whether to make a frame cut decision. And informs the android image engine whether to make a frame cut decision.
The fingerprint hardware abstraction layer may also be used to issue instructions to the display driver to display a partially or fully unlocked effect.
The hardware mixing renderer is used for mixing images (such as background images, fingerprint icons and the like) related to the synthesized images transmitted by the android image engine into one frame of images (to-be-displayed images) and then sending the one frame of images to the display driver for display. The background image can be regarded as a screen-off image displayed in the unlocking process.
The hardware hybrid renderer is also used for sending the image to be displayed and the screen refresh rate corresponding to the screen when the image to be displayed is displayed to the display driver.
The kernel layer is a layer between hardware and software. The kernel layer may also be referred to as a driver layer. The kernel layer may include fingerprint driver, touch Panel (TP) driver, display driver (lcddrive), and other modules.
The touch screen driver may be configured to receive a hardware interrupt corresponding to a touch operation sent by the screen, and identify, based on the hardware interrupt corresponding to the touch operation, that a touched control is a fingerprint icon. The fingerprint driver is then notified that an unlocking operation is detected.
After receiving the detection of the unlocking operation, the fingerprint driver informs the fingerprint hardware abstraction layer to trigger the next operation.
The display driver can be used for triggering the display of part or all of unlocking special effects (such as fingerprint light spots) and displaying the contents such as images to be displayed based on the method related to the embodiment of the application.
The hardware layer may include a hardware device such as a screen.
The screen may be configured to receive a touch operation (e.g., a click operation on a fingerprint icon) and send a hardware interrupt corresponding to the touch operation to the kernel layer. In some possible cases, a touch screen driver may be sent to the kernel layer.
An exemplary process flow of the brightness adjustment method in the present application is described below based on fig. 8.
And step 1, the screen receives unlocking operation (such as clicking operation) aiming at the fingerprint icon, and transmits hardware interrupt corresponding to the unlocking operation to a touch screen driver, and the touch screen driver identifies the touched control as the fingerprint icon. The fingerprint driver is then notified that an unlocking operation is detected. Subsequently, the fingerprint driver notifies the fingerprint hardware abstraction layer to trigger the next operation. The fingerprint hardware abstraction layer triggering operation comprises the following step 2 and step 3.
And step 2, the fingerprint hardware abstraction layer informs the fingerprint service to trigger the advanced graphic platform service to judge whether to make a frame cutting decision. The advanced graphics platform service informs the android image engine whether to make a frame cut decision. Under the condition of determining frame cutting, the android image engine judges whether the screen refresh rate corresponding to the time A meets the requirement A or not, if not, the screen refresh rate is switched according to a preset rule, for example, when the electronic equipment is high, the screen refresh rate when the image to be displayed is displayed can be switched to 120hz, and when the electronic equipment is high, the screen refresh rate when the image to be displayed is displayed can be switched to 60hz. Where requirement a includes a screen refresh rate less than a preset screen refresh rate (e.g., 60 hz). The android image engine can use the screen refresh rate corresponding to the time A as the screen refresh rate corresponding to the screen when displaying the image to be displayed under the condition that the frame cutting is not carried out. Subsequently, the android image engine sends a screen refresh rate corresponding to a screen when displaying the image to be displayed to the hardware hybrid renderer, and sends an image related to synthesizing the image to be displayed to the hardware hybrid renderer. The hardware mixing renderer mixes images (such as background images, fingerprint icons and the like) related to the synthesis of the images to be displayed, which are transmitted by the android image engine, into the images to be displayed.
And 3, the fingerprint hardware abstraction layer issues an instruction for displaying part or all of the unlocking special effects to the display driver. In some possible cases, some or all of the unlocking special effects referred to herein may include the fingerprint spots referred to previously. Under the condition that the fingerprint hardware abstraction layer issues unlocking special effects to the display drive, other unlocking special effects can be used as images involved in synthesizing images to be displayed in the form of images, and the images to be displayed are synthesized by the hardware hybrid renderer based on the unlocking special effects.
And 4. The display driver triggers the display of part or all of the unlocking special effects (such as fingerprint light spots), and displays the images to be displayed based on the methods related to the step 103, the step 104a and the step 104b, so that the brightness of the screen is kept unchanged before and after the unlocking special effects are displayed.
It should also be appreciated that the order of execution between step 2 and step 3 is not sequential. Step 1 is a gray circle mark (1) in fig. 8, step 2 is a gray circle mark (2) in fig. 8, and step 3 is a gray circle mark (3) in fig. 8. Step 4 is the gray circle mark (4) in fig. 8.
Fig. 9 shows a scheme effect comparison diagram involved in an embodiment of the present application.
In some possible cases, in a scene where fingerprint light spots and water waves are displayed when the electronic equipment is unlocked, in an AOD mode, and no matter the screen brightness value is smaller than a preset brightness value A (for example, a display brightness value corresponding to 90 nit) or larger than or equal to the preset brightness value A, when the unlocking operation is detected, the electronic equipment calls a gamma curve in a DC mode to display an image to be displayed based on the fingerprint unlocking instruction A, the switching of the fingerprint instruction is not involved, and the display of the water waves is not influenced in the whole process.
As shown in fig. 9 (1), in the AOD mode, backlight 0 (i.e., the screen brightness value is 0), after the unlock command is detected, in case 11, the electronic device displays water ripple around the fingerprint when displaying the fingerprint light spot during the fingerprint unlock process, the next non-0 backlight (i.e., the screen brightness value is not 0). In case 12, the screen brightness is adjusted by the backlight other than 0, that is, the electronic device can call the gamma curve in the DC mode based on the fingerprint unlocking instruction a to display the image to be displayed, so that the screen brightness remains unchanged, and when the fingerprint light spot is displayed in the process of fingerprint unlocking, the water ripple is displayed around the fingerprint. And the subsequent fingerprint light spots exit (the fingerprint light spots are not displayed), and the electronic equipment completes unlocking.
In some possible cases, in a scene where fingerprint light spots and water waves are displayed when the electronic equipment is unlocked, when the screen brightness value is greater than or equal to a preset brightness value A in an AOD mode, and when unlocking operation is detected, the electronic equipment calls a gamma curve in a DC mode based on a fingerprint unlocking instruction A to display an image to be displayed; however, when the screen brightness value is smaller than the preset brightness value A and the unlocking operation is detected, the electronic equipment calls a gamma curve in a PWM mode based on the fingerprint unlocking instruction B to display the image to be displayed; the switching of the fingerprint instruction is involved, the backlight and the fingerprint instruction have no strict time sequence relationship, and the display of water ripple can be influenced in the whole process.
As shown in fig. 9 (2), in the AOD mode, backlight 0 (i.e., the screen brightness value is 0), after the unlock command is detected, in case 21, the electronic device displays water waves around the fingerprint when displaying the fingerprint light spot during the fingerprint unlock process, and the next non-0 backlight (i.e., the screen brightness value is not 0). In case 22, when the screen brightness value is greater than or equal to the display brightness value corresponding to 90nit, the switching of the fingerprint command is involved, and when a display fingerprint spot may appear in the process of fingerprint unlocking, there is no water ripple around the fingerprint icon, and this is no water ripple at this time. And the subsequent fingerprint light spots exit (the fingerprint light spots are not displayed), and the electronic equipment completes unlocking.
An exemplary electronic device provided by an embodiment of the present application is described below.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The embodiment will be specifically described below with reference to an electronic device as an example. It should be understood that an electronic device may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriberidentification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the application, the electronic device may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processingunit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digitalsignal processor, DSP), a baseband processor, and/or a neural network processor (neural-networkprocessing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can be a neural center and a command center of the electronic device. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (inter-integratedcircuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universalasynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the connection relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not limit the structure of the electronic device. In other embodiments of the present application, the electronic device may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wirelesslocal area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), infrared (IR), etc. as applied to electronic devices.
In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include the global system for mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radioservice, GPRS), etc.
The electronic device implements display functions via a GPU, a display screen 194, an application processor, and the like.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD). The display panel may also be manufactured using organic light-emitting diode (OLED), active-matrix organic light-emitting diode (AMOLED) or active-matrix organic light-emitting diode (active-matrix organic light emitting diode), flexible light-emitting diode (FLED), mini, micro-OLED, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device may include 1 or N display screens 194, N being a positive integer greater than 1. The display screen may also be referred to as a screen, touch screen, or the like, in some possible cases.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning.
The internal memory 121 may include one or more random access memories (randomaccess memory, RAM) and one or more non-volatile memories (NVM).
The random access memory may include a static random-access memory (SRAM), a dynamic random-access memory (dynamic random access memory, DRAM), a synchronous dynamic random-access memory (synchronous dynamic random access memory, SDRAM), and the like;
the nonvolatile memory may include a disk storage device, a flash memory (flash memory).
The FLASH memory may include NOR FLASH, NAND FLASH, 3d nand FLASH, etc. divided according to an operation principle, and may include single-level cell (SLC), multi-level cell (MLC), etc. divided according to a potential level of a memory cell.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronics calculate altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device in various directions (typically three axes).
A distance sensor 180F for measuring a distance. The electronic device may measure the distance by infrared or laser.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode.
The ambient light sensor 180L is used to sense ambient light level.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic equipment can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access the application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The temperature sensor 180J is for detecting temperature.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device at a different location than the display 194.
In an embodiment of the present application, the processor 110 may invoke computer instructions stored in the internal memory 121 to cause the electronic device to perform the method in the embodiment of the present application.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to determination …" or "in response to detection …" depending on the context. Similarly, the phrase "at the time of determination …" or "if detected (a stated condition or event)" may be interpreted to mean "if determined …" or "in response to determination …" or "at the time of detection (a stated condition or event)" or "in response to detection (a stated condition or event)" depending on the context.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.

Claims (14)

1. A brightness adjustment method, the method comprising:
at first time, the electronic equipment detects unlocking operation of a user on a first control;
responding to the unlocking operation, displaying indication information by the electronic equipment, and acquiring a fingerprint image; the fingerprint image is used for indicating the fingerprint of the user; the indication information is used for indicating the electronic equipment to unlock the fingerprint;
under the condition that the brightness value of the first screen is smaller than the preset brightness value, the electronic equipment reduces the gray scale value of the pixel point in the first screen quenching image based on the first ratio to obtain a second screen quenching image; the first screen brightness value is the screen brightness corresponding to the first time; the first screen-off image is a screen-off image to be processed when the electronic equipment is in screen-off;
The electronic equipment determines the corresponding on voltage of a first pixel channel through a first color correction curve and the gray scale value of the first pixel channel in the second screen-off image, and displays the second screen-off image based on the corresponding on voltage of the first pixel channel, so that the screen brightness is the first screen brightness value when the second screen-off image is displayed; the first color correction curve is a color correction curve corresponding to the preset brightness value in a group of color correction curves associated with a first frame rate; the first frame rate is used for indicating a corresponding screen refresh rate when the screen-off image is displayed; the first pixel channel is a channel of any pixel in the second screen quenching image;
and the electronic equipment completes fingerprint unlocking under the condition that the fingerprint image is determined to be matched with a preset fingerprint image.
2. The method according to claim 1, wherein the method further comprises:
when the electronic device determines that the first screen brightness value is greater than or equal to the preset brightness value, the electronic device determines a conducting voltage corresponding to a second pixel channel through a second color correction curve and a gray scale value of the second pixel channel in the first screen-off image, and displays the first screen-off image based on the conducting voltage corresponding to the second pixel channel, so that the screen brightness is the first screen brightness value when the first screen-off image is displayed; the second color correction curve is a color correction curve corresponding to the first screen brightness value in a group of color correction curves associated with the first frame rate; the second pixel channel is a channel of any pixel in the first screen quenching image.
3. The method of claim 2, wherein before the electronic device displays the indication information, the method further comprises:
the electronic device determines whether a screen refresh rate at a first time is greater than a preset screen refresh rate;
determining that the first frame rate is set to a value greater than or equal to the preset screen refresh rate when the screen refresh rate at the first time is less than the preset screen refresh rate;
and determining that the first frame rate is the screen refresh rate of the electronic equipment at the first time under the condition that the screen refresh rate at the first time is larger than or equal to the preset screen refresh rate.
4. The method of claim 2, wherein the first frame rate is a screen refresh rate of the electronic device at a first time.
5. A method according to claim 3, wherein the screen refresh rate is the screen refresh rate at the first time after the fingerprint unlocking is completed.
6. The method according to claim 2, wherein the method further comprises:
the electronic device does not include a set of color correction curves associated with a local highlight mode and includes a set of color correction curves associated with a second frame rate, the second frame rate including 48hz.
7. The method according to any one of claims 1-6, wherein the electronic device displays indication information, in particular comprising:
and the electronic equipment displays a luminous pattern in the first control, and the brightness of the luminous pattern becomes larger along with time.
8. The method according to any one of claims 1 to 6, wherein the preset luminance value is a display luminance value corresponding to a screen luminance of 90 candelas per square meter.
9. The method of claim 3 or 5, wherein the preset screen refresh rate is 60hz, 90hz, or 120hz.
10. The method of claim 6, wherein the operating mode of the color correction curves in the set of color correction curves associated with the second frame rate having a corresponding luminance value less than the predetermined luminance value is different from the operating mode of the color correction curves in the set of color correction curves associated with the second frame rate having a corresponding luminance value greater than or equal to the predetermined luminance value.
11. A brightness adjustment method, the method comprising:
at first time, the electronic equipment detects unlocking operation of a user on a first control;
responding to the unlocking operation, displaying indication information by the electronic equipment, and acquiring a fingerprint image; the fingerprint image is used for indicating the fingerprint of the user;
The electronic equipment also displays a third screen-off image when displaying the indication information; wherein the third screen-off image is a screen-off image;
when the electronic device determines that the first screen brightness value is smaller than a preset brightness value, the electronic device determines a conducting voltage corresponding to a third pixel channel through a first color correction curve and a gray scale value of the third pixel channel in the third screen-off image, and displays the third screen-off image based on the conducting voltage corresponding to the third pixel channel determined by the first color correction curve, so that the screen brightness is the preset brightness value when the third screen-off image is displayed; the first frame rate is used for indicating a corresponding screen refresh rate when the screen-off image is displayed; the first color correction curve is a color correction curve corresponding to the preset brightness value in a group of color correction curves associated with a first frame rate; the third pixel channel is a channel of any pixel in the third screen quenching image;
the electronic device determines a corresponding conducting voltage of the third pixel channel through a second color correction curve and a gray scale value of the third pixel channel under the condition that the first screen brightness value is larger than or equal to the preset brightness value, and displays the third screen image based on the determined conducting voltage of the third pixel channel through the second color correction curve, so that the screen brightness is the first screen brightness value when the third screen image is displayed;
And the electronic equipment completes fingerprint unlocking under the condition that the fingerprint image is determined to be matched with a preset fingerprint image.
12. An electronic device, comprising: one or more processors and memory; the memory is coupled with the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors invoke to cause the electronic device to perform the method of any of claims 1-10.
13. A computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-10.
14. A chip system for application to an electronic device, wherein the chip system comprises one or more processors for invoking computer instructions to cause the electronic device to perform the method of any of claims 1-10.
CN202310041568.7A 2023-01-28 2023-01-28 Brightness adjustment method and electronic device Active CN116048368B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310041568.7A CN116048368B (en) 2023-01-28 2023-01-28 Brightness adjustment method and electronic device
CN202311049532.XA CN117215471A (en) 2023-01-28 2023-01-28 Brightness adjustment method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310041568.7A CN116048368B (en) 2023-01-28 2023-01-28 Brightness adjustment method and electronic device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202311049532.XA Division CN117215471A (en) 2023-01-28 2023-01-28 Brightness adjustment method and electronic device

Publications (2)

Publication Number Publication Date
CN116048368A CN116048368A (en) 2023-05-02
CN116048368B true CN116048368B (en) 2023-09-01

Family

ID=86116031

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310041568.7A Active CN116048368B (en) 2023-01-28 2023-01-28 Brightness adjustment method and electronic device
CN202311049532.XA Pending CN117215471A (en) 2023-01-28 2023-01-28 Brightness adjustment method and electronic device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202311049532.XA Pending CN117215471A (en) 2023-01-28 2023-01-28 Brightness adjustment method and electronic device

Country Status (1)

Country Link
CN (2) CN116048368B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105976760A (en) * 2016-06-30 2016-09-28 维沃移动通信有限公司 Brightness adjusting method for terminal screen and mobile terminal
CN109344589A (en) * 2018-09-12 2019-02-15 北京小米移动软件有限公司 Unlocked by fingerprint method, apparatus and storage medium
CN109712593A (en) * 2019-02-25 2019-05-03 京东方科技集团股份有限公司 A kind of brightness control method and terminal device
CN111477135A (en) * 2020-04-08 2020-07-31 上海闻泰电子科技有限公司 Screen display method, equipment and storage medium
CN114863494A (en) * 2021-01-20 2022-08-05 华为技术有限公司 Screen brightness adjusting method and device and terminal equipment
CN115620346A (en) * 2021-09-30 2023-01-17 荣耀终端有限公司 Method for acquiring fingerprint under screen and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI543147B (en) * 2014-09-12 2016-07-21 致伸科技股份有限公司 Method for adjusting luminance of monitor of electrical device
KR102020638B1 (en) * 2016-09-20 2019-11-04 삼성전자주식회사 Apparatus and Method for Receiving Fingerprint Information through Guide
CN108830056A (en) * 2017-04-27 2018-11-16 天津三星通信技术研究有限公司 The method and apparatus that the screen of control electric terminal is shown
CN111798813B (en) * 2020-07-20 2022-01-04 昆山国显光电有限公司 Brightness adjusting method and device of display device and display device
CN115565208A (en) * 2021-06-30 2023-01-03 华为技术有限公司 Display method and electronic equipment
CN117198214A (en) * 2022-02-25 2023-12-08 荣耀终端有限公司 Refresh rate switching method, electronic device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105976760A (en) * 2016-06-30 2016-09-28 维沃移动通信有限公司 Brightness adjusting method for terminal screen and mobile terminal
CN109344589A (en) * 2018-09-12 2019-02-15 北京小米移动软件有限公司 Unlocked by fingerprint method, apparatus and storage medium
CN109712593A (en) * 2019-02-25 2019-05-03 京东方科技集团股份有限公司 A kind of brightness control method and terminal device
CN111477135A (en) * 2020-04-08 2020-07-31 上海闻泰电子科技有限公司 Screen display method, equipment and storage medium
CN114863494A (en) * 2021-01-20 2022-08-05 华为技术有限公司 Screen brightness adjusting method and device and terminal equipment
CN115620346A (en) * 2021-09-30 2023-01-17 荣耀终端有限公司 Method for acquiring fingerprint under screen and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于灰阶熵的LCD动态背光调整";章小兵 等;《液晶与显示》;第第27卷卷(第第2期期);第173-176页 *

Also Published As

Publication number Publication date
CN116048368A (en) 2023-05-02
CN117215471A (en) 2023-12-12

Similar Documents

Publication Publication Date Title
WO2022257451A1 (en) Display method, electronic device and computer storage medium
CN111627406A (en) Display device, electronic apparatus including the same, and method of operating the electronic apparatus
CN110808003B (en) Compensation method and electronic equipment
CN112825232B (en) Compensation method and electronic equipment
CN109215578B (en) Screen display method and device
CN113986162A (en) Layer composition method, device and computer readable storage medium
CN113656118B (en) Off-screen display method and electronic equipment
CN115909972A (en) Display control method, display drive chip, device, and storage medium
WO2022001383A1 (en) Display processing method and apparatus
CN216311301U (en) Display drive integrated circuit, display and electronic equipment
WO2023155606A1 (en) Screen refresh rate switching method, electronic device, and computer-readable storage medium
CN116048368B (en) Brightness adjustment method and electronic device
CN115550631B (en) Image sensor evaluation method, electronic device and storage medium
CN116051449A (en) Image noise estimation method and device
US20240233630A1 (en) Screen refresh rate switching method, electronic device, and computer-readable storage medium
WO2023207828A1 (en) Method for reducing power consumption, and electronic device
CN117133252B (en) Image processing method and electronic device
CN116744106B (en) Control method of camera application and terminal equipment
CN114187871B (en) Voltage adjusting method and device and electronic equipment
WO2023160209A1 (en) Frame data display method, electronic device and storage medium
CN116700655B (en) Interface display method and electronic equipment
US20210350737A1 (en) Display device
WO2022206707A1 (en) Off-screen display method and electronic device
CN118277169A (en) Display method and related device
CN117133252A (en) Image processing method and electronic device

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