Fingerprint identification method and device, electronic equipment and computer readable storage medium

By determining the position status of the electronic device in a smartphone and obtaining a target fingerprint list sorted by the frequency of use, the problem of long fingerprint recognition in the prior art is solved, and a more efficient fingerprint recognition process is achieved.

CN119625793APending Publication Date: 2025-03-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311184108.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-13
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

When existing smartphones recognize fingerprints, due to the fixed storage order of multiple fingerprints, the fingerprint recognition time is longer when the entered fingerprint corresponding to the fingerprint to be identified is relatively back in the list, which reduces the user's user experience.

Method used

By determining the position status of the electronic device, a target fingerprint list is obtained. The multiple pre-stored fingerprints in the list are sorted from high to low according to the frequency of use, and the target fingerprint list is used to identify the fingerprint to be identified.

Benefits of technology

By optimizing the sorting and matching order of fingerprint lists, the use of fingerprint recognition is shortened, the efficiency of fingerprint recognition processing is improved, and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119625793A_ABST
    Figure CN119625793A_ABST
Patent Text Reader

Abstract

The invention provides a fingerprint identification method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of terminals.The method comprises the steps that under the condition that a fingerprint to be identified is obtained, the pose state of the electronic equipment is determined, and the pose state comprises the condition that the electronic equipment is held by a user and placed on an objective table; a target fingerprint list is acquired from a fingerprint list set according to the pose state, the fingerprint list set comprises a plurality of fingerprint lists, each fingerprint list comprises a plurality of pre-stored fingerprints, the plurality of pre-stored fingerprints are ranked from high to low according to respective use frequencies, and the fingerprint to be identified is identified by adopting the target fingerprint list. According to the invention, the time for fingerprint identification can be shortened, and the efficiency of fingerprint identification processing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and more specifically, to a fingerprint recognition method, device, electronic device and computer-readable storage medium in the field of terminal technology. Background Art

[0002] Existing smart phones support a user to enter multiple fingerprints. The multiple recorded fingerprints are stored in a list, and the storage order is fixed. During fingerprint recognition, the fingerprint recognition module matches the current fingerprint with each recorded fingerprint in the list according to the arrangement order of the fingerprints in the list. The matching process is: extract the feature template of the current fingerprint and match it with the feature template of the recorded fingerprint in the list. If the match is successful, the fingerprint recognition is passed. Since the storage order of multiple recorded fingerprints in the list is fixed, when the recorded fingerprint corresponding to the fingerprint to be identified is relatively late in the list, the fingerprint recognition takes a long time, which reduces the user experience. Summary of the invention

[0003] The present application provides a fingerprint recognition method, device, electronic device and computer-readable storage medium, which can shorten the time required for fingerprint recognition.

[0004] In a first aspect, a fingerprint recognition method is provided, the fingerprint recognition method comprising: determining a posture state of an electronic device when a fingerprint to be recognized is obtained; wherein the posture state includes the electronic device being held by a user and the electronic device being placed on a stage; obtaining a target fingerprint list from a fingerprint list set according to the posture state; wherein the fingerprint list set includes multiple fingerprint lists, each fingerprint list includes multiple pre-stored fingerprints, and the multiple pre-stored fingerprints are sorted from high to low according to their respective usage frequencies; and using the target fingerprint list to recognize the fingerprint to be recognized.

[0005] In combination with the first aspect, in some possible implementations, each fingerprint list in the fingerprint list set carries a list identifier, and the list identifier indicates that the multiple pre-stored fingerprints in the fingerprint list come from at least one hand and the name of the at least one hand; obtaining the target fingerprint list from the fingerprint list set according to the posture state includes: when the posture state is that the electronic device is held by the user, determining the holding hand of the user holding the electronic device; representing the list identifier in the fingerprint list set as the fingerprint list of the holding hand, and determining it as the target fingerprint list.

[0006] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, determining the holding hand of the user holding the electronic device includes: detecting the center of gravity coordinates of the electronic device; when the center of gravity coordinates are within the coordinate interval corresponding to the left deflection of the electronic device, it is confirmed that the holding hand is the left hand; when the center of gravity coordinates are within the coordinate interval corresponding to the right deflection of the electronic device, it is confirmed that the holding hand is the right hand; when the center of gravity coordinates are within the coordinate interval corresponding to the non-deflection of the electronic device, it is confirmed that the holding hand is the left hand and the right hand.

[0007] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, each fingerprint list in the fingerprint list set carries a list identifier, and the list identifier indicates that the multiple pre-stored fingerprints in the fingerprint list are from at least one hand and the name of the at least one hand; obtaining the target fingerprint list from the fingerprint list set according to the posture state includes: when the posture state is that the electronic device is placed on the loading table, obtaining a first hand image of the user; providing a corresponding hand to which the finger of the fingerprint to be identified belongs based on the first hand image recognition; representing the list identifier in the fingerprint list set as the fingerprint list of the corresponding hand, and determining it as the target fingerprint list.

[0008] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the electronic device is a smart phone, and pressure detection modules are provided on the front, back and sides of the smart phone; determining the posture state of the electronic device includes: when the pressure detection module provided on at least three surfaces of the front, the back and the side detects a pressure signal, determining that the posture state is that the electronic device is held by a user; when the pressure detection module provided on the front and / or the back detects a pressure signal, determining that the posture state is that the electronic device is placed on a stage.

[0009] In combination with the first aspect and the above-mentioned implementation manner, in some possible implementation manners, the fingerprint recognition method also includes: constructing the fingerprint list set; the constructing of the fingerprint list set includes: collecting the user's fingerprint image, and extracting the fingerprint feature template of the fingerprint image to obtain a pre-stored fingerprint; when the fingerprint image is collected, outputting an inquiry prompt about the source of the fingerprint; wherein the inquiry prompt is used to inquire the user to provide the first finger of the fingerprint image and the corresponding hand of the first finger; obtaining the user's second hand image, and identifying the second finger and the corresponding hand of the second finger that provide the fingerprint image based on the second hand image; when receiving the answer information corresponding to the inquiry prompt, determining whether the first finger in the answer information is consistent with the second finger, and determining whether the corresponding hand of the first finger in the answer information is consistent with the corresponding hand of the second finger; when the first finger is consistent with the second finger and the corresponding hand of the first finger is consistent with the corresponding hand of the second finger, the first finger and The hand corresponding to the first finger is used as the fingerprint identifier of the pre-stored fingerprint; when the first finger is inconsistent with the second finger and / or the hand corresponding to the first finger is inconsistent with the hand corresponding to the second finger, the second finger and the hand corresponding to the second finger are used as the fingerprint identifiers of the pre-stored fingerprints; according to the use frequency of the pre-stored fingerprints, the pre-stored fingerprints whose corresponding hand of the finger represented by the fingerprint identifier is the left hand are sorted from high to low to obtain a first fingerprint list; according to the use frequency of the pre-stored fingerprints, the pre-stored fingerprints whose corresponding hand of the finger represented by the fingerprint identifier is the right hand are sorted from high to low to obtain a second fingerprint list; the first fingerprint list and the second fingerprint list are merged to obtain a third fingerprint list; the left hand is used as the list identifier of the first fingerprint list, the right hand is used as the list identifier of the second fingerprint list, and the left hand and the right hand are used as the list identifiers of the third fingerprint list; the fingerprint list set is constructed according to the first fingerprint list, the second fingerprint list and the third fingerprint list carrying the list identifiers.

[0010] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, after the target fingerprint list is used to identify the fingerprint to be identified, the fingerprint identification method also includes: if the fingerprint to be identified passes the identification, updating the usage frequency of the pre-stored fingerprint in the target fingerprint list that is the same as the fingerprint to be identified, and updating the order of the multiple pre-stored fingerprints in the target fingerprint list.

[0011] In a second aspect, a fingerprint recognition device is provided, the fingerprint recognition device comprising:

[0012] A state determination module, used to determine the posture state of the electronic device when the fingerprint to be identified is obtained; wherein the posture state includes the electronic device being held by the user and the electronic device being placed on the stage;

[0013] A list determination module, used to obtain a target fingerprint list from a fingerprint list set according to the posture state; wherein the fingerprint list set includes a plurality of fingerprint lists, each fingerprint list includes a plurality of pre-stored fingerprints, and the plurality of pre-stored fingerprints are sorted from high to low according to their respective usage frequencies;

[0014] The fingerprint recognition module is used to recognize the fingerprint to be recognized by using the target fingerprint list.

[0015] In conjunction with the second aspect, in some possible implementations, each fingerprint list in the fingerprint list set carries a list identifier, and the list identifier indicates that the multiple pre-stored fingerprints in the fingerprint list are derived from at least one hand and the name of the at least one hand; and the list determination module includes:

[0016] The first determination unit is used to determine the holding hand of the user holding the electronic device when the posture state is that the electronic device is held by the user; and to indicate the list identifier in the fingerprint list set as the fingerprint list of the holding hand, and determine it as the target fingerprint list.

[0017] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the first determination unit is specifically used to detect the center of gravity coordinates of the electronic device in determining the holding hand of the user holding the electronic device; when the center of gravity coordinates are within the coordinate interval corresponding to the left deflection of the electronic device, the holding hand is indeed the left hand; when the center of gravity coordinates are within the coordinate interval corresponding to the right deflection of the electronic device, the holding hand is indeed the right hand; when the center of gravity coordinates are within the coordinate interval corresponding to the non-deflection of the electronic device, the holding hand is indeed the left hand and the right hand.

[0018] In combination with the second aspect and the above implementation manner, in some possible implementation manners, each fingerprint list in the fingerprint list set carries a list identifier, and the list identifier indicates that the multiple pre-stored fingerprints in the fingerprint list are derived from at least one hand and the name of the at least one hand; the list determination module further includes:

[0019] The second determination unit is used to obtain a first hand image of the user when the posture state is that the electronic device is placed on a loading table; provide a corresponding hand to which the finger of the fingerprint to be identified belongs based on the first hand image recognition; represent the list identifier in the fingerprint list set as a fingerprint list of the corresponding hand, and determine it as the target fingerprint list.

[0020] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the electronic device is a smart phone, and pressure detection modules are provided on the front, back and sides of the smart phone. The state determination module is specifically used to: when the pressure detection module provided on at least three of the front, the back and the side detects a pressure signal, determine that the posture state is that the electronic device is held by a user; when the pressure detection module provided on the front and / or the back detects a pressure signal, determine that the posture state is that the electronic device is placed on a loading platform.

[0021] In combination with the second aspect and the above implementation manner, in some possible implementation manners, the fingerprint recognition device further includes:

[0022] A set building unit, used for building the fingerprint list set;

[0023] The set construction unit is specifically used for: collecting the fingerprint image of the user, and extracting the fingerprint feature template of the fingerprint image to obtain the pre-stored fingerprint; when the fingerprint image is collected, outputting an inquiry prompt about the source of the fingerprint; wherein the inquiry prompt is used to inquire the user to provide the first finger of the fingerprint image and the corresponding hand of the first finger; obtaining the second hand image of the user, and identifying the second finger and the corresponding hand of the second finger that provide the fingerprint image according to the second hand image; when receiving the answer information corresponding to the inquiry prompt, judging whether the first finger in the answer information is consistent with the second finger, and judging whether the corresponding hand of the first finger in the answer information is consistent with the corresponding hand of the second finger; when the first finger is consistent with the second finger and the corresponding hand of the first finger is consistent with the corresponding hand of the second finger, using the first finger and the corresponding hand of the first finger as the fingerprint identifier of the pre-stored fingerprint; When the first finger is inconsistent with the second finger and / or the hand corresponding to the first finger is inconsistent with the hand corresponding to the second finger, the second finger and the hand corresponding to the second finger are used as fingerprint identifiers of the pre-stored fingerprints; according to the use frequency of the pre-stored fingerprints, the pre-stored fingerprints whose corresponding hand of the finger represented by the fingerprint identifier is the left hand are sorted from high to low to obtain a first fingerprint list; according to the use frequency of the pre-stored fingerprints, the pre-stored fingerprints whose corresponding hand of the finger represented by the fingerprint identifier is the right hand are sorted from high to low to obtain a second fingerprint list; the first fingerprint list and the second fingerprint list are merged to obtain a third fingerprint list; the left hand is used as the list identifier of the first fingerprint list, the right hand is used as the list identifier of the second fingerprint list, and the left hand and the right hand are used as the list identifiers of the third fingerprint list; the fingerprint list set is constructed according to the first fingerprint list, the second fingerprint list and the third fingerprint list carrying the list identifiers.

[0024] In combination with the second aspect and the above implementation manner, in some possible implementation manners, the fingerprint recognition device further includes:

[0025] The list updating unit is used to update the usage frequency of the pre-stored fingerprints in the target fingerprint list that are the same as the fingerprint to be identified, and to update the order of the multiple pre-stored fingerprints in the target fingerprint list if the fingerprint to be identified passes the identification.

[0026] In a third aspect, an electronic device is provided, comprising a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, so that the electronic device executes the fingerprint recognition method in the first aspect or any possible implementation of the first aspect.

[0027] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the fingerprint recognition method in the first aspect or any possible implementation of the first aspect.

[0028] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the fingerprint recognition method in the first aspect or any possible implementation of the first aspect.

[0029] The fingerprint recognition method, device, electronic device, and computer-readable storage medium provided in the embodiments of the present application have the following technical effects:

[0030] The embodiment of the present application adopts the method of determining the posture state of the electronic device when the fingerprint to be identified is obtained, the posture state includes the electronic device being held by the user and the electronic device being placed on the loading table, obtaining the target fingerprint list from the fingerprint list set according to the posture state, the fingerprint list set includes multiple fingerprint lists, each fingerprint list includes multiple pre-stored fingerprints, and the multiple pre-stored fingerprints are sorted from high to low according to their respective usage frequencies, and adopting the technical solution of identifying the fingerprint to be identified by the target fingerprint list, sorting the multiple pre-stored fingerprints from high to low according to their respective usage frequencies, thereby generating a fingerprint list and corresponding to each posture state of the electronic device. After the fingerprint to be identified is obtained and the specific posture state of the electronic device is determined, the target fingerprint list corresponding to the posture state can be obtained from the fingerprint list set. The target fingerprint list is used to identify the fingerprint to be identified. Since all pre-stored fingerprints in the target fingerprint list are sorted by usage frequency, the usage frequency can indicate the user's preference for the pre-stored fingerprints. The higher the usage frequency, the higher the user's preference for the pre-stored fingerprints. In the sorting of pre-stored fingerprints, the pre-stored fingerprints with higher usage frequency will be compared with the fingerprint to be identified first, that is, the pre-stored fingerprints with higher usage preference will be compared with the fingerprint to be identified first. If the pre-stored fingerprint with higher usage frequency matches the fingerprint to be identified, the fingerprint to be identified is identified and passed, and there is no need to compare the fingerprint to be identified with other pre-stored fingerprints. In this way, the time for fingerprint identification is shortened and the efficiency of fingerprint identification processing is improved without reducing the security of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A schematic flow chart of a fingerprint recognition method provided in an embodiment of the present application is shown;

[0032] Figure 2 Schematic diagrams of Tables 1 to 3 are shown;

[0033] Figure 3 A schematic diagram of the structure of a fingerprint recognition device provided in an embodiment of the present application is shown;

[0034] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0035] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0036] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0037] The fingerprint recognition process in the prior art includes fingerprint entry, fingerprint recognition-image acquisition and fingerprint comparison, as follows:

[0038] About fingerprint entry: 1) The user enters multiple fingerprints, and the fingerprint sensor (denoted as sensor) collects fingerprint images (denoted as image0) respectively; 2) Sensor passes the collected image0 to the fingerprint recognition module (denoted as Module) in the system one by one; 3) Module extracts the fingerprint feature template (denoted as feature0) for the received fingerprint image respectively, and generates a corresponding index value (denoted as fingerID) for each feature0 as an identifier; 4) Module organizes all fingerIDs into a fingerprint template index list (denoted as fingerList) in a certain fixed order; 5) Module stores all feature0 on the device; 6) The fingerprints subsequently entered by the user will generate the corresponding fingerprint feature template and template identifier according to steps 1)-3), and the fingerID of the newly entered fingerprint is added to the fingerprint list (denoted as fingerList).

[0039] Regarding fingerprint recognition-image acquisition: 7) The user performs fingerprint recognition; 8) The sensor records the current fingerprint image (recorded as image1) and passes it to the module; 9) The module processes image1 and extracts the fingerprint feature template (recorded as feature1).

[0040] Regarding fingerprint matching: 10) Module obtains fingerList from the device; 11) Module traverses fingerList and compares feature1 to be identified with feature0 corresponding to each fingerID in fingerList one by one; if feature1 matches with a feature0 successfully, Module feedbacks that fingerprint recognition has passed; if feature1 does not match with any feature0 successfully, Module feedbacks that fingerprint recognition has passed.

[0041] Since the storage order of multiple recorded fingerprints in fingerList is fixed, when the recorded fingerprint corresponding to the fingerprint to be identified is at a relatively late position in fingerList, the fingerprint identification takes a long time, which reduces the user experience. Therefore, the present application proposes a fingerprint identification method, device, electronic device and computer-readable storage medium to solve the problem of long fingerprint identification time.

[0042] The following is an embodiment of a fingerprint recognition method provided in an embodiment of the present application.

[0043] Figure 1 FIG. 1 is a schematic flow chart of a fingerprint recognition method provided by an embodiment of the present application. Figure 1 As shown, the fingerprint recognition method provided in the embodiment of the present application is applied to electronic devices with fingerprint recognition functions, such as smart phones, tablet computers, smart door locks, etc. The embodiment of the present application is described using the electronic device as a smart phone as an example.

[0044] The fingerprint recognition method includes the following schemes:

[0045] S110: When the fingerprint to be identified is obtained, the posture state of the electronic device is determined.

[0046] In an exemplary embodiment, when a user needs to use a fingerprint to unlock an electronic device, or a fingerprint to unlock an application in an electronic device, the user inputs a fingerprint in the fingerprint recognition area of ​​the electronic device, and the electronic device is able to obtain the fingerprint to be recognized. After obtaining the fingerprint to be recognized, the electronic device recognizes its own posture state, and the posture state includes the electronic device being held by the user and the electronic device being placed on a stage. The electronic device being held by the user can be understood as the user holding the electronic device in hand, and the electronic device being placed on the stage can be understood as the user placing the electronic device on the stage, such as on a desktop.

[0047] S120: Obtain a target fingerprint list from the fingerprint list set according to the posture state.

[0048] The fingerprint list set is pre-constructed, which includes multiple fingerprint lists, each fingerprint list includes multiple pre-stored fingerprints, and the multiple pre-stored fingerprints are sorted from high to low according to their respective usage frequencies. The usage frequency of the pre-stored fingerprints can represent the probability of the pre-stored fingerprints being used or the probability of being recognized during fingerprint recognition. The higher the usage frequency of the pre-stored fingerprints, the greater the probability of being used. For example, fingerprint list A includes pre-stored fingerprints 1 to pre-stored fingerprints 5, and the order of pre-stored fingerprints 1 to pre-stored fingerprints 5 is pre-stored fingerprints 1, pre-stored fingerprints 2, pre-stored fingerprints 3, pre-stored fingerprints 4, pre-stored fingerprints 5, that is, the usage frequency of pre-stored fingerprints 1 to pre-stored fingerprints 5 is decreasing from pre-stored fingerprints 1 to pre-stored fingerprints 5, that is, the usage probability of pre-stored fingerprints 1 is the highest, and users have a habit of using pre-stored fingerprints 1 for fingerprint recognition.

[0049] A corresponding fingerprint list is also set up in advance for each posture state. For each posture state, all pre-stored fingerprints in the fingerprint list corresponding to the posture state are sorted from high to low according to their respective usage frequencies, indicating the order of fingerprints preferred by users in the posture state. The fingerprints with a higher ranking have a higher probability of being used, and the fingerprints with a lower ranking have a lower probability of being used. Among them, the order of all pre-stored fingerprints in the fingerprint list according to the frequency of use is also the order of fingerprint comparison. When performing fingerprint comparison and matching, the pre-stored fingerprint with the highest ranking in the arrangement order is used for comparison first, followed by the pre-stored fingerprint with the second highest ranking, and so on.

[0050] When the fingerprint to be identified is obtained and the specific posture state of the electronic device is identified, the fingerprint list corresponding to the identified posture state can be obtained from the fingerprint list set according to the correspondence between the identified posture state and the pre-set posture state and the fingerprint list, which is called the target fingerprint list.

[0051] S130: Using the target fingerprint list to identify the fingerprint to be identified.

[0052] After obtaining the target fingerprint list, the target fingerprint list is used to identify the fingerprint to be identified. The identification process is as follows: since all pre-stored fingerprints in the target fingerprint list are sorted from large to small according to the probability of being used, the pre-stored fingerprint with the highest probability of being used will be matched with the fingerprint to be identified first. If the two match successfully, it means that the fingerprint to be identified has been identified. If the two do not match successfully, the pre-stored fingerprint with the second highest probability of being used will be matched with the fingerprint to be identified. If the two match successfully, it means that the fingerprint to be identified has been identified. If the two do not match successfully, the fingerprint to be identified will continue to be matched with the subsequent pre-stored fingerprints, and so on.

[0053] The embodiment of the present application adopts the method of determining the posture state of the electronic device when the fingerprint to be identified is obtained, the posture state includes the electronic device being held by the user and the electronic device being placed on the loading table, obtaining the target fingerprint list from the fingerprint list set according to the posture state, the fingerprint list set includes multiple fingerprint lists, each fingerprint list includes multiple pre-stored fingerprints, and the multiple pre-stored fingerprints are sorted from high to low according to their respective usage frequencies, and adopting the technical solution of identifying the fingerprint to be identified by the target fingerprint list, sorting the multiple pre-stored fingerprints from high to low according to their respective usage frequencies, thereby generating a fingerprint list and corresponding to each posture state of the electronic device. After the fingerprint to be identified is obtained and the specific posture state of the electronic device is determined, the target fingerprint list corresponding to the posture state can be obtained from the fingerprint list set. The target fingerprint list is used to identify the fingerprint to be identified. Since all pre-stored fingerprints in the target fingerprint list are sorted by frequency of use, the frequency of use can indicate the user's preference for the pre-stored fingerprints. The higher the frequency of use, the higher the user's preference for the pre-stored fingerprints. In the sorting of pre-stored fingerprints, the pre-stored fingerprints with the highest frequency of use will be compared with the fingerprint to be identified first, that is, the pre-stored fingerprints with the highest degree of preference will be compared with the fingerprint to be identified first. If the pre-stored fingerprint with the highest frequency of use matches the fingerprint to be identified, the fingerprint to be identified is identified, and there is no need to compare the fingerprint to be identified with other pre-stored fingerprints. In this way, the time of fingerprint identification is shortened without reducing the security of the electronic device, and the efficiency of fingerprint identification processing is improved. In addition, determining the posture state of the electronic device is equivalent to determining the application scenario of the electronic device. The target fingerprint list is obtained from the fingerprint list set through the posture state, and the target fingerprint list is used for fingerprint identification, which realizes the combination of the application scenario of the electronic device with the fingerprint identification process. Fingerprint identification is performed based on the determined application scenario, which is conducive to improving the precision of the application scenario and improving the user's experience of using the electronic device.

[0054] The following Figure 1 The specific implementation methods of each step in the illustrated embodiment are described as follows:

[0055] In a possible implementation, each fingerprint list in the fingerprint list set carries a list identifier, and the list identifier indicates that the multiple pre-stored fingerprints in the fingerprint list are from at least one hand and the name of the at least one hand. The above S120, obtaining a target fingerprint list from the fingerprint list set according to the posture state, includes the following schemes:

[0056] When the posture state is that the electronic device is held by a user, determining a holding hand of the user holding the electronic device;

[0057] The list identifier in the fingerprint list set is represented as the fingerprint list of the holding hand, and is determined as the target fingerprint list.

[0058] Usually, the hand that the user holds the electronic device can be the left hand, that is, the left hand holds the electronic device, or the right hand, that is, the right hand holds the electronic device, or both hands, that is, the left and right hands hold the electronic device at the same time. Based on the different ways of holding the electronic device by the user, multiple fingerprints recorded by the user (called pre-stored fingerprints) are classified in advance according to the holding method, and the fingerprints from the left hand fingers are added to a fingerprint list, the fingerprints from the right hand fingers are added to a fingerprint list, and the fingerprints from the left and right hand fingers are added to a fingerprint list. There are three fingerprint lists, such as Table 1, Table 2 and Table 3, and the multiple pre-stored fingerprints in each fingerprint list are sorted from high to low according to their respective usage frequencies. A list identifier is set for each list identifier, and the list identifier indicates that the multiple pre-stored fingerprints in the fingerprint list come from at least one hand and the name of at least one hand. For example, the list identifier in Table 1 indicates that the multiple pre-stored fingerprints in Table 1 come from the left hand. Figure 2 As shown, Figure 2 Schematic diagrams of Tables 1 to 3 are shown. In Table 1, multiple pre-stored fingerprints are sorted from high to low according to their respective usage frequencies: left hand thumb pre-stored fingerprint 1> left hand index finger pre-stored fingerprint 2> left hand middle finger pre-stored fingerprint 3> left hand ring finger pre-stored fingerprint 4> left hand little finger pre-stored fingerprint 5; in Table 2, multiple pre-stored fingerprints are sorted from high to low according to their respective usage frequencies: right hand thumb pre-stored fingerprint 1> right hand index finger pre-stored fingerprint 2> right hand middle finger pre-stored fingerprint 3> right hand ring finger pre-stored fingerprint 4> right hand little finger pre-stored fingerprint 5; in Table 3, multiple pre-stored fingerprints are sorted from high to low according to their respective usage frequencies: left hand thumb pre-stored fingerprint 1> right hand thumb pre-stored fingerprint 2> left hand index finger pre-stored fingerprint 3> right hand index finger pre-stored fingerprint 4> left hand middle finger pre-stored fingerprint 5> right hand middle finger pre-stored fingerprint 6> left hand ring finger pre-stored fingerprint 7> right hand ring finger pre-stored fingerprint 8> left hand little finger pre-stored fingerprint 9> right hand little finger pre-stored fingerprint 10.

[0059] After determining the holding hand of the user holding the electronic device, obtain the fingerprint list represented by the holding hand in the list identifier from the fingerprint list set to obtain the target fingerprint list. For example, if the holding hand is the right hand, the fingerprint to be identified is most likely from the right hand, and the list identifier in Table 2 indicates the right hand, then Table 2 is the target fingerprint list. When Table 2 is used as the target fingerprint list, its list identifier indicates the right hand, that is, the pre-stored fingerprints in Table 2 are all from the right hand, then the fingerprint to be identified is identified through the pre-stored fingerprints in Table 2, that is, the pre-stored fingerprints ranked higher in Table 2 will be compared with the fingerprint to be identified first, thereby shortening the time for fingerprint identification, which is conducive to improving the efficiency of fingerprint identification.

[0060] In a possible implementation, the determining of the holding hand of the user holding the electronic device includes the following scheme:

[0061] Detecting the center of gravity coordinates of the electronic device;

[0062] When the center-of-gravity coordinates are within the coordinate interval corresponding to the left deflection of the electronic device, the holding hand is indeed the left hand;

[0063] When the center-of-gravity coordinates are within the coordinate interval corresponding to the right deflection of the electronic device, the holding hand is indeed the right hand;

[0064] When the center-of-gravity coordinates are within a coordinate interval corresponding to when the electronic device is not deflected, it is confirmed that the holding hands are the left hand and the right hand.

[0065] The coordinate interval corresponding to the left deflection of the electronic device, the coordinate interval corresponding to the right deflection of the electronic device, and the coordinate interval corresponding to the right deflection of the electronic device are set in advance. The coordinates of the center of gravity of the electronic device are detected by the six-axis sensing module or the gravity detection module to determine whether the coordinates of the center of gravity are located in the coordinate interval corresponding to the left deflection of the electronic device, the coordinate interval corresponding to the right deflection of the electronic device, or the coordinate interval corresponding to the non-deflection of the electronic device; if they are located in the coordinate interval corresponding to the left deflection of the electronic device, it means that the holding hand is the left hand, if they are located in the coordinate interval corresponding to the right deflection of the electronic device, it means that the holding hand is the right hand, and if they are located in the coordinate interval corresponding to the non-deflection of the electronic device, it means that the holding hand is both hands, that is, the left hand and the right hand.

[0066] In a possible implementation, each fingerprint list in the fingerprint list set carries a list identifier, and the list identifier indicates that the multiple pre-stored fingerprints in the fingerprint list are from at least one hand and the name of the at least one hand. The above S120, obtaining a target fingerprint list from the fingerprint list set according to the posture state, includes the following schemes:

[0067] When the posture state is that the electronic device is placed on a stage, acquiring a first hand image of the user;

[0068] Recognize and provide the corresponding hand to which the finger of the fingerprint to be identified belongs according to the first hand image;

[0069] The list identifier in the fingerprint list set is represented as the fingerprint list of the corresponding hand, and is determined as the target fingerprint list.

[0070] When the user places the finger on the fingerprint recognition area of ​​the electronic device, the electronic device also collects the user's first hand image, which includes the hand that provides the fingerprint to be recognized. When it is determined that the posture state is that the electronic device is placed on the stage, the collected first hand image of the user is obtained, and the corresponding hand to which the finger that provides the fingerprint to be recognized belongs is identified through the first hand image. For example, the finger that actually inputs the fingerprint to be recognized is the thumb of the left hand, and the collected first hand image is an image of the left hand. After image recognition, the corresponding hand obtained is the left hand.

[0071] After identifying the corresponding hand to which the finger providing the fingerprint to be identified belongs through the first hand image, obtain the fingerprint list of the corresponding hand to which the finger providing the fingerprint to be identified belongs from the fingerprint list set, and obtain the target fingerprint list. For example, the corresponding hand to which the finger providing the fingerprint to be identified belongs is the left hand, and the fingerprint to be identified is most likely from the left hand. The list identifier in Table 1 indicates the left hand, and Table 1 is the target fingerprint list. When Table 1 is used as the target fingerprint list, its list identifier indicates the left hand, that is, the pre-stored fingerprints in Table 1 are all from the left hand, then the fingerprint to be identified is identified through the pre-stored fingerprints in Table 1, that is, the pre-stored fingerprints ranked higher in Table 1 will be compared with the fingerprint to be identified first, thereby shortening the time for fingerprint identification and helping to improve the efficiency of fingerprint identification.

[0072] In a possible implementation, the electronic device is a smart phone, and pressure detection modules are provided on the front, back, and sides of the smart phone. The above-mentioned determination of the posture state of the electronic device includes the following schemes:

[0073] When the pressure detection modules provided on at least three of the front surface, the back surface and the side surface detect a pressure signal, determining that the posture state is that the electronic device is held by a user;

[0074] When a pressure detection module provided on the front side and / or the back side detects a pressure signal, it is determined that the posture state is that the electronic device is placed on a loading platform.

[0075] In the case where the electronic device is a smartphone, the front, back and sides of the smartphone are all provided with pressure detection modules. Usually, when a user holds the smartphone with one hand, the hand will contact the back, left and right sides of the smartphone, that is, the hand exerts pressure on the contacted surfaces. Usually, when a user holds the smartphone with both hands, the hand will at least contact the back, front and two sides of the smartphone, that is, the hand exerts pressure on the contacted surfaces. Usually, when the smartphone is placed on a stage, the user either contacts the back of the smartphone with the stage surface, in which case the back of the smartphone will be subjected to pressure; or contacts the front of the smartphone with the stage surface, in which case the front of the smartphone will be subjected to pressure; or sometimes contacts the back of the smartphone with the stage surface, and there is something else pressing on the front of the smartphone, in which case the back of the smartphone will be subjected to pressure, and the front will also be subjected to pressure. Therefore, the posture state of the electronic device can be determined by the combination of pressure detection modules provided on the front, back and sides of the smartphone.

[0076] If the pressure detection module provided on at least three of the front, back and side surfaces of the smartphone detects a pressure signal, it indicates that the posture state of the electronic device is that the electronic device is held by the user. If the pressure detection module provided on the front and / or back of the smartphone detects a pressure signal, it indicates that the posture state of the electronic device is that the electronic device is placed on a loading table. In order to ensure the accuracy of determining that the posture state of the electronic device is that the electronic device is placed on the loading table, it is possible to continue to determine whether the position information of the electronic device has not changed within a preset time period, on the premise that it is determined that the pressure detection module provided on the front and / or back of the smartphone has detected a pressure signal. If there is no change, it is further determined that the posture state of the electronic device is that the electronic device is placed on the loading table.

[0077] In a possible implementation, the fingerprint recognition method further includes the following solution:

[0078] Constructing the fingerprint list set, wherein constructing the fingerprint list set comprises the following steps:

[0079] Collecting the user's fingerprint image and extracting the fingerprint feature template of the fingerprint image to obtain a pre-stored fingerprint;

[0080] When the fingerprint image is collected, an inquiry prompt about the source of the fingerprint is output; wherein the inquiry prompt is used to inquire the user to provide the first finger of the fingerprint image and the hand corresponding to the first finger;

[0081] Acquire a second hand image of the user, and identify a second finger providing the fingerprint image and a hand corresponding to the second finger according to the second hand image;

[0082] Upon receiving the answer information corresponding to the inquiry prompt, determining whether the first finger in the answer information is consistent with the second finger, and determining whether the hand corresponding to the first finger in the answer information is consistent with the hand corresponding to the second finger;

[0083] In the case where the first finger is consistent with the second finger and the hand corresponding to the first finger is consistent with the hand corresponding to the second finger, the first finger and the hand corresponding to the first finger are used as the fingerprint identification of the pre-stored fingerprint;

[0084] In the case that the first finger is inconsistent with the second finger and / or the hand corresponding to the first finger is inconsistent with the hand corresponding to the second finger, the second finger and the hand corresponding to the second finger are used as the fingerprint identification of the pre-stored fingerprint;

[0085] According to the usage frequency of the pre-stored fingerprints, the pre-stored fingerprints whose corresponding hand of the finger represented by the fingerprint identifier is the left hand are sorted from high to low to obtain a first fingerprint list;

[0086] According to the usage frequency of the pre-stored fingerprints, the pre-stored fingerprints whose corresponding hand of the finger represented by the fingerprint identifier is the right hand are sorted from high to low to obtain a second fingerprint list;

[0087] Merging the first fingerprint list and the second fingerprint list to obtain a third fingerprint list;

[0088] Using the left hand as the list identifier of the first fingerprint list, using the right hand as the list identifier of the second fingerprint list, and using the left hand and the right hand as the list identifiers of the third fingerprint list;

[0089] The fingerprint list set is constructed according to the first fingerprint list, the second fingerprint list and the third fingerprint list carrying list identifiers.

[0090] When the user enters the fingerprint, the user's fingerprint image is collected, and then the fingerprint feature template is extracted from the fingerprint image. The extracted fingerprint feature template is called a pre-stored fingerprint. At the same time, when the fingerprint image is collected, an inquiry prompt about the source of the fingerprint is output. The inquiry prompt can be a voice broadcast or a text display, which is used to inquire the user about the first finger and the corresponding hand of the first finger to provide the fingerprint image, that is, to inquire the user about which finger the first finger of the fingerprint image is and which hand the first finger belongs to. The user can explain which finger the fingerprint image is and which hand the finger belongs to based on the inquiry prompt. The purpose of the user inquiry is to set a fingerprint identifier for the pre-stored fingerprint to indicate the source finger and source hand of the pre-stored fingerprint. Considering that the user may give an incorrect answer, that is, the finger and hand answered do not correspond to the actual one, the user's second hand image is collected during the user's fingerprint entry, and the second finger and the corresponding hand of the second finger providing the fingerprint image are identified through the second hand image.

[0091] After the user makes an answer based on the inquiry prompt, the user receives the answer information corresponding to the inquiry prompt, and then determines whether the first finger in the answer information is consistent with the second finger, and determines whether the hand corresponding to the first finger in the answer information is consistent with the hand corresponding to the second finger; if the first finger in the answer information is consistent with the second finger identified by the second hand image, and the hand corresponding to the first finger in the answer information is consistent with the hand corresponding to the second finger identified by the second hand image, it means that the user's answer is correct, and the first finger and the hand corresponding to the first finger are used as the fingerprint identifier of the pre-stored fingerprint, or the second finger and the hand corresponding to the second finger are used as the fingerprint identifier of the pre-stored fingerprint. If the first finger in the answer information is inconsistent with the second finger identified by the second hand image, or the hand corresponding to the first finger in the answer information is inconsistent with the hand corresponding to the second finger identified by the second hand image, or the first finger in the answer information is inconsistent with the second finger identified by the second hand image, and the hand corresponding to the first finger in the answer information is inconsistent with the hand corresponding to the second finger identified by the second hand image, it means that the user's answer is inaccurate, and the second finger and the hand corresponding to the second finger are used as the fingerprint identifier of the pre-stored fingerprint.

[0092] When a user enters multiple fingerprints, multiple pre-stored fingerprints can be obtained. Through the above process, a corresponding fingerprint identifier is set for each pre-stored fingerprint. Then, based on the usage frequency of each fingerprint identifier, the pre-stored fingerprints of the left hand corresponding to the finger represented by the fingerprint identifier are sorted from high to low according to the usage frequency of the pre-stored fingerprints to obtain a first fingerprint list. That is, the pre-stored fingerprints provided by the left hand are sorted from high to low according to the usage frequency to obtain the first fingerprint list, such as Figure 2Similarly, according to the usage frequency of the pre-stored fingerprints, the pre-stored fingerprints corresponding to the right hand represented by the fingerprint identifier are sorted from high to low to obtain a second fingerprint list, that is, according to the usage frequency, the pre-stored fingerprints provided by the right hand are sorted from high to low to obtain a second fingerprint list, such as Figure 2 Table 2 in the figure. After obtaining the first fingerprint list and the second fingerprint list, the first fingerprint list and the second fingerprint list are merged to obtain a third fingerprint list. After obtaining the third fingerprint list, all pre-stored fingerprints in the third fingerprint list are also sorted from high to low according to their respective usage frequencies.

[0093] After obtaining the first fingerprint list, the second fingerprint list and the third fingerprint list, the left hand is used as the list identifier of the first fingerprint list, the right hand is used as the list identifier of the second fingerprint list, and the left hand and the right hand are used as the list identifiers of the third fingerprint list. The above-mentioned fingerprint list set is constructed by the first fingerprint list, the second fingerprint list and the third fingerprint list carrying the list identifiers, that is, the fingerprint list set includes the first fingerprint list, the second fingerprint list and the third fingerprint list, and these three fingerprint lists all carry the list identifiers.

[0094] It is worth noting that when the multiple fingerprints entered by the user are entered for the first time, that is, the usage frequencies of the multiple pre-stored fingerprints obtained are the same, which is not enough to indicate which pre-stored fingerprint the user prefers to use. In this case, all pre-stored fingerprints are stored according to the source hands corresponding to each pre-stored fingerprint. For example, the pre-stored fingerprints from the left hand are stored in one list, and the pre-stored fingerprints from the right hand are stored in another list. This is convenient for subsequent service upgrades of the electronic device. When the pre-stored fingerprints in each list have usage records, the usage frequencies of the pre-stored fingerprints in the list will be updated, and the pre-stored fingerprints will be sorted according to the usage frequencies.

[0095] In a possible implementation, after the target fingerprint list is used to identify the fingerprint to be identified in S130, the fingerprint identification method further includes the following solutions:

[0096] In the case that the fingerprint to be identified passes the identification, the usage frequency of the pre-stored fingerprint in the target fingerprint list which is the same as the fingerprint to be identified is updated, and the order of the multiple pre-stored fingerprints in the target fingerprint list is updated.

[0097] If the target fingerprint category is used to identify the fingerprint to be identified, the usage frequency of the pre-stored fingerprint in the target fingerprint list that is the same as the fingerprint to be identified is updated through the fingerprint to be identified. For ease of understanding, the pre-stored fingerprint in the target fingerprint list that is the same as the fingerprint to be identified is called the target fingerprint. If the fingerprint to be identified is identified, the usage frequency of the target fingerprint is increased by 1, thereby realizing the update of the usage frequency of the target fingerprint. After the update of the usage frequency of the target fingerprint, the order of multiple pre-stored fingerprints in the target fingerprint list is updated according to the usage frequency. For example, the target fingerprint list is Table 1, and the order of the pre-stored fingerprints in Table 1 is: left thumb pre-stored fingerprint 1> left index finger pre-stored fingerprint 2> left middle finger pre-stored fingerprint 3> left ring finger pre-stored fingerprint 4> left pinky finger pre-stored fingerprint 5. Assuming that the target fingerprint is left index finger pre-stored fingerprint 2, after the usage frequency of left index finger pre-stored fingerprint 2 is increased by 1, the usage frequency of left index finger pre-stored fingerprint 2 is higher than the usage frequency of left thumb pre-stored fingerprint 1, then after the order is updated, the new order of the pre-stored fingerprints in Table 1 is: left index finger pre-stored fingerprint 2> left thumb pre-stored fingerprint 1> left middle finger pre-stored fingerprint 3> left ring finger pre-stored fingerprint 4> left pinky finger pre-stored fingerprint 5. Correspondingly, the order of other fingerprint lists including the target fingerprint will also be updated.

[0098] By updating the order of pre-stored fingerprints in the fingerprint list, it is possible to flexibly follow up on changes in user fingerprint preferences, which is beneficial to improving the accuracy and flexibility of the fingerprint recognition function.

[0099] The following is another embodiment of a fingerprint recognition method provided in the embodiments of the present application.

[0100] About fingerprint entry:

[0101] 1. The user enters multiple fingerprints, and the fingerprint sensor (denoted as sensor) collects fingerprint images (denoted as image0) respectively.

[0102] 2. Sensor passes the collected image0 to the fingerprint recognition module (denoted as Module) in the system one by one.

[0103] 3. The module asks the user which finger the currently entered fingerprint corresponds to and which hand the finger belongs to. At the same time, it uses image analysis and other technologies to comprehensively judge the corresponding finger of the currently received fingerprint image and which hand the finger belongs to, so as to accurately determine which finger the currently entered fingerprint corresponds to and which hand the finger belongs to.

[0104] 4. The module extracts the fingerprint feature template (denoted as feature0) for the received fingerprint image and generates a corresponding index value (denoted as fingerID) for each feature0.

[0105] 5. The module sorts the fingerprint IDs corresponding to the fingerprints from the same hand from high to low according to the frequency of use of the fingerprints to form a fingerprint template index list (referred to as fingerList), and sets a list identifier for fingerList. Since the user can hold the electronic device with the left hand, the right hand, or both hands, the formed fingerList includes three, that is, the list identifiers of these three fingerLists respectively indicate that the fingerprint source hands are the left hand, the right hand, and both hands. For example, the list identifier of fingerList1 indicates the left hand, that is, the fingerprint corresponding to the fingerID in fingerList1 comes from the left hand; the list identifier of fingerList2 indicates the right hand, that is, the fingerprint corresponding to the fingerID in fingerList2 comes from the right hand; the list identifier of fingerList3 indicates both hands, that is, the fingerprint corresponding to the fingerID in fingerList3 comes from the left hand and the right hand.

[0106] 6. Module stores all the fingerLists formed.

[0107] 7. For the fingerprints subsequently entered by the user, the fingerprint feature template corresponding to the newly entered fingerprint and the fingerID of the newly entered fingerprint will be generated according to steps 1-3, the fingerID of the newly entered fingerprint will be added to the corresponding fingerList, and the usage frequency corresponding to the fingerID in the fingerList and the order of the fingerID will be updated.

[0108] About fingerprint recognition:

[0109] 8. The user enters the fingerprint to be identified, and the sensor records the current fingerprint image of the fingerprint to be identified (recorded as image1) and passes it to the module.

[0110] 9. The module processes image1 and extracts the fingerprint feature template (denoted as feature1).

[0111] 10. After collecting the fingerprint to be identified, the module analyzes the user's hand holding the electronic device.

[0112] 11. The module obtains the fingerList with the list identifier as the holding hand from the stored multiple fingerLists, which is called the target fingerList.

[0113] 12. The module traverses the target fingerList according to the order of fingerID in the target fingerList from high to low, and compares the feature1 to be identified with the feature0 corresponding to each fingerID in the fingerList one by one; if feature1 successfully matches a feature0, the module feedbacks that the fingerprint recognition is passed; if feature1 does not successfully match any feature0, the module feedbacks that the fingerprint recognition is not passed.

[0114] About list updates:

[0115] 13. When the fingerprint recognition is passed, the usage frequency of feature0 that successfully matches feature1 is increased by 1, the sorting of all fingerIDs in the target fingerList is updated, and the fingerList including the fingerID of feature0 that successfully matches feature1 is also updated.

[0116] The embodiment of the present application analyzes the holding hand of the user holding the electronic device and uses the fingerList whose list is identified as the holding hand to identify the fingerprint to be identified, so as to shorten the time of fingerprint identification and improve the efficiency of fingerprint identification processing.

[0117] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0118] Figure 3 FIG. 1 shows a schematic diagram of the structure of a fingerprint recognition device provided by an embodiment of the present application. Figure 3 As shown, the fingerprint recognition device 300 includes:

[0119] The state determination module 310 is used to determine the posture state of the electronic device when the fingerprint to be identified is obtained; wherein the posture state includes the electronic device being held by the user and the electronic device being placed on the stage;

[0120] A list determination module 320, configured to obtain a target fingerprint list from a fingerprint list set according to the posture state; wherein the fingerprint list set includes a plurality of fingerprint lists, each fingerprint list includes a plurality of pre-stored fingerprints, and the plurality of pre-stored fingerprints are sorted from high to low according to their respective usage frequencies;

[0121] The fingerprint identification module 330 is used to identify the fingerprint to be identified by using the target fingerprint list.

[0122] In a possible implementation, each fingerprint list in the fingerprint list set carries a list identifier, and the list identifier indicates that the multiple pre-stored fingerprints in the fingerprint list are from at least one hand and the name of the at least one hand; the list determination module 320 includes:

[0123] The first determination unit is used to determine the holding hand of the user holding the electronic device when the posture state is that the electronic device is held by the user; and to indicate the list identifier in the fingerprint list set as the fingerprint list of the holding hand, and determine it as the target fingerprint list.

[0124] In a possible implementation, the first determination unit is specifically used to detect the center of gravity coordinates of the electronic device in determining the holding hand of the user holding the electronic device; when the center of gravity coordinates are within the coordinate interval corresponding to the left deflection of the electronic device, the holding hand is confirmed to be the left hand; when the center of gravity coordinates are within the coordinate interval corresponding to the right deflection of the electronic device, the holding hand is confirmed to be the right hand; when the center of gravity coordinates are within the coordinate interval corresponding to the non-deflection of the electronic device, the holding hand is confirmed to be the left hand and the right hand.

[0125] In a possible implementation, each fingerprint list in the fingerprint list set carries a list identifier, and the list identifier indicates that the multiple pre-stored fingerprints in the fingerprint list are from at least one hand and the name of the at least one hand; the list determination module 320 further includes:

[0126] The second determination unit is used to obtain a first hand image of the user when the posture state is that the electronic device is placed on a loading table; provide a corresponding hand to which the finger of the fingerprint to be identified belongs based on the first hand image recognition; represent the list identifier in the fingerprint list set as a fingerprint list of the corresponding hand, and determine it as the target fingerprint list.

[0127] In one possible implementation, the electronic device is a smart phone, and pressure detection modules are provided on the front, back and sides of the smart phone. The state determination module 310 is specifically used to: when the pressure detection modules provided on at least three of the front, back and sides detect a pressure signal, determine that the posture state is that the electronic device is held by a user; when the pressure detection modules provided on the front and / or back detect a pressure signal, determine that the posture state is that the electronic device is placed on a stage.

[0128] In a possible implementation, the fingerprint recognition device 300 further includes:

[0129] A set building unit, used for building the fingerprint list set;

[0130] The set construction unit is specifically used for: collecting the fingerprint image of the user, and extracting the fingerprint feature template of the fingerprint image to obtain the pre-stored fingerprint; when the fingerprint image is collected, outputting an inquiry prompt about the source of the fingerprint; wherein the inquiry prompt is used to inquire the user to provide the first finger of the fingerprint image and the corresponding hand of the first finger; obtaining the second hand image of the user, and identifying the second finger and the corresponding hand of the second finger that provide the fingerprint image according to the second hand image; when receiving the answer information corresponding to the inquiry prompt, judging whether the first finger in the answer information is consistent with the second finger, and judging whether the corresponding hand of the first finger in the answer information is consistent with the corresponding hand of the second finger; when the first finger is consistent with the second finger and the corresponding hand of the first finger is consistent with the corresponding hand of the second finger, using the first finger and the corresponding hand of the first finger as the fingerprint identifier of the pre-stored fingerprint; When the first finger is inconsistent with the second finger and / or the hand corresponding to the first finger is inconsistent with the hand corresponding to the second finger, the second finger and the hand corresponding to the second finger are used as fingerprint identifiers of the pre-stored fingerprints; according to the use frequency of the pre-stored fingerprints, the pre-stored fingerprints whose corresponding hand of the finger represented by the fingerprint identifier is the left hand are sorted from high to low to obtain a first fingerprint list; according to the use frequency of the pre-stored fingerprints, the pre-stored fingerprints whose corresponding hand of the finger represented by the fingerprint identifier is the right hand are sorted from high to low to obtain a second fingerprint list; the first fingerprint list and the second fingerprint list are merged to obtain a third fingerprint list; the left hand is used as the list identifier of the first fingerprint list, the right hand is used as the list identifier of the second fingerprint list, and the left hand and the right hand are used as the list identifiers of the third fingerprint list; the fingerprint list set is constructed according to the first fingerprint list, the second fingerprint list and the third fingerprint list carrying the list identifiers.

[0131] In a possible implementation, the fingerprint recognition device 300 further includes:

[0132] The list updating unit is used to update the usage frequency of the pre-stored fingerprints in the target fingerprint list that are the same as the fingerprint to be identified, and to update the order of the multiple pre-stored fingerprints in the target fingerprint list if the fingerprint to be identified passes the identification.

[0133] It should be noted that the fingerprint recognition device provided in the above embodiment only uses the division of the above functional modules as an example when executing the fingerprint recognition method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the fingerprint recognition device provided in the above embodiment belongs to the same concept as the fingerprint recognition method embodiment. Therefore, for details not disclosed in the device embodiment of the present application, please refer to the above-mentioned fingerprint recognition method embodiment of the present application, which will not be repeated here.

[0134] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0135] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown.

[0136] For example, Figure 4 As shown, the electronic device 400 includes: a memory 401 and a processor 402, wherein the memory 401 stores an executable program code 4011, and the processor 402 is used to call and execute the executable program code 4011 to perform a fingerprint recognition method.

[0137] In this embodiment, the electronic device can be divided into functional modules according to the above method example. For example, each functional module can be corresponded to, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0138] In the case of dividing each functional module according to each function, the electronic device may include: a state determination module, a list determination module, a fingerprint recognition module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.

[0139] The electronic device provided in this embodiment is used to execute the above-mentioned fingerprint recognition method, and thus can achieve the same effect as the above-mentioned implementation method.

[0140] In the case of an integrated unit, the electronic device may include a processing module and a storage module. The processing module may be used to control and manage the actions of the electronic device. The storage module may be used to support the electronic device in executing mutual program codes and data.

[0141] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits disclosed in the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.

[0142] This embodiment further provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a fingerprint recognition method in the above-mentioned embodiment.

[0143] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement a fingerprint recognition method in the above-mentioned embodiment.

[0144] In addition, the electronic device provided in the embodiments of the present application may specifically be a chip, a component or a module, and the electronic device may include a connected processor and a memory; wherein the memory is used to store instructions, and when the electronic device is running, the processor may call and execute instructions so that the chip executes a fingerprint recognition method in the above-mentioned embodiments.

[0145] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding fingerprint recognition method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding fingerprint recognition method provided above, and will not be repeated here.

[0146] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0147] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0148] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A fingerprint recognition method, characterized in that: The fingerprint recognition method comprises: When the fingerprint to be identified is obtained, determining the posture state of the electronic device; wherein the posture state includes the electronic device being held by the user and the electronic device being placed on a stage; Acquire a target fingerprint list from a fingerprint list set according to the posture state; wherein the fingerprint list set includes a plurality of fingerprint lists, each fingerprint list includes a plurality of pre-stored fingerprints, and the plurality of pre-stored fingerprints are sorted from high to low according to their respective usage frequencies; The target fingerprint list is used to identify the fingerprint to be identified.

2. The fingerprint recognition method according to claim 1, characterized in that: Each fingerprint list in the fingerprint list set carries a list identifier, and the list identifier indicates that the multiple pre-stored fingerprints in the fingerprint list are from at least one hand and the name of the at least one hand; The acquiring the target fingerprint list from the fingerprint list set according to the posture state comprises: When the posture state is that the electronic device is held by a user, determining a holding hand of the user holding the electronic device; The list identifier in the fingerprint list set is represented as the fingerprint list of the holding hand, and is determined as the target fingerprint list.

3. The fingerprint recognition method according to claim 2, characterized in that: The determining that the user holds the electronic device with a hand that holds the electronic device comprises: Detecting the center of gravity coordinates of the electronic device; When the center-of-gravity coordinates are within the coordinate interval corresponding to the left deflection of the electronic device, it is confirmed that the holding hand is a left hand; When the center-of-gravity coordinates are within the coordinate interval corresponding to the right deflection of the electronic device, it is confirmed that the holding hand is the right hand; When the center-of-gravity coordinates are within a coordinate interval corresponding to when the electronic device is not deflected, it is confirmed that the holding hands are the left hand and the right hand.

4. The fingerprint recognition method according to claim 1, characterized in that: Each fingerprint list in the fingerprint list set carries a list identifier, and the list identifier indicates that the multiple pre-stored fingerprints in the fingerprint list are from at least one hand and the name of the at least one hand; The acquiring the target fingerprint list from the fingerprint list set according to the posture state comprises: When the posture state is that the electronic device is placed on a stage, acquiring a first hand image of the user; Recognize and provide the corresponding hand to which the finger of the fingerprint to be identified belongs according to the first hand image; The list identifier in the fingerprint list set is represented as the fingerprint list of the corresponding hand, and is determined as the target fingerprint list.

5. The fingerprint recognition method according to claim 1, characterized in that: The electronic device is a smart phone, and pressure detection modules are arranged on the front, back and sides of the smart phone; Determining the posture state of the electronic device includes: When the pressure detection modules provided on at least three of the front surface, the back surface and the side surface detect a pressure signal, determining that the posture state is that the electronic device is held by a user; When a pressure detection module provided on the front side and / or the back side detects a pressure signal, it is determined that the posture state is that the electronic device is placed on a loading platform.

6. The fingerprint recognition method according to any one of claims 1 to 5, characterized in that: The fingerprint recognition method further comprises: Constructing the fingerprint list set; The constructing the fingerprint list set comprises: Collecting the user's fingerprint image and extracting the fingerprint feature template of the fingerprint image to obtain a pre-stored fingerprint; When the fingerprint image is collected, an inquiry prompt about the source of the fingerprint is output; wherein the inquiry prompt is used to inquire the user to provide the first finger of the fingerprint image and the hand corresponding to the first finger; Acquire a second hand image of the user, and identify a second finger providing the fingerprint image and a hand corresponding to the second finger according to the second hand image; Upon receiving the answer information corresponding to the inquiry prompt, determining whether the first finger in the answer information is consistent with the second finger, and determining whether the hand corresponding to the first finger in the answer information is consistent with the hand corresponding to the second finger; In the case where the first finger is consistent with the second finger and the hand corresponding to the first finger is consistent with the hand corresponding to the second finger, the first finger and the hand corresponding to the first finger are used as the fingerprint identification of the pre-stored fingerprint; In the case that the first finger is inconsistent with the second finger and / or the hand corresponding to the first finger is inconsistent with the hand corresponding to the second finger, the second finger and the hand corresponding to the second finger are used as the fingerprint identification of the pre-stored fingerprint; According to the usage frequency of the pre-stored fingerprints, the pre-stored fingerprints whose corresponding hand of the finger represented by the fingerprint identifier is the left hand are sorted from high to low to obtain a first fingerprint list; According to the usage frequency of the pre-stored fingerprints, the pre-stored fingerprints whose corresponding hand of the finger represented by the fingerprint identifier is the right hand are sorted from high to low to obtain a second fingerprint list; Merging the first fingerprint list and the second fingerprint list to obtain a third fingerprint list; Using the left hand as the list identifier of the first fingerprint list, using the right hand as the list identifier of the second fingerprint list, and using the left hand and the right hand as the list identifiers of the third fingerprint list; The fingerprint list set is constructed according to the first fingerprint list, the second fingerprint list and the third fingerprint list carrying list identifiers.

7. The fingerprint recognition method according to claim 6, characterized in that: After the target fingerprint list is used to identify the fingerprint to be identified, the fingerprint identification method further includes: In the case that the fingerprint to be identified passes the identification, the usage frequency of the pre-stored fingerprint in the target fingerprint list which is the same as the fingerprint to be identified is updated, and the order of the multiple pre-stored fingerprints in the target fingerprint list is updated.

8. A fingerprint recognition device, characterized in that: The fingerprint recognition device comprises: A state determination module, used to determine the posture state of the electronic device when the fingerprint to be identified is obtained; wherein the posture state includes the electronic device being held by the user and the electronic device being placed on the stage; A list determination module, used to obtain a target fingerprint list from a fingerprint list set according to the posture state; wherein the fingerprint list set includes a plurality of fingerprint lists, each fingerprint list includes a plurality of pre-stored fingerprints, and the plurality of pre-stored fingerprints are sorted from high to low according to their respective usage frequencies; The fingerprint recognition module is used to recognize the fingerprint to be recognized by using the target fingerprint list.

9. An electronic device, characterized in that: The electronic device comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory, so that the electronic device executes the fingerprint recognition method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the fingerprint recognition method according to any one of claims 1 to 7 is implemented.