Fingerprint identification method and device, equipment and storage medium
By acquiring multiple fingerprint images from electronic devices, calculating image quality scores and signal differences, and updating configuration information to adapt to the protective film scenario, the problem of untimely and inaccurate switching of fingerprint recognition configuration information under the protective film is solved, thus improving the recognition success rate.
Patent Information
- Application Number
- CN202510986563.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-16
- Publication Date
- 2025-10-31
AI Technical Summary
In existing technologies, after electronic devices are equipped with protective films, the configuration information for fingerprint recognition functions is not switched in a timely and accurate manner, resulting in a decrease in recognition success rate.
By acquiring multiple fingerprint images, calculating the image quality score and signal difference, judging the differences in image quality score and signal, and updating the configuration information when the preset conditions are met, the system adapts to the protective film scenario.
It improves the timeliness and accuracy of switching fingerprint recognition configuration information, thereby increasing the success rate of fingerprint recognition.
Smart Images

Figure CN120877337A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic equipment technology, and specifically relates to a fingerprint recognition method, device, equipment and storage medium. Background Technology
[0002] With the development of ultrasonic fingerprint technology, more and more electronic devices on the market are now compatible with ultrasonic fingerprint solutions. However, ultrasonic fingerprints are very sensitive to protective films, especially tempered glass films, which can affect the transmission of ultrasonic signals, leading to the attenuation of ultrasonic fingerprint signals and thus affecting the performance of ultrasonic fingerprint recognition.
[0003] In order to enable fingerprint recognition when electronic devices are equipped with protective films, the fingerprint image acquisition configuration supported by current electronic devices often includes configuration information adapted to the scenario of electronic devices being equipped with protective films. However, there are still defects in the untimely and inaccurate switching of configuration information for fingerprint image acquisition of electronic devices, which affects the success rate of fingerprint recognition. Summary of the Invention
[0004] The purpose of this application is to provide a fingerprint recognition method, apparatus, device, and storage medium that can improve the timeliness and accuracy of switching configuration information for fingerprint image acquisition in electronic devices, thereby increasing the success rate of fingerprint recognition.
[0005] In a first aspect, embodiments of this application provide a fingerprint recognition method, the method comprising:
[0006] Upon receiving a user's fingerprint input, N first fingerprint images and second fingerprint images are acquired, where N is a positive integer; the N first fingerprint images are all fingerprint images collected according to the default configuration information, and the second fingerprint images are fingerprint images collected according to the first configuration information, which is configuration information applicable to the scenario of protective film on electronic devices;
[0007] From N first fingerprint images and second fingerprint images, determine the third fingerprint image corresponding to the maximum image quality score, and perform fingerprint recognition on the third fingerprint image;
[0008] If fingerprint recognition is successful, the difference between the image quality scores of the second fingerprint image and N first fingerprint images, and the difference between the image signal quantities of the second fingerprint image and N first fingerprint images are determined; the image signal quantities are used to characterize the ratio of effective biometric information to noise information in the fingerprint image.
[0009] If the difference between the image quality score and the difference between the image signal quantity meet the preset conditions, the default configuration information will be updated to the first configuration information.
[0010] Secondly, embodiments of this application provide a fingerprint recognition device, the device comprising:
[0011] The acquisition module is used to acquire N first fingerprint images and second fingerprint images when a user's fingerprint input is received, where N is a positive integer; the N first fingerprint images are fingerprint images collected according to default configuration information, and the second fingerprint images are fingerprint images collected according to the first configuration information, which is configuration information applicable to the scenario of protective film on electronic devices;
[0012] The recognition module is used to determine the third fingerprint image corresponding to the maximum image quality score from N first fingerprint images and second fingerprint images, and to perform fingerprint recognition on the third fingerprint image;
[0013] The determination module is used to determine, in the case of successful fingerprint recognition, the difference between the image quality scores of the second fingerprint image and N first fingerprint images, and the difference between the image signal quantities of the second fingerprint image and N first fingerprint images; the image signal quantities are used to characterize the ratio of effective biometric information to noise information in the fingerprint image;
[0014] The configuration module is used to update the default configuration information to the first configuration information when the difference between the image quality score and the difference between the image signal quantity meet preset conditions.
[0015] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0016] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0017] Fifthly, 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 method as described in the first aspect.
[0018] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0019] In this embodiment, upon receiving a user's fingerprint input, N first fingerprint images collected according to default configuration information and a second fingerprint image collected according to first configuration information are acquired. The first configuration information is configuration information applicable to the scenario of a protective film on an electronic device. From the N first fingerprint images and the second fingerprint images, a third fingerprint image corresponding to the maximum image quality score is determined for fingerprint recognition. If fingerprint recognition is successful, the difference between the image quality scores of the second fingerprint image and the N first fingerprint images, as well as the difference between the image signal quantities of the second fingerprint image and the N first fingerprint images, are determined. The image signal quantity is used to characterize the ratio of effective biometric information to noise information in the fingerprint image. If the difference between the image quality scores and the difference between the image signal quantities meet preset conditions, the default configuration information is updated to the first configuration information.
[0020] In this way, fingerprint recognition can be performed based on the fingerprint image corresponding to the obtained default configuration information and the fingerprint image corresponding to the first configuration information. If the recognition is successful, it can be assumed that there is configuration information in the default configuration information and the first configuration information that can match the current scenario of the electronic device. The difference in image quality score and image signal quantity between the fingerprint images corresponding to the first configuration information and the default configuration information can be judged. If the difference meets certain conditions, it can be assumed that the first configuration information is better suited to the fingerprint image acquisition requirements of the current electronic device than the default configuration information. Then, the default configuration information can be directly updated to the first configuration information, improving the timeliness and accuracy of the configuration information switching for fingerprint image acquisition of the electronic device, thereby improving the success rate of fingerprint recognition. Attached Figure Description
[0021] Figure 1 This is a schematic flowchart of the fingerprint recognition method provided in the embodiments of this application;
[0022] Figure 2 This is a schematic diagram of different image acquisition and recognition stages in the fingerprint recognition method provided in the embodiments of this application;
[0023] Figure 3 This is a schematic flowchart of a scenario embodiment of the fingerprint recognition method provided in this application;
[0024] Figure 4 This is a schematic diagram of the fingerprint recognition device provided in the embodiments of this application;
[0025] Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;
[0026] Figure 6 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0027] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0028] 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 terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. 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.
[0029] In order to enable fingerprint recognition functionality even when electronic devices are equipped with protective films, current fingerprint image acquisition configurations for electronic devices often include configuration information adapted to scenarios where protective films are used.
[0030] Taking the fingerprint image acquisition configuration supported by an electronic device, which includes first configuration information, second configuration information, and third configuration information, as an example, the first configuration information is applicable to scenarios where the electronic device is equipped with a protective film; the second configuration information is applicable to scenarios where the electronic device is equipped with an original factory-installed soft film; and the third configuration information is applicable to scenarios where the electronic device is bare and without a film. Different configuration information represents the optimal frequency obtained through actual screen testing under the corresponding scenario. Only fingerprint images acquired using the corresponding configuration information under the corresponding scenario will be clear.
[0031] In related technologies, the fingerprint recognition unlocking process includes two stages. The first stage (retry0) uses the same configuration information, meaning the default configuration information allows for a maximum of three fingerprint image captures for fingerprint recognition. If recognition is successful, unlocking is successful and the process ends; if recognition fails, the process proceeds to the second stage (retry1). The second stage (retry1) uses the first, second, and third configuration information to capture fingerprint images respectively, and selects the optimal fingerprint image for recognition. Typically, two consecutive successful unlocks using the fingerprint image corresponding to the first configuration information are required before the default configuration information is switched to the first configuration information.
[0032] The applicant discovered that when users switch from a screen protector without a film or the original factory-installed soft film to other protective films, such as tempered glass, the system image configuration needs to switch the default configuration information to the first configuration information. However, some tempered glass films have poor performance and struggle to meet the condition of successfully unlocking with two consecutive fingerprint images corresponding to the first configuration information, resulting in a long switching time. During this time, fingerprint recognition is prone to failure, leading to a poor user unlocking experience. Additionally, some users are accustomed to quick-raise unlocking, that is, lightly touching the screen and immediately lifting it. This method often fails to reach the second stage of the unlocking process, thus preventing the configuration switching logic from being executed, which also leads to a prolonged failure to switch successfully, affecting the unlocking experience.
[0033] Based on this, 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.
[0034] Figure 1 This is a schematic flowchart of the fingerprint recognition method provided in an embodiment of this application. The fingerprint recognition method may include:
[0035] Step 101: Upon receiving a user's fingerprint input, acquire N first fingerprint images and second fingerprint images, where N is a positive integer; the N first fingerprint images are fingerprint images collected according to the default configuration information, and the second fingerprint images are fingerprint images collected according to the first configuration information, which is configuration information applicable to the scenario of protective film on electronic devices.
[0036] In step 101, the user presses their finger on the screen of the electronic device. When the electronic device receives the user's fingerprint input, it can collect N first fingerprint images according to the default configuration information and collect second fingerprint images according to the first configuration information. The specific value of N can be set according to actual needs, for example, N can be 2.
[0037] It is understandable that the first configuration information can be configuration information applicable to scenarios where protective films are used on electronic devices. The default configuration information can be other configuration information that differs from the first configuration information. For example, the default configuration information could be the second configuration information applicable to scenarios where original factory-installed soft films are used on electronic devices, or the third configuration information applicable to scenarios where electronic devices are bare and without films.
[0038] Acquiring N first and second fingerprint images can be done in two ways: either all at once upon receiving a user's fingerprint input, or sequentially, by acquiring the first and second fingerprint images sequentially. For example, the first fingerprint image is acquired; if it meets the fingerprint recognition requirements, fingerprint recognition is performed directly; if not, the second first fingerprint image is acquired, and so on, until the Nth first fingerprint image is acquired. If none of the N images meet the requirements, the second fingerprint image is then acquired. The specific acquisition method can be set according to actual needs and is not specifically limited here.
[0039] Step 102: From the N first fingerprint images and second fingerprint images, determine the third fingerprint image corresponding to the maximum image quality score, and perform fingerprint recognition on the third fingerprint image.
[0040] In step 102, after acquiring N first and second fingerprint images, their image quality scores can be calculated respectively. The image quality score characterizes the image quality of the fingerprint image, typically including aspects such as sharpness, contrast, noise, and integrity. The image quality score can be calculated comprehensively using key indicators such as contrast, sharpness, and effective area. For example, the contrast, sharpness, and effective area of the fingerprint image can be obtained, and their respective weight values can be combined to calculate the image quality score of that fingerprint image.
[0041] The fingerprint image with the highest image quality score can be designated as the third fingerprint image for fingerprint recognition. For example, given N first fingerprint images (fingerprint image 1 and fingerprint image 2) and a second fingerprint image (fingerprint image 3), where the image quality score of fingerprint image 1 is q1, the image quality score of fingerprint image 2 is q2, and the image quality score of fingerprint image 3 is q3, if the highest score is q1, then fingerprint image 1 will be used as the third fingerprint image for fingerprint recognition.
[0042] Step 103: If fingerprint recognition is successful, determine the difference in image quality scores between the second fingerprint image and N first fingerprint images, and the difference in image signal quantity between the second fingerprint image and N first fingerprint images; the image signal quantity is used to characterize the ratio of effective biometric information to noise information in the fingerprint image.
[0043] In step 103, if fingerprint recognition is successful, the difference between the image quality scores of the second fingerprint image and N first fingerprint images can be calculated. For example, a first sub-difference between the image quality scores of the second fingerprint image and each of the first fingerprint images can be calculated separately, and the sum of these first sub-differences can be used as the difference between the image quality scores of the second fingerprint image and the N first fingerprint images. Alternatively, the average of the first sub-differences can be used as the difference between the image quality scores of the second fingerprint image and the N first fingerprint images. Alternatively, the maximum value can be determined from the image quality scores of the N first fingerprint images, and the difference between the image quality score of the second fingerprint image and this maximum value can be used as the difference between the image quality scores of the second fingerprint image and the N first fingerprint images. The specific calculation method can be set according to actual needs and is not specifically limited here.
[0044] It is also possible to calculate the image signal quantity of the second fingerprint image and each of the N first fingerprint images, and then calculate the difference between the image signal quantity of the second fingerprint image and each of the N first fingerprint images. The image signal quantity is used to characterize the ratio of effective biometric information to noise information in the fingerprint image, and can be calculated based on indicators such as signal-to-noise ratio, contrast, and orientation field consistency.
[0045] For example, a second sub-difference value can be calculated between the image signal quantities of the second fingerprint image and each of the first fingerprint images, and the sum of these second sub-difference values can be used as the difference between the image signal quantities of the second fingerprint image and the N first fingerprint images. Alternatively, the average of the second sub-difference values can be used as the difference between the image signal quantities of the second fingerprint image and the N first fingerprint images. Another approach is to first determine the maximum value among the image signal quantities of the N first fingerprint images, and then use the difference between the image signal quantity of the second fingerprint image and this maximum value as the difference between the image signal quantity of the second fingerprint image and the N first fingerprint images. The specific calculation method can be set according to actual needs and is not specifically limited here.
[0046] Understandably, if fingerprint recognition fails, the process can proceed to the next stage of the fingerprint recognition process.
[0047] Step 104: If the difference between the image quality score and the difference between the image signal quantity meet the preset conditions, update the default configuration information to the first configuration information.
[0048] In step 104, the preset condition may refer to either the difference between the image quality scores and the difference between the image signal quantities being greater than or equal to a threshold. For example, if the difference between the image quality scores is greater than or equal to a quality score threshold, or if the difference between the image signal quantities is greater than or equal to a signal quantity threshold, then the difference between the image quality scores and the difference between the image signal quantities can be considered to satisfy the preset condition.
[0049] The preset condition can also refer to the requirement that the difference in image quality scores and the difference in image signal strength must both be greater than or equal to a threshold. That is, if the difference in image quality scores is greater than or equal to a quality score threshold, and the difference in image signal strength is greater than or equal to a signal strength threshold, then the difference in image quality scores and the difference in image signal strength can be considered to meet the preset condition.
[0050] If the difference in image quality score and the difference in image signal quantity meet the preset conditions, it can be assumed that the fingerprint image corresponding to the first configuration information is clearer. At this time, it can be inferred that the electronic device is equipped with a protective film, and the default configuration information can be updated to the first configuration information.
[0051] In this embodiment, when a fingerprint recognition method receives a user's fingerprint input, it acquires N first fingerprint images collected according to default configuration information and a second fingerprint image collected according to first configuration information, wherein the first configuration information is configuration information applicable to the scenario of protective film on electronic devices; from the N first fingerprint images and the second fingerprint images, it determines the third fingerprint image corresponding to the maximum image quality score and performs fingerprint recognition; if the fingerprint recognition is successful, it determines the difference between the image quality scores of the second fingerprint image and the N first fingerprint images, and the difference between the image signal quantity of the second fingerprint image and the N first fingerprint images; the image signal quantity is used to characterize the ratio of effective biometric information to noise information in the fingerprint image; if the difference between the image quality scores and the difference between the image signal quantity meet preset conditions, it updates the default configuration information to the first configuration information.
[0052] In this way, fingerprint recognition can be performed based on the fingerprint image corresponding to the obtained default configuration information and the fingerprint image corresponding to the first configuration information. If the recognition is successful, it can be assumed that there is configuration information in the default configuration information and the first configuration information that can match the current scenario of the electronic device. The difference in image quality score and image signal quantity between the fingerprint images corresponding to the first configuration information and the default configuration information can be judged. If the difference meets certain conditions, it can be assumed that the first configuration information is better suited to the fingerprint image acquisition requirements of the current electronic device than the default configuration information. Then, the default configuration information can be directly updated to the first configuration information, improving the timeliness and accuracy of the configuration information switching for fingerprint image acquisition of the electronic device, thereby improving the success rate of fingerprint recognition.
[0053] In some embodiments, acquiring N first fingerprint images and second fingerprint images may include:
[0054] Collect the i-th first fingerprint image according to the default configuration information until the image quality score of the i-th first fingerprint image is greater than or equal to the recognition threshold, or i equals N; where i is a positive integer less than or equal to N;
[0055] When i equals N and the image quality score of the Nth first fingerprint image is less than the recognition threshold, the second fingerprint image is collected according to the first configuration information.
[0056] In this embodiment, a first fingerprint image can be acquired according to the default configuration information, and the image quality score of the first fingerprint image can be calculated. If the image quality score of the first fingerprint image is less than the recognition threshold, it is considered that the first fingerprint image cannot be recognized successfully. At this time, the next first fingerprint image can be acquired according to the default configuration information, and the above judgment process can be repeated until the image quality score of the first fingerprint image is greater than or equal to the recognition threshold, or the number of times the first fingerprint image is acquired according to the default configuration information reaches N times.
[0057] If the image quality score of the Nth first fingerprint image is still less than the recognition threshold, then the second fingerprint image can be collected according to the first configuration information.
[0058] Thus, if the image quality score of the first fingerprint image collected N times according to the default configuration information is less than the recognition threshold, it will be considered that the default configuration information may not meet the current fingerprint image collection requirements. At this time, a second fingerprint image is collected according to the first configuration information so that it can be determined whether the default configuration information needs to be switched to the first configuration information based on the second fingerprint image. This can meet the timeliness requirements of the configuration information switching of fingerprint image collection of electronic devices, while increasing the necessity of collecting the second fingerprint image for subsequent switching determination, reducing the amount of calculation, and saving computing resources.
[0059] In some embodiments, the method may further include:
[0060] If the image quality score of the i-th first fingerprint image is greater than or equal to the recognition threshold, fingerprint recognition is performed on the i-th first fingerprint image.
[0061] In this embodiment, if the image quality score of the i-th first fingerprint image is greater than or equal to the recognition threshold, it can be considered that the currently acquired first fingerprint image can be used for fingerprint recognition and has a certain success rate. Fingerprint recognition can be performed directly on the i-th first fingerprint image without having to acquire the next first or second fingerprint image.
[0062] This increases the necessity of acquiring a second fingerprint image for subsequent switching determination, reduces the amount of computation, and saves computing resources.
[0063] Understandably, if the fingerprint recognition of the i-th first fingerprint image fails, the fingerprint recognition process can proceed to the next stage.
[0064] In some embodiments, after performing fingerprint recognition on the third fingerprint image, the method may further include:
[0065] In the event of fingerprint recognition failure, M fourth fingerprint images are collected according to M configuration information, where M is an integer greater than 1; wherein the M configuration information includes the first configuration information;
[0066] From M fourth fingerprint images, determine the fifth fingerprint image corresponding to the maximum image quality score, and perform fingerprint recognition on the fifth fingerprint image;
[0067] If fingerprint recognition is successful, determine the difference in image quality scores between the sixth fingerprint image and the M-1 seventh fingerprint images, as well as the difference in image signal quantity between the sixth fingerprint image and the M-1 seventh fingerprint images; the sixth fingerprint image is the fingerprint image corresponding to the first configuration information among the M fourth fingerprint images, and the M-1 seventh fingerprint images are the other fingerprint images among the M fourth fingerprint images excluding the sixth fingerprint image;
[0068] If the difference between the image quality score and the difference between the image signal quantity meet the preset conditions, the default configuration information will be updated to the first configuration information.
[0069] In this embodiment, if the first stage of fingerprint recognition fails, the next stage of fingerprint recognition can continue. M fourth fingerprint images can be collected according to M configuration information, for example, fingerprint image 4 can be collected according to the first configuration information, fingerprint image 5 according to the second configuration information, and fingerprint image 6 according to the third configuration information.
[0070] Then, the image quality scores of the M fourth fingerprint images are calculated respectively. The fifth fingerprint image corresponding to the maximum image quality score among the M fourth fingerprint images is then selected for fingerprint recognition. For example, fingerprint image 4 has an image quality score of q4, fingerprint image 5 has an image quality score of q5, and fingerprint image 6 has an image quality score of q6. If the maximum value is q4, then fingerprint image 4 will be used as the fifth fingerprint image for fingerprint recognition.
[0071] If fingerprint recognition is successful, the difference in image quality scores between the sixth fingerprint image corresponding to the first configuration information and the other M-1 seventh fingerprint images can be calculated. For example, a third sub-difference can be calculated between the image quality scores of the sixth fingerprint image and each of the M-1 seventh fingerprint images, and the sum of these third sub-differences can be used as the difference in image quality scores between the sixth fingerprint image and the M-1 seventh fingerprint images. Alternatively, the average of the third sub-differences can be used as the difference in image quality scores between the sixth fingerprint image and the M-1 seventh fingerprint images. Another approach is to first determine the maximum value among the image quality scores of the M-1 seventh fingerprint images, and then use the difference between the image quality score of the sixth fingerprint image and this maximum value as the difference in image quality scores between the sixth fingerprint image and the M-1 seventh fingerprint images. The specific calculation method can be set according to actual needs and is not specifically limited here.
[0072] It is also possible to calculate the image signal quantity of the sixth fingerprint image and each of the M-1 seventh fingerprint images, and then calculate the difference between the image signal quantity of the sixth fingerprint image and each of the M-1 seventh fingerprint images.
[0073] For example, the fourth sub-difference value of the image signal quantity of the sixth fingerprint image and each of the first fingerprint images can be calculated separately, and the sum of the fourth sub-difference values can be used as the difference between the image signal quantity of the sixth fingerprint image and the M-1 seventh fingerprint images. Alternatively, the average of the fourth sub-difference values can be used as the difference between the image signal quantity of the sixth fingerprint image and the M-1 seventh fingerprint images. Another approach is to first determine the maximum value among the image signals of the M-1 seventh fingerprint images, and then use the difference between the image signal quantity of the sixth fingerprint image and this maximum value as the difference between the image signal quantity of the sixth fingerprint image and the M-1 seventh fingerprint images. The specific calculation method can be set according to actual needs and is not specifically limited here.
[0074] As mentioned above, the preset condition can mean that either the difference in image quality score or the difference in image signal quantity is greater than or equal to the threshold, or it can mean that the difference in image quality score and the difference in image signal quantity must be greater than or equal to the threshold at the same time.
[0075] If the difference in image quality score and the difference in image signal quantity meet the preset conditions, it can be assumed that the fingerprint image corresponding to the first configuration information is clearer. At this time, it can be inferred that the electronic device is equipped with a protective film, and the default configuration information can be updated to the first configuration information.
[0076] In this way, if fingerprint recognition fails in the previous stage, fingerprint recognition can be performed again based on fingerprint images collected according to different configuration information. If the recognition is successful, the difference in image quality score and image signal quantity between the fingerprint image corresponding to the first configuration information and the fingerprint image corresponding to other configuration information can be judged. If the difference meets certain conditions, it can be considered that the first configuration information is more suitable for the fingerprint image acquisition requirements of the current electronic device. Then, the default configuration information can be updated to the first configuration information, further improving the timeliness of the configuration information switching for fingerprint image acquisition of the electronic device, thereby improving the success rate of fingerprint recognition.
[0077] In some embodiments, updating the default configuration information to the first configuration information when the difference between the image quality score and the difference between the image signal quantity meet preset conditions may include:
[0078] If the difference in image quality scores is greater than or equal to the quality score threshold, and the difference in image semaphore is greater than or equal to the semaphore threshold, the default configuration information will be updated to the first configuration information.
[0079] In this embodiment, if the difference in image quality scores is greater than or equal to the quality score threshold, and the difference in image signal quantity is greater than or equal to the signal quantity threshold, then the fingerprint image corresponding to the first configuration information is considered to be clearer and more suitable for the fingerprint recognition needs of the electronic device in the current scenario, considering both image quality score and image signal quantity. At this time, the default configuration information can be updated to the first configuration information.
[0080] This improves the reliability of the basis for fingerprint recognition switching, thereby enhancing the accuracy of switching configuration information for fingerprint image acquisition in electronic devices.
[0081] To facilitate understanding of the fingerprint recognition method provided in the above embodiments, the following describes the fingerprint recognition method using a specific scenario embodiment. For example... Figure 2 As shown, the scenario implementation may include two stages: a first stage (retry0) 201 and a second stage (retry1) 202. In the first stage (retry0), fingerprint images are collected twice according to the default configuration information and once according to the first configuration information for fingerprint recognition. If recognition is successful, unlocking is successful and the process ends. If recognition fails, the process proceeds to the second stage (retry1). In the second stage (retry1), fingerprint images are collected using the first, second, and third configuration information respectively, and the optimal fingerprint image is selected for fingerprint recognition.
[0082] Figure 3 This is a schematic flowchart of a scenario embodiment of the fingerprint recognition method provided in this application.
[0083] Taking the default configuration information as the third configuration information as an example, this scenario implementation can specifically include the following steps:
[0084] Step 301: Receive the user's fingerprint recognition input;
[0085] Step 302: Collect fingerprint image 1 according to the third configuration information, and calculate the image quality score q1 of fingerprint image 1;
[0086] Step 303: Determine whether the image quality score q1 is greater than or equal to the recognition threshold. If yes, proceed to step 308; otherwise, proceed to step 304.
[0087] Step 304: Collect fingerprint image 2 according to the third configuration information, and calculate the image quality score q2 of fingerprint image 2;
[0088] Step 305: Determine whether the image quality score q2 is greater than or equal to the recognition threshold. If yes, proceed to step 308; otherwise, proceed to step 306.
[0089] Step 306: Collect fingerprint image 3 according to the first configuration information, and calculate the image quality score q3 of fingerprint image 3;
[0090] Step 307: Select the fingerprint image with the highest image quality score from fingerprint image 1, fingerprint image 2 and fingerprint image 3;
[0091] Step 308, retry0 fingerprint recognition;
[0092] Step 309: Determine whether the fingerprint recognition of retry0 was successful; if yes, proceed to step 310; otherwise, proceed to step 313.
[0093] Step 310: Calculate the difference in image quality score and the difference in image signal quantity between the fingerprint image corresponding to the first configuration information and other fingerprint images;
[0094] Step 311: Determine whether the difference in image quality scores is greater than or equal to the quality score threshold, and whether the difference in image signal quantity is greater than or equal to the signal quantity threshold. If yes, proceed to step 312; otherwise, end.
[0095] Step 312: Switch the default configuration information to the first configuration information;
[0096] Step 313: Collect fingerprint image 4 according to the first configuration information, collect fingerprint image 5 according to the second configuration information, and collect fingerprint image 6 according to the third configuration information;
[0097] Step 314: Select the fingerprint image with the highest image quality score from fingerprint image 4, fingerprint image 5 and fingerprint image 6;
[0098] Step 315, retry1 fingerprint recognition;
[0099] Step 316: Determine whether the fingerprint recognition of retry1 was successful; if yes, proceed to step 310; otherwise, end the process.
[0100] The fingerprint recognition method provided in this application can be executed by a fingerprint recognition device. This application uses a fingerprint recognition device executing the fingerprint recognition method as an example to illustrate the fingerprint recognition device provided in this application.
[0101] like Figure 4 As shown, the fingerprint recognition device 400 may include:
[0102] The acquisition module 401 is used to acquire N first fingerprint images and second fingerprint images when a user's fingerprint input is received, where N is a positive integer; the N first fingerprint images are fingerprint images collected according to default configuration information, and the second fingerprint images are fingerprint images collected according to the first configuration information, where the first configuration information is configuration information applicable to the scenario of protective film on electronic devices;
[0103] The identification module 402 is used to determine the third fingerprint image corresponding to the maximum image quality score from N first fingerprint images and second fingerprint images, and to perform fingerprint identification on the third fingerprint image;
[0104] The determining module 403 is used to determine, in the case of successful fingerprint recognition, the difference between the image quality scores of the second fingerprint image and N first fingerprint images, and the difference between the image signal quantities of the second fingerprint image and N first fingerprint images; the image signal quantities are used to characterize the ratio of effective biometric information to noise information in the fingerprint image;
[0105] The configuration module 404 is used to update the default configuration information to the first configuration information when the difference between the image quality score and the difference between the image signal quantity meet the preset conditions.
[0106] In this way, fingerprint recognition can be performed based on the fingerprint image corresponding to the obtained default configuration information and the fingerprint image corresponding to the first configuration information. If the recognition is successful, it can be assumed that there is configuration information in the default configuration information and the first configuration information that can match the current scenario of the electronic device. The difference in image quality score and image signal quantity between the fingerprint images corresponding to the first configuration information and the default configuration information can be judged. If the difference meets certain conditions, it can be assumed that the first configuration information is better suited to the fingerprint image acquisition requirements of the current electronic device than the default configuration information. Then, the default configuration information can be directly updated to the first configuration information, improving the timeliness and accuracy of the configuration information switching for fingerprint image acquisition of the electronic device, thereby improving the success rate of fingerprint recognition.
[0107] In some embodiments, the acquisition module 401 can also be used for:
[0108] Collect the i-th first fingerprint image according to the default configuration information until the image quality score of the i-th first fingerprint image is greater than or equal to the recognition threshold, or i equals N; where i is a positive integer less than or equal to N;
[0109] When i equals N and the image quality score of the Nth first fingerprint image is less than the recognition threshold, the second fingerprint image is collected according to the first configuration information.
[0110] Thus, if the image quality score of the first fingerprint image collected N times according to the default configuration information is less than the recognition threshold, it will be considered that the default configuration information may not meet the current fingerprint image collection requirements. At this time, a second fingerprint image is collected according to the first configuration information so that it can be determined whether the default configuration information needs to be switched to the first configuration information based on the second fingerprint image. This can meet the timeliness requirements of the configuration information switching of fingerprint image collection of electronic devices, while increasing the necessity of collecting the second fingerprint image for subsequent switching determination, reducing the amount of calculation, and saving computing resources.
[0111] In some embodiments, the identification module 402 can also be used for:
[0112] If the image quality score of the i-th first fingerprint image is greater than or equal to the recognition threshold, fingerprint recognition is performed on the i-th first fingerprint image.
[0113] This increases the necessity of acquiring a second fingerprint image for subsequent switching determination, reduces the amount of computation, and saves computing resources.
[0114] In some embodiments, the acquisition module 401 can also be used for:
[0115] In the event of fingerprint recognition failure, M fourth fingerprint images are collected according to M configuration information, where M is an integer greater than 1; wherein the M configuration information includes the first configuration information;
[0116] The identification module 402 can also be used to: determine the fifth fingerprint image corresponding to the maximum image quality score from the M fourth fingerprint images, and perform fingerprint recognition on the fifth fingerprint image;
[0117] The determining module 403 can also be used to: determine the difference in image quality scores between the sixth fingerprint image and the M-1 seventh fingerprint images, and the difference in image signal quantity between the sixth fingerprint image and the M-1 seventh fingerprint images, when fingerprint recognition is successful; the sixth fingerprint image is the fingerprint image corresponding to the first configuration information among the M fourth fingerprint images, and the M-1 seventh fingerprint images are the other fingerprint images among the M fourth fingerprint images excluding the sixth fingerprint image;
[0118] The configuration module 404 can also be used to update the default configuration information to the first configuration information when the difference between the image quality score and the difference between the image signal quantity meet the preset conditions.
[0119] In this way, if fingerprint recognition fails in the previous stage, fingerprint recognition can be performed again based on fingerprint images collected according to different configuration information. If the recognition is successful, the difference in image quality score and image signal quantity between the fingerprint image corresponding to the first configuration information and the fingerprint image corresponding to other configuration information can be judged. If the difference meets certain conditions, it can be considered that the first configuration information is more suitable for the fingerprint image acquisition requirements of the current electronic device. Then, the default configuration information can be updated to the first configuration information, further improving the timeliness of the configuration information switching for fingerprint image acquisition of the electronic device, thereby improving the success rate of fingerprint recognition.
[0120] In some embodiments, the configuration module 404 is further configured to:
[0121] If the difference in image quality scores is greater than or equal to the quality score threshold, and the difference in image semaphore is greater than or equal to the semaphore threshold, the default configuration information will be updated to the first configuration information.
[0122] This improves the reliability of the basis for fingerprint recognition switching, thereby enhancing the accuracy of switching configuration information for fingerprint image acquisition in electronic devices.
[0123] The fingerprint recognition device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0124] 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.
[0125] The fingerprint recognition device provided in this application embodiment can achieve... Figures 1 to 3 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0126] Optionally, such as Figure 5 As shown, this application embodiment also provides an electronic device 500, including a processor 501 and a memory 502. The memory 502 stores a program or instructions that can run on the processor 501. When the program or instructions are executed by the processor 501, they implement the various steps of the fingerprint recognition method embodiment described above and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0127] It should be noted that the electronic devices in the embodiments of this application include the aforementioned mobile electronic devices and non-mobile electronic devices.
[0128] Figure 6 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application.
[0129] The electronic device 600 includes, but is not limited to, components such as: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.
[0130] Those skilled in the art will understand that the electronic device 600 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 610 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 6 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.
[0131] The processor 610 can be used for:
[0132] Upon receiving a user's fingerprint input, N first fingerprint images and second fingerprint images are acquired, where N is a positive integer; the N first fingerprint images are all fingerprint images collected according to the default configuration information, and the second fingerprint images are fingerprint images collected according to the first configuration information, which is configuration information applicable to the scenario of protective film on electronic devices;
[0133] From N first fingerprint images and second fingerprint images, determine the third fingerprint image corresponding to the maximum image quality score, and perform fingerprint recognition on the third fingerprint image;
[0134] If fingerprint recognition is successful, the difference between the image quality scores of the second fingerprint image and N first fingerprint images, and the difference between the image signal quantities of the second fingerprint image and N first fingerprint images are determined; the image signal quantities are used to characterize the ratio of effective biometric information to noise information in the fingerprint image.
[0135] If the difference between the image quality score and the difference between the image signal quantity meet the preset conditions, the default configuration information will be updated to the first configuration information.
[0136] In this way, fingerprint recognition can be performed based on the fingerprint image corresponding to the obtained default configuration information and the fingerprint image corresponding to the first configuration information. If the recognition is successful, it can be assumed that there is configuration information in the default configuration information and the first configuration information that can match the current scenario of the electronic device. The difference in image quality score and image signal quantity between the fingerprint images corresponding to the first configuration information and the default configuration information can be judged. If the difference meets certain conditions, it can be assumed that the first configuration information is better suited to the fingerprint image acquisition requirements of the current electronic device than the default configuration information. Then, the default configuration information can be directly updated to the first configuration information, improving the timeliness and accuracy of the configuration information switching for fingerprint image acquisition of the electronic device, thereby improving the success rate of fingerprint recognition.
[0137] In some embodiments, the processor 610 may also be used for:
[0138] Collect the i-th first fingerprint image according to the default configuration information until the image quality score of the i-th first fingerprint image is greater than or equal to the recognition threshold, or i equals N; where i is a positive integer less than or equal to N;
[0139] When i equals N and the image quality score of the Nth first fingerprint image is less than the recognition threshold, the second fingerprint image is collected according to the first configuration information.
[0140] Thus, if the image quality score of the first fingerprint image collected N times according to the default configuration information is less than the recognition threshold, it will be considered that the default configuration information may not meet the current fingerprint image collection requirements. At this time, a second fingerprint image is collected according to the first configuration information so that it can be determined whether the default configuration information needs to be switched to the first configuration information based on the second fingerprint image. This can meet the timeliness requirements of the configuration information switching of fingerprint image collection of electronic devices, while increasing the necessity of collecting the second fingerprint image for subsequent switching determination, reducing the amount of calculation, and saving computing resources.
[0141] In some embodiments, the processor 610 may also be used for:
[0142] If the image quality score of the i-th first fingerprint image is greater than or equal to the recognition threshold, fingerprint recognition is performed on the i-th first fingerprint image.
[0143] This increases the necessity of acquiring a second fingerprint image for subsequent switching determination, reduces the amount of computation, and saves computing resources.
[0144] In some embodiments, the processor 610 may also be used for:
[0145] In the event of fingerprint recognition failure, M fourth fingerprint images are collected according to M configuration information, where M is an integer greater than 1; wherein the M configuration information includes the first configuration information;
[0146] From M fourth fingerprint images, determine the fifth fingerprint image corresponding to the maximum image quality score, and perform fingerprint recognition on the fifth fingerprint image;
[0147] If fingerprint recognition is successful, determine the difference in image quality scores between the sixth fingerprint image and the M-1 seventh fingerprint images, as well as the difference in image signal quantity between the sixth fingerprint image and the M-1 seventh fingerprint images; the sixth fingerprint image is the fingerprint image corresponding to the first configuration information among the M fourth fingerprint images, and the M-1 seventh fingerprint images are the other fingerprint images among the M fourth fingerprint images excluding the sixth fingerprint image;
[0148] If the difference between the image quality score and the difference between the image signal quantity meet the preset conditions, the default configuration information will be updated to the first configuration information.
[0149] In this way, if fingerprint recognition fails in the previous stage, fingerprint recognition can be performed again based on fingerprint images collected according to different configuration information. If the recognition is successful, the difference in image quality score and image signal quantity between the fingerprint image corresponding to the first configuration information and the fingerprint image corresponding to other configuration information can be judged. If the difference meets certain conditions, it can be considered that the first configuration information is more suitable for the fingerprint image acquisition requirements of the current electronic device. Then, the default configuration information can be updated to the first configuration information, further improving the timeliness of the configuration information switching for fingerprint image acquisition of the electronic device, thereby improving the success rate of fingerprint recognition.
[0150] In some embodiments, the processor 610 may also be used for:
[0151] If the difference in image quality scores is greater than or equal to the quality score threshold, and the difference in image semaphore is greater than or equal to the semaphore threshold, the default configuration information will be updated to the first configuration information.
[0152] This improves the reliability of the basis for fingerprint recognition switching, thereby enhancing the accuracy of switching configuration information for fingerprint image acquisition in electronic devices.
[0153] It should be understood that, in this embodiment, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042. The GPU 6041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 606 may include a display panel 6061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 607 includes at least one of a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0154] The memory 609 can be used to store software programs and various data. The memory 609 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 609 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 609 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0155] Processor 610 may include one or more processing units; optionally, processor 610 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 610.
[0156] 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.
[0157] 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.
[0158] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described fingerprint recognition method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0159] 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.
[0160] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the fingerprint recognition method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0161] 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.
[0162] 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 computer 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, or network device, etc.) to execute the methods of the various embodiments of this application.
[0163] 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, The method includes: Upon receiving a user's fingerprint input, N first fingerprint images and second fingerprint images are acquired, where N is a positive integer; the N first fingerprint images are all fingerprint images collected according to default configuration information, and the second fingerprint images are fingerprint images collected according to first configuration information, where the first configuration information is configuration information applicable to the scenario of protective films for electronic devices; From the N first fingerprint images and the second fingerprint images, determine the third fingerprint image corresponding to the maximum image quality score, and perform fingerprint recognition on the third fingerprint image; If fingerprint recognition is successful, the difference in image quality score between the second fingerprint image and the N first fingerprint images, and the difference in image signal quantity between the second fingerprint image and the N first fingerprint images are determined; the image signal quantity is used to characterize the ratio of effective biometric information to noise information in the fingerprint image; If the difference between the image quality score and the difference between the image signal quantity meet a preset condition, the default configuration information is updated to the first configuration information.
2. The method according to claim 1, characterized in that, The acquisition of N first fingerprint images and second fingerprint images includes: The first fingerprint image is collected according to the default configuration information until the image quality score of the first fingerprint image is greater than or equal to the recognition threshold, or i equals N; where i is a positive integer less than or equal to N. When i equals N and the image quality score of the Nth first fingerprint image is less than the recognition threshold, the second fingerprint image is acquired according to the first configuration information.
3. The method according to claim 2, characterized in that, The method further includes: If the image quality score of the i-th first fingerprint image is greater than or equal to the recognition threshold, fingerprint recognition is performed on the i-th first fingerprint image.
4. The method according to claim 1, characterized in that, After performing fingerprint recognition on the third fingerprint image, the method further includes: In the event of fingerprint recognition failure, M fourth fingerprint images are collected according to M configuration information, where M is an integer greater than 1; wherein, the M configuration information includes the first configuration information; From the M fourth fingerprint images, determine the fifth fingerprint image corresponding to the maximum image quality score, and perform fingerprint recognition on the fifth fingerprint image; If fingerprint recognition is successful, determine the difference in image quality scores between the sixth fingerprint image and the M-1 seventh fingerprint images, as well as the difference in image signal volume between the sixth fingerprint image and the M-1 seventh fingerprint images; the sixth fingerprint image is the fingerprint image corresponding to the first configuration information among the M fourth fingerprint images, and the M-1 seventh fingerprint images are the other fingerprint images among the M fourth fingerprint images excluding the sixth fingerprint image; If the difference between the image quality score and the difference between the image signal quantity meet a preset condition, the default configuration information is updated to the first configuration information.
5. The method according to any one of claims 1 to 4, characterized in that, When the difference between the image quality score and the difference between the image signal quantity meet a preset condition, updating the default configuration information to the first configuration information includes: If the difference in image quality scores is greater than or equal to a quality score threshold, and the difference in image semaphore is greater than or equal to a semaphore threshold, the default configuration information is updated to the first configuration information.
6. A fingerprint recognition device, characterized in that, The device includes: The acquisition module is used to acquire N first fingerprint images and second fingerprint images when a user's fingerprint input is received, where N is a positive integer; the N first fingerprint images are all fingerprint images collected according to default configuration information, and the second fingerprint images are fingerprint images collected according to first configuration information, where the first configuration information is configuration information applicable to the scenario of protective film on electronic devices; The identification module is used to determine the third fingerprint image corresponding to the maximum image quality score from the N first fingerprint images and the second fingerprint images, and to perform fingerprint identification on the third fingerprint image; The determination module is used to determine, in the case of successful fingerprint recognition, the difference between the image quality scores of the second fingerprint image and the N first fingerprint images, and the difference between the image signal quantities of the second fingerprint image and the N first fingerprint images; the image signal quantities are used to characterize the ratio of effective biometric information to noise information in the fingerprint image; The configuration module is used to update the default configuration information to the first configuration information when the difference between the image quality score and the difference between the image signal quantity meet preset conditions.
7. The apparatus according to claim 6, characterized in that, The acquisition module is also used for: The first fingerprint image is acquired according to the default configuration information until the image quality score of the first fingerprint image is greater than or equal to the recognition threshold, or i equals N; Where i is a positive integer less than or equal to N; When i equals N and the image quality score of the Nth first fingerprint image is less than the recognition threshold, the second fingerprint image is acquired according to the first configuration information.
8. The apparatus according to claim 6, characterized in that, The acquisition module is also used for: In the event of fingerprint recognition failure, M fourth fingerprint images are collected according to M configuration information, where M is an integer greater than 1; wherein, the M configuration information includes the first configuration information; The recognition module is further configured to: determine the fifth fingerprint image corresponding to the maximum image quality score from the M fourth fingerprint images, and perform fingerprint recognition on the fifth fingerprint image; The determining module is further configured to: in the case of successful fingerprint recognition, determine the difference in image quality scores between the sixth fingerprint image and the M-1 seventh fingerprint images, and the difference in image signal quantity between the sixth fingerprint image and the M-1 seventh fingerprint images; the sixth fingerprint image is the fingerprint image corresponding to the first configuration information among the M fourth fingerprint images, and the M-1 seventh fingerprint images are the other fingerprint images among the M fourth fingerprint images excluding the sixth fingerprint image; The configuration module is further configured to: update the default configuration information to the first configuration information when the difference between the image quality score and the difference between the image signal quantity meet a preset condition.
9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the method as described in any one of claims 1-5.
10. A readable storage medium, characterized in that, A program or instructions are stored on the readable storage medium, which, when executed by a processor, implement the steps of the method as described in any one of claims 1-5.