WO2020146984A1 - Multiple security environments-based fingerprint recognition method and system, and electronic device - Google Patents

Multiple security environments-based fingerprint recognition method and system, and electronic device Download PDF

Info

Publication number
WO2020146984A1
WO2020146984A1 PCT/CN2019/071659 CN2019071659W WO2020146984A1 WO 2020146984 A1 WO2020146984 A1 WO 2020146984A1 CN 2019071659 W CN2019071659 W CN 2019071659W WO 2020146984 A1 WO2020146984 A1 WO 2020146984A1
Authority
WO
WIPO (PCT)
Prior art keywords
fingerprint
template
fingerprint identification
image
matching
Prior art date
Application number
PCT/CN2019/071659
Other languages
French (fr)
Chinese (zh)
Inventor
李明采
王波
Original Assignee
深圳市汇顶科技股份有限公司
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 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to CN201980000119.XA priority Critical patent/CN109891431B/en
Priority to PCT/CN2019/071659 priority patent/WO2020146984A1/en
Publication of WO2020146984A1 publication Critical patent/WO2020146984A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition

Definitions

  • This application relates to the field of fingerprint technology, and more specifically, to a fingerprint identification method, a fingerprint identification system, and an electronic device based on a multi-security environment.
  • the fingerprint recognition technology under the screen increases the screen-to-body ratio, making the fingerprint recognition area larger and larger. This means that more image processing modules are required, and the corresponding fingerprint recognition takes longer, especially when the user has registered multiple fingerprints. In the case of templates, the fingerprint recognition process is longer, which affects the user experience.
  • the embodiments of the present application provide a fingerprint identification method, fingerprint identification system, and electronic device based on multiple security environments, which can reduce fingerprint identification time and improve user experience.
  • a fingerprint identification method based on multiple security environments including:
  • the method further includes:
  • the second time period perform the second fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the second security environment, wherein the second time period is later than the The first time period.
  • the performing the second fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the second security environment includes:
  • the template Based on the fingerprint recognition result of performing the first fingerprint recognition processing on the fingerprint image to be recognized in the first secure environment according to the second fingerprint template, in the second secure environment according to the second fingerprint
  • the template performs the second fingerprint identification processing on the fingerprint image to be identified.
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • control instruction is used to instruct to perform the first fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the first security environment, and In the second security environment, the second fingerprint identification process is performed on the fingerprint image to be identified according to the first fingerprint template.
  • the method further includes:
  • the first fingerprint identification process is performed on the fingerprint image to be identified according to the first fingerprint template in the second security environment.
  • the first fingerprint identification process is a coarse matching process
  • the second fingerprint identification process is a fine matching process
  • the coarse matching process includes the characteristic information of the fingerprint template and the fingerprint image to be identified.
  • the fine matching process includes performing fine matching according to the fingerprint information in the matching area of the fingerprint template and the fingerprint image to be identified.
  • the performing the first fingerprint recognition processing on the fingerprint image to be recognized according to the second fingerprint template in the first security environment includes:
  • the feature information of the second fingerprint template and the feature information of the fingerprint image to be recognized are matched to obtain a similarity matrix, and the values in the similarity matrix are used to indicate the second fingerprint template and the to-be-recognized The similarity of the corresponding feature points of the fingerprint image.
  • the performing second fingerprint recognition processing on the fingerprint image to be recognized according to the first fingerprint template in the second security environment includes:
  • the fingerprint recognition result is determined.
  • the determining the fingerprint recognition result according to the matching degree information includes: determining that the pattern recognition is successful if the matching degree data is greater than or equal to a certain threshold; or
  • the matching degree data is less than the specific threshold, it is determined that the fingerprint recognition fails.
  • the absolute value of the difference between the time consuming of the second fingerprint identification process and the time consuming of the first fingerprint identification process is less than the first time threshold.
  • the first security environment is a SecureDsp environment
  • the second security environment is a TrustZone environment.
  • a fingerprint identification system based on multiple security environments including:
  • the first fingerprint identification module is configured to perform the first fingerprint identification process on the fingerprint image to be identified according to the second fingerprint template in the first security environment in the first time period;
  • the second fingerprint identification module is configured to perform a second fingerprint identification process on the fingerprint image to be identified according to the first fingerprint template in the second security environment in the first time period.
  • the second fingerprint identification module is further used for:
  • the second time period perform the second fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the second security environment, wherein the second time period is later than the The first time period.
  • the second fingerprint identification module is specifically configured to:
  • the template Based on the fingerprint recognition result of performing the first fingerprint recognition processing on the fingerprint image to be recognized in the first secure environment according to the second fingerprint template, in the second secure environment according to the second fingerprint
  • the template performs the second fingerprint identification processing on the fingerprint image to be identified.
  • the second fingerprint identification module is further used for:
  • the first fingerprint identification module is further used for:
  • the fingerprint identification result of the first fingerprint identification process is stored in a shared memory.
  • the fingerprint identification system further includes:
  • the control module is configured to send a first control instruction to the first fingerprint identification module, where the first control instruction is used to instruct the first fingerprint identification module to perform according to the second fingerprint template in the first security environment Performing the first fingerprint identification processing on the fingerprint image to be identified;
  • the second fingerprint identification module is also used to:
  • the first fingerprint identification process is performed on the fingerprint image to be identified according to the first fingerprint template in the second security environment.
  • the first fingerprint identification process is a coarse matching process
  • the second fingerprint identification process is a fine matching process
  • the coarse matching process includes the characteristic information of the fingerprint template and the fingerprint image to be identified.
  • the fine matching process includes performing fine matching according to the fingerprint information in the matching area of the fingerprint template and the fingerprint image to be identified.
  • the first fingerprint identification module is specifically configured to:
  • the feature information of the second fingerprint template and the feature information of the fingerprint image to be recognized are matched to obtain a similarity matrix, and the values in the similarity matrix are used to indicate the second fingerprint template and the to-be-recognized The similarity of the corresponding feature points of the fingerprint image.
  • the second fingerprint identification module is specifically configured to:
  • the fingerprint recognition result is determined.
  • the second fingerprint identification module is specifically configured to:
  • the matching degree data is greater than or equal to a specific threshold, it is determined that the pattern recognition is successful.
  • the matching degree data is less than the specific threshold, it is determined that the fingerprint recognition fails.
  • the difference between the time-consuming process of the second fingerprint identification process and the time-consuming process of the first fingerprint identification process is less than the first time threshold.
  • the first security environment is a SecureDsp environment
  • the second security environment is a TrustZone environment.
  • a chip in a third aspect, includes an input/output interface, at least one processor, at least one memory, and a bus.
  • the at least one memory is used to store instructions
  • the at least one processor is used to call Instructions to execute the method in the first aspect or any possible implementation of the first aspect.
  • an electronic device including the fingerprint identification system as in the second aspect or any possible implementation of the second aspect.
  • a computer-readable medium for storing a computer program, and the computer program includes instructions for executing the foregoing first aspect or any possible implementation manner of the first aspect.
  • a computer program product including instructions is provided.
  • the computer executes the first aspect or any of the possible implementations of the first aspect Fingerprint identification method.
  • the computer program product can run on the electronic device in the fourth aspect.
  • the fingerprint recognition processing of the fingerprint to be recognized can be split into multiple fingerprint recognition processing operations, for example, the first fingerprint recognition processing and the second fingerprint recognition processing, wherein the second fingerprint recognition based on the same fingerprint template
  • the processing is later than the first fingerprint recognition processing, so that the first fingerprint recognition processing and the second fingerprint recognition processing can be performed in parallel according to multiple fingerprint templates in different security environments, so that the fingerprint recognition time can be shortened and the user experience can be improved.
  • Fig. 1A is a directional view of an electronic device according to an embodiment of the present application.
  • Fig. 1B is a schematic diagram of a partial cross-sectional structure of the electronic device shown in Fig. 1A along A-A'.
  • FIG. 2 is a flowchart of a typical fingerprint identification method.
  • Figure 3 is a timing diagram of a typical fingerprint identification method.
  • Fig. 4 is a schematic flowchart of a fingerprint identification method according to an embodiment of the present application.
  • Fig. 5 is a flowchart of a fingerprint identification method using five fingerprint templates as an example.
  • Fig. 6 is a sequence diagram of the fingerprint recognition process shown in Fig. 5.
  • Fig. 7 is a schematic flowchart of rough matching processing.
  • Fig. 8 is a schematic flowchart of fine matching processing.
  • Fig. 9 is a schematic structural diagram of a fingerprint identification system according to an embodiment of the present application.
  • Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the optical fingerprint system provided in the embodiments of this application can be applied to smart phones, tablet computers, and other mobile terminals with display screens or other terminal devices; more specifically, in the above-mentioned terminal devices, fingerprint identification
  • the device may specifically be an optical fingerprint device, which may be arranged in a partial area or an entire area below the display screen, thereby forming an under-display optical fingerprint system.
  • the fingerprint identification device may be partially or fully integrated into the display screen of the terminal device, thereby forming an in-display optical fingerprint system.
  • FIG. 1A and 1B show schematic diagrams of electronic devices to which the embodiments of the present application can be applied.
  • FIG. 1 is a front schematic view of the electronic device 10
  • FIG. 1B is the electronic device 10 shown in FIG. Partial sectional structure diagram.
  • the electronic device 10 includes a display screen 120 and an optical fingerprint device 130, wherein the optical fingerprint device 130 is arranged in a partial area below the display screen 120.
  • the optical fingerprint device 130 includes an optical fingerprint sensor, and the optical fingerprint sensor includes a sensing array with a plurality of optical sensing units, and the area where the sensing array is located or its sensing area is the fingerprint detection area 103 of the optical fingerprint device 130.
  • the fingerprint detection area 103 is located in the display area of the display screen 120.
  • the optical fingerprint device 130 may also be arranged in other positions, such as the side of the display screen 120 or the non-transmissive area at the edge of the electronic device 10, and the optical fingerprint device 130 may be designed to The optical signal of at least part of the display area of the display screen 120 is guided to the optical fingerprint device 130, so that the fingerprint detection area 103 is actually located in the display area of the display screen 120.
  • the area of the fingerprint detection area 103 may be different from the area of the sensing array of the optical fingerprint device 130, for example, through an optical path design such as lens imaging, a reflective folding optical path design, or other optical path design such as light convergence or reflection.
  • the area of the fingerprint detection area 103 of the optical fingerprint device 130 can be made larger than the area of the sensing array of the optical fingerprint device 130.
  • the fingerprint detection area 103 of the optical fingerprint device 130 may also be designed to be substantially the same as the area of the sensing array of the optical fingerprint device 130.
  • the electronic device 10 adopting the above structure does not need to reserve space on the front side to set fingerprint buttons (such as the Home button), so that a full screen solution can be adopted, that is, the display area of the display screen 120 It can be basically extended to the front of the entire electronic device 10.
  • the optical fingerprint device 130 includes a light detecting part 134 and an optical component 132, and the light detecting part 134 includes the sensor array and is electrically connected to the sensor array.
  • the connected reading circuit and other auxiliary circuits can be fabricated on a chip (Die) by a semiconductor process, such as an optical imaging chip or an optical fingerprint sensor.
  • the sensing array is specifically a photodetector (Photodetector) array, which includes A plurality of photodetectors distributed in an array, the photodetectors can be used as the above-mentioned optical sensing unit; the optical component 132 can be arranged above the sensing array of the photodetecting part 134, which can specifically include The filter layer (Filter), the light guide layer or the light path guide structure and other optical elements, the filter layer can be used to filter out the ambient light penetrating the finger, and the light guide layer or the light path guide structure is mainly used to remove The reflected light reflected from the finger surface is guided to the sensing array for optical detection.
  • the filter layer Finter
  • the light guide layer or the light path guide structure is mainly used to remove The reflected light reflected from the finger surface is guided to the sensing array for optical detection.
  • the optical assembly 132 and the light detecting part 134 may be packaged in the same optical fingerprint component.
  • the optical component 132 and the optical detection part 134 can be packaged in the same optical fingerprint chip, or the optical component 132 can be arranged outside the chip where the optical detection part 134 is located, for example, the optical component 132 is attached above the chip, or some components of the optical assembly 132 are integrated into the chip.
  • the light guide layer or light path guiding structure of the optical component 132 has multiple implementation schemes.
  • the light guide layer may specifically be a collimator layer made on a semiconductor silicon wafer, which has multiple A collimating unit or a micro-hole array
  • the collimating unit can be specifically a small hole
  • the reflected light reflected from the finger the light that is perpendicularly incident on the collimating unit can pass through and be the optical sensing unit below it
  • the light with an excessively large incident angle is attenuated by multiple reflections inside the collimating unit. Therefore, each optical sensor unit can basically only receive the reflected light reflected by the fingerprint pattern directly above it.
  • the sensor array can detect the fingerprint image of the finger.
  • the light guide layer or the light path guide structure may also be an optical lens (Lens) layer, which has one or more lens units, such as a lens group composed of one or more aspheric lenses, which The sensing array used to converge the reflected light reflected from the finger to the light detection part 134 below it, so that the sensing array can perform imaging based on the reflected light, thereby obtaining a fingerprint image of the finger.
  • the optical lens layer may further have a pinhole formed in the optical path of the lens unit, and the pinhole may cooperate with the optical lens layer to expand the field of view of the optical fingerprint device to improve the optical The fingerprint imaging effect of the fingerprint device 130.
  • the light guide layer or the light path guide structure may also specifically adopt a micro-lens (Micro-Lens) layer.
  • the micro-lens layer has a micro-lens array formed by a plurality of micro-lenses, which can be grown by semiconductors.
  • a process or other processes are formed above the sensing array of the light detecting part 134, and each microlens may correspond to one of the sensing units of the sensing array.
  • other optical film layers may be formed between the micro lens layer and the sensing unit, such as a dielectric layer or a passivation layer.
  • the micro lens layer and the sensing unit may also include The light-blocking layer of the micro-hole, wherein the micro-hole is formed between its corresponding micro-lens and the sensing unit, the light-blocking layer can block the optical interference between the adjacent micro-lens and the sensing unit, and make the sensing
  • the light corresponding to the unit is condensed into the microhole through the microlens and is transmitted to the sensing unit through the microhole to perform optical fingerprint imaging.
  • a microlens layer can be further provided under the collimator layer or the optical lens layer.
  • the collimator layer or the optical lens layer is used in combination with the microlens layer, its specific laminated structure or optical path may need to be adjusted according to actual needs.
  • the display screen 120 may be a display screen with a self-luminous display unit, such as an organic light-emitting diode (Organic Light-Emitting Diode, OLED) display or a micro-LED (Micro-LED) display Screen.
  • OLED Organic Light-Emitting Diode
  • the optical fingerprint device 130 may use the display unit (ie, an OLED light source) of the OLED display screen 120 located in the fingerprint detection area 103 as an excitation light source for optical fingerprint detection.
  • the display screen 120 emits a beam of light to the target finger above the fingerprint detection area 103. The light is reflected on the surface of the finger to form reflected light or is scattered inside the finger. Form scattered light.
  • the above-mentioned reflected light and scattered light are collectively referred to as reflected light. Because the ridge and valley of the fingerprint have different light reflection capabilities, the reflected light from the fingerprint ridge and the emitted light from the fingerprint ridge have different light intensities. After the reflected light passes through the optical components, it is affected by the optical fingerprint.
  • the sensing array in the device 130 receives and converts into a corresponding electrical signal, that is, a fingerprint detection signal; based on the fingerprint detection signal, fingerprint image data can be obtained, and fingerprint matching verification can be further performed, thereby implementing the electronic device 10 Optical fingerprint recognition function.
  • the optical fingerprint device 130 may also use a built-in light source or an external light source to provide an optical signal for fingerprint detection.
  • the optical fingerprint device 130 may be suitable for non-self-luminous display screens, such as liquid crystal display screens or other passively-luminous display screens.
  • the optical fingerprint system of the electronic device 10 may also include an excitation light source for optical fingerprint detection.
  • the excitation light source may specifically be an infrared light source or a light source of non-visible light of a specific wavelength, which may be arranged under the backlight module of the liquid crystal display screen or arranged in the edge area under the protective cover of the electronic device 10, and the The optical fingerprint device 130 can be arranged under the edge area of the liquid crystal panel or the protective cover and guided by the light path so that the fingerprint detection light can reach the optical fingerprint device 130; or, the optical fingerprint device 130 can also be arranged in the backlight module. Under the group, and the backlight module is designed to allow the fingerprint detection light to pass through the liquid crystal panel and the backlight module and reach the optical fingerprint device 130 by opening holes or other optical designs on the film layers such as diffuser, brightness enhancement film, and reflective film. .
  • the optical fingerprint device 130 adopts a built-in light source or an external light source to provide an optical signal for fingerprint detection, the detection principle is the same as that described above.
  • the electronic device 10 further includes a transparent protective cover, which may be a glass cover or a sapphire cover, which is located above the display screen 120 and covers the electronic The front of the device 10.
  • a transparent protective cover which may be a glass cover or a sapphire cover, which is located above the display screen 120 and covers the electronic The front of the device 10.
  • the optical fingerprint device 130 may include only one optical fingerprint sensor.
  • the fingerprint detection area 103 of the optical fingerprint device 130 has a small area and a fixed position, so the user is performing fingerprint input At this time, it is necessary to press the finger to a specific position of the fingerprint detection area 103, otherwise the optical fingerprint device 130 may not be able to collect fingerprint images, resulting in poor user experience.
  • the optical fingerprint device 130 may specifically include multiple optical fingerprint sensors; the multiple optical fingerprint sensors may be arranged side by side under the display screen 120 in a splicing manner, and the multiple optical fingerprint sensors The sensing area of the fingerprint sensor together constitutes the fingerprint detection area 103 of the optical fingerprint device 130.
  • the fingerprint detection area 103 of the optical fingerprint device 130 may include multiple sub-areas, and each sub-area corresponds to the sensing area of one of the optical fingerprint sensors, so that the fingerprint collection area of the optical fingerprint module 130 103 can be extended to the main area of the lower half of the display screen, that is, to the area where the finger is habitually pressed, so as to realize the blind fingerprint input operation.
  • the fingerprint detection area 130 can also be extended to half of the display area or even the entire display area, thereby realizing half-screen or full-screen fingerprint detection.
  • TEE Trusted Execution Environment
  • the TrustZone environment such as the TrustZone environment, or Qualcomm’s QSEE TEE, secure digital signal processing (Digital Signal Processing) Signal Processing, DSP), etc.
  • DSP Digital Signal Processing
  • the TrustZone is an isolated and trusted operating system that runs on electronic devices and can be used for applications with higher security requirements.
  • TEEs such as TrustZone or Qualcomm’s Secure DSP support single-threaded applications. That is to say, when performing fingerprint recognition functions, if there are multiple fingerprint templates, the fingerprint recognition function can only be performed according to each fingerprint template in sequence. Fingerprint recognition takes a long time.
  • Figure 2 and Figure 3 the user has registered 5 fingerprint templates as an example to illustrate the specific fingerprint identification process.
  • Figure 2 is a flow chart of fingerprint identification based on five fingerprint templates. As shown in Figure 2, the specific identification process may include the following steps:
  • S202 Judge whether the fingerprint recognition is successful, if successful, the process jumps to S212; otherwise, the process jumps to S203;
  • S210 Judge whether the fingerprint recognition is successful, if successful, the process jumps to S212; otherwise, the process jumps to S211.
  • this application provides a fingerprint recognition solution that can split the fingerprint recognition function into multiple functional modules, and use multiple security environments to execute the multiple functional modules in parallel, thereby shortening the fingerprint recognition time and improving users Experience.
  • the fingerprint identification process may be referred to as a fingerprint authentication process, and the fingerprint identification process may also be referred to as a fingerprint authentication process.
  • FIG. 4 is a schematic flowchart of a fingerprint identification method 400 based on multiple security environments according to an embodiment of the present application.
  • the method 400 may be applied to a fingerprint identification system based on multiple security environments. As shown in FIG. 4, the method 400 includes:
  • the fingerprint recognition processing of the fingerprint image to be recognized includes the first fingerprint recognition processing and the second fingerprint recognition processing, and the second fingerprint recognition processing based on the same fingerprint template is executed later than the first fingerprint recognition processing Implementation.
  • the method 400 may be executed by a processing unit in the fingerprint identification system, and the processing unit may be a microcontroller (Micro Control Unit, MCU) in a fingerprint device, or may also be a processor of an electronic device Or the controller, or may also include the MCU of the fingerprint device and the processor of the electronic device, that is, the method 400 can be executed by the processor of the electronic device and the MCU of the fingerprint device together.
  • MCU Micro Control Unit
  • the fingerprint recognition system is used as the execution subject to describe The fingerprint identification method according to the embodiment of the present application.
  • the fingerprint recognition function can be split into multiple processing modules, for example, a first fingerprint recognition module and a second fingerprint recognition module.
  • the first fingerprint recognition module and the second fingerprint recognition module can be identified separately
  • the fingerprint image is subjected to the first fingerprint recognition processing and the second fingerprint recognition processing, wherein the second fingerprint recognition processing based on the same fingerprint template is later than the first fingerprint recognition processing, that is to say, after executing the fingerprint based on a certain fingerprint template
  • the second fingerprint identification process is executed according to the fingerprint template.
  • the fingerprint recognition function can be performed in multiple security environments, where the multiple security environments include a first security environment and a second security environment, and the first security environment and the second security environment can be used for Run applications or functions with high safety requirements.
  • the first security environment may be a SecureDsp environment
  • the second security environment may be the aforementioned TrustZone environment
  • the first security environment may be a QSEE environment
  • the The second security environment may be a TrustZone environment
  • the second security environment may be a SecureDsp environment
  • the first security environment may be a TrustZone environment, etc.
  • the embodiment of the present application is not limited thereto.
  • the fingerprint recognition system may perform fingerprint recognition on the fingerprint image to be recognized according to multiple fingerprint templates, where the multiple fingerprint templates include the first fingerprint template and The second fingerprint template, specifically, within the same time period, the fingerprint identification system can perform the second fingerprint identification process on the fingerprint image to be identified according to the first fingerprint template in the second security environment, and at the same time in the first security environment Perform the first fingerprint identification process on the fingerprint image to be identified according to the second fingerprint template, that is, the fingerprint identification system can use multiple security environments to execute the fingerprint identification process in parallel based on multiple fingerprint templates at the same time, which can shorten the fingerprint identification time. Improve user experience.
  • the first fingerprint recognition processing may include rough matching processing operations on the fingerprint image, such as fingerprint image preprocessing, feature information extraction, similarity matching, etc.; the second fingerprint recognition The processing may include fine matching processing operations on the fingerprint image, for example, comparing the detailed information (or partial information) of the fingerprint image and the fingerprint template to determine the degree of matching between the two, and then determining whether the fingerprint recognition is successful.
  • the first fingerprint identification module and the second fingerprint identification module can be divided according to the execution time (or time-consuming) of each functional module of the fingerprint identification function, so that the first fingerprint identification
  • the processing time is equivalent to the time consumption of the second fingerprint identification process, that is, the time consumption of the first fingerprint identification process and the second fingerprint identification process are the same or similar.
  • the divided time of the second fingerprint recognition module and the first fingerprint recognition module can be or approximately 50ms. In this way, in the same time period, the Performing the second fingerprint identification processing function and the first fingerprint identification processing function separately in the environment is beneficial to shorten the total time-consuming of the fingerprint identification function.
  • the second fingerprint recognition process is performed on the fingerprint image to be recognized according to the first fingerprint template, and the final fingerprint recognition result can be obtained. If the fingerprint recognition result is that the fingerprint recognition failed, the method 400 may further include:
  • the second time period perform the second fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the second security environment, wherein the second time period is later than the The first time period.
  • the first fingerprint recognition module performs the first fingerprint recognition process on the fingerprint image to be recognized based on the second fingerprint template
  • the second fingerprint recognition template may perform the first fingerprint recognition process on the fingerprint image to be recognized based on the first fingerprint template.
  • Fingerprint recognition processing If the fingerprint recognition result obtained by performing the second fingerprint recognition processing according to the first fingerprint recognition template is fingerprint recognition failure, that is, the fingerprint image to be recognized fails to match the first fingerprint template, then after the first time period, the The second fingerprint recognition module may further perform second fingerprint recognition processing on the fingerprint image to be recognized according to the second fingerprint template, and determine the fingerprint recognition result for the second fingerprint template, that is, determine whether the fingerprint image to be recognized matches the second fingerprint template .
  • the second fingerprint recognition module performs the second fingerprint recognition processing on the second fingerprint template based on the second fingerprint template
  • the fingerprint identification result obtained by performing the first fingerprint identification process can reduce the time consumption of the first fingerprint identification process in the total time consumption of the fingerprint identification function.
  • the second fingerprint recognition processing may perform further fingerprint recognition processing based on the similarity matrix obtained by the first fingerprint recognition processing .
  • the fingerprint identification process of the first fingerprint template does not need to be split, that is, the fingerprint identification system can be based on the first fingerprint template in the second security environment.
  • the template sequentially performs the first fingerprint recognition processing and the second fingerprint recognition processing on the fingerprint image to be recognized. This is because the second fingerprint identification process and the first fingerprint identification process are sequential, and the first fingerprint identification process and the second fingerprint identification process cannot be performed simultaneously based on the same fingerprint template.
  • the second fingerprint identification module for fingerprint identification processing and the first fingerprint identification module for performing the first fingerprint identification processing can exchange information through shared memory.
  • the second fingerprint identification module may obtain the fingerprint identification result obtained by the first fingerprint identification module from the shared memory, for example, similarity matrix information.
  • the first fingerprint identification module may also perform the first fingerprint identification After the identification processing operation, the result obtained by the first fingerprint identification processing operation is stored in the shared memory.
  • the second fingerprint identification module and the first fingerprint identification module can execute the corresponding fingerprint identification processing function based on the control command of the processor, that is, the processor can control the second fingerprint identification module and the first fingerprint identification module. Perform corresponding fingerprint recognition processing functions together in a specific time period.
  • the processor may be a processor or a controller of an electronic device, or may also be an MCU of a fingerprint device.
  • the fingerprint templates registered by the user are five fingerprint templates (fingerprint template 1 to fingerprint template 5), the second security environment is the TrustZone environment, and the first security environment is the SecureDsp environment as an example.
  • the fingerprint identification method according to the embodiment of the present application is described in detail. Among them, FIG. 5 is a schematic flowchart of a fingerprint identification method using five fingerprint templates as an example, and FIG. 6 is a sequence diagram of the fingerprint identification process shown in FIG. 5.
  • the fingerprint identification method may include the following:
  • the second fingerprint identification process may be performed on the fingerprint image to be identified according to the fingerprint identification result obtained in S601.
  • the second fingerprint identification process may be performed on the fingerprint image to be identified according to the fingerprint identification result obtained in S603.
  • the second fingerprint identification process may be performed on the fingerprint image to be identified according to the fingerprint identification result obtained in S605.
  • the second fingerprint identification process may be performed on the fingerprint image to be identified according to the fingerprint identification result obtained in S607.
  • Table 1 shows the comparison between the single-threaded fingerprint identification scheme and the parallel fingerprint identification scheme according to the embodiment of the present application under different numbers of fingerprint templates. As can be seen from Table 1, the more the number of fingerprint templates, the more obvious the advantages of the parallel fingerprint identification scheme.
  • Fig. 7 is a schematic flowchart of rough matching processing. As shown in Fig. 7, the rough matching processing process may include the following steps:
  • the fingerprint template registered by the user can be obtained from the memory of the electronic device.
  • the characteristic information of the fingerprint template may include, but is not limited to, information such as the position and number of the end points and bifurcation points of the lines.
  • the user's fingerprint sample collected by the fingerprint sensor is copied to the memory of the first security environment, so as to perform subsequent processing operations in the first security environment.
  • the fingerprint samples may be preprocessed to improve the accuracy of feature extraction.
  • a filtering algorithm may be used to remove interference information such as noise, burrs, or breaks in the fingerprint image.
  • S705 Determine the similarity matrix between the fingerprint template and the fingerprint sample.
  • the feature information of the fingerprint template extracted in S702 can be matched with the feature information of the fingerprint sample extracted in S704 to determine the similarity of the corresponding feature points of the fingerprint template and the fingerprint sample to obtain a similarity matrix.
  • fine matching processing may be performed on the fingerprint samples.
  • the fine matching processing process may include the following steps:
  • S801 Determine the matching area between the fingerprint template and the fingerprint sample according to the similarity matrix obtained in S705;
  • S803 Determine the fingerprint recognition result according to the matching degree information. For example, when the matching degree is greater than a certain threshold, it is determined that the fingerprint recognition is successful, otherwise it is determined that the fingerprint recognition fails.
  • the above description only takes the first fingerprint identification process as the coarse matching process and the second fingerprint identification process as the fine matching process as an example.
  • the embodiment of the present application may also adopt other function division methods, or the fingerprint identification function may also be used. Divided into more functional modules. It can be understood that when the fingerprint recognition algorithm is different, the functions performed by the first fingerprint recognition process and the second fingerprint recognition process are also different, which is not specifically limited in the embodiment of the present application.
  • FIG. 9 is a schematic block diagram of a fingerprint identification system according to an embodiment of the present application. As shown in FIG. 9, the fingerprint identification system 900 includes:
  • the first fingerprint identification module 901 is configured to perform the first fingerprint identification process on the fingerprint image to be identified according to the second fingerprint template in the first security environment in the first time period;
  • the second fingerprint identification module 902 is configured to perform a second fingerprint identification process on the fingerprint image to be identified according to the first fingerprint template in the second security environment in the first time period.
  • the second fingerprint identification module 902 is further configured to:
  • the second time period perform the second fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the second security environment, wherein the second time period is later than the The first time period.
  • the second fingerprint identification module 902 is specifically configured to:
  • the template Based on the fingerprint recognition result of performing the first fingerprint recognition processing on the fingerprint image to be recognized in the first secure environment according to the second fingerprint template, in the second secure environment according to the second fingerprint
  • the template performs the second fingerprint identification processing on the fingerprint image to be identified.
  • the second fingerprint identification module 902 is further configured to:
  • the first fingerprint identification module 901 is further configured to:
  • the fingerprint identification result of the first fingerprint identification process is stored in a shared memory.
  • the fingerprint identification system 900 further includes:
  • the control module 903 is configured to send a first control instruction to the first fingerprint identification module, where the first control instruction is used to instruct the first fingerprint identification module to perform the operation according to the second fingerprint in the first security environment
  • the template performs the first fingerprint identification processing on the fingerprint image to be identified
  • the second fingerprint identification module 902 is further configured to:
  • the first fingerprint identification process is performed on the fingerprint image to be identified according to the first fingerprint template in the second security environment.
  • the first fingerprint identification process is a coarse matching process
  • the second fingerprint identification process is a fine matching process
  • the coarse matching process includes the characteristic information and the waiting process according to the fingerprint template.
  • the feature information of the fingerprint image is recognized for matching
  • the fine matching processing includes performing minutiae matching according to the fingerprint template and the fingerprint information in the matching area of the fingerprint image to be recognized.
  • the first fingerprint identification module 901 is specifically configured to:
  • the feature information of the second fingerprint template and the feature information of the fingerprint image to be recognized are matched to obtain a similarity matrix, and the values in the similarity matrix are used to indicate the second fingerprint template and the to-be-recognized The similarity of the corresponding feature points of the fingerprint image.
  • the second fingerprint identification module 902 is specifically configured to:
  • the fingerprint recognition result is determined.
  • the second fingerprint identification module 902 is specifically configured to:
  • the matching degree data is greater than or equal to a specific threshold, it is determined that the pattern recognition is successful.
  • the matching degree data is less than the specific threshold, it is determined that the fingerprint recognition fails.
  • the difference between the time consumption of the second fingerprint identification process and the time consumption of the first fingerprint identification process is less than a first time threshold.
  • the first security environment is a SecureDsp environment
  • the second security environment is a TrustZone environment.
  • the fingerprint identification system 900 may be provided in a fingerprint module, or the fingerprint identification system may be the fingerprint module, or the fingerprint identification system may include the fingerprint module.
  • the size of the sequence numbers of the above-mentioned processes does not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, and should not correspond to the differences in the embodiments of the present application.
  • the implementation process constitutes any limitation.
  • An embodiment of the present application also provides an electronic device 300.
  • the electronic device 800 may include a fingerprint identification system 310, and the fingerprint identification system 310 may be the fingerprint identification system 900 in the foregoing embodiment.
  • the fingerprint identification system 310 can be used to execute the content in the method embodiments shown in FIGS. 4 to 6.
  • the electronic device may be an electronic device supporting the Android system, such as portable or mobile computing devices such as smart phones, laptops, tablet computers, and gaming devices, as well as electronic databases, automobiles, and bank automated teller machines (Automated Teller Machine). , ATM) and other electronic devices, but the embodiments of the present application are not limited thereto.
  • Android such as portable or mobile computing devices such as smart phones, laptops, tablet computers, and gaming devices, as well as electronic databases, automobiles, and bank automated teller machines (Automated Teller Machine). , ATM) and other electronic devices, but the embodiments of the present application are not limited thereto.
  • the processor of the embodiment of the present application may be an integrated circuit chip with signal processing capability.
  • the steps of the foregoing method embodiments may be completed by instructions in the form of hardware integrated logic circuits or software in the processor.
  • the above-mentioned processor may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other Programming logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA ready-made programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the steps of the method disclosed in combination with the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
  • the terminal or the electronic device of the embodiment of the present application may further include a memory
  • the memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory can be Read-Only Memory (ROM), Programmable Read-Only Memory (Programmable ROM, PROM), Erasable Programmable Read-Only Memory (Erasable PROM, EPROM), and Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory.
  • the volatile memory may be a random access memory (Random Access Memory, RAM), which is used as an external cache.
  • RAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM DDR SDRAM
  • enhanced SDRAM ESDRAM
  • Synchlink DRAM SLDRAM
  • Direct Rambus RAM Direct Rambus RAM
  • the embodiment of the present application also proposes a computer-readable storage medium that stores one or more programs, and the one or more programs include instructions.
  • the instructions When the instructions are included in a portable electronic device that includes multiple application programs When executed, the portable electronic device can be made to execute the method of the embodiment shown in FIG. 4 to FIG. 6.
  • the embodiment of the present application also proposes a computer program, which includes instructions.
  • the computer program When the computer program is executed by a computer, the computer can execute the method of the embodiments shown in FIG. 4 to FIG. 6.
  • An embodiment of the present application also provides a chip that includes an input and output interface, at least one processor, at least one memory, and a bus.
  • the at least one memory is used to store instructions, and the at least one processor is used to call the at least one memory. To execute the method of the embodiment shown in FIG. 4 to FIG. 6.
  • the disclosed system, device, and method can be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical, or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .

Abstract

A multiple security environments-based in-display fingerprint recognition method and system, and an electronic device. The method comprises: in a first duration, performing, according to a second fingerprint template in a first security environment, first fingerprint recognition processing on a fingerprint image to be recognized, and performing, according to a first fingerprint template in a second security environment, second fingerprint recognition processing on the fingerprint image to be recognized, wherein the fingerprint recognition processing performed on the fingerprint image to be recognized comprises the first fingerprint recognition processing and the second fingerprint recognition processing, and the execution of the second fingerprint recognition processing based on the same fingerprint template is later than the execution of the first fingerprint recognition processing.

Description

基于多安全环境的指纹识别方法、指纹识别系统和电子设备Fingerprint identification method, fingerprint identification system and electronic equipment based on multiple security environments 技术领域Technical field
本申请涉及指纹技术领域,并且更具体地,涉及基于多安全环境的指纹识别方法、指纹识别系统和电子设备。This application relates to the field of fingerprint technology, and more specifically, to a fingerprint identification method, a fingerprint identification system, and an electronic device based on a multi-security environment.
背景技术Background technique
屏下指纹识别技术提高了屏占比,使得指纹识别面积越来越大,这就是需要更多的图像处理模块,相应的指纹识别的耗时也更长,尤其是在用户注册了多个指纹模板的情况下,指纹识别的过程更长,影响用户体验。The fingerprint recognition technology under the screen increases the screen-to-body ratio, making the fingerprint recognition area larger and larger. This means that more image processing modules are required, and the corresponding fingerprint recognition takes longer, especially when the user has registered multiple fingerprints. In the case of templates, the fingerprint recognition process is longer, which affects the user experience.
发明内容Summary of the invention
本申请实施例提供一种基于多安全环境的指纹识别方法、指纹识别系统和电子设备,能够降低指纹识别时间,提升用户体验。The embodiments of the present application provide a fingerprint identification method, fingerprint identification system, and electronic device based on multiple security environments, which can reduce fingerprint identification time and improve user experience.
第一方面,提供了一种基于多安全环境的指纹识别方法,所述方法包括:In the first aspect, a fingerprint identification method based on multiple security environments is provided, the method including:
在第一时间段内,在第一安全环境中根据第二指纹模板对待识别指纹图像进行第一指纹识别处理,并且在第二安全环境中根据第一指纹模板对所述待识别指纹图像进行第二指纹识别处理。In the first time period, perform the first fingerprint recognition process on the fingerprint image to be recognized based on the second fingerprint template in the first security environment, and perform the first fingerprint recognition process on the fingerprint image to be recognized based on the first fingerprint template in the second security environment. 2. Fingerprint recognition processing.
在一种可能的实现方式中,所述方法还包括:In a possible implementation manner, the method further includes:
在第二时间段内,在所述第二安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第二指纹识别处理,其中,所述第二时间段晚于所述第一时间段。In the second time period, perform the second fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the second security environment, wherein the second time period is later than the The first time period.
在一种可能的实现方式中,所述在所述第二安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第二指纹识别处理,包括:In a possible implementation manner, the performing the second fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the second security environment includes:
基于在所述第一安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理的指纹识别结果,在所述第二安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第二指纹识别处理。Based on the fingerprint recognition result of performing the first fingerprint recognition processing on the fingerprint image to be recognized in the first secure environment according to the second fingerprint template, in the second secure environment according to the second fingerprint The template performs the second fingerprint identification processing on the fingerprint image to be identified.
在一种可能的实现方式中,所述方法还包括:In a possible implementation manner, the method further includes:
从共享内存获取根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理的指纹识别结果。Acquiring, from the shared memory, a fingerprint recognition result of performing the first fingerprint recognition processing on the fingerprint image to be recognized according to the second fingerprint template.
在一种可能的实现方式中,在所述在第一安全环境中根据第二指纹模板 对所述待识别指纹图像进行第一指纹识别处理之后,所述方法还包括:In a possible implementation, after the first fingerprint recognition processing is performed on the fingerprint image to be recognized according to the second fingerprint template in the first security environment, the method further includes:
将所述第一指纹识别处理的指纹识别结果存储在共享内存。Store the fingerprint recognition result of the first fingerprint recognition process in the shared memory.
在一种可能的实现方式中,所述方法还包括:In a possible implementation manner, the method further includes:
接收来自处理器的控制指令,所述控制指令用于指示在所述第一安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理,并且在所述第二安全环境中根据所述第一指纹模板对所述待识别指纹图像进行所述第二指纹识别处理。Receive a control instruction from the processor, where the control instruction is used to instruct to perform the first fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the first security environment, and In the second security environment, the second fingerprint identification process is performed on the fingerprint image to be identified according to the first fingerprint template.
在一种可能的实现方式中,若所述第一指纹模板为第一个指纹模板,所述方法还包括:In a possible implementation manner, if the first fingerprint template is the first fingerprint template, the method further includes:
在所述第一时间段内,在所述第二安全环境中根据所述第一指纹模板对所述待识别指纹图像进行所述第一指纹识别处理。In the first time period, the first fingerprint identification process is performed on the fingerprint image to be identified according to the first fingerprint template in the second security environment.
在一种可能的实现方式中,所述第一指纹识别处理为粗匹配处理,所述第二指纹识别处理为细匹配处理,所述粗匹配处理包括根据指纹模板的特征信息和待识别指纹图像的特征信息进行匹配,所述细匹配处理包括根据指纹模板和待识别指纹图像的匹配区域中的指纹信息进行细节匹配。In a possible implementation manner, the first fingerprint identification process is a coarse matching process, the second fingerprint identification process is a fine matching process, and the coarse matching process includes the characteristic information of the fingerprint template and the fingerprint image to be identified. The fine matching process includes performing fine matching according to the fingerprint information in the matching area of the fingerprint template and the fingerprint image to be identified.
在一种可能的实现方式中,所述在第一安全环境中根据第二指纹模板对所述待识别指纹图像进行第一指纹识别处理,包括:In a possible implementation manner, the performing the first fingerprint recognition processing on the fingerprint image to be recognized according to the second fingerprint template in the first security environment includes:
提取所述第二指纹模板的特征信息和所述待识别指纹图像的特征信息;Extracting the feature information of the second fingerprint template and the feature information of the fingerprint image to be identified;
将所述第二指纹模板的特征信息和所述待识别指纹图像的特征信息进行匹配,得到相似度矩阵,所述相似度矩阵中的数值用于指示所述第二指纹模板和所述待识别指纹图像的对应特征点的相似度。The feature information of the second fingerprint template and the feature information of the fingerprint image to be recognized are matched to obtain a similarity matrix, and the values in the similarity matrix are used to indicate the second fingerprint template and the to-be-recognized The similarity of the corresponding feature points of the fingerprint image.
在一种可能的实现方式中,所述在第二安全环境中根据第一指纹模板对待识别指纹图像进行第二指纹识别处理,包括:In a possible implementation manner, the performing second fingerprint recognition processing on the fingerprint image to be recognized according to the first fingerprint template in the second security environment includes:
根据所述第一指纹模板和所述待识别指纹图像的相似度矩阵,确定所述第一指纹模板和所述待识别指纹图像的匹配区域;Determining a matching area between the first fingerprint template and the fingerprint image to be recognized according to the similarity matrix between the first fingerprint template and the fingerprint image to be recognized;
将所述第一指纹模板和所述待识别指纹图像的匹配区域中的对应像素点进行匹配,得到匹配度数据;Matching the first fingerprint template with the corresponding pixels in the matching area of the fingerprint image to be identified to obtain matching degree data;
根据所述匹配度数据,确定指纹识别结果。According to the matching degree data, the fingerprint recognition result is determined.
在一种可能的实现方式中,所述根据所述匹配度信息,确定指纹识别结果,包括:若所述匹配度数据大于或等于特定阈值,确定纹识别成功;或者In a possible implementation manner, the determining the fingerprint recognition result according to the matching degree information includes: determining that the pattern recognition is successful if the matching degree data is greater than or equal to a certain threshold; or
若所述匹配度数据小于所述特定阈值,确定指纹识别失败。If the matching degree data is less than the specific threshold, it is determined that the fingerprint recognition fails.
在一种可能的实现方式中,所述第二指纹识别处理的耗时和所述第一指纹识别处理的耗时的差值的绝对值小于第一时间阈值。In a possible implementation manner, the absolute value of the difference between the time consuming of the second fingerprint identification process and the time consuming of the first fingerprint identification process is less than the first time threshold.
在一种可能的实现方式中,所述第一安全环境为SecureDsp环境,所述第二安全环境为TrustZone环境。In a possible implementation manner, the first security environment is a SecureDsp environment, and the second security environment is a TrustZone environment.
第二方面,提供了一种基于多安全环境的指纹识别系统,包括:In the second aspect, a fingerprint identification system based on multiple security environments is provided, including:
第一指纹识别模块,用于在第一时间段内,在第一安全环境中根据第二指纹模板对待识别指纹图像进行第一指纹识别处理;The first fingerprint identification module is configured to perform the first fingerprint identification process on the fingerprint image to be identified according to the second fingerprint template in the first security environment in the first time period;
第二指纹识别模块,用于在所述第一时间段内,在第二安全环境中根据第一指纹模板对所述待识别指纹图像进行第二指纹识别处理。The second fingerprint identification module is configured to perform a second fingerprint identification process on the fingerprint image to be identified according to the first fingerprint template in the second security environment in the first time period.
在一种可能的实现方式中,所述第二指纹识别模块还用于:In a possible implementation manner, the second fingerprint identification module is further used for:
在第二时间段内,在所述第二安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第二指纹识别处理,其中,所述第二时间段晚于所述第一时间段。In the second time period, perform the second fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the second security environment, wherein the second time period is later than the The first time period.
在一种可能的实现方式中,所述第二指纹识别模块具体用于:In a possible implementation manner, the second fingerprint identification module is specifically configured to:
基于在所述第一安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理的指纹识别结果,在所述第二安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第二指纹识别处理。Based on the fingerprint recognition result of performing the first fingerprint recognition processing on the fingerprint image to be recognized in the first secure environment according to the second fingerprint template, in the second secure environment according to the second fingerprint The template performs the second fingerprint identification processing on the fingerprint image to be identified.
在一种可能的实现方式中,所述第二指纹识别模块还用于:In a possible implementation manner, the second fingerprint identification module is further used for:
从共享内存获取根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理的指纹识别结果。Acquiring, from the shared memory, a fingerprint recognition result of performing the first fingerprint recognition processing on the fingerprint image to be recognized according to the second fingerprint template.
在一种可能的实现方式中,所述第一指纹识别模块还用于:In a possible implementation manner, the first fingerprint identification module is further used for:
在根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理之后,将所述第一指纹识别处理的指纹识别结果存储在共享内存。After performing the first fingerprint identification process on the fingerprint image to be identified according to the second fingerprint template, the fingerprint identification result of the first fingerprint identification process is stored in a shared memory.
在一种可能的实现方式中,所述指纹识别系统还包括:In a possible implementation manner, the fingerprint identification system further includes:
控制模块,用于向所述第一指纹识别模块发送第一控制指令,所述第一控制指令用于指示所述第一指纹识别模块在所述第一安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理;以及The control module is configured to send a first control instruction to the first fingerprint identification module, where the first control instruction is used to instruct the first fingerprint identification module to perform according to the second fingerprint template in the first security environment Performing the first fingerprint identification processing on the fingerprint image to be identified; and
向所述第二指纹识别模块发送第二控制指令,所述第二控制指令用于指示所述第二指纹识别模块在所述第二安全环境中根据所述第一指纹模板对所述待识别指纹图像进行所述第一指纹识别处理。Send a second control instruction to the second fingerprint identification module, where the second control instruction is used to instruct the second fingerprint identification module to perform the identification according to the first fingerprint template in the second security environment The fingerprint image undergoes the first fingerprint identification process.
在一种可能的实现方式中,若所述第一指纹模板为第一个指纹模板,所 述第二指纹识别模块还用于:In a possible implementation, if the first fingerprint template is the first fingerprint template, the second fingerprint identification module is also used to:
在所述第一时间段内,在所述第二安全环境中根据所述第一指纹模板对所述待识别指纹图像进行所述第一指纹识别处理。In the first time period, the first fingerprint identification process is performed on the fingerprint image to be identified according to the first fingerprint template in the second security environment.
在一种可能的实现方式中,所述第一指纹识别处理为粗匹配处理,所述第二指纹识别处理为细匹配处理,所述粗匹配处理包括根据指纹模板的特征信息和待识别指纹图像的特征信息进行匹配,所述细匹配处理包括根据指纹模板和待识别指纹图像的匹配区域中的指纹信息进行细节匹配。In a possible implementation manner, the first fingerprint identification process is a coarse matching process, the second fingerprint identification process is a fine matching process, and the coarse matching process includes the characteristic information of the fingerprint template and the fingerprint image to be identified. The fine matching process includes performing fine matching according to the fingerprint information in the matching area of the fingerprint template and the fingerprint image to be identified.
在一种可能的实现方式中,所述第一指纹识别模块具体用于:In a possible implementation manner, the first fingerprint identification module is specifically configured to:
提取所述第二指纹模板的特征信息和所述待识别指纹图像的特征信息;Extracting the feature information of the second fingerprint template and the feature information of the fingerprint image to be identified;
将所述第二指纹模板的特征信息和所述待识别指纹图像的特征信息进行匹配,得到相似度矩阵,所述相似度矩阵中的数值用于指示所述第二指纹模板和所述待识别指纹图像的对应特征点的相似度。The feature information of the second fingerprint template and the feature information of the fingerprint image to be recognized are matched to obtain a similarity matrix, and the values in the similarity matrix are used to indicate the second fingerprint template and the to-be-recognized The similarity of the corresponding feature points of the fingerprint image.
在一种可能的实现方式中,所述第二指纹识别模块具体用于:In a possible implementation manner, the second fingerprint identification module is specifically configured to:
根据所述第一指纹模板和所述待识别指纹图像的相似度矩阵,确定所述第一指纹模板和所述待识别指纹图像的匹配区域;Determining a matching area between the first fingerprint template and the fingerprint image to be recognized according to the similarity matrix between the first fingerprint template and the fingerprint image to be recognized;
将所述第一指纹模板和所述待识别指纹图像的匹配区域中的对应像素点进行匹配,得到匹配度数据;Matching the first fingerprint template with the corresponding pixels in the matching area of the fingerprint image to be identified to obtain matching degree data;
根据所述匹配度数据,确定指纹识别结果。According to the matching degree data, the fingerprint recognition result is determined.
在一种可能的实现方式中,所述第二指纹识别模块具体用于:In a possible implementation manner, the second fingerprint identification module is specifically configured to:
若所述匹配度数据大于或等于特定阈值,确定纹识别成功;或者If the matching degree data is greater than or equal to a specific threshold, it is determined that the pattern recognition is successful; or
若所述匹配度数据小于所述特定阈值,确定指纹识别失败。If the matching degree data is less than the specific threshold, it is determined that the fingerprint recognition fails.
在一种可能的实现方式中,所述第二指纹识别处理的耗时和所述第一指纹识别处理的耗时的差值小于第一时间阈值。In a possible implementation manner, the difference between the time-consuming process of the second fingerprint identification process and the time-consuming process of the first fingerprint identification process is less than the first time threshold.
在一种可能的实现方式中,所述第一安全环境为SecureDsp环境,所述第二安全环境为TrustZone环境。In a possible implementation manner, the first security environment is a SecureDsp environment, and the second security environment is a TrustZone environment.
第三方面,提供了一种芯片,该芯片包括输入输出接口、至少一个处理器、至少一个存储器和总线,该至少一个存储器用于存储指令,该至少一个处理器用于调用该至少一个存储器中的指令,以执行第一方面或第一方面的任一可能的实现方式中的方法。In a third aspect, a chip is provided. The chip includes an input/output interface, at least one processor, at least one memory, and a bus. The at least one memory is used to store instructions, and the at least one processor is used to call Instructions to execute the method in the first aspect or any possible implementation of the first aspect.
第四方面,提供了一种电子设备,包括如第二方面或第二方面的任一可能的实现方式中的指纹识别系统。In a fourth aspect, an electronic device is provided, including the fingerprint identification system as in the second aspect or any possible implementation of the second aspect.
第五方面,提供了一种计算机可读介质,用于存储计算机程序,所述计算机程序包括用于执行上述第一方面或第一方面的任一可能的实现方式中的指令。In a fifth aspect, a computer-readable medium is provided for storing a computer program, and the computer program includes instructions for executing the foregoing first aspect or any possible implementation manner of the first aspect.
第六方面,提供了一种包括指令的计算机程序产品,当计算机运行所述计算机程序产品的所述指令时,所述计算机执行上述第一方面或第一方面的任一可能的实现方式中的指纹识别方法。In a sixth aspect, a computer program product including instructions is provided. When a computer runs the instructions of the computer program product, the computer executes the first aspect or any of the possible implementations of the first aspect Fingerprint identification method.
具体地,该计算机程序产品可以运行于上述第四方面中的电子设备上。Specifically, the computer program product can run on the electronic device in the fourth aspect.
基于上述技术方案,可以将对待识别指纹的指纹识别处理拆分为多个指纹识别处理操作,例如,第一指纹识别处理和第二指纹识别处理,其中,基于同一指纹模板的该第二指纹识别处理晚于第一指纹识别处理,从而能够通过不同的安全环境并行根据多个指纹模板分别执行第一指纹识别处理和第二指纹识别处理,从而能够缩短指纹识别时间,提升用户体验。Based on the above technical solution, the fingerprint recognition processing of the fingerprint to be recognized can be split into multiple fingerprint recognition processing operations, for example, the first fingerprint recognition processing and the second fingerprint recognition processing, wherein the second fingerprint recognition based on the same fingerprint template The processing is later than the first fingerprint recognition processing, so that the first fingerprint recognition processing and the second fingerprint recognition processing can be performed in parallel according to multiple fingerprint templates in different security environments, so that the fingerprint recognition time can be shortened and the user experience can be improved.
附图说明BRIEF DESCRIPTION
图1A是根据本申请一实施例的电子设备的定向视图。Fig. 1A is a directional view of an electronic device according to an embodiment of the present application.
图1B是图1A所示的电子设备沿A-A’的部分剖面结构示意图。Fig. 1B is a schematic diagram of a partial cross-sectional structure of the electronic device shown in Fig. 1A along A-A'.
图2是一种典型的指纹识别方法的流程图。Figure 2 is a flowchart of a typical fingerprint identification method.
图3是一种典型的指纹识别方法的时序图。Figure 3 is a timing diagram of a typical fingerprint identification method.
图4是根据本申请实施例的指纹识别方法的示意性流程图。Fig. 4 is a schematic flowchart of a fingerprint identification method according to an embodiment of the present application.
图5是以5个指纹模板为例的指纹识别方法的流程图。Fig. 5 is a flowchart of a fingerprint identification method using five fingerprint templates as an example.
图6是图5所示的指纹识别过程的时序图。Fig. 6 is a sequence diagram of the fingerprint recognition process shown in Fig. 5.
图7是粗匹配处理的示意性流程图。Fig. 7 is a schematic flowchart of rough matching processing.
图8是细匹配处理的示意性流程图。Fig. 8 is a schematic flowchart of fine matching processing.
图9是根据本申请实施例的指纹识别系统的示意性结构图。Fig. 9 is a schematic structural diagram of a fingerprint identification system according to an embodiment of the present application.
图10是根据本申请实施例的电子设备的示意性结构图。Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式detailed description
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below in conjunction with the drawings.
作为一种常见的应用场景,本申请实施例提供的光学指纹系统可以应用在智能手机、平板电脑以及其他具有显示屏的移动终端或者其他终端设备;更具体地,在上述终端设备中,指纹识别装置可以具体为光学指纹装置,其 可以设置在显示屏下方的局部区域或者全部区域,从而形成屏下(Under-display)光学指纹系统。或者,所述指纹识别装置也可以部分或者全部集成至所述终端设备的显示屏内部,从而形成屏内(In-display)光学指纹系统。As a common application scenario, the optical fingerprint system provided in the embodiments of this application can be applied to smart phones, tablet computers, and other mobile terminals with display screens or other terminal devices; more specifically, in the above-mentioned terminal devices, fingerprint identification The device may specifically be an optical fingerprint device, which may be arranged in a partial area or an entire area below the display screen, thereby forming an under-display optical fingerprint system. Alternatively, the fingerprint identification device may be partially or fully integrated into the display screen of the terminal device, thereby forming an in-display optical fingerprint system.
图1A和图1B示出了本申请实施例可以适用的电子设备的示意图,其中,图1为电子设备10的正面示意图,图1B为图1A所示的电子设备10沿A’-A’的部分剖面结构示意图。1A and 1B show schematic diagrams of electronic devices to which the embodiments of the present application can be applied. Among them, FIG. 1 is a front schematic view of the electronic device 10, and FIG. 1B is the electronic device 10 shown in FIG. Partial sectional structure diagram.
如图1A和图1B所示,所述电子设备10包括显示屏120和光学指纹装置130,其中,所述光学指纹装置130设置在所述显示屏120下方的局部区域。所述光学指纹装置130包括光学指纹传感器,所述光学指纹传感器包括具有多个光学感应单元的感应阵列,所述感应阵列所在区域或者其感应区域为所述光学指纹装置130的指纹检测区域103。如图1A所示,所述指纹检测区域103位于所述显示屏120的显示区域之中。在一种替代实施例中,所述光学指纹装置130还可以设置在其他位置,比如所述显示屏120的侧面或者所述电子设备10的边缘非透光区域,并通过光路设计来将所述显示屏120的至少部分显示区域的光信号导引到所述光学指纹装置130,从而使得所述指纹检测区域103实际上位于所述显示屏120的显示区域。As shown in FIG. 1A and FIG. 1B, the electronic device 10 includes a display screen 120 and an optical fingerprint device 130, wherein the optical fingerprint device 130 is arranged in a partial area below the display screen 120. The optical fingerprint device 130 includes an optical fingerprint sensor, and the optical fingerprint sensor includes a sensing array with a plurality of optical sensing units, and the area where the sensing array is located or its sensing area is the fingerprint detection area 103 of the optical fingerprint device 130. As shown in FIG. 1A, the fingerprint detection area 103 is located in the display area of the display screen 120. In an alternative embodiment, the optical fingerprint device 130 may also be arranged in other positions, such as the side of the display screen 120 or the non-transmissive area at the edge of the electronic device 10, and the optical fingerprint device 130 may be designed to The optical signal of at least part of the display area of the display screen 120 is guided to the optical fingerprint device 130, so that the fingerprint detection area 103 is actually located in the display area of the display screen 120.
应当理解,所述指纹检测区域103的面积可以与所述光学指纹装置130的感应阵列的面积不同,例如通过例如透镜成像的光路设计、反射式折叠光路设计或者其他光线汇聚或者反射等光路设计,可以使得所述光学指纹装置130的指纹检测区域103的面积大于所述光学指纹装置130感应阵列的面积。在其他替代实现方式中,如果采用例如光线准直方式进行光路引导,所述光学指纹装置130的指纹检测区域103也可以设计成与所述光学指纹装置130的感应阵列的面积基本一致。It should be understood that the area of the fingerprint detection area 103 may be different from the area of the sensing array of the optical fingerprint device 130, for example, through an optical path design such as lens imaging, a reflective folding optical path design, or other optical path design such as light convergence or reflection. The area of the fingerprint detection area 103 of the optical fingerprint device 130 can be made larger than the area of the sensing array of the optical fingerprint device 130. In other alternative implementations, if for example a light collimation method is used for light path guidance, the fingerprint detection area 103 of the optical fingerprint device 130 may also be designed to be substantially the same as the area of the sensing array of the optical fingerprint device 130.
因此,使用者在需要对所述终端设备进行解锁或者其他指纹验证的时候,只需要将手指按压在位于所述显示屏120的指纹检测区域103,便可以实现指纹输入。由于指纹检测可以在屏内实现,因此采用上述结构的电子设备10无需其正面专门预留空间来设置指纹按键(比如Home键),从而可以采用全面屏方案,即所述显示屏120的显示区域可以基本扩展到整个电子设备10的正面。Therefore, when the user needs to unlock the terminal device or perform other fingerprint verification, he only needs to press his finger on the fingerprint detection area 103 located in the display screen 120 to realize fingerprint input. Since fingerprint detection can be implemented in the screen, the electronic device 10 adopting the above structure does not need to reserve space on the front side to set fingerprint buttons (such as the Home button), so that a full screen solution can be adopted, that is, the display area of the display screen 120 It can be basically extended to the front of the entire electronic device 10.
作为一种可选的实现方式,如图1B所示,所述光学指纹装置130包括 光检测部分134和光学组件132,所述光检测部分134包括所述感应阵列以及与所述感应阵列电性连接的读取电路及其他辅助电路,其可以在通过半导体工艺制作在一个芯片(Die),比如光学成像芯片或者光学指纹传感器,所述感应阵列具体为光探测器(Photo detector)阵列,其包括多个呈阵列式分布的光探测器,所述光探测器可以作为如上所述的光学感应单元;所述光学组件132可以设置在所述光检测部分134的感应阵列的上方,其可以具体包括滤光层(Filter)、导光层或光路引导结构以及其他光学元件,所述滤光层可以用于滤除穿透手指的环境光,而所述导光层或光路引导结构主要用于从手指表面反射回来的反射光导引至所述感应阵列进行光学检测。As an optional implementation, as shown in FIG. 1B, the optical fingerprint device 130 includes a light detecting part 134 and an optical component 132, and the light detecting part 134 includes the sensor array and is electrically connected to the sensor array. The connected reading circuit and other auxiliary circuits can be fabricated on a chip (Die) by a semiconductor process, such as an optical imaging chip or an optical fingerprint sensor. The sensing array is specifically a photodetector (Photodetector) array, which includes A plurality of photodetectors distributed in an array, the photodetectors can be used as the above-mentioned optical sensing unit; the optical component 132 can be arranged above the sensing array of the photodetecting part 134, which can specifically include The filter layer (Filter), the light guide layer or the light path guide structure and other optical elements, the filter layer can be used to filter out the ambient light penetrating the finger, and the light guide layer or the light path guide structure is mainly used to remove The reflected light reflected from the finger surface is guided to the sensing array for optical detection.
在具体实现上,所述光学组件132可以与所述光检测部分134封装在同一个光学指纹部件。比如,所述光学组件132可以与所述光学检测部分134封装在同一个光学指纹芯片,也可以将所述光学组件132设置在所述光检测部分134所在的芯片外部,比如将所述光学组件132贴合在所述芯片上方,或者将所述光学组件132的部分元件集成在上述芯片之中。In terms of specific implementation, the optical assembly 132 and the light detecting part 134 may be packaged in the same optical fingerprint component. For example, the optical component 132 and the optical detection part 134 can be packaged in the same optical fingerprint chip, or the optical component 132 can be arranged outside the chip where the optical detection part 134 is located, for example, the optical component 132 is attached above the chip, or some components of the optical assembly 132 are integrated into the chip.
其中,所述光学组件132的导光层或者光路引导结构有多种实现方案,比如,所述导光层可以具体为在半导体硅片制作而成的准直器(Collimator)层,其具有多个准直单元或者微孔阵列,所述准直单元可以具体为小孔,从手指反射回来的反射光中,垂直入射到所述准直单元的光线可以穿过并被其下方的光学感应单元接收,而入射角度过大的光线在所述准直单元内部经过多次反射被衰减掉,因此每一个光学感应单元基本只能接收到其正上方的指纹纹路反射回来的反射光,从而所述感应阵列便可以检测出手指的指纹图像。Wherein, the light guide layer or light path guiding structure of the optical component 132 has multiple implementation schemes. For example, the light guide layer may specifically be a collimator layer made on a semiconductor silicon wafer, which has multiple A collimating unit or a micro-hole array, the collimating unit can be specifically a small hole, the reflected light reflected from the finger, the light that is perpendicularly incident on the collimating unit can pass through and be the optical sensing unit below it The light with an excessively large incident angle is attenuated by multiple reflections inside the collimating unit. Therefore, each optical sensor unit can basically only receive the reflected light reflected by the fingerprint pattern directly above it. The sensor array can detect the fingerprint image of the finger.
在另一种实施例中,所述导光层或者光路引导结构也可以为光学透镜(Lens)层,其具有一个或多个透镜单元,比如一个或多个非球面透镜组成的透镜组,其用于将从手指反射回来的反射光汇聚到其下方的光检测部分134的感应阵列,以使得所述感应阵列可以基于所述反射光进行成像,从而得到所述手指的指纹图像。可选地,所述光学透镜层在所述透镜单元的光路中还可以形成有针孔,所述针孔可以配合所述光学透镜层扩大所述光学指纹装置的视场,以提高所述光学指纹装置130的指纹成像效果。In another embodiment, the light guide layer or the light path guide structure may also be an optical lens (Lens) layer, which has one or more lens units, such as a lens group composed of one or more aspheric lenses, which The sensing array used to converge the reflected light reflected from the finger to the light detection part 134 below it, so that the sensing array can perform imaging based on the reflected light, thereby obtaining a fingerprint image of the finger. Optionally, the optical lens layer may further have a pinhole formed in the optical path of the lens unit, and the pinhole may cooperate with the optical lens layer to expand the field of view of the optical fingerprint device to improve the optical The fingerprint imaging effect of the fingerprint device 130.
在其他实施例中,所述导光层或者光路引导结构也可以具体采用微透镜(Micro-Lens)层,所述微透镜层具有由多个微透镜形成的微透镜阵列,其可 以通过半导体生长工艺或者其他工艺形成在所述光检测部分134的感应阵列上方,并且每一个微透镜可以分别对应于所述感应阵列的其中一个感应单元。并且,所述微透镜层和所述感应单元之间还可以形成其他光学膜层,比如介质层或者钝化层,更具体地,所述微透镜层和所述感应单元之间还可以包括具有微孔的挡光层,其中所述微孔形成在其对应的微透镜和感应单元之间,所述挡光层可以阻挡相邻微透镜和感应单元之间的光学干扰,并使得所述感应单元所对应的光线通过所述微透镜汇聚到所述微孔内部并经由所述微孔传输到所述感应单元以进行光学指纹成像。In other embodiments, the light guide layer or the light path guide structure may also specifically adopt a micro-lens (Micro-Lens) layer. The micro-lens layer has a micro-lens array formed by a plurality of micro-lenses, which can be grown by semiconductors. A process or other processes are formed above the sensing array of the light detecting part 134, and each microlens may correspond to one of the sensing units of the sensing array. In addition, other optical film layers may be formed between the micro lens layer and the sensing unit, such as a dielectric layer or a passivation layer. More specifically, the micro lens layer and the sensing unit may also include The light-blocking layer of the micro-hole, wherein the micro-hole is formed between its corresponding micro-lens and the sensing unit, the light-blocking layer can block the optical interference between the adjacent micro-lens and the sensing unit, and make the sensing The light corresponding to the unit is condensed into the microhole through the microlens and is transmitted to the sensing unit through the microhole to perform optical fingerprint imaging.
应当理解,上述光路引导结构的几种实现方案可以单独使用也可以结合使用,比如,可以在所述准直器层或者所述光学透镜层下方进一步设置微透镜层。当然,在所述准直器层或者所述光学透镜层与所述微透镜层结合使用时,其具体叠层结构或者光路可能需要按照实际需要进行调整。It should be understood that several implementation solutions of the above-mentioned optical path guiding structure can be used alone or in combination. For example, a microlens layer can be further provided under the collimator layer or the optical lens layer. Of course, when the collimator layer or the optical lens layer is used in combination with the microlens layer, its specific laminated structure or optical path may need to be adjusted according to actual needs.
作为一种可选的实施例,所述显示屏120可以采用具有自发光显示单元的显示屏,比如有机发光二极管(Organic Light-Emitting Diode,OLED)显示屏或者微型发光二极管(Micro-LED)显示屏。以采用OLED显示屏为例,所述光学指纹装置130可以利用所述OLED显示屏120位于所述指纹检测区域103的显示单元(即OLED光源)来作为光学指纹检测的激励光源。当手指按压在所述指纹检测区域103时,显示屏120向所述指纹检测区域103上方的目标手指发出一束光,该光在手指的表面发生反射形成反射光或者经过所述手指内部散射而形成散射光,在相关专利申请中,为便于描述,上述反射光和散射光统称为反射光。由于指纹的嵴(ridge)与峪(vally)对于光的反射能力不同,因此,来自指纹嵴的反射光和来自指纹峪的发射光具有不同的光强,反射光经过光学组件后,被光学指纹装置130中的感应阵列所接收并转换为相应的电信号,即指纹检测信号;基于所述指纹检测信号便可以获得指纹图像数据,并且可以进一步进行指纹匹配验证,从而在所述电子设备10实现光学指纹识别功能。As an optional embodiment, the display screen 120 may be a display screen with a self-luminous display unit, such as an organic light-emitting diode (Organic Light-Emitting Diode, OLED) display or a micro-LED (Micro-LED) display Screen. Taking an OLED display screen as an example, the optical fingerprint device 130 may use the display unit (ie, an OLED light source) of the OLED display screen 120 located in the fingerprint detection area 103 as an excitation light source for optical fingerprint detection. When a finger is pressed on the fingerprint detection area 103, the display screen 120 emits a beam of light to the target finger above the fingerprint detection area 103. The light is reflected on the surface of the finger to form reflected light or is scattered inside the finger. Form scattered light. In related patent applications, for ease of description, the above-mentioned reflected light and scattered light are collectively referred to as reflected light. Because the ridge and valley of the fingerprint have different light reflection capabilities, the reflected light from the fingerprint ridge and the emitted light from the fingerprint ridge have different light intensities. After the reflected light passes through the optical components, it is affected by the optical fingerprint. The sensing array in the device 130 receives and converts into a corresponding electrical signal, that is, a fingerprint detection signal; based on the fingerprint detection signal, fingerprint image data can be obtained, and fingerprint matching verification can be further performed, thereby implementing the electronic device 10 Optical fingerprint recognition function.
在其他实施例中,所述光学指纹装置130也可以采用内置光源或者外置光源来提供用于进行指纹检测的光信号。在这种情况下,所述光学指纹装置130可以适用于非自发光显示屏,比如液晶显示屏或者其他的被动发光显示屏。以应用在具有背光模组和液晶面板的液晶显示屏为例,为支持液晶显示屏的屏下指纹检测,所述电子设备10的光学指纹系统还可以包括用于光学 指纹检测的激励光源,所述激励光源可以具体为红外光源或者特定波长非可见光的光源,其可以设置在所述液晶显示屏的背光模组下方或者设置在所述电子设备10的保护盖板下方的边缘区域,而所述光学指纹装置130可以设置液晶面板或者保护盖板的边缘区域下方并通过光路引导以使得指纹检测光可以到达所述光学指纹装置130;或者,所述光学指纹装置130也可以设置在所述背光模组下方,且所述背光模组通过对扩散片、增亮片、反射片等膜层进行开孔或者其他光学设计以允许指纹检测光穿过液晶面板和背光模组并到达所述光学指纹装置130。当采用所述光学指纹装置130采用内置光源或者外置光源来提供用于进行指纹检测的光信号时,其检测原理与上面描述内容是一致的。In other embodiments, the optical fingerprint device 130 may also use a built-in light source or an external light source to provide an optical signal for fingerprint detection. In this case, the optical fingerprint device 130 may be suitable for non-self-luminous display screens, such as liquid crystal display screens or other passively-luminous display screens. Taking a liquid crystal display with a backlight module and a liquid crystal panel as an example, in order to support the under-screen fingerprint detection of the liquid crystal display, the optical fingerprint system of the electronic device 10 may also include an excitation light source for optical fingerprint detection. The excitation light source may specifically be an infrared light source or a light source of non-visible light of a specific wavelength, which may be arranged under the backlight module of the liquid crystal display screen or arranged in the edge area under the protective cover of the electronic device 10, and the The optical fingerprint device 130 can be arranged under the edge area of the liquid crystal panel or the protective cover and guided by the light path so that the fingerprint detection light can reach the optical fingerprint device 130; or, the optical fingerprint device 130 can also be arranged in the backlight module. Under the group, and the backlight module is designed to allow the fingerprint detection light to pass through the liquid crystal panel and the backlight module and reach the optical fingerprint device 130 by opening holes or other optical designs on the film layers such as diffuser, brightness enhancement film, and reflective film. . When the optical fingerprint device 130 adopts a built-in light source or an external light source to provide an optical signal for fingerprint detection, the detection principle is the same as that described above.
应当理解的是,在具体实现上,所述电子设备10还包括透明保护盖板,所述盖板可以为玻璃盖板或者蓝宝石盖板,其位于所述显示屏120的上方并覆盖所述电子设备10的正面。因为,本申请实施例中,所谓的手指按压在所述显示屏120实际上是指按压在所述显示屏120上方的盖板或者覆盖所述盖板的保护层表面。It should be understood that, in specific implementation, the electronic device 10 further includes a transparent protective cover, which may be a glass cover or a sapphire cover, which is located above the display screen 120 and covers the electronic The front of the device 10. Because, in the embodiment of the present application, the so-called finger pressing on the display screen 120 actually refers to pressing on the cover plate above the display screen 120 or covering the surface of the protective layer of the cover plate.
另一方面,在某些实施例中,所述光学指纹装置130可以仅包括一个光学指纹传感器,此时光学指纹装置130的指纹检测区域103的面积较小且位置固定,因此用户在进行指纹输入时需要将手指按压到所述指纹检测区域103的特定位置,否则光学指纹装置130可能无法采集到指纹图像而造成用户体验不佳。在其他替代实施例中,所述光学指纹装置130可以具体包括多个光学指纹传感器;所述多个光学指纹传感器可以通过拼接方式并排设置在所述显示屏120的下方,且所述多个光学指纹传感器的感应区域共同构成所述光学指纹装置130的指纹检测区域103。也即是说,所述光学指纹装置130的指纹检测区域103可以包括多个子区域,每个子区域分别对应于其中一个光学指纹传感器的感应区域,从而将所述光学指纹模组130的指纹采集区域103可以扩展到所述显示屏的下半部分的主要区域,即扩展到手指惯常按压区域,从而实现盲按式指纹输入操作。可替代地,当所述光学指纹传感器数量足够时,所述指纹检测区域130还可以扩展到半个显示区域甚至整个显示区域,从而实现半屏或者全屏指纹检测。On the other hand, in some embodiments, the optical fingerprint device 130 may include only one optical fingerprint sensor. At this time, the fingerprint detection area 103 of the optical fingerprint device 130 has a small area and a fixed position, so the user is performing fingerprint input At this time, it is necessary to press the finger to a specific position of the fingerprint detection area 103, otherwise the optical fingerprint device 130 may not be able to collect fingerprint images, resulting in poor user experience. In other alternative embodiments, the optical fingerprint device 130 may specifically include multiple optical fingerprint sensors; the multiple optical fingerprint sensors may be arranged side by side under the display screen 120 in a splicing manner, and the multiple optical fingerprint sensors The sensing area of the fingerprint sensor together constitutes the fingerprint detection area 103 of the optical fingerprint device 130. In other words, the fingerprint detection area 103 of the optical fingerprint device 130 may include multiple sub-areas, and each sub-area corresponds to the sensing area of one of the optical fingerprint sensors, so that the fingerprint collection area of the optical fingerprint module 130 103 can be extended to the main area of the lower half of the display screen, that is, to the area where the finger is habitually pressed, so as to realize the blind fingerprint input operation. Alternatively, when the number of optical fingerprint sensors is sufficient, the fingerprint detection area 130 can also be extended to half of the display area or even the entire display area, thereby realizing half-screen or full-screen fingerprint detection.
由于指纹识别功能对安全性的需求较高,因此其需要运行在安全可靠环境(Trusted Execution Environment,TEE)中,例如,TrustZone环境,或者, 高通的QSEE TEE,安全(Secure)数字信号处理(Digital Signal Processing,DSP)等,其中,该TrustZone是一种在电子设备上运行的隔离可信操作系统,可以用于对安全要求较高的应用。Because fingerprint recognition has high requirements for security, it needs to run in a safe and reliable environment (Trusted Execution Environment, TEE), such as the TrustZone environment, or Qualcomm’s QSEE TEE, secure digital signal processing (Digital Signal Processing) Signal Processing, DSP), etc., where the TrustZone is an isolated and trusted operating system that runs on electronic devices and can be used for applications with higher security requirements.
但是,TrustZone或高通的Secure DSP等TEE都支持单线程的应用,也就是说,在执行指纹识别功能时,如果有多个指纹模板,则只能依次顺序根据每个指纹模板执行指纹识别功能,指纹识别的耗时较长。结合图2和图3,以用户注册了5个指纹模板为例,说明具体的指纹识别过程。其中,图2为根据5个指纹模板进行指纹识别的流程图,如图2所示,具体识别过程可以包括如下步骤:However, TEEs such as TrustZone or Qualcomm’s Secure DSP support single-threaded applications. That is to say, when performing fingerprint recognition functions, if there are multiple fingerprint templates, the fingerprint recognition function can only be performed according to each fingerprint template in sequence. Fingerprint recognition takes a long time. Combining Figure 2 and Figure 3, the user has registered 5 fingerprint templates as an example to illustrate the specific fingerprint identification process. Among them, Figure 2 is a flow chart of fingerprint identification based on five fingerprint templates. As shown in Figure 2, the specific identification process may include the following steps:
S201,加载指纹模板1执行指纹识别功能;S201: Load the fingerprint template 1 to perform the fingerprint identification function;
S202,判断指纹识别是否成功,若成功,流程跳转到S212;否则,流程跳转至S203;S202: Judge whether the fingerprint recognition is successful, if successful, the process jumps to S212; otherwise, the process jumps to S203;
S203,加载指纹模板2执行指纹识别功能;S203: Load the fingerprint template 2 to execute the fingerprint identification function;
S204,判断指纹识别是否成功,若成功,流程跳转到S212;否则,流程跳转至S205;S204: Judge whether the fingerprint recognition is successful, if successful, the process jumps to S212; otherwise, the process jumps to S205;
S205,加载指纹模板3执行指纹识别功能;S205, load the fingerprint template 3 to execute the fingerprint identification function;
S206,判断指纹识别是否成功,若成功,流程跳转到S212;否则,流程跳转至S207;S206: Judge whether the fingerprint recognition is successful, if successful, the process jumps to S212; otherwise, the process jumps to S207;
S207,加载指纹模板4执行指纹识别功能;S207: Load the fingerprint template 4 to perform the fingerprint identification function;
S208,判断指纹识别是否成功,若成功,流程跳转到S212;否则,流程跳转至S209;S208: Judge whether the fingerprint recognition is successful, if successful, the process jumps to S212; otherwise, the process jumps to S209;
S209,加载指纹模板5执行指纹识别功能;S209: Load the fingerprint template 5 to perform the fingerprint identification function;
S210,判断指纹识别是否成功,若成功,流程跳转到S212;否则,流程跳转至S211。S210: Judge whether the fingerprint recognition is successful, if successful, the process jumps to S212; otherwise, the process jumps to S211.
S211,确定指纹识别失败;S211: Determine that the fingerprint recognition fails;
S212,确定指纹识别成功。S212: Determine that the fingerprint recognition is successful.
图3是图2所示实施例的时序图,从图3可以看出,在用户注册多个指纹模板的情况下,只能依次根据每个指纹模板执行指纹识别功能。若根据单个指纹模板的指纹识别过程的耗时为100ms,则在最差的情况下,指纹识别的总耗时则需要5*100ms=500ms。Fig. 3 is a sequence diagram of the embodiment shown in Fig. 2. As can be seen from Fig. 3, when a user registers multiple fingerprint templates, the fingerprint identification function can only be performed according to each fingerprint template in turn. If the time-consuming process of fingerprint identification based on a single fingerprint template is 100ms, in the worst case, the total time-consuming of fingerprint identification needs 5*100ms=500ms.
有鉴于此,本申请提供了一种指纹识别方案,可以将指纹识别功能拆分 为多个功能模块,利用多个安全环境,并行执行该多个功能模块,从而能够缩短指纹识别时间,提升用户体验。In view of this, this application provides a fingerprint recognition solution that can split the fingerprint recognition function into multiple functional modules, and use multiple security environments to execute the multiple functional modules in parallel, thereby shortening the fingerprint recognition time and improving users Experience.
应理解,在本申请实施例中,该指纹识别过程可以称为是指纹认证过程,指纹识别处理也可以称为指纹认证处理。It should be understood that, in the embodiments of the present application, the fingerprint identification process may be referred to as a fingerprint authentication process, and the fingerprint identification process may also be referred to as a fingerprint authentication process.
图4是根据本申请实施例的基于多安全环境的指纹识别方法400的示意性流程图,该方法400可以应用于基于多安全环境的指纹识别系统,如图4所示,该方法400包括:4 is a schematic flowchart of a fingerprint identification method 400 based on multiple security environments according to an embodiment of the present application. The method 400 may be applied to a fingerprint identification system based on multiple security environments. As shown in FIG. 4, the method 400 includes:
S401,在第一时间段内,在第一安全环境中根据第二指纹模板对待识别指纹图像进行第一指纹识别处理,并且在第二安全环境中根据第一指纹模板对所述待识别指纹图像进行第二指纹识别处理;S401. In the first time period, perform the first fingerprint recognition process on the fingerprint image to be recognized according to the second fingerprint template in the first secure environment, and perform the first fingerprint recognition process on the fingerprint image to be recognized according to the first fingerprint template in the second secure environment Perform the second fingerprint identification process;
其中,对待识别指纹图像的指纹识别处理包括所述第一指纹识别处理和所述第二指纹识别处理,基于同一指纹模板的所述第二指纹识别处理的执行晚于所述第一指纹识别处理的执行。Wherein, the fingerprint recognition processing of the fingerprint image to be recognized includes the first fingerprint recognition processing and the second fingerprint recognition processing, and the second fingerprint recognition processing based on the same fingerprint template is executed later than the first fingerprint recognition processing Implementation.
在一些实施例中,该方法400可以由该指纹识别系统中的处理单元执行,该处理单元可以为指纹装置中的微控制器(Micro Control Unit,MCU),或者也可以为电子设备的处理器或控制器,或者也可以包括该指纹装置的MCU和电子设备的处理器,即该方法400可以由电子设备的处理器和指纹装置的MCU共同执行,以下,以指纹识别系统为执行主体来描述根据本申请实施例的指纹识别方法。In some embodiments, the method 400 may be executed by a processing unit in the fingerprint identification system, and the processing unit may be a microcontroller (Micro Control Unit, MCU) in a fingerprint device, or may also be a processor of an electronic device Or the controller, or may also include the MCU of the fingerprint device and the processor of the electronic device, that is, the method 400 can be executed by the processor of the electronic device and the MCU of the fingerprint device together. Below, the fingerprint recognition system is used as the execution subject to describe The fingerprint identification method according to the embodiment of the present application.
在本申请实施例中,可以将指纹识别功能拆分为多个处理模块,例如,第一指纹识别模块和第二指纹识别模块,该第一指纹识别模块和第二指纹识别模块可以分别对待识别指纹图像进行第一指纹识别处理和第二指纹识别处理,其中,基于同一指纹模板的该第二指纹识别处理晚于第一指纹识别处理,也就是说,在根据某个指纹模板,执行完该第一指纹识别处理过程后再根据该指纹模板,执行该第二指纹识别处理过程。In the embodiment of the present application, the fingerprint recognition function can be split into multiple processing modules, for example, a first fingerprint recognition module and a second fingerprint recognition module. The first fingerprint recognition module and the second fingerprint recognition module can be identified separately The fingerprint image is subjected to the first fingerprint recognition processing and the second fingerprint recognition processing, wherein the second fingerprint recognition processing based on the same fingerprint template is later than the first fingerprint recognition processing, that is to say, after executing the fingerprint based on a certain fingerprint template After the first fingerprint identification process, the second fingerprint identification process is executed according to the fingerprint template.
在本申请实施例中,可以在多个安全环境中执行指纹识别功能,其中,该多个安全环境包括第一安全环境和第二安全环境,该第一安全环境和第二安全环境可以用于运行对安全要求较高的应用或功能。In the embodiment of the present application, the fingerprint recognition function can be performed in multiple security environments, where the multiple security environments include a first security environment and a second security environment, and the first security environment and the second security environment can be used for Run applications or functions with high safety requirements.
在某些实施例中,该第一安全环境可以为SecureDsp环境,该第二安全环境可以为前述的TrustZone环境;或者,在其他可选实施例中,该第一安全环境可以为QSEE环境,该第二安全环境可以为TrustZone环境;或者, 该第二安全环境可以为SecureDsp环境,该第一安全环境可以为TrustZone环境等,本申请实施例并不限于此。In some embodiments, the first security environment may be a SecureDsp environment, and the second security environment may be the aforementioned TrustZone environment; or, in other optional embodiments, the first security environment may be a QSEE environment, and the The second security environment may be a TrustZone environment; alternatively, the second security environment may be a SecureDsp environment, and the first security environment may be a TrustZone environment, etc. The embodiment of the present application is not limited thereto.
在本申请实施例中,在需要对待识别指纹图像进行指纹识别时,指纹识别系统可以根据多个指纹模板对该待识别指纹图像进行指纹识别,其中,该多个指纹模板包括第一指纹模板和第二指纹模板,具体地,在同一时间段内,该指纹识别系统可以在第二安全环境中根据第一指纹模板对该待识别指纹图像进行第二指纹识别处理,同时在第一安全环境中根据第二指纹模板对该待识别指纹图像进行第一指纹识别处理,也就是说,该指纹识别系统可以利用多个安全环境同时根据多个指纹模板并行执行指纹识别过程,能够缩短指纹识别时间,提升用户体验。In this embodiment of the application, when fingerprint recognition is required on the fingerprint image to be recognized, the fingerprint recognition system may perform fingerprint recognition on the fingerprint image to be recognized according to multiple fingerprint templates, where the multiple fingerprint templates include the first fingerprint template and The second fingerprint template, specifically, within the same time period, the fingerprint identification system can perform the second fingerprint identification process on the fingerprint image to be identified according to the first fingerprint template in the second security environment, and at the same time in the first security environment Perform the first fingerprint identification process on the fingerprint image to be identified according to the second fingerprint template, that is, the fingerprint identification system can use multiple security environments to execute the fingerprint identification process in parallel based on multiple fingerprint templates at the same time, which can shorten the fingerprint identification time. Improve user experience.
可选地,在本申请一个实施例中,该第一指纹识别处理可以包括对指纹图像的粗匹配处理操作,例如指纹图像的预处理,特征信息提取,相似度匹配等;该第二指纹识别处理可以包括对指纹图像的细匹配处理操作,例如,对比指纹图像和指纹模板的细节信息(或者说,局部信息)确定二者的匹配度,进而确定指纹识别是否成功。Optionally, in an embodiment of the present application, the first fingerprint recognition processing may include rough matching processing operations on the fingerprint image, such as fingerprint image preprocessing, feature information extraction, similarity matching, etc.; the second fingerprint recognition The processing may include fine matching processing operations on the fingerprint image, for example, comparing the detailed information (or partial information) of the fingerprint image and the fingerprint template to determine the degree of matching between the two, and then determining whether the fingerprint recognition is successful.
在本申请实施例中,可以根据指纹识别功能的每个功能模块的执行时长(或者说,耗时),划分该第一指纹识别模块和该第二指纹识别模块,以使该第一指纹识别处理的耗时和该第二指纹识别处理的耗时相当,即该第一指纹识别处理和第二指纹识别处理的耗时相同或相近。假设该指纹识别功能的总耗时为100ms,则划分后的该第二指纹识别模块和第一指纹识别模块的耗时可以为或近似为50ms,这样,在同一时间段内,在两个安全环境中分别执行该第二指纹识别处理功能和第一指纹识别处理功能,有利于缩短该指纹识别功能的总耗时。In the embodiment of the present application, the first fingerprint identification module and the second fingerprint identification module can be divided according to the execution time (or time-consuming) of each functional module of the fingerprint identification function, so that the first fingerprint identification The processing time is equivalent to the time consumption of the second fingerprint identification process, that is, the time consumption of the first fingerprint identification process and the second fingerprint identification process are the same or similar. Assuming that the total time consumption of the fingerprint recognition function is 100ms, the divided time of the second fingerprint recognition module and the first fingerprint recognition module can be or approximately 50ms. In this way, in the same time period, the Performing the second fingerprint identification processing function and the first fingerprint identification processing function separately in the environment is beneficial to shorten the total time-consuming of the fingerprint identification function.
在一些实施例中,根据第一指纹模板对待识别指纹图像进行第二指纹识别处理,可以得到最终的指纹识别结果,若指纹识别结果为指纹识别失败,进一步地,该方法400还可以包括:In some embodiments, the second fingerprint recognition process is performed on the fingerprint image to be recognized according to the first fingerprint template, and the final fingerprint recognition result can be obtained. If the fingerprint recognition result is that the fingerprint recognition failed, the method 400 may further include:
在第二时间段内,在所述第二安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第二指纹识别处理,其中,所述第二时间段晚于所述第一时间段。In the second time period, perform the second fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the second security environment, wherein the second time period is later than the The first time period.
具体而言,在第一时间段内,第一指纹识别模块根据第二指纹模板对待识别指纹图像进行第一指纹识别处理,同时第二指纹识别模板可以根据第一 指纹模板对待识别指纹图像进行第二指纹识别处理,若根据第一指纹识别模板进行第二指纹识别处理得到的指纹识别结果为指纹识别失败,即待识别指纹图像和第一指纹模板匹配失败,则在第一时间段之后,该第二指纹识别模块可以进一步根据第二指纹模板对该待识别指纹图像进行第二指纹识别处理,确定针对第二指纹模板的指纹识别结果,即确定该待识别指纹图像和第二指纹模板是否匹配。Specifically, in the first time period, the first fingerprint recognition module performs the first fingerprint recognition process on the fingerprint image to be recognized based on the second fingerprint template, and the second fingerprint recognition template may perform the first fingerprint recognition process on the fingerprint image to be recognized based on the first fingerprint template. 2. Fingerprint recognition processing. If the fingerprint recognition result obtained by performing the second fingerprint recognition processing according to the first fingerprint recognition template is fingerprint recognition failure, that is, the fingerprint image to be recognized fails to match the first fingerprint template, then after the first time period, the The second fingerprint recognition module may further perform second fingerprint recognition processing on the fingerprint image to be recognized according to the second fingerprint template, and determine the fingerprint recognition result for the second fingerprint template, that is, determine whether the fingerprint image to be recognized matches the second fingerprint template .
由于该第二指纹识别处理和第一指纹识别处理是有先后顺序的,在一些实施例中,该第二指纹识别模块对第二指纹模板进行第二指纹识别处理可以基于根据该第二指纹模板进行该第一指纹识别处理得到的指纹识别结果,从而能够在指纹识别功能的总耗时上缩减掉该第一指纹识别处理的耗时。可选地,若该第一指纹识别处理包括特征信息提取和特征相似度匹配等处理操作,则该第二指纹识别处理可以基于该第一指纹识别处理得到的相似度矩阵做进一步的指纹识别处理。Since the second fingerprint recognition processing and the first fingerprint recognition processing are sequential, in some embodiments, the second fingerprint recognition module performs the second fingerprint recognition processing on the second fingerprint template based on the second fingerprint template The fingerprint identification result obtained by performing the first fingerprint identification process can reduce the time consumption of the first fingerprint identification process in the total time consumption of the fingerprint identification function. Optionally, if the first fingerprint recognition processing includes processing operations such as feature information extraction and feature similarity matching, the second fingerprint recognition processing may perform further fingerprint recognition processing based on the similarity matrix obtained by the first fingerprint recognition processing .
在某些实施例中,若该第一指纹模板为第一指纹模板,可以不必对该第一指纹模板的指纹识别过程进行拆分,即指纹识别系统可以在第二安全环境中根据第一指纹模板依次对待识别指纹图像进行第一指纹识别处理和第二指纹识别处理。这是由于该第二指纹识别处理和第一指纹识别处理是有先后顺序的,不能同时根据同一指纹模板进行第一指纹识别处理以及第二指纹识别处理。In some embodiments, if the first fingerprint template is the first fingerprint template, the fingerprint identification process of the first fingerprint template does not need to be split, that is, the fingerprint identification system can be based on the first fingerprint template in the second security environment. The template sequentially performs the first fingerprint recognition processing and the second fingerprint recognition processing on the fingerprint image to be recognized. This is because the second fingerprint identification process and the first fingerprint identification process are sequential, and the first fingerprint identification process and the second fingerprint identification process cannot be performed simultaneously based on the same fingerprint template.
由于第一指纹识别处理和第二指纹识别处理是在不同的安全环境中执行的,安全环境通常是隔离的,安全环境之间通常不能进行直接通信,在某些实施例中,用于执行第二指纹识别处理的第二指纹识别模块和用于执行第一指纹识别处理的第一指纹识别模块可以通过共享内存交互信息。例如,该第二指纹识别模块可以从共享内存获取该第一指纹识别模块得到的指纹识别结果,例如,相似度矩阵信息,同样地,该第一指纹识别模块也可以在执行完该第一指纹识别处理操作后,将该第一指纹识别处理操作得到的结果存储在该共享内存中。Since the first fingerprint identification process and the second fingerprint identification process are executed in different security environments, the security environments are usually isolated, and direct communication between the security environments is usually not possible. In some embodiments, it is used to execute the first fingerprint identification process. 2. The second fingerprint identification module for fingerprint identification processing and the first fingerprint identification module for performing the first fingerprint identification processing can exchange information through shared memory. For example, the second fingerprint identification module may obtain the fingerprint identification result obtained by the first fingerprint identification module from the shared memory, for example, similarity matrix information. Similarly, the first fingerprint identification module may also perform the first fingerprint identification After the identification processing operation, the result obtained by the first fingerprint identification processing operation is stored in the shared memory.
在一些实施例中,该第二指纹识别模块和第一指纹识别模块执行对应的指纹识别处理功能可以基于处理器的控制命令,即处理器可以控制该第二指纹识别模块和第一指纹识别模块在特定的时间段内共同执行相应的指纹识别处理功能。在一些实施例中,该处理器可以为电子设备的处理器或控制器, 或者也可以为指纹装置的MCU。In some embodiments, the second fingerprint identification module and the first fingerprint identification module can execute the corresponding fingerprint identification processing function based on the control command of the processor, that is, the processor can control the second fingerprint identification module and the first fingerprint identification module. Perform corresponding fingerprint recognition processing functions together in a specific time period. In some embodiments, the processor may be a processor or a controller of an electronic device, or may also be an MCU of a fingerprint device.
以下,结合图5和图6,以用户注册的指纹模板为5个指纹模板(指纹模板1~指纹模板5),该第二安全环境为TrustZone环境,该第一安全环境为SecureDsp环境为例,详细说明根据本申请实施例的指纹识别方法。其中,图5为以5个指纹模板为例的指纹识别方法的示意性流程图,图6是图5所示的指纹识别过程的时序图。Hereinafter, in conjunction with Figures 5 and 6, the fingerprint templates registered by the user are five fingerprint templates (fingerprint template 1 to fingerprint template 5), the second security environment is the TrustZone environment, and the first security environment is the SecureDsp environment as an example. The fingerprint identification method according to the embodiment of the present application is described in detail. Among them, FIG. 5 is a schematic flowchart of a fingerprint identification method using five fingerprint templates as an example, and FIG. 6 is a sequence diagram of the fingerprint identification process shown in FIG. 5.
如图5所示,该指纹识别方法可以包括如下内容:As shown in Figure 5, the fingerprint identification method may include the following:
在第一时间段即P1内,在TrustZone环境中,执行S501,根据指纹模板1对待识别指纹图像进行第一指纹识别处理和第二指纹识别处理;In the first time period, namely P1, in the TrustZone environment, execute S501, and perform the first fingerprint recognition processing and the second fingerprint recognition processing on the fingerprint image to be recognized according to the fingerprint template 1;
进一步地,在S502中,判断指纹识别是否成功,若是,流程进行到S512,否则,流程进行到S503。Further, in S502, it is determined whether the fingerprint recognition is successful, if yes, the process proceeds to S512, otherwise, the process proceeds to S503.
与此同时,即在该第一时间段内,在SecureDsp环境中,执行S601,根据指纹模板2对待识别指纹图像进行第一指纹识别处理;At the same time, that is, within the first time period, in the SecureDsp environment, execute S601, and perform the first fingerprint identification process on the fingerprint image to be identified according to the fingerprint template 2;
进一步地,在S602中,判断是否还有未匹配的指纹模板,若是,流程进行到S603,否则,流程结束。Further, in S602, it is determined whether there is an unmatched fingerprint template, if yes, the process proceeds to S603, otherwise, the process ends.
在第二时间段即P2内,在TrustZone中,执行S503,根据指纹模板2对待识别指纹图像进行第二指纹识别处理;In the second time period, namely P2, in TrustZone, execute S503, and perform the second fingerprint identification process on the fingerprint image to be identified according to the fingerprint template 2;
具体地,可以根据S601中得到的指纹识别结果对该待识别指纹图像进行第二指纹识别处理。Specifically, the second fingerprint identification process may be performed on the fingerprint image to be identified according to the fingerprint identification result obtained in S601.
进一步地,在S504中,判断指纹识别是否成功,若是,流程进行到S512,否则,流程进行到S505。Further, in S504, it is judged whether the fingerprint recognition is successful, if yes, the process proceeds to S512, otherwise, the process proceeds to S505.
与此同时,即在该第二时间段内,在SecureDsp环境中,执行S603,根据指纹模板3对待识别指纹图像进行第一指纹识别处理;At the same time, that is, during the second time period, in the SecureDsp environment, execute S603, and perform the first fingerprint identification process on the fingerprint image to be identified according to the fingerprint template 3;
进一步地,在S604中,判断是否还有未匹配的指纹模板,若是,流程进行到S605,否则,流程结束;Further, in S604, it is judged whether there is an unmatched fingerprint template, if yes, the process proceeds to S605, otherwise, the process ends;
在第三时间段即P2内,在TrustZone中,执行S505,根据指纹模板3对待识别指纹图像进行第二指纹识别处理;In the third time period, namely P2, in TrustZone, execute S505, and perform the second fingerprint identification process on the fingerprint image to be identified according to the fingerprint template 3;
具体地,可以根据S603中得到的指纹识别结果对该待识别指纹图像进行第二指纹识别处理。Specifically, the second fingerprint identification process may be performed on the fingerprint image to be identified according to the fingerprint identification result obtained in S603.
进一步地,在S506中,判断指纹识别是否成功,若是,流程进行到S512,否则,流程进行到S507。Further, in S506, it is determined whether the fingerprint recognition is successful, if yes, the process proceeds to S512, otherwise, the process proceeds to S507.
与此同时,即在该第三时间段内,在SecureDsp环境中,执行S605,根据指纹模板4对待识别指纹图像进行第一指纹识别处理;At the same time, that is, in the third time period, in the SecureDsp environment, execute S605, and perform the first fingerprint identification process on the fingerprint image to be identified according to the fingerprint template 4;
进一步地,在S606中,判断是否还有未匹配的指纹模板,若是,流程进行到S607,否则,流程结束;Further, in S606, it is judged whether there is an unmatched fingerprint template, if yes, the process proceeds to S607, otherwise, the process ends;
在第四时间段即P4内,在TrustZone中,执行S507,根据指纹模板4对待识别指纹图像进行第二指纹识别处理;In the fourth time period, namely P4, in TrustZone, execute S507 to perform the second fingerprint recognition process on the fingerprint image to be recognized according to the fingerprint template 4;
具体地,可以根据S605中得到的指纹识别结果对该待识别指纹图像进行第二指纹识别处理。Specifically, the second fingerprint identification process may be performed on the fingerprint image to be identified according to the fingerprint identification result obtained in S605.
进一步地,在S508中,判断指纹识别是否成功,若是,流程进行到S512,否则,流程进行到S509。Further, in S508, it is determined whether the fingerprint recognition is successful, if so, the process proceeds to S512, otherwise, the process proceeds to S509.
与此同时,即在该第四时间段内,在SecureDsp环境中,执行S607,根据指纹模板5对待识别指纹图像进行第一指纹识别处理;At the same time, in the fourth time period, in the SecureDsp environment, execute S607, and perform the first fingerprint identification process on the fingerprint image to be identified according to the fingerprint template 5;
进一步地,在S608中,判断是否还有未匹配的指纹模板,没有未匹配的指纹模板,流程结束;Further, in S608, it is judged whether there is an unmatched fingerprint template, there is no unmatched fingerprint template, and the process ends;
在第五时间段即P5内,在TrustZone中,执行S509,根据指纹模板5对待识别指纹图像进行第二指纹识别处理;In the fifth time period, namely P5, in TrustZone, execute S509 to perform the second fingerprint identification process on the fingerprint image to be identified according to the fingerprint template 5;
具体地,可以根据S607中得到的指纹识别结果,对该待识别指纹图像进行第二指纹识别处理。Specifically, the second fingerprint identification process may be performed on the fingerprint image to be identified according to the fingerprint identification result obtained in S607.
进一步地,在S510中,判断指纹识别是否成功,若是,流程进行到S512,否则,流程进行到S511。Further, in S510, it is judged whether the fingerprint recognition is successful, if yes, the process proceeds to S512, otherwise, the process proceeds to S511.
S511,确定指纹认证失败,或者说,指纹识别失败;S511. It is determined that the fingerprint authentication fails, in other words, the fingerprint recognition fails;
S512,确定指纹认证成功,或者说,指纹识别成功。S512, it is determined that the fingerprint authentication is successful, or in other words, the fingerprint identification is successful.
若单个指纹模板的指纹识别过程的总耗时为100ms,第一指纹识别处理和第二指纹识别处理的耗时分别为50ms,根据图3所示的指纹识别过程,指纹识别最大耗时可达100*5=500ms,而根据本申请实施例的指纹识别方法,指纹识别的最大耗时为P1~P5的总时长,其中P1为一个完整的指纹识别过程,即100ms,P2~P5均为50ms,即最大耗时为100+50*4=300ms。由此可见,相对于单线程的指纹识别方案,根据本申请实施例的指纹识别方案,缩短了40%的指纹识别时间,从而能够带来更好的用户体验。If the total time for the fingerprint identification process of a single fingerprint template is 100ms, the time for the first fingerprint identification process and the second fingerprint identification process are 50ms respectively. According to the fingerprint identification process shown in Figure 3, the fingerprint identification process can take up to 100*5=500ms, and according to the fingerprint identification method of the present application, the maximum time for fingerprint identification is the total duration of P1~P5, where P1 is a complete fingerprint identification process, namely 100ms, and P2~P5 are all 50ms , That is, the maximum time-consuming is 100+50*4=300ms. It can be seen that, compared with the single-threaded fingerprint identification scheme, the fingerprint identification scheme according to the embodiment of the present application shortens the fingerprint identification time by 40%, thereby bringing a better user experience.
表1示出了不同的指纹模板数量下,单线程的指纹识别方案和根据本申请实施例的并行指纹识别方案的对比情况。从表1可以看出,指纹模板的数 量越多,并行指纹识别方案的优势越明显。Table 1 shows the comparison between the single-threaded fingerprint identification scheme and the parallel fingerprint identification scheme according to the embodiment of the present application under different numbers of fingerprint templates. As can be seen from Table 1, the more the number of fingerprint templates, the more obvious the advantages of the parallel fingerprint identification scheme.
表1Table 1
Figure PCTCN2019071659-appb-000001
Figure PCTCN2019071659-appb-000001
以下,结合图7至图8,以第一指纹识别处理为粗匹配处理,第二指纹识别处理为细匹配处理为例,详细描述了本申请的第一指纹识别处理和第二指纹识别处理包括的具体内容。In the following, in conjunction with Figures 7 to 8, taking the first fingerprint identification process as coarse matching processing and the second fingerprint identification process as fine matching processing as an example, it is described in detail that the first fingerprint identification process and the second fingerprint identification process of the present application include The specific content.
图7是粗匹配处理的示意性流程图,如图7所示,该粗匹配处理过程可以包括如下步骤:Fig. 7 is a schematic flowchart of rough matching processing. As shown in Fig. 7, the rough matching processing process may include the following steps:
S701,获取预存的指纹模板;S701: Obtain a pre-stored fingerprint template;
具体地,可以从电子设备的内存中获取用户注册的指纹模板。Specifically, the fingerprint template registered by the user can be obtained from the memory of the electronic device.
S702,提取该指纹模板的特征信息;S702: Extract characteristic information of the fingerprint template;
可选地,该指纹模板的特征信息可以包括但不限于纹线的端点和分叉点的位置、数量等信息。Optionally, the characteristic information of the fingerprint template may include, but is not limited to, information such as the position and number of the end points and bifurcation points of the lines.
S703,获取待识别指纹样本;S703: Obtain a fingerprint sample to be identified;
具体地,将指纹传感器采集的用户的指纹样本拷贝到第一安全环境的内存中,以便于在该第一安全环境中执行后续的处理操作。Specifically, the user's fingerprint sample collected by the fingerprint sensor is copied to the memory of the first security environment, so as to perform subsequent processing operations in the first security environment.
S704,提取指纹样本的特征信息;S704: Extract characteristic information of the fingerprint sample;
可选地,在S704之前,还可以对指纹样本进行预处理,以提升特征提取的准确度,例如,可以采用滤波算法去除指纹图像中的噪声、毛刺或断裂等干扰信息。Optionally, before S704, the fingerprint samples may be preprocessed to improve the accuracy of feature extraction. For example, a filtering algorithm may be used to remove interference information such as noise, burrs, or breaks in the fingerprint image.
S705,确定指纹模板和指纹样本的相似度矩阵。S705: Determine the similarity matrix between the fingerprint template and the fingerprint sample.
具体地,可以将S702提取的指纹模板的特征信息和S704中提取的指纹样本的特征信息进行匹配,确定指纹模板和指纹样本的对应特征点的相似度,得到相似度矩阵。Specifically, the feature information of the fingerprint template extracted in S702 can be matched with the feature information of the fingerprint sample extracted in S704 to determine the similarity of the corresponding feature points of the fingerprint template and the fingerprint sample to obtain a similarity matrix.
执行完粗匹配处理后,进一步地,可以对指纹样本执行细匹配处理,如 图8所示,该细匹配处理过程可以包括如下步骤:After the rough matching processing is performed, further, fine matching processing may be performed on the fingerprint samples. As shown in FIG. 8, the fine matching processing process may include the following steps:
S801,根据S705中得到的相似度矩阵确定指纹模板和指纹样本的匹配区域;S801: Determine the matching area between the fingerprint template and the fingerprint sample according to the similarity matrix obtained in S705;
进一步地,在S802中,确定每个匹配区域中指纹模板和指纹样本的匹配度信息;Further, in S802, determine the matching degree information between the fingerprint template and the fingerprint sample in each matching area;
S803,根据匹配度信息确定指纹识别结果,例如可以在匹配度大于特定阈值时,确定指纹识别成功,否则确定指纹识别失败。S803: Determine the fingerprint recognition result according to the matching degree information. For example, when the matching degree is greater than a certain threshold, it is determined that the fingerprint recognition is successful, otherwise it is determined that the fingerprint recognition fails.
应理解,以上仅以第一指纹识别处理为粗匹配处理,第二指纹识别处理为细匹配处理为例进行描述,本申请实施例也可以采用其他功能划分方式,或者,也可以将指纹识别功能划分为更多个功能模块。可以理解,当指纹识别算法不同时,该第一指纹识别处理和第二指纹识别处理所执行的功能也不同,本申请实施例对此不作具体限定。It should be understood that the above description only takes the first fingerprint identification process as the coarse matching process and the second fingerprint identification process as the fine matching process as an example. The embodiment of the present application may also adopt other function division methods, or the fingerprint identification function may also be used. Divided into more functional modules. It can be understood that when the fingerprint recognition algorithm is different, the functions performed by the first fingerprint recognition process and the second fingerprint recognition process are also different, which is not specifically limited in the embodiment of the present application.
上文结合图4至图8,详细描述了本申请的方法实施例,下文结合图9至图10,详细描述本申请的装置实施例,应理解,装置实施例与方法实施例相互对应,类似的描述可以参照方法实施例。The method embodiments of the present application are described in detail above with reference to Figs. 4 to 8, and the device embodiments of the present application are described in detail below in conjunction with Figs. 9 to 10. It should be understood that the device embodiments and the method embodiments correspond to each other and are similar The description can refer to the method embodiment.
图9是根据本申请实施例的指纹识别系统的示意性框图,如图9所示,该指纹识别系统900包括:FIG. 9 is a schematic block diagram of a fingerprint identification system according to an embodiment of the present application. As shown in FIG. 9, the fingerprint identification system 900 includes:
第一指纹识别模块901,用于在第一时间段内,在第一安全环境中根据第二指纹模板对待识别指纹图像进行第一指纹识别处理;The first fingerprint identification module 901 is configured to perform the first fingerprint identification process on the fingerprint image to be identified according to the second fingerprint template in the first security environment in the first time period;
第二指纹识别模块902,用于在所述第一时间段内,在第二安全环境中根据第一指纹模板对所述待识别指纹图像进行第二指纹识别处理。The second fingerprint identification module 902 is configured to perform a second fingerprint identification process on the fingerprint image to be identified according to the first fingerprint template in the second security environment in the first time period.
可选地,在本申请一个实施例中,所述第二指纹识别模块902还用于:Optionally, in an embodiment of the present application, the second fingerprint identification module 902 is further configured to:
在第二时间段内,在所述第二安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第二指纹识别处理,其中,所述第二时间段晚于所述第一时间段。In the second time period, perform the second fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the second security environment, wherein the second time period is later than the The first time period.
可选地,在本申请一个实施例中,所述第二指纹识别模块902具体用于:Optionally, in an embodiment of the present application, the second fingerprint identification module 902 is specifically configured to:
基于在所述第一安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理的指纹识别结果,在所述第二安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第二指纹识别处理。Based on the fingerprint recognition result of performing the first fingerprint recognition processing on the fingerprint image to be recognized in the first secure environment according to the second fingerprint template, in the second secure environment according to the second fingerprint The template performs the second fingerprint identification processing on the fingerprint image to be identified.
可选地,在本申请一个实施例中,所述第二指纹识别模块902还用于:Optionally, in an embodiment of the present application, the second fingerprint identification module 902 is further configured to:
从共享内存获取根据所述第二指纹模板对所述待识别指纹图像进行所 述第一指纹识别处理的指纹识别结果。Obtain from the shared memory a fingerprint recognition result of performing the first fingerprint recognition processing on the fingerprint image to be recognized according to the second fingerprint template.
可选地,在本申请一个实施例中,所述第一指纹识别模块901还用于:Optionally, in an embodiment of the present application, the first fingerprint identification module 901 is further configured to:
在根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理之后,将所述第一指纹识别处理的指纹识别结果存储在共享内存。After performing the first fingerprint identification process on the fingerprint image to be identified according to the second fingerprint template, the fingerprint identification result of the first fingerprint identification process is stored in a shared memory.
可选地,在本申请一个实施例中,所述指纹识别系统900还包括:Optionally, in an embodiment of the present application, the fingerprint identification system 900 further includes:
控制模块903,用于向所述第一指纹识别模块发送第一控制指令,所述第一控制指令用于指示所述第一指纹识别模块在所述第一安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理;以及The control module 903 is configured to send a first control instruction to the first fingerprint identification module, where the first control instruction is used to instruct the first fingerprint identification module to perform the operation according to the second fingerprint in the first security environment The template performs the first fingerprint identification processing on the fingerprint image to be identified; and
向所述第二指纹识别模块发送第二控制指令,所述第二控制指令用于指示所述第二指纹识别模块在所述第二安全环境中根据所述第一指纹模板对所述待识别指纹图像进行所述第一指纹识别处理。Send a second control instruction to the second fingerprint identification module, where the second control instruction is used to instruct the second fingerprint identification module to perform the identification according to the first fingerprint template in the second security environment The fingerprint image undergoes the first fingerprint identification process.
可选地,在本申请一个实施例中,若所述第一指纹模板为第一个指纹模板,所述第二指纹识别模块902还用于:Optionally, in an embodiment of the present application, if the first fingerprint template is the first fingerprint template, the second fingerprint identification module 902 is further configured to:
在所述第一时间段内,在所述第二安全环境中根据所述第一指纹模板对所述待识别指纹图像进行所述第一指纹识别处理。In the first time period, the first fingerprint identification process is performed on the fingerprint image to be identified according to the first fingerprint template in the second security environment.
可选地,在本申请一个实施例中,所述第一指纹识别处理为粗匹配处理,所述第二指纹识别处理为细匹配处理,所述粗匹配处理包括根据指纹模板的特征信息和待识别指纹图像的特征信息进行匹配,所述细匹配处理包括根据指纹模板和待识别指纹图像的匹配区域中的指纹信息进行细节匹配。Optionally, in an embodiment of the present application, the first fingerprint identification process is a coarse matching process, the second fingerprint identification process is a fine matching process, and the coarse matching process includes the characteristic information and the waiting process according to the fingerprint template. The feature information of the fingerprint image is recognized for matching, and the fine matching processing includes performing minutiae matching according to the fingerprint template and the fingerprint information in the matching area of the fingerprint image to be recognized.
可选地,在本申请一个实施例中,所述第一指纹识别模块901具体用于:Optionally, in an embodiment of the present application, the first fingerprint identification module 901 is specifically configured to:
提取所述第二指纹模板的特征信息和所述待识别指纹图像的特征信息;Extracting the feature information of the second fingerprint template and the feature information of the fingerprint image to be identified;
将所述第二指纹模板的特征信息和所述待识别指纹图像的特征信息进行匹配,得到相似度矩阵,所述相似度矩阵中的数值用于指示所述第二指纹模板和所述待识别指纹图像的对应特征点的相似度。The feature information of the second fingerprint template and the feature information of the fingerprint image to be recognized are matched to obtain a similarity matrix, and the values in the similarity matrix are used to indicate the second fingerprint template and the to-be-recognized The similarity of the corresponding feature points of the fingerprint image.
可选地,在本申请一个实施例中,所述第二指纹识别模块902具体用于:Optionally, in an embodiment of the present application, the second fingerprint identification module 902 is specifically configured to:
根据所述第一指纹模板和所述待识别指纹图像的相似度矩阵,确定所述第一指纹模板和所述待识别指纹图像的匹配区域;Determining a matching area between the first fingerprint template and the fingerprint image to be recognized according to the similarity matrix between the first fingerprint template and the fingerprint image to be recognized;
将所述第一指纹模板和所述待识别指纹图像的匹配区域中的对应像素点进行匹配,得到匹配度数据;Matching the first fingerprint template with the corresponding pixels in the matching area of the fingerprint image to be identified to obtain matching degree data;
根据所述匹配度数据,确定指纹识别结果。According to the matching degree data, the fingerprint recognition result is determined.
可选地,在本申请一个实施例中,所述第二指纹识别模块902具体用于:Optionally, in an embodiment of the present application, the second fingerprint identification module 902 is specifically configured to:
若所述匹配度数据大于或等于特定阈值,确定纹识别成功;或者If the matching degree data is greater than or equal to a specific threshold, it is determined that the pattern recognition is successful; or
若所述匹配度数据小于所述特定阈值,确定指纹识别失败。If the matching degree data is less than the specific threshold, it is determined that the fingerprint recognition fails.
可选地,在本申请一个实施例中,所述第二指纹识别处理的耗时和所述第一指纹识别处理的耗时的差值小于第一时间阈值。Optionally, in an embodiment of the present application, the difference between the time consumption of the second fingerprint identification process and the time consumption of the first fingerprint identification process is less than a first time threshold.
可选地,在本申请一个实施例中,所述第一安全环境为SecureDsp环境,所述第二安全环境为TrustZone环境。Optionally, in an embodiment of the present application, the first security environment is a SecureDsp environment, and the second security environment is a TrustZone environment.
可选地,在一些实施例中,该指纹识别系统900可以设置于指纹模组中,或者该指纹识别系统可以为该指纹模组,或者,该指纹识别系统可以包括该指纹模组。Optionally, in some embodiments, the fingerprint identification system 900 may be provided in a fingerprint module, or the fingerprint identification system may be the fingerprint module, or the fingerprint identification system may include the fingerprint module.
应理解,在本申请的方法实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that in the method embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, and should not correspond to the differences in the embodiments of the present application. The implementation process constitutes any limitation.
本申请实施例还提供了一种电子设备300,如图10所示,所述电子设备800可以包括指纹识别系统310,该指纹识别系统310可以为前述实施例中的指纹识别系统900。另外,所述指纹识别系统310可以能够用于执行图4至图6所示方法实施例中的内容。An embodiment of the present application also provides an electronic device 300. As shown in FIG. 10, the electronic device 800 may include a fingerprint identification system 310, and the fingerprint identification system 310 may be the fingerprint identification system 900 in the foregoing embodiment. In addition, the fingerprint identification system 310 can be used to execute the content in the method embodiments shown in FIGS. 4 to 6.
在一些实施例中,该电子设备可以为支持Android系统的电子设备,例如智能手机、笔记本电脑、平板电脑、游戏设备等便携式或移动计算设备,以及电子数据库、汽车、银行自动柜员机(Automated Teller Machine,ATM)等其他电子设备,但本申请实施例对此并不限定。In some embodiments, the electronic device may be an electronic device supporting the Android system, such as portable or mobile computing devices such as smart phones, laptops, tablet computers, and gaming devices, as well as electronic databases, automobiles, and bank automated teller machines (Automated Teller Machine). , ATM) and other electronic devices, but the embodiments of the present application are not limited thereto.
应理解,本申请实施例的处理器可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读 存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。It should be understood that the processor of the embodiment of the present application may be an integrated circuit chip with signal processing capability. In the implementation process, the steps of the foregoing method embodiments may be completed by instructions in the form of hardware integrated logic circuits or software in the processor. The above-mentioned processor may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other Programming logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in combination with the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
可以理解,本申请实施例的终端或电子设备还可以包括存储器,存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the terminal or the electronic device of the embodiment of the present application may further include a memory, and the memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory can be Read-Only Memory (ROM), Programmable Read-Only Memory (Programmable ROM, PROM), Erasable Programmable Read-Only Memory (Erasable PROM, EPROM), and Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be a random access memory (Random Access Memory, RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM) ) And direct memory bus random access memory (Direct Rambus RAM, DR RAM). It should be noted that the memories of the systems and methods described herein are intended to include, but are not limited to these and any other suitable types of memories.
本申请实施例还提出了一种计算机可读存储介质,该计算机可读存储介质存储一个或多个程序,该一个或多个程序包括指令,该指令当被包括多个应用程序的便携式电子设备执行时,能够使该便携式电子设备执行图4至图6所示实施例的方法。The embodiment of the present application also proposes a computer-readable storage medium that stores one or more programs, and the one or more programs include instructions. When the instructions are included in a portable electronic device that includes multiple application programs When executed, the portable electronic device can be made to execute the method of the embodiment shown in FIG. 4 to FIG. 6.
本申请实施例还提出了一种计算机程序,该计算机程序包括指令,当该计算机程序被计算机执行时,使得计算机可以执行图4至图6所示实施例的方法。The embodiment of the present application also proposes a computer program, which includes instructions. When the computer program is executed by a computer, the computer can execute the method of the embodiments shown in FIG. 4 to FIG. 6.
本申请实施例还提供了一种芯片,该芯片包括输入输出接口、至少一个处理器、至少一个存储器和总线,该至少一个存储器用于存储指令,该至少一个处理器用于调用该至少一个存储器中的指令,以执行图4至图6所示实施例的方法。An embodiment of the present application also provides a chip that includes an input and output interface, at least one processor, at least one memory, and a bus. The at least one memory is used to store instructions, and the at least one processor is used to call the at least one memory. To execute the method of the embodiment shown in FIG. 4 to FIG. 6.
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应 对本申请实施例的实施过程构成任何限定。It should be understood that in the various embodiments of the present application, the size of the sequence numbers of the foregoing processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not correspond to the embodiments of the present application. The implementation process constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art may realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and conciseness of the description, the specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中,应所述理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical, or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者所述技术方案的部分可以以软件产品的形式体现出来,所述计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘 等各种可以存储程序代码的介质。If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。The above are only specific implementations of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Should be covered within the scope of protection of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (27)

  1. 一种基于多安全环境的指纹识别方法,其特征在于,所述方法包括:A fingerprint identification method based on multiple security environments, characterized in that the method includes:
    在第一时间段内,在第一安全环境中根据第二指纹模板对待识别指纹图像进行第一指纹识别处理,并且在第二安全环境中根据第一指纹模板对所述待识别指纹图像进行第二指纹识别处理;In the first time period, perform the first fingerprint recognition process on the fingerprint image to be recognized based on the second fingerprint template in the first security environment, and perform the first fingerprint recognition process on the fingerprint image to be recognized based on the first fingerprint template in the second security environment. 2. Fingerprint recognition processing;
    其中,对待识别指纹图像的指纹识别处理包括所述第一指纹识别处理和所述第二指纹识别处理,基于同一指纹模板的所述第二指纹识别处理的执行晚于所述第一指纹识别处理的执行。Wherein, the fingerprint recognition processing of the fingerprint image to be recognized includes the first fingerprint recognition processing and the second fingerprint recognition processing, and the second fingerprint recognition processing based on the same fingerprint template is executed later than the first fingerprint recognition processing Implementation.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    在第二时间段内,在所述第二安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第二指纹识别处理,其中,所述第二时间段晚于所述第一时间段。In the second time period, perform the second fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the second security environment, wherein the second time period is later than the The first time period.
  3. 根据权利要求2所述的方法,其特征在于,所述在所述第二安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第二指纹识别处理,包括:The method according to claim 2, wherein the performing the second fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the second security environment comprises:
    基于在所述第一安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理的指纹识别结果,在所述第二安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第二指纹识别处理。Based on the fingerprint recognition result of performing the first fingerprint recognition processing on the fingerprint image to be recognized in the first secure environment according to the second fingerprint template, in the second secure environment according to the second fingerprint The template performs the second fingerprint identification processing on the fingerprint image to be identified.
  4. 根据权利要求1至3中任一项所述的指纹识别方法,其特征在于,所述方法还包括:The fingerprint identification method according to any one of claims 1 to 3, wherein the method further comprises:
    从共享内存获取根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理的指纹识别结果。Acquiring, from the shared memory, a fingerprint recognition result of performing the first fingerprint recognition processing on the fingerprint image to be recognized according to the second fingerprint template.
  5. 根据权利要求1至4中任一项所述的指纹识别方法,其特征在于,在所述在第一安全环境中根据第二指纹模板对所述待识别指纹图像进行第一指纹识别处理之后,所述方法还包括:The fingerprint identification method according to any one of claims 1 to 4, wherein after the first fingerprint identification process is performed on the fingerprint image to be identified according to the second fingerprint template in the first security environment, The method also includes:
    将所述第一指纹识别处理的指纹识别结果存储在共享内存。Store the fingerprint recognition result of the first fingerprint recognition process in the shared memory.
  6. 根据权利要求1至5中任一项所述的指纹识别方法,其特征在于,所述方法还包括:The fingerprint identification method according to any one of claims 1 to 5, wherein the method further comprises:
    接收来自处理器的控制指令,所述控制指令用于指示在所述第一安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理,并且在所述第二安全环境中根据所述第一指纹模板对所述待识别指纹 图像进行所述第二指纹识别处理。Receive a control instruction from the processor, where the control instruction is used to instruct to perform the first fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the first security environment, and The second fingerprint identification process is performed on the fingerprint image to be identified in the second security environment according to the first fingerprint template.
  7. 根据权利要求1至6中任一项所述的指纹识别方法,其特征在于,若所述第一指纹模板为第一个指纹模板,所述方法还包括:The fingerprint identification method according to any one of claims 1 to 6, wherein if the first fingerprint template is the first fingerprint template, the method further comprises:
    在所述第一时间段内,在所述第二安全环境中根据所述第一指纹模板对所述待识别指纹图像进行所述第一指纹识别处理。In the first time period, the first fingerprint identification process is performed on the fingerprint image to be identified according to the first fingerprint template in the second security environment.
  8. 根据权利要求1至7中任一项所述的指纹识别方法,其特征在于,所述第一指纹识别处理为粗匹配处理,所述第二指纹识别处理为细匹配处理,所述粗匹配处理包括根据指纹模板的特征信息和待识别指纹图像的特征信息进行匹配,所述细匹配处理包括根据指纹模板和待识别指纹图像的匹配区域中的指纹信息进行细节匹配。The fingerprint identification method according to any one of claims 1 to 7, wherein the first fingerprint identification process is a coarse matching process, the second fingerprint identification process is a fine matching process, and the coarse matching process is It includes matching according to the characteristic information of the fingerprint template and the characteristic information of the fingerprint image to be recognized, and the fine matching processing includes performing minutiae matching according to the fingerprint information in the matching area of the fingerprint template and the fingerprint image to be recognized.
  9. 根据权利要求8所述的指纹识别方法,其特征在于,所述在第一安全环境中根据第二指纹模板对所述待识别指纹图像进行第一指纹识别处理,包括:8. The fingerprint identification method according to claim 8, wherein the performing the first fingerprint identification process on the fingerprint image to be identified according to the second fingerprint template in the first security environment comprises:
    提取所述第二指纹模板的特征信息和所述待识别指纹图像的特征信息;Extracting the feature information of the second fingerprint template and the feature information of the fingerprint image to be identified;
    将所述第二指纹模板的特征信息和所述待识别指纹图像的特征信息进行匹配,得到相似度矩阵,所述相似度矩阵中的数值用于指示所述第二指纹模板和所述待识别指纹图像的对应特征点的相似度。The feature information of the second fingerprint template and the feature information of the fingerprint image to be recognized are matched to obtain a similarity matrix, and the values in the similarity matrix are used to indicate the second fingerprint template and the to-be-recognized The similarity of the corresponding feature points of the fingerprint image.
  10. 根据权利要求8或9所述的指纹识别方法,其特征在于,所述在第二安全环境中根据第一指纹模板对待识别指纹图像进行第二指纹识别处理,包括:The fingerprint identification method according to claim 8 or 9, wherein the second fingerprint identification process is performed on the fingerprint image to be identified according to the first fingerprint template in the second security environment, comprising:
    根据所述第一指纹模板和所述待识别指纹图像的相似度矩阵,确定所述第一指纹模板和所述待识别指纹图像的匹配区域;Determining a matching area between the first fingerprint template and the fingerprint image to be recognized according to the similarity matrix between the first fingerprint template and the fingerprint image to be recognized;
    将所述第一指纹模板和所述待识别指纹图像的匹配区域中的对应像素点进行匹配,得到匹配度数据;Matching the first fingerprint template with the corresponding pixels in the matching area of the fingerprint image to be identified to obtain matching degree data;
    根据所述匹配度数据,确定指纹识别结果。According to the matching degree data, the fingerprint recognition result is determined.
  11. 根据权利要求10所述的指纹识别方法,其特征在于,所述根据所述匹配度信息,确定指纹识别结果,包括:The fingerprint identification method according to claim 10, wherein the determining the fingerprint identification result according to the matching degree information comprises:
    若所述匹配度数据大于或等于特定阈值,确定纹识别成功;或者If the matching degree data is greater than or equal to a specific threshold, it is determined that the pattern recognition is successful; or
    若所述匹配度数据小于所述特定阈值,确定指纹识别失败。If the matching degree data is less than the specific threshold, it is determined that the fingerprint recognition fails.
  12. 根据权利要求1至11中任一项所述的指纹识别方法,其特征在于,所述第二指纹识别处理的耗时和所述第一指纹识别处理的耗时的差值的绝 对值小于第一时间阈值。The fingerprint identification method according to any one of claims 1 to 11, wherein the absolute value of the difference between the time consumption of the second fingerprint identification process and the time consumption of the first fingerprint identification process is smaller than the first fingerprint identification process. A time threshold.
  13. 根据权利要求1至12中任一项所述的指纹识别方法,其特征在于,所述第一安全环境为SecureDsp环境,所述第二安全环境为TrustZone环境。The fingerprint identification method according to any one of claims 1 to 12, wherein the first security environment is a SecureDsp environment, and the second security environment is a TrustZone environment.
  14. 一种基于多安全环境的指纹识别系统,其特征在于,包括:A fingerprint identification system based on multiple security environments, which is characterized in that it includes:
    第一指纹识别模块,用于在第一时间段内,在第一安全环境中根据第二指纹模板对待识别指纹图像进行第一指纹识别处理;The first fingerprint identification module is configured to perform the first fingerprint identification process on the fingerprint image to be identified according to the second fingerprint template in the first security environment in the first time period;
    第二指纹识别模块,用于在所述第一时间段内,在第二安全环境中根据第一指纹模板对所述待识别指纹图像进行第二指纹识别处理。The second fingerprint identification module is configured to perform a second fingerprint identification process on the fingerprint image to be identified according to the first fingerprint template in the second security environment in the first time period.
  15. 根据权利要求14所述的指纹识别系统,其特征在于,所述第二指纹识别模块还用于:The fingerprint identification system according to claim 14, wherein the second fingerprint identification module is further used for:
    在第二时间段内,在所述第二安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第二指纹识别处理,其中,所述第二时间段晚于所述第一时间段。In the second time period, perform the second fingerprint identification processing on the fingerprint image to be identified according to the second fingerprint template in the second security environment, wherein the second time period is later than the The first time period.
  16. 根据权利要求15所述的指纹识别系统,其特征在于,所述第二指纹识别模块具体用于:The fingerprint identification system according to claim 15, wherein the second fingerprint identification module is specifically configured to:
    基于在所述第一安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理的指纹识别结果,在所述第二安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第二指纹识别处理。Based on the fingerprint recognition result of performing the first fingerprint recognition processing on the fingerprint image to be recognized in the first secure environment according to the second fingerprint template, in the second secure environment according to the second fingerprint The template performs the second fingerprint identification processing on the fingerprint image to be identified.
  17. 根据权利要求16所述的指纹识别系统,其特征在于,所述第二指纹识别模块还用于:The fingerprint identification system according to claim 16, wherein the second fingerprint identification module is further used for:
    从共享内存获取根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理的指纹识别结果。Acquiring, from the shared memory, a fingerprint recognition result of performing the first fingerprint recognition processing on the fingerprint image to be recognized according to the second fingerprint template.
  18. 根据权利要求14至17中任一项所述的指纹识别系统,其特征在于,所述第一指纹识别模块还用于:The fingerprint identification system according to any one of claims 14 to 17, wherein the first fingerprint identification module is further used for:
    在根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理之后,将所述第一指纹识别处理的指纹识别结果存储在共享内存。After performing the first fingerprint identification process on the fingerprint image to be identified according to the second fingerprint template, the fingerprint identification result of the first fingerprint identification process is stored in a shared memory.
  19. 根据权利要求14至18中任一项所述的指纹识别系统,其特征在于,所述指纹识别系统还包括:The fingerprint identification system according to any one of claims 14 to 18, wherein the fingerprint identification system further comprises:
    控制模块,用于向所述第一指纹识别模块发送第一控制指令,所述第一控制指令用于指示所述第一指纹识别模块在所述第一安全环境中根据所述第二指纹模板对所述待识别指纹图像进行所述第一指纹识别处理;以及The control module is configured to send a first control instruction to the first fingerprint identification module, where the first control instruction is used to instruct the first fingerprint identification module to perform according to the second fingerprint template in the first security environment Performing the first fingerprint identification processing on the fingerprint image to be identified; and
    向所述第二指纹识别模块发送第二控制指令,所述第二控制指令用于指示所述第二指纹识别模块在所述第二安全环境中根据所述第一指纹模板对所述待识别指纹图像进行所述第一指纹识别处理。Send a second control instruction to the second fingerprint identification module, where the second control instruction is used to instruct the second fingerprint identification module to perform the identification according to the first fingerprint template in the second security environment The fingerprint image undergoes the first fingerprint identification process.
  20. 根据权利要求14至19中任一项所述的指纹识别系统,其特征在于,若所述第一指纹模板为第一个指纹模板,所述第二指纹识别模块还用于:The fingerprint identification system according to any one of claims 14 to 19, wherein if the first fingerprint template is the first fingerprint template, the second fingerprint identification module is further configured to:
    在所述第一时间段内,在所述第二安全环境中根据所述第一指纹模板对所述待识别指纹图像进行所述第一指纹识别处理。In the first time period, the first fingerprint identification process is performed on the fingerprint image to be identified according to the first fingerprint template in the second security environment.
  21. 根据权利要求14至20中任一项所述的指纹识别系统,其特征在于,所述第一指纹识别处理为粗匹配处理,所述第二指纹识别处理为细匹配处理,所述粗匹配处理包括根据指纹模板的特征信息和待识别指纹图像的特征信息进行匹配,所述细匹配处理包括根据指纹模板和待识别指纹图像的匹配区域中的指纹信息进行细节匹配。The fingerprint identification system according to any one of claims 14 to 20, wherein the first fingerprint identification process is a coarse matching process, the second fingerprint identification process is a fine matching process, and the coarse matching process is It includes matching according to the characteristic information of the fingerprint template and the characteristic information of the fingerprint image to be recognized, and the fine matching processing includes performing minutiae matching according to the fingerprint information in the matching area of the fingerprint template and the fingerprint image to be recognized.
  22. 根据权利要求21所述的指纹识别系统,其特征在于,所述第一指纹识别模块具体用于:The fingerprint identification system according to claim 21, wherein the first fingerprint identification module is specifically configured to:
    提取所述第二指纹模板的特征信息和所述待识别指纹图像的特征信息;Extracting the feature information of the second fingerprint template and the feature information of the fingerprint image to be identified;
    将所述第二指纹模板的特征信息和所述待识别指纹图像的特征信息进行匹配,得到相似度矩阵,所述相似度矩阵中的数值用于指示所述第二指纹模板和所述待识别指纹图像的对应特征点的相似度。The feature information of the second fingerprint template and the feature information of the fingerprint image to be recognized are matched to obtain a similarity matrix, and the values in the similarity matrix are used to indicate the second fingerprint template and the to-be-recognized The similarity of the corresponding feature points of the fingerprint image.
  23. 根据权利要求21或22所述的指纹识别系统,其特征在于,所述第二指纹识别模块具体用于:The fingerprint identification system according to claim 21 or 22, wherein the second fingerprint identification module is specifically configured to:
    根据所述第一指纹模板和所述待识别指纹图像的相似度矩阵,确定所述第一指纹模板和所述待识别指纹图像的匹配区域;Determining a matching area between the first fingerprint template and the fingerprint image to be recognized according to the similarity matrix between the first fingerprint template and the fingerprint image to be recognized;
    将所述第一指纹模板和所述待识别指纹图像的匹配区域中的对应像素点进行匹配,得到匹配度数据;Matching the first fingerprint template with the corresponding pixels in the matching area of the fingerprint image to be identified to obtain matching degree data;
    根据所述匹配度数据,确定指纹识别结果。According to the matching degree data, the fingerprint recognition result is determined.
  24. 根据权利要求23所述的指纹识别系统,其特征在于,所述第二指纹识别模块具体用于:The fingerprint identification system according to claim 23, wherein the second fingerprint identification module is specifically configured to:
    若所述匹配度数据大于或等于特定阈值,确定纹识别成功;或者If the matching degree data is greater than or equal to a specific threshold, it is determined that the pattern recognition is successful; or
    若所述匹配度数据小于所述特定阈值,确定指纹识别失败。If the matching degree data is less than the specific threshold, it is determined that the fingerprint recognition fails.
  25. 根据权利要求14至24中任一项所述的指纹识别系统,其特征在于,所述第二指纹识别处理的耗时和所述第一指纹识别处理的耗时的差值小于 第一时间阈值。The fingerprint identification system according to any one of claims 14 to 24, wherein the difference between the time consumption of the second fingerprint identification process and the time consumption of the first fingerprint identification process is less than a first time threshold .
  26. 根据权利要求14至25中任一项所述的指纹识别系统,其特征在于,所述第一安全环境为SecureDsp环境,所述第二安全环境为TrustZone环境。The fingerprint identification system according to any one of claims 14 to 25, wherein the first security environment is a SecureDsp environment, and the second security environment is a TrustZone environment.
  27. 一种电子设备,其特征在于,包括如权利要求14至26中任一项所述的指纹识别系统。An electronic device, characterized by comprising the fingerprint identification system according to any one of claims 14 to 26.
PCT/CN2019/071659 2019-01-14 2019-01-14 Multiple security environments-based fingerprint recognition method and system, and electronic device WO2020146984A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980000119.XA CN109891431B (en) 2019-01-14 2019-01-14 Fingerprint identification method, fingerprint identification system and electronic equipment based on multiple security environments
PCT/CN2019/071659 WO2020146984A1 (en) 2019-01-14 2019-01-14 Multiple security environments-based fingerprint recognition method and system, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/071659 WO2020146984A1 (en) 2019-01-14 2019-01-14 Multiple security environments-based fingerprint recognition method and system, and electronic device

Publications (1)

Publication Number Publication Date
WO2020146984A1 true WO2020146984A1 (en) 2020-07-23

Family

ID=66938485

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/071659 WO2020146984A1 (en) 2019-01-14 2019-01-14 Multiple security environments-based fingerprint recognition method and system, and electronic device

Country Status (2)

Country Link
CN (1) CN109891431B (en)
WO (1) WO2020146984A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111144297A (en) * 2019-12-26 2020-05-12 维沃移动通信有限公司 Fingerprint identification method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1506903A (en) * 2002-12-06 2004-06-23 中国科学院自动化研究所 Automatic fingerprint distinguishing system and method based on template learning
CN105825164A (en) * 2015-08-28 2016-08-03 维沃移动通信有限公司 Fingerprint identification method and electronic equipment
CN105989333A (en) * 2015-02-12 2016-10-05 深圳市汇顶科技股份有限公司 Fingerprint authentication method, fingerprint authentication system and terminal supporting fingerprint authentication function
US20180225502A1 (en) * 2014-08-26 2018-08-09 Gingy Technology Inc. Fingerprint identification device and fingerprint identification method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9536131B1 (en) * 2014-09-18 2017-01-03 Egis Technology Inc. Fingerprint recognition methods and electronic device
CN106709399B (en) * 2015-08-21 2021-02-09 小米科技有限责任公司 Fingerprint identification method and device
WO2017035695A1 (en) * 2015-08-28 2017-03-09 华为技术有限公司 Information transmission method and mobile device
WO2017035799A1 (en) * 2015-09-01 2017-03-09 华为技术有限公司 Payment authentication method and device for mobile terminal, and mobile terminal
CN108052820B (en) * 2016-05-31 2021-06-15 Oppo广东移动通信有限公司 Unlocking control method, terminal equipment and related product
CN107358144A (en) * 2017-05-20 2017-11-17 深圳信炜科技有限公司 Image identification system and electronic installation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1506903A (en) * 2002-12-06 2004-06-23 中国科学院自动化研究所 Automatic fingerprint distinguishing system and method based on template learning
US20180225502A1 (en) * 2014-08-26 2018-08-09 Gingy Technology Inc. Fingerprint identification device and fingerprint identification method
CN105989333A (en) * 2015-02-12 2016-10-05 深圳市汇顶科技股份有限公司 Fingerprint authentication method, fingerprint authentication system and terminal supporting fingerprint authentication function
CN105825164A (en) * 2015-08-28 2016-08-03 维沃移动通信有限公司 Fingerprint identification method and electronic equipment

Also Published As

Publication number Publication date
CN109891431B (en) 2023-05-05
CN109891431A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109496314B (en) Fingerprint recognition device and electronic equipment under screen
EP3693887B1 (en) Fingerprint recognition apparatus and method, and electronic device
CN109313522B (en) Multi-sensor-based method and system for acquiring fingerprint under screen and electronic equipment
WO2020061740A1 (en) Fingerprint recognition apparatus and method, and terminal device
WO2020223881A1 (en) Fingerprint detection method and apparatus, and electronic device
US11157716B2 (en) Multi-sensor-based under-screen fingerprint capturing method and system and electronic device
WO2020093251A1 (en) Double sensing area-based fingerprint identification method, fingerprint identification system, and electronic device
WO2020168495A1 (en) Method and device for fingerprint recognition, and terminal device
WO2020186415A1 (en) Device and method for fingerprint recognition, and electronic apparatus
EP3764277B1 (en) Fingerprint recognition method, apparatus, and electronic device
CN111095275B (en) Fingerprint identification device, fingerprint identification method and electronic equipment
WO2020227986A1 (en) Image collection apparatus and method, and electronic device
WO2020146984A1 (en) Multiple security environments-based fingerprint recognition method and system, and electronic device
WO2020061754A1 (en) Multi-sensor-based in-screen fingerprint verification method and system, and electronic device
WO2021056318A1 (en) Fingerprint recognition method and apparatus, and electronic device
EP3770737B1 (en) Fingerprint recognition method and apparatus, and electronic device
WO2020164055A1 (en) Method and apparatus for entering function interface, and terminal device
WO2020061734A1 (en) Fingerprint registration method, fingerprint registration device and electronic device
WO2020199159A1 (en) Method and electronic device for guiding users to register fingerprints
WO2021217476A1 (en) Fingerprint identification method, apparatus, and electronic device
WO2020199178A1 (en) Fingerprint recognition method and apparatus, and electronic device
CN111242111B (en) Fingerprint identification method and device and electronic equipment
WO2020172773A1 (en) Fingerprint recognition method, apparatus, and electronic device
WO2020087374A1 (en) Method and apparatus for recognizing fingerprint logo, and electronic device
CN109328349B (en) Fingerprint identification method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19910407

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19910407

Country of ref document: EP

Kind code of ref document: A1