Fingerprint recognition processing methods, devices, electronic devices and their storage media

By counting the number of accidental touches at the hardware abstraction layer and adding an intelligent dynamic locking mechanism at the application framework layer, the problem of fingerprint unlocking locking caused by accidental touches in non-finger areas is solved, improving the reliability of electronic devices and the user experience.

CN115147876BActive Publication Date: 2025-10-31BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210743876.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-27
Publication Date
2025-10-31
Estimated Expiration
2042-06-27

AI Technical Summary

Technical Problem

In existing electronic devices, accidental touches on non-finger areas frequently cause the fingerprint unlock function to lock, affecting the user experience.

Method used

By counting the number of accidental touches on non-fingerprint objects at the hardware abstraction layer and adding an intelligent dynamic locking mechanism at the application framework layer, the fingerprint lock-up mechanism is triggered only when preset conditions are met, thus avoiding lock-up caused by multiple accidental touches.

Benefits of technology

This effectively reduces the number of accidental touch result reports, prevents electronic devices from locking due to accidental touches, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115147876B_ABST
    Figure CN115147876B_ABST
Patent Text Reader

Abstract

This disclosure relates to a fingerprint recognition processing method, apparatus, electronic device, and storage medium thereof. The fingerprint recognition processing method includes: when it is determined that the anti-mistouch recognition result of the fingerprint unlocking area in the electronic device is a mis-touch of a non-fingerprint object, determining the number of mis-touches of the non-fingerprint object based on the hardware abstraction layer of the electronic device; if it is determined based on the number of mis-touches that the electronic device does not meet the anti-mistouch detection retry conditions, then the application framework layer of the electronic device receives the mis-touch result information reported by the hardware abstraction layer; in response to the mis-touch result information meeting preset conditions, triggering a fingerprint lockout mechanism to not respond to fingerprint unlocking commands for a preset time period. This disclosure can avoid frequent lockouts of electronic devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of fingerprint recognition, and more particularly to a fingerprint recognition processing method, apparatus, electronic device and its storage medium. Background Technology

[0002] Currently, many electronic devices on the market have capacitive fingerprint unlocking capabilities. To avoid security issues caused by frequent erroneous fingerprint unlocks, these devices have introduced a mechanism that immediately locks the device after multiple failed fingerprint unlocks, rendering it unusable. In daily life, areas not frequently touched by fingers, such as interphalangeal joints, palm prints, thenar and hypothenar eminences, and the forearm, often accidentally touch the fingerprint unlocking area (such as the sensing area of ​​the fingerprint sensor) through these areas. This can cause the number of erroneous touches to reach the maximum number of times the fingerprint lock-up mechanism can be triggered, thus preventing continued fingerprint unlocking. Summary of the Invention

[0003] To overcome the problems existing in related technologies, this disclosure provides a fingerprint recognition processing method, apparatus, electronic device, and storage medium.

[0004] According to a first aspect of the present disclosure, a fingerprint recognition processing method is provided, comprising:

[0005] When the accidental touch recognition result of the fingerprint unlocking area in the electronic device is determined to be an accidental touch of a non-fingerprint object, the number of accidental touches of the non-fingerprint object is determined based on the hardware abstraction layer of the electronic device;

[0006] If it is determined that the electronic device does not meet the conditions for retrying the accidental touch detection based on the number of accidental touches, then the accidental touch result information reported by the hardware abstraction layer is received based on the application framework layer of the electronic device.

[0007] If the accidental touch result information meets the preset conditions, the fingerprint lockout mechanism is triggered so that the fingerprint unlock command is not responded to within a preset time period.

[0008] According to a second aspect of the present disclosure, a fingerprint recognition processing apparatus is provided, comprising:

[0009] The first determining module is used to determine the number of times the non-fingerprint object is accidentally touched based on the hardware abstraction layer of the electronic device when the anti-accidental touch recognition result of the fingerprint unlocking area in the electronic device is determined to be an accidental touch of a non-fingerprint object.

[0010] The second determining module is used to determine, based on the number of accidental touches, that the electronic device does not meet the conditions for retrying the accidental touch detection;

[0011] The receiving module is used to receive the accidental touch result information reported by the hardware abstraction layer based on the application framework layer of the electronic device when it is determined that the electronic device does not meet the conditions for retrying the accidental touch detection based on the number of accidental touches.

[0012] The triggering module is used to trigger the fingerprint lockout mechanism when the accidental touch result information meets the preset conditions, so as not to respond to the fingerprint unlocking command for a preset time period.

[0013] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0014] processor;

[0015] A memory for storing processor-executable instructions; wherein the instructions are executed by the processor to enable the processor to perform the fingerprint recognition processing method as described in the first aspect above.

[0016] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the fingerprint recognition processing method as described in the first aspect above.

[0017] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor of an electronic device, implements the fingerprint recognition processing method as described in the first aspect above.

[0018] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0019] The hardware abstraction layer of the electronic device determines the number of accidental touches by non-fingerprint objects. Based on this number, if the electronic device fails to meet the retry conditions for accidental touch detection, the application framework layer receives the accidental touch result information reported by the hardware abstraction layer. When this accidental touch result information meets preset conditions, a fingerprint lockout mechanism is triggered, preventing the device from responding to fingerprint unlock commands for a preset duration. Therefore, this disclosure effectively reduces the number of accidental touch result reports by performing multiple retry processing at the hardware abstraction layer, preventing continuous accidental touches by certain non-fingerprint objects from locking the electronic device and rendering it unusable. Furthermore, when the hardware abstraction layer reports accidental touch results to the application framework layer, the application framework layer can statistically analyze the reported accidental touch result information. The fingerprint lockout mechanism is only triggered when the accidental touch result information meets preset conditions; otherwise, it is not triggered. Thus, by adding an intelligent dynamic locking mechanism at the application framework layer, the original lockout mechanism of the electronic device is optimized, preventing multiple accidental touches from affecting fingerprint usability and maximizing user experience.

[0020] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0021] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0022] Figure 1 This is a flowchart illustrating a fingerprint recognition processing method according to an exemplary embodiment.

[0023] Figure 2 This is a flowchart illustrating another fingerprint recognition processing method according to an exemplary embodiment.

[0024] Figure 3 This is a flowchart illustrating yet another fingerprint recognition processing method according to an exemplary embodiment.

[0025] Figure 4 This is a flowchart illustrating yet another fingerprint recognition processing method according to an exemplary embodiment.

[0026] Figure 5 This is a block diagram of a fingerprint recognition processing device according to an exemplary embodiment.

[0027] Figure 6 This is a block diagram of another fingerprint recognition processing device according to an exemplary embodiment.

[0028] Figure 7 This is a block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation

[0029] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0030] In the description of this disclosure, unless otherwise stated, " / " means "or", for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone.

[0031] Figure 1This is a flowchart illustrating a fingerprint recognition processing method according to an exemplary embodiment. Figure 1 As shown, this fingerprint recognition processing method can be used in electronic devices and may include, but is not limited to, the following steps.

[0032] In step 101, when it is determined that the anti-mistouch recognition result of the fingerprint unlocking area in the electronic device is a mistouch of a non-fingerprint object, the number of mistouches of the non-fingerprint object is determined based on the hardware abstraction layer of the electronic device.

[0033] In the embodiments of this disclosure, the fingerprint unlocking area can be understood as the sensing area of ​​the fingerprint sensor in an electronic device. Accidental touches by non-fingerprint objects can be understood as accidental touches by non-fingerprint areas, such as the user's arm, interphalangeal joints, or palm prints, which may accidentally touch the sensing area of ​​the fingerprint sensor.

[0034] In one implementation, in response to the fingerprint unlocking area of ​​the electronic device being touched, fingerprint information is collected in the fingerprint unlocking area; identity matching is performed based on the fingerprint information, and if identity matching fails, the anti-accidental touch recognition result of the fingerprint unlocking area is obtained.

[0035] For example, when a user touches the fingerprint unlock area of ​​an electronic device, the device can collect fingerprint information and match it with preset reference fingerprint information to verify the user's identity. If the collected fingerprint information matches the reference fingerprint information successfully, the user's identity is determined to be matched successfully, and the electronic device can be unlocked and accessed to the desktop. If the collected fingerprint information does not match the reference fingerprint information successfully, the user's identity is determined to be matched unsuccessfully, i.e., the user's authentication fails. In this case, the anti-accidental touch recognition result of the fingerprint unlock area can be obtained based on the anti-accidental touch method to identify whether the user's touch operation on the fingerprint unlock area is an accidental touch or a non-accidental touch. Here, an accidental touch can be understood as an operation by a non-fingerprint object accidentally touching the fingerprint unlock area; a non-accidental touch can be understood as an operation by a finger area of ​​a user other than the owner of the electronic device touching the fingerprint unlock area. For example, assuming the electronic device belongs to user A, and user B touches the fingerprint unlock area of ​​the electronic device with their finger, then user B's finger touching the fingerprint unlock area can be understood as a non-accidental touch.

[0036] It should be noted that, in the embodiments of this disclosure, the anti-mistouch method can be understood as an anti-mistouch algorithm for fingerprints. It is understood that the fingerprint information collected by the fingerprint unlocking area is usually a fingerprint image. The anti-mistouch algorithm can be as follows: extract features from the fingerprint image and determine whether the fingerprint image is a finger fingerprint image based on these features. If the fingerprint image is determined to be a finger fingerprint image based on these features, that is, the fingerprint information collected by the fingerprint unlocking area is finger fingerprint information, then the anti-mistouch recognition result is a non-mistouch operation; if the fingerprint image is determined not to be a finger fingerprint image based on these features, then the fingerprint information collected by the fingerprint unlocking area is determined to be non-finger fingerprint information, and the anti-mistouch recognition result can be considered a mis-touch operation. It should be noted that other methods can also be used to implement the anti-mistouch algorithm for fingerprints, which will not be elaborated here.

[0037] In this step, when obtaining the anti-mistouch recognition result of the fingerprint unlocking area, it can be determined whether the anti-mistouch recognition result is a mis-touch of a non-fingerprint object. When it is determined that the anti-mistouch recognition result is a mis-touch of a non-fingerprint object, the number of mis-touches of the non-fingerprint object is counted based on the HAL (Hardware Abstraction Layer) layer of the electronic device.

[0038] In related technologies, anti-mistouch algorithms have a certain recognition rate, and the result of each mis-touch is reported to the upper layer. Based on the anti-mistouch algorithm, if consecutive mis-touches are recognized and reported by the algorithm, without special processing by the HAL layer and application framework layer, the electronic device will trigger a fingerprint lockout mechanism. This fingerprint lockout mechanism can be understood as the fingerprint unlocking function being locked, meaning fingerprint unlocking can no longer be used. To solve this problem, this disclosure, based on traditional anti-mistouch algorithms, implements special processing at the HAL layer and application framework layer to reduce the probability of the electronic device entering the fingerprint lockout mechanism.

[0039] In the embodiments of this disclosure, the anti-mistouch recognition result obtained based on the anti-mistouch method may be a mis-touch result (i.e., the user's touch operation on the fingerprint unlocking area is identified as a mis-touch operation) or a non-mistouch result (i.e., the user's touch operation on the fingerprint unlocking area is identified as a non-mistouch operation). When the anti-mistouch recognition result is obtained, it can be sent back to the HAL layer. The HAL layer detects whether the anti-mistouch recognition result is a mis-touch, and when it detects that the anti-mistouch recognition result is a mis-touch, it increments the number of times the anti-mistouch algorithm identifies a mis-touch by one. For example, let the parameter retry_count represent the number of times the anti-mistouch algorithm identifies a non-fingerprint object as a mis-touch. When the HAL layer detects that the anti-mistouch recognition result is a mis-touch, it can increment the value of the parameter retry_count by one and count the value of the parameter retry_count at this time. The counted value of the parameter retry_count is the number of mis-touches of non-fingerprint objects.

[0040] In step 102, if it is determined that the electronic device does not meet the conditions for retrying the anti-mistouch detection based on the number of mistouches, the application framework layer based on the electronic device receives the mistouch result information reported by the hardware abstraction layer.

[0041] In the embodiments of this disclosure, special processing is performed at the HAL layer. For example, a retry condition for preventing accidental touch detection is set at the HAL layer. After determining the number of accidental touches on non-fingerprint objects based on the HAL layer, it can be determined whether the electronic device meets the retry condition based on the statistically recorded number of accidental touches. If the condition is met, the process returns to step 101. If the condition is not met, the retry loop for preventing accidental touch detection is not entered. Instead, the application framework layer of the electronic device receives the accidental touch result information reported by the HAL layer.

[0042] In step 103, in response to the accidental touch result information meeting the preset conditions, the fingerprint lockout mechanism is triggered so that the fingerprint unlock command is not responded to within a preset time.

[0043] In the embodiments of this disclosure, an intelligent dynamic locking mechanism is added to the application framework layer to optimize the original fingerprint lockout mechanism of the electronic device. In one implementation, when the HAL layer reports accidental touch result information to the application framework layer of the electronic device, the application framework layer can count the number of reports of received accidental touch result information and determine whether to trigger the fingerprint lockout mechanism based on the number of reports. For example, if the number of reports meets a certain condition, the fingerprint lockout mechanism is triggered, and the fingerprint unlock command is not responded to for a preset time (e.g., 1 minute or 2 minutes); conversely, if the number of reports does not meet the condition, the fingerprint lockout mechanism is not triggered. This avoids the impact of multiple accidental touches on the fingerprint usage of the electronic device, maximizing the user experience.

[0044] According to the fingerprint recognition processing method of this disclosure, the number of accidental touches by non-fingerprint objects is determined based on the hardware abstraction layer of the electronic device. When the number of accidental touches determines that the electronic device does not meet the conditions for retrying the accidental touch detection, the application framework layer of the electronic device receives the accidental touch result information reported by the hardware abstraction layer. When the accidental touch result information meets preset conditions, a fingerprint lockout mechanism is triggered to prevent the device from responding to fingerprint unlock commands for a preset time period. Therefore, this disclosure, by performing multiple retry processing to prevent accidental touches at the hardware abstraction layer, can effectively reduce the number of accidental touch result reports and prevent continuous accidental touches by certain non-fingerprint objects from locking the electronic device and rendering it unusable. Furthermore, when the hardware abstraction layer reports accidental touch results to the application framework layer of the electronic device, the application framework layer can statistically analyze the reported accidental touch result information. The fingerprint lockout mechanism is only triggered when the accidental touch result information meets preset conditions; otherwise, it is not triggered. Thus, by adding an intelligent dynamic locking mechanism at the application framework layer, the original lockout mechanism of the electronic device is optimized, preventing multiple accidental touches from affecting the fingerprint usability of the electronic device and maximizing the user experience.

[0045] Figure 2 This is a flowchart illustrating another fingerprint recognition processing method according to an exemplary embodiment. Figure 2 As shown, this fingerprint recognition processing method can be used in electronic devices and may include, but is not limited to, the following steps.

[0046] In step 201, when it is determined that the anti-mistouch recognition result of the fingerprint unlocking area in the electronic device is a mistouch of a non-fingerprint object, the number of mistouches of the non-fingerprint object is determined based on the hardware abstraction layer of the electronic device.

[0047] In the embodiments of this disclosure, step 201 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.

[0048] In step 202, the time information from the time the fingerprint information is collected from the fingerprint unlocking area to the time when the anti-accidental touch recognition result is obtained is acquired.

[0049] In one implementation, the first time of identity matching starting after fingerprint information is collected from the fingerprint unlocking area can be recorded, and the second time of obtaining the anti-mistouch recognition result can also be recorded. Based on the first and second times, the time information from the time fingerprint information is collected from the fingerprint unlocking area to the time of obtaining the anti-mistouch recognition result is obtained. In other words, the time t from the time fingerprint information is collected from the fingerprint unlocking area to the time t of identity matching starting can be recorded. start It also records the time t when the anti-mistouch method ends and the anti-mistouch recognition result is sent back to the HAL layer. end Using time t end Subtract time tstart The difference obtained is the time information t from the time the fingerprint information is collected from the fingerprint unlocking area to the time when the anti-mistouch recognition result is obtained. end -t start .

[0050] In step 203, the electronic device is determined to meet the retry conditions for preventing accidental touch detection based on the time information and the number of accidental touches by non-fingerprint objects.

[0051] In one implementation, it is determined whether the time information is less than or equal to a target time threshold, and whether the number of accidental touches by non-fingerprint objects is less than or equal to a first accidental touch threshold. In response to the number of accidental touches by non-fingerprint objects exceeding the first accidental touch threshold, and / or the time information exceeding the target time threshold, it is determined that the electronic device does not meet the conditions for retrying the accidental touch detection. Here, the target time threshold, max_time, can be understood as the maximum timeout from the acquisition of fingerprint information from the fingerprint unlocking area to obtaining the accidental touch recognition result.

[0052] In other words, this disclosure performs multiple retry processing for accidental touch detection at the HAL layer. The conditions for retrying the accidental touch detection are: the number of accidental touches (retry_count) for non-fingerprint objects is less than or equal to the first accidental touch threshold N, and the time information t end -t start The values ​​of `max_time` (the target time threshold) and `retry_count` (the number of false touches on non-fingerprint objects) and `t` (the time information) are less than or equal to the target time threshold. end -t start If the conditions for accidental touch detection retry are met, the system enters the accidental touch detection retry loop. During the accidental touch detection retry loop, accidental touches will not be reported to the application framework layer, thus avoiding the number of times the fingerprint lockout mechanism is triggered after multiple accidental touches at the HAL layer, reducing the probability of the electronic device entering the lockout mechanism.

[0053] In embodiments of this disclosure, in response to the number of accidental touches of a non-fingerprint object being less than or equal to a first accidental touch threshold and the time information being less than or equal to a target time threshold, it is determined that the electronic device meets the anti-accidental touch detection retry condition, and the process returns to the step of determining the number of accidental touches of a non-fingerprint object based on the hardware abstraction layer of the electronic device when the anti-accidental touch recognition result of the fingerprint unlocking area in the electronic device is determined to be an accidental touch of a non-fingerprint object.

[0054] For example, if the number of false touches (retry_count) for non-fingerprint objects is less than or equal to the first false touch threshold N, and the time information t end -t startWhen the value is less than or equal to the target time threshold information max_time, it can be determined that the electronic device meets the anti-mistouch detection retry condition. At this time, the process can return to the step of determining the number of mis-touches of a non-fingerprint object based on the hardware abstraction layer of the electronic device when the anti-mistouch recognition result of the fingerprint unlocking area in the electronic device is determined to be a mis-touch of a non-fingerprint object. That is, the process returns to step 201, thereby entering the anti-mistouch detection retry loop. In the embodiments of this disclosure, the first mis-touch threshold N can be understood as the maximum number of times the hardware abstraction layer does not report the mis-touch result to the application framework layer.

[0055] In step 204, when it is determined that the electronic device does not meet the conditions for retrying the anti-accidental touch detection, the application framework layer based on the electronic device receives the accidental touch result information reported by the hardware abstraction layer.

[0056] In the embodiments of this disclosure, step 204 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.

[0057] In step 205, in response to the accidental touch result information meeting the preset conditions, the fingerprint lockout mechanism is triggered so that the fingerprint unlock command is not responded to within a preset time period.

[0058] In the embodiments of this disclosure, step 205 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.

[0059] According to the fingerprint recognition processing method of this disclosure, multiple accidental touch detection retries are performed at the HAL layer. The conditions for these accidental touch detection retries are: the number of accidental touches (retry_count) of non-fingerprint objects is less than or equal to a first accidental touch threshold N, and the time information t... end -t start The values ​​of `max_time` (the target time threshold) and `retry_count` (the number of false touches on non-fingerprint objects) and `t` (the time information) are less than or equal to the target time threshold. end -t start If the conditions for accidental touch detection retry are met, the system enters the accidental touch detection retry loop. During the accidental touch detection retry loop, accidental touches will not be reported to the application framework layer, thus avoiding the number of times the fingerprint lockout mechanism is triggered after multiple accidental touches at the HAL layer, reducing the probability of the electronic device entering the lockout mechanism.

[0060] Figure 3 This is a flowchart illustrating yet another fingerprint recognition processing method according to an exemplary embodiment. For example... Figure 3 As shown, this fingerprint recognition processing method can be used in electronic devices and may include, but is not limited to, the following steps.

[0061] In step 301, when it is determined that the anti-mistouch recognition result of the fingerprint unlocking area in the electronic device is a mistouch of a non-fingerprint object, the number of mistouches of the non-fingerprint object is determined based on the hardware abstraction layer of the electronic device.

[0062] In the embodiments of this disclosure, step 301 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.

[0063] In step 302, the time information from the time the fingerprint information is collected from the fingerprint unlocking area to the time when the anti-accidental touch recognition result is obtained is acquired.

[0064] In the embodiments of this disclosure, step 302 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.

[0065] In step 303, the electronic device is determined to meet the conditions for accidental touch detection retry based on the time information and the number of accidental touches by non-fingerprint objects.

[0066] In the embodiments of this disclosure, step 303 can be implemented in any of the ways described in the various embodiments of this disclosure. This disclosure does not limit this and will not elaborate further.

[0067] In step 304, when it is determined that the electronic device does not meet the conditions for retrying the anti-accidental touch detection, the application framework layer based on the electronic device receives the accidental touch result information reported by the hardware abstraction layer.

[0068] In the embodiments of this disclosure, when it is determined that the electronic device does not meet the retry conditions for preventing accidental touch detection, the HAL layer needs to report the subsequently received accidental touch results to the application framework layer, so that the application framework layer begins to receive the accidental touch result information reported by the HAL layer.

[0069] In step 305, the number of times the application framework layer receives reports of accidental touch result information is counted.

[0070] In the embodiments of this disclosure, when the application framework layer begins to receive false touch result information reported by the HAL layer, the number of times the application framework layer receives false touch result information can be counted.

[0071] In step 306, in response to the number of reported attempts being greater than or equal to the second false touch threshold, and no successful fingerprint unlocking result report being received within a set time, the number of reported attempts is incremented by one.

[0072] In one implementation, the number of reported false touch results can be compared with a second false touch threshold M. If the reported number is greater than or equal to the second false touch threshold M, and no fingerprint unlock success result report is received within a set time, it indicates that false touch operations have been occurring continuously within that set time. To prevent excessive false touches from causing the fingerprint unlock function of the electronic device to continuously operate and consume power, the value of the second count can be incremented by one, i.e., one lock count needs to be recorded until the recorded lock count reaches the lock count required to trigger the fingerprint lock mechanism of the electronic device. Here, the second false touch threshold M can be understood as the maximum number of false touch results that the application framework layer receives from the HAL layer without reporting.

[0073] It should be noted that the set time in the embodiments of this disclosure can be the set time of a timer, or it can be the set time based on software settings. This disclosure does not make any specific limitations on this.

[0074] In step 307, the fingerprint lockout mechanism is triggered in response to the number of reported times after the increment operation reaching the number of times the fingerprint lockout mechanism is triggered.

[0075] In the embodiments of this disclosure, after incrementing the reported number by one, the incremented reported number can be compared with the lock count (lock_count) that triggers the fingerprint lockout mechanism to determine whether the incremented reported number has reached the lock count. When the incremented reported number reaches the lock count, the fingerprint lockout mechanism is triggered, for example, locking the fingerprint unlock function of the electronic device for a period of time, such as preventing the fingerprint unlock function from being used again within 2 minutes.

[0076] In some embodiments of this disclosure, in response to receiving a successful fingerprint unlock report within a set time, the electronic device is unlocked, and the reporting count is cleared. At this time, the number of times the fingerprint lockout mechanism is triggered is still lock_count. Therefore, multiple accidental touches can be avoided from affecting the use of the fingerprint unlock function, maximizing the user experience.

[0077] According to the fingerprint recognition processing method of this disclosure, when the hardware abstraction layer reports the accidental touch result to the application framework layer of the electronic device, the application framework layer can count the accidental touch result information reported by the hardware abstraction layer. The fingerprint locking mechanism will be triggered only when the accidental touch result information meets the preset conditions; otherwise, the fingerprint locking mechanism will not be triggered. Thus, by adding an intelligent dynamic locking mechanism to the application framework layer, the original locking mechanism of the electronic device is optimized, which can avoid the impact of multiple accidental touches on the fingerprint use of the electronic device and maximize the improvement of user experience.

[0078] Figure 4 This is a flowchart illustrating another fingerprint recognition processing method according to an exemplary embodiment. It should be noted that, since fingerprint images are private data, processing of private data must be completed on the TEE (Trusted Execution Environment) side, i.e., in a secure state; operations involving non-private data are completed on the REE (Rich Execution Environment, generally referring to a general-purpose operating system) side, i.e., in an insecure state. The secure application (TA) runs in the secure state, and the ordinary application (CA) runs in the insecure state; this two states are implemented using the Trustzone architecture. It should also be noted that the electronic device in the embodiments of this disclosure can be a hardware device running the Android operating system.

[0079] like Figure 4 As shown, this fingerprint recognition processing method is used in electronic devices and may include, but is not limited to, the following steps.

[0080] In step 401, when a finger (i.e., the fingerprint object) or a non-finger area (i.e., the non-fingerprint object) presses on the fingerprint unlock area of ​​the electronic device, the electronic device enters an interrupt.

[0081] In step 402, a pattern image is captured using the fingerprint unlocking area, i.e., fingerprint information is collected.

[0082] In step 403, timing begins after the texture image is acquired, i.e., t is recorded. start , the t start This indicates the time from when the texture image was collected to when identity matching began.

[0083] In step 404, the collected fingerprint information is used to perform identity matching in TA. If the matching fails, it may be due to accidental touch, and the anti-accidental touch algorithm can be activated, and the process proceeds to step 406; if the matching is successful, the process proceeds to step 405.

[0084] In step 405, the device is successfully unlocked and the desktop is accessed.

[0085] In step 406, the accidental touch prevention algorithm is run, and the result of the algorithm is output. This result can be represented by the parameter `not_finger`. The value of the parameter `not_finger` can be a Boolean value, where a value of `not_finger` of `true` indicates that the result of the accidental touch prevention algorithm is an accidental touch; a value of `not_finger` of `false` indicates that the result of the accidental touch prevention algorithm is a non-accidental touch.

[0086] In step 407, stop the timing and record t.end This refers to the time when the result callback begins after the anti-accidental touch algorithm is recorded.

[0087] In step 408, the parameters not_finger and t are... end The value is returned to CA.

[0088] In step 409, it is determined whether the value of the parameter not_finger is true. If the value of the parameter not_finger is true, it means that the texture image determined by the anti-mistouch algorithm is an image of a non-finger area being pressed, and proceed to step 410; if the value of the parameter not_finger is false, proceed to step 414.

[0089] In step 410, if a non-finger area is accidentally touched, the value of the parameter retry_count is incremented by 1.

[0090] In step 411, special handling for preventing accidental touches in the HAL layer is implemented: a loop is set up, and if both retry_count ≤ N and t are satisfied... end -t start If the value is less than or equal to max_time, return to step 401 and repeat steps 401 to 410; if no condition is met, proceed to step 412.

[0091] In step 412, the HAL layer reports the false touch result to the application framework layer.

[0092] In step 413, special handling for preventing accidental touches is implemented at the framework layer, namely, adding a smart dynamic locking mechanism at the framework layer: the electronic device is limited to a lock count of M accidental touches. After the framework layer receives M accidental touch results, a timer is started. If a successful fingerprint unlock is reported within the set timer period, the electronic device is unlocked and enters the desktop, and the M accidental touch records are cleared. At this time, the lock count for triggering the locking mechanism is still lock_count. If no successful fingerprint unlock is reported within the set timer period, the accidental touch count is incremented by one. It is then determined whether the number of accidental touches after the increment operation has reached the lock count for triggering the fingerprint locking mechanism. If it has reached the lock count for triggering the fingerprint locking mechanism, the fingerprint locking mechanism is triggered, and the electronic device is in a locked screen state. A prompt message indicating that the fingerprint unlock function is locked can also be displayed on the lock screen interface. If the lock count for triggering the fingerprint locking mechanism has not been reached, the fingerprint locking operation is not performed on the electronic device.

[0093] In step 414, if the value of the parameter not_finger is false, it is determined that fingerprint unlocking has failed, and the electronic device can provide vibration feedback at this time.

[0094] Therefore, this disclosure, based on traditional anti-mistouch algorithms, performs multiple retries at the hardware abstraction layer. If a user accidentally touches the device multiple times within a specified time, the results of the first N accidental touches will not be reported to the application framework layer. This avoids triggering the lock-up mechanism at the hardware abstraction layer by minimizing the number of times the reported results after multiple accidental touches trigger the lock-up mechanism, reducing the probability of the phone entering the lock-up mechanism. If the retry conditions are not met, and the retry loop cannot be entered, a large number of accidental touch results will still be reported to the application framework layer. This disclosure adds an intelligent dynamic locking mechanism at the application framework layer. Assuming the electronic device's lock count is lock_count, a timer is started after the application framework layer receives M accidental touch results. If a successful fingerprint unlock result is reported within the set time interval, the M accidental touch records are cleared. At this time, the lock-up mechanism still triggers the lock-up mechanism by lock_count. The old locking mechanism, however, does not clear the M accidental touch records, and the lock-up mechanism is triggered by lock_count-M. Therefore, it can avoid triggering the lock-up mechanism at the application framework layer by minimizing the number of times the reported results after multiple accidental touches trigger the lock-up mechanism, reducing the probability of the electronic device entering the lock-up mechanism.

[0095] Figure 5 This is a block diagram illustrating a fingerprint recognition processing device according to an exemplary embodiment. (Refer to...) Figure 5 The device includes: a first determining module 501, a second determining module 502, a receiving module 503, and a triggering module 504.

[0096] The first determining module 501 is used to determine the number of times a non-fingerprint object is accidentally touched when the anti-accidental touch recognition result of the fingerprint unlocking area in the electronic device is determined to be an accidental touch of a non-fingerprint object, based on the hardware abstraction layer of the electronic device.

[0097] The second determining module 502 is used to determine that the electronic device does not meet the conditions for retrying the anti-mistouch detection based on the number of accidental touches. In one implementation, the second determining module 502 acquires time information from the time the fingerprint information is collected from the fingerprint unlocking area to the time when the anti-mistouch recognition result is obtained; and determines that the electronic device does not meet the conditions for retrying the anti-mistouch detection based on the time information and the number of accidental touches by non-fingerprint objects.

[0098] In one possible implementation, the second determining module 502 determines whether the electronic device meets the anti-mistouch detection retry condition based on time information and the number of mistouches of non-fingerprint objects as follows: in response to the number of mistouches of non-fingerprint objects being greater than a first mistouch number threshold, and / or the time information being greater than a target time threshold information, it is determined that the electronic device does not meet the anti-mistouch detection retry condition.

[0099] In one implementation, the second determining module 502 is further configured to determine that the electronic device meets the anti-mistouch detection retry conditions when the number of mistouches of a non-fingerprint object is less than or equal to a first mistouch number threshold and the time information is less than or equal to a target time threshold.

[0100] The receiving module 503 is used to receive the accidental touch result information reported by the hardware abstraction layer based on the application framework layer of the electronic device when it is determined that the electronic device does not meet the conditions for retrying the accidental touch detection based on the number of accidental touches.

[0101] The trigger module 504 is used to trigger a fingerprint lockout mechanism when the accidental touch result information meets preset conditions, so as not to respond to the fingerprint unlock command for a preset time period. In one implementation, the trigger module 504 counts the number of times the application framework layer receives reports of accidental touch result information; in response to the number of reports being greater than or equal to a second accidental touch number threshold, and no fingerprint unlock success result report being received within a set time, the value of the number of reports is incremented by one; in response to the number of reports after the incrementing operation reaching the locking number for triggering the fingerprint lockout mechanism, the fingerprint lockout mechanism is triggered.

[0102] In some embodiments of this disclosure, such as Figure 6 As shown, in Figure 5 Based on the above, the device may further include a processing module 605. This processing module 605 is used to unlock the electronic device and clear the record of any subsequent accidental fingerprint unlocking attempts when it receives a successful fingerprint unlock report within a set time. Figure 6 601~604 and Figure 5 Types 501 to 504 have the same function and structure.

[0103] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0104] According to the fingerprint recognition processing device of this disclosure, the number of accidental touches by non-fingerprint objects is determined based on the hardware abstraction layer of the electronic device. When the number of accidental touches determines that the electronic device does not meet the conditions for retrying the anti-accidental touch detection, the application framework layer of the electronic device receives the accidental touch result information reported by the hardware abstraction layer. When the accidental touch result information meets the preset conditions, a fingerprint lock-up mechanism is triggered to prevent the device from responding to fingerprint unlocking commands for a preset time period. Therefore, this disclosure, by performing multiple retry processing to prevent accidental touches at the hardware abstraction layer, can effectively reduce the number of accidental touch result reports and prevent continuous accidental touches by certain non-fingerprint objects from locking the electronic device and rendering it unusable. Furthermore, when the hardware abstraction layer reports accidental touch results to the application framework layer of the electronic device, the application framework layer can statistically analyze the reported accidental touch result information. The fingerprint lock-up mechanism is only triggered when the accidental touch result information meets the preset conditions; otherwise, it is not triggered. Thus, by adding an intelligent dynamic locking mechanism at the application framework layer, the original lock-up mechanism of the electronic device is optimized, preventing multiple accidental touches from affecting the fingerprint usability of the electronic device and maximizing the user experience.

[0105] Figure 7 This is a block diagram illustrating an electronic device according to an exemplary embodiment. For example, the electronic device 700 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc. Alternatively, the electronic device 700 may also be an in-vehicle terminal device or other hardware device with fingerprint unlocking functionality.

[0106] Reference Figure 7 The electronic device 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input / output (I / O) interface 712, a sensor component 714, and a communication component 716.

[0107] Processing component 702 typically controls the overall operation of electronic device 700, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 702 may include one or more modules to facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.

[0108] Memory 704 is configured to store various types of data to support the operation of electronic device 700. Examples of this data include instructions for any application or method operating on electronic device 700, contact data, phonebook data, messages, pictures, videos, etc. Memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0109] Power component 706 provides power to various components of electronic device 700. Power component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 700.

[0110] Multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 708 includes a front-facing camera and / or a rear-facing camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0111] Audio component 710 is configured to output and / or input audio signals. For example, audio component 710 includes a microphone (MIC) configured to receive external audio signals when electronic device 700 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 704 or transmitted via communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.

[0112] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0113] Sensor assembly 714 includes one or more sensors for providing state assessments of various aspects of electronic device 700. For example, sensor assembly 714 may detect the on / off state of device 700, the relative positioning of components such as the display and keypad of electronic device 700, changes in position of electronic device 700 or a component of electronic device 700, the presence or absence of user contact with electronic device 700, orientation or acceleration / deceleration of electronic device 700, and temperature changes of electronic device 700. Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 714 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0114] Communication component 716 is configured to facilitate wired or wireless communication between electronic device 700 and other devices. Electronic device 700 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 716 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 716 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0115] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0116] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, which can be executed by a processor 720 of an electronic device 700 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0117] In an exemplary embodiment, a computer program product is also provided, including a computer program that is executed by a processor 720 of an electronic device 700 to perform the above-described method.

[0118] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0119] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A fingerprint recognition processing method, characterized in that, include: When the accidental touch recognition result of the fingerprint unlocking area in the electronic device is determined to be an accidental touch of a non-fingerprint object, the number of accidental touches of the non-fingerprint object is determined based on the hardware abstraction layer of the electronic device; wherein, the non-fingerprint object is a human body part that is not a finger area; The system acquires time information from the time the fingerprint information is collected from the fingerprint unlocking area to the time when the anti-mistouch recognition result is obtained. Based on the time information and the number of mis-touches by the non-fingerprint object, it determines whether the electronic device meets the anti-mistouch detection retry conditions. If the anti-mistouch detection retry conditions are not met, the system receives the mis-touch result information reported by the hardware abstraction layer based on the application framework layer of the electronic device. If the anti-mistouch detection retry conditions are met, the system enters the anti-mistouch detection retry loop. The intelligent dynamic locking mechanism counts the number of times the application framework layer receives the false touch result information. When the number of reports is greater than or equal to the second false touch number threshold and no fingerprint unlock success result report is received within a set time, the value of the number of reports is incremented by one. When the number of reports after the increment operation reaches the number of times the fingerprint lockout mechanism is triggered, the fingerprint lockout mechanism is triggered so that the fingerprint unlock command is not responded to within a preset time.

2. The method as described in claim 1, characterized in that, The step of determining whether the electronic device meets the anti-accidental touch detection retry conditions based on the time information and the number of accidental touches by the non-fingerprint object includes: In response to the number of accidental touches on the non-fingerprint object being greater than a first accidental touch threshold, and / or the time information being greater than a target time threshold, it is determined that the electronic device does not meet the anti-accidental touch detection retry conditions.

3. The method as described in claim 1, characterized in that, The step of determining whether the electronic device meets the anti-accidental touch detection retry conditions based on the time information and the number of accidental touches by the non-fingerprint object includes: In response to the fact that the number of accidental touches of the non-fingerprint object is less than or equal to a first accidental touch threshold, and the time information is less than or equal to a target time threshold, the electronic device is determined to meet the anti-accidental touch detection retry condition, and the process returns to the step of determining the number of accidental touches of the non-fingerprint object based on the hardware abstraction layer of the electronic device when the anti-accidental touch recognition result of the fingerprint unlocking area in the electronic device is determined to be an accidental touch of a non-fingerprint object.

4. The method as described in claim 1, characterized in that, The method further includes: In response to receiving a successful fingerprint unlock report within the set time, the electronic device is unlocked and the number of reports is cleared.

5. A fingerprint recognition processing device, characterized in that, include: The first determining module is used to determine the number of times the non-fingerprint object is accidentally touched based on the hardware abstraction layer of the electronic device when the anti-accidental touch recognition result of the fingerprint unlocking area in the electronic device is determined to be an accidental touch of a non-fingerprint object; wherein, the non-fingerprint object is a human body part that is not a finger area; The second determining module is used to acquire time information from the time the fingerprint information is collected from the fingerprint unlocking area to the time when the anti-mistouch recognition result is obtained, and to determine whether the electronic device meets the anti-mistouch detection retry condition based on the time information and the number of mis-touches of the non-fingerprint object: if the anti-mistouch detection retry condition is met, the anti-mistouch detection retry loop is entered. The receiving module is used to receive the accidental touch result information reported by the hardware abstraction layer based on the application framework layer of the electronic device when it is determined that the electronic device does not meet the conditions for retrying the accidental touch detection based on the number of accidental touches. The trigger module is used to count the number of times the application framework layer receives the false touch result information. When the number of reports is greater than or equal to the second false touch number threshold and no fingerprint unlock success result report is received within a set time, the value of the number of reports is incremented by one. When the number of reports after the increment operation reaches the number of times the fingerprint lockout mechanism is triggered, the fingerprint lockout mechanism is triggered so that the fingerprint unlock command is not responded to within a preset time.

6. The apparatus as claimed in claim 5, characterized in that, The second determining module is specifically used for: In response to the number of accidental touches on the non-fingerprint object being greater than a first accidental touch threshold, and / or the time information being greater than a target time threshold, it is determined that the electronic device does not meet the anti-accidental touch detection retry conditions.

7. The apparatus as claimed in claim 6, characterized in that, The second determining module is also used for: In response to the fact that the number of accidental touches on the non-fingerprint object is less than or equal to the first accidental touch number threshold, and the time information is less than or equal to the target time threshold information, it is determined that the electronic device meets the anti-accidental touch detection retry condition.

8. The apparatus as claimed in claim 5, characterized in that, Also includes: The processing module is used to unlock the electronic device and clear the value of the number of reports when it receives a report of successful fingerprint unlocking within the set time.

9. An electronic device, characterized in that, include: processor; A memory for storing processor-executable instructions; wherein the instructions are executed by the processor to enable the processor to perform the fingerprint recognition processing method as described in any one of claims 1 to 4.

10. A computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the fingerprint recognition processing method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Fingerprint identification method and mobile terminal

    CN107016337A

  • False touch prevention method for curved screen and electronic equipment

    CN110456938A