Control method and related equipment
By blocking the instructions to change the dimming mode under the screen-off display of the terminal device, ensuring that the brightness of the fingerprint spot area remains unchanged, solving the problem of low success rate of fingerprint unlocking during screen-off and improving the user experience.
Patent Information
- Application Number
- CN202311467906.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-06
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2043-11-06
AI Technical Summary
When optical fingerprint unlocking is performed during the screen-off display of the terminal device, the fingerprint spot area of the display screen flickers, resulting in a decrease in the sharpness of the fingerprint image, a decrease in the unlocking success rate, and a poor user experience.
By detecting that when the terminal device is in the off-screen display state, the shielding executes instructions that may change the dimming mode of the display screen to ensure that the brightness of the fingerprint spot area remains unchanged during the unlocking process, and adopts the DC dimming mode.
It improves the clarity of fingerprint images collected by the fingerprint detection module, reduces the probability of fingerprint unlocking failure, shortens unlocking time, and improves the user experience.
Smart Images

Figure CN119992607A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of terminal equipment, and in particular to a control method and related equipment. Background Art
[0002] As optical fingerprint (OF) recognition technology has gradually become a standard feature of flagship models of mainstream terminal equipment manufacturers, users' requirements for the success rate of fingerprint recognition have gradually increased. They generally hope that they can successfully unlock the phone as "fast" as possible during fingerprint unlocking. That is, the higher the success rate of fingerprint recognition, the shorter the user's unlocking time, and thus the better the user experience.
[0003] However, currently when users use terminal devices equipped with optical fingerprint recognition technology to perform optical fingerprint unlocking during the screen-off display period, there is a problem that the fingerprint spot area of the display screen flickers (bright-dark-bright brightness switching phenomenon) due to the obvious brightness changes of the light source in a low-frequency state, which reduces the clarity of the collected fingerprint image, thereby increasing the failure probability of optical fingerprint unlocking and prolonging the user's unlocking time, thereby reducing the user experience. Summary of the invention
[0004] The embodiments of the present application disclose a control method and related devices, which can improve the success rate of fingerprint recognition to enhance the user experience.
[0005] In order to achieve the above technical objectives, the embodiments of the present application provide the following technical solutions:
[0006] In the first aspect, the present application provides a control method, characterized in that it is applied to a terminal device, the terminal device may include a fingerprint detection module and a display screen, the fingerprint detection module is located below the display screen; wherein the area below the display screen where the fingerprint detection module is provided is a target area; the method may include: detecting whether the state of the display screen has changed, wherein, when the state of the display screen has changed, triggering a first instruction, the first instruction being used to adjust the dimming mode of the display screen; when the state of the display screen has changed and the terminal device is in a target state, determining whether the current dimming mode of the display screen is a DC dimming mode; the target state includes the display screen being in an off-screen display state and the fingerprint detection module receiving a signal of touching the target area; if the display screen is in the DC dimming mode, shielding the execution of the first instruction.
[0007] When the state of the display screen of the terminal device changes (for example, from the screen-off state to the screen-off display state), the first instruction (for example, the frame-cutting instruction) will be automatically triggered, and the first instruction (for example, the frame-cutting instruction) can change the dimming mode of the display screen, thereby causing the fingerprint spot area of the display screen to flicker (bright-dark-bright brightness switching phenomenon), which reduces the clarity of the collected fingerprint image, thereby increasing the probability of failure of optical fingerprint unlocking and prolonging the time for the user to unlock. Therefore, the embodiment of the present application shields the terminal device from executing the instruction (i.e., the first instruction) that can change the dimming mode of the display screen when it is detected that the terminal device is in the screen-off display state for optical fingerprint unlocking, so as to control the brightness of the target area of the display screen (such as the fingerprint spot area) to remain unchanged, thereby improving the clarity of the collected fingerprint image, thereby improving the success rate of fingerprint recognition, reducing the time of fingerprint unlocking, and improving the user experience. Specifically, since the pulse frequency of the direct current (DC) dimming mode is usually only 1-2HZ, under pulse width modulation (PWM) dimming, in order for the display screen to achieve the same brightness as the DC dimming mode, its pulse frequency is much higher than the pulse frequency of the DC dimming mode, and the higher pulse frequency can reduce the brightness changes of the light source perceived by the human eye. Therefore, if the display screen switches from the screen-off state to the screen-off display state, the first instruction for adjusting the dimming mode (such as the frame cutting instruction) will be automatically triggered, causing the dimming mode to suddenly switch from the DC dimming mode to the PWM dimming mode. At this time, due to the low pulse frequency, when the pulse frequency in the PWM dimming mode is lower than a certain value (usually between tens of Hz and hundreds of Hz), the human eye can clearly perceive the changes in the brightness of the light source, which will cause the target area of the display screen (such as the fingerprint spot area), that is, the area under the display screen where the fingerprint detection module is provided, to become significantly dimmer, and then the pulse frequency increases, and the brightness of the target area quickly becomes brighter. This phenomenon will cause the clarity of the fingerprint image collected by the fingerprint detection module to decrease, thereby reducing the success rate of fingerprint recognition (multiple recognitions may be required to successfully unlock), making the fingerprint unlocking time longer and reducing the user experience.In order to avoid the phenomenon that the target area of the display screen (such as the fingerprint spot area) flickers when the terminal device is in the screen-off display state and optical fingerprint unlocking is performed, the embodiment of the present application determines whether the current dimming mode of the display screen is the DC dimming mode when it is detected that the state of the display screen has changed and the terminal device is in the target state (the display screen is in the screen-off display state and the fingerprint detection module receives a signal that the target area is touched). If so, the execution of the first instruction is shielded, so that the terminal device may not execute the first instruction for adjusting the dimming mode (such as the frame cutting instruction), so that the display screen always maintains the DC dimming mode. Therefore, when the terminal device is in the screen-off display period and the fingerprint detection module under the display screen receives a signal that the target area is touched, the brightness of the target area of the display screen (such as the fingerprint spot area) remains unchanged during the fingerprint unlocking process, so that the clarity of the fingerprint image collected by the fingerprint detection module is improved. Therefore, the failure probability of fingerprint unlocking is reduced, and the fingerprint unlocking time is shortened, thereby improving the user experience.
[0008] In a possible implementation, the method further includes: detecting whether the terminal device is in the target state; if so, executing a second instruction, the second instruction being used to light up the target area, and the dimming mode of the display screen being adjusted after the target area is lit.
[0009] In the embodiment of the present application, if it is detected that the terminal device is in the screen-off display state, and the fingerprint detection module receives the target state of the signal of touching the target area, the terminal device is controlled to execute the instruction (i.e., the second instruction) that can be used to light up the target area, so that the target area of the display screen can be lit up when the fingerprint detection module receives the signal of touching the target area, thereby illuminating the user's fingertips, so that the fingerprint detection module can collect the fingerprint image for optical fingerprint unlocking. In addition, the dimming mode of the display screen is usually adjusted after the target area (such as the fingerprint spot area) is illuminated. Therefore, the terminal device usually executes the above-mentioned instruction (i.e., the first instruction) for adjusting the dimming mode of the display screen after executing the instruction (i.e., the second instruction) that can be used to light up the target area in the embodiment of the present application (i.e., after the target area is illuminated).
[0010] In a possible implementation, a target flag is stored in the terminal device, and the target flag is used to indicate the current dimming mode of the display screen; the method also includes: if the target area is illuminated, setting the value of the target flag to a preset value, and the preset value is used to indicate that the current dimming mode of the display screen is a DC dimming mode.
[0011] In an embodiment of the present application, a target flag that can be used to indicate the current dimming mode of the display screen is stored in the terminal device. When the above-mentioned target area is illuminated, the target flag can be set to a preset value that can indicate that the current dimming mode of the display screen is the DC dimming mode, so that the terminal device can determine whether the current dimming mode of the display screen is the DC dimming mode by judging whether the target flag is the preset value, so as to further judge whether to shield the terminal device from executing the first instruction (such as a frame cutting instruction) that can adjust the dimming mode to control the dimming mode of the display screen from changing, so that the terminal device is in the screen-off display state, and during the optical fingerprint unlocking process, the brightness of the target area of the display screen (such as the fingerprint spot area) does not change, thereby improving the clarity of the fingerprint image collected by the fingerprint detection module and reducing the failure probability of fingerprint unlocking. Therefore, the fingerprint unlocking time is shortened and the user experience is improved.
[0012] In a possible implementation, the method further includes: if the target area is turned off, setting the value of the target flag bit to an initial value, where the initial value is used to indicate that the current dimming mode of the display screen is a pulse width modulation dimming mode.
[0013] In an embodiment of the present application, when a target area of a display screen (such as a fingerprint spot area) is extinguished, the target flag bit can be set to an initial value that can be used to indicate that the current dimming mode of the display screen is a pulse width modulation (PWM) dimming mode, wherein the pulse width modulation dimming mode can adjust the brightness by adjusting the pulse signal, so that the terminal device can normally execute the above-mentioned first instruction when the above-mentioned target area is extinguished, so that the terminal device can normally adjust the dimming mode of the display screen, so that the display screen can display normally when the unlocking is successful or in other scenarios.
[0014] In a possible implementation, the DC dimming mode adjusts the brightness by adjusting the magnitude of the current and / or voltage; the PWM dimming mode adjusts the brightness by adjusting the pulse signal.
[0015] In an embodiment of the present application, when the terminal device is in the screen-off display state, during the process of optical fingerprint unlocking after the target area (e.g., the fingerprint spot area) is touched, the display screen usually uses a direct current (DC) dimming mode for dimming, wherein the DC dimming mode adjusts the brightness by adjusting the current and / or voltage, and does not involve the adjustment of the pulse frequency, and its pulse frequency is usually only 1-2HZ; accordingly, when the terminal device is in the normal display state (e.g., successful unlocking or other application scenarios), the target area (e.g., the fingerprint spot area) is extinguished, and the display screen displays normally, the display screen usually uses a pulse modulation (PWM) dimming mode for dimming, wherein the PWM dimming mode adjusts the brightness by adjusting the pulse signal, and its pulse frequency can represent the periodicity of the pulse signal, and a pulse signal with a higher pulse frequency can make it difficult for the human eye to perceive the brightness changes of the light source. Therefore, when the display screen switches from the screen-off state to the screen-off display state, the display screen switches from the DC dimming mode to the PWM dimming mode. At this time, due to the low pulse frequency at the moment of switching, when the pulse frequency in the PWM dimming mode is lower than a certain value (usually between tens of Hz and hundreds of Hz), the human eye can clearly perceive the brightness change of the light source, which causes the fingerprint spot area of the display screen to flicker (bright-dark-bright brightness switching phenomenon), which increases the failure probability of optical fingerprint unlocking and prolongs the time for users to unlock. Therefore, the embodiment of the present application can detect that the terminal device is in the screen-off display state, and in the process of optical fingerprint unlocking after the target area (such as the fingerprint spot area) is touched, the dimming mode of the display screen is not changed to achieve the target area (such as the fingerprint spot area) of the display screen. The brightness remains unchanged, thereby improving the clarity of the collected fingerprint image, thereby improving the success rate of fingerprint recognition, reducing the time of fingerprint unlocking, and enhancing the user experience.
[0016] In one possible implementation, determining whether the current dimming mode of the display screen is the DC dimming mode may include: judging whether the target flag is the preset value; if the display screen is in the DC dimming mode, shielding the execution of the first instruction; and may include: if the target flag is the preset value, intercepting the first instruction.
[0017] In the embodiment of the present application, when the terminal device detects that the state of the display screen has changed and is currently in the target state, it can determine whether the current dimming mode of the display screen is the DC dimming mode by judging whether the target flag is a preset value. The target state may include the display screen controller detecting that the display screen is in the off-screen display state and the fingerprint detection module receives a signal of touching the target area (e.g., the fingerprint spot area) of the display screen; further, when the target flag is the preset value, that is, the display screen is in the DC dimming mode, the terminal device shields the execution of the first instruction that can be used to adjust the dimming mode by intercepting the first instruction for adjusting the dimming mode of the display screen, so that after the target area (e.g., the fingerprint spot area) is illuminated and during the fingerprint unlocking process, the first instruction for adjusting the dimming mode is not executed, so that the dimming mode of the display screen remains unchanged (always maintains the DC dimming mode), so that the brightness of the target area of the display screen can continue to remain unchanged, so that the clarity of the fingerprint image collected by the fingerprint detection module is improved, so as to improve the success rate of fingerprint recognition, reduce the time of optical fingerprint unlocking, and enhance the user experience.
[0018] In a possible implementation, the method further includes: if the target area is illuminated, collecting a fingerprint image to be identified through the fingerprint detection module; performing optical fingerprint unlocking based on the fingerprint image to be identified; and switching the display screen from the screen-off display state to a normal display state.
[0019] In an embodiment of the present application, when the target area (e.g., fingerprint spot area) of the display screen is illuminated, the fingerprint detection module of the terminal device can collect the fingerprint image to be identified, and then perform optical fingerprint unlocking based on the collected fingerprint image to be identified. Exemplarily, the fingerprint image to be identified can be compared with the stored legal fingerprint image to determine whether the identified fingerprint image can be unlocked successfully, so as to ensure that only authorized users can access the protected system space and improve the security of the system. Further, when the terminal device completes the fingerprint unlocking, the terminal device immediately enters the normal display interface, so the state of the display screen changes accordingly. That is, when the terminal device is successfully unlocked or fails to unlock, the display screen is switched from the off-screen display state to the normal display state, so that the terminal device can determine whether to execute the third instruction that can extinguish the target area (e.g., fingerprint spot area) of the display screen according to whether the display screen is currently in a normal display state. Exemplarily, if it is detected that the display screen is currently in a normal display state, the third instruction is executed to extinguish the target area (e.g., fingerprint spot area), so as to avoid the target area emitting light in, for example, a successful unlock or other scenarios and affecting the normal display of the display screen.
[0020] In a possible implementation, the method further includes: if the display screen is in a normal display state, or if the fingerprint detection module does not receive a signal of touching the target area within a preset time after receiving a signal of touching the target area, executing a third instruction, wherein the third instruction is used to turn off the target area.
[0021] In an embodiment of the present application, when the display screen is in a normal display state, or the fingerprint detection module does not receive a signal of touching the target area (for example, the fingerprint spot area) within a preset time after receiving a signal of touching the target area (that is, the user touches the target area for too short a time to complete fingerprint unlocking), the terminal device executes a third instruction for extinguishing the target area, so that the terminal device can extinguish the target area when the display screen is in a normal display state or when the user's finger stops touching the target area, so that the display screen can be displayed normally in other scenarios (for example, successful unlocking, screen off display, or other scenarios).
[0022] In a second aspect, the present application provides a control device, which is applied to a terminal device, wherein the terminal device includes a fingerprint detection module and a display screen, wherein the fingerprint detection module is located below the display screen; wherein the area below the display screen where the fingerprint detection module is located is a target area; and may include:
[0023] A first detection unit is used to detect whether the state of the display screen changes, wherein when the state of the display screen changes, a first instruction is triggered, and the first instruction is used to adjust the dimming mode of the display screen;
[0024] A determination unit, configured to determine whether the current dimming mode of the display screen is a DC dimming mode when the state of the display screen changes and the terminal device is in a target state; the target state includes the display screen being in an off-screen display state and the fingerprint detection module receiving a signal of touching the target area; the DC dimming mode adjusts the brightness by adjusting the magnitude of the current and / or voltage;
[0025] A shielding unit is used to shield the execution of the first instruction if the display screen is in a DC dimming mode.
[0026] In the embodiment of the present application, in the control device, a first detection unit is used to detect whether the state of the display screen of the terminal device has changed, wherein, when the state of the display screen has changed, a first instruction (such as a frame cutting instruction) that can be used to adjust the dimming mode of the display screen is automatically triggered; when the state of the display screen changes and the terminal device is in the target state, the determination unit is used to determine whether the current dimming mode of the display screen is a DC dimming mode; wherein the target state may include that the display screen is in the off-screen display state and the fingerprint detection module of the terminal device receives a signal of touching the target area (fingerprint spot area). If the display screen is currently in the DC dimming mode, the shielding unit is used to shield the execution of the first instruction for adjusting the dimming mode of the display screen, so that the display screen always maintains the DC dimming mode. Therefore, during the off-screen display period of the terminal device, after the fingerprint detection module under the display screen receives the signal of touching the target area, the brightness of the target area of the display screen (that is, the fingerprint spot area) remains unchanged during the fingerprint unlocking process, thereby improving the accuracy of the fingerprint image collected by the fingerprint detection module, and therefore, the success rate of fingerprint recognition is improved, the time of user fingerprint unlocking is shortened, thereby improving the user experience.
[0027] In a possible implementation manner, the device further includes:
[0028] A second detection unit, used to detect whether the terminal device is in the target state;
[0029] The first execution unit is used to execute a second instruction if the terminal device is in the target state, wherein the second instruction is used to light up the target area, and the dimming mode of the display screen is adjusted after the target area is lit.
[0030] In a possible implementation manner, the device further includes:
[0031] The setting unit is used to set the value of the target flag bit to a preset value if the target area is lit, and the preset value is used to indicate that the current dimming mode of the display screen is a DC dimming mode.
[0032] In a possible implementation manner, the setting unit is further configured to:
[0033] If the target area is turned off, the value of the target flag is set to an initial value, and the initial value is used to indicate that the current dimming mode of the display screen is a pulse width modulation dimming mode.
[0034] In a possible implementation, the DC dimming mode adjusts the brightness by adjusting the current and / or voltage; the PWM dimming mode adjusts the brightness by adjusting the pulse signal. In a possible implementation, the determining unit is specifically configured to:
[0035] Determine whether the target flag is the preset value;
[0036] The shielding unit is specifically used for:
[0037] If the target flag is the preset value, the first instruction is intercepted.
[0038] In a possible implementation manner, the device further includes:
[0039] A collection unit, used for collecting a fingerprint image to be identified through the fingerprint detection module if the target area is illuminated;
[0040] An unlocking unit, used for performing optical fingerprint unlocking based on the fingerprint image to be identified;
[0041] A switching unit is used to switch the display screen from the screen-off display state to a normal display state.
[0042] In a possible implementation manner, the device further includes:
[0043] The second execution unit is used to execute a third instruction if the display screen is in a normal display state, or if the fingerprint detection module does not receive a signal of touching the target area within a preset time after receiving a signal of touching the target area, and the third instruction is used to turn off the target area.
[0044] In a third aspect, the present application provides a terminal device, which may include a fingerprint detection module and a display screen, wherein the fingerprint detection module is located below the display screen; wherein the area below the display screen where the fingerprint detection module is provided is a target area; the terminal device also includes a processor and a memory, wherein the memory is used to store programs and various data, and the processor is used to call the program code stored in the memory so that the terminal device executes the method in any possible implementation of the first aspect above.
[0045] In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements a method in any possible implementation of the first aspect.
[0046] In a fifth aspect, an embodiment of the present application provides a computer program, which may include instructions. When the computer program is run on a computer, the computer executes a method in any possible implementation of the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1AIt is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application.
[0048] Figure 1B This is an example block diagram of the software structure of a terminal device provided in an embodiment of the present application.
[0049] Figure 2A This is a schematic diagram of an interface in the prior art in which the fingerprint spot area flashes when a user performs fingerprint unlocking when the terminal device is in the screen-off display state.
[0050] Figure 2B This is an example diagram of a process in which the fingerprint spot area of the display screen flashes gray when fingerprint unlocking is performed in the screen-off display state in the prior art.
[0051] Figure 3 It is a flow chart of a control method provided in an embodiment of the present application.
[0052] Figure 4 It is a flow chart of another control method provided in an embodiment of the present application.
[0053] Figure 5A It is a user interface schematic diagram of a control method provided in an embodiment of the present application.
[0054] Figure 5B It is a user interface schematic diagram of another control method provided in an embodiment of the present application.
[0055] Figure 5C It is a user interface schematic diagram of another control method provided in an embodiment of the present application.
[0056] Figure 6 This is an example flow chart of a method for controlling a display screen when performing fingerprint unlocking in the screen-off display state, provided in an embodiment of the present application.
[0057] Figure 7 It is a structural schematic diagram of a control device provided in an embodiment of the present application.
[0058] Figure 8 It is a structural diagram of another terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application.
[0060] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the embodiments of the present application. As used in the specification and the appended claims of the embodiments of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the embodiments of the present application refers to and includes any or all possible combinations of one or more listed items.
[0061] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0062] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0063] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device, and finally presented as content that can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0064] First, some terms in the present application are explained to facilitate those skilled in the art to understand the embodiments of the present application.
[0065] (1) Direct Current (DC) dimming is a method of dimming using a DC power supply. In a DC dimming system, a specific dimming device or circuit is usually used to implement the dimming function. These dimming devices can adjust the power supply voltage or current provided to the lamp or light source according to the dimming requirements, thereby changing the brightness of the light.
[0066] (2) Pulse Width Modulation (PWM) dimming is a common dimming technology used to control the brightness of lights or the output of other devices. Dimming is achieved by quickly turning the current or voltage switch of the power supply on and off, and adjusting the time ratio of the pulse on and off.
[0067] In PWM dimming, the pulses in one cycle are divided into two parts: high level (on) and low level (off). By adjusting the ratio between the duration of the high level (pulse on) and the duration of the low level (pulse off), the average power and brightness level of the output can be controlled. During the dimming process, speeding up the frequency of the pulses will make the brightness changes perceived by the human eye smoother, because the human eye is not sensitive to changes in high-frequency pulses. This makes PWM dimming a commonly used dimming method in many lighting systems and electronic devices, especially for LED lighting applications.
[0068] (3) Optical fingerprint (OF) recognition technology is a biometric technology used to identify and verify individual identities. It is based on acquiring and analyzing the user's fingerprint image to verify their identity and grant access to the device or system. Unlike traditional physical fingerprint sensors, optical fingerprint unlocking uses optical technology to obtain fingerprint images without direct physical contact to collect fingerprints. Therefore, optical fingerprint sensors can be precisely placed in a designated area under the display screen, using the principles of light reflection and transmission to capture fingerprint information. They can be widely used in portable devices such as smartphones, tablets, and laptops to provide a convenient way to authenticate identities.
[0069] In order to facilitate the introduction of the technical problems and application scenarios to be solved by the present application, the terminal device involved in the embodiments of the present application is introduced below.
[0070] Figure 1AA schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application is shown. The terminal device 100 can be used to execute the control method of the prior art and the control method provided in the foregoing method embodiment. It can be understood that the terminal device 100 is an intelligent terminal device and can be of various types, and the embodiment of the present application does not limit its specific type. For example, the terminal device can be a mobile phone, and can also include a tablet computer, a desktop computer, a desktop computer with a touch-sensitive surface or a touch panel, a laptop computer (laptop), a handheld computer, a notebook computer, a smart screen, a wearable device (such as a smart watch, a smart bracelet, etc.), an augmented reality (augmented reality, AR) device, a virtual reality (virtual reality, VR) device, an artificial intelligence (artificial intelligence, AI) device, a car machine, a smart headset, a game console, and can also be an Internet of Things (IOT) device or a smart home device such as a smart water heater, a smart lamp, a smart air conditioner, etc. Please refer to Figure 1A , the following combination Figure 1A The components of the terminal device 100 are described in detail:
[0071] The terminal device 100 may include a processor 101, a memory 102, a wireless communication module 103, a mobile communication module 104, an antenna 103A, an antenna 104A, a fingerprint detection module 105, a sensor module 106, a focus motor 107, a camera 108, a display screen 109, a display screen controller 110, a power management module 111, a battery 112, etc. Among them, the sensor module 106 may include a gyroscope sensor 106A, an acceleration sensor 106B, an ambient light sensor 106C, an image sensor 106D, a distance sensor 106E, etc. Among them, the wireless communication module 103 may include a WLAN communication module, a Bluetooth communication module, etc. The above multiple parts can transmit data through a bus.
[0072] The processor 101 is the control center of the terminal device 100. It uses various interfaces and lines to connect various parts of the entire terminal device 100, and executes various functions and processes data of the terminal device 100 by running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, so as to control the terminal device 100 as a whole. Optionally, the processor 101 may include one or more processing units, for example: the processor 101 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.
[0073] The memory 102 can be used to store software programs and modules. The processor 190 executes various functional applications and data processing of the terminal device 100 by running the software programs and modules stored in the memory 102. The memory 102 may include, but is not limited to, a read-only memory (ROM), a static random access memory (SRAM), a synchronous dynamic random access memory (SDRAM), or a random access memory (RAM). Further, the memory 102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the terminal device 100 (such as audio data, a phone book, etc.), etc. Optionally, the memory 102 may also be set inside the processor 190 to store instructions and data. In addition, the processor 190 can enable the terminal device 100 to execute the control method of the prior art and the control method provided in the embodiment of the present application, or other applications and data processing by running instructions stored in the memory 102.
[0074] The wireless communication function of the terminal device 100 can be implemented through the antenna 103A, the antenna 104A, the mobile communication module 104, the wireless communication module 103, the modem processor and the baseband processor.
[0075] Antenna 103A and antenna 104A can be used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0076] The mobile communication module 104 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the terminal device 100. The mobile communication module 104 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 104 can receive electromagnetic waves through the antenna 104A, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 104 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 104A.
[0077] The modulation and demodulation processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate 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. After the low-frequency baseband signal is processed by the baseband processor, it is transmitted to the application processor. The application processor outputs a sound signal through an audio device, or displays an image or video through the display screen 109.
[0078] The wireless communication module 103 can provide wireless communication solutions including wireless local area networks (WLAN), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., applied to the terminal device 100. The wireless communication module 103 can be one or more devices integrating at least one communication processing module. The wireless communication module 103 receives electromagnetic waves via the antenna 103A, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 101. The wireless communication module 103 can also receive the signal to be sent from the processor 101, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 103A.
[0079] The fingerprint detection module 105 may include a fingerprint sensor 105A, a fingerprint controller 105B, etc., which can be used to collect the user's fingerprint image, process the fingerprint data, identify the fingerprint and verify the user's identity. Among them, the fingerprint sensor 105A can be an optical fingerprint sensor, which can sense the user touching the detection area of the fingerprint sensor and collect the fingerprint image through optical principles; specifically, the optical fingerprint sensor 105A can illuminate the user's fingertip through an internal light source (such as a light-emitting diode or a laser, etc.), and then use an optical lens and a sensor to capture the reflected light of the fingerprint to collect the user's fingerprint image. The fingerprint controller 105B can be a microprocessor or a microcontroller, which has a specific fingerprint recognition algorithm inside, and can work with other components such as a fingerprint sensor, an image processing unit, a storage unit, and an access control system to perform fingerprint recognition and verify the user's identity; specifically, the fingerprint controller 105B can receive the fingerprint image data collected by the fingerprint sensor, and control the image processing unit to process it, thereby extracting the feature points of the fingerprint image, creating a fingerprint template, and then based on the fingerprint template, it is compared with the legal fingerprint template stored in the storage unit, so as to identify the fingerprint to verify the user's identity. Optionally, the fingerprint controller 104B can also send a signal to the access control system based on the verification result to allow user access, thereby ensuring that only authorized users can enter the protected system space to access resources. It can be understood that the structure of the fingerprint detection module 105 shown in the figure is only one possible implementation method of the embodiment of the present application. In other embodiments, the fingerprint detection module 105 can also include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware, and the embodiment of the present application does not specifically limit this.
[0080] The gyroscope sensor 106A can be used to determine the motion posture of the terminal device 100. In some embodiments, the angular velocity of the terminal device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 106A. The gyroscope sensor 106A can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 106A detects the angle of the terminal device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the terminal device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 106A can also be used for navigation and somatosensory game scenes.
[0081] The acceleration sensor 106B can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the terminal device. For example, the acceleration sensor 106B can be applied to applications such as horizontal and vertical screen switching, pedometers, etc.
[0082] The ambient light sensor 106C is used to sense the brightness of the ambient light. The terminal device 100 can adaptively adjust the brightness of the display screen 109 according to the sensed brightness of the ambient light. The ambient light sensor 106C can also be used to automatically adjust the white balance when taking pictures.
[0083] The image sensor 106D, also known as a photosensitive element, can utilize the photoelectric conversion function of the photoelectric device to convert the light image on the photosensitive surface into an electrical signal that is proportional to the light image. The image sensor can be a charge coupled device (CCD) sensor or a complementary metal-oxide-semiconductor (CMOS) sensor.
[0084] The distance sensor 106E can be used to measure the distance. The terminal device 100 can measure the distance by infrared or laser. In some shooting scenarios, the terminal device 100 can use the distance sensor 106E to measure the distance to achieve fast focusing.
[0085] The focus motor 107 can be used for fast focusing. The terminal device 100 can control the movement of the lens through the focus motor 107 to achieve automatic focusing.
[0086] The terminal device 100 can realize the shooting function through the ISP, the camera 108, the video codec, the GPU, the display screen 109 and the application processor.
[0087] The ISP is used to process the data fed back by the camera 108. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise and brightness of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 108.
[0088] The camera 108 can be used to capture still images or videos. The object generates an optical image through the lens and projects it onto the image sensor. The image sensor can convert the optical signal into an electrical signal, and then transmit the electrical signal to the ISP to convert it into a digital image signal. The ISP can output the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the terminal device 100 may include 1 or N cameras 108, where N is a positive integer greater than 1.
[0089] The video codec is used to compress or decompress digital images. The terminal device 100 may support one or more image codecs. In this way, the terminal device 100 can open or save pictures or videos in multiple encoding formats.
[0090] The terminal device 100 can realize the display function through a GPU, a display screen 109 application processor, etc. The GPU is a microprocessor for image processing, connecting the display screen 109 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 101 may include one or more GPUs, which execute program instructions to generate or change display information.
[0091] The display screen 109 is used to display images, videos, etc. The display screen 109 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include 1 or N display screens 109, where N is a positive integer greater than 1.
[0092] The display screen controller 110, which may also be referred to as the display screen IC controller (Integrated Circuit Controller), may be used to control the image display, brightness, color and other parameters on the display screen 109. The display screen controller 110 may be an electronic chip or an integrated circuit, which controls and manages the parameters of the display screen 109 to control the hardware functions of the display screen, such as adjusting the display screen brightness, rendering images and generating final image output. In some embodiments, the GPU may be integrated on the same chip as the display screen controller 110, but the functions are separate. Among them, the GPU can perform image calculations, and the display screen controller 110 manages the hardware characteristics of the display screen 109.
[0093] The power management module 111 can manage the power supply and power consumption of the terminal device 100 by connecting with the battery 112, detecting the state of the battery 112 and controlling the charging and discharging process, and ensure the safe and efficient use of the battery 112. In addition, the power management module 111 can also control the terminal device 100 to enter the sleep mode, turn off the display screen 109 by sending corresponding instructions to the display screen controller 110, and wake up the device when the terminal device 100 needs to resume normal operation to reduce power consumption.
[0094] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0095] The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The present application embodiment takes a mobile operating system with a layered architecture as an example, and the software structure of the terminal device 100 is exemplarily described below.
[0096] Figure 1B This is an example block diagram of the software structure of a terminal device provided in an embodiment of the present application.
[0097] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the mobile operating system is divided into four layers, from top to bottom: application layer, application framework layer / core service layer, system library and runtime, and kernel layer.
[0098] The application layer can include a series of application packages.
[0099] like Figure 1BAs shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0100] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0101] like Figure 1B As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0102] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the display screen, capture the display screen, etc.
[0103] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0104] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0105] The phone manager is used to provide communication functions for terminal devices, such as the management of call status (including answering, hanging up, etc.).
[0106] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0107] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the display in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.
[0108] The runtime can refer to all code libraries, frameworks, etc. required for the program to run. For example, for the C language, the runtime includes a series of function libraries required for the C program to run. For the Java language, in addition to the core library, the runtime also includes the virtual machine required for the Java program to run. The above core library may include the function functions that the Java language needs to call.
[0109] The system library may include multiple functional modules, such as Hardware Abstraction Layer (HAL), surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0110] The Hardware Abstraction Layer (HAL) can be used to provide an abstract interface to specific hardware devices, such as fingerprint sensors, cameras, light sensors, etc., so that applications and / or system services can access and control various hardware devices. HAL abstracts hardware-related operations and provides standardized interfaces for operating systems or applications. Therefore, the HAL layer can separate the underlying implementation of the hardware from the upper-level applications, allowing hardware manufacturers to implement code related to specific hardware, thereby ensuring device compatibility.
[0111] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0112] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0113] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0114] A 2D graphics engine is a drawing engine for 2D drawings.
[0115] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0116] It should be understood that the control method in the prior art and each step in the control method embodiment provided by the present application can be completed by the hardware integrated logic circuit in the processor or the instruction in the form of software. The method steps disclosed in the embodiment of the present application can be directly embodied as the execution of the hardware processor, or the execution is completed by the combination of the hardware and software modules in the processor.
[0117] Based on the above description of the terminal device 100, the technical problem to be solved by the present application is further proposed. The following describes the application scenario and method steps of a specific user using the terminal device 100 to perform fingerprint unlocking in the off-screen display state.
[0118] See also Figure 2A , Figure 2A This is a schematic diagram of an interface in the prior art where the fingerprint spot area flashes when a user performs fingerprint unlocking in a terminal device in the off-screen display state. Figure 2A As shown, when the user touches the fingerprint spot area of the display screen with his finger in the off-screen display stage of the terminal device and is ready to perform fingerprint unlocking, in response to the user's operation, the terminal device can display interface 21, wherein the fingerprint spot area 201 in the terminal device display screen is lit, and the fingerprint spot area 201 is in a highlighted state. Further, the user keeps touching the fingerprint spot area 201 of the display screen with his finger, and during the fingerprint unlocking, the brightness of the fingerprint spot area 201 suddenly dims, and the terminal device presents interface 22, wherein the brightness of the fingerprint spot area 202 of the terminal device display screen is significantly dimmed compared to the brightness of the fingerprint spot area 201 in interface 21. Further, the user continues to keep touching the fingerprint spot area 202 of the display screen with his finger, and when continuing the fingerprint unlocking, the brightness of the fingerprint spot area 202 quickly brightens and returns to a highlighted state, and the terminal device presents interface 23, wherein the fingerprint spot 203 of the terminal device display screen is in a highlighted state. Since the fingerprint spot on the terminal device display screen can obviously show the phenomenon of flickering (brightness switching from bright to dark to bright) when the user unlocks the device with fingerprint during the screen-off display, the above phenomenon causes the clarity of the collected fingerprint image to be reduced, thereby reducing the success rate of user fingerprint recognition, increasing the probability of failure of optical fingerprint unlocking, and poor user experience.
[0119] See also Figure 2B , Figure 2B This is an example diagram of a process in the prior art where the fingerprint spot area of the display screen flashes gray when performing fingerprint unlocking in the off-screen display state. The main steps of the process are as follows:
[0120] Step S201: In response to a processing signal sent by a user pressing a power button, entering the screen-off display state.
[0121] Specifically, after receiving a signal triggered by a user pressing the power button, the terminal device can rely on the interface provided by the operating system to perform operations such as sleep, standby or other operations, so that the terminal device enters the screen-off display state. Figure 1BThe application framework layer of the operating system shown provides an application programming interface (API) and a programming framework so that the terminal device can respond to a processing signal triggered by the user pressing the power button, turn off the display screen and enter the screen-off display state.
[0122] Step S202: receiving a signal indicating that a finger has touched the fingerprint light spot area, and sending an instruction to light up the fingerprint light spot.
[0123] Specifically, when the terminal device is in the off-screen display state, the fingerprint sensor below the fingerprint spot area can be used to sense whether the user touches the fingerprint spot area. Once the fingerprint sensor detects that the user touches the fingerprint spot area, the above Figure 1B The system library of the operating system shown can, for example, communicate with the operating system kernel through the hardware abstraction layer (HAL), and report the signal received by the fingerprint sensor that the user touches the fingerprint spot area to the kernel layer of the operating system. Further, the kernel layer of the operating system responds to the signal of touching the fingerprint spot area and sends an instruction to light up the fingerprint spot through the HAL. The instruction is a hardware command that can be executed by the corresponding hardware device (such as a display controller), so that the display controller can control the fingerprint spot area of the display to light up, so as to facilitate the fingerprint sensor to collect fingerprints, thereby further performing fingerprint unlocking.
[0124] Step S203: Based on the above instruction to light up the fingerprint light spot, the fingerprint light spot area is lit up.
[0125] Specifically, the display screen controller can receive the above-mentioned instruction to light up the fingerprint spot, light up the fingerprint spot area in the display screen, and at this time the dimming mode of the terminal device is the direct current (DC) dimming mode, and the fingerprint spot area of the display screen appears in a high-brightness state, wherein the DC dimming mode can adjust the brightness by adjusting the voltage and / or current, and the pulse frequency of the DC dimming mode is relatively low, usually 1-2HZ.
[0126] Step S204: detecting that the display screen state has changed, triggering a frame switching instruction.
[0127] Specifically, since the display screen controller detects that the display screen state of the display screen has changed (from the off-screen state to the off-screen display state), in the above Figure 1B The operating system kernel layer shown automatically triggers a frame cutting instruction, and the frame cutting instruction is sent to the display controller through an abstract interface of a specific hardware device (such as a display controller) provided by the HAL layer, so as to adjust the dimming mode of the display, so that the dimming mode of the display is changed from direct current (DC) dimming to pulse width modulation (PWM) dimming.
[0128] Step S205: In response to the frame switching instruction, the dimming mode of the display screen is switched to the pulse width modulation dimming mode, and the fingerprint spot area flashes.
[0129] Specifically, the display screen controller receives and executes the above frame cutting instruction, and switches the dimming mode of the display screen from the direct current (DC) dimming mode to the pulse width modulation (PWM) dimming mode, wherein the pulse frequency of the PWM dimming mode is relatively high, and the higher the pulse frequency, the more difficult it is for the human eye to perceive the brightness change of the light source. Due to the change in the dimming mode, the pulse frequency is still relatively low at the moment of dimming mode switching, and the low-frequency pulse signal in the PWM dimming mode can make the brightness change of the light source obvious, so that the brightness of the fingerprint spot area dims, and then returns to the high brightness state. Therefore, the fingerprint spot area presents an obvious gray flash (brightness switching from high brightness to darker to high brightness), which reduces the clarity of the fingerprint image collected by the fingerprint detection module, resulting in an increased probability of failure of fingerprint unlocking and a longer fingerprint unlocking time, affecting the user experience.
[0130] It should be noted that there is no clear order between the step of detecting a change in the display screen state and triggering a frame cutting instruction and the step of receiving a signal that a finger touches the fingerprint spot area and sending an instruction to light up the fingerprint spot. That is, the above-mentioned step S204 can be executed synchronously with step S202, or before or after step S202. The embodiment of the present application does not make specific limitations on this.
[0131] To sum up, the technical problems that the present application actually aims to solve include the following aspects: With respect to the prior art, during fingerprint unlocking of a terminal device during screen-off display, the display screen controller of the terminal device executes a frame cutting instruction to switch the dimming mode of the display screen from a DC dimming mode to a pulse width modulation dimming mode, causing the light source to change significantly in brightness under a low-frequency state, resulting in the phenomenon that the fingerprint light spot flashes gray, reducing the clarity of the fingerprint image collected by the fingerprint detection module, thereby reducing the success rate of fingerprint recognition, increasing the time for fingerprint unlocking, and reducing the user experience.
[0132] Based on the above Figure 1A and Figure 1B The hardware and software architecture of the terminal equipment provided by Figure 2A and Figure 2B The technical problems in the prior art are specifically analyzed and solved.
[0133] See also Figure 3 , Figure 3 is a flow chart of a control method provided in an embodiment of the present application, which can be applied to the above Figure 1A In the terminal device, the above Figure 1BThe software architecture in the implementation enables the terminal device to be used to support and execute Figure 3 The method flow shown includes steps S301-S303.
[0134] Step S301: Detect whether the state of the display screen changes, wherein when the state of the display screen changes, trigger a first instruction, and the first instruction is used to adjust the dimming mode of the display screen.
[0135] Specifically, the terminal device can detect whether the state of the display screen has changed through the display screen controller. When the state of the display screen changes, for example, when the screen is switched from the off-screen state to the off-screen display state, the terminal device Figure 1B The operating system kernel layer will automatically issue a first instruction (such as a frame cutting instruction) for adjusting the dimming mode of the display screen. For example, the first instruction can switch the dimming mode of the display screen from a direct current dimming (DC) mode to a pulse width modulation (PWM) dimming mode. DC dimming usually adjusts the brightness by adjusting the magnitude of the current and / or voltage, and its pulse frequency is relatively low, usually 1-2HZ, while the pulse frequency of the PWM dimming mode is much higher than the pulse frequency of the DC dimming mode, and in the PWM dimming mode, when the pulse frequency is lower than a certain value (usually between tens of hertz and hundreds of hertz), the human eye can clearly perceive the brightness change of the light source. Therefore, when the display screen suddenly switches from DC dimming mode to PWM dimming mode, the pulse frequency is still low at this time. Assuming that the first instruction is executed by the terminal device, it can cause the brightness of the target area of the display screen (such as the fingerprint spot area) to become significantly darker, and then the pulse frequency increases, and the brightness of the target area quickly becomes brighter. However, this phenomenon can cause the clarity of the fingerprint image collected by the fingerprint detection module to decrease, thereby reducing the success rate of fingerprint recognition (multiple recognitions may be required to successfully unlock), making the fingerprint unlocking time longer, and reducing the user experience.
[0136] Step S302: When the state of the display screen changes and the terminal device is in a target state, determine whether the current dimming mode of the display screen is a DC dimming mode; the target state includes the display screen being in an off-screen display state and the fingerprint detection module receiving a signal of touching the target area.
[0137] Specifically, when the terminal device detects through the display controller that the state of the display screen has changed (for example, switching from the screen-off state to the screen-off display state), and the display screen is currently in the screen-off display state and the fingerprint detection module receives the target state of the signal of touching the target area, it can determine whether the current dimming mode of the display screen is the DC dimming mode to further determine whether to shield the execution of the above-mentioned first instruction for adjusting the dimming mode (for example, the frame cutting instruction) to control the dimming mode of the display screen from changing, so that the terminal device is in the screen-off display state, and during the optical fingerprint unlocking process, the brightness of the target area of the display screen (for example, the fingerprint spot area) does not change, thereby improving the clarity of the fingerprint image collected by the fingerprint detection module and reducing the failure probability of fingerprint unlocking. Therefore, the fingerprint unlocking time is shortened and the user experience is improved.
[0138] Step S303: If the display screen is in the DC dimming mode, shielding the execution of the first instruction.
[0139] Specifically, when the terminal device detects through the display controller that the display screen is in the DC dimming mode, the first instruction for adjusting the dimming mode (such as the frame cutting instruction) is shielded from execution, so that the terminal device may not execute the first instruction, so that the display screen can always maintain the DC dimming mode. Therefore, when the terminal device is in the off-screen display period and the fingerprint detection module under the display screen receives the signal of touching the target area, the brightness of the target area of the display screen (such as the fingerprint spot area) remains unchanged during the fingerprint unlocking process, so that the clarity of the fingerprint image collected by the fingerprint detection module is improved, thereby improving the success rate of fingerprint recognition and reducing the failure probability of fingerprint unlocking, so as to enhance the user experience.
[0140] See also Figure 4 , Figure 4 is a flow chart of another control method provided in an embodiment of the present application, which can be applied to the above Figure 1A In the terminal device, the above Figure 1B The software architecture in the implementation enables the terminal device to be used to support and execute Figure 4 The method flow shown includes steps S401 - S411 .
[0141] Step S401: Detect whether the state of the display screen changes, wherein when the state of the display screen changes, trigger a first instruction, and the first instruction is used to adjust the dimming mode of the display screen.
[0142] For details about detecting the state of the display screen and triggering the first instruction, see Figure 3 The relevant description of step S301 in will not be repeated here.
[0143] Step S402: Detect whether the terminal device is in the target state, where the target state includes that the display screen is in the screen-off display state and the fingerprint detection module receives a signal indicating that the target area is touched.
[0144] Specifically, for the description of detecting whether the terminal device (i.e., the terminal device) is in the target state, see Figure 3 The relevant description of step S302 in will not be repeated here.
[0145] Step S403: If yes, execute a second instruction, wherein the second instruction is used to light up the target area, and the dimming mode of the display screen is adjusted after the target area is lit up.
[0146] Specifically, when the terminal device detects through the display controller that the display screen is currently in the target state, where the target state may include the display controller detecting that the display screen is in the screen-off display state and the fingerprint detection module receives a signal that the target area of the display screen (such as the fingerprint spot area) is touched, the display screen is controlled to execute a second instruction for lighting up the target area (such as the fingerprint spot area. Therefore, the target area of the display screen can be lit up when it is in the screen-off display state and the fingerprint detection module receives a signal that the target area is touched, thereby illuminating the user's fingertips to facilitate the fingerprint detection module to collect fingerprint images for optical fingerprint unlocking. In addition, the dimming mode of the display screen is usually adjusted after the target area (such as the fingerprint spot area) is lit. Therefore, the terminal device usually executes the above-mentioned second instruction for lighting up the target area first, and then executes the above-mentioned first instruction for adjusting the dimming mode of the display screen.
[0147] Step S404: if the target area is lit, the value of the target flag is set to a preset value, where the preset value is used to indicate that the current dimming mode of the display screen is a DC dimming mode.
[0148] Specifically, when the target area is lit, the terminal device can Figure 1BThe operating system kernel layer in the process sets the target flag bit for indicating the current dimming mode of the display screen stored in the terminal device to a preset value (for example, the preset value can be set to 1) that can indicate that the current dimming mode of the display screen is the DC dimming mode, so that the terminal device can determine whether the target flag bit is the preset value to determine whether the current dimming mode of the display screen is the DC dimming mode, and thus can further determine whether to shield the execution of the above-mentioned first instruction (for example, the frame cutting instruction) to control the dimming mode of the display screen from changing, so that the terminal device is in the screen-off display state, and during the optical fingerprint unlocking process, the brightness of the target area of the display screen (for example, the fingerprint spot area) does not change, thereby improving the clarity of the fingerprint image collected by the fingerprint detection module and reducing the failure probability of fingerprint unlocking. Therefore, the fingerprint unlocking time is shortened and the user experience is improved.
[0149] Step S405: When the state of the display screen changes and the terminal device is in the target state, it is determined whether the target flag is the preset value.
[0150] Specifically, when the terminal device detects through the display controller that the state of the display screen has changed and is currently in the target state, the terminal device can Figure 1B The operating system kernel layer in the system determines whether the target flag is a preset value (for example, whether the target flag is 1) to determine whether the current dimming mode of the display is a DC dimming mode. The target state may include the display controller detecting that the display is in the off-screen display state and the fingerprint detection module receiving a signal that the target area of the touch display (for example, the fingerprint spot area) is touched.
[0151] Step S406: If the target flag is the preset value, intercepting the first instruction.
[0152] Furthermore, when the target flag is the preset value, that is, the display screen is in the direct current (DC) dimming mode, the first instruction for adjusting the dimming mode of the display screen (such as a frame cutting instruction) can be intercepted so that the terminal device blocks the execution of the first instruction, so that after the target area (such as the fingerprint spot area) is illuminated and during the fingerprint unlocking process, the first instruction for adjusting the dimming mode is not executed, so that the dimming mode of the display screen can continue to remain unchanged. For example, the display screen always maintains the DC dimming mode. Therefore, during the optical fingerprint unlocking process, the brightness of the fingerprint detection module remains unchanged to improve the clarity of the collected fingerprint image, improve the success rate of fingerprint recognition, and reduce the probability of failure of optical fingerprint unlocking, thereby enhancing the user experience.
[0153] Based on the above method steps S401-S406, the following two possible implementation methods may occur:
[0154] In a possible implementation, when the user's finger continuously touches the target area of the display screen to perform fingerprint unlocking, the control method provided in the embodiment of the present application may further include the following steps S407A-S410A and step S411.
[0155] Step S407A: If the target area is lit, the fingerprint detection module collects the fingerprint image to be identified.
[0156] Specifically, when the target area (e.g., fingerprint spot area) is illuminated, a fingerprint detection module, such as a fingerprint sensor, can be used to collect a fingerprint image to be identified, thereby performing optical fingerprint unlocking. It should be noted that there is no clear order between step S407A and the above steps S405-S406, and step S407A can also be performed simultaneously with the above steps S405-S406.
[0157] Step S408A: performing optical fingerprint unlocking based on the fingerprint image to be identified.
[0158] Specifically, optical fingerprint unlocking is performed based on the fingerprint image to be identified collected by the fingerprint detection module; illustratively, the fingerprint controller can receive the fingerprint image data collected by the fingerprint sensor, and control the image processing unit to process it, thereby extracting the feature points of the fingerprint image, creating a fingerprint template, and then based on the fingerprint template, compare it with the legal fingerprint template stored in the storage unit, so as to identify the fingerprint to verify the user's identity. Among them, the operation of controlling the image processing unit to process the fingerprint image to be identified and compare it can be performed in the following manner: Figure 1B The operating system kernel layer described in the above is used to determine whether the recognized fingerprint image can be unlocked successfully, so as to ensure that only authorized users can access the protected system space and improve the security of the system.
[0159] Step S409A: Switch the display screen from the screen-off display state to the normal display state.
[0160] Furthermore, when the terminal device completes fingerprint unlocking, the terminal device immediately enters the normal display interface, so the display state of the display screen will change accordingly. Specifically, when the terminal device is unlocked successfully or fails to unlock, the terminal device can switch the display screen from the off-screen display state to the normal display state through the display screen controller, so that the terminal device can determine whether to execute a third instruction that can extinguish the target area of the display screen (such as the fingerprint spot area) according to whether the display screen is currently in a normal display state. Exemplarily, if it is detected that the display screen is currently in a normal display state, the third instruction is executed to extinguish the target area (such as the fingerprint spot area), thereby avoiding the target area from emitting light and affecting the normal display of the display screen when, for example, the unlocking is successful or in other scenarios.
[0161] Step S410A: If the display screen is in a normal display state, execute a third instruction, wherein the third instruction is used to turn off the target area.
[0162] Specifically, when the display screen controller detects that the display screen is in a normal display state, the terminal device can control the display screen through the display screen controller to execute a third instruction for extinguishing the target area, so that the terminal device can extinguish the target area (such as the fingerprint spot area) when the display screen is in a normal display state, thereby avoiding the target area from emitting light and affecting the normal display of the display screen when the unlocking is successful or in other scenarios.
[0163] In another possible implementation, when the user's finger briefly touches the target area of the display screen, that is, the time when the user's finger touches the target area is not enough for the fingerprint detection module to collect the fingerprint and perform optical fingerprint unlocking, the control method provided in the embodiment of the present application may also include the following steps S407B and S411.
[0164] Step S407B: When the fingerprint detection module does not receive a signal of touching the target area within a preset time after receiving the signal of touching the target area, the third instruction is executed, and the third instruction is used to turn off the target area.
[0165] Specifically, when the fingerprint detection module under the display screen receives a signal of touching the target area and does not receive a signal of touching the target area within a preset time, the terminal device controls the display screen through the display screen controller to execute a third instruction for extinguishing the target area, so that the terminal device can extinguish the target area (such as the fingerprint spot area) when the user's finger stops touching the target area, thereby avoiding the target area from emitting light in, for example, a screen-off display scenario and affecting the normal display of the display screen. Step S411: If the target area is extinguished, the value of the target flag bit is set to an initial value, and the initial value is used to indicate that the current dimming mode of the display screen is a pulse width modulation dimming mode.
[0166] Specifically, when the display screen controller responds to the third instruction and controls the display screen to turn off the target area, the display screen controller can Figure 1B The operating system kernel layer described in the above sets the target flag bit to an initial value that can be used to indicate that the current dimming mode of the display screen is a pulse width modulation (PWM) dimming mode, wherein the pulse width modulation dimming mode can adjust the brightness by adjusting the pulse signal. This allows the terminal device to normally execute the first instruction when the target area is extinguished, that is, the terminal device can normally adjust the dimming mode of the display screen, so that the display screen can display normally when unlocking is successful or in other scenarios.
[0167] The above introduces the steps of the control method provided in the embodiment of the present application. Next, an operation interface schematic diagram when the user performs fingerprint unlocking when the terminal device is in the screen-off display state after using the control method provided in the embodiment of the present application is introduced.
[0168] See also Figure 5A , Figure 5A A user interface diagram of a control method provided in an embodiment of the present application. The user interface diagram can be Figure 1A The terminal device 100 and Figure 1B The software architecture is implemented in . Figure 5AAs shown, when the user presses the side power button (power button) 501, or touches any area of the display screen after a long period of inactivity, the display screen enters the screen-off display state, and in response to the user's operation, the display screen can present a user interface as shown in interface 51. Among them, the fingerprint spot area (that is, the target area) 502 of the fingerprint detection module provided below the display screen can be used to collect fingerprints and perform optical fingerprint unlocking. At this time, the fingerprint spot area 502 is off, and the message "Please touch the fingerprint sensing area below to verify the fingerprint" can be displayed above it to prompt the user to touch the fingerprint spot area with their finger for fingerprint unlocking. Furthermore, when the user touches the fingerprint spot area 502 with his finger, the terminal device 100 is in the target state (the display screen is in the off-screen display state, and the fingerprint detection module receives the signal of touching the fingerprint spot area), and presents a user interface as shown in interface 52, wherein when the fingerprint detection module receives the signal of the finger touching the fingerprint spot area 503, the fingerprint spot area 503 is lit, and the fingerprint spot area 503 is in a highlighted state, even if the user continues to keep the finger touching the fingerprint spot area 503 of the display screen, the brightness of the fingerprint spot area 503 remains unchanged until the optical fingerprint unlocking is completed. When the fingerprint unlocking is successful, since the fingerprint spot area 503 is extinguished, the user interface 53 is entered, and at this time, the state of the display screen is switched from the off-screen display to the normal display state, so that the display screen can display normally after the unlocking is successful. In addition, since the brightness of the fingerprint spot area 503 remains unchanged and remains in a high-brightness state when the user touches the fingerprint spot area 503 to perform optical fingerprint unlocking, the clarity of the fingerprint image collected by the fingerprint detection module is improved, thereby improving the success rate of fingerprint recognition and reducing the time of optical fingerprint unlocking, thereby enhancing the user experience.
[0169] See also Figure 5B , Figure 5B is a user interface diagram of another control method provided in an embodiment of the present application. The user interface diagram can be Figure 1A The terminal device 100 and Figure 1B The user interface of the terminal device 100 entering the screen-off display state and performing optical fingerprint unlocking in response to the user's operation is the same as the above Figure 5A The interface 51 and the interface 52 are the same, and the specific steps can be described in the above Figure 5AThe relevant description in is not repeated here. When the user fails to perform optical fingerprint unlocking, the user interface 54 is entered. At this time, the state of the display screen is switched from the off-screen display to the normal display state, and a prompt message "Fingerprint unlocking failed, please use the password to unlock" and a numeric keypad 504 appear to prompt the user to use the password to unlock. Since the state of the display screen is switched from the off-screen display to the normal display state, the terminal device 100 detects that the display screen is currently in the normal display state, and then executes a third instruction that can be used to extinguish the fingerprint spot area 503 (i.e., the target area), thereby preventing the display screen from emitting light in the target area in a scenario such as a failed unlock, which affects the normal display of the display screen.
[0170] See also Figure 5C , Figure 5C A user interface diagram of another control method provided in an embodiment of the present application. The user interface diagram can be Figure 1A The terminal device 100 and Figure 1B The user interface of the terminal device 100 entering the screen-off display state and performing optical fingerprint unlocking in response to the user's operation is the same as the above Figure 5A The interface 51 and the interface 52 are the same, and the specific steps can be described in the above Figure 5A However, when the time when the user's finger touches the fingerprint spot area 503 in the interface 52 is short and insufficient for the fingerprint detection module to complete the optical fingerprint unlocking process, that is, when the fingerprint detection module does not receive a signal of touching the fingerprint spot area 503 within a preset time after receiving the signal of touching the fingerprint spot area 503, it will enter the user interface 55. At this time, the display screen is still in the screen-off display state, and its fingerprint spot area 505 is extinguished, so that the display screen can display normally in a scene such as the screen-off display.
[0171] It should be noted that the above Figure 5A-Figure 5C The user interface schematic diagrams shown are all exemplary displays of the embodiments of the present application. The user interface schematic diagrams during actual operation may also be in other styles, and the embodiments of the present application are not limited to this.
[0172] In one possible implementation, see Figure 6 , Figure 6 This is a flow chart of an example of a method for controlling a display screen when performing fingerprint unlocking in a screen-off display state provided by an embodiment of the present application. The specific steps may be, but are not limited to, the following steps:
[0173] Step S601: In response to a processing signal sent by a user pressing a power button, entering the screen-off display state.
[0174] Step S602: receiving a signal indicating that a finger has touched the fingerprint light spot area, and sending an instruction to light up the fingerprint light spot.
[0175] Step S603: Based on the above instruction to light up the fingerprint light spot, the fingerprint light spot area is lit up.
[0176] Step S604: detecting that the display screen state has changed, triggering a frame switching instruction.
[0177] It should be noted that the specific steps of the above steps S601 to S604 are the same as those of the above steps. Figure 2B In addition, there is no clear order between the step of triggering the frame cutting instruction and the step of receiving the signal of the finger touching the fingerprint spot area and sending the instruction to light up the fingerprint spot, that is, the step S604 can be executed synchronously with the step S602, or before or after the step S602, and the embodiment of the present application does not make specific limitations on this.
[0178] Step S605: setting the value of the target flag bit to 1, to indicate that the current dimming mode of the display screen is the DC dimming mode.
[0179] Exemplarily, a target flag is stored in the terminal device, which can be used to indicate the current dimming mode of the display screen. When the fingerprint light spot is lit by the display screen controller, the terminal device can Figure 1B The operating system kernel layer in the target flag bit is set to 1 to indicate that the current dimming mode of the display screen is the DC dimming mode. Therefore, the terminal device can determine whether the current dimming mode of the display screen is the DC dimming mode by judging whether the target flag bit is a preset value, so as to further judge whether to shield the execution of the above-mentioned first instruction (such as a frame cutting instruction) to control the dimming mode of the display screen from changing, so that the terminal device is in the screen-off display state. During the optical fingerprint unlocking process, the brightness of the target area of the display screen (such as the fingerprint spot area) does not change, thereby improving the clarity of the fingerprint image collected by the fingerprint detection module and reducing the failure probability of fingerprint unlocking. Therefore, the fingerprint unlocking time is shortened and the user experience is improved.
[0180] Step S606: Determine whether the target flag is 1.
[0181] For example, when the terminal device detects through the display controller that the state of the display screen has changed and is in the off-screen display state, and the fingerprint detection module receives a signal that the fingerprint spot area is touched, the terminal device can detect through the above Figure 1B The operating system kernel layer in the system determines whether the target flag is 1 to determine whether the current dimming mode of the display is the DC dimming mode.
[0182] Step S607: If yes, intercept the frame switching instruction.
[0183] Furthermore, when the target flag is 1, it is determined that the state of the display screen is in the DC dimming mode. Then, by intercepting the frame cutting instruction that can adjust the dimming mode of the display screen, the terminal device blocks the execution of the frame cutting instruction and keeps the dimming mode unchanged, thereby controlling the brightness of the fingerprint spot area of the display screen to remain unchanged, so as to improve the clarity of the fingerprint image collected by the fingerprint detection module and reduce the failure probability of fingerprint unlocking. Therefore, the fingerprint unlocking time is shortened and the user experience is improved.
[0184] Step S608: the dimming mode of the display screen remains unchanged, and the brightness of the fingerprint spot area remains unchanged.
[0185] Exemplarily, since the above-mentioned frame cutting instruction is intercepted, the display controller does not receive and execute the frame cutting instruction. Therefore, the dimming mode of the display screen can remain unchanged, for example, the DC dimming mode is always maintained, and the clarity of the fingerprint image collected by the fingerprint detection module is improved to improve the success rate of fingerprint recognition and reduce the probability of failure of optical fingerprint unlocking, thereby improving the user experience.
[0186] Optionally, in one possible implementation, when the user's finger continues to touch the fingerprint spot area of the display screen for optical fingerprint unlocking, the terminal device can collect the fingerprint image to be identified through the fingerprint detection module, and then perform optical fingerprint unlocking based on the fingerprint image to be identified. Furthermore, after the optical fingerprint unlocking is completed, the display screen can be switched from the screen-off display state to the normal display state; when the display screen is in the normal display state, the third instruction is executed to extinguish the fingerprint spot area, and then the value of the above-mentioned target flag bit is set to the initial value to avoid affecting the normal display of the display screen in other scenarios (such as successful unlocking or other scenarios). Among them, for a specific description of this step, please refer to the above Figure 4 The related descriptions of steps S407A-S410A and step S411 are not repeated here.
[0187] Optionally, in another possible implementation, when the user's finger briefly touches the target area of the display screen, that is, the time when the user's finger touches the target area is not enough for the fingerprint detection module to collect the fingerprint and perform optical fingerprint unlocking, the terminal device executes a third instruction to extinguish the fingerprint spot area, and then sets the value of the above target flag bit to the initial value to avoid affecting the normal display of the display screen in other scenarios (such as during the screen off display or other scenarios). For a detailed description of this step, please refer to the above Figure 4 The related descriptions of step S407B and step S411 are not repeated here.
[0188] The above detailed description of the method of the embodiment of the present application, it can be understood that, in order to realize the corresponding functions mentioned above, each device includes a hardware structure and / or software module corresponding to the execution of each function. In combination with the units and steps of the examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. The following introduces the equipment provided in the embodiment of the present application.
[0189] See also Figure 7 , Figure 7 700 is a schematic diagram of the structure of a control device provided in an embodiment of the present application. The control device 700 can be applied to a terminal device, the terminal device includes a fingerprint detection module and a display screen, the fingerprint detection module is located below the display screen; wherein the area below the display screen where the fingerprint detection module is located is the target area; the control device 700 can include a first detection unit 701, a determination unit 702, and a shielding unit 703, wherein the detailed description of each unit is as follows:
[0190] A first detection unit 701 is used to detect whether the state of the display screen has changed, wherein when the state of the display screen has changed, a first instruction is triggered, and the first instruction is used to adjust the dimming mode of the display screen;
[0191] The determination unit 702 is used to determine whether the current dimming mode of the display screen is a DC dimming mode when the state of the display screen changes and the terminal device is in a target state; the target state includes that the display screen is in an off-screen display state and the fingerprint detection module receives a signal of touching the target area; the DC dimming mode adjusts the brightness by adjusting the magnitude of the current and / or voltage;
[0192] The shielding unit 703 is configured to shield the execution of the first instruction if the display screen is in a DC dimming mode.
[0193] In the embodiment of the present application, in the control device, the first detection unit 701 is used to detect whether the state of the display screen of the terminal device has changed, wherein, when the state of the display screen has changed, the first instruction (such as a frame cutting instruction) for adjusting the dimming mode of the display screen will be automatically triggered; when the state of the display screen has changed and the terminal device is in the target state, the determination unit 702 is used to determine whether the current dimming mode of the display screen is the DC dimming mode; wherein the target state may include that the display screen is in the off-screen display state and the fingerprint detection module of the terminal device receives a signal of touching the target area (fingerprint spot area). If the display screen is currently in the DC dimming mode, the shielding unit 703 is used to shield the execution of the first instruction for adjusting the dimming mode of the display screen, so that the display screen always maintains the DC dimming mode. Therefore, during the off-screen display period of the terminal device, after the fingerprint detection module under the display screen receives the signal of touching the target area, the brightness of the target area of the display screen (that is, the fingerprint spot area) remains unchanged during the fingerprint unlocking process, thereby improving the accuracy of the fingerprint image collected by the fingerprint detection module, and therefore, the success rate of fingerprint recognition is improved, and the time for user fingerprint unlocking is shortened, thereby improving the user experience.
[0194] In a possible implementation manner, the device further includes:
[0195] A second detection unit, used to detect whether the terminal device is in the target state;
[0196] The first execution unit is used to execute a second instruction if the terminal device is in the target state, wherein the second instruction is used to light up the target area, and the dimming mode of the display screen is adjusted after the target area is lit.
[0197] In a possible implementation manner, the device further includes:
[0198] The setting unit is used to set the value of the target flag bit to a preset value if the target area is lit, and the preset value is used to indicate that the current dimming mode of the display screen is a DC dimming mode.
[0199] In a possible implementation manner, the setting unit is further configured to:
[0200] If the target area is turned off, the value of the target flag is set to an initial value, and the initial value is used to indicate that the current dimming mode of the display screen is a pulse width modulation dimming mode; wherein the pulse width modulation dimming mode adjusts the brightness by adjusting the pulse signal.
[0201] In a possible implementation, the DC dimming mode adjusts the brightness by adjusting the magnitude of the current and / or voltage; the PWM dimming mode adjusts the brightness by adjusting the pulse signal.
[0202] In a possible implementation manner, the determining unit 702 is specifically configured to:
[0203] Determine whether the target flag is the preset value;
[0204] The shielding unit 703 is specifically used for:
[0205] If the target flag is the preset value, the first instruction is intercepted.
[0206] In a possible implementation manner, the device further includes:
[0207] A collection unit, used for collecting a fingerprint image to be identified through the fingerprint detection module if the target area is illuminated;
[0208] An unlocking unit, used for performing optical fingerprint unlocking based on the fingerprint image to be identified;
[0209] A switching unit is used to switch the display screen from the screen-off display state to a normal display state.
[0210] In a possible implementation manner, the device further includes:
[0211] The second execution unit is used to execute a third instruction if the display screen is in a normal display state, or if the fingerprint detection module does not receive a signal of touching the target area within a preset time after receiving a signal of touching the target area, and the third instruction is used to turn off the target area.
[0212] It should be noted that the functions of the various units in the control device 700 described in the embodiment of the present application can be referred to in the above Figure 3 , Figure 4 as well as Figure 6 The relevant description of the method embodiment described is not repeated here. It is understandable that the device and method provided in the embodiment of the present application can be implemented in other ways. For example, the system embodiment described above is only schematic. For example, the division of the above modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0213] See also Figure 8 , Figure 8 Schematic diagram of the hardware structure of another terminal device provided in the embodiment of the present application. Figure 8 As shown, the terminal device 800 includes at least one processor 101 and a memory 102. The processor 101 is coupled to the memory 102. The coupling in the embodiment of the present application may be a communication connection, an electrical connection, or other forms. In addition, the terminal device 800 provided in the embodiment of the present application may also include: a fingerprint detection module 105 and at least one display screen 109 ( Figure 8 Only one is shown). The processor 101, the memory 102, the fingerprint detection module 105 and the display screen 109 can be connected via a bus 801. Specifically, the memory 102 is used to store program instructions. The processor 101 is used to call the program instructions stored in the memory 102 so that the terminal device 800 can execute the steps in the control method provided in the embodiment of the present application. The description of each component and related steps can be referred to above and will not be repeated here.
[0214] It should be noted that the terminal device 800 provided in the embodiment of the present application may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or any combination of software and hardware.
[0215] An embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium may store a program, and when the computer program is executed by a processor, it implements part or all of the steps of any one of the control methods recorded in the above method embodiments.
[0216] An embodiment of the present application also provides a computer program, which includes instructions. When the computer program is executed by a computing device, the computing device can execute part or all of the steps of any one of the above-mentioned control methods.
[0217] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0218] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.
[0219] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, some steps may be performed in other orders or simultaneously, or some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application. It should also be noted that the features and functions of two or more devices disclosed in the present invention can be concretized in one device. Conversely, the features and functions of a device described above can be further divided into being concretized by multiple devices.
[0220] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can 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 the computer program instructions are loaded and executed on a computer, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can 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 can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.
[0221] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
[0222] In short, the above is only an embodiment of the technical solution of this application, and is not intended to limit the protection scope of this application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of this application shall be included in the protection scope of this application.
Claims
1. A control method, characterized in that: Applied to a terminal device, the terminal device comprises a fingerprint detection module and a display screen, the fingerprint detection module is located below the display screen; wherein the area below the display screen where the fingerprint detection module is located is a target area; the method comprises: Detecting whether the state of the display screen changes, wherein when the state of the display screen changes, triggering a first instruction, the first instruction is used to adjust the dimming mode of the display screen; When the state of the display screen changes and the terminal device is in a target state, it is determined whether the current dimming mode of the display screen is a DC dimming mode; the target state includes that the display screen is in an off-screen display state and the fingerprint detection module receives a signal of touching the target area; If the display screen is in the DC dimming mode, the execution of the first instruction is shielded.
2. The method according to claim 1, characterized in that The method further comprises: Detecting whether the terminal device is in the target state; If so, a second instruction is executed, where the second instruction is used to light up the target area, and the dimming mode of the display screen is adjusted after the target area is lit up.
3. The method according to claim 2, characterized in that The terminal device stores a target flag bit, and the target flag bit is used to indicate the current dimming mode of the display screen; the method further includes: If the target area is lit, the value of the target flag is set to a preset value, and the preset value is used to indicate that the current dimming mode of the display screen is a DC dimming mode.
4. The method according to claim 3, characterized in that The method further comprises: If the target area is turned off, the value of the target flag is set to an initial value, and the initial value is used to indicate that the current dimming mode of the display screen is a pulse width modulation dimming mode.
5. The method according to any one of claims 1 to 4, characterized in that: The DC dimming mode adjusts the brightness by adjusting the current and / or voltage; the PWM dimming mode adjusts the brightness by adjusting the pulse signal.
6. The method according to any one of claims 3 to 5, characterized in that: The determining whether the current dimming mode of the display screen is a DC dimming mode includes: Determine whether the target flag is the preset value; If the display screen is in the DC dimming mode, shielding the execution of the first instruction comprises: If the target flag is the preset value, the first instruction is intercepted.
7. The method according to any one of claims 2 to 6, characterized in that: The method further comprises: If the target area is lit, the fingerprint detection module collects the fingerprint image to be identified; Based on the fingerprint image to be identified, performing optical fingerprint unlocking; The display screen is switched from the screen-off display state to a normal display state.
8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: If the display screen is in a normal display state, or if the fingerprint detection module does not receive a signal of touching the target area within a preset time after receiving a signal of touching the target area, a third instruction is executed, and the third instruction is used to turn off the target area.
9. A control device, characterized in that: Applied to a terminal device, the terminal device comprises a fingerprint detection module and a display screen, the fingerprint detection module is located below the display screen; wherein the area below the display screen where the fingerprint detection module is located is a target area; comprising: A first detection unit is used to detect whether the state of the display screen changes, wherein when the state of the display screen changes, a first instruction is triggered, and the first instruction is used to adjust the dimming mode of the display screen; a determination unit, configured to determine whether the current dimming mode of the display screen is a DC dimming mode when the state of the display screen changes and the terminal device is in a target state; the target state includes the display screen being in an off-screen display state and the fingerprint detection module receiving a signal of touching the target area; A shielding unit is used to shield the execution of the first instruction if the display screen is in a DC dimming mode.
10. The device according to claim 9, characterized in that The device also includes: A second detection unit, used to detect whether the terminal device is in the target state; The first execution unit is used to execute a second instruction if the terminal device is in the target state, wherein the second instruction is used to light up the target area, and the dimming mode of the display screen is adjusted after the target area is lit.
11. The device according to claim 10, characterized in that The device also includes: A setting unit is used to set the value of the target flag bit to a preset value if the target area is lit, and the preset value is used to indicate that the current dimming mode of the display screen is a DC dimming mode.
12. The device according to claim 11, characterized in that The setting unit is also used for: If the target area is turned off, the value of the target flag is set to an initial value, and the initial value is used to indicate that the current dimming mode of the display screen is a pulse width modulation dimming mode.
13. The device according to any one of claims 9 to 12, characterized in that: The DC dimming mode adjusts the brightness by adjusting the current and / or voltage; the PWM dimming mode adjusts the brightness by adjusting the pulse signal.
14. The device according to any one of claims 11 to 13, characterized in that: The determining unit is specifically configured to: Determine whether the target flag is the preset value; The shielding unit is specifically used for: If the target flag is the preset value, the first instruction is intercepted.
15. The device according to any one of claims 10 to 14, characterized in that: The device also includes: A collection unit, used for collecting a fingerprint image to be identified through the fingerprint detection module if the target area is illuminated; An unlocking unit, used for performing optical fingerprint unlocking based on the fingerprint image to be identified; A switching unit is used to switch the display screen from the screen-off display state to a normal display state.
16. The device according to any one of claims 9 to 15, characterized in that: The device also includes: The second execution unit is used to execute a third instruction if the display screen is in a normal display state, or if the fingerprint detection module does not receive a signal of touching the target area within a preset time after receiving a signal of touching the target area, and the third instruction is used to turn off the target area.
17. A terminal device, characterized in that: The terminal device includes a fingerprint detection module and a display screen, wherein the fingerprint detection module is located below the display screen; wherein the area below the display screen where the fingerprint detection module is provided is a target area; the terminal device also includes a processor and a memory, wherein the memory is used to store programs and various data, and the processor is used to call the program code stored in the memory so that the terminal device executes the method described in any one of claims 1-7.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
19. A computer program, characterized in that The computer program comprises instructions, and when the computer program is run on a computer, the computer is caused to perform the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
OLED display screen dimming method and device applied to two-dimensional code scanning
CN113436576A
System and apparatus for providing and managing electricity
US20150244121A1
Dynamic gamma curve use for display
WO2021151246A1