CN117711032A - Fingerprint identification method and electronic equipment - Google Patents

Fingerprint identification method and electronic equipment Download PDF

Info

Publication number
CN117711032A
CN117711032A CN202311050684.1A CN202311050684A CN117711032A CN 117711032 A CN117711032 A CN 117711032A CN 202311050684 A CN202311050684 A CN 202311050684A CN 117711032 A CN117711032 A CN 117711032A
Authority
CN
China
Prior art keywords
fingerprint
template
similarity
electronic device
adjacent
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
CN202311050684.1A
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 CN202311050684.1A priority Critical patent/CN117711032A/en
Publication of CN117711032A publication Critical patent/CN117711032A/en
Pending legal-status Critical Current

Links

Abstract

The application provides a fingerprint identification method and electronic equipment, wherein the method comprises the following steps: the electronic equipment performs multi-template matching on fingerprint images corresponding to fingerprints of the user, wherein the similarity among the multi-templates meets the preset condition, so that the accuracy of fingerprint identification can be effectively improved.

Description

Fingerprint identification method and electronic equipment
Technical Field
The application relates to the field of terminal equipment, in particular to a fingerprint identification method and electronic equipment.
Background
Currently, unlocking modes of the terminal device include, but are not limited to: fingerprint unlocking, password unlocking, face unlocking, and the like. In the scenario of unlocking a terminal device through a fingerprint, a user needs to enter the fingerprint in advance, so that the mobile phone is unlocked under the condition that the fingerprint of the finger used in unlocking is matched with the entered fingerprint. The current unlocking mode is to match the finger fingerprint of the user with the pre-input fingerprint template, however, the quality of the finger fingerprint of the user acquired by the electronic device may be low, which may cause fingerprint identification failure.
Disclosure of Invention
The application provides a fingerprint identification method and electronic equipment. In the method, the electronic equipment can match the fingerprint of the user with a plurality of fingerprint templates, so that the accuracy of fingerprint identification is improved.
In a first aspect, the present application provides a fingerprint identification method. The method comprises the following steps: the electronic device displays a fingerprint sensing area on a display screen in response to a received first user operation. The electronic device acquires a fingerprint image of a finger detected by the fingerprint sensor overlying the fingerprint sensing area. The electronic equipment performs similarity matching on the fingerprint image and the first fingerprint template and at least one adjacent template of the first fingerprint template; wherein a similarity between the first fingerprint template and each of at least one neighbor template of the first fingerprint template is greater than a first threshold. The electronic device obtains a first similarity value of the fingerprint image and the first fingerprint template and at least one second similarity value of the fingerprint image and at least one adjacent template of the first fingerprint template. If the first similarity value and at least one second similarity value meet the similarity condition, the electronic device determines that the fingerprint images corresponding to the fingers are successfully matched, and unlocks the electronic device. Thus, the electronic equipment matches the fingerprints of the user with the stored fingerprint templates, and the success rate of fingerprint identification can be effectively improved.
In one possible implementation, before displaying the fingerprint sensing area on the display screen in response to a received user operation, the method further comprises: and the electronic equipment responds to the received first user operation and displays the newly-built fingerprint interface. The electronic equipment acquires a plurality of fingerprint templates, wherein the fingerprint templates are detected by the fingerprint sensor and cover the fingerprint sensing area, and the fingerprint templates comprise first fingerprint templates. And the electronic equipment performs similarity matching on the first fingerprint template and other fingerprint templates, and determines that the template with the similarity larger than a first threshold value with the first fingerprint template is an adjacent template of the first fingerprint template. The electronic device stores a correspondence between the first fingerprint template and at least one neighboring template of the first fingerprint template. And the electronic equipment performs similarity matching on the second fingerprint template and other fingerprint templates, and determines that the template with the similarity larger than the first threshold value with the second fingerprint template is an adjacent template of the second fingerprint template. The electronic equipment stores the corresponding relation between the second fingerprint template and at least one adjacent template of the second fingerprint template. Thus, the electronic device can search adjacent templates corresponding to each template based on the similarity among the templates, and store the corresponding relationship. Correspondingly, in the fingerprint identification process, the electronic equipment identifies the fingerprints based on a plurality of templates with higher similarity, so that the success rate of fingerprint matching is improved.
In one possible implementation, similarity matching the fingerprint image with the first fingerprint template and at least one neighboring template of the first fingerprint template includes: the electronic equipment acquires a prestored first fingerprint template and at least one adjacent template of the first fingerprint template based on the corresponding relation between the first fingerprint template and the at least one adjacent template of the first fingerprint template. Therefore, the electronic equipment can quickly find the corresponding adjacent template based on the corresponding relation in the fingerprint identification process by storing the corresponding relation between the fingerprint template and the adjacent template in advance.
In one possible implementation, before similarity matching the fingerprint image with the first fingerprint template and at least one neighboring template of the first fingerprint template, the method further includes: the electronic device performs similarity matching on the fingerprint image and at least one adjacent template of the second fingerprint template and the second fingerprint template. The electronic device obtains a third similarity value of the fingerprint image and the second fingerprint template and at least one fourth similarity value of the fingerprint image and at least one adjacent template of the second fingerprint template. And the third similarity value and at least one fourth similarity value of the electronic equipment do not meet the similarity condition, and the fingerprint image is continuously subjected to similarity matching with the first fingerprint template and at least one adjacent template of the first fingerprint template. Thus, the electronic equipment can match the templates in the template library and the corresponding adjacent templates one by one so as to determine whether the fingerprints of the users are successfully matched.
In one possible implementation, the similarity condition includes at least one of: the sum of the similarity values is larger than a third threshold value; or, each similarity value is greater than a corresponding preset threshold. Therefore, even if the similarity between the fingerprint image of the user and each template does not reach a certain threshold value, the user can judge whether the fingerprint of the user is successfully matched in a fusion mode through the similarity, so that the success rate and accuracy of fingerprint identification are improved.
In a second aspect, the present application provides an electronic device, comprising: one or more processors, memory; and one or more computer programs, wherein the one or more computer programs are stored on the memory, which when executed by the one or more processors, cause the electronic device to perform the steps of: responding to the received first user operation, and displaying a fingerprint sensing area on a display screen; acquiring a fingerprint image of a finger detected by a fingerprint sensor when the finger is covered on a fingerprint sensing area; matching the fingerprint image with the first fingerprint template and at least one adjacent template of the first fingerprint template in a similarity mode; wherein a similarity between the first fingerprint template and each of at least one neighbor template of the first fingerprint template is greater than a first threshold; acquiring a first similarity value of the fingerprint image and a first fingerprint template and at least one second similarity value of the fingerprint image and at least one adjacent template of the first fingerprint template; if the first similarity value and at least one second similarity value meet the similarity condition, determining that the fingerprint images corresponding to the fingers are successfully matched, and unlocking the electronic equipment.
In one possible implementation, the computer program, when executed by one or more processors, causes the electronic device to perform the steps of: responding to the received first user operation, and displaying a newly built fingerprint interface; acquiring a plurality of fingerprint templates, including a first fingerprint template, of the fingerprint sensing area covered by the finger detected by the fingerprint sensor; matching the similarity between the first fingerprint template and other fingerprint templates, and determining that the template with the similarity larger than a first threshold value is a neighboring template of the first fingerprint template; storing the corresponding relation between the first fingerprint template and at least one adjacent template of the first fingerprint template; matching the similarity between the second fingerprint template and other fingerprint templates, and determining that the template with the similarity larger than the first threshold value is the adjacent template of the second fingerprint template; and storing the corresponding relation between the second fingerprint template and at least one adjacent template of the second fingerprint template.
In one possible implementation, the computer program, when executed by one or more processors, causes the electronic device to perform the steps of: based on the corresponding relation between the first fingerprint template and at least one adjacent template of the first fingerprint template, the prestored first fingerprint template and at least one adjacent template of the first fingerprint template are obtained.
In one possible implementation, the computer program, when executed by one or more processors, causes the electronic device to perform the steps of: matching the fingerprint image with at least one adjacent template of the second fingerprint template and the second fingerprint template in similarity; acquiring a third similarity value of the fingerprint image and the second fingerprint template and at least one fourth similarity value of at least one adjacent template of the fingerprint image and the second fingerprint template; and the third similarity value and at least one fourth similarity value do not meet the similarity condition, and the fingerprint image is continuously subjected to similarity matching with the first fingerprint template and at least one adjacent template of the first fingerprint template.
In one possible implementation, the similarity condition includes at least one of: the sum of the similarity values is larger than a third threshold value; or, each similarity value is greater than a corresponding preset threshold.
Any implementation manner of the second aspect and the second aspect corresponds to any implementation manner of the first aspect and the first aspect, respectively. The technical effects corresponding to the second aspect and any implementation manner of the second aspect may be referred to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which are not described herein.
In a third aspect, the present application provides a computer readable medium for storing a computer program comprising instructions for performing the method of the first aspect or any possible implementation of the first aspect.
In a fourth aspect, the present application provides a computer program comprising instructions for performing the method of the first aspect or any possible implementation of the first aspect.
In a fifth aspect, the present application provides a chip comprising processing circuitry, a transceiver pin. Wherein the transceiver pin and the processing circuit communicate with each other via an internal connection path, the processing circuit performing the method of the first aspect or any one of the possible implementation manners of the first aspect to control the receiving pin to receive signals and to control the transmitting pin to transmit signals.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an electronic device exemplarily shown;
FIG. 2 is a schematic diagram of the location of an exemplary fingerprint sensor;
FIG. 3 is a block diagram of a software architecture of an exemplary electronic device;
FIG. 4 is a system architecture diagram of an exemplary illustrated electronic device;
FIG. 5a is a schematic diagram of an exemplary user interface;
FIG. 5b is a schematic diagram of an exemplary user interface;
FIG. 6 is a schematic diagram of an exemplary user interface;
FIG. 7 is a schematic diagram of an exemplary fingerprint identification process;
FIG. 8 is a schematic diagram of an exemplary fingerprint template;
FIG. 9 is a schematic diagram of an exemplary unlocking scenario;
FIG. 10 is a schematic diagram of an exemplary fingerprint authentication scheme;
FIG. 11 is a schematic diagram of an exemplary illustrated neighbor template matching;
FIG. 12 is a schematic diagram of exemplary fingerprint matching;
fig. 13 is a schematic view of the structure of the device shown in an exemplary manner.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms first and second and the like in the description and in the claims of embodiments of the present application are used for distinguishing between different objects and not necessarily for describing a particular sequential order of objects. For example, the first target object and the second target object, etc., are used to distinguish between different target objects, and are not used to describe a particular order of target objects.
In the 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 "for example" should not be construed 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.
In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more. For example, the plurality of processing units refers to two or more processing units; the plurality of systems means two or more systems.
Optionally, in the embodiment of the present application, the electronic device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), or a device with a fingerprint identification function, which is not limited in this application.
Fig. 1 shows a schematic configuration of an electronic device 100. It should be understood that the electronic device 100 shown in fig. 1 is only one example of an electronic device, and that the electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 1 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
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 memory, 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 may be a neural hub and a command center of the electronic device 100, among others. 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.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may comprise a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS)
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 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 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc. Illustratively, in the embodiment of the present application, the fingerprint sensor 180H may output the collected fingerprint to the processor 110, and the processor 110 may perform operations such as fingerprint identification, fingerprint entry, and so on, so as to implement functions such as fingerprint entry, fingerprint unlocking, and so on. Fig. 2 is a schematic diagram of the position of an exemplary fingerprint sensor. Referring to fig. 2, for example, taking the electronic device 100 as a mobile phone, a fingerprint sensor may be disposed under a display screen of the mobile phone, and may be used for unlocking an on-screen fingerprint. Optionally, the fingerprint sensor may be disposed at a corresponding position according to the width and length of the mobile phone, so that when the user holds the mobile phone with one hand, the thumb of the user can touch the fingerprint sensing area corresponding to the fingerprint sensor. Of course, the above arrangement is merely an illustrative example, and in other embodiments, the mobile phone may be provided with a plurality of fingerprint sensors, and the positions of the fingerprint sensors may be set according to actual requirements, which is not limited in this application. For example, the fingerprint sensor may be distributed at a plurality of locations under the screen of the display screen so that the user can press and input the fingerprint at any location on the screen. Illustratively, the fingerprint sensor in the embodiments of the present application is an off-screen (i.e., under-display) sensor, i.e., the fingerprint sensor is disposed in (or under) the display. In other embodiments, the fingerprint sensor may be disposed outside the display screen, for example, under the HOME key, or may be disposed on a side frame, or may be disposed on the back of the mobile phone, which is not limited in this application.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In this embodiment, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 3 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present application.
The layered architecture of the electronic device 100 divides the software into several layers, each with a distinct role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 3, the application package may include applications such as cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, fingerprints, etc. Illustratively, the fingerprint application may implement the fingerprint entry method in embodiments of the present application.
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. 3, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
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 electronic 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 manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D 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.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
It is to be understood that the components contained in the system framework layer, the system library, and the runtime layer shown in fig. 3 do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components.
In an embodiment of the present application, the system architecture of the electronic device as shown in fig. 4 includes a trusted execution environment (trusted execution environment, TEE) and a rich execution environment (rich execution environment, re). Isolating the application with high security sensitivity from a general software environment, providing a special Trusted Execution Environment (TEE), and protecting confidentiality, integrity and access rights of resources and data of the application; the method provides a general rich execution environment REE for traditional operating systems such as Android which are easy to attack. The application executed on the REE side is called a client application (client application, CA), such as a third party payment application, e.g. a bank-like application, and the application executed on the TEE side is called a trusted application (trusted application, TA), such as an application executing key services, e.g. signing, encryption and decryption calculations. Since the TA runs in a trusted execution environment TEE, deployment/upgrade operations of the TA need to strictly follow the security verification specifications of the TEE issuer (typically the terminal manufacturer), such as using digital signatures, etc., to ensure that the various links of the TEE are truly trusted. The trusted execution environment TEE includes a trusted execution environment Internal application programming interface (trusted execution environment Internal application programming interface, TEE international API) and trusted operating system components, and the main functions of the TEE international API are as follows: providing up the functionality of trusted operating system components, communicating with client application CA, implementing TA-to-TA communications, providing secure storage, cryptographic functionality, time functionality, etc.; the trusted operating system component mainly comprises a trusted core framework, a trusted function, a trusted kernel and a Trusted Execution Environment (TEE) communication agent, wherein the trusted core framework provides functions similar to an operating system for a TA; the trusted function provides support capability for application developers; the trusted kernel is used for interacting with trusted equipment in the platform hardware; the trusted execution environment communication agent provides a secure communication channel for the TA and the CA, for example, the trusted execution environment communication agent transmits a message to the rich execution environment communication agent through the platform hardware, so as to realize interaction between the TA and the CA. The rich execution environment REEs comprise a trusted execution environment Client application programming interface (trusted execution environment Client application programming interface, TEE Client API), a trusted execution environment function application programming interface (trusted execution environment functional application programming interface, TEE Functional API) and a multimedia operating system, and the multimedia operating system components mainly comprise a public device driver and a rich execution environment communication agent, wherein the rich execution environment communication agent is used for communicating with the TEE, the CA and TA provide a secure communication channel, and the public device driver is used for driving the public device in the platform hardware. The CA uses TEE Client APIs, TEE Functional API to access security services provided by the TA.
In the embodiment of the application, the steps of inputting, storing, identifying (or matching) the fingerprint and the like can be performed in a TEE environment so as to ensure the security and privacy of fingerprint information.
The fingerprint identification method in the embodiment of the application is mainly divided into two parts, wherein the first part is fingerprint input, and the second part is fingerprint unlocking.
The fingerprint input method in the embodiment of the application is described in detail below with specific embodiments. Fig. 5a is a schematic diagram of an exemplary user interface. Referring to fig. 5a (1), an exemplary main interface 501 (also referred to as a desktop) is shown on the display of the mobile phone. One or more controls are included in the main interface 501. Controls include, but are not limited to: an electrical quantity control, a network control, an application icon control, and the like. The user may click on the setup icon control 502 to launch the setup application. Illustratively, the handset displays a setup interface in response to a received user operation. Referring to fig. 5a (2), an exemplary setup interface 503 includes one or more setup options. The setting options include, but are not limited to: sound and vibration options, notification options, biometric and password options 504, application options, battery options, and the like. The user may click on the biometric and password option 504 to launch the biometric and password application. Referring to fig. 5a (3), an exemplary handset displays a biometric and password interface 505 in response to a received user operation. One or more options are included in the biometric and password interface 505. Options include, but are not limited to: fingerprint option 506, face recognition option, lock screen password option, etc. The user may click on the fingerprint option 506 to launch the fingerprint application. Referring to fig. 5a (4), the exemplary mobile phone displays an input lock screen password interface 507 in response to a received user operation. That is, after the user inputs the correct screen locking password, the mobile phone displays the fingerprint setting interface so as to ensure the security of the mobile phone.
With continued reference to fig. 5a (4), exemplary input lock screen password interface 507 includes, but is not limited to: password row 508, keyboard 509. Illustratively, the user may click on the number corresponding to the lockscreen code in the keypad 509 to enter the lockscreen code. In the process of clicking the screen locking password number by the user, the corresponding password bit in the password line 508 may flash, be filled, etc. to prompt the user for the currently input password bit. For example, if the lock screen password is 123456, when the user clicks the number 1, the first password bit in the password line 508 may be filled with black (other colors are also possible, which is not limited in this application). The user continues to input other numbers, when the user inputs the last digit of '6', the mobile phone responds to the received 6-bit password and matches with the pre-stored screen locking password. If the matching is successful, the mobile phone displays a fingerprint setting interface. If the matching fails, the user can be prompted to input the screen locking password again. In the embodiment of the present application, the 6-bit screen locking password is taken as an example for illustration, and in other embodiments, other digits may be used, which is not limited in the present application.
Referring to fig. 5b, the exemplary mobile phone responds to the received user operation, and displays a fingerprint setting interface 510 (also referred to as a fingerprint application interface) after the received 6-bit password is successfully matched with the pre-stored lock screen password. Exemplary fingerprint settings interfaces 501 include, but are not limited to: fingerprint application options, fingerprint list 514, new fingerprint option 515, identify fingerprint option 516, etc. Exemplary fingerprint application options optionally include, but are not limited to: unlock device option 511, access secret cabinet option 512, access application lock option 513. Illustratively, the user may set the application scenario of the fingerprint by setting the options described above. For example, if the user clicks on the unlock device option 511 to open the unlock device option. And the mobile phone responds to the received user operation, and determines that the input fingerprint is applied to unlocking the equipment, namely, the user can unlock the mobile phone in a screen-off or screen-locking mode in a fingerprint unlocking mode.
With continued reference to fig. 5b, an exemplary fingerprint list 514 is used to display information of entered fingerprints. The fingerprint list 514 in fig. 5b is empty, i.e. represents a currently not entered fingerprint. The specific manner of entering the fingerprint will be described in the following examples. By way of example, the fingerprint list may also include list information, such as "(0/5)" in the figure, wherein the number "5" may represent an upper limit of the fingerprints that may be entered, i.e. a maximum of 5 fingerprints may be entered. The number "0" indicates that the number of fingerprints currently entered is 0. It should be noted that the upper limit of the fingerprint that can be recorded is only an illustrative example, and in other embodiments, the upper limit can be set according to actual requirements, and the application is not limited. Illustratively, the user clicks the newly created fingerprint option 415. And the mobile phone responds to the received user operation and executes a fingerprint input flow.
Referring to fig. 6 (1), an exemplary mobile phone displays a new fingerprint interface 601. The newly created fingerprint interface 601 includes, but is not limited to: a presentation screen 602, a prompt 603, and a start entry option 604 are entered.
Illustratively, the entry presentation screen 602 optionally prompts the user for a manner of fingerprint entry in the form of an animation or picture. For example, the content of the animation display may be that the user holds the mobile phone and presses the thumb on the fingerprint sensing area corresponding to the fingerprint sensor.
Illustratively, prompt 603 is used to prompt the user to place a finger in the fingerprint sensing area of the screen and press it slightly.
Illustratively, the user may click on the begin entry option 604. In one example, referring to fig. 6 (2), in response to a received user operation, the mobile phone displays a prompt 605 and a fingerprint sensing area 606 in the newly created fingerprint interface 601. Illustratively, the prompt 605 is used to prompt the user for the action currently being required, such as "put finger. And the prompt message is also used for prompting the user to press the sensing area in the screen by the finger, remove the sensing area after the sensing of vibration, and repeat the step. By way of example, fingerprint sensing area 606 may correspond to the fingerprint sensor shown in FIG. 2. Optionally, the size of the fingerprint sensing area may be smaller than or equal to the size of the fingerprint sensor, which is not limited in this application. Optionally, the shape of the fingerprint sensing area is the same as or different from the shape of the fingerprint sensor. Of course, the fingerprint sensing area may be slightly larger than the size of the fingerprint sensor, and the area larger than the fingerprint sensor is an ineffective recording area, i.e. even if the user places a finger in the area, the mobile phone may not recognize the fingerprint in the area. The shape, size and location of the fingerprint sensing area are exemplary only. In other embodiments, this may be set according to actual requirements. For example, the fingerprint sensing area may be rectangular or elliptical, as not limited in this application. Illustratively, a fingerprint sensing area 606 may be included therein for indicating that the area is a fingerprint sensing area.
In another example, referring to fig. 6 (3), in response to receiving the user clicking to start entering the option 504, the mobile phone displays the prompt 605 and the fingerprint sensing area 606 in the newly created fingerprint interface 601, and may further include a fingerprint display area 607. Illustratively, the fingerprint display area 607 may be used to display a fingerprint trace for subsequent entry. Alternatively, in the embodiment of the present application, the fingerprint display area 607 is illustrated as an ellipse. In other embodiments, the shape, frame, size and position of the fingerprint display area 607 may be set according to practical requirements. Alternatively, the background color of the fingerprint display area 607 may be the same as or different from the background color of the newly created fingerprint interface 501. The present application is not limited.
The background color of the newly created fingerprint interface 601 may be, for example, a background color with low saturation, for example, a deep blue color. The background color with higher saturation may be white, for example, and the present application is not limited thereto.
The fingerprint that the user needs to enter is exemplified by the right thumb fingerprint. Of course, for the entry of fingerprints of other fingers of the user, reference may be made to the recording mode of the thumb fingerprint of the right hand, and the description of the application will not be repeated one by one. Referring to fig. 6 (4), an exemplary user overlays a right thumb fingerprint on the fingerprint sensing area 606. It should be noted that the position of the right thumb in the fingerprint sensing area 606 shown in fig. 6 (4) is only schematically illustrated, and the present application only illustrates the current position of the right thumb in the fingerprint sensing area 606.
Still referring to fig. 6 (4), illustratively, the user's right thumb presses against fingerprint sensing area 606 and remains stationary. It should be noted that, the pressing manner may increase the accuracy of fingerprint identification, and if the user does not press the fingerprint sensing area 606, for example, the user simply covers the right thumb in the fingerprint sensing area 606, but does not press hard, the mobile phone may not accurately identify the fingerprint of the user. It should be further noted that, while keeping still while pressing, it can also be understood that pressing by using a still gesture can further improve accuracy of fingerprint identification.
Illustratively, a fingerprint sensor of the handset may identify a fingerprint in the fingerprint sensing area 606. The fingerprint sensor outputs the identified fingerprint to a fingerprint application. The fingerprint application may display a corresponding fingerprint trace 608 in the fingerprint display area 607 to indicate that a fingerprint of the area corresponding to the fingerprint trace 608 has been entered.
Fig. 7 is a schematic diagram of an exemplary fingerprint identification flow, referring to fig. 7, an exemplary electronic device obtains a fingerprint template and stores the fingerprint template in a template library during a process of inputting a fingerprint by a user. As described above, the template library is located in the TEE environment to ensure the security and privacy of the fingerprint template.
Fig. 8 is a schematic diagram of an exemplary fingerprint template, please refer to fig. 8, in which, during a fingerprint input process, an electronic device actually photographs each input region (for example, a dashed box in fig. 8) and stores a corresponding fingerprint image, that is, a fingerprint template, and the fingerprint template is exemplary, where the fingerprint template is used to store fingerprint line information.
Illustratively, the electronic device employs a multi-region acquisition approach when the user is entering a fingerprint. That is, the electronic device may prompt the user for a region of the fingerprint that is currently desired to be captured, and the user may forcefully press the fingerprint of that region into the fingerprint sensing area. The electronic device may acquire fingerprint information of the area and generate a corresponding image, which may also be understood as snapshot the area to save the corresponding fingerprint image. In the process that the user repeatedly presses the fingerprint, the electronic device can acquire fingerprint information (also referred to as fingerprint lines) corresponding to a plurality of areas, and acquire corresponding images (namely, fingerprint templates).
Wherein there may be duplicate portions between fingerprint templates. And when part of fingerprint templates are stored, the corresponding transformation relation can be stored. For example, as shown in fig. 8, during the entry process, the fingerprint template 2 (hereinafter referred to as template 2), the electronic device photographs the fingerprint area to acquire the template 2. The electronic device obtains the transformation relation of the template 2 (for example, the rotation angles of the x and y axes, the coordinate system can be set according to the actual requirement, and the application is not limited), and the transformation relation can be understood as that the template 2 is stored according to the normal specification when being stored in the template library. The electronic device can rotate the template 2 through the recorded transformation relationship, so as to obtain an actual image of the template 2 in the fingerprint input process.
Fig. 9 is a schematic diagram of an exemplary unlocking scenario. Referring to fig. 9 (1), an exemplary mobile phone is in a screen-off mode. The user may click on the off screen interface 901. Referring to fig. 9 (2), the mobile phone responds to the received user operation to display a fingerprint sensing area 902 in the off-screen interface 901. Referring to fig. 9 (3), an exemplary user presses the fingerprint sensing area 902 with a right index finger. Illustratively, the fingerprint sensor outputs the identified fingerprint to a fingerprint application, which compares the fingerprint input by the fingerprint sensor to the stored one or more fingerprints. In one example, assuming that the user's right index finger fingerprint has been entered in the handset, the corresponding fingerprint application determines that the fingerprint comparison was successful. The fingerprint application may instruct the handset to unlock. Referring to fig. 9 (4), an exemplary mobile phone displays a desktop 903. In another example, assuming that the fingerprint of the right index finger of the user is not entered in the mobile phone, the corresponding fingerprint application determines that the fingerprint comparison fails and the mobile phone is not unlocked.
Illustratively, as shown in FIG. 7, the user enters a fingerprint during a fingerprint unlocking process. The electronic equipment acquires fingerprint images corresponding to the fingerprints of the user, and extracts a plurality of stored fingerprint templates from the template library. The electronic device may match the fingerprint image with templates in the template library to verify the user's fingerprint. In one example, if the verification is successful, the handset is unlocked. If the verification is unsuccessful, the mobile phone is not unlocked, and prompt information of fingerprint identification failure is displayed.
Fig. 10 is a diagram illustrating an exemplary manner of fingerprint authentication. As shown in fig. 10, the electronic device matches the fingerprint image with templates in the template library one by one. If any one of the templates is successfully matched with the fingerprint image, for example, the similarity degree is greater than a threshold (for example, 80%, which can be set according to practical requirements, and the application is not limited), the matching success (i.e., the verification success) can be determined. If both templates and fingerprint images fail to match (i.e., the similarity of all templates and fingerprint images is below a threshold), a match failure may be determined.
However, in the low-temperature and relatively dry scene of the user finger, the quality of the fingerprint image acquired by the electronic device is poor, so that multiple times of matching failure of the fingerprint of the user may be caused, and the use experience of the user is affected.
The embodiment of the application provides a fingerprint identification mode, can carry out fingerprint identification based on the multimode to improve fingerprint identification's accuracy.
In this embodiment of the present application, the electronic device may obtain a plurality of fingerprint templates in the process of inputting a fingerprint (the process may refer to fig. 6), and the fingerprint templates may refer to the description in fig. 8, which is not described herein. The electronic device may match the plurality of templates obtained to determine a corresponding neighbor template for each fingerprint template.
Fig. 11 is a schematic diagram of an exemplary illustrated neighbor template matching. Referring to fig. 11, the electronic device obtains a plurality of templates, such as template 1, template 2, … …, template n. The electronic device may match each template one by one according to a storage sequence (or other sequences, which is not limited in the application), so as to obtain an adjacent template corresponding to each template. Taking the template 1 as an example, the electronic device matches the template 1 with the template 2, detects that the similarity between the image of the template 1 and the image of the template 2 exceeds a threshold (for example, 60%, which can be set according to practical requirements, and the application is not limited), and can determine that the template 2 is an adjacent template of the template 1. The electronic device may maintain a list of neighbor templates to record the neighbor templates corresponding to each template. The electronic device may record the identification information of the templates 1 and 2 (may be names of the templates, etc., which are not limited in this application) in the adjacent template list correspondingly. The template 2 is an adjacent template to the template 1, and accordingly, the template 1 is also an adjacent template to the template 2. It should be further noted that, in the embodiments of the present application, each image (including the fingerprint image and the template) is subjected to image matching, so as to obtain the similarity between the images, which may refer to the prior art, and the present application is not limited thereto.
Optionally, each fingerprint template corresponds to transformation relationship information, as described above. When the electronic equipment matches the adjacent templates, the similarity between the templates can be detected after the templates are rotated according to the transformation relation information, so that the accuracy of identifying the adjacent templates is improved.
In the embodiment of the present application, the similarity between templates and the image similarity between the fingerprint image and the template described below are understood to be the similarity between the fingerprint lines stored in each image (including the fingerprint image and the template).
Still referring to fig. 11, the electronic device matches the template 1 with the template 3, and determines that the template 1 is not adjacent to the template 3 if the similarity between the images of the template 1 and the template 3 is detected to be lower than the threshold.
The electronic device matches the template 1 with the template 4, and determines that the template 1 and the template 4 are adjacent templates if the similarity between the images of the template 1 and the template 4 is detected to be higher than a threshold value. According to the mode, the electronic equipment traverses each template one by one to obtain the corresponding adjacent templates. Alternatively, there may be templates that do not correspond to neighboring templates, i.e., the similarity between the template and other templates is below a threshold, which is not limited in this application.
The neighbor template list as shown in table 1 is exemplary:
TABLE 1
Template Proximity template
Template 1 Form 2
Template 4
…… ……
Optionally, the transformation relationship corresponding to each adjacent template can also be recorded in the list.
For example, during a fingerprint unlocking process (the user interface may refer to fig. 9, which will not be described herein), the electronic device acquires a fingerprint image of the user. Fig. 12 is a schematic diagram of exemplary fingerprint matching. Referring to fig. 12, the electronic device performs multi-template matching on the fingerprint image of the user and the templates in the template library. Specifically, the electronic device traverses the templates one by one according to a storage sequence (or other sequences), and obtains adjacent templates corresponding to the templates. The electronic device may match the fingerprint image with the template and a corresponding proximity template to obtain a corresponding similarity. The electronic device may fuse the multiple similarities to determine whether the matching is successful based on the fused similarities.
For example, referring still to fig. 12, taking template 1 as an example, the electronic device may determine, based on table 1, the neighboring templates corresponding to template 1 as template 2 and template 4. And the electronic equipment matches the fingerprint image with the template 1 to obtain the similarity 1. Alternatively, the electronic device may Score the similarity of the templates based on the corresponding similarity, e.g. the similarity between the fingerprint image and the template 1 is scored score_1. Wherein, the higher the similarity, the higher the score.
Then, the electronic device matches the fingerprint image with the template 2 to obtain the similarity 2. Alternatively, the electronic device may Score the similarity of the templates based on the corresponding similarity, e.g. the similarity between the fingerprint image and the template 2 is scored score_2.
The electronic device matches the fingerprint image with the template 4 to obtain the similarity of 3. And determines the similarity Score between the fingerprint image and the template 4 as Score 3.
The electronic device may fuse the similarity between the fingerprint image and the template and its neighboring templates. In one possible implementation, the manner in which the similarities are fused may be by adding multiple similarities (i.e., similarity scores). In another possible implementation, the similarity may be fused by detecting whether each similarity is greater than a similarity threshold. Wherein the similarity threshold is less than the similarity threshold in the scenario of fig. 10. That is, by the method in the embodiment of the present application, the similarity can be reduced. For example, in the scenario of fig. 10, the similarity between the fingerprint image and any template needs to be greater than 60% to determine that the match was successful. In this embodiment of the present application, if the similarity between the fingerprint image and the template 1 is greater than a first threshold (for example, 60%), the similarity between the fingerprint image and the template 2 is greater than a second threshold (for example, 20%), and the similarity between the fingerprint image and the template 4 is greater than the second threshold (which may be different from the second threshold, which is not limited in this application), it may be determined that the matching is successful. In another possible implementation manner, the electronic device may further use a decision tree classification and discrimination manner to fuse the similarity to determine whether the matching is successful, which is not limited in the application.
For example, only 20 accurate points (only schematic distances, not limited in this application) can be identified in the fingerprint image acquired by the electronic device. In the scenario shown in fig. 10, assuming that the similarity between 20 points in the fingerprint image and templates 1 through n is less than 80%, the electronic device will determine that the matching fails. In the embodiment of the application, the electronic device matches the fingerprint image with the template 1 and the adjacent templates (the template 2 and the template 4) respectively. Wherein there may be a portion located in the template 1, the corresponding similarity is 20% (the numerical value may also be understood as a similarity score), a portion located in the template 2, the corresponding similarity is 30%, and a portion located in the template 4, the similarity is 30%. The electronic device fuses the similarity scores (namely 20% +30% + 30%), determines that the fused similarity score is 80%, determines that the similarity threshold is reached, and determines that the matching is successful.
It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware and/or software modules that perform the respective functions. The steps of an algorithm for each example described in connection with the embodiments disclosed herein may be embodied in hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation is not to be considered as outside the scope of this application.
In one example, fig. 13 shows a schematic block diagram apparatus 1300 of an embodiment of the present application, which may include: processor 1301 and transceiver/transceiving pin 1302, optionally, further comprise memory 1303.
The various components of apparatus 1300 are coupled together by a bus 1304, wherein bus 1304 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are referred to in the figures as bus 1304.
Alternatively, the memory 1303 may be used for instructions in the foregoing method embodiments. The processor 1301 is operable to execute instructions in the memory 1303 and control the receive pin to receive signals and the transmit pin to transmit signals.
The apparatus 1300 may be an electronic device or a chip of an electronic device in the above-described method embodiments.
All relevant contents of each step related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein.
The present embodiment also provides a computer storage medium having stored therein computer instructions which, when executed on an electronic device, cause the electronic device to perform the above-described related method steps to implement the method 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 in the above-mentioned embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component, or a module, and may include a processor and a memory connected to each other; the memory is configured to store computer-executable instructions, and when the device is operated, the processor may execute the computer-executable instructions stored in the memory, so that the chip performs the methods in the above method embodiments.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are used to execute the corresponding methods provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding methods provided above, and will not be described herein.
The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (12)

1. A fingerprint identification method, applied to an electronic device, the electronic device being in a locked state, the method comprising:
responding to the received first user operation, and displaying a fingerprint sensing area on a display screen;
acquiring a fingerprint image of a finger detected by a fingerprint sensor when the finger is covered on the fingerprint sensing area;
matching the fingerprint image with a first fingerprint template and at least one adjacent template of the first fingerprint template in a similarity mode; wherein a similarity between the first fingerprint template and each of at least one neighbor template of the first fingerprint template is greater than a first threshold;
acquiring a first similarity value of the fingerprint image and the first fingerprint template and at least one second similarity value of the fingerprint image and at least one adjacent template of the first fingerprint template;
and if the first similarity value and the at least one second similarity value meet the similarity condition, determining that the fingerprint images corresponding to the fingers are successfully matched, and unlocking the electronic equipment.
2. The method of claim 1, wherein the method further comprises, in response to the received user operation, prior to displaying the fingerprint sensing area on the display screen:
Responding to the received first user operation, and displaying a newly built fingerprint interface;
acquiring a plurality of fingerprint templates of which the fingers detected by the fingerprint sensor cover the fingerprint sensing area, wherein the fingerprint templates comprise the first fingerprint template;
matching the similarity between the first fingerprint template and other fingerprint templates, and determining that the template with the similarity between the first fingerprint template and the template is larger than the first threshold value is an adjacent template of the first fingerprint template;
storing a correspondence between the first fingerprint template and the at least one adjacent template of the first fingerprint template;
matching the similarity between the second fingerprint template and other fingerprint templates, and determining that the template with the similarity larger than the first threshold value is the adjacent template of the second fingerprint template;
and storing the corresponding relation between the second fingerprint template and at least one adjacent template of the second fingerprint template.
3. The method of claim 2, wherein similarity matching the fingerprint image with a first fingerprint template and at least one neighboring template of the first fingerprint template comprises:
And acquiring the prestored at least one adjacent template of the first fingerprint template and the first fingerprint template based on the corresponding relation between the first fingerprint template and the at least one adjacent template of the first fingerprint template.
4. The method of claim 2, wherein prior to similarity matching the fingerprint image with a first fingerprint template and at least one neighboring template of the first fingerprint template, the method further comprises:
performing similarity matching on the fingerprint image and the second fingerprint template and at least one adjacent template of the second fingerprint template;
acquiring a third similarity value of the fingerprint image and the second fingerprint template and at least one fourth similarity value of the fingerprint image and at least one adjacent template of the second fingerprint template;
and the third similarity value and the at least one fourth similarity value do not meet the similarity condition, and the fingerprint image is continuously subjected to similarity matching with the first fingerprint template and at least one adjacent template of the first fingerprint template.
5. The method of any one of claims 1 to 4, wherein the similarity condition comprises at least one of:
The sum of the similarity values is larger than a third threshold value;
or,
each similarity value is larger than a corresponding preset threshold value.
6. An electronic device, comprising:
one or more processors, memory;
and one or more computer programs, wherein the one or more computer programs are stored on the memory, which when executed by the one or more processors, cause the electronic device to perform the steps of:
responding to the received first user operation, and displaying a fingerprint sensing area on a display screen;
acquiring a fingerprint image of a finger detected by a fingerprint sensor when the finger is covered on the fingerprint sensing area;
matching the fingerprint image with a first fingerprint template and at least one adjacent template of the first fingerprint template in a similarity mode; wherein a similarity between the first fingerprint template and each of at least one neighbor template of the first fingerprint template is greater than a first threshold;
acquiring a first similarity value of the fingerprint image and the first fingerprint template and at least one second similarity value of the fingerprint image and at least one adjacent template of the first fingerprint template;
And if the first similarity value and the at least one second similarity value meet the similarity condition, determining that the fingerprint images corresponding to the fingers are successfully matched, and unlocking the electronic equipment.
7. The electronic device of claim 6, wherein the computer program, when executed by the one or more processors, causes the electronic device to perform the steps of:
responding to the received first user operation, and displaying a newly built fingerprint interface;
acquiring a plurality of fingerprint templates of which the fingers detected by the fingerprint sensor cover the fingerprint sensing area, wherein the fingerprint templates comprise the first fingerprint template;
matching the similarity between the first fingerprint template and other fingerprint templates, and determining that the template with the similarity between the first fingerprint template and the template is larger than the first threshold value is an adjacent template of the first fingerprint template;
storing a correspondence between the first fingerprint template and the at least one adjacent template of the first fingerprint template;
matching the similarity between the second fingerprint template and other fingerprint templates, and determining that the template with the similarity larger than the first threshold value is the adjacent template of the second fingerprint template;
And storing the corresponding relation between the second fingerprint template and at least one adjacent template of the second fingerprint template.
8. The electronic device of claim 7, wherein the computer program, when executed by the one or more processors, causes the electronic device to perform the steps of:
and acquiring the prestored at least one adjacent template of the first fingerprint template and the first fingerprint template based on the corresponding relation between the first fingerprint template and the at least one adjacent template of the first fingerprint template.
9. The electronic device of claim 7, wherein the computer program, when executed by the one or more processors, causes the electronic device to perform the steps of:
performing similarity matching on the fingerprint image and the second fingerprint template and at least one adjacent template of the second fingerprint template;
acquiring a third similarity value of the fingerprint image and the second fingerprint template and at least one fourth similarity value of the fingerprint image and at least one adjacent template of the second fingerprint template;
and the third similarity value and the at least one fourth similarity value do not meet the similarity condition, and the fingerprint image is continuously subjected to similarity matching with the first fingerprint template and at least one adjacent template of the first fingerprint template.
10. The electronic device of any of claims 6-9, wherein the similarity condition comprises at least one of:
the sum of the similarity values is larger than a third threshold value;
or,
each similarity value is larger than a corresponding preset threshold value.
11. A computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-5.
12. A chip comprising one or more interface circuits and one or more processors; the interface circuit is configured to receive a signal from a memory of an electronic device and to send the signal to the processor, the signal including computer instructions stored in the memory; the computer instructions, when executed by the processor, cause the electronic device to perform the method of any of claims 1-5.
CN202311050684.1A 2023-08-18 2023-08-18 Fingerprint identification method and electronic equipment Pending CN117711032A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311050684.1A CN117711032A (en) 2023-08-18 2023-08-18 Fingerprint identification method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311050684.1A CN117711032A (en) 2023-08-18 2023-08-18 Fingerprint identification method and electronic equipment

Publications (1)

Publication Number Publication Date
CN117711032A true CN117711032A (en) 2024-03-15

Family

ID=90159427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311050684.1A Pending CN117711032A (en) 2023-08-18 2023-08-18 Fingerprint identification method and electronic equipment

Country Status (1)

Country Link
CN (1) CN117711032A (en)

Similar Documents

Publication Publication Date Title
CN110058777B (en) Method for starting shortcut function and electronic equipment
EP3859576B1 (en) Application permission management method and electronic device
US11910197B2 (en) Service processing method and device
CN110780929B (en) Method for calling hardware interface and electronic equipment
CN110111101B (en) Electronic payment method and electronic device
CN113641271B (en) Application window management method, terminal device and computer readable storage medium
CN113973398A (en) Wireless network connection method, electronic equipment and chip system
CN115914461B (en) Position relation identification method and electronic equipment
CN111027374B (en) Image recognition method and electronic equipment
CN113660370B (en) Fingerprint input method and electronic equipment
CN111339513B (en) Data sharing method and device
CN117711032A (en) Fingerprint identification method and electronic equipment
CN114077323B (en) Touch screen false touch prevention method of electronic equipment, electronic equipment and chip system
CN115792431B (en) Abnormal position detection method and electronic equipment
CN115016666B (en) Touch processing method, terminal equipment and storage medium
CN116048350B (en) Screen capturing method and electronic equipment
CN116048681B (en) Icon display method, electronic device, and computer-readable storage medium
CN115175164B (en) Communication control method and related device
CN115495716B (en) Local authentication method and electronic equipment
CN113986406B (en) Method, device, electronic equipment and storage medium for generating doodle pattern
CN112579425B (en) Method, device and medium for testing applet method interface
CN114826636B (en) Access control system and related methods and apparatus
CN116527266A (en) Data aggregation method and related equipment
CN116028966A (en) Application display method, electronic equipment and storage medium
CN116301905A (en) Data processing method and related equipment

Legal Events

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