CN115797979A - Finger state detection method, electronic device, and computer-readable medium - Google Patents

Finger state detection method, electronic device, and computer-readable medium Download PDF

Info

Publication number
CN115797979A
CN115797979A CN202211455744.3A CN202211455744A CN115797979A CN 115797979 A CN115797979 A CN 115797979A CN 202211455744 A CN202211455744 A CN 202211455744A CN 115797979 A CN115797979 A CN 115797979A
Authority
CN
China
Prior art keywords
trigger
sub
area
finger
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211455744.3A
Other languages
Chinese (zh)
Inventor
周荣刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jihao Technology Co Ltd
Original Assignee
Beijing Jihao Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jihao Technology Co Ltd filed Critical Beijing Jihao Technology Co Ltd
Priority to CN202211455744.3A priority Critical patent/CN115797979A/en
Publication of CN115797979A publication Critical patent/CN115797979A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Input (AREA)

Abstract

The embodiment of the application discloses a finger state detection method, electronic equipment and a computer readable medium. An embodiment of the method comprises: acquiring detection data acquired by a fingerprint sensor in a finger detection mode, and determining a first trigger area in an acquisition area of the fingerprint sensor based on the detection data; acquiring a fingerprint image acquired by a fingerprint sensor in a picture acquiring mode, determining a second trigger area in the acquisition area based on the fingerprint image, and switching the fingerprint sensor from a finger detection mode to a picture acquiring mode after detecting that the finger in the acquisition area is pressed; based on the first trigger area and the second trigger area, it is determined whether the finger state of the user is abnormal. This embodiment reduces the time consumption of finger state detection and the power consumption of the device.

Description

Finger state detection method, electronic device, and computer-readable medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a finger state detection method, electronic equipment and a computer readable medium.
Background
With the development of computer technology, more and more electronic devices have been provided with a fingerprint unlocking function in order to protect the security of user information. In the process of unlocking the fingerprint, in order to avoid acquiring a poor-quality fingerprint image due to too fast movement or too fast lifting of the finger of the user, the state of the finger of the user is usually detected to determine whether the state of the finger of the user is abnormal.
In the prior art, whether the finger state of a user is abnormal or not can be determined by acquiring a plurality of fingerprint images or switching the mode of a fingerprint sensor after the fingerprint images are acquired. In the acquisition area, extra time consumption needs to be increased when more than one fingerprint image is acquired, and extra time consumption needs to be increased in the working mode switching process and the finger detection process of the fingerprint sensor, so that the time consumption of finger state detection is long, and the power consumption of equipment is large.
Disclosure of Invention
The embodiment of the application provides a finger state detection method, electronic equipment and a computer readable medium, so as to solve the technical problems that in the prior art, finger state detection consumes a long time and equipment consumes a large amount of power.
In a first aspect, an embodiment of the present application provides a method for detecting a finger state, where the method includes: acquiring detection data acquired by a fingerprint sensor in a finger detection mode, and determining a first trigger area in an acquisition area of the fingerprint sensor based on the detection data; acquiring a fingerprint image acquired by the fingerprint sensor in a picture acquiring mode, determining a second trigger area in the acquisition area based on the fingerprint image, and switching the fingerprint sensor from the finger detection mode to the picture acquiring mode after detecting that the finger in the acquisition area is pressed; determining whether the finger state of the user is abnormal based on the first trigger area and the second trigger area.
In a second aspect, an embodiment of the present application provides an electronic device, including: one or more processors; storage means having one or more programs stored thereon which, when executed by the one or more processors, cause the one or more processors to carry out the method as described in the first aspect.
In a third aspect, the present application provides a computer readable medium, on which a computer program is stored, which when executed by a processor implements the method described in the first aspect.
In a fourth aspect, the present application provides a computer program product comprising a computer program that, when executed by a processor, implements the method described in the first aspect.
According to the finger state detection method, the electronic device and the computer readable medium provided by the embodiment of the application, the detection data acquired by the fingerprint sensor in the finger detection mode is acquired, and the first trigger area in the acquisition area of the fingerprint sensor is determined based on the detection data; acquiring a fingerprint image acquired by the fingerprint sensor in a pattern acquisition mode, and determining a second trigger area in the acquisition area based on the fingerprint image; and finally, determining whether the finger state of the user is abnormal or not based on the first trigger area and the second trigger area, so that the finger state detection can be completed after the finger detection mode of the fingerprint sensor is switched into the image acquisition mode and a fingerprint image is acquired. The process of detecting the state of the finger does not depend on additional fingerprint images, and the working mode of the fingerprint sensor does not need to be switched into a finger detection mode and the finger detection is carried out after the image acquisition of the fingerprint sensor is finished, so that the time consumption of detecting the state of the finger and the power consumption of equipment are reduced.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is a flow diagram of one embodiment of a finger state detection method according to the present application;
FIG. 2 is a flow diagram of yet another embodiment of a finger state detection method according to the present application;
FIG. 3 is a schematic block diagram of one embodiment of a finger state detection device according to the present application;
fig. 4 is a schematic structural diagram of an electronic device for implementing an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
It should be noted that all actions of acquiring signals, information or data in the present application are performed under the premise of complying with the corresponding data protection regulation policy of the country of the location and obtaining the authorization given by the owner of the corresponding device.
In recent years, biometric identification technology has been widely applied to various terminal devices or electronic apparatuses. Biometric identification techniques include, but are not limited to, fingerprint identification, palm print identification, vein identification, iris identification, face identification, biometric identification, anti-counterfeiting identification, and the like. Among them, fingerprint recognition generally includes optical fingerprint recognition, capacitive fingerprint recognition, and ultrasonic fingerprint recognition. With the rise of the comprehensive screen technology, the fingerprint identification module can be arranged in a local area or a whole area below the display screen, so that the optical fingerprint identification Under the screen (Under-display) is formed; or, can also be with inside partly or the whole display screen that integrates to electronic equipment of optical fingerprint identification module to form the optical fingerprint identification In-screen (In-display). The Display screen may be an Organic Light Emitting Diode (OLED) Display screen or a Liquid Crystal Display (LCD) screen, or the like. Fingerprint identification methods generally include the steps of acquisition of a fingerprint image, preprocessing, feature extraction, feature matching and the like. Part or all of the steps can be realized by a traditional Computer Vision (CV) algorithm, and also can be realized by an Artificial Intelligence (AI) -based deep learning algorithm. The fingerprint identification technology can be applied to portable or mobile terminals such as smart phones, tablet computers and game devices, and other electronic devices such as smart door locks, automobiles and bank automatic teller machines, and is used for fingerprint unlocking, fingerprint payment, fingerprint attendance checking, identity authentication and the like.
In the process of unlocking the fingerprint, in order to avoid acquiring a poor-quality fingerprint image due to too fast movement or too fast lifting of the finger of the user, the state of the finger of the user is usually detected to determine whether the state of the finger of the user is abnormal. In the prior art, after a fingerprint sensor detects that a finger is pressed, the fingerprint sensor can be switched to a picture collection mode to collect at least two fingerprint images, and whether the finger state of a user is abnormal or not is determined based on the change condition of the fingerprint images. However, the finger state detection method takes a long time and the power consumption of the device is large because additional time is required for acquiring one more fingerprint image. In another existing mode, the fingerprint sensor can be switched to the finger detection mode again after the image acquisition is completed, and whether the finger state of the user is abnormal is determined by detecting whether the finger is still located in the acquisition area. However, the above-mentioned problems still remain because the operation mode switching process of the fingerprint sensor and the finger detecting process also require additional time consumption. The embodiment of the application provides a finger state detection method, which can solve the problems.
Referring to FIG. 1, a flow 100 of one embodiment of a finger state detection method according to the present application is shown. The finger state detection method can be applied to various electronic devices. For example, but not limited to: smart phones, tablet computers, electronic book readers, MP3 (moving Picture Experts Group Audio Layer III) players, MP4 (moving Picture Experts Group Audio Layer IV) players, laptop portable computers, car-mounted computers, palm top computers, desktop computers, set-top boxes, smart televisions, wearable devices, and the like. The main body of execution of the finger state detection method may be a processor in the electronic device described above, such as the processing means 401 in fig. 4. The finger state detection method comprises the following steps:
step 101, acquiring detection data acquired by the fingerprint sensor in a finger detection mode, and determining a first trigger area in an acquisition area of the fingerprint sensor based on the detection data.
In this embodiment, the electronic device to which the finger state detection method is applied may be configured with a fingerprint sensor, and the fingerprint sensor may include an acquisition area for fingerprint acquisition. The fingerprint sensor may have a variety of operating modes. For example, but not limited to, a finger detection mode, a chart mode may be included. The finger detection mode can be used for detecting that the finger presses and lifts up, and the pattern collection mode can be used for collecting fingerprint images to carry out fingerprint identification. In the above finger detection mode, the fingerprint sensor may collect detection data for the collection area and determine whether there is a finger press in the collection area based on the detection data. Under the image collecting mode, the fingerprint sensor can collect images of the collecting area to obtain fingerprint images.
In this embodiment, after detecting that the finger presses the collection area, the fingerprint sensor may send an interrupt signal to the execution main body to wake up the execution main body. After receiving the interrupt signal, the execution main body can acquire detection data acquired by the fingerprint sensor in a finger detection mode, and determines a first trigger area in the acquisition area based on the detection data.
In practice, a large number of sensing units can be arranged in the fingerprint sensor, and each sensing unit can be used for detecting the capacitance value of one pixel point in the acquisition area. The collection area can comprise a plurality of preset sub-areas. Each sub-region can include a plurality of pixel points, so each sub-region can correspond to a plurality of sensing units. As an example, the acquisition area is a rectangular pixel block with a size of 30 × 300, 6 transverse pixel lines with a size of 30 × 1 may be uniformly selected from the rectangular pixel block, each transverse pixel line serves as a sub-area, and each sub-area may correspond to 30 sensing units. Alternatively, each of the lateral pixel lines is further divided into 2 lateral pixel lines, forming 12 lateral pixel lines having a size of 15 × 1. Each 15 × 1 horizontal pixel line may be used as a sub-region, and each sub-region may correspond to 15 sensing units. It should be noted that the sub-regions may be arranged according to a certain rule, such as symmetrically arranged left and right and/or up and down along the center of the acquisition region, or distributed discretely and randomly. In addition to dividing a partial region in the acquisition region into a plurality of sub-regions, the entire region in the acquisition region may be divided into a plurality of sub-regions. The detection data collected by the fingerprint sensor in the finger detection mode may include capacitance values collected by the sensing units corresponding to the sub-regions. The first trigger area may be formed by a sub-area of the plurality of sub-areas, where a total capacitance value is greater than a set threshold value.
In some alternative implementations, each of the sub-regions described above may have a corresponding trigger threshold. The trigger thresholds for different sub-regions may be the same or different. For example, the threshold for sub-regions near the edges of the acquisition region may be less than the threshold for sub-regions near the center. If a sub-region is greater than the trigger threshold, it means that there is a finger press on that sub-region. The execution subject may determine the first trigger area according to the following steps:
in a first step, based on the detection data, first capacitance values of a plurality of sub-areas in the acquisition area are determined. The first capacitance value of each sub-region may be a total capacitance value or an average value of each pixel point in the sub-region. As an example, each sensing unit may be configured to detect a capacitance value of a pixel in the acquisition region, and the executing body may first obtain the capacitance value of each pixel in each sub-region from the detection data. Then, for each sub-area, the sum of the capacitance values of the pixel points in the sub-area is determined as the first capacitance value of the sub-area.
And secondly, determining a subarea of which the first capacitance value is larger than the corresponding trigger threshold value in the plurality of subareas as a first trigger subarea.
And thirdly, determining a first trigger area based on the first trigger subarea. For example, the total area made up of the first trigger sub-area may be determined as the first trigger area. Under the condition that the sub-area only occupies part of the acquisition area, the power consumption of finger pressing detection and finger state detection can be greatly reduced, so that the power consumption of the device is reduced.
And 102, acquiring a fingerprint image acquired by the fingerprint sensor in a picture acquiring mode, and determining a second trigger area in the acquisition area based on the fingerprint image.
In this embodiment, after the fingerprint sensor detects that there is a finger pressing in the capture area, the fingerprint sensor may be switched from the finger detection mode to the image capture mode. The switching of the working mode can be controlled and executed by the execution main body. For example, the fingerprint sensor may send an interrupt signal to the execution main body to wake up the execution main body after detecting that there is a finger pressing in the collection area. After the execution main body receives the interrupt signal, the working mode of the fingerprint sensor can be switched to the image collecting mode from the finger detection mode, so that the fingerprint sensor collects fingerprint images.
In this embodiment, the pixel value of each pixel point in the fingerprint image may be a capacitance value acquired by the sensing unit corresponding to the pixel point, and the pixel value of each pixel point in the fingerprint image may also be converted into a capacitance value acquired by the sensing unit through a preset relation (i.e., the two are not directly equal to each other). The fingerprint image may include detection data of the whole acquisition area, that is, capacitance values acquired by each sensing unit in the fingerprint sensor. Therefore, the capacitance values acquired by the sensing units corresponding to the plurality of sub-regions (i.e., the sub-regions corresponding to the detection data acquired by the fingerprint sensor in the finger detection mode) in the fingerprint image can be obtained. To maintain consistency of the comparison range, the execution subject may determine a second trigger area in the capture area based on the pixel values of the plurality of sub-areas. For example, a sub-area, in which the total capacitance value is greater than the set threshold value, of the plurality of sub-areas may be determined as the second trigger area.
In some optional implementations, the executing body may determine the second trigger area according to the following steps:
first, a second capacitance value of each of the plurality of sub-regions is determined based on the fingerprint image. The second capacitance value of each sub-region may be a total capacitance value of each pixel point in the sub-region. As an example, the execution subject may first obtain a pixel value of each pixel point in each sub-region from the fingerprint image. Then, for each sub-region, the sum or the average of the pixel values of the pixel points in the sub-region may be determined as the second capacitance value of the sub-region.
And secondly, determining a subarea of the plurality of subareas, wherein the second capacitance value is larger than the corresponding trigger threshold value, as a second trigger subarea.
And thirdly, determining a second trigger area based on the second trigger subarea. For example, the total area made up of the second trigger sub-areas may be determined as the second trigger area. Under the condition that the sub-area only occupies part of the acquisition area, the power consumption in finger pressing detection and finger state detection can be greatly reduced, and therefore the power consumption of the device is reduced.
And 103, determining whether the finger state of the user is abnormal or not based on the first trigger area and the second trigger area.
In this embodiment, the execution body compares the first trigger area and the second trigger area, and determines whether the finger state of the user is abnormal based on the comparison result.
In some optional implementations, the first trigger zone can include at least one first trigger sub-zone therein, and the second trigger zone can include at least one second trigger sub-zone therein. The execution subject may determine whether the finger state of the user is abnormal based on the number of the first trigger sub-regions and the number of the second trigger sub-regions.
Specifically, if the number of the first trigger sub-areas is greater than the number of the second trigger sub-areas, it means that the number of the trigger sub-areas detected by the fingerprint sensor in the finger detection mode is greater than the number of the trigger sub-areas detected in the image acquisition mode. That is, during the period from the detection of the finger pressing the capture area to the capture of the fingerprint image, the finger is lifted or moved, resulting in a reduction in the area of the finger and the capture area. At this time, the acquired fingerprint image is usually a low-quality image or a null image (i.e., a fingerprint image without detection data), and if the fingerprint image is used for fingerprint identification, the fingerprint identification result will be inaccurate. Therefore, in this case, it is possible to determine that the finger state is abnormal.
Conversely, if the number of the first trigger sub-areas is less than or equal to the number of the second trigger sub-areas, it means that the number of the trigger sub-areas detected by the fingerprint sensor in the finger detection mode is less than or equal to the number of the trigger sub-areas detected in the sampling mode. That is, the area of the finger and the capture area is not reduced during the detection of the finger pressing the capture area until the fingerprint image is captured. The fingerprint image collected at this time is usually a high-quality image, and if the fingerprint image is used for fingerprint identification, an accurate identification result can be obtained. Therefore, in this case, it can be determined that the finger state is normal.
It should be noted that, based on the number of the first trigger sub-regions and the number of the second trigger sub-regions, it may also be determined whether the finger state of the user is abnormal in other manners or in combination with other conditions. For example, when the number of the first trigger sub-regions is less than or equal to the number of the second trigger sub-regions and the number of the second trigger sub-regions is greater than a set threshold, it may be determined that the finger state of the user is normal, so as to further ensure the quality of the fingerprint image. For another example, when the difference between the number of the second trigger sub-regions and the number of the first trigger sub-regions is greater than the set threshold, it may be determined that the finger state of the user is normal, so as to further ensure the quality of the fingerprint image. And will not be described in detail herein.
In some optional implementations, the execution body may determine whether the finger state of the user is abnormal based on areas of the first trigger region and the second trigger region. Specifically, if the area of the first trigger region is larger than that of the second trigger region, it means that the finger is lifted or moved during the period from the detection of the finger pressing the capture region to the capture of the fingerprint image, resulting in a decrease in the area of the finger and the capture region. At this time, the acquired fingerprint image is usually a low-quality image or a null image (i.e., a fingerprint image without detection data), and if the fingerprint image is used for fingerprint identification, the fingerprint identification result will be inaccurate. Therefore, in this case, it is possible to determine that the finger state is abnormal. On the contrary, if the area of the first trigger area is smaller than or equal to the area of the second trigger area, it means that the area of the finger and the capture area is not reduced during the period of detecting that the finger presses the capture area to capture the fingerprint image. The fingerprint image collected at this time is generally a high-quality image, and if the fingerprint image is used for fingerprint identification, an accurate identification result can be obtained. Therefore, it can be determined that the finger state of the user is normal.
In the method provided by the above embodiment of the present application, by acquiring detection data acquired by a fingerprint sensor in a finger detection mode, a first trigger area in an acquisition area of the fingerprint sensor is determined based on the detection data; acquiring a fingerprint image acquired by the fingerprint sensor in a pattern acquisition mode, and determining a second trigger area in the acquisition area based on the fingerprint image; and finally, determining whether the finger state of the user is abnormal or not based on the first trigger area and the second trigger area, so that the finger state detection can be completed after the finger detection mode of the fingerprint sensor is switched into the image acquisition mode and a fingerprint image is acquired. The process of detecting the state of the finger does not depend on additional fingerprint images, and the working mode of the fingerprint sensor does not need to be switched into a finger detection mode and the finger detection is carried out after the image acquisition of the fingerprint sensor is finished, so that the time consumption of detecting the state of the finger and the power consumption of equipment are reduced.
In some optional embodiments, in the case that the finger state of the user is determined to be abnormal, the executing body may further output a prompt message. The prompt message can be used for prompting the user that the finger moves too fast or the finger lifts too fast. Therefore, the finger pressing can be conveniently performed again by the user so as to perform fingerprint unlocking again.
In some optional embodiments, in a case that it is determined that the finger state of the user is normal, the executing body may further perform fingerprint recognition on the fingerprint image to obtain a fingerprint recognition result. Thereafter, it may be determined whether to unlock the electronic device based on the fingerprint identification result. Since the fingerprint image is a high-quality image in the case where the finger state is normal, the fingerprint image is recognized at this time, and a more accurate fingerprint recognition result can be obtained. And unlocking is carried out on the basis of the fingerprint identification result, so that the safety of information in the electronic equipment can be ensured.
With further reference to FIG. 2, a flow 200 of yet another embodiment of a finger state detection method is shown. The process 200 of the finger state detection method includes the following steps:
step 201, acquiring detection data acquired by the fingerprint sensor in a finger detection mode, and determining a first trigger area in an acquisition area of the fingerprint sensor based on the detection data.
Step 201 in this embodiment can refer to step 101 in the embodiment corresponding to fig. 1, and is not described herein again.
Step 202, acquiring a fingerprint image acquired by the fingerprint sensor in a picture acquisition mode, and determining a second trigger area in the acquisition area based on the fingerprint image.
Step 202 in this embodiment can refer to step 102 in the embodiment corresponding to fig. 1, and is not described herein again.
In step 203, if the number of the first trigger sub-areas in the first trigger area is greater than the number of the second trigger sub-areas in the second trigger area, it is determined that the finger state of the user is abnormal.
In this embodiment, if the number of the first trigger sub-areas in the first trigger area is greater than the number of the second trigger sub-areas in the second trigger area, it means that the number of the trigger areas detected by the fingerprint sensor in the finger detection mode is greater than the number of the trigger areas detected in the sampling mode. That is, during the period from the detection of the finger pressing the capture area to the capture of the fingerprint image, the finger is lifted or moved, resulting in a reduction in the area of the finger and the capture area. At this time, the acquired fingerprint image is usually a low-quality image or a null image (i.e., a fingerprint image without detection data), and if the fingerprint image is used for fingerprint identification, the fingerprint identification result will be inaccurate. Therefore, in this case, it is possible to determine that the finger state is abnormal.
And step 204, if the finger state of the user is determined to be abnormal, outputting prompt information.
In this embodiment, in the case where it is determined that the finger state of the user is abnormal, the execution main body may further output a prompt message. The prompt message can be used for prompting the user that the finger moves too fast or the finger lifts too fast. Therefore, the finger pressing can be conveniently performed again by the user so as to perform fingerprint unlocking again.
The output mode of the prompt information is not limited, and for example, the prompt information may be output by voice, may be prompted by vibration, or may display the prompt information in the form of text, image, or the like.
In step 205, if the number of the first trigger sub-areas in the first trigger area is less than or equal to the number of the second trigger sub-areas in the second trigger area, it is determined that the finger state of the user is normal.
In this embodiment, if the number of the first trigger sub-areas in the first trigger area is smaller than or equal to the number of the second trigger sub-areas in the second trigger area, it means that the number of the trigger areas detected by the fingerprint sensor in the finger detection mode is smaller than or equal to the number of the trigger areas detected in the mapping mode. That is, the area of the finger and the capture area is not reduced during the detection of the finger pressing the capture area until the fingerprint image is captured. The fingerprint image collected at this time is usually a high-quality image, and if the fingerprint image is used for fingerprint identification, an accurate identification result can be obtained. Therefore, in this case, it can be determined that the finger state is normal.
And step 206, if the finger state of the user is determined to be normal, performing fingerprint identification on the fingerprint image to obtain a fingerprint identification result.
In this embodiment, in a case that it is determined that the finger state of the user is normal, the executing body may further perform fingerprint identification on the fingerprint image to obtain a fingerprint identification result. Since the fingerprint image is a high-quality image in the case where the finger state is normal, the fingerprint image is recognized at this time, and a more accurate fingerprint recognition result can be obtained.
And step 207, determining whether to unlock the electronic equipment based on the fingerprint identification result.
In this embodiment, after obtaining the fingerprint identification result, it may be determined whether to unlock the electronic device based on the fingerprint identification result. And unlocking is carried out on the basis of the fingerprint identification result, so that the safety of information in the electronic equipment can be ensured.
In the method provided by the above embodiment of the application, the detection data acquired by the fingerprint sensor in the finger detection mode is acquired, and the first trigger area in the acquisition area is determined based on the detection data; acquiring a fingerprint image acquired by the fingerprint sensor in a pattern acquisition mode, and determining a second trigger area in the acquisition area based on the fingerprint image; and under the condition that the number of the first trigger subareas in the first trigger area is larger than that of the second trigger subareas in the second trigger area, determining that the finger state of the user is abnormal, and outputting prompt information, so that the user can perform finger pressing again to perform fingerprint unlocking again. Under the condition that the number of the first trigger subareas in the first trigger area is smaller than or equal to the number of the second trigger subareas in the second trigger area, determining that the finger state of a user is normal, performing fingerprint identification on a fingerprint image, and determining whether to unlock the electronic equipment based on a fingerprint identification result, so that a more accurate fingerprint identification result is obtained, and the safety of information in the electronic equipment is ensured under the conditions of reducing the time consumption of finger state detection and equipment power consumption.
With further reference to fig. 3, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of a finger state detection apparatus, which corresponds to the embodiment of the method shown in fig. 1, and which is particularly applicable to various electronic devices.
As shown in fig. 3, the finger state detection device 300 of the present embodiment includes: a first acquiring unit 301, configured to acquire detection data acquired by a fingerprint sensor in a finger detection mode, and determine a first trigger area in an acquisition area of the fingerprint sensor based on the detection data; a second obtaining unit 302, configured to obtain a fingerprint image captured by the fingerprint sensor in a mapping mode, determine a second trigger area in the capture area based on the fingerprint image, and switch from the finger detection mode to the mapping mode after detecting that there is a finger press in the capture area by the fingerprint sensor; a detecting unit 303, configured to determine whether a finger state of the user is abnormal based on the first trigger area and the second trigger area.
In some optional implementations, the first trigger zone includes at least one first trigger sub-zone, and the second trigger zone includes at least one second trigger sub-zone; the detecting unit 303 is further configured to determine that the finger state of the user is abnormal if the number of the first trigger sub-regions is greater than the number of the second trigger sub-regions; and if the number of the first trigger sub-areas is less than or equal to the number of the second trigger sub-areas, determining that the finger state of the user is normal.
In some optional implementation manners, the detecting unit 303 is further configured to determine that the finger state of the user is abnormal if the area of the first trigger area is larger than the area of the second trigger area; and if the area of the first trigger area is smaller than or equal to the area of the second trigger area, determining that the finger state of the user is normal.
In some optional implementations, the first obtaining unit 301 is further configured to determine, based on the detection data, first capacitance values of a plurality of sub-regions in the acquisition region, where each sub-region has a corresponding trigger threshold; determining a sub-region of the plurality of sub-regions for which a first capacitance value is greater than a corresponding trigger threshold as a first trigger sub-region; determining a first trigger zone based on the first trigger sub-zone.
In some optional implementations, the second obtaining unit 302 is further configured to determine, based on the fingerprint image, a second capacitance value of each of the multiple sub-regions; determining a sub-region of the plurality of sub-regions for which a second capacitance value is greater than a corresponding trigger threshold as a second trigger sub-region; determining a second trigger zone based on the second trigger sub-zone.
In some optional implementation manners, the first obtaining unit 301 is further configured to obtain, from the detection data, capacitance values of pixel points in the multiple sub-areas; for each sub-area in the plurality of sub-areas, determining the sum of the capacitance values of all the pixel points in the sub-area as a first capacitance value of the sub-area; the second obtaining unit 302 is further configured to obtain, from the fingerprint image, a pixel value of each pixel point in the multiple sub-regions; and for each sub-area in the plurality of sub-areas, determining the sum of the pixel values of all the pixel points in the sub-area as a second capacitance value of the sub-area.
In some optional implementation manners, the apparatus further includes a prompting unit, configured to output a prompting message if it is determined that the finger state of the user is abnormal, where the prompting message is used to prompt the user that the finger moving speed is too fast or the finger lifting speed is too fast.
In some optional implementation manners, the apparatus further includes an unlocking unit, configured to perform fingerprint identification on the fingerprint image to obtain a fingerprint identification result if it is determined that the finger state of the user is normal; and determining whether to unlock the electronic equipment or not based on the fingerprint identification result.
According to the device provided by the embodiment of the application, the detection data acquired by the fingerprint sensor in the finger detection mode is acquired, and the first trigger area in the acquisition area of the fingerprint sensor is determined based on the detection data; acquiring a fingerprint image acquired by the fingerprint sensor in a pattern acquisition mode, and determining a second trigger area in the acquisition area based on the fingerprint image; and finally, determining whether the finger state of the user is abnormal or not based on the first trigger area and the second trigger area, so that the finger state detection can be completed after the finger detection mode of the fingerprint sensor is switched into the image acquisition mode and a fingerprint image is acquired. The process of detecting the finger state does not depend on additional fingerprint images, and the working mode of the fingerprint sensor does not need to be switched to the finger detection mode and the finger detection after the fingerprint sensor finishes image acquisition, so that the time consumption of detecting the finger state and the power consumption of equipment are reduced.
Embodiments of the present application further provide an electronic device, which includes one or more processors, a storage device, and one or more programs stored thereon, and when the one or more programs are executed by the one or more processors, the one or more processors implement the above finger state detection method.
Reference is now made to fig. 4, which illustrates a schematic block diagram of an electronic device for implementing some embodiments of the present application. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 4, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage device 408 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM403 are connected to each other through a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, magnetic disks, hard disks, and the like; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices, either wirelessly or by wire, to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 4 may represent one device or may represent multiple devices as desired.
An embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the finger state detection method is implemented.
In particular, according to some embodiments of the present application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through communications device 409, or installed from storage device 408, or installed from ROM 402. Which when executed by the processing means 401, performs the above-described functions as defined in the methods of some embodiments of the present application.
An embodiment of the present application further provides a computer-readable medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the above finger state detection method.
It should be noted that the computer readable medium described in some embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present application, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring detection data acquired by a fingerprint sensor in a finger detection mode, and determining a first trigger area in an acquisition area of the fingerprint sensor based on the detection data; acquiring a fingerprint image acquired by the fingerprint sensor in a picture acquiring mode, determining a second trigger area in the acquisition area based on the fingerprint image, and switching the fingerprint sensor from the finger detection mode to the picture acquiring mode after detecting that the finger in the acquisition area is pressed; determining whether the finger state of the user is abnormal based on the first trigger area and the second trigger area.
Computer program code for carrying out operations for embodiments of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +; conventional procedural programming languages, such as the "C" language or similar programming languages, are also included. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a first determining unit, a second determining unit, a selecting unit, and a third determining unit. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the present application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present application is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present application are mutually replaced to form the technical solution.

Claims (11)

1. A finger state detection method, characterized in that the method comprises:
acquiring detection data acquired by a fingerprint sensor in a finger detection mode, and determining a first trigger area in an acquisition area of the fingerprint sensor based on the detection data;
acquiring a fingerprint image acquired by the fingerprint sensor in a picture acquiring mode, determining a second trigger area in the acquisition area based on the fingerprint image, and switching the fingerprint sensor from the finger detection mode to the picture acquiring mode after detecting that the finger in the acquisition area is pressed;
determining whether a finger state of a user is abnormal based on the first trigger zone and the second trigger zone.
2. The method of claim 1, wherein the first trigger zone comprises at least one first trigger sub-zone and the second trigger zone comprises at least one second trigger sub-zone; the determining whether the finger state of the user is abnormal based on the first trigger area and the second trigger area comprises:
if the number of the first trigger subareas is larger than that of the second trigger subareas, determining that the finger state of the user is abnormal;
and if the number of the first trigger sub-areas is less than or equal to the number of the second trigger sub-areas, determining that the finger state of the user is normal.
3. The method of claim 1, wherein determining whether a user's finger state is abnormal based on the first trigger zone and the second trigger zone comprises:
if the area of the first trigger area is larger than that of the second trigger area, determining that the finger state of the user is abnormal;
and if the area of the first trigger area is smaller than or equal to the area of the second trigger area, determining that the finger state of the user is normal.
4. The method of claim 1, wherein the determining a first trigger region of the acquisition regions based on the detection data comprises:
determining, based on the detection data, first capacitance values for a plurality of sub-regions in the acquisition region, each sub-region having a corresponding trigger threshold;
determining a sub-region of the plurality of sub-regions for which a first capacitance value is greater than a corresponding trigger threshold as a first trigger sub-region;
determining a first trigger zone based on the first trigger sub-zone.
5. The method of claim 4, wherein the determining a second trigger region in the acquisition region based on the fingerprint image comprises:
determining a second capacitance value for each of the plurality of sub-regions based on the fingerprint image;
determining a sub-region of the plurality of sub-regions for which a second capacitance value is greater than a corresponding trigger threshold as a second trigger sub-region;
determining a second trigger zone based on the second trigger sub-zone.
6. The method of claim 5, wherein determining the first capacitance values for the plurality of sub-regions in the acquisition region based on the detection data comprises:
acquiring capacitance values of all pixel points in the plurality of sub-areas from the detection data;
for each sub-area in the plurality of sub-areas, determining the sum of the capacitance values of all the pixel points in the sub-area as a first capacitance value of the sub-area;
and determining, based on the fingerprint image, a second capacitance value for each of the plurality of sub-regions, comprising:
acquiring pixel values of all pixel points in the plurality of sub-areas from the fingerprint image;
and for each sub-area in the plurality of sub-areas, determining the sum of the pixel values of all the pixel points in the sub-area as a second capacitance value of the sub-area.
7. The method of any one of claims 1-6, wherein after determining whether the user's finger state is abnormal, the method further comprises:
and if the finger state of the user is determined to be abnormal, outputting prompt information, wherein the prompt information is used for prompting that the finger moving speed of the user is too high or the finger lifting speed is too high.
8. The method of any one of claims 1-7, wherein after determining whether the user's finger state is abnormal, the method further comprises:
if the finger state of the user is determined to be normal, performing fingerprint identification on the fingerprint image to obtain a fingerprint identification result;
and determining whether to unlock the electronic equipment or not based on the fingerprint identification result.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-8.
11. A computer program product comprising a computer program, characterized in that the computer program realizes the method of any of claims 1-8 when executed by a processor.
CN202211455744.3A 2022-11-21 2022-11-21 Finger state detection method, electronic device, and computer-readable medium Pending CN115797979A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211455744.3A CN115797979A (en) 2022-11-21 2022-11-21 Finger state detection method, electronic device, and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211455744.3A CN115797979A (en) 2022-11-21 2022-11-21 Finger state detection method, electronic device, and computer-readable medium

Publications (1)

Publication Number Publication Date
CN115797979A true CN115797979A (en) 2023-03-14

Family

ID=85439361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211455744.3A Pending CN115797979A (en) 2022-11-21 2022-11-21 Finger state detection method, electronic device, and computer-readable medium

Country Status (1)

Country Link
CN (1) CN115797979A (en)

Similar Documents

Publication Publication Date Title
CN107209855B (en) Authenticating a user by fingerprint identification
CN108701178B (en) Authentication method and electronic device using the same
RU2615320C2 (en) Method, apparatus and terminal device for image processing
WO2017202187A1 (en) Fingerprint unlocking method and terminal
US10572715B2 (en) Segment block-based handwritten signature authentication system and method
CN108280431B (en) Face recognition processing method, face recognition processing device and intelligent terminal
US11328044B2 (en) Dynamic recognition method and terminal device
WO2017206675A1 (en) Method for controlling unlocking and terminal
CN104899490A (en) Terminal positioning method and user terminal
JP2022524833A (en) Fingerprint image enhancement, fingerprint recognition, application program startup method, fingerprint detection system, electronic devices and storage media
CN109074171B (en) Input method and electronic equipment
TWI679586B (en) Handwriting data processing method and device
CN108090340B (en) Face recognition processing method, face recognition processing device and intelligent terminal
CN111599460A (en) Telemedicine method and system
CN107454251B (en) Unlocking control method and related product
CN107408208B (en) Method and fingerprint sensing system for analyzing a biometric of a user
CN111881813A (en) Data storage method and system of face recognition terminal
US20150062005A1 (en) Method and system for providing user interaction when capturing content in an electronic device
CN111126147A (en) Image processing method, device and electronic system
CN113342170A (en) Gesture control method, device, terminal and storage medium
CN113486738A (en) Fingerprint identification method and device, electronic equipment and readable storage medium
CN110287861B (en) Fingerprint identification method and device, storage medium and electronic equipment
CN115631514B (en) User identification method, device, equipment and medium based on palm vein fingerprint
CN116342940A (en) Image approval method, device, medium and equipment
CN115797979A (en) Finger state detection method, electronic device, and computer-readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 201-1, 2nd Floor, Building 4, No. 188 Rixin Road, Binhai Science and Technology Park, Binhai New Area, Tianjin, 300450

Applicant after: Tianjin Jihao Technology Co.,Ltd.

Address before: 100089 Z, 17th floor, No. 1, Zhongguancun Street, Haidian District, Beijing

Applicant before: Beijing Jihao Technology Co.,Ltd.

CB02 Change of applicant information