WO2017214793A1 - Fingerprint template generation method and apparatus - Google Patents

Fingerprint template generation method and apparatus Download PDF

Info

Publication number
WO2017214793A1
WO2017214793A1 PCT/CN2016/085546 CN2016085546W WO2017214793A1 WO 2017214793 A1 WO2017214793 A1 WO 2017214793A1 CN 2016085546 W CN2016085546 W CN 2016085546W WO 2017214793 A1 WO2017214793 A1 WO 2017214793A1
Authority
WO
WIPO (PCT)
Prior art keywords
fingerprint
fingerprint image
candidate
image
threshold
Prior art date
Application number
PCT/CN2016/085546
Other languages
French (fr)
Chinese (zh)
Inventor
纪传舜
杜慧
葛琦
Original Assignee
北京小米移动软件有限公司
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 北京小米移动软件有限公司 filed Critical 北京小米移动软件有限公司
Priority to PCT/CN2016/085546 priority Critical patent/WO2017214793A1/en
Priority to CN201680000734.7A priority patent/CN106104575B/en
Publication of WO2017214793A1 publication Critical patent/WO2017214793A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/13Sensors therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/1335Combining adjacent partial images (e.g. slices) to create a composite input or reference pattern; Tracking a sweeping finger movement

Definitions

  • the present disclosure relates to the field of fingerprint recognition, and in particular, to a fingerprint template generation method and apparatus.
  • fingerprint recognition is widely used in mobile terminals such as smart phones and tablet computers to ensure the security of personal information of users.
  • Fingerprint recognition usually includes a fingerprint entry phase and a fingerprint recognition phase.
  • the user enters the fingerprint on the fingerprint recognition sensor according to the prompt of the mobile terminal, and the mobile terminal splices the fingerprint images collected by the fingerprint recognition sensor to generate corresponding fingerprints.
  • the fingerprint template is used by the mobile terminal to detect whether the fingerprint image collected by the fingerprint recognition sensor matches the fingerprint template, and if the fingerprint image matches the fingerprint template, the fingerprint identification is determined.
  • the generated fingerprint template is only applicable to a part of the fingerprint area, which affects the success rate of fingerprint recognition.
  • the present disclosure provides a fingerprint template generation method and apparatus.
  • the technical solution is as follows:
  • a method for generating a fingerprint template comprising:
  • the ith fingerprint image collected by the fingerprint recognition sensor is added to the candidate fingerprint image set corresponding to the target fingerprint, i ⁇ 2, and i is a natural number;
  • a fingerprint template is generated according to each fingerprint image in the candidate fingerprint image set.
  • the package include:
  • the i-th fingerprint image is deleted from the candidate fingerprint image set.
  • acquiring image quality of each of the i-th fingerprint image and the j-th fingerprint image includes:
  • the image quality is determined according to the feature point density, and the feature point density is proportional to the image quality.
  • detecting whether the amount of information included in the candidate fingerprint image set reaches a threshold includes:
  • calculating a similarity between the i-th fingerprint image and the j-th fingerprint image in the candidate fingerprint image set including:
  • the similarity is weighted according to the ratio of the area of the fingerprint image, and/or the ratio of the number of fingerprint feature points, and/or the degree of matching of the fingerprint feature point positions.
  • the method further includes:
  • the first prompt information is displayed, where the first prompt information is used to indicate that the i-th fingerprint image and the j-th fingerprint image correspond to the same fingerprint region;
  • the second prompt information is displayed, and the second prompt information is used to indicate that the jth fingerprint image has been replaced with the ith fingerprint image.
  • the method further includes:
  • the third prompt information is displayed, and the third prompt information is used to indicate that the fingerprint entry fails.
  • a fingerprint template generating apparatus comprising:
  • the adding module is configured to add the ith fingerprint image collected by the fingerprint recognition sensor to the candidate fingerprint image set corresponding to the target fingerprint during the input process of the target fingerprint, i ⁇ 2, and i is a natural number;
  • a calculation module configured to calculate a similarity between the i-th fingerprint image and the j-th fingerprint image in the candidate fingerprint image set, j ⁇ i, and j is a natural number
  • the deleting module is configured to delete the i-th fingerprint image or the j-th fingerprint image from the candidate fingerprint image set if the similarity between the i-th fingerprint image and the j-th fingerprint image is greater than a similarity threshold;
  • a detecting module configured to detect whether the amount of information included in the candidate fingerprint image set reaches a threshold
  • the generating module is configured to generate a fingerprint template according to each fingerprint image in the candidate fingerprint image set when the amount of information included in the candidate fingerprint image set reaches a threshold.
  • deleting the module includes:
  • the first deleting submodule is configured to delete the jth fingerprint image from the candidate fingerprint image set if the image quality of the i th fingerprint image is higher than the image quality of the j th fingerprint image;
  • the second deletion sub-module is configured to delete the i-th fingerprint image from the candidate fingerprint image set if the image quality of the i-th fingerprint image is lower than the image quality of the j-th fingerprint image.
  • obtaining a submodule including:
  • An area obtaining submodule configured to acquire a fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image
  • a quantity acquisition submodule configured to acquire a number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image
  • the density calculation sub-module is configured to calculate the i-th based on the fingerprint image area and the number of fingerprint feature points a feature point density of each of the fingerprint image and the j-th fingerprint image;
  • the determining sub-module is configured to determine the image quality according to the feature point density, and the feature point density is proportional to the image quality.
  • the detecting module comprises:
  • the first detecting submodule is configured to detect whether the number of fingerprint images in the candidate fingerprint image set reaches a first threshold; if the number of fingerprint images in the candidate fingerprint image set reaches a first threshold, determining that the amount of information included in the candidate fingerprint image set reaches a threshold ;
  • a second detecting submodule configured to detect whether a sum of fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold; if the sum of fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold, determining The amount of information contained in the candidate fingerprint image set reaches a threshold;
  • the third detecting sub-module is configured to detect whether the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold; if the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold, determining the candidate fingerprint The amount of information contained in the image set reaches the threshold.
  • the computing module includes:
  • a first acquiring submodule configured to acquire a fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image
  • a second acquiring submodule configured to acquire a number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image
  • a third acquiring submodule configured to acquire a fingerprint feature point position of each of the i-th fingerprint image and the j-th fingerprint image
  • the calculation sub-module is configured to calculate the similarity by weight according to the ratio of the area of the fingerprint image, and/or the ratio of the number of fingerprint feature points, and/or the matching degree of the fingerprint feature point position.
  • the device further includes:
  • the first display module is configured to display the first prompt information when the ith fingerprint image is deleted from the candidate fingerprint image set, where the first prompt information is used to indicate that the ith fingerprint image and the jth fingerprint image correspond to the same fingerprint region ;
  • the second display module is configured to display the second prompt information when the j-th fingerprint image is deleted from the candidate fingerprint image set, and the second prompt information is used to indicate that the j-th fingerprint image has been replaced with the ith fingerprint image.
  • the device further includes:
  • the third display module is configured to display the third prompt information when the number of the deleted fingerprint images reaches the fourth threshold, and the third prompt information is used to indicate that the fingerprint entry fails.
  • a fingerprint template generating apparatus comprising:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the ith fingerprint image collected by the fingerprint recognition sensor is added to the candidate fingerprint image set corresponding to the target fingerprint, i ⁇ 2, and i is a natural number;
  • a fingerprint template is generated according to each fingerprint image in the candidate fingerprint image set.
  • Fingerprint template By calculating the similarity between the currently acquired fingerprint image and the previously acquired fingerprint image in the target fingerprint entry phase, and retaining one of the fingerprint images for generating when the similarity between the two fingerprint images is greater than the similarity threshold Fingerprint template; solves the problem of repeatedly generating the fingerprint image of the same area by multiple entry methods to generate a fingerprint template, resulting in the generated fingerprint template only applicable to part of the fingerprint area, affecting the success rate of fingerprint recognition; reaching the fingerprint of the candidate fingerprint image set
  • the fingerprint regions corresponding to the images are different, so that the generated fingerprint template can cover the entire fingerprint region of the target fingerprint, thereby ensuring the quality of the fingerprint template, thereby improving the success rate of fingerprint recognition.
  • FIG. 1 is a flowchart of a method for generating a fingerprint template provided by an exemplary embodiment
  • FIG. 2A is a flowchart of a method for generating a fingerprint template provided by another exemplary embodiment
  • FIG. 2B is a flowchart of a fingerprint image similarity calculation process involved in the fingerprint template generation method shown in FIG. 2A;
  • FIG. 2C is a flowchart of an image quality determining process involved in the fingerprint template generating method shown in FIG. 2A;
  • 2D is a flowchart of a method for generating a fingerprint template provided by still another exemplary embodiment
  • FIG. 2E and 2F are schematic diagrams of interfaces involved in the fingerprint template generation method shown in FIG. 2D;
  • 2G is a flowchart of a method for generating a fingerprint template provided by still another exemplary embodiment
  • FIG. 2H is a schematic diagram of an interface involved in the method for generating a fingerprint template shown in FIG. 2G;
  • FIG. 3 is a schematic structural diagram of a fingerprint template generating apparatus according to an exemplary embodiment
  • FIG. 4 is a schematic structural diagram of a fingerprint template generating apparatus according to another exemplary embodiment
  • FIG. 5 is a block diagram of a mobile terminal, according to an exemplary embodiment.
  • a fingerprint template generating method is used for an electronic device configured with a fingerprint recognition sensor
  • the electronic device may be a smart phone, a tablet computer, an e-book reader or a portable personal computer or the like.
  • the fingerprint recognition sensor may be a push-type fingerprint recognition sensor (a finger is pressed on the sensor to acquire a fingerprint image) or a sliding fingerprint recognition sensor (a finger is swiped over the sensor to acquire a fingerprint image) or the like, which is not limited by the present disclosure.
  • the fingerprint recognition sensor in the electronic device is also electrically connected to the processor and the memory.
  • the fingerprint entry stage the fingerprint image collected by the fingerprint recognition sensor is stored in the memory, and the processor generates a corresponding fingerprint template according to the fingerprint image, and stores the fingerprint in the memory; in the fingerprint identification stage, The processor obtains the fingerprint image collected by the fingerprint recognition sensor, matches the fingerprint image with the fingerprint template stored in the memory, and determines to pass the fingerprint verification when the fingerprint image matches the fingerprint template.
  • the following embodiments are described by using the fingerprint template generation method for a mobile terminal as an example, and the present disclosure is not limited thereto.
  • FIG. 1 is a flow chart showing a method of generating a fingerprint template provided by an exemplary embodiment.
  • the fingerprint template generation method is applied to an electronic device configured with a fingerprint recognition sensor for illustration.
  • the method for generating a fingerprint template includes:
  • step 101 in the process of inputting the target fingerprint, the ith fingerprint image collected by the fingerprint recognition sensor is added to the candidate fingerprint image set corresponding to the target fingerprint, i ⁇ 2, and i is a natural number.
  • the mobile terminal adds the first fingerprint image collected by the fingerprint recognition sensor directly to the candidate fingerprint image set corresponding to the target fingerprint, and does not need to perform similarity calculation (the candidate fingerprint image set only Include a fingerprint image); for the ith fingerprint image acquired by the fingerprint recognition sensor, the mobile terminal adds the ith fingerprint image to the candidate fingerprint image set, and calculates the ith fingerprint image and the candidate fingerprint image by step 103 Concentrate the similarity of each fingerprint image that has been stored.
  • step 103 the similarity between the i-th fingerprint image and the j-th fingerprint image in the candidate fingerprint image set is calculated, j ⁇ i, and j is a natural number.
  • the mobile terminal may calculate the similarity between the two fingerprint images according to the shape, the area, the number of fingerprint feature points, and the distribution position of the fingerprint image.
  • step 105 if the similarity between the i-th fingerprint image and the j-th fingerprint image is greater than the similarity threshold, the i-th fingerprint image or the j-th fingerprint image is deleted from the candidate fingerprint image set.
  • the mobile terminal determines that the two fingerprint images correspond to the same fingerprint region of the target fingerprint, and the mobile terminal selectively deletes one fingerprint image, thereby ensuring that each fingerprint image of the candidate fingerprint image is concentrated. Corresponds to different fingerprint areas.
  • the mobile terminal determines that the i-th fingerprint image does not belong to the target fingerprint. And deleting the i-th fingerprint image from the candidate fingerprint image set.
  • the lowest similarity threshold for example, 20%
  • step 107 it is detected whether the amount of information contained in the candidate fingerprint image set reaches a threshold.
  • the amount of information included in the candidate fingerprint image set reaches a threshold value, that is, the number of fingerprint images in the candidate fingerprint image set reaches a first threshold, and/or the fingerprint feature points of each fingerprint image in the candidate fingerprint image set The sum reaches a second threshold, and/or the sum of the fingerprint areas of the fingerprint images in the candidate fingerprint image set reaches a third threshold.
  • step 109 when the amount of information included in the candidate fingerprint image set reaches a threshold, a fingerprint template is generated according to each fingerprint image in the candidate fingerprint image set.
  • the mobile terminal In order to ensure the quality of the generated fingerprint template, when the amount of information included in the candidate fingerprint image set reaches a threshold, the mobile terminal generates a corresponding fingerprint template according to each fingerprint image in the candidate fingerprint image set; when the information amount of the candidate fingerprint image set does not exist When the threshold is reached, the mobile terminal instructs the fingerprint recognition sensor to continue collecting fingerprint images until the amount of information reaches a threshold.
  • the fingerprint template generation method calculates the similarity between the currently acquired fingerprint image and the previously acquired fingerprint image in the target fingerprint input stage, and is similar in the two fingerprint images.
  • the degree is greater than the similarity threshold, one of the fingerprint images is reserved for generating the fingerprint template; the fingerprint template generated by repeatedly recording the same area is generated by the multiple entry method, and the generated fingerprint template is only applicable to the partial fingerprint area, affecting the fingerprint.
  • the problem of the success rate of recognition the fingerprint areas corresponding to each fingerprint image in the candidate fingerprint image set are different, so that the generated fingerprint template can cover the entire fingerprint area of the target fingerprint, thereby ensuring the quality of the fingerprint template, thereby improving fingerprint recognition. Success rate.
  • the mobile terminal In order to further improve the quality of the generated fingerprint template, thereby improving the success rate of fingerprint recognition, when the similarity of the two fingerprint images in the candidate fingerprint image set is greater than the similarity threshold, the mobile terminal retains the fingerprint with higher image quality in the two fingerprint images. Image, delete the fingerprint image with lower image quality.
  • FIG. 2A is a flow chart showing a method of generating a fingerprint template provided by another exemplary embodiment.
  • the fingerprint template generation method is applied to an electronic device configured with a fingerprint recognition sensor for illustration.
  • the method for generating a fingerprint template includes:
  • step 201 in the process of inputting the target fingerprint, the ith fingerprint image collected by the fingerprint recognition sensor is added to the candidate fingerprint image set corresponding to the target fingerprint, i ⁇ 2, and i is a natural number.
  • the user uses the target finger to press the fingerprint recognition sensor (for the push-type fingerprint recognition sensor) or slide on the fingerprint recognition sensor (for the sliding fingerprint recognition sensor), so that the fingerprint recognition sensor can collect the fingerprint image of the target finger. .
  • the user needs to repeatedly input the target fingerprint multiple times.
  • the mobile terminal determines it as a candidate finger
  • the image is extracted, and the candidate fingerprint image is added to the candidate fingerprint image set corresponding to the target fingerprint.
  • the fingerprint image in the candidate fingerprint image set is used to generate a fingerprint template corresponding to the target fingerprint.
  • step 202 the similarity between the i-th fingerprint image and the j-th fingerprint image in the candidate fingerprint image set is calculated, j ⁇ i, and j is a natural number.
  • the mobile terminal does not need to process the fingerprint image.
  • the collected fingerprint image reaches a threshold value (for example, 8 photos)
  • the mobile terminal prompts the user to complete fingerprint input.
  • generating a fingerprint template according to each fingerprint image in the candidate fingerprint image set. Since the fingerprint images in the candidate fingerprint image set are not filtered, when the multiple fingerprint images correspond to the same fingerprint region, the generated fingerprint template can only cover a small portion of the fingerprint region of the target fingerprint (such as the front fingerprint region), resulting in a quality of the fingerprint template. Poor, the success rate of fingerprint recognition using the fingerprint template is also low (for example, the fingerprint template cannot be used to identify the side fingerprint area).
  • the mobile terminal For the ith fingerprint image added to the candidate fingerprint image set, the mobile terminal needs to calculate the similarity between the i-th fingerprint image and other fingerprint images in the candidate fingerprint image set. Thereby, it is determined whether the fingerprint area corresponding to the i-th fingerprint image has been covered.
  • the mobile terminal calculating the two fingerprint image similarities may include the following steps.
  • step 202A the fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image is acquired.
  • the mobile terminal can acquire the ith fingerprint image and the jth fingerprint image.
  • the area of the respective fingerprint image, and the similarity between the two is calculated.
  • step 202B the number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image is acquired.
  • the fingerprint image contains a large number of fingerprint feature points, including the bifurcation point, the triangle point, the end point and the spiral center point of the fingerprint pattern.
  • the mobile terminal can acquire the fingerprints of the i-th fingerprint image and the j-th fingerprint image. The number of feature points, and the similarity between the two is calculated.
  • step 202C the fingerprint feature point positions of the i-th fingerprint image and the j-th fingerprint image are acquired.
  • the mobile terminal can acquire the fingerprint feature point positions of the i-th fingerprint image and the j-th fingerprint image, and calculate the similarity between the two.
  • step 202D the similarity is calculated by weighting according to the ratio of the area of the fingerprint image, and/or the ratio of the number of fingerprint feature points, and/or the matching degree of the fingerprint feature point position.
  • the mobile terminal calculates the similarity of the two fingerprint images according to at least one of the fingerprint image area, the number of fingerprint feature points, and the fingerprint feature point position acquired in the above steps 202A to 202C.
  • the mobile terminal determines the area similarity of the two fingerprint images according to the ratio of the fingerprint image areas of the two fingerprint images; and determines the ratio of the number of fingerprint feature points corresponding to the two fingerprint images.
  • the similarity degree of the feature points of the two fingerprint images according to the fingerprint feature point positions corresponding to the two fingerprint images and the predetermined matching algorithm, the mobile terminal calculates the matching degree of the fingerprint feature point positions of the two fingerprint images, thereby determining the feature points of the two fingerprint images Distribution similarity.
  • the mobile terminal performs weighting calculation according to the area similarity, the similarity degree of the feature points, the similarity of the feature point distribution, and the corresponding weight values, and obtains the similarity between the two fingerprint images, wherein the weight value of the area similarity ⁇ the feature point The weight value of the quantity similarity ⁇ the weight value of the feature point distribution similarity.
  • the correspondence between the ratio of the area of the fingerprint image and the area similarity is pre-stored in the mobile terminal, and the correspondence is schematically shown in Table 1.
  • the mobile terminal can determine the area similarity between the two fingerprint images through Table 1.
  • the correspondence between the ratio of the number of fingerprint feature points and the similarity of the number of feature points is stored in advance in the mobile terminal, and the correspondence is schematically shown in Table 2.
  • Ratio of the number of fingerprint feature points Feature point quantity similarity 0.6-0.7 0.6
  • the mobile terminal can determine the similarity degree of the feature points between the two fingerprint images through Table 2.
  • the mobile terminal determines that the area similarity between the two fingerprint images is 1.0, the feature point similarity is 0.8, and the feature point distribution similarity is 0.85, when the area similarity weight value is 0.1, and the feature point quantity similarity
  • the weight value is 0.2, and the weight value of the feature point distribution similarity is 0.7
  • the mobile terminal calculates the similarity of the fingerprint image according to the above three dimensions as an example.
  • the mobile terminal may also obtain the fingerprint contour matching degree of the fingerprint image. Aspects are calculated similarly, which is not limited in this embodiment.
  • step 203 if the similarity between the i-th fingerprint image and the j-th fingerprint image is greater than the similarity threshold, the image quality of each of the i-th fingerprint image and the j-th fingerprint image is acquired.
  • the mobile terminal determines that the fingerprint region corresponding to the i-th fingerprint image and the j-th fingerprint image is different, and uses the fingerprint recognition sensor The i+1th fingerprint image is collected.
  • the similarity between the i-th fingerprint image and the j-th fingerprint image is greater than the similarity threshold, the mobile terminal determines that the i-th fingerprint image and the j-th fingerprint image correspond to the same fingerprint region. And choose to delete a fingerprint image.
  • this step may include the following steps.
  • step 203A the fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image is acquired.
  • the mobile terminal acquires the fingerprint image area corresponding to each of the two similar fingerprint images.
  • step 203B the number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image is acquired.
  • the mobile terminal acquires the number of fingerprint feature points corresponding to each of the two similar fingerprint images.
  • the i-th fingerprint is calculated according to the area of the fingerprint image and the number of fingerprint feature points.
  • the feature point density of each of the image and the jth fingerprint image is calculated according to the area of the fingerprint image and the number of fingerprint feature points.
  • the quality of the fingerprint template generated according to the fingerprint image is also The higher.
  • the fingerprint image area of the j-th fingerprint image acquired by the terminal is 0.49 cm 2 , and the number of fingerprint feature points is 14.
  • step 203D the image quality is determined according to the feature point density, and the feature point density is proportional to the image quality.
  • the image of the i-th fingerprint image The quality is higher than the image quality of the jth fingerprint image.
  • the present embodiment is described by taking the feature point density as a measure of image quality as an example, and does not limit the present disclosure.
  • step 204 if the image quality of the i-th fingerprint image is higher than the image quality of the j-th fingerprint image, the j-th fingerprint image is deleted from the candidate fingerprint image set.
  • the mobile terminal When the image quality of the i-th fingerprint image is higher than the image quality of the j-th fingerprint image, the mobile terminal retains the i-th fingerprint image and deletes the j-th fingerprint image.
  • step 205 if the image quality of the i-th fingerprint image is lower than the image quality of the j-th fingerprint image, the i-th fingerprint image is deleted from the candidate fingerprint image set.
  • the mobile terminal When the image quality of the jth fingerprint image is higher than the image quality of the i th fingerprint image, the mobile terminal retains the jth fingerprint image and deletes the i th fingerprint image.
  • the mobile terminal needs to repeatedly perform the above steps 201 to 205 to ensure that the fingerprint regions corresponding to the respective fingerprint images in the candidate fingerprint image set are different, thereby improving the quality of the generated fingerprint template.
  • step 206 it is determined whether the number of fingerprint images in the candidate fingerprint image set reaches a first threshold; if the number of fingerprint images in the candidate fingerprint image set reaches a first threshold, it is determined that the amount of information included in the candidate fingerprint image set reaches a threshold.
  • the mobile terminal In order to ensure that the generated fingerprint template contains sufficient information, the mobile terminal needs to generate a fingerprint template according to the fingerprint images of multiple different fingerprint regions. Therefore, in a possible implementation manner, in the target fingerprint input process, the mobile terminal detects whether the number of fingerprint images in the candidate fingerprint image set reaches a first threshold, and when the number of the fingerprint images reaches the first threshold, the mobile terminal determines the candidate.
  • the fingerprint image set contains a sufficient amount of information, and generates a fingerprint template according to each fingerprint image, and step 209 is performed.
  • the first threshold may be 6, that is, when the number of fingerprint images in the candidate fingerprint image set reaches 6, the mobile terminal determines that the candidate fingerprint image set contains sufficient information amount.
  • step 207 it is detected whether the sum of the fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold; if the sum of the fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold, determining the candidate fingerprint image set The amount of information contained reaches the threshold.
  • the generated fingerprint template needs to contain a sufficient amount of information, and the amount of information may refer to the number of fingerprint feature points included in the fingerprint template.
  • the mobile terminal detects whether the sum of the fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold, and when the sum of the fingerprint feature points reaches the second threshold, the mobile terminal moves.
  • the terminal determines that the candidate fingerprint image set contains a sufficient amount of information, and generates a fingerprint template according to each fingerprint image, and performs step 209.
  • the second threshold may be 200, that is, when the sum of the fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches 200, the mobile terminal determines that the candidate fingerprint image set contains a sufficient amount of information.
  • step 208 it is detected whether the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold; if the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold, determining that the candidate fingerprint image set includes The amount of information reaches the threshold.
  • the mobile terminal detects whether the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold. When the sum of the areas reaches the third threshold, the mobile terminal determines that the candidate fingerprint image set contains a sufficient amount of information, and generates a fingerprint template according to each fingerprint image.
  • the third threshold may be n times the upper limit of the specific numerical interval, and n ⁇ 2.
  • the third threshold may be 4 cm 2 , that is, when the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches 4 cm 2 , the mobile terminal determines that the candidate fingerprint image set contains a sufficient amount of information.
  • step 209 when the amount of information included in the candidate fingerprint image set reaches a threshold, a fingerprint template is generated according to each fingerprint image in the candidate fingerprint image set.
  • the adjacency relationship between the fingerprint images may be determined according to the edge feature point distribution of the fingerprint image, and the plurality of fingerprint images are spliced according to the adjacency relationship, thereby generating a fingerprint template.
  • the disclosure does not limit the specific way in which a fingerprint template is generated.
  • the fingerprint template generation method calculates the similarity between the currently acquired fingerprint image and the previously acquired fingerprint image in the target fingerprint input stage, and is similar in the two fingerprint images.
  • the degree is greater than the similarity threshold, one of the fingerprint images is reserved for generating the fingerprint template; the fingerprint template generated by repeatedly recording the same area is generated by the multiple entry method, and the generated fingerprint template is only applicable to the partial fingerprint area, affecting the fingerprint.
  • the problem of the success rate of recognition the fingerprint areas corresponding to each fingerprint image in the candidate fingerprint image set are different, so that the generated fingerprint template can cover the entire fingerprint area of the target fingerprint, thereby ensuring the quality of the fingerprint template, thereby improving fingerprint recognition. Success rate.
  • the mobile terminal when two fingerprint images having the same fingerprint area are acquired, the mobile terminal retains the fingerprint image with higher image quality according to the image quality of the fingerprint image, and deletes the fingerprint image with poor image quality. Thereby the quality of the generated fingerprint template is further improved.
  • the mobile terminal determines whether the candidate fingerprint image set contains sufficient information amount from three dimensions of the number of fingerprint images, the sum of the fingerprint image area, and the sum of the fingerprint image feature points, and stops acquiring the fingerprint when the candidate fingerprint image set contains sufficient information amount.
  • the image is generated to generate a corresponding fingerprint template, thereby ensuring that the generated fingerprint template contains sufficient information amount, and the recognition success rate when using the fingerprint template for fingerprint recognition is improved.
  • the mobile terminal displays corresponding prompt information, prompting the user to input fingerprint images of different fingerprint areas.
  • the above step 204 includes step 211
  • the above step 205 includes step 210.
  • step 210 when the i-th fingerprint image is deleted from the candidate fingerprint image set, the first prompt information is displayed, and the first prompt information is used to indicate that the i-th fingerprint image and the j-th fingerprint image correspond to the same fingerprint region.
  • the first i-th fingerprint image added in the candidate fingerprint image set When the first i-th fingerprint image added in the candidate fingerprint image set is deleted, it indicates the j-th entry previously entered.
  • the fingerprint image has covered the fingerprint area indicated by the i-th fingerprint image, and the image effect of the i-th fingerprint image is not as good as the image effect of the j-th fingerprint image.
  • the mobile terminal displays the first prompt information, indicating that the user's i-th fingerprint image and the j-th fingerprint image correspond to the same fingerprint area, and prompts the user to enter the fingerprint image of the other fingerprint area.
  • the user enters the second fingerprint image according to the prompt, when the second fingerprint image and the first fingerprint image correspond to the same fingerprint region, and the image quality of the first fingerprint image is better than the second fingerprint.
  • the mobile terminal displays the first prompt information 22 in the fingerprint entry interface 21.
  • step 211 when the jth fingerprint image is deleted from the candidate fingerprint image set, the second prompt information is displayed, and the second prompt information is used to indicate that the jth fingerprint image has been replaced with the ith fingerprint image.
  • the mobile terminal displays the second prompt information, prompting the user to replace the j-th fingerprint image with the ith fingerprint image, and prompting the user to enter the fingerprint image of the other fingerprint region.
  • the user enters the second fingerprint image according to the prompt, when the second fingerprint image and the first fingerprint image correspond to the same fingerprint region, and the image quality of the second fingerprint image is better than the first fingerprint image.
  • the mobile terminal displays the second prompt information 23 in the fingerprint entry interface 21.
  • the mobile terminal may further determine an uncovered fingerprint area according to the fingerprint area corresponding to the fingerprint image, and add information of the fingerprint area to the first prompt information or the second prompt information, thereby further
  • the user's fingerprint entry efficiency is improved, and the disclosure does not limit this.
  • the mobile terminal uses different prompting manners to prompt the user to enter the fingerprint, so that the user can adjust the posture of entering the fingerprint, improve the efficiency of fingerprint input, and ensure that the fingerprint image entered can cover each fingerprint area.
  • the mobile terminal displays corresponding prompt information. Based on the embodiment shown in FIG. 2A, as shown in FIG. 2G, after the above step 204 and step 205, the following steps are further included.
  • step 212 when the number of deleted fingerprint images reaches the fourth threshold, the third prompt information is displayed, and the third prompt information is used to indicate that the fingerprint entry fails.
  • the fourth threshold is 6, that is, when the number of deleted fingerprint images reaches 6
  • the mobile terminal displays the third prompt information 24 in the fingerprint entry interface 21, the user is instructed to fail the entry.
  • the mobile terminal displays the corresponding prompt information, and terminates the fingerprint entry, thereby avoiding waste of processing resources caused by the user intentionally repeatedly inputting the fingerprint image of the same fingerprint area.
  • FIG. 3 is a schematic structural diagram of a fingerprint template generating apparatus provided by an exemplary embodiment.
  • the fingerprint template generating device may be implemented as a whole or a part of an electronic device configured with a fingerprint recognition sensor by using a dedicated hardware circuit or a combination of software and hardware.
  • the fingerprint template generating device includes:
  • the adding module 310 is configured to add, in the process of inputting the target fingerprint, the ith fingerprint image collected by the fingerprint recognition sensor to the candidate fingerprint image set corresponding to the target fingerprint, i ⁇ 2, and i is a natural number;
  • the calculating module 320 is configured to calculate a similarity between the i-th fingerprint image and the j-th fingerprint image in the candidate fingerprint image set, j ⁇ i, and j is a natural number;
  • the deleting module 330 is configured to: if the similarity between the i-th fingerprint image and the j-th fingerprint image is greater than a similarity threshold, delete the i-th fingerprint image or the j-th fingerprint image from the candidate fingerprint image set;
  • the detecting module 340 is configured to detect whether the amount of information included in the candidate fingerprint image set reaches a threshold
  • the generating module 350 is configured to generate a fingerprint template according to each fingerprint image in the candidate fingerprint image set when the amount of information included in the candidate fingerprint image set reaches a threshold.
  • the fingerprint template generating apparatus calculates the similarity between the currently acquired fingerprint image and the previously acquired fingerprint image in the target fingerprint input stage, and is similar in the two fingerprint images.
  • the degree is greater than the similarity threshold, one of the fingerprint images is reserved for generating the fingerprint template; the fingerprint template generated by repeatedly recording the same area is generated by the multiple entry method, and the generated fingerprint template is only applicable to the partial fingerprint area, affecting the fingerprint.
  • the problem of the success rate of recognition; the fingerprint areas corresponding to each fingerprint image in the candidate fingerprint image set are different, so that the generated fingerprint template can cover the entire fingerprint area of the target fingerprint, thereby ensuring the quality of the fingerprint template, thereby improving fingerprint recognition. Success rate.
  • FIG. 4 is a schematic structural diagram of a fingerprint template generating apparatus provided by another exemplary embodiment.
  • the fingerprint template generating device may be implemented as a whole or a part of an electronic device configured with a fingerprint recognition sensor by using a dedicated hardware circuit or a combination of software and hardware.
  • the fingerprint template generating device includes:
  • the adding module 410 is configured to add the ith fingerprint image collected by the fingerprint recognition sensor to the candidate fingerprint image set corresponding to the target fingerprint during the input process of the target fingerprint, i ⁇ 2;
  • the calculating module 420 is configured to calculate a similarity between the i-th fingerprint image and the j-th fingerprint image in the candidate fingerprint image set, j ⁇ i;
  • the deleting module 430 is configured to: if the similarity between the i-th fingerprint image and the j-th fingerprint image is greater than a similarity threshold, delete the i-th fingerprint image or the j-th fingerprint image from the candidate fingerprint image set;
  • the detecting module 440 is configured to detect whether the amount of information included in the candidate fingerprint image set reaches a threshold
  • the generating module 450 is configured to generate a fingerprint template according to each fingerprint image in the candidate fingerprint image set when the amount of information included in the candidate fingerprint image set reaches a threshold.
  • the deleting module 430 includes:
  • the obtaining submodule 431 is configured to acquire image quality of each of the i-th fingerprint image and the j-th fingerprint image;
  • the first deletion sub-module 432 is configured to delete the j-th fingerprint image from the candidate fingerprint image set if the image quality of the i-th fingerprint image is higher than the image quality of the j-th fingerprint image;
  • the second deletion sub-module 433 is configured to delete the i-th fingerprint image from the candidate fingerprint image set if the image quality of the i-th fingerprint image is lower than the image quality of the j-th fingerprint image.
  • the obtaining submodule 431 includes:
  • the area obtaining sub-module 431a is configured to acquire a fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image;
  • the quantity acquisition sub-module 431b is configured to acquire the number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image;
  • the density calculation sub-module 431c is configured to calculate a feature point density of each of the i-th fingerprint image and the j-th fingerprint image according to the fingerprint image area and the number of fingerprint feature points;
  • the determining sub-module 431d is configured to determine the image quality according to the feature point density, and the feature point density is proportional to the image quality.
  • the detecting module 440 includes:
  • the first detecting sub-module 441 is configured to detect whether the number of fingerprint images in the candidate fingerprint image set reaches a first threshold; if the number of fingerprint images in the candidate fingerprint image set reaches a first threshold, determining that the amount of information included in the candidate fingerprint image set reaches Threshold value
  • the second detecting sub-module 442 is configured to detect whether the sum of the fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold; if the sum of the fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold, then Determining that the amount of information included in the candidate fingerprint image set reaches a threshold;
  • the third detecting sub-module 443 is configured to detect whether the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold; if the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold, determining the candidate The amount of information contained in the fingerprint image set reaches the threshold
  • the calculating module 420 includes:
  • the first obtaining submodule 421 is configured to acquire a fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image;
  • the second obtaining sub-module 422 is configured to acquire the number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image;
  • the third obtaining submodule 423 is configured to acquire a fingerprint feature point position of each of the i-th fingerprint image and the j-th fingerprint image;
  • the calculation sub-module 424 is configured to calculate the similarity by weight according to the ratio of the area of the fingerprint image, and/or the ratio of the number of fingerprint feature points, and/or the matching degree of the fingerprint feature point position.
  • the device further includes:
  • the first display module 460 is configured to display the first prompt information when the ith fingerprint image is deleted from the candidate fingerprint image set, where the first prompt information is used to indicate that the ith fingerprint image and the jth fingerprint image correspond to the same fingerprint region;
  • the second display module 470 is configured to display the second prompt information when the j-th fingerprint image is deleted from the candidate fingerprint image set, and the second prompt information is used to indicate that the j-th fingerprint image has been replaced with the ith fingerprint image.
  • the device further includes:
  • the third display module 480 is configured to display a third prompt information when the number of deleted fingerprint images reaches a fourth threshold, and the third prompt information is used to indicate that the fingerprint entry fails.
  • the fingerprint template generating apparatus calculates the similarity between the currently acquired fingerprint image and the previously acquired fingerprint image in the target fingerprint input stage, and is similar in the two fingerprint images.
  • the degree is greater than the similarity threshold
  • one of the fingerprint images is reserved for generating the fingerprint template; and the fingerprint template for generating the fingerprint image of the same area is repeatedly generated by the multiple entry method, and the fingerprint template is generated.
  • the generated fingerprint template is only applicable to the partial fingerprint area, which affects the success rate of fingerprint recognition; the fingerprint areas corresponding to each fingerprint image in the candidate fingerprint image set are different, so that the generated fingerprint template can cover the entire fingerprint of the target fingerprint.
  • the area ensures the quality of the fingerprint template, thereby improving the success rate of fingerprint recognition.
  • the mobile terminal when two fingerprint images having the same fingerprint area are acquired, the mobile terminal retains the fingerprint image with higher image quality according to the image quality of the fingerprint image, and deletes the fingerprint image with poor image quality. Thereby the quality of the generated fingerprint template is further improved.
  • the mobile terminal determines whether the candidate fingerprint image set contains sufficient information amount from three dimensions of the number of fingerprint images, the sum of the fingerprint image area, and the sum of the fingerprint image feature points, and stops acquiring the fingerprint when the candidate fingerprint image set contains sufficient information amount.
  • the image is generated to generate a corresponding fingerprint template, thereby ensuring that the generated fingerprint template contains sufficient information amount, and the recognition success rate when using the fingerprint template for fingerprint recognition is improved.
  • the mobile terminal uses different prompting manners to prompt the user to enter the fingerprint, so that the user can adjust the posture of entering the fingerprint, improve the efficiency of fingerprint input, and ensure that the fingerprint image entered can cover each fingerprint area.
  • the mobile terminal displays the corresponding prompt information, and terminates the fingerprint entry, thereby avoiding waste of processing resources caused by the user intentionally repeatedly inputting the fingerprint image of the same fingerprint area.
  • FIG. 5 is a block diagram of a mobile terminal, according to an exemplary embodiment.
  • the mobile terminal 500 may be a smartphone, a tablet, an e-book reader, or a personal computer or the like configured with a fingerprint recognition sensor.
  • the mobile terminal 500 can include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, and a sensor component 514, And a communication component 516.
  • Processing component 502 typically controls the overall operations of mobile terminal 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 502 can include one or more processors 518 to execute instructions to perform all or part of the steps described above.
  • the component 502 can include one or more modules to facilitate interaction between the component 502 and other components.
  • processing component 502 can include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
  • the memory 504 is configured to store various types of data to support operation at the mobile terminal 500. Examples of such data include instructions for any application or method operating on the mobile terminal 500, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 504 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 506 provides power to various components of mobile terminal 500.
  • Power component 506 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for mobile terminal 500.
  • the multimedia component 508 includes a screen that provides an output interface between the mobile terminal 500 and the user.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can sense not only the boundaries of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 508 includes a front camera and/or a rear camera. When the mobile terminal 500 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 510 is configured to output and/or input an audio signal.
  • the audio component 510 includes a microphone (MIC) that is configured to receive an external audio signal when the mobile terminal 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 504 or transmitted via communication component 516.
  • audio component 510 also includes a speaker for outputting an audio signal.
  • the I/O interface 512 provides an interface between the processing component 502 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor component 514 includes one or more sensors for providing various aspects of state assessment for mobile terminal 500.
  • sensor component 514 can detect an open/closed state of mobile terminal 500, relative positioning of components, such as a display and keypad of mobile terminal 500, and sensor component 514 can also detect a component of mobile terminal 500 or mobile terminal 500. The location changes, the presence or absence of contact of the user with the mobile terminal 500, the orientation or acceleration/deceleration of the mobile terminal 500, and the temperature change of the mobile terminal 500.
  • Sensor assembly 514 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 514 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • the sensor component 514 includes a fingerprint recognition sensor, which is a push-type fingerprint sensor or a sliding fingerprint recognition sensor (integrated in a button) for collecting a fingerprint image of the user.
  • Communication component 516 is configured to facilitate wired or wireless communication between mobile terminal 500 and other devices.
  • the mobile terminal 500 can access a wireless network based on a communication standard such as Wi-Fi, 2G or 3G, or a combination thereof.
  • communication component 516 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • communication component 516 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • mobile terminal 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), A program gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the above information receiving method.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA program gate array
  • controller microcontroller, microprocessor or other electronic component implementation for performing the above information receiving method.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 504 comprising instructions executable by processor 518 of mobile terminal 500 to perform the fingerprint template generation method described above.
  • the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.

Abstract

A fingerprint template generation method and apparatus, relating to the field of fingerprint recognition. The method comprises: during an input process of a target fingerprint, adding an ith fingerprint image collected by a fingerprint recognition sensor to a candidate fingerprint image set corresponding to the target fingerprint, wherein i≥2 (101); calculating the similarity between the ith fingerprint image and a jth fingerprint image in the candidate fingerprint image set, wherein j<i (103); if the similarity between the ith fingerprint image and the jth fingerprint image is greater than a similarity threshold value, deleting the ith fingerprint image or the jth fingerprint image from the candidate fingerprint image set (105); detecting whether the amount of information contained in the candidate fingerprint image set reaches a threshold value (107); and when the amount of information contained in the candidate fingerprint image set reaches the threshold value, generating a fingerprint template according to various fingerprint images in the candidate fingerprint image set (109). The problems in the related art where a generated fingerprint template is only suitable for partial fingerprint regions and where the success rate of fingerprint recognition is affected are solved.

Description

指纹模板生成方法及装置Fingerprint template generation method and device 技术领域Technical field
本公开涉及指纹识别领域,特别涉及一种指纹模板生成方法及装置。The present disclosure relates to the field of fingerprint recognition, and in particular, to a fingerprint template generation method and apparatus.
背景技术Background technique
随着移动终端的不断发展,指纹识别被广泛应用于智能手机、平板电脑之类的移动终端中,用于保证用户的个人信息安全。With the continuous development of mobile terminals, fingerprint recognition is widely used in mobile terminals such as smart phones and tablet computers to ensure the security of personal information of users.
指纹识别通常包括指纹录入阶段和指纹识别阶段。在进行指纹录入时,对于同一手指上的指纹,用户根据移动终端的提示在指纹识别传感器上录入若干次指纹,由移动终端对指纹识别传感器采集到的若干个指纹图像进行拼接,从而生成相应的指纹模板;在进行指纹识别时,移动终端检测指纹识别传感器采集到的指纹图像与指纹模板是否匹配,若指纹图像与指纹模板匹配,则确定通过指纹识别。但是通过多次录入方法重复录用同一区域的指纹图像生成指纹模板,导致生成的指纹模板仅适用于部分指纹区域,影响指纹识别的成功率。Fingerprint recognition usually includes a fingerprint entry phase and a fingerprint recognition phase. When performing fingerprint input, for the fingerprint on the same finger, the user enters the fingerprint on the fingerprint recognition sensor according to the prompt of the mobile terminal, and the mobile terminal splices the fingerprint images collected by the fingerprint recognition sensor to generate corresponding fingerprints. The fingerprint template is used by the mobile terminal to detect whether the fingerprint image collected by the fingerprint recognition sensor matches the fingerprint template, and if the fingerprint image matches the fingerprint template, the fingerprint identification is determined. However, by repeatedly recording the fingerprint image of the same area to generate a fingerprint template, the generated fingerprint template is only applicable to a part of the fingerprint area, which affects the success rate of fingerprint recognition.
发明内容Summary of the invention
本公开提供了一种指纹模板生成方法及装置。所述技术方案如下:The present disclosure provides a fingerprint template generation method and apparatus. The technical solution is as follows:
第一方面,提供了一种指纹模板生成方法,该方法包括:In a first aspect, a method for generating a fingerprint template is provided, the method comprising:
在目标指纹的录入过程中,将指纹识别传感器采集到的第i张指纹图像添加到目标指纹对应的候选指纹图像集,i≥2,且i为自然数;In the process of inputting the target fingerprint, the ith fingerprint image collected by the fingerprint recognition sensor is added to the candidate fingerprint image set corresponding to the target fingerprint, i≥2, and i is a natural number;
计算候选指纹图像集中第i张指纹图像与第j张指纹图像的相似度,j<i,且j为自然数;Calculating the similarity between the i-th fingerprint image and the j-th fingerprint image in the candidate fingerprint image set, j<i, and j is a natural number;
若第i张指纹图像与第j张指纹图像的相似度大于相似度阈值,则从候选指纹图像集中删除第i张指纹图像或第j张指纹图像;If the similarity between the i-th fingerprint image and the j-th fingerprint image is greater than the similarity threshold, deleting the i-th fingerprint image or the j-th fingerprint image from the candidate fingerprint image set;
检测候选指纹图像集包含的信息量是否达到阈值;Detecting whether the amount of information included in the candidate fingerprint image set reaches a threshold;
当候选指纹图像集包含的信息量达到阈值时,根据候选指纹图像集中的各张指纹图像生成指纹模板。When the amount of information included in the candidate fingerprint image set reaches a threshold, a fingerprint template is generated according to each fingerprint image in the candidate fingerprint image set.
可选地,从候选指纹图像集中删除第i张指纹图像或第j张指纹图像,包 括:Optionally, deleting the i-th fingerprint image or the j-th fingerprint image from the candidate fingerprint image set, the package include:
获取第i张指纹图像和第j张指纹图像各自的图像质量;Acquiring image quality of each of the i-th fingerprint image and the j-th fingerprint image;
若第i张指纹图像的图像质量高于第j张指纹图像的图像质量,则从候选指纹图像集中删除第j张指纹图像;If the image quality of the i-th fingerprint image is higher than the image quality of the j-th fingerprint image, deleting the j-th fingerprint image from the candidate fingerprint image set;
若第i张指纹图像的图像质量低于第j张指纹图像的图像质量,则从候选指纹图像集中删除第i张指纹图像。If the image quality of the i-th fingerprint image is lower than the image quality of the j-th fingerprint image, the i-th fingerprint image is deleted from the candidate fingerprint image set.
可选地,获取第i张指纹图像和第j张指纹图像各自的图像质量,包括:Optionally, acquiring image quality of each of the i-th fingerprint image and the j-th fingerprint image includes:
获取第i张指纹图像和第j张指纹图像各自的指纹图像面积;Obtaining a fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image;
获取第i张指纹图像和第j张指纹图像各自的指纹特征点数量;Obtaining a number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image;
根据指纹图像面积和指纹特征点数量计算第i张指纹图像和第j张指纹图像各自的特征点密度;Calculating a feature point density of each of the i-th fingerprint image and the j-th fingerprint image according to the fingerprint image area and the number of fingerprint feature points;
根据特征点密度确定图像质量,特征点密度与图像质量呈正比例关系。The image quality is determined according to the feature point density, and the feature point density is proportional to the image quality.
可选地,检测候选指纹图像集包含的信息量是否达到阈值,包括:Optionally, detecting whether the amount of information included in the candidate fingerprint image set reaches a threshold includes:
检测候选指纹图像集中指纹图像的数量是否达到第一阈值;若候选指纹图像集中指纹图像的数量达到第一阈值,则确定候选指纹图像集包含的信息量达到阈值;Determining whether the number of fingerprint images in the candidate fingerprint image set reaches a first threshold; if the number of fingerprint images in the candidate fingerprint image set reaches a first threshold, determining that the amount of information included in the candidate fingerprint image set reaches a threshold;
和/或,and / or,
检测候选指纹图像集中各张指纹图像的指纹特征点总和是否达到第二阈值;若候选指纹图像集中各张指纹图像的指纹特征点总和达到第二阈值,则确定候选指纹图像集包含的信息量达到阈值;Detecting whether the sum of the fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold; if the sum of the fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold, determining that the information amount of the candidate fingerprint image set reaches Threshold value
和/或,and / or,
检测候选指纹图像集中各张指纹图像的指纹面积总和是否达到第三阈值;若候选指纹图像集中各张指纹图像的指纹面积总和达到第三阈值,则确定候选指纹图像集包含的信息量达到阈值。It is determined whether the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold; if the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold, it is determined that the information amount included in the candidate fingerprint image set reaches a threshold.
可选地,计算候选指纹图像集中第i张指纹图像与第j张指纹图像的相似度,包括:Optionally, calculating a similarity between the i-th fingerprint image and the j-th fingerprint image in the candidate fingerprint image set, including:
获取第i张指纹图像和第j张指纹图像各自的指纹图像面积;Obtaining a fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image;
获取第i张指纹图像和第j张指纹图像各自的指纹特征点数量;Obtaining a number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image;
获取第i张指纹图像和第j张指纹图像各自的指纹特征点位置;Obtaining a fingerprint feature point position of each of the i-th fingerprint image and the j-th fingerprint image;
根据指纹图像面积的比值,和/或,指纹特征点数量的比值,和/或,指纹特征点位置的匹配度,加权计算相似度。 The similarity is weighted according to the ratio of the area of the fingerprint image, and/or the ratio of the number of fingerprint feature points, and/or the degree of matching of the fingerprint feature point positions.
可选地,该方法,还包括:Optionally, the method further includes:
当从候选指纹图像集中删除第i张指纹图像时,显示第一提示信息,第一提示信息用于指示第i张指纹图像与第j张指纹图像对应同一指纹区域;When the i-th fingerprint image is deleted from the candidate fingerprint image set, the first prompt information is displayed, where the first prompt information is used to indicate that the i-th fingerprint image and the j-th fingerprint image correspond to the same fingerprint region;
当从候选指纹图像集中删除第j张指纹图像时,显示第二提示信息,第二提示信息用于指示已利用第i张指纹图像替换第j张指纹图像。When the jth fingerprint image is deleted from the candidate fingerprint image set, the second prompt information is displayed, and the second prompt information is used to indicate that the jth fingerprint image has been replaced with the ith fingerprint image.
可选地,该方法,还包括:Optionally, the method further includes:
当删除的指纹图像的数量达到第四阈值时,显示第三提示信息,第三提示信息用于指示指纹录入失败。When the number of deleted fingerprint images reaches the fourth threshold, the third prompt information is displayed, and the third prompt information is used to indicate that the fingerprint entry fails.
第二方面,提供了一种指纹模板生成装置,该装置包括:In a second aspect, a fingerprint template generating apparatus is provided, the apparatus comprising:
添加模块,被配置为在目标指纹的录入过程中,将指纹识别传感器采集到的第i张指纹图像添加到目标指纹对应的候选指纹图像集,i≥2,且i为自然数;The adding module is configured to add the ith fingerprint image collected by the fingerprint recognition sensor to the candidate fingerprint image set corresponding to the target fingerprint during the input process of the target fingerprint, i≥2, and i is a natural number;
计算模块,被配置为计算候选指纹图像集中第i张指纹图像与第j张指纹图像的相似度,j<i,且j为自然数;a calculation module configured to calculate a similarity between the i-th fingerprint image and the j-th fingerprint image in the candidate fingerprint image set, j<i, and j is a natural number;
删除模块,被配置为若第i张指纹图像与第j张指纹图像的相似度大于相似度阈值,则从候选指纹图像集中删除第i张指纹图像或第j张指纹图像;The deleting module is configured to delete the i-th fingerprint image or the j-th fingerprint image from the candidate fingerprint image set if the similarity between the i-th fingerprint image and the j-th fingerprint image is greater than a similarity threshold;
检测模块,被配置为检测候选指纹图像集包含的信息量是否达到阈值;a detecting module configured to detect whether the amount of information included in the candidate fingerprint image set reaches a threshold;
生成模块,被配置为当候选指纹图像集包含的信息量达到阈值时,根据候选指纹图像集中的各张指纹图像生成指纹模板。The generating module is configured to generate a fingerprint template according to each fingerprint image in the candidate fingerprint image set when the amount of information included in the candidate fingerprint image set reaches a threshold.
可选地,删除模块,包括:Optionally, deleting the module includes:
获取子模块,被配置为获取第i张指纹图像和第j张指纹图像各自的图像质量;Obtaining a submodule configured to acquire image quality of each of the i-th fingerprint image and the j-th fingerprint image;
第一删除子模块,被配置为若第i张指纹图像的图像质量高于第j张指纹图像的图像质量,则从候选指纹图像集中删除第j张指纹图像;The first deleting submodule is configured to delete the jth fingerprint image from the candidate fingerprint image set if the image quality of the i th fingerprint image is higher than the image quality of the j th fingerprint image;
第二删除子模块,被配置为若第i张指纹图像的图像质量低于第j张指纹图像的图像质量,则从候选指纹图像集中删除第i张指纹图像。The second deletion sub-module is configured to delete the i-th fingerprint image from the candidate fingerprint image set if the image quality of the i-th fingerprint image is lower than the image quality of the j-th fingerprint image.
可选地,获取子模块,包括:Optionally, obtaining a submodule, including:
面积获取子模块,被配置为获取第i张指纹图像和第j张指纹图像各自的指纹图像面积;An area obtaining submodule configured to acquire a fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image;
数量获取子模块,被配置为获取第i张指纹图像和第j张指纹图像各自的指纹特征点数量;a quantity acquisition submodule configured to acquire a number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image;
密度计算子模块,被配置为根据指纹图像面积和指纹特征点数量计算第i 张指纹图像和所述第j张指纹图像各自的特征点密度;The density calculation sub-module is configured to calculate the i-th based on the fingerprint image area and the number of fingerprint feature points a feature point density of each of the fingerprint image and the j-th fingerprint image;
确定子模块,被配置为根据特征点密度确定图像质量,特征点密度与图像质量呈正比例关系。The determining sub-module is configured to determine the image quality according to the feature point density, and the feature point density is proportional to the image quality.
可选地,检测模块,包括:Optionally, the detecting module comprises:
第一检测子模块,被配置为检测候选指纹图像集中指纹图像的数量是否达到第一阈值;若候选指纹图像集中指纹图像的数量达到第一阈值,则确定候选指纹图像集包含的信息量达到阈值;The first detecting submodule is configured to detect whether the number of fingerprint images in the candidate fingerprint image set reaches a first threshold; if the number of fingerprint images in the candidate fingerprint image set reaches a first threshold, determining that the amount of information included in the candidate fingerprint image set reaches a threshold ;
和/或,and / or,
第二检测子模块,被配置为检测候选指纹图像集中各张指纹图像的指纹特征点总和是否达到第二阈值;若候选指纹图像集中各张指纹图像的指纹特征点总和达到第二阈值,则确定候选指纹图像集包含的信息量达到阈值;a second detecting submodule configured to detect whether a sum of fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold; if the sum of fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold, determining The amount of information contained in the candidate fingerprint image set reaches a threshold;
和/或,and / or,
第三检测子模块,被配置为检测候选指纹图像集中各张指纹图像的指纹面积总和是否达到第三阈值;若候选指纹图像集中各张指纹图像的指纹面积总和达到第三阈值,则确定候选指纹图像集包含的信息量达到阈值。The third detecting sub-module is configured to detect whether the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold; if the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold, determining the candidate fingerprint The amount of information contained in the image set reaches the threshold.
可选地,计算模块,包括:Optionally, the computing module includes:
第一获取子模块,被配置为获取第i张指纹图像和第j张指纹图像各自的指纹图像面积;a first acquiring submodule configured to acquire a fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image;
第二获取子模块,被配置为获取第i张指纹图像和第j张指纹图像各自的指纹特征点数量;a second acquiring submodule configured to acquire a number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image;
第三获取子模块,被配置为获取第i张指纹图像和第j张指纹图像各自的指纹特征点位置;a third acquiring submodule configured to acquire a fingerprint feature point position of each of the i-th fingerprint image and the j-th fingerprint image;
计算子模块,被配置为根据指纹图像面积的比值,和/或,指纹特征点数量的比值,和/或,指纹特征点位置的匹配度,加权计算相似度。The calculation sub-module is configured to calculate the similarity by weight according to the ratio of the area of the fingerprint image, and/or the ratio of the number of fingerprint feature points, and/or the matching degree of the fingerprint feature point position.
可选地,该装置,还包括:Optionally, the device further includes:
第一显示模块,被配置为当从候选指纹图像集中删除第i张指纹图像时,显示第一提示信息,第一提示信息用于指示第i张指纹图像与第j张指纹图像对应同一指纹区域;The first display module is configured to display the first prompt information when the ith fingerprint image is deleted from the candidate fingerprint image set, where the first prompt information is used to indicate that the ith fingerprint image and the jth fingerprint image correspond to the same fingerprint region ;
第二显示模块,被配置为当从候选指纹图像集中删除第j张指纹图像时,显示第二提示信息,第二提示信息用于指示已利用第i张指纹图像替换第j张指纹图像。 The second display module is configured to display the second prompt information when the j-th fingerprint image is deleted from the candidate fingerprint image set, and the second prompt information is used to indicate that the j-th fingerprint image has been replaced with the ith fingerprint image.
可选地,该装置,还包括:Optionally, the device further includes:
第三显示模块,被配置为当删除的指纹图像的数量达到第四阈值时,显示第三提示信息,第三提示信息用于指示指纹录入失败。The third display module is configured to display the third prompt information when the number of the deleted fingerprint images reaches the fourth threshold, and the third prompt information is used to indicate that the fingerprint entry fails.
第三方面,提供了一种指纹模板生成装置,该装置包括:In a third aspect, a fingerprint template generating apparatus is provided, the apparatus comprising:
处理器;processor;
用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
其中,所述处理器被配置为:Wherein the processor is configured to:
在目标指纹的录入过程中,将指纹识别传感器采集到的第i张指纹图像添加到目标指纹对应的候选指纹图像集,i≥2,且i为自然数;In the process of inputting the target fingerprint, the ith fingerprint image collected by the fingerprint recognition sensor is added to the candidate fingerprint image set corresponding to the target fingerprint, i≥2, and i is a natural number;
计算候选指纹图像集中第i张指纹图像与第j张指纹图像的相似度,j<i,且j为自然数;Calculating the similarity between the i-th fingerprint image and the j-th fingerprint image in the candidate fingerprint image set, j<i, and j is a natural number;
若第i张指纹图像与第j张指纹图像的相似度大于相似度阈值,则从候选指纹图像集中删除第i张指纹图像或第j张指纹图像;If the similarity between the i-th fingerprint image and the j-th fingerprint image is greater than the similarity threshold, deleting the i-th fingerprint image or the j-th fingerprint image from the candidate fingerprint image set;
检测候选指纹图像集包含的信息量是否达到阈值;Detecting whether the amount of information included in the candidate fingerprint image set reaches a threshold;
当候选指纹图像集包含的信息量达到阈值时,根据候选指纹图像集中的各张指纹图像生成指纹模板。When the amount of information included in the candidate fingerprint image set reaches a threshold, a fingerprint template is generated according to each fingerprint image in the candidate fingerprint image set.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
通过在目标指纹录入阶段,计算当前获取到的指纹图像与之前获取到的指纹图像之间的相似度,并在两个指纹图像的相似度大于相似度阈值时,保留其中一个指纹图像用于生成指纹模板;解决了通过多次录入方法重复录用同一区域的指纹图像生成指纹模板,导致生成的指纹模板仅适用于部分指纹区域,影响指纹识别的成功率的问题;达到了候选指纹图像集中各个指纹图像对应的指纹区域各不相同,使得生成的指纹模板能够覆盖目标指纹的整个指纹区域,保证了指纹模板的质量,从而提高指纹识别的成功率。By calculating the similarity between the currently acquired fingerprint image and the previously acquired fingerprint image in the target fingerprint entry phase, and retaining one of the fingerprint images for generating when the similarity between the two fingerprint images is greater than the similarity threshold Fingerprint template; solves the problem of repeatedly generating the fingerprint image of the same area by multiple entry methods to generate a fingerprint template, resulting in the generated fingerprint template only applicable to part of the fingerprint area, affecting the success rate of fingerprint recognition; reaching the fingerprint of the candidate fingerprint image set The fingerprint regions corresponding to the images are different, so that the generated fingerprint template can cover the entire fingerprint region of the target fingerprint, thereby ensuring the quality of the fingerprint template, thereby improving the success rate of fingerprint recognition.
应当理解的是,以上的一般描述和后文的细节描述仅是示意性的,并不能限制本公开。The above general description and the following detailed description are intended to be illustrative and not restrictive.
附图说明DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并于说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in the claims of the claims
图1示出了一示意性实施例所提供的指纹模板生成方法的方法流程图; FIG. 1 is a flowchart of a method for generating a fingerprint template provided by an exemplary embodiment;
图2A示出了另一示意性实施例所提供的指纹模板生成方法的方法流程图;2A is a flowchart of a method for generating a fingerprint template provided by another exemplary embodiment;
图2B是图2A所示指纹模板生成方法所涉及的指纹图像相似度计算过程的流程图;2B is a flowchart of a fingerprint image similarity calculation process involved in the fingerprint template generation method shown in FIG. 2A;
图2C是图2A所示指纹模板生成方法所涉及的图像质量确定过程的流程图;2C is a flowchart of an image quality determining process involved in the fingerprint template generating method shown in FIG. 2A;
图2D示出了再一示意性实施例所提供的指纹模板生成方法的方法流程图;2D is a flowchart of a method for generating a fingerprint template provided by still another exemplary embodiment;
图2E和图2F是图2D所示指纹模板生成方法所涉及的界面示意图;2E and 2F are schematic diagrams of interfaces involved in the fingerprint template generation method shown in FIG. 2D;
图2G示出了又一示意性实施例所提供的指纹模板生成方法的方法流程图;2G is a flowchart of a method for generating a fingerprint template provided by still another exemplary embodiment;
图2H是图2G所示指纹模板生成方法所涉及的界面示意图;2H is a schematic diagram of an interface involved in the method for generating a fingerprint template shown in FIG. 2G;
图3示出了一示意性实施例提供的指纹模板生成装置的结构示意图;FIG. 3 is a schematic structural diagram of a fingerprint template generating apparatus according to an exemplary embodiment;
图4示出了另一示意性实施例提供的指纹模板生成装置的结构示意图;FIG. 4 is a schematic structural diagram of a fingerprint template generating apparatus according to another exemplary embodiment;
图5是根据一示意性实施例示出的移动终端的框图。FIG. 5 is a block diagram of a mobile terminal, according to an exemplary embodiment.
具体实施方式detailed description
这里将详细地对示意性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示意性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。The illustrative embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following illustrative embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with aspects of the present disclosure as detailed in the appended claims.
本公开各个实施例提供的指纹模板生成方法,用于配置有指纹识别传感器的电子设备,该电子设备可以是智能手机、平板电脑、电子书阅读器或便携式个人计算机等等。指纹识别传感器可以为按压式指纹识别传感器(手指平压在传感器上以获取指纹图像)或滑动式指纹识别传感器(手指划过传感器以获取指纹图像)等等,本公开并不对此进行限定。A fingerprint template generating method provided by various embodiments of the present disclosure is used for an electronic device configured with a fingerprint recognition sensor, and the electronic device may be a smart phone, a tablet computer, an e-book reader or a portable personal computer or the like. The fingerprint recognition sensor may be a push-type fingerprint recognition sensor (a finger is pressed on the sensor to acquire a fingerprint image) or a sliding fingerprint recognition sensor (a finger is swiped over the sensor to acquire a fingerprint image) or the like, which is not limited by the present disclosure.
另外,电子设备中的指纹识别传感器还与处理器以及存储器电性相连。在指纹录入阶段,指纹识别传感器采集到的指纹图像存储在存储器中,处理器即根据该指纹图像生成相应的指纹模板,并存储存储器中;在指纹识别阶段,处 理器获取指纹识别传感器采集到的指纹图像,将该指纹图像与存储器中存储的指纹模板进行匹配,并在指纹图像与指纹模板匹配时,确定通过指纹验证。In addition, the fingerprint recognition sensor in the electronic device is also electrically connected to the processor and the memory. In the fingerprint entry stage, the fingerprint image collected by the fingerprint recognition sensor is stored in the memory, and the processor generates a corresponding fingerprint template according to the fingerprint image, and stores the fingerprint in the memory; in the fingerprint identification stage, The processor obtains the fingerprint image collected by the fingerprint recognition sensor, matches the fingerprint image with the fingerprint template stored in the memory, and determines to pass the fingerprint verification when the fingerprint image matches the fingerprint template.
为了方便描述,下述各个实施例以该指纹模板生成方法用于移动终端为例进行说明,并不对本公开构成限定。For convenience of description, the following embodiments are described by using the fingerprint template generation method for a mobile terminal as an example, and the present disclosure is not limited thereto.
图1示出了一示意性实施例所提供的指纹模板生成方法的方法流程图。本实施例以该指纹模板生成方法应用于配置有指纹识别传感器的电子设备进行举例说明。该指纹模板生成方法包括:FIG. 1 is a flow chart showing a method of generating a fingerprint template provided by an exemplary embodiment. In this embodiment, the fingerprint template generation method is applied to an electronic device configured with a fingerprint recognition sensor for illustration. The method for generating a fingerprint template includes:
在步骤101中,在目标指纹的录入过程中,将指纹识别传感器采集到的第i张指纹图像添加到目标指纹对应的候选指纹图像集,i≥2,且i为自然数。In step 101, in the process of inputting the target fingerprint, the ith fingerprint image collected by the fingerprint recognition sensor is added to the candidate fingerprint image set corresponding to the target fingerprint, i≥2, and i is a natural number.
在目标指纹的录入过程中,移动终端将指纹识别传感器采集到的第一张指纹图像直接添加到该目标指纹对应的候选指纹图像集中,且不需要对其进行相似度计算(候选指纹图像集中仅包含一张指纹图像);对于指纹识别传感器后续采集到的第i张指纹图像,移动终端将第i张指纹图像添加到候选指纹图像集中,并通过步骤103计算第i张指纹图像与候选指纹图像集中已存储的各张指纹图像的相似度。During the process of inputting the target fingerprint, the mobile terminal adds the first fingerprint image collected by the fingerprint recognition sensor directly to the candidate fingerprint image set corresponding to the target fingerprint, and does not need to perform similarity calculation (the candidate fingerprint image set only Include a fingerprint image); for the ith fingerprint image acquired by the fingerprint recognition sensor, the mobile terminal adds the ith fingerprint image to the candidate fingerprint image set, and calculates the ith fingerprint image and the candidate fingerprint image by step 103 Concentrate the similarity of each fingerprint image that has been stored.
在步骤103中,计算候选指纹图像集中第i张指纹图像与第j张指纹图像的相似度,j<i,且j为自然数。In step 103, the similarity between the i-th fingerprint image and the j-th fingerprint image in the candidate fingerprint image set is calculated, j<i, and j is a natural number.
在一种可能的实施方式中,移动终端可以根据指纹图像的形状、面积、指纹特征点的数量以及分布位置计算两张指纹图像间的相似度。In a possible implementation manner, the mobile terminal may calculate the similarity between the two fingerprint images according to the shape, the area, the number of fingerprint feature points, and the distribution position of the fingerprint image.
在步骤105中,若第i张指纹图像与第j张指纹图像的相似度大于相似度阈值,则从候选指纹图像集中删除第i张指纹图像或第j张指纹图像。In step 105, if the similarity between the i-th fingerprint image and the j-th fingerprint image is greater than the similarity threshold, the i-th fingerprint image or the j-th fingerprint image is deleted from the candidate fingerprint image set.
对于相似度大于预设相似度阈值的两张指纹图像,移动终端确定这两张指纹图像对应目标指纹的同一指纹区域,移动终端择一删除一张指纹图像,从而保证候选指纹图像集中各个指纹图像对应不同的指纹区域。For two fingerprint images whose similarity is greater than the preset similarity threshold, the mobile terminal determines that the two fingerprint images correspond to the same fingerprint region of the target fingerprint, and the mobile terminal selectively deletes one fingerprint image, thereby ensuring that each fingerprint image of the candidate fingerprint image is concentrated. Corresponds to different fingerprint areas.
需要说明的是,当第i张指纹图像与候选指纹图像集中各张指纹图像得相似度均低于最低相似度阈值时(比如20%),移动终端确定第i张指纹图像不属于目标指纹,并将第i张指纹图像从候选指纹图像集中删除。It should be noted that when the similarity between the i-th fingerprint image and the fingerprint image in the candidate fingerprint image set is lower than the lowest similarity threshold (for example, 20%), the mobile terminal determines that the i-th fingerprint image does not belong to the target fingerprint. And deleting the i-th fingerprint image from the candidate fingerprint image set.
在步骤107中,检测候选指纹图像集包含的信息量是否达到阈值。In step 107, it is detected whether the amount of information contained in the candidate fingerprint image set reaches a threshold.
其中,候选指纹图像集包含的信息量达到阈值指候选指纹图像集中指纹图像的数量达到第一阈值,和/或,候选指纹图像集中各张指纹图像的指纹特征点 总和达到第二阈值,和/或,候选指纹图像集中各张指纹图像的指纹面积总和达到第三阈值。Wherein, the amount of information included in the candidate fingerprint image set reaches a threshold value, that is, the number of fingerprint images in the candidate fingerprint image set reaches a first threshold, and/or the fingerprint feature points of each fingerprint image in the candidate fingerprint image set The sum reaches a second threshold, and/or the sum of the fingerprint areas of the fingerprint images in the candidate fingerprint image set reaches a third threshold.
在步骤109中,当候选指纹图像集包含的信息量达到阈值时,根据候选指纹图像集中的各张指纹图像生成指纹模板。In step 109, when the amount of information included in the candidate fingerprint image set reaches a threshold, a fingerprint template is generated according to each fingerprint image in the candidate fingerprint image set.
为了确保生成的指纹模板的质量,当候选指纹图像集包含的信息量达到阈值时,移动终端根据候选指纹图像集中的各张指纹图像生成相应的指纹模板;当候选指纹图像集包含的信息量未达到阈值时,移动终端指示指纹识别传感器继续采集指纹图像,直至信息量达到阈值。In order to ensure the quality of the generated fingerprint template, when the amount of information included in the candidate fingerprint image set reaches a threshold, the mobile terminal generates a corresponding fingerprint template according to each fingerprint image in the candidate fingerprint image set; when the information amount of the candidate fingerprint image set does not exist When the threshold is reached, the mobile terminal instructs the fingerprint recognition sensor to continue collecting fingerprint images until the amount of information reaches a threshold.
综上所述,本实施例提供的指纹模板生成方法,通过在目标指纹录入阶段,计算当前获取到的指纹图像与之前获取到的指纹图像之间的相似度,并在两个指纹图像的相似度大于相似度阈值时,保留其中一个指纹图像用于生成指纹模板;解决了通过多次录入方法重复录用同一区域的指纹图像生成指纹模板,导致生成的指纹模板仅适用于部分指纹区域,影响指纹识别的成功率的问题;达到了候选指纹图像集中各个指纹图像对应的指纹区域各不相同,使得生成的指纹模板能够覆盖目标指纹的整个指纹区域,保证了指纹模板的质量,从而提高指纹识别的成功率。In summary, the fingerprint template generation method provided by the embodiment calculates the similarity between the currently acquired fingerprint image and the previously acquired fingerprint image in the target fingerprint input stage, and is similar in the two fingerprint images. When the degree is greater than the similarity threshold, one of the fingerprint images is reserved for generating the fingerprint template; the fingerprint template generated by repeatedly recording the same area is generated by the multiple entry method, and the generated fingerprint template is only applicable to the partial fingerprint area, affecting the fingerprint. The problem of the success rate of recognition; the fingerprint areas corresponding to each fingerprint image in the candidate fingerprint image set are different, so that the generated fingerprint template can cover the entire fingerprint area of the target fingerprint, thereby ensuring the quality of the fingerprint template, thereby improving fingerprint recognition. Success rate.
为了进一步提高生成的指纹模板的质量,从而提高指纹识别的成功率,当候选指纹图像集中两张指纹图像的相似度大于相似度阈值时,移动终端保留两张指纹图像中图像质量较高的指纹图像,删除图像质量较低的指纹图像。下面采用一个实施例进行说明。In order to further improve the quality of the generated fingerprint template, thereby improving the success rate of fingerprint recognition, when the similarity of the two fingerprint images in the candidate fingerprint image set is greater than the similarity threshold, the mobile terminal retains the fingerprint with higher image quality in the two fingerprint images. Image, delete the fingerprint image with lower image quality. The following description will be made using an embodiment.
图2A示出了另一示意性实施例所提供的指纹模板生成方法的方法流程图。本实施例以该指纹模板生成方法应用于配置有指纹识别传感器的电子设备进行举例说明。该指纹模板生成方法包括:2A is a flow chart showing a method of generating a fingerprint template provided by another exemplary embodiment. In this embodiment, the fingerprint template generation method is applied to an electronic device configured with a fingerprint recognition sensor for illustration. The method for generating a fingerprint template includes:
在步骤201中,在目标指纹的录入过程中,将指纹识别传感器采集到的第i张指纹图像添加到目标指纹对应的候选指纹图像集,i≥2,且i为自然数。In step 201, in the process of inputting the target fingerprint, the ith fingerprint image collected by the fingerprint recognition sensor is added to the candidate fingerprint image set corresponding to the target fingerprint, i≥2, and i is a natural number.
进行目标指纹录入时,用户使用目标手指按压指纹识别传感器(对于按压式指纹识别传感器)或在指纹识别传感器上滑动(对于滑动式指纹识别传感器),使得指纹识别传感器能够采集到目标手指的指纹图像。为了保证根据指纹图像生成的指纹模板的质量,用户需要重复录入多次目标指纹。When the target fingerprint is entered, the user uses the target finger to press the fingerprint recognition sensor (for the push-type fingerprint recognition sensor) or slide on the fingerprint recognition sensor (for the sliding fingerprint recognition sensor), so that the fingerprint recognition sensor can collect the fingerprint image of the target finger. . In order to ensure the quality of the fingerprint template generated according to the fingerprint image, the user needs to repeatedly input the target fingerprint multiple times.
对于指纹识别传感器采集到的各张指纹图像,移动终端将其确定为候选指 纹图像,并将该候选指纹图像添加到目标指纹对应的候选指纹图像集中。其中,该候选指纹图像集中的指纹图像用于生成目标指纹对应的指纹模板。For each fingerprint image collected by the fingerprint recognition sensor, the mobile terminal determines it as a candidate finger The image is extracted, and the candidate fingerprint image is added to the candidate fingerprint image set corresponding to the target fingerprint. The fingerprint image in the candidate fingerprint image set is used to generate a fingerprint template corresponding to the target fingerprint.
在步骤202中,计算候选指纹图像集中第i张指纹图像与第j张指纹图像的相似度,j<i,且j为自然数。In step 202, the similarity between the i-th fingerprint image and the j-th fingerprint image in the candidate fingerprint image set is calculated, j<i, and j is a natural number.
相关技术中,对于添加到候选指纹图像集中的各张指纹图像,移动终端不需要对其进行处理,当采集到的指纹图像达到数量阈值时(比如8张),移动终端即提示用户完成指纹录入,并根据候选指纹图像集中的各个指纹图像生成指纹模板。由于候选指纹图像集中的指纹图像未经过筛选,当多个指纹图像对应同一指纹区域时,生成的指纹模板仅能够覆盖目标指纹的小部分指纹区域(比如正面指纹区域),导致指纹模板的质量较差,利用该指纹模板进行指纹识别的成功率也较低(比如利用该指纹模板无法识别侧面指纹区域)。In the related art, for each fingerprint image added to the candidate fingerprint image set, the mobile terminal does not need to process the fingerprint image. When the collected fingerprint image reaches a threshold value (for example, 8 photos), the mobile terminal prompts the user to complete fingerprint input. And generating a fingerprint template according to each fingerprint image in the candidate fingerprint image set. Since the fingerprint images in the candidate fingerprint image set are not filtered, when the multiple fingerprint images correspond to the same fingerprint region, the generated fingerprint template can only cover a small portion of the fingerprint region of the target fingerprint (such as the front fingerprint region), resulting in a quality of the fingerprint template. Poor, the success rate of fingerprint recognition using the fingerprint template is also low (for example, the fingerprint template cannot be used to identify the side fingerprint area).
而本公开实施例提供的指纹模板生成方法中,对于添加到候选指纹图像集中的第i张指纹图像,移动终端需要计算第i张指纹图像与候选指纹图像集中其它指纹图像之间的相似度,从而确定第i张指纹图像对应的指纹区域是否已经被覆盖。在一种可能的实施方式中,如图2B所示,移动终端计算两张指纹图像相似度可以包括如下步骤。In the fingerprint template generation method provided by the embodiment of the present disclosure, for the ith fingerprint image added to the candidate fingerprint image set, the mobile terminal needs to calculate the similarity between the i-th fingerprint image and other fingerprint images in the candidate fingerprint image set. Thereby, it is determined whether the fingerprint area corresponding to the i-th fingerprint image has been covered. In a possible implementation manner, as shown in FIG. 2B, the mobile terminal calculating the two fingerprint image similarities may include the following steps.
在步骤202A中,获取第i张指纹图像和第j张指纹图像各自的指纹图像面积。In step 202A, the fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image is acquired.
由于用户使用同一姿势按压指纹识别传感器(或在指纹识别传感器上滑动)时,指纹识别传感器采集到的指纹图像的面积较为相近,因此,移动终端可以获取第i张指纹图像和第j张指纹图像各自的指纹图像面积,并以此计算两者的相似度。Since the user presses the fingerprint recognition sensor (or slides on the fingerprint recognition sensor) in the same posture, the fingerprint image acquired by the fingerprint recognition sensor has a relatively similar area, and therefore, the mobile terminal can acquire the ith fingerprint image and the jth fingerprint image. The area of the respective fingerprint image, and the similarity between the two is calculated.
在步骤202B中,获取第i张指纹图像和第j张指纹图像各自的指纹特征点数量。In step 202B, the number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image is acquired.
指纹图像上包含大量的指纹特征点,这些指纹特征点包括指纹纹路的分叉点、三角点、终止点和螺旋中心点等等。当用户使用同一姿势按压指纹识别传感器时,指纹识别传感器采集到的指纹图像中包含的指纹特征点的个数相近,因此,移动终端可以获取第i张指纹图像和第j张指纹图像各自的指纹特征点数量,并以此计算两者的相似度。The fingerprint image contains a large number of fingerprint feature points, including the bifurcation point, the triangle point, the end point and the spiral center point of the fingerprint pattern. When the user presses the fingerprint recognition sensor in the same posture, the number of fingerprint feature points included in the fingerprint image collected by the fingerprint recognition sensor is similar. Therefore, the mobile terminal can acquire the fingerprints of the i-th fingerprint image and the j-th fingerprint image. The number of feature points, and the similarity between the two is calculated.
在步骤202C中,获取第i张指纹图像和第j张指纹图像各自的指纹特征点位置。 In step 202C, the fingerprint feature point positions of the i-th fingerprint image and the j-th fingerprint image are acquired.
同一目标指纹中,不同指纹区域的指纹纹路差异较大,因此,不同指纹区域对应指纹图像上指纹特征点位置分布也存在较大差异。因此,移动终端可以获取第i张指纹图像和第j张指纹图像各自的指纹特征点位置,并以此计算两者的相似度。In the same target fingerprint, the fingerprint patterns of different fingerprint regions are quite different. Therefore, there are also large differences in the location distribution of fingerprint feature points on the fingerprint images corresponding to different fingerprint regions. Therefore, the mobile terminal can acquire the fingerprint feature point positions of the i-th fingerprint image and the j-th fingerprint image, and calculate the similarity between the two.
需要说明的是,本公开并不对识别指纹特征点所采用的方法进行限定。It should be noted that the present disclosure does not limit the method used to identify fingerprint feature points.
在步骤202D中,根据指纹图像面积的比值,和/或,指纹特征点数量的比值,和/或,指纹特征点位置的匹配度,加权计算相似度。In step 202D, the similarity is calculated by weighting according to the ratio of the area of the fingerprint image, and/or the ratio of the number of fingerprint feature points, and/or the matching degree of the fingerprint feature point position.
移动终端根据上述步骤202A至步骤202C获取到的指纹图像面积、指纹特征点数量和指纹特征点位置中的至少一种,计算两个指纹图像的相似度。The mobile terminal calculates the similarity of the two fingerprint images according to at least one of the fingerprint image area, the number of fingerprint feature points, and the fingerprint feature point position acquired in the above steps 202A to 202C.
在一种可能的实施方式中,移动终端根据两个指纹图像各自对应指纹图像面积的比值,确定两个指纹图像的面积相似度;根据两个指纹图像各自对应的指纹特征点数量的比值,确定两个指纹图像的特征点数量相似度;根据两个指纹图像各自对应的指纹特征点位置以及预定匹配算法,移动终端计算两者指纹特征点位置的匹配度,从而确定两个指纹图像的特征点分布相似度。移动终端根据面积相似度、特征点数量相似度、特征点分布相似度以及各自对应的权重值进行加权计算,得到两个指纹图像之间的相似度,其中,面积相似度的权重值≤特征点数量相似度的权重值≤特征点分布相似度的权重值。In a possible implementation, the mobile terminal determines the area similarity of the two fingerprint images according to the ratio of the fingerprint image areas of the two fingerprint images; and determines the ratio of the number of fingerprint feature points corresponding to the two fingerprint images. The similarity degree of the feature points of the two fingerprint images; according to the fingerprint feature point positions corresponding to the two fingerprint images and the predetermined matching algorithm, the mobile terminal calculates the matching degree of the fingerprint feature point positions of the two fingerprint images, thereby determining the feature points of the two fingerprint images Distribution similarity. The mobile terminal performs weighting calculation according to the area similarity, the similarity degree of the feature points, the similarity of the feature point distribution, and the corresponding weight values, and obtains the similarity between the two fingerprint images, wherein the weight value of the area similarity ≤ the feature point The weight value of the quantity similarity ≤ the weight value of the feature point distribution similarity.
可选地,移动终端中预先存储有指纹图像面积的比值与面积相似度之间的对应关系,该对应关系示意性如表一所示。Optionally, the correspondence between the ratio of the area of the fingerprint image and the area similarity is pre-stored in the mobile terminal, and the correspondence is schematically shown in Table 1.
表一Table I
指纹图像面积的比值Ratio of fingerprint image area 面积相似度Area similarity
0.65-0.80.65-0.8 0.70.7
0.8-0.950.8-0.95 0.850.85
0.95-1.00.95-1.0 1.01.0
根据两个指纹图像之间指纹图像面积的比值,移动终端即可通过表一确定两个指纹图像之间的面积相似度。According to the ratio of the area of the fingerprint image between the two fingerprint images, the mobile terminal can determine the area similarity between the two fingerprint images through Table 1.
相似的,移动终端中预先存储有指纹特征点数量的比值与特征点数量相似度之间的对应关系,该对应关系示意性如表二所示。Similarly, the correspondence between the ratio of the number of fingerprint feature points and the similarity of the number of feature points is stored in advance in the mobile terminal, and the correspondence is schematically shown in Table 2.
表二Table II
指纹特征点数量的比值Ratio of the number of fingerprint feature points 特征点数量相似度Feature point quantity similarity
0.6-0.70.6-0.7 0.60.6
0.7-0.90.7-0.9 0.80.8
0.9-1.00.9-1.0 1.01.0
根据两个指纹图像之间指纹特征点数量的比值,移动终端即可通过表二确定两个指纹图像之间的特征点数量相似度。According to the ratio of the number of fingerprint feature points between the two fingerprint images, the mobile terminal can determine the similarity degree of the feature points between the two fingerprint images through Table 2.
比如,移动终端确定两个指纹图像对应的面积相似度为1.0,特征点数量相似度为0.8,且特征点分布相似度为0.85,当面积相似度的权重值=0.1,特征点数量相似度的权重值=0.2,特征点分布相似度的权重值=0.7时,两个指纹图像的相似度即为:1.0*0.1+0.8*0.2+0.95*0.7=0.835。For example, the mobile terminal determines that the area similarity between the two fingerprint images is 1.0, the feature point similarity is 0.8, and the feature point distribution similarity is 0.85, when the area similarity weight value is 0.1, and the feature point quantity similarity When the weight value is 0.2, and the weight value of the feature point distribution similarity is 0.7, the similarity of the two fingerprint images is: 1.0*0.1+0.8*0.2+0.95*0.7=0.835.
需要说明的是,本实施例仅以移动终端依据上述三个维度计算指纹图像相似度为例进行示意性说明,在其他可能的实施方式中,移动终端还可以从指纹图像的指纹轮廓匹配度等方面计算相似度,本实施例并不对此进行限定。It should be noted that, in this embodiment, only the mobile terminal calculates the similarity of the fingerprint image according to the above three dimensions as an example. In other possible implementation manners, the mobile terminal may also obtain the fingerprint contour matching degree of the fingerprint image. Aspects are calculated similarly, which is not limited in this embodiment.
在步骤203中,若第i张指纹图像与第j张指纹图像的相似度大于相似度阈值,获取第i张指纹图像和第j张指纹图像各自的图像质量。In step 203, if the similarity between the i-th fingerprint image and the j-th fingerprint image is greater than the similarity threshold, the image quality of each of the i-th fingerprint image and the j-th fingerprint image is acquired.
当第i张指纹图像与第j张指纹图像的相似度小于相似度阈值时(比如0.8),移动终端确定第i张指纹图像与第j张指纹图像对应的指纹区域不同,并通过指纹识别传感器采集第i+1张指纹图像;当第i张指纹图像与第j张指纹图像的相似度大于相似度阈值时,移动终端确定第i张指纹图像与第j张指纹图像对应的指纹区域相同,并择一删除一张指纹图像。When the similarity between the i-th fingerprint image and the j-th fingerprint image is less than the similarity threshold (such as 0.8), the mobile terminal determines that the fingerprint region corresponding to the i-th fingerprint image and the j-th fingerprint image is different, and uses the fingerprint recognition sensor The i+1th fingerprint image is collected. When the similarity between the i-th fingerprint image and the j-th fingerprint image is greater than the similarity threshold, the mobile terminal determines that the i-th fingerprint image and the j-th fingerprint image correspond to the same fingerprint region. And choose to delete a fingerprint image.
对于同一指纹区域的两张指纹图像,其图像质量存在差异,因此,当第i张指纹图像与第j张指纹图像对应的指纹区域相同时,移动终端进一步根据两者的图像质量确定保留的指纹图像。在一种可能的实施方式中,如图2C所示,本步骤可以包括如下步骤。For the two fingerprint images of the same fingerprint area, the image quality is different. Therefore, when the fingerprint area corresponding to the jth fingerprint image and the jth fingerprint image are the same, the mobile terminal further determines the retained fingerprint according to the image quality of the two. image. In a possible implementation manner, as shown in FIG. 2C, this step may include the following steps.
在步骤203A中,获取第i张指纹图像和第j张指纹图像各自的指纹图像面积。In step 203A, the fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image is acquired.
与上述步骤202A相似的,移动终端获取两个相似指纹图像各自对应的指纹图像面积。Similar to the above step 202A, the mobile terminal acquires the fingerprint image area corresponding to each of the two similar fingerprint images.
在步骤203B中,获取第i张指纹图像和第j张指纹图像各自的指纹特征点数量。In step 203B, the number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image is acquired.
与上述步骤202B相似的,移动终端获取两个相似指纹图像各自对应的指纹特征点数量。Similar to step 202B above, the mobile terminal acquires the number of fingerprint feature points corresponding to each of the two similar fingerprint images.
在步骤203C中,根据指纹图像面积和指纹特征点数量计算第i张指纹图 像和第j张指纹图像各自的特征点密度。In step 203C, the i-th fingerprint is calculated according to the area of the fingerprint image and the number of fingerprint feature points. The feature point density of each of the image and the jth fingerprint image.
单位面积内,指纹图像中包含的指纹特征点数量越多,移动终端能够提取的信息量越多,该指纹图像的图像质量也越高,相应的,根据该指纹图像生成的指纹模板的质量也越高。Within the unit area, the more the number of fingerprint feature points included in the fingerprint image, the more information the mobile terminal can extract, and the higher the image quality of the fingerprint image. Accordingly, the quality of the fingerprint template generated according to the fingerprint image is also The higher.
移动终端根据上述步骤获取到的指纹图像面积和指纹特征点数量,计算两个相似指纹图像各自对应的特征点密度。其中,特征点密度=指纹特征点数量/指纹图像面积。The mobile terminal calculates the feature point density corresponding to each of the two similar fingerprint images according to the fingerprint image area and the number of fingerprint feature points acquired in the above steps. Among them, feature point density = number of fingerprint feature points / fingerprint image area.
比如,移动终端获取到第i张指纹图像的指纹图像面积为0.5cm2,指纹特征点数量为16个,则第i张指纹图像的特征点密度为16/0.5=32个/cm2;移动终端获取到第j张指纹图像的指纹图像面积为0.49cm2,指纹特征点数量为14个,则第j张指纹图像的特征点密度为14/0.49=29个/cm2For example, if the fingerprint image area of the i-th fingerprint image is 0.5 cm 2 and the number of fingerprint feature points is 16, the feature point density of the i-th fingerprint image is 16/0.5=32/cm 2 ; The fingerprint image area of the j-th fingerprint image acquired by the terminal is 0.49 cm 2 , and the number of fingerprint feature points is 14. The feature point density of the j-th fingerprint image is 14/0.49=29/cm 2 .
在步骤203D中,根据特征点密度确定图像质量,特征点密度与图像质量呈正比例关系。In step 203D, the image quality is determined according to the feature point density, and the feature point density is proportional to the image quality.
指纹图像的特征点密度越高,该指纹图像的图像质量越高,移动终端即根据特征点密度确定指纹图像的图像质量。The higher the feature point density of the fingerprint image, the higher the image quality of the fingerprint image, and the mobile terminal determines the image quality of the fingerprint image according to the feature point density.
比如,第i张指纹图像的特征点密度为16/0.5=32个/cm2,第j张指纹图像的特征点密度为14/0.49=29个/cm2,则第i张指纹图像的图像质量高于第j张指纹图像的图像质量。For example, the feature point density of the i-th fingerprint image is 16/0.5=32/cm 2 , and the feature point density of the j-th fingerprint image is 14/0.49=29/cm 2 , then the image of the i-th fingerprint image The quality is higher than the image quality of the jth fingerprint image.
需要说明的是,本实施例仅以特征点密度作为图像质量的衡量标准为例进行说明,并不对本公开构成限定。It should be noted that the present embodiment is described by taking the feature point density as a measure of image quality as an example, and does not limit the present disclosure.
在步骤204中,若第i张指纹图像的图像质量高于第j张指纹图像的图像质量,则从候选指纹图像集中删除第j张指纹图像。In step 204, if the image quality of the i-th fingerprint image is higher than the image quality of the j-th fingerprint image, the j-th fingerprint image is deleted from the candidate fingerprint image set.
当第i张指纹图像的图像质量高于第j张指纹图像的图像质量时,移动终端保留第i张指纹图像,并删除第j张指纹图像。When the image quality of the i-th fingerprint image is higher than the image quality of the j-th fingerprint image, the mobile terminal retains the i-th fingerprint image and deletes the j-th fingerprint image.
在步骤205中,若第i张指纹图像的图像质量低于第j张指纹图像的图像质量,则从候选指纹图像集中删除第i张指纹图像。In step 205, if the image quality of the i-th fingerprint image is lower than the image quality of the j-th fingerprint image, the i-th fingerprint image is deleted from the candidate fingerprint image set.
当第j张指纹图像的图像质量高于第i张指纹图像的图像质量时,移动终端保留第j张指纹图像,并删除第i张指纹图像。When the image quality of the jth fingerprint image is higher than the image quality of the i th fingerprint image, the mobile terminal retains the jth fingerprint image and deletes the i th fingerprint image.
在目标指纹录入过程中,移动终端需要重复执行上述步骤201至步骤205,保证候选指纹图像集中各个指纹图像对应的指纹区域不同,从而提高生成的指纹模板的质量。 During the target fingerprint entry process, the mobile terminal needs to repeatedly perform the above steps 201 to 205 to ensure that the fingerprint regions corresponding to the respective fingerprint images in the candidate fingerprint image set are different, thereby improving the quality of the generated fingerprint template.
在步骤206中,检测候选指纹图像集中指纹图像的数量是否达到第一阈值;若候选指纹图像集中指纹图像的数量达到第一阈值,则确定候选指纹图像集包含的信息量达到阈值。In step 206, it is determined whether the number of fingerprint images in the candidate fingerprint image set reaches a first threshold; if the number of fingerprint images in the candidate fingerprint image set reaches a first threshold, it is determined that the amount of information included in the candidate fingerprint image set reaches a threshold.
为了保证生成的指纹模板中包含足够的信息量,移动终端需要根据多张不同指纹区域的指纹图像生成指纹模板。因此,在一种可能的实施方式中,在目标指纹录入过程中,移动终端检测候选指纹图像集中指纹图像的数量是否达到第一阈值,当指纹图像的数量达到第一阈值时,移动终端确定候选指纹图像集中包含足够的信息量,并根据各个指纹图像生成指纹模板,执行步骤209。In order to ensure that the generated fingerprint template contains sufficient information, the mobile terminal needs to generate a fingerprint template according to the fingerprint images of multiple different fingerprint regions. Therefore, in a possible implementation manner, in the target fingerprint input process, the mobile terminal detects whether the number of fingerprint images in the candidate fingerprint image set reaches a first threshold, and when the number of the fingerprint images reaches the first threshold, the mobile terminal determines the candidate. The fingerprint image set contains a sufficient amount of information, and generates a fingerprint template according to each fingerprint image, and step 209 is performed.
比如,该第一阈值可以为6,即候选指纹图像集中指纹图像的数量达到6时,移动终端即确定候选指纹图像集中包含足够的信息量。For example, the first threshold may be 6, that is, when the number of fingerprint images in the candidate fingerprint image set reaches 6, the mobile terminal determines that the candidate fingerprint image set contains sufficient information amount.
在步骤207中,检测候选指纹图像集中各张指纹图像的指纹特征点总和是否达到第二阈值;若候选指纹图像集中各张指纹图像的指纹特征点总和达到第二阈值,则确定候选指纹图像集包含的信息量达到阈值。In step 207, it is detected whether the sum of the fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold; if the sum of the fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold, determining the candidate fingerprint image set The amount of information contained reaches the threshold.
为了保证指纹识别的成功率,生成的指纹模板中需要包含足够的信息量,该信息量可以指指纹模板中包含的指纹特征点的数量。In order to ensure the success rate of the fingerprint identification, the generated fingerprint template needs to contain a sufficient amount of information, and the amount of information may refer to the number of fingerprint feature points included in the fingerprint template.
在一种可能的实施方式中,在目标指纹录入过程中,移动终端检测候选指纹图像集中各张指纹图像的指纹特征点总和是否达到第二阈值,当指纹特征点总和达到第二阈值时,移动终端确定候选指纹图像集包含足够的信息量,并根据各个指纹图像生成指纹模板,执行步骤209。In a possible implementation manner, in the target fingerprint input process, the mobile terminal detects whether the sum of the fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold, and when the sum of the fingerprint feature points reaches the second threshold, the mobile terminal moves. The terminal determines that the candidate fingerprint image set contains a sufficient amount of information, and generates a fingerprint template according to each fingerprint image, and performs step 209.
比如,该第二阈值可以为200,即候选指纹图像集中各张指纹图像的指纹特征点总和达到200时,移动终端确定候选指纹图像集包含足够的信息量。For example, the second threshold may be 200, that is, when the sum of the fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches 200, the mobile terminal determines that the candidate fingerprint image set contains a sufficient amount of information.
在步骤208中,检测候选指纹图像集中各张指纹图像的指纹面积总和是否达到第三阈值;若候选指纹图像集中各张指纹图像的指纹面积总和达到第三阈值,则确定候选指纹图像集包含的信息量达到阈值。In step 208, it is detected whether the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold; if the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold, determining that the candidate fingerprint image set includes The amount of information reaches the threshold.
通常情况下,用户手指的指纹区域总面积在特定数值区间,因此,在一种可能的实施方式中,移动终端检测候选指纹图像集中各张指纹图像的指纹面积总和是否达到第三阈值,当指纹面积总和达到第三阈值时,移动终端确定候选指纹图像集包含足够的信息量,并根据各个指纹图像生成指纹模板。其中,第三阈值可以为特定数值区间上限的n倍,n≥2。Generally, the total area of the fingerprint area of the user's finger is in a certain value interval. Therefore, in a possible implementation manner, the mobile terminal detects whether the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold. When the sum of the areas reaches the third threshold, the mobile terminal determines that the candidate fingerprint image set contains a sufficient amount of information, and generates a fingerprint template according to each fingerprint image. Wherein, the third threshold may be n times the upper limit of the specific numerical interval, and n≥2.
比如,该第三阈值可以为4cm2,即候选指纹图像集中各张指纹图像的指纹面积总和达到4cm2时,移动终端确定候选指纹图像集包含足够的信息量。 For example, the third threshold may be 4 cm 2 , that is, when the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches 4 cm 2 , the mobile terminal determines that the candidate fingerprint image set contains a sufficient amount of information.
在步骤209中,当候选指纹图像集包含的信息量达到阈值时,根据候选指纹图像集中的各张指纹图像生成指纹模板。In step 209, when the amount of information included in the candidate fingerprint image set reaches a threshold, a fingerprint template is generated according to each fingerprint image in the candidate fingerprint image set.
移动终端根据若干个指纹图像生成指纹模板时,可以根据指纹图像的边缘特征点分布确定各个指纹图像之间的邻接关系,并根据该邻接关系对若干个指纹图像进行拼接,从而生成指纹模板,本公开并不对生成指纹模板的具体方式进行限定。When the mobile terminal generates a fingerprint template according to the plurality of fingerprint images, the adjacency relationship between the fingerprint images may be determined according to the edge feature point distribution of the fingerprint image, and the plurality of fingerprint images are spliced according to the adjacency relationship, thereby generating a fingerprint template. The disclosure does not limit the specific way in which a fingerprint template is generated.
综上所述,本实施例提供的指纹模板生成方法,通过在目标指纹录入阶段,计算当前获取到的指纹图像与之前获取到的指纹图像之间的相似度,并在两个指纹图像的相似度大于相似度阈值时,保留其中一个指纹图像用于生成指纹模板;解决了通过多次录入方法重复录用同一区域的指纹图像生成指纹模板,导致生成的指纹模板仅适用于部分指纹区域,影响指纹识别的成功率的问题;达到了候选指纹图像集中各个指纹图像对应的指纹区域各不相同,使得生成的指纹模板能够覆盖目标指纹的整个指纹区域,保证了指纹模板的质量,从而提高指纹识别的成功率。In summary, the fingerprint template generation method provided by the embodiment calculates the similarity between the currently acquired fingerprint image and the previously acquired fingerprint image in the target fingerprint input stage, and is similar in the two fingerprint images. When the degree is greater than the similarity threshold, one of the fingerprint images is reserved for generating the fingerprint template; the fingerprint template generated by repeatedly recording the same area is generated by the multiple entry method, and the generated fingerprint template is only applicable to the partial fingerprint area, affecting the fingerprint. The problem of the success rate of recognition; the fingerprint areas corresponding to each fingerprint image in the candidate fingerprint image set are different, so that the generated fingerprint template can cover the entire fingerprint area of the target fingerprint, thereby ensuring the quality of the fingerprint template, thereby improving fingerprint recognition. Success rate.
本实施例中,当获取到对应指纹区域相同的两张指纹图像时,移动终端根据指纹图像各自的图像质量,保留图像质量较高的指纹图像,并对图像质量较差的指纹图像进行删除,从而进一步提高了生成了指纹模板的质量。In this embodiment, when two fingerprint images having the same fingerprint area are acquired, the mobile terminal retains the fingerprint image with higher image quality according to the image quality of the fingerprint image, and deletes the fingerprint image with poor image quality. Thereby the quality of the generated fingerprint template is further improved.
本实施例中,移动终端从指纹图像数量、指纹图像面积总和以及指纹图像特征点总和三个维度确定候选指纹图像集中是否包含足够信息量,并在候选指纹图像集中包含足够信息量时停止获取指纹图像,生成相应的指纹模板,从而确保生成的指纹模板中包含足够信息量,提高了利用该指纹模板进行指纹识别时的识别成功率。In this embodiment, the mobile terminal determines whether the candidate fingerprint image set contains sufficient information amount from three dimensions of the number of fingerprint images, the sum of the fingerprint image area, and the sum of the fingerprint image feature points, and stops acquiring the fingerprint when the candidate fingerprint image set contains sufficient information amount. The image is generated to generate a corresponding fingerprint template, thereby ensuring that the generated fingerprint template contains sufficient information amount, and the recognition success rate when using the fingerprint template for fingerprint recognition is improved.
为了提高指纹录入的效率,当获取到对应同一指纹区域的两张指纹图像时,移动终端显示相应的提示信息,提示用户录入不同指纹区域的指纹图像。在一种可能的实施方式中,基于图2A所示的实施例,如图2D所示,上述步骤204之后包括步骤211,上述步骤205之后包括步骤210。In order to improve the efficiency of fingerprint entry, when two fingerprint images corresponding to the same fingerprint area are acquired, the mobile terminal displays corresponding prompt information, prompting the user to input fingerprint images of different fingerprint areas. In a possible implementation manner, based on the embodiment shown in FIG. 2A, as shown in FIG. 2D, the above step 204 includes step 211, and the above step 205 includes step 210.
在步骤210中,当从候选指纹图像集中删除第i张指纹图像时,显示第一提示信息,第一提示信息用于指示第i张指纹图像与第j张指纹图像对应同一指纹区域。In step 210, when the i-th fingerprint image is deleted from the candidate fingerprint image set, the first prompt information is displayed, and the first prompt information is used to indicate that the i-th fingerprint image and the j-th fingerprint image correspond to the same fingerprint region.
当删除候选指纹图像集中新增的第i张指纹图像时,表示之前录入的第j 张指纹图像已覆盖第i张指纹图像所指的指纹区域,且第i张指纹图像的图像效果不如第j张指纹图像的图像效果。移动终端即显示第一提示信息,指示用户第i张指纹图像与第j张指纹图像对应同一指纹区域的同时,提示用户录入其它指纹区域的指纹图像。When the first i-th fingerprint image added in the candidate fingerprint image set is deleted, it indicates the j-th entry previously entered. The fingerprint image has covered the fingerprint area indicated by the i-th fingerprint image, and the image effect of the i-th fingerprint image is not as good as the image effect of the j-th fingerprint image. The mobile terminal displays the first prompt information, indicating that the user's i-th fingerprint image and the j-th fingerprint image correspond to the same fingerprint area, and prompts the user to enter the fingerprint image of the other fingerprint area.
比如,如图2E所示,用户根据提示录入第2张指纹图像,当第2张指纹图像与第1张指纹图像对应同一指纹区域,且第1张指纹图像的图像质量优于第2张指纹图像时,移动终端即在指纹录入界面21中显示第一提示信息22。For example, as shown in FIG. 2E, the user enters the second fingerprint image according to the prompt, when the second fingerprint image and the first fingerprint image correspond to the same fingerprint region, and the image quality of the first fingerprint image is better than the second fingerprint. At the time of the image, the mobile terminal displays the first prompt information 22 in the fingerprint entry interface 21.
在步骤211中,当从候选指纹图像集中删除第j张指纹图像时,显示第二提示信息,第二提示信息用于指示已利用第i张指纹图像替换第j张指纹图像。In step 211, when the jth fingerprint image is deleted from the candidate fingerprint image set, the second prompt information is displayed, and the second prompt information is used to indicate that the jth fingerprint image has been replaced with the ith fingerprint image.
当删除候选指纹图像集中的第j张指纹图像时,表示之前录入的第j张指纹图像已覆盖第i张指纹图像对应的指纹区域,但是第i张指纹图像的图像质量优于第j张指纹图像的图像质量。移动终端即显示第二提示信息,提示用户已利用第i张指纹图像替换第j张指纹图像的同时,提示用户录入其它指纹区域的指纹图像。When the j-th fingerprint image in the candidate fingerprint image set is deleted, it indicates that the j-th fingerprint image previously recorded has covered the fingerprint region corresponding to the i-th fingerprint image, but the image quality of the i-th fingerprint image is better than the j-th fingerprint The image quality of the image. The mobile terminal displays the second prompt information, prompting the user to replace the j-th fingerprint image with the ith fingerprint image, and prompting the user to enter the fingerprint image of the other fingerprint region.
比如,如图2F所示,用户根据提示录入第2张指纹图像,当第2张指纹图像与第1张指纹图像对应同一指纹区域,且第2张指纹图像的图像质量优于第1张指纹图像时,移动终端即在指纹录入界面21中显示第二提示信息23。For example, as shown in FIG. 2F, the user enters the second fingerprint image according to the prompt, when the second fingerprint image and the first fingerprint image correspond to the same fingerprint region, and the image quality of the second fingerprint image is better than the first fingerprint image. At the time of the image, the mobile terminal displays the second prompt information 23 in the fingerprint entry interface 21.
需要说明的是,移动终端还可以根据已录入指纹图像对应的的指纹区域,确定出未覆盖的指纹区域,并将该指纹区域的信息添加到第一提示信息或第二提示信息中,从而进一步提高用户的指纹录入效率,本公开并不对此进行限定。It should be noted that the mobile terminal may further determine an uncovered fingerprint area according to the fingerprint area corresponding to the fingerprint image, and add information of the fingerprint area to the first prompt information or the second prompt information, thereby further The user's fingerprint entry efficiency is improved, and the disclosure does not limit this.
本实施例中,移动终端采用不同的提示方式提示用户指纹录入的情况,使得用户可以调整录入指纹的姿势,提高了指纹录入的效率,并保证录入的指纹图像能够覆盖各个指纹区域。In this embodiment, the mobile terminal uses different prompting manners to prompt the user to enter the fingerprint, so that the user can adjust the posture of entering the fingerprint, improve the efficiency of fingerprint input, and ensure that the fingerprint image entered can cover each fingerprint area.
为了避免用户故意反复录入同一指纹区域的指纹图像,导致指纹录入无法完成,在一种可能的实施方式中,当删除的指纹图像的数量达到阈值时,移动终端显示相应的提示信息。基于图2A所示的实施例,如图2G所示,上述步骤204和步骤205之后,还包括如下步骤。In order to prevent the user from accidentally re-entering the fingerprint image of the same fingerprint area, the fingerprint input cannot be completed. In a possible implementation manner, when the number of deleted fingerprint images reaches a threshold, the mobile terminal displays corresponding prompt information. Based on the embodiment shown in FIG. 2A, as shown in FIG. 2G, after the above step 204 and step 205, the following steps are further included.
在步骤212中,当删除的指纹图像的数量达到第四阈值时,显示第三提示信息,第三提示信息用于指示指纹录入失败。In step 212, when the number of deleted fingerprint images reaches the fourth threshold, the third prompt information is displayed, and the third prompt information is used to indicate that the fingerprint entry fails.
比如,如图2H所示,该第四阈值为6,即当删除的指纹图像的数量达到6 时,移动终端在指纹录入界面21中显示第三提示信息24,指示用户此次录入失败。For example, as shown in FIG. 2H, the fourth threshold is 6, that is, when the number of deleted fingerprint images reaches 6 When the mobile terminal displays the third prompt information 24 in the fingerprint entry interface 21, the user is instructed to fail the entry.
本实施例中,当删除的指纹图像的数量达到阈值时,移动终端显示相应的提示信息,并终止此次指纹录入,从而避免用户故意反复录入同一指纹区域的指纹图像所造成的处理资源浪费。In this embodiment, when the number of the deleted fingerprint images reaches the threshold, the mobile terminal displays the corresponding prompt information, and terminates the fingerprint entry, thereby avoiding waste of processing resources caused by the user intentionally repeatedly inputting the fingerprint image of the same fingerprint area.
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following is an apparatus embodiment of the present disclosure, which may be used to implement the method embodiments of the present disclosure. For details not disclosed in the disclosed device embodiments, please refer to the method embodiments of the present disclosure.
图3示出了一示意性实施例提供的指纹模板生成装置的结构示意图。该指纹模板生成装置可以通过专用硬件电路,或者,软硬件的结合实现成为配置有指纹识别传感器的电子设备的全部或一部分,该指纹模板生成装置包括:FIG. 3 is a schematic structural diagram of a fingerprint template generating apparatus provided by an exemplary embodiment. The fingerprint template generating device may be implemented as a whole or a part of an electronic device configured with a fingerprint recognition sensor by using a dedicated hardware circuit or a combination of software and hardware. The fingerprint template generating device includes:
添加模块310,被配置为在目标指纹的录入过程中,将指纹识别传感器采集到的第i张指纹图像添加到目标指纹对应的候选指纹图像集,i≥2,且i为自然数;The adding module 310 is configured to add, in the process of inputting the target fingerprint, the ith fingerprint image collected by the fingerprint recognition sensor to the candidate fingerprint image set corresponding to the target fingerprint, i≥2, and i is a natural number;
计算模块320,被配置为计算候选指纹图像集中第i张指纹图像与第j张指纹图像的相似度,j<i,且j为自然数;The calculating module 320 is configured to calculate a similarity between the i-th fingerprint image and the j-th fingerprint image in the candidate fingerprint image set, j<i, and j is a natural number;
删除模块330,被配置为若第i张指纹图像与第j张指纹图像的相似度大于相似度阈值,则从候选指纹图像集中删除第i张指纹图像或第j张指纹图像;The deleting module 330 is configured to: if the similarity between the i-th fingerprint image and the j-th fingerprint image is greater than a similarity threshold, delete the i-th fingerprint image or the j-th fingerprint image from the candidate fingerprint image set;
检测模块340,被配置为检测候选指纹图像集包含的信息量是否达到阈值;The detecting module 340 is configured to detect whether the amount of information included in the candidate fingerprint image set reaches a threshold;
生成模块350,被配置为当候选指纹图像集包含的信息量达到阈值时,根据候选指纹图像集中的各张指纹图像生成指纹模板。The generating module 350 is configured to generate a fingerprint template according to each fingerprint image in the candidate fingerprint image set when the amount of information included in the candidate fingerprint image set reaches a threshold.
综上所述,本实施例提供的指纹模板生成装置,通过在目标指纹录入阶段,计算当前获取到的指纹图像与之前获取到的指纹图像之间的相似度,并在两个指纹图像的相似度大于相似度阈值时,保留其中一个指纹图像用于生成指纹模板;解决了通过多次录入方法重复录用同一区域的指纹图像生成指纹模板,导致生成的指纹模板仅适用于部分指纹区域,影响指纹识别的成功率的问题;达到了候选指纹图像集中各个指纹图像对应的指纹区域各不相同,使得生成的指纹模板能够覆盖目标指纹的整个指纹区域,保证了指纹模板的质量,从而提高指纹识别的成功率。In summary, the fingerprint template generating apparatus provided in this embodiment calculates the similarity between the currently acquired fingerprint image and the previously acquired fingerprint image in the target fingerprint input stage, and is similar in the two fingerprint images. When the degree is greater than the similarity threshold, one of the fingerprint images is reserved for generating the fingerprint template; the fingerprint template generated by repeatedly recording the same area is generated by the multiple entry method, and the generated fingerprint template is only applicable to the partial fingerprint area, affecting the fingerprint. The problem of the success rate of recognition; the fingerprint areas corresponding to each fingerprint image in the candidate fingerprint image set are different, so that the generated fingerprint template can cover the entire fingerprint area of the target fingerprint, thereby ensuring the quality of the fingerprint template, thereby improving fingerprint recognition. Success rate.
图4示出了另一示意性实施例提供的指纹模板生成装置的结构示意图。该 指纹模板生成装置可以通过专用硬件电路,或者,软硬件的结合实现成为配置有指纹识别传感器的电子设备的全部或一部分,该指纹模板生成装置包括:FIG. 4 is a schematic structural diagram of a fingerprint template generating apparatus provided by another exemplary embodiment. The The fingerprint template generating device may be implemented as a whole or a part of an electronic device configured with a fingerprint recognition sensor by using a dedicated hardware circuit or a combination of software and hardware. The fingerprint template generating device includes:
添加模块410,被配置为在目标指纹的录入过程中,将指纹识别传感器采集到的第i张指纹图像添加到目标指纹对应的候选指纹图像集,i≥2;The adding module 410 is configured to add the ith fingerprint image collected by the fingerprint recognition sensor to the candidate fingerprint image set corresponding to the target fingerprint during the input process of the target fingerprint, i≥2;
计算模块420,被配置为计算候选指纹图像集中第i张指纹图像与第j张指纹图像的相似度,j<i;The calculating module 420 is configured to calculate a similarity between the i-th fingerprint image and the j-th fingerprint image in the candidate fingerprint image set, j<i;
删除模块430,被配置为若第i张指纹图像与第j张指纹图像的相似度大于相似度阈值,则从候选指纹图像集中删除第i张指纹图像或第j张指纹图像;The deleting module 430 is configured to: if the similarity between the i-th fingerprint image and the j-th fingerprint image is greater than a similarity threshold, delete the i-th fingerprint image or the j-th fingerprint image from the candidate fingerprint image set;
检测模块440,被配置为检测候选指纹图像集包含的信息量是否达到阈值;The detecting module 440 is configured to detect whether the amount of information included in the candidate fingerprint image set reaches a threshold;
生成模块450,被配置为当候选指纹图像集包含的信息量达到阈值时,根据候选指纹图像集中的各张指纹图像生成指纹模板。The generating module 450 is configured to generate a fingerprint template according to each fingerprint image in the candidate fingerprint image set when the amount of information included in the candidate fingerprint image set reaches a threshold.
可选地,删除模块430,包括:Optionally, the deleting module 430 includes:
获取子模块431,被配置为获取第i张指纹图像和第j张指纹图像各自的图像质量;The obtaining submodule 431 is configured to acquire image quality of each of the i-th fingerprint image and the j-th fingerprint image;
第一删除子模块432,被配置为若第i张指纹图像的图像质量高于第j张指纹图像的图像质量,则从候选指纹图像集中删除第j张指纹图像;The first deletion sub-module 432 is configured to delete the j-th fingerprint image from the candidate fingerprint image set if the image quality of the i-th fingerprint image is higher than the image quality of the j-th fingerprint image;
第二删除子模块433,被配置为若第i张指纹图像的图像质量低于第j张指纹图像的图像质量,则从候选指纹图像集中删除第i张指纹图像。The second deletion sub-module 433 is configured to delete the i-th fingerprint image from the candidate fingerprint image set if the image quality of the i-th fingerprint image is lower than the image quality of the j-th fingerprint image.
可选地,获取子模块431,包括:Optionally, the obtaining submodule 431 includes:
面积获取子模块431a,被配置为获取第i张指纹图像和第j张指纹图像各自的指纹图像面积;The area obtaining sub-module 431a is configured to acquire a fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image;
数量获取子模块431b,被配置为获取第i张指纹图像和第j张指纹图像各自的指纹特征点数量;The quantity acquisition sub-module 431b is configured to acquire the number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image;
密度计算子模块431c,被配置为根据指纹图像面积和指纹特征点数量计算第i张指纹图像和所述第j张指纹图像各自的特征点密度;The density calculation sub-module 431c is configured to calculate a feature point density of each of the i-th fingerprint image and the j-th fingerprint image according to the fingerprint image area and the number of fingerprint feature points;
确定子模块431d,被配置为根据特征点密度确定图像质量,特征点密度与图像质量呈正比例关系。The determining sub-module 431d is configured to determine the image quality according to the feature point density, and the feature point density is proportional to the image quality.
可选地,检测模块440,包括:Optionally, the detecting module 440 includes:
第一检测子模块441,被配置为检测候选指纹图像集中指纹图像的数量是否达到第一阈值;若候选指纹图像集中指纹图像的数量达到第一阈值,则确定候选指纹图像集包含的信息量达到阈值; The first detecting sub-module 441 is configured to detect whether the number of fingerprint images in the candidate fingerprint image set reaches a first threshold; if the number of fingerprint images in the candidate fingerprint image set reaches a first threshold, determining that the amount of information included in the candidate fingerprint image set reaches Threshold value
和/或,and / or,
第二检测子模块442,被配置为检测候选指纹图像集中各张指纹图像的指纹特征点总和是否达到第二阈值;若候选指纹图像集中各张指纹图像的指纹特征点总和达到第二阈值,则确定候选指纹图像集包含的信息量达到阈值;The second detecting sub-module 442 is configured to detect whether the sum of the fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold; if the sum of the fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold, then Determining that the amount of information included in the candidate fingerprint image set reaches a threshold;
和/或,and / or,
第三检测子模块443,被配置为检测候选指纹图像集中各张指纹图像的指纹面积总和是否达到第三阈值;若候选指纹图像集中各张指纹图像的指纹面积总和达到第三阈值,则确定候选指纹图像集包含的信息量达到阈值The third detecting sub-module 443 is configured to detect whether the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold; if the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold, determining the candidate The amount of information contained in the fingerprint image set reaches the threshold
可选地,计算模块420,包括:Optionally, the calculating module 420 includes:
第一获取子模块421,被配置为获取第i张指纹图像和第j张指纹图像各自的指纹图像面积;The first obtaining submodule 421 is configured to acquire a fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image;
第二获取子模块422,被配置为获取第i张指纹图像和第j张指纹图像各自的指纹特征点数量;The second obtaining sub-module 422 is configured to acquire the number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image;
第三获取子模块423,被配置为获取第i张指纹图像和第j张指纹图像各自的指纹特征点位置;The third obtaining submodule 423 is configured to acquire a fingerprint feature point position of each of the i-th fingerprint image and the j-th fingerprint image;
计算子模块424,被配置为根据指纹图像面积的比值,和/或,指纹特征点数量的比值,和/或,指纹特征点位置的匹配度,加权计算相似度。The calculation sub-module 424 is configured to calculate the similarity by weight according to the ratio of the area of the fingerprint image, and/or the ratio of the number of fingerprint feature points, and/or the matching degree of the fingerprint feature point position.
可选地,该装置,还包括:Optionally, the device further includes:
第一显示模块460,被配置为当从候选指纹图像集中删除第i张指纹图像时,显示第一提示信息,第一提示信息用于指示第i张指纹图像与第j张指纹图像对应同一指纹区域;The first display module 460 is configured to display the first prompt information when the ith fingerprint image is deleted from the candidate fingerprint image set, where the first prompt information is used to indicate that the ith fingerprint image and the jth fingerprint image correspond to the same fingerprint region;
第二显示模块470,被配置为当从候选指纹图像集中删除第j张指纹图像时,显示第二提示信息,第二提示信息用于指示已利用第i张指纹图像替换第j张指纹图像。The second display module 470 is configured to display the second prompt information when the j-th fingerprint image is deleted from the candidate fingerprint image set, and the second prompt information is used to indicate that the j-th fingerprint image has been replaced with the ith fingerprint image.
可选地,该装置,还包括:Optionally, the device further includes:
第三显示模块480,被配置为当删除的指纹图像的数量达到第四阈值时,显示第三提示信息,第三提示信息用于指示指纹录入失败。The third display module 480 is configured to display a third prompt information when the number of deleted fingerprint images reaches a fourth threshold, and the third prompt information is used to indicate that the fingerprint entry fails.
综上所述,本实施例提供的指纹模板生成装置,通过在目标指纹录入阶段,计算当前获取到的指纹图像与之前获取到的指纹图像之间的相似度,并在两个指纹图像的相似度大于相似度阈值时,保留其中一个指纹图像用于生成指纹模板;解决了通过多次录入方法重复录用同一区域的指纹图像生成指纹模板,导 致生成的指纹模板仅适用于部分指纹区域,影响指纹识别的成功率的问题;达到了候选指纹图像集中各个指纹图像对应的指纹区域各不相同,使得生成的指纹模板能够覆盖目标指纹的整个指纹区域,保证了指纹模板的质量,从而提高指纹识别的成功率。In summary, the fingerprint template generating apparatus provided in this embodiment calculates the similarity between the currently acquired fingerprint image and the previously acquired fingerprint image in the target fingerprint input stage, and is similar in the two fingerprint images. When the degree is greater than the similarity threshold, one of the fingerprint images is reserved for generating the fingerprint template; and the fingerprint template for generating the fingerprint image of the same area is repeatedly generated by the multiple entry method, and the fingerprint template is generated. The generated fingerprint template is only applicable to the partial fingerprint area, which affects the success rate of fingerprint recognition; the fingerprint areas corresponding to each fingerprint image in the candidate fingerprint image set are different, so that the generated fingerprint template can cover the entire fingerprint of the target fingerprint. The area ensures the quality of the fingerprint template, thereby improving the success rate of fingerprint recognition.
本实施例中,当获取到对应指纹区域相同的两张指纹图像时,移动终端根据指纹图像各自的图像质量,保留图像质量较高的指纹图像,并对图像质量较差的指纹图像进行删除,从而进一步提高了生成了指纹模板的质量。In this embodiment, when two fingerprint images having the same fingerprint area are acquired, the mobile terminal retains the fingerprint image with higher image quality according to the image quality of the fingerprint image, and deletes the fingerprint image with poor image quality. Thereby the quality of the generated fingerprint template is further improved.
本实施例中,移动终端从指纹图像数量、指纹图像面积总和以及指纹图像特征点总和三个维度确定候选指纹图像集中是否包含足够信息量,并在候选指纹图像集中包含足够信息量时停止获取指纹图像,生成相应的指纹模板,从而确保生成的指纹模板中包含足够信息量,提高了利用该指纹模板进行指纹识别时的识别成功率。In this embodiment, the mobile terminal determines whether the candidate fingerprint image set contains sufficient information amount from three dimensions of the number of fingerprint images, the sum of the fingerprint image area, and the sum of the fingerprint image feature points, and stops acquiring the fingerprint when the candidate fingerprint image set contains sufficient information amount. The image is generated to generate a corresponding fingerprint template, thereby ensuring that the generated fingerprint template contains sufficient information amount, and the recognition success rate when using the fingerprint template for fingerprint recognition is improved.
本实施例中,移动终端采用不同的提示方式提示用户指纹录入的情况,使得用户可以调整录入指纹的姿势,提高了指纹录入的效率,并保证录入的指纹图像能够覆盖各个指纹区域。In this embodiment, the mobile terminal uses different prompting manners to prompt the user to enter the fingerprint, so that the user can adjust the posture of entering the fingerprint, improve the efficiency of fingerprint input, and ensure that the fingerprint image entered can cover each fingerprint area.
本实施例中,当删除的指纹图像的数量达到阈值时,移动终端显示相应的提示信息,并终止此次指纹录入,从而避免用户故意反复录入同一指纹区域的指纹图像所造成的处理资源浪费。In this embodiment, when the number of the deleted fingerprint images reaches the threshold, the mobile terminal displays the corresponding prompt information, and terminates the fingerprint entry, thereby avoiding waste of processing resources caused by the user intentionally repeatedly inputting the fingerprint image of the same fingerprint area.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。With regard to the apparatus in the above embodiments, the specific manner in which the respective modules perform the operations has been described in detail in the embodiment relating to the method, and will not be explained in detail herein.
图5是根据一示意性实施例示出的移动终端的框图。例如,移动终端500可以是配置有指纹识别传感器的智能手机、平板电脑、电子书阅读器或个人计算机等等。FIG. 5 is a block diagram of a mobile terminal, according to an exemplary embodiment. For example, the mobile terminal 500 may be a smartphone, a tablet, an e-book reader, or a personal computer or the like configured with a fingerprint recognition sensor.
参照图5,移动终端500可以包括以下一个或多个组件:处理组件502,存储器504,电源组件506,多媒体组件508,音频组件510,输入/输出(I/O)接口512,传感器组件514,以及通信组件516。Referring to FIG. 5, the mobile terminal 500 can include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, and a sensor component 514, And a communication component 516.
处理组件502通常控制移动终端500的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件502可以包括一个或多个处理器518来执行指令,以完成上述的方法的全部或部分步骤。此外,处 理组件502可以包括一个或多个模块,便于处理组件502和其他组件之间的交互。例如,处理组件502可以包括多媒体模块,以方便多媒体组件508和处理组件502之间的交互。 Processing component 502 typically controls the overall operations of mobile terminal 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 502 can include one or more processors 518 to execute instructions to perform all or part of the steps described above. In addition, The component 502 can include one or more modules to facilitate interaction between the component 502 and other components. For example, processing component 502 can include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
存储器504被配置为存储各种类型的数据以支持在移动终端500的操作。这些数据的示例包括用于在移动终端500上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器504可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 504 is configured to store various types of data to support operation at the mobile terminal 500. Examples of such data include instructions for any application or method operating on the mobile terminal 500, contact data, phone book data, messages, pictures, videos, and the like. The memory 504 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable. Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
电源组件506为移动终端500的各种组件提供电力。电源组件506可以包括电源管理系统,一个或多个电源,及其他与为移动终端500生成、管理和分配电力相关联的组件。 Power component 506 provides power to various components of mobile terminal 500. Power component 506 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for mobile terminal 500.
多媒体组件508包括在移动终端500和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件508包括一个前置摄像头和/或后置摄像头。当移动终端500处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 508 includes a screen that provides an output interface between the mobile terminal 500 and the user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can sense not only the boundaries of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and/or a rear camera. When the mobile terminal 500 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件510被配置为输出和/或输入音频信号。例如,音频组件510包括一个麦克风(MIC),当移动终端500处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器504或经由通信组件516发送。在一些实施例中,音频组件510还包括一个扬声器,用于输出音频信号。The audio component 510 is configured to output and/or input an audio signal. For example, the audio component 510 includes a microphone (MIC) that is configured to receive an external audio signal when the mobile terminal 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting an audio signal.
I/O接口512为处理组件502和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。 The I/O interface 512 provides an interface between the processing component 502 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
传感器组件514包括一个或多个传感器,用于为移动终端500提供各个方面的状态评估。例如,传感器组件514可以检测到移动终端500的打开/关闭状态,组件的相对定位,例如组件为移动终端500的显示器和小键盘,传感器组件514还可以检测移动终端500或移动终端500一个组件的位置改变,用户与移动终端500接触的存在或不存在,移动终端500方位或加速/减速和移动终端500的温度变化。传感器组件514可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件514还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件514还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。本实施例中,传感器组件514中包括指纹识别传感器,该指纹识别传感器是用于采集用户的指纹图像的(集成在按键中的)按压式指纹传感器或滑动式指纹识别传感器。 Sensor component 514 includes one or more sensors for providing various aspects of state assessment for mobile terminal 500. For example, sensor component 514 can detect an open/closed state of mobile terminal 500, relative positioning of components, such as a display and keypad of mobile terminal 500, and sensor component 514 can also detect a component of mobile terminal 500 or mobile terminal 500. The location changes, the presence or absence of contact of the user with the mobile terminal 500, the orientation or acceleration/deceleration of the mobile terminal 500, and the temperature change of the mobile terminal 500. Sensor assembly 514 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 514 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor. In this embodiment, the sensor component 514 includes a fingerprint recognition sensor, which is a push-type fingerprint sensor or a sliding fingerprint recognition sensor (integrated in a button) for collecting a fingerprint image of the user.
通信组件516被配置为便于移动终端500和其他设备之间有线或无线方式的通信。移动终端500可以接入基于通信标准的无线网络,如Wi-Fi,2G或3G,或它们的组合。在一个示意性实施例中,通信组件516经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示意性实施例中,通信组件516还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。 Communication component 516 is configured to facilitate wired or wireless communication between mobile terminal 500 and other devices. The mobile terminal 500 can access a wireless network based on a communication standard such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, communication component 516 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel. In an illustrative embodiment, communication component 516 also includes a near field communication (NFC) module to facilitate short range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
在示意性实施例中,移动终端500可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述信息接收方法。In an exemplary embodiment, mobile terminal 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), A program gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the above information receiving method.
在示意性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器504,上述指令可由移动终端500的处理器518执行以完成上述指纹模板生成方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an illustrative embodiment, there is also provided a non-transitory computer readable storage medium comprising instructions, such as a memory 504 comprising instructions executable by processor 518 of mobile terminal 500 to perform the fingerprint template generation method described above. For example, the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开 的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示意性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be apparent to those skilled in the <RTIgt; The application is intended to cover any variations, uses, or adaptations of the disclosure, which are in accordance with the general principles of the disclosure and Common knowledge or conventional techniques in the art. The specification and examples are to be regarded as illustrative only,
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。 It is to be understood that the invention is not limited to the details of the details and The scope of the disclosure is to be limited only by the appended claims.

Claims (15)

  1. 一种指纹模板生成方法,其特征在于,所述方法包括:A method for generating a fingerprint template, the method comprising:
    在目标指纹的录入过程中,将指纹识别传感器采集到的第i张指纹图像添加到所述目标指纹对应的候选指纹图像集,i≥2,且i为自然数;In the process of inputting the target fingerprint, the ith fingerprint image collected by the fingerprint recognition sensor is added to the candidate fingerprint image set corresponding to the target fingerprint, i≥2, and i is a natural number;
    计算所述候选指纹图像集中所述第i张指纹图像与第j张指纹图像的相似度,j<i,且j为自然数;Calculating a similarity between the ith fingerprint image and the jth fingerprint image in the candidate fingerprint image set, j<i, and j is a natural number;
    若所述第i张指纹图像与所述第j张指纹图像的相似度大于相似度阈值,则从所述候选指纹图像集中删除所述第i张指纹图像或所述第j张指纹图像;If the similarity between the ith fingerprint image and the jth fingerprint image is greater than a similarity threshold, deleting the ith fingerprint image or the jth fingerprint image from the candidate fingerprint image set;
    检测所述候选指纹图像集包含的信息量是否达到阈值;Detecting whether the amount of information included in the candidate fingerprint image set reaches a threshold;
    当所述候选指纹图像集包含的信息量达到所述阈值时,根据所述候选指纹图像集中的各张指纹图像生成指纹模板。When the amount of information included in the candidate fingerprint image set reaches the threshold, a fingerprint template is generated according to each fingerprint image in the candidate fingerprint image set.
  2. 根据权利要求1所述的方法,其特征在于,所述从所述候选指纹图像集中删除所述第i张指纹图像或所述第j张指纹图像,包括:The method according to claim 1, wherein the deleting the i-th fingerprint image or the j-th fingerprint image from the candidate fingerprint image set comprises:
    获取所述第i张指纹图像和所述第j张指纹图像各自的图像质量;Acquiring image quality of each of the i-th fingerprint image and the j-th fingerprint image;
    若所述第i张指纹图像的图像质量高于所述第j张指纹图像的图像质量,则从所述候选指纹图像集中删除所述第j张指纹图像;If the image quality of the ith fingerprint image is higher than the image quality of the j-th fingerprint image, deleting the j-th fingerprint image from the candidate fingerprint image set;
    若所述第i张指纹图像的图像质量低于所述第j张指纹图像的图像质量,则从所述候选指纹图像集中删除所述第i张指纹图像。If the image quality of the ith fingerprint image is lower than the image quality of the j-th fingerprint image, deleting the ith fingerprint image from the candidate fingerprint image set.
  3. 根据权利要求2所述的方法,其特征在于,所述获取所述第i张指纹图像和所述第j张指纹图像各自的图像质量,包括:The method according to claim 2, wherein the acquiring the image quality of each of the ith fingerprint image and the jth fingerprint image comprises:
    获取所述第i张指纹图像和所述第j张指纹图像各自的指纹图像面积;Obtaining a fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image;
    获取所述第i张指纹图像和所述第j张指纹图像各自的指纹特征点数量;Obtaining a number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image;
    根据所述指纹图像面积和所述指纹特征点数量计算所述第i张指纹图像和所述第j张指纹图像各自的特征点密度;Calculating a feature point density of each of the i-th fingerprint image and the j-th fingerprint image according to the fingerprint image area and the number of the fingerprint feature points;
    根据所述特征点密度确定所述图像质量,所述特征点密度与所述图像质量呈正比例关系。The image quality is determined according to the feature point density, and the feature point density is proportional to the image quality.
  4. 根据权利要求1至3任一所述的方法,其特征在于,所述检测所述候选 指纹图像集包含的信息量是否达到阈值,包括:The method according to any one of claims 1 to 3, wherein said detecting said candidate Whether the amount of information contained in the fingerprint image set reaches a threshold, including:
    检测所述候选指纹图像集中指纹图像的数量是否达到第一阈值;若所述候选指纹图像集中指纹图像的数量达到所述第一阈值,则确定所述候选指纹图像集包含的信息量达到所述阈值;Determining whether the number of fingerprint images in the candidate fingerprint image set reaches a first threshold; if the number of fingerprint images in the candidate fingerprint image set reaches the first threshold, determining that the amount of information included in the candidate fingerprint image set reaches the Threshold value
    和/或,and / or,
    检测所述候选指纹图像集中各张指纹图像的指纹特征点总和是否达到第二阈值;若所述候选指纹图像集中各张指纹图像的指纹特征点总和达到所述第二阈值,则确定所述候选指纹图像集包含的信息量达到所述阈值;Detecting whether a sum of fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold; if the sum of fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches the second threshold, determining the candidate The amount of information contained in the fingerprint image set reaches the threshold;
    和/或,and / or,
    检测所述候选指纹图像集中各张指纹图像的指纹面积总和是否达到第三阈值;若所述候选指纹图像集中各张指纹图像的指纹面积总和达到所述第三阈值,则确定所述候选指纹图像集包含的信息量达到所述阈值。Detecting whether the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold; if the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches the third threshold, determining the candidate fingerprint image The set contains the amount of information that reaches the threshold.
  5. 根据权利要求1至4任一所述的方法,其特征在于,所述计算所述候选指纹图像集中所述第i张指纹图像与第j张指纹图像的相似度,包括:The method according to any one of claims 1 to 4, wherein the calculating the similarity between the ith fingerprint image and the jth fingerprint image in the candidate fingerprint image set comprises:
    获取所述第i张指纹图像和所述第j张指纹图像各自的指纹图像面积;Obtaining a fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image;
    获取所述第i张指纹图像和所述第j张指纹图像各自的指纹特征点数量;Obtaining a number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image;
    获取所述第i张指纹图像和所述第j张指纹图像各自的指纹特征点位置;Obtaining a fingerprint feature point position of each of the i-th fingerprint image and the j-th fingerprint image;
    根据所述指纹图像面积的比值,和/或,所述指纹特征点数量的比值,和/或,所述指纹特征点位置的匹配度,加权计算所述相似度。The similarity is calculated by weighting according to a ratio of the area of the fingerprint image, and/or a ratio of the number of the fingerprint feature points, and/or a matching degree of the fingerprint feature point position.
  6. 根据权利要求1至5任一所述的方法,其特征在于,所述方法,还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    当从所述候选指纹图像集中删除所述第i张指纹图像时,显示第一提示信息,所述第一提示信息用于指示所述第i张指纹图像与所述第j张指纹图像对应同一指纹区域;When the i-th fingerprint image is deleted from the candidate fingerprint image set, the first prompt information is displayed, where the first prompt information is used to indicate that the ith fingerprint image and the j-th fingerprint image are corresponding to each other. Fingerprint area;
    当从所述候选指纹图像集中删除所述第j张指纹图像时,显示第二提示信息,所述第二提示信息用于指示已利用所述第i张指纹图像替换所述第j张指纹图像。When the j-th fingerprint image is deleted from the candidate fingerprint image set, the second prompt information is displayed, where the second prompt information is used to indicate that the j-th fingerprint image has been replaced by the ith fingerprint image .
  7. 根据权利要求1至5任一所述的方法,其特征在于,所述方法,还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    当删除的指纹图像的数量达到第四阈值时,显示第三提示信息,所述第三 提示信息用于指示指纹录入失败。When the number of deleted fingerprint images reaches a fourth threshold, displaying third prompt information, the third The prompt message is used to indicate that the fingerprint entry failed.
  8. 一种指纹模板生成装置,其特征在于,所述装置包括:A fingerprint template generating apparatus, the apparatus comprising:
    添加模块,被配置为在目标指纹的录入过程中,将指纹识别传感器采集到的第i张指纹图像添加到所述目标指纹对应的候选指纹图像集,i≥2,且i为自然数;Adding a module, configured to add an i-th fingerprint image collected by the fingerprint recognition sensor to the candidate fingerprint image set corresponding to the target fingerprint during the input process of the target fingerprint, i≥2, and i is a natural number;
    计算模块,被配置为计算所述候选指纹图像集中所述第i张指纹图像与第j张指纹图像的相似度,j<i,且j为自然数;a calculation module, configured to calculate a similarity between the ith fingerprint image and the jth fingerprint image in the candidate fingerprint image set, j<i, and j is a natural number;
    删除模块,被配置为若所述第i张指纹图像与所述第j张指纹图像的相似度大于相似度阈值,则从所述候选指纹图像集中删除所述第i张指纹图像或所述第j张指纹图像;a deleting module configured to delete the i-th fingerprint image or the first image from the candidate fingerprint image set if a similarity between the i-th fingerprint image and the j-th fingerprint image is greater than a similarity threshold j fingerprint images;
    检测模块,被配置为检测所述候选指纹图像集包含的信息量是否达到阈值;a detecting module, configured to detect whether the amount of information included in the candidate fingerprint image set reaches a threshold;
    生成模块,被配置为当所述候选指纹图像集包含的信息量达到所述阈值时,根据所述候选指纹图像集中的各张指纹图像生成指纹模板。And a generating module, configured to generate a fingerprint template according to each fingerprint image in the candidate fingerprint image set when the amount of information included in the candidate fingerprint image set reaches the threshold.
  9. 根据权利要求8所述的装置,其特征在于,所述删除模块,包括:The device according to claim 8, wherein the deleting module comprises:
    获取子模块,被配置为获取所述第i张指纹图像和所述第j张指纹图像各自的图像质量;Obtaining a submodule configured to acquire image quality of each of the i-th fingerprint image and the j-th fingerprint image;
    第一删除子模块,被配置为若所述第i张指纹图像的图像质量高于所述第j张指纹图像的图像质量,则从所述候选指纹图像集中删除所述第j张指纹图像;a first deletion sub-module configured to delete the j-th fingerprint image from the candidate fingerprint image set if an image quality of the ith fingerprint image is higher than an image quality of the j-th fingerprint image;
    第二删除子模块,被配置为若所述第i张指纹图像的图像质量低于所述第j张指纹图像的图像质量,则从所述候选指纹图像集中删除所述第i张指纹图像。The second deletion submodule is configured to delete the ith fingerprint image from the candidate fingerprint image set if an image quality of the ith fingerprint image is lower than an image quality of the jth fingerprint image.
  10. 根据权利要求9所述的装置,其特征在于,所述获取子模块,包括:The device according to claim 9, wherein the obtaining submodule comprises:
    面积获取子模块,被配置为获取所述第i张指纹图像和所述第j张指纹图像各自的指纹图像面积;An area obtaining submodule configured to acquire a fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image;
    数量获取子模块,被配置为获取所述第i张指纹图像和所述第j张指纹图像各自的指纹特征点数量;a quantity acquisition submodule configured to acquire a number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image;
    密度计算子模块,被配置为根据所述指纹图像面积和所述指纹特征点数量计算所述第i张指纹图像和所述第j张指纹图像各自的特征点密度;a density calculation sub-module configured to calculate a feature point density of each of the i-th fingerprint image and the j-th fingerprint image according to the fingerprint image area and the number of the fingerprint feature points;
    确定子模块,被配置为根据所述特征点密度确定所述图像质量,所述特征 点密度与所述图像质量呈正比例关系。Determining a sub-module configured to determine the image quality based on the feature point density, the feature The dot density is proportional to the image quality.
  11. 根据权利要求8至10任一所述的装置,其特征在于,所述检测模块,包括:The device according to any one of claims 8 to 10, wherein the detecting module comprises:
    第一检测子模块,被配置为检测所述候选指纹图像集中指纹图像的数量是否达到第一阈值;若所述候选指纹图像集中指纹图像的数量达到所述第一阈值,则确定所述候选指纹图像集包含的信息量达到所述阈值;a first detecting sub-module configured to detect whether the number of fingerprint images in the candidate fingerprint image set reaches a first threshold; if the number of fingerprint images in the candidate fingerprint image set reaches the first threshold, determining the candidate fingerprint The amount of information contained in the image set reaches the threshold;
    和/或,and / or,
    第二检测子模块,被配置为检测所述候选指纹图像集中各张指纹图像的指纹特征点总和是否达到第二阈值;若所述候选指纹图像集中各张指纹图像的指纹特征点总和达到所述第二阈值,则确定所述候选指纹图像集包含的信息量达到所述阈值;a second detection sub-module configured to detect whether a sum of fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches a second threshold; if the sum of fingerprint feature points of each fingerprint image in the candidate fingerprint image set reaches the a second threshold, determining that the amount of information included in the candidate fingerprint image set reaches the threshold;
    和/或,and / or,
    第三检测子模块,被配置为检测所述候选指纹图像集中各张指纹图像的指纹面积总和是否达到第三阈值;若所述候选指纹图像集中各张指纹图像的指纹面积总和达到所述第三阈值,则确定所述候选指纹图像集包含的信息量达到所述阈值。The third detecting sub-module is configured to detect whether the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches a third threshold; if the total fingerprint area of each fingerprint image in the candidate fingerprint image set reaches the third The threshold determines that the amount of information included in the candidate fingerprint image set reaches the threshold.
  12. 根据权利要求8至11任一所述的装置,其特征在于,所述计算模块,包括:The device according to any one of claims 8 to 11, wherein the calculation module comprises:
    第一获取子模块,被配置为获取所述第i张指纹图像和所述第j张指纹图像各自的指纹图像面积;a first acquiring submodule configured to acquire a fingerprint image area of each of the i-th fingerprint image and the j-th fingerprint image;
    第二获取子模块,被配置为获取所述第i张指纹图像和所述第j张指纹图像各自的指纹特征点数量;a second acquiring submodule configured to acquire a number of fingerprint feature points of each of the i-th fingerprint image and the j-th fingerprint image;
    第三获取子模块,被配置为获取所述第i张指纹图像和所述第j张指纹图像各自的指纹特征点位置;a third acquiring submodule configured to acquire a fingerprint feature point position of each of the i-th fingerprint image and the j-th fingerprint image;
    计算子模块,被配置为根据所述指纹图像面积的比值,和/或,所述指纹特征点数量的比值,和/或,所述指纹特征点位置的匹配度,加权计算所述相似度。The calculating submodule is configured to calculate the similarity by weight according to a ratio of the area of the fingerprint image, and/or a ratio of the number of the fingerprint feature points, and/or a matching degree of the fingerprint feature point position.
  13. 根据权利要求8至12任一所述的装置,其特征在于,所述装置,还包括: The device according to any one of claims 8 to 12, wherein the device further comprises:
    第一显示模块,被配置为当从所述候选指纹图像集中删除所述第i张指纹图像时,显示第一提示信息,所述第一提示信息用于指示所述第i张指纹图像与所述第j张指纹图像对应同一指纹区域;The first display module is configured to display the first prompt information when the ith fingerprint image is deleted from the candidate fingerprint image set, where the first prompt information is used to indicate the ith fingerprint image and the The jth fingerprint image corresponds to the same fingerprint area;
    第二显示模块,被配置为当从所述候选指纹图像集中删除所述第j张指纹图像时,显示第二提示信息,所述第二提示信息用于指示已利用所述第i张指纹图像替换所述第j张指纹图像。a second display module, configured to: when the j-th fingerprint image is deleted from the candidate fingerprint image set, display second prompt information, where the second prompt information is used to indicate that the i-th fingerprint image has been utilized Replace the jth fingerprint image.
  14. 根据权利要求8至12任一所述的装置,其特征在于,所述装置,还包括:The device according to any one of claims 8 to 12, wherein the device further comprises:
    第三显示模块,被配置为当删除的指纹图像的数量达到第四阈值时,显示第三提示信息,所述第三提示信息用于指示指纹录入失败。The third display module is configured to display, when the number of the deleted fingerprint images reaches the fourth threshold, the third prompt information, where the third prompt information is used to indicate that the fingerprint entry fails.
  15. 一种指纹模板生成装置,其特征在于,所述装置包括:A fingerprint template generating apparatus, the apparatus comprising:
    处理器;processor;
    用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
    其中,所述处理器被配置为:Wherein the processor is configured to:
    在目标指纹的录入过程中,将指纹识别传感器采集到的第i张指纹图像添加到所述目标指纹对应的候选指纹图像集,i≥2,且i为自然数;In the process of inputting the target fingerprint, the ith fingerprint image collected by the fingerprint recognition sensor is added to the candidate fingerprint image set corresponding to the target fingerprint, i≥2, and i is a natural number;
    计算所述候选指纹图像集中所述第i张指纹图像与第j张指纹图像的相似度,j<i,且j为自然数;Calculating a similarity between the ith fingerprint image and the jth fingerprint image in the candidate fingerprint image set, j<i, and j is a natural number;
    若所述第i张指纹图像与所述第j张指纹图像的相似度大于相似度阈值,则从所述候选指纹图像集中删除所述第i张指纹图像或所述第j张指纹图像;If the similarity between the ith fingerprint image and the jth fingerprint image is greater than a similarity threshold, deleting the ith fingerprint image or the jth fingerprint image from the candidate fingerprint image set;
    检测所述候选指纹图像集包含的信息量是否达到阈值;Detecting whether the amount of information included in the candidate fingerprint image set reaches a threshold;
    当所述候选指纹图像集包含的信息量达到所述阈值时,根据所述候选指纹图像集中的各张指纹图像生成指纹模板。 When the amount of information included in the candidate fingerprint image set reaches the threshold, a fingerprint template is generated according to each fingerprint image in the candidate fingerprint image set.
PCT/CN2016/085546 2016-06-13 2016-06-13 Fingerprint template generation method and apparatus WO2017214793A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/085546 WO2017214793A1 (en) 2016-06-13 2016-06-13 Fingerprint template generation method and apparatus
CN201680000734.7A CN106104575B (en) 2016-06-13 2016-06-13 Fingerprint template generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/085546 WO2017214793A1 (en) 2016-06-13 2016-06-13 Fingerprint template generation method and apparatus

Publications (1)

Publication Number Publication Date
WO2017214793A1 true WO2017214793A1 (en) 2017-12-21

Family

ID=57224312

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/085546 WO2017214793A1 (en) 2016-06-13 2016-06-13 Fingerprint template generation method and apparatus

Country Status (2)

Country Link
CN (1) CN106104575B (en)
WO (1) WO2017214793A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109543570A (en) * 2018-11-06 2019-03-29 Oppo广东移动通信有限公司 Fingerprint identification method and Related product

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108431827B (en) * 2016-11-15 2019-06-28 指纹卡有限公司 Method and electronic equipment for fingerprint registration
CN106557755B (en) * 2016-11-24 2021-05-04 北京小米移动软件有限公司 Fingerprint template acquisition method and device
SE1750155A1 (en) * 2017-02-17 2018-08-18 Fingerprint Cards Ab Enabling identification of fingerprints from captured imagesusing contour points
CN107423594B (en) * 2017-03-08 2019-05-21 Oppo广东移动通信有限公司 A kind of fingerprint method of payment and terminal device
CN107194326A (en) * 2017-04-28 2017-09-22 广东欧珀移动通信有限公司 Fingerprint collecting method and related product
CN107330388B (en) * 2017-06-21 2020-12-22 海信视像科技股份有限公司 Fingerprint identification processing method and terminal
CN109947965B (en) * 2017-09-04 2023-09-05 阿里巴巴集团控股有限公司 Object recognition, data set updating and data processing method and device
CN107977600B (en) * 2017-09-11 2020-04-10 江苏国光信息产业股份有限公司 Signature authentication method based on side palm characteristics
CN108509944B (en) * 2018-06-25 2022-04-29 北京小米移动软件有限公司 Fingerprint identification method and device
CN110688514A (en) * 2019-08-30 2020-01-14 中国人民财产保险股份有限公司 Insurance claim settlement image data duplicate checking method and device
CN110717429B (en) * 2019-09-27 2023-02-21 联想(北京)有限公司 Information processing method, electronic equipment and computer readable storage medium
WO2021088027A1 (en) * 2019-11-08 2021-05-14 Yangtze Memory Technologies Co., Ltd. Automatic assessment method and assessment system thereof for yield improvement
CN111796683A (en) * 2020-07-10 2020-10-20 敦泰电子(深圳)有限公司 Narrow-edge biosensor-based feature input method and related device
TW202215289A (en) * 2020-10-14 2022-04-16 王建華 Method and device for fingerprint image recognition, and computer readable medium
CN113077508A (en) * 2021-03-30 2021-07-06 深圳市墨者安全科技有限公司 Image similarity matching method and device
CN116258842B (en) * 2023-05-16 2023-07-25 上海海栎创科技股份有限公司 Fingerprint template dynamic splicing optimization system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101086766A (en) * 2007-06-04 2007-12-12 北京航空航天大学 Fingerprint image frame sequence combination method based on wave form match
US20090046904A1 (en) * 2007-08-13 2009-02-19 Electronics & Telecommunications Research Institute Fingerprint recognition apparatus and method
CN102708360A (en) * 2012-05-09 2012-10-03 深圳市亚略特生物识别科技有限公司 Method for generating and automatically updating fingerprint template
CN103150260A (en) * 2011-11-25 2013-06-12 华为数字技术(成都)有限公司 Method and device for deleting repeating data
CN105447436A (en) * 2014-12-19 2016-03-30 比亚迪股份有限公司 Fingerprint identification system, fingerprint identification method and electronic device
CN105528576A (en) * 2015-12-02 2016-04-27 广东欧珀移动通信有限公司 Method and device for inputting fingerprint

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101233529A (en) * 2003-12-16 2008-07-30 摩托罗拉公司 Method and apparatus for enrollment and authentication of biometric images
US20070248249A1 (en) * 2006-04-20 2007-10-25 Bioscrypt Inc. Fingerprint identification system for access control
CN105389564B (en) * 2015-11-13 2019-05-10 Oppo广东移动通信有限公司 Fingerprint register method, device and mobile terminal
CN105373786A (en) * 2015-11-30 2016-03-02 东莞酷派软件技术有限公司 Fingerprint acquisition method, fingerprint acquisition device and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101086766A (en) * 2007-06-04 2007-12-12 北京航空航天大学 Fingerprint image frame sequence combination method based on wave form match
US20090046904A1 (en) * 2007-08-13 2009-02-19 Electronics & Telecommunications Research Institute Fingerprint recognition apparatus and method
CN103150260A (en) * 2011-11-25 2013-06-12 华为数字技术(成都)有限公司 Method and device for deleting repeating data
CN102708360A (en) * 2012-05-09 2012-10-03 深圳市亚略特生物识别科技有限公司 Method for generating and automatically updating fingerprint template
CN105447436A (en) * 2014-12-19 2016-03-30 比亚迪股份有限公司 Fingerprint identification system, fingerprint identification method and electronic device
CN105528576A (en) * 2015-12-02 2016-04-27 广东欧珀移动通信有限公司 Method and device for inputting fingerprint

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109543570A (en) * 2018-11-06 2019-03-29 Oppo广东移动通信有限公司 Fingerprint identification method and Related product
CN109543570B (en) * 2018-11-06 2023-04-18 Oppo广东移动通信有限公司 Fingerprint identification method and related product

Also Published As

Publication number Publication date
CN106104575B (en) 2019-09-17
CN106104575A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
WO2017214793A1 (en) Fingerprint template generation method and apparatus
US10452890B2 (en) Fingerprint template input method, device and medium
WO2021031609A1 (en) Living body detection method and device, electronic apparatus and storage medium
CN107944447B (en) Image classification method and device
CN106934320B (en) Fingerprint identification method and device
US20150332439A1 (en) Methods and devices for hiding privacy information
RU2679568C1 (en) Method and device for fingerprints recognition
RU2664003C2 (en) Method and device for determining associate users
JP6431911B2 (en) Method and apparatus for setting a threshold
CN106557755B (en) Fingerprint template acquisition method and device
JP6391708B2 (en) Method and apparatus for acquiring iris image, and iris identification device
CN109034150B (en) Image processing method and device
CN111695382A (en) Fingerprint collection area determining method and fingerprint collection area determining device
CN106126082B (en) Terminal control method and device and terminal
WO2017140109A1 (en) Pressure detection method and apparatus
CN105208284B (en) Shoot based reminding method and device
CN104636453A (en) Illegal user data identification method and device
US20160350584A1 (en) Method and apparatus for providing contact card
CN107643818B (en) Function opening method and device
CN105894042A (en) Method and apparatus for detecting whether document image is covered
CN105335714A (en) Photograph processing method, device and apparatus
CN107133551B (en) Fingerprint verification method and device
CN107301404B (en) Fingerprint input method and device
US20170372111A1 (en) Method and device for fingerprint verification
CN106897876B (en) Terminal payment processing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16904912

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16904912

Country of ref document: EP

Kind code of ref document: A1