Fingerprint identification method and device, electronic equipment and storage medium

CN123016485APending Publication Date: 2026-10-30BEIJING JIIOV TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610162087.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-02-04
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

[0004]本申请实施例的目的是提供一种指纹识别方法、装置、电子设备和存储介质,能够解决无法同时兼顾识别成功率和图像质量的问题

Benefits of technology

[0009]第五方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的指纹识别方法的步骤。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123016485A_ABST
    Figure CN123016485A_ABST
Patent Text Reader

Abstract

The application discloses a fingerprint identification method and device, electronic equipment and storage medium. The method comprises the following steps: performing feature comparison between a target fingerprint image obtained according to a target pixel merging mode and a template fingerprint image; if the feature comparison between the target fingerprint image and the template fingerprint image is successful, ending the comparison; if the comparison between the target fingerprint image and the template fingerprint image fails, reselecting a next pixel merging mode with a higher resolution than the target pixel merging mode as the target pixel merging mode, and repeatedly performing the operations of performing feature comparison between the target fingerprint image and the template fingerprint image and reselecting the target pixel merging mode when the comparison fails until the comparison between the target fingerprint image and the template fingerprint image is successful or there is no next pixel merging mode with a higher resolution than the target pixel merging mode. The application can improve the identification success rate and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of fingerprint recognition technology, specifically relating to a fingerprint recognition method, device, electronic device, and storage medium. Background Technology

[0002] To balance recognition accuracy, speed, and power consumption, existing fingerprint recognition systems typically employ pixel binning (BIN) technology. Pixel binning combines the electrical signals converted from light captured by adjacent pixels and outputs the combined pixel value as a single pixel.

[0003] In existing technologies, fingerprint images are typically acquired using a fixed pixel merging pattern. In certain scenarios, such as when fingers are dry, dirty, or under strong ambient light, the fixed pixel merging pattern cannot simultaneously ensure both recognition success rate and image quality. This may result in initial recognition failure requiring a retry, increasing the overall recognition time and degrading the user experience. Summary of the Invention

[0004] The purpose of this application is to provide a fingerprint recognition method, device, electronic device, and storage medium that can solve the problem of not being able to simultaneously achieve both recognition success rate and image quality.

[0005] To solve the above-mentioned technical problems, this application is implemented as follows: In a first aspect, embodiments of this application provide a fingerprint recognition method, the method comprising: The target fingerprint image obtained according to the target pixel merging mode is compared with the template fingerprint image in terms of features; If the target fingerprint image and the template fingerprint image are successfully matched, the comparison ends. If the target fingerprint image and the template fingerprint image are not matched, the next pixel merging mode with a higher resolution than the target pixel merging mode is used as the target pixel merging mode again. The operation of comparing the target fingerprint image and the template fingerprint image and re-determining the target pixel merging mode when the comparison fails is repeated until the target fingerprint image and the template fingerprint image are successfully matched or there is no next pixel merging mode with a higher resolution than the target pixel merging mode.

[0006] Secondly, embodiments of this application provide a fingerprint recognition device, including: The feature comparison module is used to compare the features of the target fingerprint image obtained according to the target pixel merging mode with the template fingerprint image. The loop module is used to end the comparison if the target fingerprint image and the template fingerprint image feature matching is successful; if the target fingerprint image and the template fingerprint image fail to match, the next pixel merging mode with a higher resolution than the target pixel merging mode is used as the target pixel merging mode again, and the operation of comparing the target fingerprint image and the template fingerprint image feature and re-determining the target pixel merging mode when the comparison fails is performed repeatedly until the target fingerprint image and the template fingerprint image match successfully or there is no next pixel merging mode with a higher resolution than the target pixel merging mode.

[0007] Thirdly, embodiments of this application provide an electronic device including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the fingerprint recognition method as described in the first aspect.

[0008] Fourthly, embodiments of this application provide a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the fingerprint recognition method as described in the first aspect.

[0009] Fifthly, embodiments of this application provide a computer program product, the computer program product including a program or instructions, which, when executed by a processor, implement the steps of the fingerprint recognition method as described in the first aspect.

[0010] In a sixth aspect, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the fingerprint recognition method as described in the first aspect.

[0011] In this embodiment, the target fingerprint image obtained according to the target pixel merging mode is compared with the template fingerprint image. If the comparison is successful, the comparison ends. If the comparison fails, the next pixel merging mode with a higher resolution than the target pixel merging mode is used as the target pixel merging mode again. The operation of comparing the target fingerprint image with the template fingerprint image and re-determining the target pixel merging mode when the comparison fails is repeated until the target fingerprint image and the template fingerprint image are successfully compared or there is no next pixel merging mode with a higher resolution than the target pixel merging mode. In this way, when the first feature comparison fails, a high-quality target fingerprint image can be used for comparison again. This solves the problem that a fixed pixel merging mode cannot simultaneously take into account the recognition success rate and image quality, and can improve the recognition success rate and recognition efficiency. Attached Figure Description

[0012] Figure 1This is a flowchart of a fingerprint recognition method provided in an embodiment of this application; Figure 2 This is a flowchart of another fingerprint recognition method provided in an embodiment of this application; Figure 3 This is a flowchart of another fingerprint recognition method provided in an embodiment of this application; Figure 4 This is a flowchart of another fingerprint recognition method provided in an embodiment of this application; Figure 5 This is a flowchart of yet another fingerprint recognition method provided in the embodiments of this application; Figure 6 This is a schematic diagram of the structure of a fingerprint recognition device provided in an embodiment of this application; Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application. Detailed Implementation

[0013] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0014] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0015] Biometric technology has been widely applied to various terminal devices and electronic devices. Biometric identification technologies include, but are not limited to, fingerprint recognition, palmprint recognition, vein recognition, iris recognition, face recognition, liveness detection, and anti-counterfeiting technologies. Fingerprint recognition typically includes optical fingerprint recognition, capacitive fingerprint recognition, and ultrasonic fingerprint recognition. With the rise of full-screen technology, fingerprint recognition modules can be placed in a partial or complete area under the display screen, forming under-display fingerprint recognition; alternatively, the fingerprint recognition module can be partially or completely integrated into the display screen of the electronic device, forming in-display fingerprint recognition. The display screen can be an organic light-emitting diode (OLED) display or a liquid crystal display (LCD), etc. Fingerprint recognition methods typically include fingerprint image acquisition, preprocessing, feature extraction, and feature matching. Some or all of the above steps can be implemented using traditional computer vision (CV) algorithms or deep learning algorithms based on artificial intelligence (AI). Fingerprint recognition technology can be applied to portable or mobile terminals such as smartphones, tablets, and gaming devices, as well as other electronic devices such as smart door locks, cars, and bank ATMs, for fingerprint unlocking, fingerprint payment, fingerprint attendance, and identity authentication.

[0016] The fingerprint recognition method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0017] Figure 1 This is a flowchart illustrating a fingerprint recognition method provided in an embodiment of this application. This fingerprint recognition method is applicable to electronic devices with fingerprint recognition functionality, such as mobile phones, tablets, and fingerprint locks. Figure 1 As shown, the method may include steps 110 to 140.

[0018] Step 110: Compare the features of the target fingerprint image obtained according to the target pixel merging mode with the template fingerprint image.

[0019] Among them, the target pixel merging mode is the currently used pixel merging mode. Pixel merging mode, also known as image readout mode, indicates the number of pixels to be merged in each local pixel region. It is usually m×n, where the values ​​of m and n can be set as needed or are related to the hardware configuration of the fingerprint sensor. It indicates that the sensor pixel signal values ​​collected from the sensing pixels in the m columns and n rows of the neighborhood in the local pixel region are merged before being read out / output. Pixel merging methods can include summation, averaging, weighted averaging, etc.

[0020] Feature extraction is performed on the target fingerprint image, and the extracted fingerprint features are compared with the template fingerprint features of the template fingerprint image.

[0021] Step 120: Determine whether the feature comparison between the target fingerprint image and the template fingerprint image is successful. If yes, end the comparison; otherwise, proceed to step 130.

[0022] If the similarity between the fingerprint features of the target fingerprint image and the template fingerprint features of the template fingerprint image is greater than or equal to the similarity threshold, the fingerprint recognition is considered successful. If the similarity between the fingerprint features of the target fingerprint image and the template fingerprint features of the template fingerprint image is less than the similarity threshold, the fingerprint recognition is considered unsuccessful.

[0023] Step 130: Determine if there is a next pixel merging mode with a resolution higher than the target pixel merging mode. If yes, proceed to step 140. If no, determine that the fingerprint recognition has failed.

[0024] Multiple pixel merging modes of the fingerprint sensor are pre-configured. It is determined whether there is a pixel merging mode higher than the target pixel merging mode among all the pixel merging modes configured for the fingerprint sensor. If there is, step 140 is executed; otherwise, fingerprint recognition is determined to have failed.

[0025] Step 140: The next pixel merging mode with a resolution higher than the target pixel merging mode is re-designated as the target pixel merging mode, and then step 110 is executed.

[0026] Among them, the resolution of the pixel merging mode is inversely proportional to the number of pixels merged. The higher the number of merged pixels, the lower the resolution, and vice versa.

[0027] When the resolution of the target pixel merging mode is not the highest resolution configured for the fingerprint sensor, the next pixel merging mode with a higher resolution than the target pixel merging mode can be used as the target pixel merging mode again. This results in a higher quality target fingerprint image. Steps 110 to 140 are executed repeatedly until the target fingerprint image is successfully compared with the template fingerprint image or there is no next pixel merging mode with a higher resolution than the target pixel merging mode.

[0028] The fingerprint recognition method provided in this application compares the features of a target fingerprint image obtained according to the target pixel merging mode with a template fingerprint image. If the comparison is successful, the comparison ends; if the comparison fails, the next pixel merging mode with a higher resolution than the target pixel merging mode is used as the target pixel merging mode again. The operation of comparing the features of the target fingerprint image with the template fingerprint image and re-determining the target pixel merging mode when the comparison fails is repeated until the target fingerprint image and the template fingerprint image are successfully compared or there is no next pixel merging mode with a higher resolution than the target pixel merging mode. In this way, when the initial feature comparison fails, a high-quality target fingerprint image can be used for comparison again. This solves the problem that a fixed pixel merging mode cannot simultaneously ensure recognition success rate and image quality, thus improving the recognition success rate. Moreover, it solves the problem of low recognition efficiency caused by multiple retries due to a fixed pixel merging mode. Using a lower resolution pixel merging mode results in less data and shorter data reading time, which can improve recognition speed and efficiency.

[0029] Figure 2 This is a flowchart of another fingerprint recognition method provided in this application embodiment. Based on the above embodiments, this embodiment acquires the target fingerprint image using a fingerprint sensor according to the target pixel merging mode in each loop, such as... Figure 2 As shown, the method may include steps 210 to 250.

[0030] Step 210: Obtain the target fingerprint image using the fingerprint sensor according to the target pixel merging mode.

[0031] The fingerprint sensor may include an optical fingerprint sensor, a capacitive fingerprint sensor, or an ultrasonic fingerprint sensor.

[0032] When a user triggers fingerprint recognition, the pixel merging mode of the fingerprint sensor is configured to the target pixel merging mode. The fingerprint image is then acquired through the fingerprint sensor, and the acquired fingerprint image is processed by pixel merging according to the target pixel merging mode to obtain the target fingerprint image.

[0033] Step 220: Compare the features of the target fingerprint image obtained according to the target pixel merging mode with the template fingerprint image.

[0034] Step 230: Determine whether the feature comparison between the target fingerprint image and the template fingerprint image is successful. If yes, end the comparison; otherwise, proceed to step 240.

[0035] Step 240: Determine if there is a next pixel merging mode with a resolution higher than the target pixel merging mode. If yes, proceed to step 250. If no, determine that the fingerprint recognition has failed.

[0036] Step 250: The next pixel merging mode with a resolution higher than the target pixel merging mode is re-established as the target pixel merging mode, and then step 210 is executed.

[0037] In this embodiment, the pixel merging mode of the fingerprint sensor is configured as the target pixel merging mode each time a fingerprint image is acquired. The target fingerprint image is acquired based on the fingerprint sensor configured with the target pixel merging mode. If the feature comparison between the target fingerprint image and the template fingerprint image fails, the next pixel merging mode with a higher resolution than the target pixel merging mode is used as the target pixel merging mode again, and fingerprint image acquisition and feature comparison are performed. In this way, after a comparison fails once, a high-quality fingerprint image can be used for comparison again. This can avoid the situation where multiple comparisons fail due to low image quality caused by a fixed pixel merging mode, thereby improving the recognition success rate and recognition efficiency.

[0038] Figure 3 This is a flowchart of another fingerprint recognition method provided in this application embodiment. Based on the above embodiments, this embodiment acquires fingerprint images according to the pixel merging mode configured on the fingerprint sensor before feature comparison, such as... Figure 3 As shown, the method may include steps 310 to 350.

[0039] Step 310: Obtain fingerprint images according to the pixel merging modes configured for each fingerprint sensor.

[0040] The fingerprint sensor may include an optical fingerprint sensor, a capacitive fingerprint sensor, or an ultrasonic fingerprint sensor.

[0041] When a user triggers fingerprint recognition, the pixel merging mode of the fingerprint sensor is configured to each of the supported pixel merging modes, and a fingerprint image is acquired to obtain the fingerprint image corresponding to each pixel merging mode. For example, the pixel merging modes supported by the fingerprint sensor may include 3×3, 2×2, and 1×1. Of course, other pixel merging modes, such as 1×2 and 2×3, may also be included.

[0042] Step 320: Compare the features of the target fingerprint image obtained according to the target pixel merging mode with the template fingerprint image.

[0043] The target pixel merging mode can start from a low resolution. That is, when performing feature comparison for the first time, the lowest resolution pixel merging mode can be used. If the comparison fails, the pixel merging mode of the corresponding resolution will be switched to the target pixel merging mode in order from low to high resolution.

[0044] Step 330: Determine whether the feature comparison between the target fingerprint image and the template fingerprint image is successful. If yes, end the comparison; otherwise, proceed to step 340.

[0045] Step 340: Determine if there is a next pixel merging mode with a resolution higher than the target pixel merging mode. If yes, proceed to step 350. If no, determine that the fingerprint recognition has failed.

[0046] Step 350: The next pixel merging mode with a resolution higher than the target pixel merging mode is re-established as the target pixel merging mode, and then step 320 is executed.

[0047] In this embodiment, when a user triggers fingerprint recognition, the corresponding fingerprint image can be obtained according to each pixel merging mode. The corresponding pixel merging modes are selected as target pixel merging modes in order of resolution from low to high, and feature comparison is performed between the target fingerprint image and the template fingerprint image. If the comparison is successful, the subsequent comparison stops. If the comparison fails, the higher quality fingerprint image is used to compare the features with the template fingerprint image. This can avoid the situation where multiple comparisons fail due to low image quality when using a fixed pixel merging mode, thereby improving the recognition success rate and recognition efficiency.

[0048] Figure 4 This is a flowchart of another fingerprint recognition method provided in this application embodiment. Based on the above embodiments, this embodiment acquires and stores an initial fingerprint image at the highest resolution of the fingerprint sensor before performing feature comparison. Figure 4 As shown, the method may include steps 410 to 460.

[0049] Step 410: Obtain an initial fingerprint image according to the highest resolution of the fingerprint sensor, and store the initial fingerprint image.

[0050] The fingerprint sensor may include an optical fingerprint sensor, a capacitive fingerprint sensor, or an ultrasonic fingerprint sensor.

[0051] When a user triggers fingerprint recognition, the pixel merging mode of the fingerprint sensor is configured to the highest resolution pixel merging mode (such as 1×1), and a fingerprint image is acquired to obtain an initial fingerprint image. This initial fingerprint image is stored so that subsequent pixel merging of the initial fingerprint image based on the target pixel merging mode can be performed to obtain the target fingerprint image.

[0052] Step 420: Perform pixel merging processing on the initial fingerprint image according to the target pixel merging mode to obtain the target fingerprint image.

[0053] The corresponding pixel merging modes can be selected as target pixel merging modes in order of increasing resolution. That is, the target pixel merging mode can start from the lowest resolution. When performing feature comparison for the first time, the lowest resolution pixel merging mode can be used to perform pixel merging processing on the initial fingerprint image. If the comparison fails, the corresponding resolution pixel merging mode can be selected as the target pixel merging mode in order of increasing resolution.

[0054] The initial fingerprint image is processed by pixel merging according to the target pixel merging pattern, merging multiple pixels at corresponding positions into one pixel to obtain the target fingerprint image. During pixel merging, the average value, maximum value, or any single pixel value of multiple pixels can be used as the merged pixel value.

[0055] Step 430: Compare the features of the target fingerprint image obtained according to the target pixel merging mode with the template fingerprint image.

[0056] Step 440: Determine whether the feature comparison between the target fingerprint image and the template fingerprint image is successful. If yes, end the comparison; otherwise, proceed to step 450.

[0057] Step 450: Determine if there is a next pixel merging mode with a resolution higher than the target pixel merging mode. If yes, proceed to step 460. If no, determine that the fingerprint recognition has failed.

[0058] Step 460: The next pixel merging mode with a resolution higher than the target pixel merging mode is re-designated as the target pixel merging mode, and then step 420 is executed.

[0059] In this embodiment, when a user triggers fingerprint recognition, an initial fingerprint image can be acquired and stored according to the highest resolution of the fingerprint sensor. During each feature comparison, the initial fingerprint image is pixel-merged according to the target pixel merging mode to obtain the target fingerprint image. The target fingerprint image is then compared with the template fingerprint image. If the comparison fails, the next pixel merging mode with a higher resolution than the target pixel merging mode is used as the target pixel merging mode again, and the initial fingerprint image is pixel-merged and feature compared. In this way, after a comparison fails once, a high-quality fingerprint image can be used for comparison again, which can avoid the situation where multiple comparisons fail due to low image quality when using a fixed pixel merging mode, thereby improving the recognition success rate and recognition efficiency.

[0060] Based on any of the above embodiments, the step of comparing the target fingerprint image obtained according to the target pixel merging mode with the template fingerprint image includes: processing the target fingerprint image into an image with the same size as the template fingerprint image, and using it as the fingerprint image to be compared; and comparing the fingerprint image to be compared with the template fingerprint image.

[0061] When the target fingerprint image and the template fingerprint image have different sizes, the target fingerprint image needs to be processed to make it the same size as the template fingerprint image, and used as the fingerprint image to be compared. The fingerprint features in the fingerprint image to be compared are extracted and compared with the template fingerprint features of the template fingerprint image. If the similarity between the two is greater than or equal to the similarity threshold, the feature comparison is considered successful, that is, the fingerprint recognition is successful. If the similarity between the two is less than the similarity threshold, the feature comparison is considered to have failed.

[0062] By resizing the target fingerprint image to make it the same size as the template fingerprint image, it is easier to compare their features and improve the accuracy of feature comparison.

[0063] Figure 5 This is a flowchart of another fingerprint recognition method provided in this application embodiment. Based on the above embodiments, this embodiment uses a fingerprint sensor supporting three pixel merging modes as an example for explanation. In this case, during fingerprint recognition, a strategy of multiple acquisition attempts is employed according to a preset order. Specifically, during a single unlock trigger process, the system can sequentially attempt different pixel merging modes for fingerprint image acquisition and comparison, following the order of imaging quality from low to high (resolution from low to high) and speed from high to low. Figure 5 As shown, the method may include steps 510 to 570.

[0064] Step 510: A finger touches the fingerprint recognition area, triggering the fingerprint recognition process.

[0065] Step 520: Configure the fingerprint sensor array to the first pixel merging mode, acquire the first frame of fingerprint image based on the first pixel merging mode, extract fingerprint features from the first frame of fingerprint image, and compare the extracted first fingerprint features with the template fingerprint features of the template fingerprint image.

[0066] After the fingerprint recognition process is triggered, the first feature comparison attempt is made, that is, the fingerprint image is acquired and the features are compared using the first pixel merging mode.

[0067] The first pixel binning mode can be the lowest resolution pixel binning mode among all the pixel binning modes supported by the fingerprint sensor, such as the 3×3 Binning mode. The first pixel binning mode has the highest light sensitivity, the fastest acquisition speed, the smallest amount of fingerprint image data, and the lowest processing latency. Although the equivalent resolution is lower, it is sufficient to achieve fast recognition when the finger is in good condition and the signal is strong.

[0068] Step 530: Determine whether the first fingerprint feature and the template fingerprint feature are successfully matched. If the match is successful, the fingerprint recognition is successful. If the match fails, proceed to step 540.

[0069] Step 540: Configure the fingerprint sensor array to the second pixel merging mode, acquire the second frame fingerprint image based on the second pixel merging mode, extract fingerprint features from the second frame fingerprint image, and compare the extracted second fingerprint features with the template fingerprint features of the template fingerprint image.

[0070] After the first feature matching attempt fails, a second feature matching attempt is made, which involves using the second pixel merging mode to acquire fingerprint images and perform feature matching.

[0071] The second pixel binning mode is a pixel binning mode with a higher resolution than the first pixel binning mode, such as a 2×2 binning mode. The second pixel binning mode strikes a balance between sensitivity and resolution, and is the optimal trade-off in most cases, used to deal with most minor non-ideal conditions (such as normal finger conditions).

[0072] Step 550: Determine whether the second fingerprint feature and the template fingerprint feature are successfully matched. If the match is successful, the fingerprint recognition is successful. If the match fails, proceed to step 560.

[0073] Step 560: Configure the fingerprint sensor array to the third pixel merging mode, acquire the third frame fingerprint image based on the third pixel merging mode, extract fingerprint features from the third frame fingerprint image, and compare the extracted third fingerprint features with the template fingerprint features of the template fingerprint image.

[0074] After the second feature matching attempt fails, a third feature matching attempt is made, which involves using the third pixel merging mode to acquire fingerprint images and perform feature matching.

[0075] The third pixel merging mode is a pixel merging mode with a higher resolution than the second pixel merging mode, such as a 1×1 mode. The third pixel merging mode provides the highest image resolution, retains the richest fingerprint details, and is used to cope with the most adverse scenarios such as wet fingers, oily fingers, and strong ambient light, striving for a successful unlock.

[0076] Step 570: Determine whether the third fingerprint feature and the template fingerprint feature are successfully matched. If the match is successful, the fingerprint recognition is successful. If the match fails, the fingerprint recognition fails.

[0077] In this embodiment, each fingerprint image acquisition and comparison attempt is independent. As long as the comparison is successful at any stage, the entire fingerprint recognition process terminates immediately, and subsequent attempts are not executed. This ensures that, in most ideal situations, the user experiences the fastest recognition speed (success on the first attempt). In complex scenarios, the system can automatically improve signal quality through subsequent attempts, ultimately ensuring a high recognition success rate without the need for complex pre-judgment logic. This achieves a good balance between recognition speed and success rate, improving the user experience. Since the data volume of the first and second feature comparison attempts is much smaller than that of the third feature comparison attempt, and the decision path is fixed with no branch prediction, the average recognition delay is effectively controlled, avoiding the decision overhead that complex algorithms may bring. The fixed attempt order avoids misjudgments that complex algorithms may make in complex environments, improving reliability.

[0078] It should be noted that the fingerprint recognition method provided in this application embodiment can be executed by a fingerprint recognition device or a control module within that device for executing the fingerprint recognition method. This application embodiment uses the execution of the fingerprint recognition method by a fingerprint recognition device as an example to illustrate the fingerprint recognition method provided in this application embodiment.

[0079] Figure 6 This is a schematic diagram of the structure of a fingerprint recognition device provided in an embodiment of this application, as shown below. Figure 6 As shown, the fingerprint recognition device includes: The feature comparison module 610 is used to compare the features of the target fingerprint image obtained according to the target pixel merging mode with the template fingerprint image. The loop module 620 is used to end the comparison if the target fingerprint image and the template fingerprint image feature comparison are successful; if the target fingerprint image and the template fingerprint image fail to match, the next pixel merging mode with a resolution higher than the target pixel merging mode is used as the target pixel merging mode again, and the operation of comparing the target fingerprint image and the template fingerprint image feature comparison and re-determining the target pixel merging mode when the comparison fails is performed repeatedly until the target fingerprint image and the template fingerprint image match successfully or there is no next pixel merging mode with a resolution higher than the target pixel merging mode.

[0080] Optionally, the device further includes: The first image acquisition module is used to acquire a target fingerprint image through a fingerprint sensor according to the target pixel merging pattern; The loop module includes: The first loop unit is used to repeatedly execute the operations of obtaining the target fingerprint image according to the target pixel merging mode, comparing the target fingerprint image with the template fingerprint image for features, and re-determining the target pixel merging mode when the comparison fails.

[0081] Optionally, the device further includes: The second image acquisition module is used to acquire fingerprint images according to the pixel merging modes configured for each fingerprint sensor.

[0082] Optionally, the device further includes: The third image acquisition module is used to acquire an initial fingerprint image according to the highest resolution of the fingerprint sensor and store the initial fingerprint image; The loop module includes: The second loop unit is used to repeatedly perform pixel merging processing on the initial fingerprint image according to the target pixel merging mode to obtain the target fingerprint image, perform feature comparison between the target fingerprint image and the template fingerprint image, and redetermine the target pixel merging mode when the comparison fails.

[0083] Optionally, the fingerprint sensor may include an optical fingerprint sensor, a capacitive fingerprint sensor, or an ultrasonic fingerprint sensor.

[0084] Optionally, the feature comparison module is specifically used for: The target fingerprint image is processed into an image with the same size as the template fingerprint image, and used as the fingerprint image to be compared. The fingerprint image to be compared is compared with the template fingerprint image by feature matching.

[0085] The fingerprint recognition device in this application embodiment can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be servers, network attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This application embodiment does not impose specific limitations.

[0086] The fingerprint recognition device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0087] The fingerprint recognition device provided in this application embodiment can achieve... Figures 1 to 5 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0088] The fingerprint recognition device provided in this application compares the target fingerprint image obtained according to the target pixel merging mode with the template fingerprint image. If the comparison is successful, the comparison ends; if the comparison fails, the next pixel merging mode with a higher resolution than the target pixel merging mode is used as the target pixel merging mode again. The operation of comparing the target fingerprint image with the template fingerprint image and re-determining the target pixel merging mode when the comparison fails is repeated until the target fingerprint image and the template fingerprint image are successfully compared or there is no next pixel merging mode with a higher resolution than the target pixel merging mode. In this way, when the first feature comparison fails, a high-quality target fingerprint image can be used for comparison again. This solves the problem that a fixed pixel merging mode cannot simultaneously take into account the recognition success rate and image quality, and can improve the recognition success rate and recognition efficiency.

[0089] Optionally, embodiments of this application also provide an electronic device, including a processor, a memory, and a program or instructions stored in the memory and executable on the processor. When the program or instructions are executed by the processor, they implement the various processes of the fingerprint recognition method embodiments described above and achieve the same technical effects. To avoid repetition, they will not be described again here.

[0090] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0091] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application. The electronic device 700 includes, but is not limited to, components such as: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710. The input unit 704 may include an image processor 7041 and a microphone 7042; the display unit 706 may include a display panel 7061; and the user input unit 707 may include a touch panel 7071 and other input devices (such as a keyboard) 7072.

[0092] Those skilled in the art will understand that the electronic device 700 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 7 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here. The memory 709 stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor 710, it implements the various processes of the fingerprint recognition method embodiment described above and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0093] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the fingerprint recognition method embodiments described above and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0094] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0095] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above fingerprint recognition method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0096] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0097] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0098] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0099] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A fingerprint recognition method, characterized in that, include: The target fingerprint image obtained according to the target pixel merging mode is compared with the template fingerprint image in terms of features; If the target fingerprint image and the template fingerprint image are successfully matched, the comparison ends. If the target fingerprint image and the template fingerprint image are not matched, the next pixel merging mode with a higher resolution than the target pixel merging mode is used as the target pixel merging mode again. The operation of comparing the target fingerprint image and the template fingerprint image and re-determining the target pixel merging mode when the comparison fails is repeated until the target fingerprint image and the template fingerprint image are successfully matched or there is no next pixel merging mode with a higher resolution than the target pixel merging mode.

2. The method according to claim 1, characterized in that, Before performing feature comparison between the target fingerprint image obtained according to the target pixel merging mode and the template fingerprint image, the method further includes: The target fingerprint image is acquired using a fingerprint sensor according to the target pixel merging pattern. The cyclic execution of the operation of comparing the target fingerprint image with the template fingerprint image for features and re-determining the target pixel merging mode when the comparison fails includes: The process involves repeatedly obtaining the target fingerprint image according to the target pixel merging mode, comparing the target fingerprint image with the template fingerprint image for feature matching, and re-determining the target pixel merging mode when the matching fails.

3. The method according to claim 1, characterized in that, Before performing feature comparison between the target fingerprint image obtained according to the target pixel merging mode and the template fingerprint image, the method further includes: Fingerprint images are acquired according to the pixel merging modes configured for each fingerprint sensor.

4. The method according to claim 1, characterized in that, Before performing feature comparison between the target fingerprint image obtained according to the target pixel merging mode and the template fingerprint image, the method further includes: Acquire an initial fingerprint image according to the highest resolution of the fingerprint sensor, and store the initial fingerprint image; The cyclic execution of the operation of comparing the target fingerprint image with the template fingerprint image for features and re-determining the target pixel merging mode when the comparison fails includes: The process involves repeatedly performing pixel merging on the initial fingerprint image according to the target pixel merging mode to obtain the target fingerprint image, comparing the target fingerprint image with the template fingerprint image for features, and re-determining the target pixel merging mode when the comparison fails.

5. The method according to any one of claims 2-4, characterized in that, The fingerprint sensor includes an optical fingerprint sensor, a capacitive fingerprint sensor, or an ultrasonic fingerprint sensor.

6. The method according to any one of claims 1-4, characterized in that, The step of comparing the target fingerprint image obtained according to the target pixel merging mode with the template fingerprint image includes: The target fingerprint image is processed into an image with the same size as the template fingerprint image, and used as the fingerprint image to be compared. The fingerprint image to be compared is compared with the template fingerprint image by feature matching.

7. A fingerprint recognition device, characterized in that, include: The feature comparison module is used to compare the features of the target fingerprint image obtained according to the target pixel merging mode with the template fingerprint image. The loop module is used to end the comparison if the target fingerprint image and the template fingerprint image feature matching is successful; if the target fingerprint image and the template fingerprint image fail to match, the next pixel merging mode with a higher resolution than the target pixel merging mode is used as the target pixel merging mode again, and the operation of comparing the target fingerprint image and the template fingerprint image feature and re-determining the target pixel merging mode when the comparison fails is performed repeatedly until the target fingerprint image and the template fingerprint image match successfully or there is no next pixel merging mode with a higher resolution than the target pixel merging mode.

8. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the fingerprint recognition method as described in any one of claims 1-6.

9. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the fingerprint recognition method as described in any one of claims 1-6.

10. A computer program product, characterized in that, The computer program product includes a program or instructions that, when executed by a processor, implement the steps of the fingerprint recognition method as described in any one of claims 1-6.