CN117075791A - Fingerprint light spot display method, terminal equipment and storage medium - Google Patents

Fingerprint light spot display method, terminal equipment and storage medium Download PDF

Info

Publication number
CN117075791A
CN117075791A CN202311276076.2A CN202311276076A CN117075791A CN 117075791 A CN117075791 A CN 117075791A CN 202311276076 A CN202311276076 A CN 202311276076A CN 117075791 A CN117075791 A CN 117075791A
Authority
CN
China
Prior art keywords
fingerprint
area
displayed
layer
light spot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311276076.2A
Other languages
Chinese (zh)
Inventor
王岩
郑承致
陈乾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311276076.2A priority Critical patent/CN117075791A/en
Publication of CN117075791A publication Critical patent/CN117075791A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/13Sensors therefor
    • G06V40/1318Sensors therefor using electro-optical elements or layers, e.g. electroluminescent sensing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Image Input (AREA)

Abstract

The application relates to a fingerprint light spot display method, terminal equipment and a storage medium. The method is applied to the terminal equipment. The terminal device responds to the pressing operation detected in the fingerprint detection area of the terminal device at the screen locking interface or the screen extinguishing interface, and generates a fingerprint event. Based on the fingerprint event, the terminal device determines a coverage area when the fingerprint detection area is pressed, and obtains an ambient light value of the surrounding environment of the terminal device. If the ambient light value is smaller than a preset ambient light threshold value, the terminal equipment determines a region to be displayed of the fingerprint light spot according to the coverage region, and the pixel point corresponding to the region to be displayed is lightened; or drawing a layer of the area to be displayed; and drawing the zone bit and the mask layer, and identifying the layer of the area to be displayed according to the zone bit, and synchronously displaying the layer of the area to be displayed and the mask layer. The application solves the problem that the human eyes are easy to be stimulated after the whole area of the fingerprint light spot is lightened when the fingerprint identification is carried out in the prior art, and improves the user experience.

Description

Fingerprint light spot display method, terminal equipment and storage medium
Technical Field
The application relates to the technical field of terminal equipment, in particular to a fingerprint light spot display method, terminal equipment and a storage medium.
Background
Currently, optical fingerprint identification technology is widely applied to electronic equipment. For example, the under-screen fingerprint recognition of a full-screen mobile phone is realized by adopting an optical fingerprint recognition technology. In the fingerprint identification scene, when the display screen is pressed by a finger, a fingerprint detection area of the display screen is lightened to form light spots, light rays of the light spots penetrate through the display screen to reach the finger and then are reflected to form reflected light rays, the reflected light rays carrying fingerprint information penetrate through the display screen to reach a fingerprint sensor under the display screen due to the fact that the reflected light rays are different from each other, and the fingerprint sensor acquires fingerprint images according to the reflected light rays so as to realize fingerprint identification.
In order to ensure the accuracy of fingerprint identification, the optical fingerprint identification scene under the screen has certain requirements on the brightness of light spots, such as more than 500nit. However, in dark environments, since the finger typically does not completely cover the entire spot, the leaked light may irritate the human eye, affecting the user experience.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a method for displaying fingerprint spots, a terminal device and a storage medium, so as to solve the technical problem of inconvenient fingerprint identification of a user and improve user experience.
In a first aspect, an embodiment of the present application provides a method for displaying a fingerprint light spot, which is applied to a terminal device, where the method includes: generating a fingerprint event in response to a pressing operation detected in a fingerprint detection area of a terminal device at a screen locking interface or a screen extinguishing interface; determining a coverage area when the fingerprint detection area is pressed based on the fingerprint event; acquiring an ambient light value of the ambient environment of the terminal equipment based on the fingerprint event; if the ambient light value is smaller than a preset ambient light threshold value, determining a region to be displayed of the fingerprint light spot according to the coverage region; the pixel point corresponding to the area to be displayed is lightened; or drawing a layer of the area to be displayed; drawing a zone bit and a mask layer, wherein the zone bit is used for indicating a layer of a region to be displayed of a fingerprint light spot; and identifying the layer of the area to be displayed according to the zone bit, and synchronously displaying the layer of the area to be displayed and the mask layer. In the above technical solution, when the ambient light value is smaller than the preset ambient light threshold, that is, when the brightness of the ambient light is in a scene of dark environment, and when the finger presses the fingerprint detection area to perform fingerprint identification, only the coverage area on the fingerprint light spot when the finger presses the fingerprint light spot is lightened to illuminate the finger of the user to perform fingerprint identification, and the brightness of the part of the fingerprint detection area which is not covered by the finger is unchanged; or, draw the layer of waiting to show the regional layer of drawing to show through the display driver chip and show the layer after drawing and carry out fingerprint identification with the finger that shines, can guarantee fingerprint identification's accuracy like this, can avoid the light leak dazzling again, solved prior art scheme and need light whole fingerprint facula when carrying out fingerprint identification, cause dazzling influence to the user when making the region that does not cover by the finger light on the fingerprint facula light, improved user experience.
In an embodiment of the present application, determining the area to be displayed of the fingerprint light spot according to the coverage area includes: and determining data of the area to be displayed according to the coverage area, wherein the data of the area to be displayed comprises edge position data of the area to be displayed. According to the technical scheme, the edge position data of the area to be displayed can be determined according to the coverage area, so that the position of the area to be displayed in the fingerprint light spot is determined.
In an embodiment of the present application, illuminating a pixel corresponding to a region to be displayed includes: and carrying out format conversion on the data of the area to be displayed, and lighting up pixel points corresponding to the data of the area to be displayed after format conversion by a display driving chip of the terminal equipment. In the technical scheme, after the data of the area to be displayed is subjected to format conversion, the display driving chip can conveniently identify the data of the area to be displayed and lighten the pixel points corresponding to the data of the area to be displayed.
In an embodiment of the present application, a pixel corresponding to data of a to-be-displayed area after format conversion is lightened by a display driving chip of a terminal device includes: the display driving chip increases the brightness of the pixel point corresponding to the data of the area to be displayed after format conversion to a preset brightness range. According to the technical scheme, the brightness of the pixel point corresponding to the data of the area to be displayed is increased to the preset brightness range, so that fingerprint identification can be performed by a user, and meanwhile, light leakage and dazzling of fingerprint spots are avoided.
In an embodiment of the present application, performing format conversion on data of a region to be displayed includes: and converting the data of the area to be displayed into data in the instruction format of the display driving chip.
In an embodiment of the present application, determining the area to be displayed of the fingerprint light spot according to the coverage area includes: and taking the coverage area as a region to be displayed of the fingerprint light spot. According to the technical scheme, the coverage area when the finger presses the fingerprint detection area is used as the area to be displayed of the fingerprint light spot, so that when the subsequent area to be displayed of the fingerprint light spot is lightened, the brightness emitted by the fingerprint light spot can be shielded by the finger of a user, and the uncomfortable influence on the man-made dazzling is avoided.
In an embodiment of the present application, determining the area to be displayed of the fingerprint light spot according to the coverage area includes: and determining the area to be displayed of the fingerprint light spot according to the position of the coverage area in the fingerprint light spot. According to the technical scheme, the area to be lightened in the fingerprint light spot can be determined according to the position information of the coverage area in the fingerprint light spot, so that the light leakage of the fingerprint light spot is avoided.
In an embodiment of the present application, determining a region to be displayed of a fingerprint light spot according to a position of a coverage region in the fingerprint light spot includes: and determining an overlapping area of the coverage area and each preset light spot area in the plurality of preset light spot areas, taking the preset light spot area corresponding to the largest overlapping area as a to-be-displayed area of the fingerprint light spot, wherein each preset light spot area is a partial area of the fingerprint light spot. In the technical scheme, the preset light spot area corresponding to the largest overlapping area can be used as the area to be lightened in the fingerprint light spot, and the technical effect of avoiding the light leakage and dazzling of the fingerprint light spot can be better achieved.
In an embodiment of the application, the method further comprises: and if the ambient light value is greater than or equal to a preset ambient light threshold value, taking a default area of the fingerprint light spot as an area to be displayed of the fingerprint light spot, wherein the default area is all areas of the fingerprint light spot. If the ambient light value is greater than or equal to the preset ambient light threshold, namely the ambient light of the current environment is in the scene of normal ambient light, all areas of the fingerprint light spots are lightened, so that the fingerprint light spots can irradiate sufficient brightness to the fingers of the user, and the fingerprint identification efficiency is improved.
In an embodiment of the present application, acquiring an ambient light value of an ambient environment of a terminal device based on a fingerprint event includes: and sending a request for acquiring the ambient light to an ambient light sensor of the terminal equipment according to the fingerprint event, and acquiring an ambient light value sent by the ambient light sensor in response to the request for acquiring the ambient light. Through the technical scheme, the terminal equipment can start interaction with the ambient light sensor according to the fingerprint event so as to acquire the ambient light value of the surrounding environment of the terminal equipment.
In one embodiment of the present application, a terminal device includes an application processor, and the application processor is configured to run an operating system, where the operating system includes an application framework layer, a system library, a hardware abstraction layer, a kernel layer, and a hardware layer, and generates a fingerprint event in response to a press operation detected in a fingerprint detection area of the terminal device at a lock screen interface or a rest screen interface, where the generating includes: the touch sensor of the hardware layer generates a fingerprint event in response to a pressing operation detected in a fingerprint detection area of the terminal device at the lock screen interface or the off screen interface. According to the technical scheme, the terminal equipment detects the pressing operation detected by the user in the fingerprint detection area of the terminal equipment of the screen locking interface or the screen extinguishing interface through the touch sensor, and generates a fingerprint event.
In one embodiment of the present application, determining a coverage area when pressing a fingerprint detection area based on a fingerprint event comprises: the touch sensor determines a coverage area when pressing the fingerprint detection area based on the fingerprint event, and sends the fingerprint event and the coverage area to a fingerprint module of the hardware abstraction layer. In the above technical solution, the terminal device can determine the coverage area when the user presses the fingerprint detection area through the touch sensor.
In an embodiment of the present application, acquiring an ambient light value of an ambient environment of a terminal device based on a fingerprint event includes: the fingerprint module sends a fingerprint event to the fingerprint service of the application program framework layer; the fingerprint service sends a request for acquiring the ambient light to an ambient light sensor of a hardware layer according to a fingerprint event, and acquires an ambient light value sent by the ambient light sensor in response to the request for acquiring the ambient light; the fingerprint service sends the ambient light value to the fingerprint module. By the technical scheme, the fingerprint module of the terminal equipment can start interaction with the ambient light sensor according to the fingerprint event detected by the touch sensor so as to acquire the ambient light value of the surrounding environment of the terminal equipment.
In an embodiment of the present application, determining the area to be displayed of the fingerprint light spot according to the coverage area includes: and the fingerprint module determines the area to be displayed of the fingerprint light spot according to the coverage area.
In an embodiment of the present application, illuminating a pixel corresponding to a region to be displayed includes: the display driver of the kernel layer receives the data of the area to be displayed, which is sent by the fingerprint module, and performs format conversion on the data of the area to be displayed; the display driving chip of the hardware layer receives the data after format conversion sent by the display driving, and lightens the pixel points corresponding to the area to be displayed according to the data after format conversion. According to the technical scheme, the terminal equipment performs format conversion on the data of the area to be displayed through the display driver, so that the display driver chip can conveniently identify the data of the area to be displayed and lighten the pixel points corresponding to the data of the area to be displayed.
In an embodiment of the present application, drawing a layer of a region to be displayed includes: and the fingerprint service draws the layer of the area to be displayed and sends the drawn layer of the area to be displayed to a surface drawing device of the system library. In the technical scheme, the terminal equipment draws the layer of the area to be displayed through the fingerprint service so as to display the layer of the fingerprint light spot later to illuminate the finger of the user for fingerprint identification.
In one embodiment of the present application, drawing the flag bit and the mask layer includes: the fingerprint service draws the zone bit and the mask layer and sends the zone bit and the mask layer to the surface drawing device.
In an embodiment of the present application, identifying a layer of an area to be displayed according to a flag bit, synchronously displaying the layer of the area to be displayed and a mask layer, includes: the surface drawing device sends the image layer, the zone bit and the mask layer of the area to be displayed to a hardware synthesizer module of the hardware abstract layer; the hardware synthesizer module sends the layers, the zone bits and the mask layers of the region to be displayed to a display driver of the kernel layer; the display driver identifies the layer of the area to be displayed according to the zone bit, and carries out format conversion on the data of the layer of the area to be displayed and the data of the mask layer; the display driving chip of the hardware layer displays the image layer of the area to be displayed according to the data of the image layer of the area to be displayed after format conversion, and displays the mask layer according to the data of the mask layer after format conversion. According to the technical scheme, the image layer and the mask layer of the area to be displayed are drawn through the fingerprint service, and the drawn image layer and mask layer of the area to be displayed are displayed through the display driving chip to illuminate the fingers of the user for fingerprint identification, so that the problem that the whole fingerprint light spot needs to be lightened when the fingerprint identification is carried out in the prior art is solved, the user is affected in a dazzling mode when the area, which is not covered by the fingers, on the fingerprint light spot is displayed, and the problem of inconvenience in operation of the fingerprint identification of the user is solved.
In a second aspect, an embodiment of the present application provides a terminal device, including a memory and a processor: a memory for storing program instructions; and the processor is used for reading and executing the program instructions stored in the memory, and when the program instructions are executed by the processor, the terminal equipment is caused to execute the fingerprint light spot display method.
In a third aspect, an embodiment of the present application provides a computer readable storage medium, where program instructions are stored, which when executed on a terminal device, cause the terminal device to perform the above-mentioned method for displaying a fingerprint light spot.
In addition, the technical effects of the second aspect to the third aspect may be referred to in the description related to the method designed in the method section above, and will not be repeated here.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly describe the drawings in the embodiments, it being understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a lock screen interface of a mobile phone in the related art.
FIG. 2 is a schematic illustration of a highlight of a spot after a finger presses the spot of the lock screen interface.
Fig. 3 is a schematic diagram of the desktop after unlocking the lock screen interface.
Fig. 4 is a schematic diagram of a lock screen interface after fingerprint identification fails.
Fig. 5 is a software structure block diagram of a terminal device according to an embodiment of the present application.
Fig. 6 is a flowchart of a method for displaying a finger print light spot according to an embodiment of the application.
FIG. 7 is a schematic diagram of a lock screen interface according to an embodiment of the application.
Fig. 8 is a schematic diagram of a fingerprint recognition area of a user touch lock screen interface according to an embodiment of the present application.
FIG. 9 is an enlarged view of the speckle pattern in an embodiment of the application.
Fig. 10 is a schematic diagram of a region to be displayed illuminating a fingerprint light spot according to an embodiment of the present application.
FIG. 11 is a schematic illustration of a screen-rest interface according to an embodiment of the application.
FIG. 12 is a schematic diagram of a fingerprint recognition area of a user touch screen interface according to an embodiment of the present application.
Fig. 13 is a schematic diagram of a region to be displayed illuminating a fingerprint spot according to another embodiment of the present application.
Fig. 14 is a flowchart of a method for displaying a finger print spot according to another embodiment of the present application.
Fig. 15 is a flowchart of a method for displaying a finger print spot according to another embodiment of the present application.
Fig. 16 is a flowchart of a method for displaying a finger print spot according to another embodiment of the present application.
Fig. 17 is a schematic hardware structure of a terminal device according to an embodiment of the application.
Detailed Description
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In describing embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. It is to be understood that, unless otherwise indicated, a "/" means or. For example, A/B may represent A or B. The "and/or" in the present application is merely one association relationship describing the association object, indicating that three relationships may exist. For example, a and/or B may represent: a exists alone, A and B exist simultaneously, and B exists alone. "at least one" means one or more. "plurality" means two or more than two. For example, at least one of a, b or c may represent: seven cases of a, b, c, a and b, a and c, b and c, a, b and c.
In the related art, a user can unlock a fingerprint through an off-screen optical fingerprint identification technology of a terminal device (such as a mobile phone). Referring to fig. 1, after a user presses a fingerprint detection area of a display screen at a screen locking interface of a mobile phone, the display screen forms a fingerprint light spot in the fingerprint detection area (refer to fig. 2), light of the fingerprint light spot passes through a protective cover plate of the display screen to reach a finger of the user and then is reflected by the finger to generate reflected light, then a sensor (such as a photosensitive sensor) under the display screen of the mobile phone receives the reflected light of the finger of the user, a fingerprint image is obtained to realize fingerprint identification, and the screen locking interface of the display screen is unlocked to enter a desktop of the mobile phone after the fingerprint identification is qualified (refer to fig. 3); if the fingerprint identification of the mobile phone fails, the user is reminded to carry out fingerprint identification again (refer to fig. 4). However, in order to ensure the performance of fingerprint unlocking, the optical fingerprint identification scene under the screen has certain requirements on the light spot brightness of the display screen, for example, the light spot brightness of the display screen is generally required to be more than 500nit. However, when a user performs fingerprint unlocking in a dark environment using an on-screen optical fingerprint identification scene, the finger cannot cover all areas of the light spot, so that the brightness emitted by the area, which is not covered by the finger, on the light spot causes a dazzling effect on eyes of the user, and the trouble and inconvenience of fingerprint identification of the user are caused.
In order to solve the problems, the application provides a display method of fingerprint light spots. The method is applied in the terminal device 100. The terminal device 100 comprises an application processor for running an operating system. The operating system of the terminal device 100 may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the terminal device 100 is illustrated.
Fig. 5 is a software structural block diagram of the terminal device 100 provided in the embodiment of the present application. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into six layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system library, a hardware abstraction layer, a kernel layer, and a hardware layer. The application layer may include a series of application packages.
As shown in fig. 5, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 5, the application framework layer may include a fingerprint service, a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like. The application framework layer can provide an API related to fingerprint identification function for the fingerprint identification application of the application program layer and provide fingerprint service for the fingerprint identification application so as to realize the fingerprint identification function.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the terminal device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface renderers (surface renderers), surface managers (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), two-dimensional graphics engines (e.g., SGL), and the like.
A surface renderer is a drawing engine that renders graphics.
The surface manager is used to manage the display subsystem and provides a fusion of two-dimensional and three-dimensional layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
A two-dimensional graphics engine is a drawing engine that draws two-dimensional drawings.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The hardware abstraction layer is a layer between the system library and the kernel layer, and at least comprises a Fingerprint (FP) module and a hardware synthesizer (Hardware Composer, HWC) module.
The fingerprint module is used for reporting the fingerprint event to the fingerprint service of the application program framework layer.
The HWC module is a driver abstraction layer of a layer composition dedicated chip, for example, in the embodiment of the present application, the HWC module is used to connect the surface renderer and the display driver, i.e. the HWC module is a communication bridge between the surface renderer and the display driver, so that the layer rendered by the surface renderer is transmitted to the display driver for display.
The kernel layer is a layer between hardware and software. The kernel layer at least comprises a display driver, a touch driver, a fingerprint driver, an audio driver and a sensor driver.
The hardware layer at least comprises a display driving chip (Display Driver Integrated Circuit, DDIC), an ambient light sensor, a touch sensor and a display screen. The display driving chip is used for sending driving signals and data to the display panel, and image contents such as pictures, letters and the like are presented on the screen through control of brightness and color of the screen. The light sensor is used for sensing the light intensity or color of the surrounding environment. The touch sensor is used for sensing touch operation of a user on the display screen.
Referring to fig. 6, a flowchart of a method for displaying a finger print light spot according to an embodiment of the application is shown. The method is applied to a terminal device, such as terminal device 100 in fig. 1. One or more steps may be performed in the method illustrated in fig. 6, but are not limiting of the application. Furthermore, the order of the steps of the method is merely an example, and the order of the steps may be changed according to the needs of the scheme. Additional steps may be added or steps may be reduced without departing from the disclosure of the application. The method specifically comprises the following steps.
In step S601, the touch sensor of the hardware layer determines whether a fingerprint event is generated.
The terminal device will be described below by taking a mobile phone as an example to describe the method for displaying fingerprint light spots according to the embodiment of the present application. In one embodiment of the application, the fingerprint event is triggered by a user's finger pressing against a fingerprint detection area of the lock screen interface. For example, referring to fig. 7, a fingerprint detection area is displayed on a lock screen interface of a display screen of the mobile phone, and is used for receiving and identifying fingerprint information of a user. In an embodiment of the present application, the fingerprint detection area is an area of a fingerprint light spot. And if the touch sensor of the hardware layer of the mobile phone detects that the finger presses the fingerprint detection area of the screen locking interface when the mobile phone locks the screen, generating a fingerprint event. In an embodiment of the present application, if a fingerprint event is generated, step S602 is performed, and if no fingerprint event is generated, step S601 is performed again.
In step S602, based on the fingerprint event, the touch sensor determines a coverage area when the finger presses the fingerprint detection area, and sends the fingerprint event and the coverage area to the fingerprint module of the hardware abstraction layer.
Referring to fig. 8, when a finger presses an area of the display screen, the capacitance value of the capacitance circuit under the display screen in the area is changed. In an embodiment of the application, when the touch sensor of the mobile phone presses a certain area of the display screen with a finger, a coverage area when the finger presses the display screen can be determined according to an area range in which a capacitance value of a capacitance circuit under the display screen changes. For example, referring to fig. 9, when a finger presses the area a of the fingerprint spot, a change in the capacitance value of the capacitive circuit under the display screen of the area a may be caused, and the touch sensor of the mobile phone determines that the coverage area when the finger presses the display screen is the area a according to the area range of the area a in which the capacitance value of the capacitive circuit under the display screen changes. In an embodiment of the present application, the touch sensor sends the generated fingerprint event and coverage area to the touch driver, the touch driver sends the fingerprint event and coverage area to the fingerprint driver, and the fingerprint driver sends the fingerprint event and coverage area to the fingerprint module of the hardware abstraction layer. In an embodiment of the present application, the fingerprint module sending the fingerprint event to the hardware abstraction layer refers to the fingerprint module sending the signal of the fingerprint event to the hardware abstraction layer, and the fingerprint module sending the coverage area to the hardware abstraction layer refers to the fingerprint module sending the data of all pixel coordinates in the coverage area to the hardware abstraction layer.
In step S603, the fingerprint module of the hardware abstraction layer sends a fingerprint event to the application framework layer, and receives an ambient light value sent by the application framework layer in response to the fingerprint event.
In an embodiment of the present application, the fingerprint module of the hardware abstraction layer sends a fingerprint event to the fingerprint service of the application framework layer, and the fingerprint service of the application framework layer sends a request for acquiring the ambient light to the ambient light sensor according to the fingerprint event. And the ambient light sensor acquires an ambient light value of the current environment according to the request for acquiring the ambient light and sends the ambient light value to the fingerprint service. The fingerprint service sends the ambient light value to the FP module of the hardware abstraction layer.
In step S604, the fingerprint module of the hardware abstraction layer determines whether the ambient light value is smaller than a preset ambient light threshold.
In an embodiment of the present application, the preset ambient light threshold may be set according to the needs of the user. In an embodiment of the present application, the preset ambient light threshold is set to be the brightness of the normal indoor light, for example, the preset ambient light threshold may be set to be 50nit, 100nit, etc., and the brightness value is only exemplary, but the present application is not limited thereto in practical application. In another embodiment of the present application, the preset ambient light threshold may be set to a brightness value defining normal ambient light and dark ambient light, i.e. if the ambient light brightness is greater than or equal to the preset ambient light threshold, the normal environment is determined; and if the ambient light brightness is smaller than the preset ambient light threshold value, judging that the environment is dark. In another embodiment of the present application, the preset ambient light threshold value may also be a range of light brightness values. If the ambient light value is greater than or equal to the preset ambient light threshold, step S605 is executed, and if the ambient light value is less than the preset ambient light threshold, step S606 is executed.
In step S605, the fingerprint module of the hardware abstraction layer takes the default area of the fingerprint light spot as the area to be displayed of the fingerprint light spot.
In one embodiment of the application, the fingerprint spot represents an identified area of the fingerprint. The default area of the fingerprint spot represents the entire area of the fingerprint spot. After a user presses a fingerprint detection area of the display screen, the display screen can display fingerprint light spots in the fingerprint detection area to irradiate the user finger, and the mobile phone acquires and identifies information of the finger fingerprint by receiving reflected light reflected by the user finger. In an embodiment of the present application, if the ambient light value is greater than or equal to the preset ambient light threshold, it indicates that the ambient light of the current environment is sufficient, at this time, even when the user performs fingerprint identification on the lock screen interface, the finger cannot completely cover the fingerprint light spot, and the brightness of the area uncovered by the finger on the fingerprint light spot will not cause uncomfortable influence on human eyes. Therefore, when the ambient light value is larger than or equal to the preset ambient light threshold, the fingerprint module of the hardware abstraction layer takes the default area of the fingerprint light spot as the whole area of the fingerprint light spot as the area to be displayed, and at the moment, because the ambient light value is sufficient, even if the area of the fingerprint light spot which is not covered by the finger is lightened, the area of the fingerprint light spot cannot cause dazzling discomfort. After the execution of step S605, step S607 is executed.
In step S606, the fingerprint module of the hardware abstraction layer takes the coverage area as the area to be displayed of the fingerprint light spot.
In an embodiment of the present application, if the ambient light value is smaller than the preset ambient light threshold value, which indicates that the ambient light of the current environment is insufficient (for example, in a dark environment space), when the user presses the fingerprint detection area of the display screen on the lock screen interface to perform fingerprint identification, the display screen will display a fingerprint light spot on the fingerprint detection area to irradiate the finger of the user, and if the finger cannot completely cover the fingerprint light spot during pressing, the brightness of the light emitted by the area uncovered by the finger on the fingerprint light spot will cause a glaring uncomfortable effect on the person. And when the ambient light value is smaller than a preset ambient light threshold value, the fingerprint module of the hardware abstraction layer takes the coverage area when the finger presses the fingerprint detection area as the area to be displayed of the fingerprint light spot. In the embodiment of the application, the coverage area when the finger presses the fingerprint detection area is used as the area to be displayed of the fingerprint light spot, so that the brightness emitted by the fingerprint light spot can be shielded by the finger of a user when the subsequent area to be displayed of the fingerprint light spot is lightened, and the uncomfortable influence on the man-made dazzle is avoided.
In step S607, the display driver of the kernel layer receives the data of the region to be displayed sent by the fingerprint module of the hardware abstraction layer, and performs format conversion on the data of the region to be displayed.
In an embodiment of the present application, the data of the area to be displayed includes edge position data of the area to be displayed, for example, the edge position data may be a pixel coordinate range formed by all pixel coordinates of the area to be displayed. The display driver of the kernel layer converts the data of the area to be displayed into data in the instruction format of the display driver chip, for example, converts the data of the area to be displayed into hexadecimal data, so that the converted data of the area to be displayed can be identified and processed by the display driver chip.
In step S608, the display driver chip of the hardware layer receives the format-converted data sent by the display driver, and lights up the pixel point corresponding to the format-converted data.
In an embodiment of the present application, lighting the pixel corresponding to the data after format conversion means controlling the brightness of the pixel corresponding to the coordinates of each pixel in the area to be displayed to increase to a preset brightness range. The preset brightness range may be set according to a user requirement, for example, the preset brightness range is 200nit-500nit. In an embodiment of the present application, lighting a pixel corresponding to the data after format conversion includes: and (3) lighting the pixel points corresponding to the data of the to-be-displayed area of the fingerprint light spot, wherein the brightness of the pixel points of the non-to-be-displayed area on the fingerprint light spot is kept unchanged. For example, referring to fig. 10, if the area a is the area to be displayed of the fingerprint light spot, the display driving chip only lights up the corresponding pixel point of the area a, and keeps the brightness of the pixel point of the default area of the fingerprint light spot, which is not the area a.
In another embodiment of the application, the fingerprint event is triggered by the operation of a user's finger pressing against a fingerprint detection area of the rest screen interface. The screen-extinguishing interface is an interface where the terminal equipment is not luminous and the interface content is not displayed. For example, referring to fig. 11, the rest interface of the display of the mobile phone does not emit light, nor does the interface content display. The off-screen interface includes a fingerprint detection area (i.e., an area of fingerprint light spots), but the fingerprint detection area is not displayed. And if the touch sensor of the hardware layer of the mobile phone detects that the finger presses the fingerprint detection area of the screen locking interface when the finger presses the fingerprint detection area of the screen locking interface, generating a fingerprint event. Based on the fingerprint event, the touch sensor determines a coverage area when the finger presses against the fingerprint detection area. For example, referring to fig. 12, when a finger presses the fingerprint detection area, if the finger covers the area a of the fingerprint detection area, the touch sensor determines that the coverage area when the finger presses the display screen is the area a, and sends the fingerprint event and the area a to the fingerprint module of the hardware abstraction layer. And if the hard fingerprint module judges that the ambient light value is smaller than the preset ambient light threshold value, taking the area A as the area to be displayed of the fingerprint light spots. The display driver receives the data of the area A sent by the fingerprint module, and carries out format conversion on the data of the area A, and the display driver chip of the hardware layer receives the data after format conversion sent by the display driver and lightens the pixel point corresponding to the data after format conversion. For example, referring to fig. 13, after the user presses the area a of the fingerprint detection area on the screen interface of fig. 12, the corresponding pixel point of the area a is turned on for the user to perform fingerprint detection.
When the ambient light value is smaller than the preset ambient light threshold value, namely, when the brightness of the ambient light is in a scene of dark environment, and when a finger presses a fingerprint detection area to carry out fingerprint identification, only the coverage area on the fingerprint spot when the finger presses the fingerprint spot is lightened through a display driving chip C so as to illuminate the finger of a user to carry out fingerprint identification, and the brightness of the part, which is not covered by the finger, in the fingerprint detection area is unchanged, so that the accuracy of fingerprint identification can be ensured, light leakage and dazzling can be avoided, the problem that the whole fingerprint spot is required to be lightened when the fingerprint detection area is lightened when the fingerprint spot is not covered by the finger in the prior art is solved, so that the dazzling influence is caused to the user when the fingerprint spot is lightened, and the user experience is improved.
Referring to fig. 14, a flowchart of a method for displaying a finger print light spot according to another embodiment of the present application is shown. One or more steps may be performed in the method illustrated in fig. 14, but are not limiting of the application. Furthermore, the order of the steps of the method is merely an example, and the order of the steps may be changed according to the needs of the scheme. Additional steps may be added or steps may be reduced without departing from the disclosure of the application. The method specifically comprises the following steps.
In step S1401, the touch sensor of the hardware layer determines whether a fingerprint event is generated.
And if the touch sensor of the mobile phone detects that the finger presses the area where the fingerprint light spot of the screen locking interface is located when the mobile phone locks the screen, determining to generate a fingerprint event. In an embodiment of the present application, if a fingerprint event is generated, step S1402 is executed, and if a fingerprint event is not generated, step S1401 is executed again.
Step S1402, based on the fingerprint event, the touch sensor determines a coverage area when the finger presses the fingerprint detection area, and sends the fingerprint event and the coverage area to the fingerprint module of the hardware abstraction layer.
When a finger presses a fingerprint spot of a display screen, the touch sensor of the mobile phone determines a coverage area on the fingerprint spot when the finger presses the fingerprint spot according to the area range of the change of the capacitance value of the capacitance circuit under the display screen.
In step S1403, the fingerprint module of the hardware abstraction layer receives the fingerprint event and the coverage area sent by the touch sensor, and sends the fingerprint event and the coverage area to the fingerprint service of the application framework layer.
In an embodiment of the present application, the touch sensor sends the generated fingerprint event and coverage area to the touch driver, the touch driver sends the fingerprint event and coverage area to the fingerprint driver, and the fingerprint driver sends the fingerprint event and coverage area to the fingerprint module of the hardware abstraction layer. In an embodiment of the present application, the fingerprint module of the hardware abstraction layer sends the acquired fingerprint event and the coverage area to the fingerprint service of the application framework layer, so that the fingerprint service acquires the ambient light.
In step S1404, the fingerprint service obtains an ambient light value according to the fingerprint event.
In one embodiment of the application, the fingerprint service of the application framework layer sends a request to the ambient light sensor to acquire ambient light based on a fingerprint event. The ambient light sensor acquires an ambient light value of the current environment according to the request for acquiring the ambient light, and sends the ambient light value to the fingerprint service of the application framework layer. The fingerprint service of the application framework layer obtains the ambient light value sent by the ambient light sensor.
In step S1405, the fingerprint service of the application framework layer determines whether the ambient light value is smaller than a preset ambient light threshold.
In an embodiment of the present application, if the ambient light value is greater than or equal to the preset ambient light threshold, step S1406 is performed, and if the ambient light value is less than the preset ambient light threshold, step S1407 is performed.
In step S1406, the fingerprint service of the application framework layer takes the default area of the fingerprint light spot as the area to be displayed of the fingerprint light spot, draws the layer of the area to be displayed, and sends the layer of the area to be displayed after drawing to the surface drawing device.
In an embodiment of the application, the default area of the fingerprint spot represents the entire area of the fingerprint spot. The fingerprint service of the application program framework layer takes all areas of the fingerprint light spots as areas to be displayed of the fingerprint light spots, draws the layers of the areas to be displayed, and sends the drawn layers of the areas to be displayed to the surface drawing device.
In an embodiment of the present application, if the ambient light value is greater than or equal to the preset ambient light threshold, the ambient light indicating the current environment is sufficient, and at this time, even when the user presses the fingerprint detection area of the display screen on the lock screen interface to perform fingerprint identification, the finger cannot completely cover the fingerprint light spot, and the brightness of the area, which is not covered by the finger, on the fingerprint light spot will not cause uncomfortable influence on human eyes. Therefore, when the ambient light value is greater than or equal to the preset ambient light threshold, the fingerprint service of the application framework layer takes the default area of the fingerprint light spot as the whole area of the fingerprint light spot as the area to be displayed, draws the layer of the area to be displayed, and sends the drawn layer of the area to be displayed to the surface drawing device so as to display the layer of the area to be displayed. At this time, since the ambient light value is sufficient, even the image layer of the region uncovered by the finger on the fingerprint spot does not cause uncomfortable influence on human eyes when displayed. After the execution of step S1406, step S1408 is executed.
In step S1407, the fingerprint service of the application framework layer takes the coverage area as the area to be displayed of the fingerprint light spot, draws the layer of the area to be displayed, and sends the layer of the area to be displayed after drawing to the surface drawing device.
If the ambient light value is smaller than the preset ambient light threshold value, the ambient light of the current environment is insufficient, and when a user presses a fingerprint detection area of the display screen on the screen locking interface to conduct fingerprint identification, if a finger cannot completely cover a fingerprint light spot, discomfort is caused to eyes when a layer of an area, which is not covered by the finger, on the fingerprint light spot is displayed. In an embodiment of the application, when the ambient light value is smaller than the preset ambient light threshold, the fingerprint service of the application program framework layer takes the coverage area of the fingerprint light spot as the area to be displayed of the fingerprint light spot when the fingerprint light spot is pressed by the finger, draws the layer of the area to be displayed, and sends the drawn layer of the area to be displayed to the surface drawing device so as to display the layer of the area to be displayed, thereby avoiding discomfort to human eyes when the layer of the area, which is not covered by the finger, on the fingerprint light spot is displayed. After the execution of step S1407, step S1408 is executed.
In step S1408, the fingerprint service of the application framework layer draws a flag bit and a mask layer, and sends the flag bit and the mask layer to the surface renderer, where the flag bit is used to indicate the layer of the area to be displayed of the fingerprint light spot.
In an embodiment of the present application, the flag bit may be a character string composed of numerals and letters, and is used to indicate the identity of the layer of the area to be displayed. In an embodiment of the present application, the mask layer is used for covering other areas of the display screen except for the layer of the area to be displayed, and is used for shielding the light emitted by the display screen, so as to avoid the damage of the high brightness light to the human eyes.
In step S1409, the surface renderer sends the layer, the flag bit, and the mask layer of the region to be displayed to the HWC module.
In step S1410, the HWC module sends the layer, the flag bit, and the mask layer of the region to be displayed to the display driver of the kernel layer.
In step S1411, the display driver identifies the layer of the region to be displayed according to the flag bit, and performs format conversion on the data of the layer of the region to be displayed and the data of the mask layer.
In an embodiment of the present application, the display driver of the kernel layer converts the data of the image layer and the data of the mask layer of the region to be displayed into the data of the instruction format of the corresponding display driver chip, so that the converted image layer data and the data of the mask layer of the region to be displayed can be identified and processed by the display driver chip. In an embodiment of the application, the data of the image layer of the area to be displayed after format conversion and the data of the mask layer are synchronously transmitted to the display driving chip, so that the image layer of the area to be displayed and the mask layer are synchronously displayed during display.
In step S1412, the display driver chip displays the layer of the region to be displayed according to the data of the layer of the region to be displayed after the format conversion, and displays the mask layer according to the data of the mask layer after the format conversion.
In an embodiment of the present application, when the display driver chip receives the data of the layer and the data of the mask layer of the region to be displayed after format conversion sent by the display driver, the layer and the mask layer of the region to be displayed are synchronously displayed. In an embodiment of the present application, the data of the layer of the area to be displayed is display content data for drawing the layer for displaying the fingerprint light spot, and the data of the mask layer is display content data for drawing the mask layer for display.
When the ambient light value is smaller than the preset ambient light threshold value, namely in a scene with darker ambient light brightness, when a finger presses the fingerprint detection area to perform fingerprint identification, only the coverage area of the finger on the fingerprint light spot is used as a to-be-displayed area of the fingerprint light spot, a layer of the to-be-displayed area is drawn, and the drawn layer is displayed through the display driving chip to illuminate the finger of the user to perform fingerprint identification, so that the problem that the whole fingerprint light spot needs to be lighted when the fingerprint identification is performed in the prior art, the user is affected in a dazzling way when the area, which is not covered by the finger, on the fingerprint light spot is displayed is solved, and the problem of inconvenience in operation of the user fingerprint identification is solved.
Referring to fig. 15, a flowchart of a method for displaying a finger print light spot according to another embodiment of the present application is shown. One or more steps may be performed in the method illustrated in fig. 15, but are not limiting of the application. Furthermore, the order of the steps of the method is merely an example, and the order of the steps may be changed according to the needs of the scheme. Additional steps may be added or steps may be reduced without departing from the disclosure of the application. The method specifically comprises the following steps.
In step S1501, the touch sensor of the hardware layer determines whether a fingerprint event is generated. In an embodiment of the present application, if a fingerprint event is generated, step S1502 is performed, and if no fingerprint event is generated, step S1501 is performed again.
In step S1502, based on the fingerprint event, the touch sensor determines a coverage area when the finger presses the fingerprint detection area, and sends the fingerprint event and the coverage area to the fingerprint module of the hardware abstraction layer.
In step S1503, the fingerprint module of the hardware abstraction layer sends a fingerprint event to the application framework layer and receives an ambient light value sent by the application framework layer in response to the fingerprint event.
In step S1504, the fingerprint module of the hardware abstraction layer determines whether the ambient light value is smaller than a preset ambient light threshold.
In an embodiment of the present application, if the ambient light value is greater than or equal to the preset ambient light threshold, step S1505 is performed, and if the ambient light value is less than the preset ambient light threshold, step S1506 is performed.
In step S1505, the fingerprint module of the hardware abstraction layer takes the default area of the fingerprint light spot as the area to be displayed of the fingerprint light spot.
In an embodiment of the application, the default area of the fingerprint spot represents the entire area of the fingerprint spot. After the execution of step S1505, step S1507 is executed.
The implementation contents of steps S1501 to S1505 may refer to the implementation contents of steps S601 to S605, respectively, and the present application will not be repeated.
In step S1506, the fingerprint module of the hardware abstraction layer determines the area to be displayed of the fingerprint light spot according to the position of the coverage area in the fingerprint light spot.
In an embodiment of the present application, a plurality of preset light spot areas are preset in the mobile phone, and each preset light spot area is a partial area of the fingerprint light spot. Each of the predetermined spot areas has a predetermined shape and a predetermined size, for example, the predetermined shape may be an elliptical shape or a circular shape. Every two preset spot areas may or may not overlap. The fingerprint module of the hardware abstraction layer determines an overlapping area of the coverage area and each preset light spot area, and takes the preset light spot area of the largest overlapping area as a to-be-displayed area of the fingerprint light spot.
In step S1507, the display driver of the kernel layer receives the data of the region to be displayed sent by the fingerprint module of the hardware abstraction layer, and performs format conversion on the data of the region to be displayed.
In an embodiment of the present application, the data of the area to be displayed includes edge position data of the area to be displayed, for example, the edge position data may be a pixel coordinate range formed by all pixel coordinates of the area to be displayed. In an embodiment of the present application, the display driver of the kernel layer converts the data of the region to be displayed into the data in the instruction format of the display driver chip, so that the converted data of the region to be displayed can be identified and processed by the display driver chip.
In step S1508, the display driver chip of the hardware layer receives the format-converted data sent by the display driver, and lights up the pixel point corresponding to the format-converted data.
The implementation contents of steps S1507 to S1508 may refer to the implementation contents of steps S607 to S608, respectively, and the present application will not be repeated.
When the ambient light value is smaller than the preset ambient light threshold value, namely in a scene with darker ambient light brightness, when the fingerprint detection area is pressed by a finger to carry out fingerprint identification, the embodiment of the application determines the overlapping area of the coverage area on the fingerprint light spot and each preset light spot area when the fingerprint light spot is pressed by the finger, takes the preset light spot area of the largest overlapping area as the area to be displayed of the fingerprint light spot, and lightens the whole fingerprint light spot through the display driving chip, thereby solving the problem that the prior art needs to lighten the whole fingerprint light spot when the fingerprint identification is carried out, causing dazzling influence on a user when the area which is not covered by the finger on the fingerprint light spot is highlighted, and solving the problem of inconvenient operation of the fingerprint identification of the user. The terminal device 100 according to the embodiment of the present application will be described below.
Referring to fig. 16, a flowchart of a method for displaying a finger print light spot according to another embodiment of the present application is shown. The method is applied to the terminal equipment and specifically comprises the following steps.
In step S1601, a fingerprint event is generated in response to a pressing operation detected in a fingerprint detection area of a terminal device at a lock screen interface.
Step S1602, based on the fingerprint event, determines a coverage area when the fingerprint detection area is pressed.
In step S1603, an ambient light value of the surrounding environment of the terminal device is acquired based on the fingerprint event.
In step S1604, if the ambient light value is smaller than the preset ambient light threshold, the area to be displayed of the fingerprint light spot is determined according to the coverage area.
In an embodiment of the present application, the implementation contents of steps S1601-S1604 may refer to the technical contents of steps S601-S606 of fig. 6, or refer to the technical contents of steps S1401-S1407 of fig. 14, or refer to the technical contents of steps S1501-S1506 of fig. 15, and the description thereof will not be repeated here.
Step S1605, lighting up the pixel point corresponding to the region to be displayed; or drawing a layer of the area to be displayed; drawing a zone bit and a mask layer, wherein the zone bit is used for indicating a layer of a region to be displayed of a fingerprint light spot; and identifying the layer of the area to be displayed according to the zone bit, and synchronously displaying the layer of the area to be displayed and the mask layer.
In an embodiment of the present application, the implementation content of "lighting the pixel corresponding to the area to be displayed" in step S1605 may refer to the technical content of steps S607-S608 of fig. 6, or refer to the technical content of steps S1507-S1508 of fig. 15. In one embodiment of the present application, in step S1605, "draw a flag bit and mask layer", wherein the flag bit is used to indicate the layer of the area to be displayed of the fingerprint light spot; the specific implementation content of the synchronous display of the layer of the region to be displayed and the mask layer "may refer to the technical content of steps S1408-S1412 in fig. 14, and the description thereof will not be repeated here.
Referring to fig. 17, a hardware configuration of a terminal device 100 according to an embodiment of the present application is shown. In this embodiment, the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 130, a display screen 140, and a sensor module 150. Wherein the sensor module 150 comprises a touch sensor 151 and an ambient light sensor 152.
It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the application, terminal device 100 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics 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 processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the interfacing relationship between the modules illustrated in the embodiment of the present application is only illustrative, and does not constitute a structural limitation of the terminal device 100. In other embodiments of the present application, the terminal device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The terminal device 100 implements display functions through a GPU, a display screen 140, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 140 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 140 is used to display images, videos, and the like. The display screen 140 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, terminal device 100 may include 1 or N displays 140, N being a positive integer greater than 1.
The internal memory 130 may include one or more random access memories (random access memory, RAM) and one or more non-volatile memories (NVM).
The random access memory may include a static random-access memory (SRAM), a dynamic random-access memory (dynamic random access memory, DRAM), a synchronous dynamic random-access memory (synchronous dynamic random access memory, SDRAM), a double data rate synchronous dynamic random-access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, such as fifth generation DDR SDRAM is commonly referred to as DDR5 SDRAM), etc.;
The nonvolatile memory may include a disk storage device, a flash memory (flash memory).
The FLASH memory may include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. divided according to an operation principle, may include single-level memory cells (SLC), multi-level memory cells (MLC), triple-level memory cells (TLC), quad-level memory cells (QLC), etc. divided according to a storage specification, may include universal FLASH memory (english: universal FLASH storage, UFS), embedded multimedia memory cards (embedded multi media Card, eMMC), etc. divided according to a storage specification.
The random access memory may be read directly from and written to by the processor 110, may be used to store executable programs (e.g., machine instructions) for an operating system or other on-the-fly programs, may also be used to store data for users and applications, and the like.
The nonvolatile memory may store executable programs, store data of users and applications, and the like, and may be loaded into the random access memory in advance for the processor 110 to directly read and write.
The external memory interface 120 may be used to connect an external nonvolatile memory to realize expansion of the memory capability of the terminal device 100. The external nonvolatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and video are stored in an external nonvolatile memory.
The internal memory 130 or the external memory interface 120 is used to store one or more computer programs. One or more computer programs are configured to be executed by the processor 110. The one or more computer programs include a plurality of instructions that, when executed by the processor 110, implement the method for displaying a fingerprint light spot on the terminal device 100 in the above embodiment, so as to implement the function of displaying a fingerprint light spot of the terminal device 100.
The touch sensor 151 is also referred to as a "touch device". The touch sensor may be disposed on the display screen 140, and the touch sensor 151 and the display screen 140 form a touch screen, which is also called a "touch screen". The touch sensor 151 is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display screen 140. In other embodiments, the touch sensor 151 may be disposed on the surface of the terminal device 100 at a different location than the display 140.
The ambient light sensor 152 is used to sense ambient light level. The terminal device 100 may adaptively adjust the brightness of the display screen 140 according to the perceived ambient light level. The ambient light sensor 152 may also be used to automatically adjust white balance during photographing. The present embodiment also provides a computer storage medium having stored therein computer instructions which, when run on the terminal device 100, cause the terminal device 100 to perform the above-described related method steps to implement the method for displaying fingerprint spots in the above-described embodiments.
The present embodiment also provides a computer program product which, when run on a computer, causes the computer to perform the above-mentioned related steps to implement the method for displaying fingerprint spots in the above-mentioned embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be embodied as a chip, component or module, which may include a processor and a memory coupled to each other; the memory is used for storing computer-executed instructions, and when the device is operated, the processor can execute the computer-executed instructions stored in the memory, so that the chip executes the fingerprint light spot display method in each method embodiment.
The terminal device 100, the computer storage medium, the computer program product, or the chip provided in this embodiment are used to execute the corresponding method provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding method provided above, and will not be described herein.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated unit may be stored in a readable storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present application and not for limiting the same, and although the present application has been described in detail with reference to the above preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made thereto without departing from the spirit and scope of the technical solution of the present application.

Claims (21)

1. The display method of the fingerprint light spot is applied to terminal equipment and is characterized by comprising the following steps:
generating a fingerprint event in response to a pressing operation detected in a fingerprint detection area of a terminal device at a screen locking interface or a screen extinguishing interface;
determining a coverage area when the fingerprint detection area is pressed based on the fingerprint event;
acquiring an ambient light value of the ambient environment of the terminal equipment based on the fingerprint event;
if the ambient light value is smaller than a preset ambient light threshold value, determining a region to be displayed of the fingerprint light spot according to the coverage region;
the pixel points corresponding to the area to be displayed are lightened; or (b)
Drawing a layer of the area to be displayed; drawing a zone bit and a mask layer, wherein the zone bit is used for indicating a layer of a region to be displayed of the fingerprint light spot; and identifying the layer of the area to be displayed according to the zone bit, and synchronously displaying the layer of the area to be displayed and the mask layer.
2. The method for displaying a fingerprint light spot according to claim 1, wherein determining the area to be displayed of the fingerprint light spot according to the coverage area comprises:
and determining the data of the area to be displayed according to the coverage area, wherein the data of the area to be displayed comprises the edge position data of the area to be displayed.
3. The method for displaying a fingerprint light spot according to claim 2, wherein the illuminating the pixel point corresponding to the area to be displayed comprises:
and carrying out format conversion on the data of the area to be displayed, and enabling the display driving chip of the terminal equipment to light the pixel points corresponding to the data of the area to be displayed after format conversion.
4. The method for displaying a fingerprint light spot according to claim 3, wherein the display driving chip of the terminal device lights up a pixel point corresponding to the data of the area to be displayed after the format conversion, which includes:
and the display driving chip increases the brightness of the pixel point corresponding to the data of the area to be displayed after the format conversion to a preset brightness range.
5. A method of displaying a fingerprint spot as claimed in claim 3, wherein said format converting the data of the area to be displayed comprises:
and converting the data of the area to be displayed into data in a display driving chip instruction format.
6. The method for displaying a fingerprint light spot according to claim 1, wherein determining the area to be displayed of the fingerprint light spot according to the coverage area comprises:
and taking the coverage area as a region to be displayed of the fingerprint light spot.
7. The method for displaying a fingerprint light spot according to claim 1, wherein determining the area to be displayed of the fingerprint light spot according to the coverage area comprises:
and determining the area to be displayed of the fingerprint light spot according to the position of the coverage area in the fingerprint light spot.
8. The method for displaying a fingerprint spot according to claim 7, wherein determining the area to be displayed of the fingerprint spot according to the position of the coverage area in the fingerprint spot comprises:
and determining an overlapping area of the coverage area and each preset light spot area in a plurality of preset light spot areas, and taking the preset light spot area corresponding to the largest overlapping area as a to-be-displayed area of the fingerprint light spot, wherein each preset light spot area is a partial area of the fingerprint light spot.
9. The method for displaying a fingerprint spot according to claim 1, wherein the method further comprises:
and if the ambient light value is greater than or equal to the preset ambient light threshold value, taking the default area of the fingerprint light spot as the area to be displayed of the fingerprint light spot.
10. The method of claim 9, wherein the default area is an entire area of the fingerprint spot.
11. The method for displaying a fingerprint light spot according to claim 1, wherein the acquiring an ambient light value of an ambient environment of the terminal device based on the fingerprint event comprises:
and sending a request for acquiring the ambient light to an ambient light sensor of the terminal equipment according to the fingerprint event, and acquiring the ambient light value sent by the ambient light sensor in response to the request for acquiring the ambient light.
12. The method of claim 1, wherein the terminal device comprises an application processor, the application processor is configured to run an operating system, the operating system comprises an application framework layer, a system library, a hardware abstraction layer, a kernel layer, and a hardware layer,
the generating a fingerprint event in response to a pressing operation detected in a fingerprint detection area of a terminal device at a lock screen interface or a screen-off interface comprises:
and the touch sensor of the hardware layer responds to the pressing operation detected in the fingerprint detection area of the terminal equipment at the screen locking interface or the screen extinguishing interface, and generates a fingerprint event.
13. The method for displaying a fingerprint spot according to claim 12, wherein the determining a coverage area when the fingerprint detection area is pressed based on the fingerprint event comprises:
The touch sensor determines a coverage area when the fingerprint detection area is pressed based on the fingerprint event, and sends the fingerprint event and the coverage area to a fingerprint module of the hardware abstraction layer.
14. The method for displaying a fingerprint light spot according to claim 13, wherein the acquiring an ambient light value of an ambient environment of the terminal device based on the fingerprint event comprises:
the fingerprint module sends the fingerprint event to fingerprint service of the application program framework layer;
the fingerprint service sends a request for acquiring ambient light to an ambient light sensor of the hardware layer according to the fingerprint event, and acquires the ambient light value sent by the ambient light sensor in response to the request for acquiring ambient light;
the fingerprint service sends the ambient light value to the fingerprint module.
15. The method for displaying a fingerprint spot according to claim 14, wherein determining the area to be displayed of the fingerprint spot according to the coverage area comprises:
and the fingerprint module determines the area to be displayed of the fingerprint light spots according to the coverage area.
16. The method for displaying a fingerprint light spot according to claim 15, wherein the illuminating the pixel point corresponding to the area to be displayed comprises:
The display driver of the kernel layer receives the data of the area to be displayed, which is sent by the fingerprint module, and performs format conversion on the data of the area to be displayed;
and the display driving chip of the hardware layer receives the format-converted data sent by the display driving and lightens the pixel points corresponding to the region to be displayed according to the format-converted data.
17. The method for displaying a fingerprint spot according to claim 15, wherein the drawing the layer of the area to be displayed includes:
and the fingerprint service draws the layer of the area to be displayed and sends the drawn layer of the area to be displayed to a surface drawing device of the system library.
18. The method for displaying a fingerprint spot according to claim 17, wherein the drawing the flag bit and the mask layer includes:
and the fingerprint service draws the zone bit and the mask layer and sends the zone bit and the mask layer to the surface drawing device.
19. The method for displaying a fingerprint spot according to claim 17, wherein the identifying the layer of the area to be displayed according to the flag bit, and displaying the layer of the area to be displayed and the mask layer synchronously, includes:
The surface renderer sends the layer of the region to be displayed, the zone bit and the mask layer to a hardware synthesizer module of the hardware abstract layer;
the hardware synthesizer module sends the layer of the region to be displayed, the zone bit and the mask layer to a display driver of the kernel layer;
the display driver identifies the layer of the region to be displayed according to the zone bit, and carries out format conversion on the data of the layer of the region to be displayed and the data of the mask layer;
the display driving chip of the hardware layer displays the layer of the area to be displayed according to the data of the layer of the area to be displayed after format conversion, and displays the mask layer according to the data of the mask layer after format conversion.
20. A terminal device, the terminal device comprising a memory and a processor:
the memory is used for storing program instructions;
the processor configured to read and execute the program instructions stored in the memory, which when executed by the processor, cause the terminal device to perform the method of displaying a fingerprint spot according to any one of claims 1 to 19.
21. A computer readable storage medium, characterized in that the computer readable storage medium stores program instructions, which when run on a terminal device, cause the terminal device to perform the method of displaying a fingerprint spot according to any of claims 1 to 19.
CN202311276076.2A 2023-09-29 2023-09-29 Fingerprint light spot display method, terminal equipment and storage medium Pending CN117075791A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311276076.2A CN117075791A (en) 2023-09-29 2023-09-29 Fingerprint light spot display method, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311276076.2A CN117075791A (en) 2023-09-29 2023-09-29 Fingerprint light spot display method, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117075791A true CN117075791A (en) 2023-11-17

Family

ID=88708277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311276076.2A Pending CN117075791A (en) 2023-09-29 2023-09-29 Fingerprint light spot display method, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117075791A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108520241A (en) * 2018-04-11 2018-09-11 深圳市万普拉斯科技有限公司 Fingerprint collecting method, device based on optical finger print technology and user terminal
US20180322322A1 (en) * 2017-05-03 2018-11-08 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Optical fingerprint verification method and mobile terminal
CN111460869A (en) * 2019-01-18 2020-07-28 北京小米移动软件有限公司 Fingerprint acquisition method and device
CN111476071A (en) * 2019-01-24 2020-07-31 北京小米移动软件有限公司 Fingerprint identification method and device
CN111626214A (en) * 2020-05-27 2020-09-04 深圳市汇顶科技股份有限公司 Under-screen fingerprint identification device and system, fingerprint identification method and electronic device
CN113778274A (en) * 2021-06-15 2021-12-10 荣耀终端有限公司 Light spot display method and device
CN114863494A (en) * 2021-01-20 2022-08-05 华为技术有限公司 Screen brightness adjusting method and device and terminal equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180322322A1 (en) * 2017-05-03 2018-11-08 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Optical fingerprint verification method and mobile terminal
CN108520241A (en) * 2018-04-11 2018-09-11 深圳市万普拉斯科技有限公司 Fingerprint collecting method, device based on optical finger print technology and user terminal
CN111460869A (en) * 2019-01-18 2020-07-28 北京小米移动软件有限公司 Fingerprint acquisition method and device
CN111476071A (en) * 2019-01-24 2020-07-31 北京小米移动软件有限公司 Fingerprint identification method and device
CN111626214A (en) * 2020-05-27 2020-09-04 深圳市汇顶科技股份有限公司 Under-screen fingerprint identification device and system, fingerprint identification method and electronic device
CN114863494A (en) * 2021-01-20 2022-08-05 华为技术有限公司 Screen brightness adjusting method and device and terminal equipment
CN113778274A (en) * 2021-06-15 2021-12-10 荣耀终端有限公司 Light spot display method and device

Similar Documents

Publication Publication Date Title
EP3971818A1 (en) Picture processing method and apparatus
CN113778273B (en) Light spot display method, electronic device and computer readable storage medium
CN116469138B (en) Light spot display method and device
CN114995676A (en) Fingerprint false touch prevention method, graphical interface and electronic equipment
CN115017534A (en) File processing authority control method and device and storage medium
WO2023005376A1 (en) Light spot display method, electronic device, and computer readable storage medium
CN114780012B (en) Display method and related device of screen locking wallpaper of electronic equipment
CN117075791A (en) Fingerprint light spot display method, terminal equipment and storage medium
WO2021253922A1 (en) Font switching method and electronic device
CN115550631B (en) Image sensor evaluation method, electronic device and storage medium
CN113805746B (en) Method and device for displaying cursor
US20240221419A1 (en) Light spot display method and apparatus
CN116680133B (en) Black screen detection method and electronic equipment
EP4322144A1 (en) Display screen brightness adjustment method, electronic device and storage medium
CN117079596B (en) Screen brightness adjusting method, terminal equipment and storage medium
CN117129085B (en) Ambient light detection method, electronic device and readable storage medium
WO2023273828A1 (en) Interface management method and apparatus, and device and readable storage medium
CN116672707B (en) Method and electronic device for generating game prediction frame
EP4258251A1 (en) Frame data display method, electronic device and storage medium
CN117093175A (en) Display method, user interface and related device
CN116418910A (en) Method, device, equipment and storage medium for deleting list entry
CN117115276A (en) Picture processing method, device and storage medium
CN118276722A (en) Window display method and electronic device
CN115033138A (en) Icon arrangement method, electronic device and readable medium
CN116450066A (en) Split screen display method, electronic device and readable storage medium

Legal Events

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