WO2017185507A1 - Method and device for identifying multiple fingerprints - Google Patents

Method and device for identifying multiple fingerprints Download PDF

Info

Publication number
WO2017185507A1
WO2017185507A1 PCT/CN2016/086920 CN2016086920W WO2017185507A1 WO 2017185507 A1 WO2017185507 A1 WO 2017185507A1 CN 2016086920 W CN2016086920 W CN 2016086920W WO 2017185507 A1 WO2017185507 A1 WO 2017185507A1
Authority
WO
WIPO (PCT)
Prior art keywords
fingerprint
pixel
distance
image
preset
Prior art date
Application number
PCT/CN2016/086920
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 中兴通讯股份有限公司
Publication of WO2017185507A1 publication Critical patent/WO2017185507A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • 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/1365Matching; Classification

Definitions

  • the present application relates to, but is not limited to, the field of image recognition technology, and in particular, to a method and device for identifying multiple fingerprints.
  • fingerprint recognition module which can realize functions such as screen unlocking through fingerprint recognition.
  • the fingerprint identification module mainly collects fingerprint information through a fixed acquisition area, in order to fix the collection area and identify the fingerprint information of the entire area.
  • the fingerprint contact version of the smartphone on the market is about 1 square centimeter, and forms a concave surface with the body, which is convenient for the finger to judge the recognition area.
  • the fingerprint identification area of a typical terminal device is often small, just enough to accommodate a finger, and multiple fingerprints cannot be simultaneously identified.
  • This kind of fingerprint recognition technology tends to be relatively simple and cannot meet more fingerprint recognition needs and better experience.
  • the multi-fingerprint recognition technology in the related art often recognizes multiple fingerprints as a whole, which is substantially different from a single fingerprint recognition, and still cannot satisfy the user. More needs.
  • an embodiment of the present invention provides a method and a device for identifying multiple fingerprints, so as to fully utilize the combination relationship between different fingerprints, and provide more fingerprint encryption and fingerprint recognition functions to the user.
  • a method for identifying multiple fingerprints comprising:
  • the terminal device is unlocked.
  • identifying the fingerprint in the fingerprint image, obtaining the first fingerprint, and having the second fingerprint include:
  • Detecting an edge of the fingerprint in the fingerprint image acquiring a first fingerprint having a first edge and a second fingerprint having a second edge.
  • detecting an edge of the fingerprint in the fingerprint image includes:
  • the fingerprint image is subjected to grayscale processing to obtain a fingerprint grayscale image.
  • the fingerprint grayscale image is filtered by using a preset Gaussian function to obtain a filtered image that filters out noise.
  • a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image are calculated.
  • a maximum value pixel point is determined in the filtered image based on the calculated gradient magnitude and the gradient direction.
  • a pixel point whose gray value is greater than or equal to a preset threshold is selected from the maximum value pixel points, and the selected pixel point is determined as an edge pixel point of the fingerprint.
  • calculating a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image includes:
  • the first equation includes:
  • M[i,j] is the gradient magnitude corresponding to the pixel point of the i-th row and the j-th column
  • P[i,j] is the first-order lateral partial derivative matrix corresponding to the pixel point of the i-th row and the j-th column
  • Q [i, j] is a first-order longitudinal partial derivative matrix corresponding to the pixel points of the i-th row and the j-th column
  • Q[i, j] is a gradient direction corresponding to the pixel points of the i-th row and the j-th column.
  • determining the maximum value pixel points in the filtered image according to the calculated gradient magnitude and the gradient direction comprises:
  • calculating a distance between the first fingerprint and the second fingerprint includes:
  • the center point of the fingerprint is determined according to the first expression.
  • the first expression includes:
  • Is the abscissa of the center point of the fingerprint Is the ordinate of the center point of the fingerprint
  • X 3 is the minimum abscissa in the coordinates corresponding to the edge pixel of the fingerprint
  • X 4 is the largest abscissa in the coordinates corresponding to the edge pixel of the fingerprint
  • Y 1 is the edge pixel of the fingerprint
  • Y 2 is the minimum ordinate in the coordinates corresponding to the edge pixel of the fingerprint.
  • Determining a relative distance between a center point of the first fingerprint and the second fingerprint as a distance between the first fingerprint and the second fingerprint includes:
  • the second expression includes: Where (Xa, Ya) is the center point coordinate of the first fingerprint, and (Xb, Yb) is the center point coordinate of the second fingerprint.
  • calculating an angle between the first fingerprint and the second fingerprint includes:
  • the relative angle between the first fingerprint and the second fingerprint is determined as an angle between the fingerprints.
  • a multi-fingerprint identification device includes: a fingerprint collection unit, a fingerprint recognition unit, a distance calculation unit, an angle calculation unit, and an unlocking unit.
  • the fingerprint collection unit is configured to collect a fingerprint image from the fingerprint detection area of the terminal device, where the fingerprint image includes at least two fingerprints.
  • the fingerprint identification unit is configured to identify the fingerprint in the fingerprint image, and acquire the first fingerprint and the second fingerprint.
  • the distance calculation unit is configured to calculate a distance between the first fingerprint and the second fingerprint.
  • An angle calculation unit is configured to calculate an angle between the first fingerprint and the second fingerprint.
  • An unlocking unit configured to match the first fingerprint and the second fingerprint with a pre-stored fingerprint template, and calculate an error between the distance and the angle and a pre-stored distance and angle When the preset error value is less than or equal to, the terminal device is unlocked.
  • the fingerprint identification unit comprises an edge detection module.
  • the fingerprint identification unit identifies the fingerprint in the fingerprint image, and acquiring the first fingerprint and having the second fingerprint includes:
  • the edge detection module is configured to detect an edge of the fingerprint in the fingerprint image, and acquire a first fingerprint having a first edge and a second fingerprint having a second edge.
  • the edge detection module includes a grayscale processing submodule, a filtering submodule, a gradient calculation submodule, a maximum value pixel determination submodule, and a screening submodule.
  • the detecting, by the edge detecting module, the edge of the fingerprint in the fingerprint image comprises:
  • the grayscale processing submodule is configured to perform grayscale processing on the fingerprint image to obtain a fingerprint grayscale image.
  • the filtering submodule is configured to filter the fingerprint grayscale image by using a preset Gaussian function to obtain a filtered image that filters out noise.
  • the gradient calculation sub-module is configured to calculate a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image.
  • a maximum value pixel determination sub-module is arranged to determine a maximum value pixel point in the filtered image based on the calculated gradient magnitude and the gradient direction.
  • the screening sub-module is configured to filter, from the maximum-value pixel, a pixel point whose gray value is greater than or equal to a preset threshold, and determine the selected pixel point as an edge pixel point of the fingerprint.
  • the gradient calculation sub-module includes: a partial derivative matrix calculation sub-module and an amplitude direction calculation sub-module.
  • the gradient calculation sub-module calculates a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image, including:
  • the partial derivative matrix calculation submodule is configured to calculate a first-order lateral partial derivative matrix and a first-order vertical partial derivative matrix corresponding to each pixel in the filtered image according to a preset lateral convolution operator and a longitudinal convolution operator .
  • the amplitude direction calculation submodule is configured to calculate a gradient magnitude and a gradient direction corresponding to each pixel according to the first equation according to the first-order lateral partial derivative matrix and the first-order longitudinal partial derivative matrix.
  • the first equation includes:
  • M[i,j] is the gradient magnitude corresponding to the pixel point of the i-th row and the j-th column
  • P[i,j] is the first-order lateral partial derivative matrix corresponding to the pixel point of the i-th row and the j-th column
  • Q [i, j] is a first-order longitudinal partial derivative matrix corresponding to the pixel points of the i-th row and the j-th column
  • Q[i, j] is a gradient direction corresponding to the pixel points of the i-th row and the j-th column.
  • the maximum value pixel point determining submodule comprises: a gray value comparison submodule.
  • the maximum value pixel point determination sub-module is based on the calculated gradient magnitude and the gradient square Determining the maximum value pixel points in the filtered image includes:
  • a gray value comparison sub-module configured to select a preset pixel point in the filtered image, and select a preset number of pixel points adjacent to the preset pixel point along a gradient direction of the preset pixel point, Determining, according to the calculated gradient magnitude, a magnitude relationship between a grayscale value of the preset pixel point and a gray value of each of the selected preset number of pixel points; when the preset When the gray value of the pixel is greater than or equal to the gray value of each of the selected preset number of pixels, the preset pixel is determined as the maximum pixel.
  • the distance calculation unit includes: a center point determination submodule and a distance determination submodule.
  • the calculating, by the distance calculation unit, the distance between the first fingerprint and the second fingerprint includes:
  • the center point determination module is set to determine the center point of the fingerprint according to the following formula:
  • Is the abscissa of the center point of the fingerprint Is the ordinate of the center point of the fingerprint
  • X 3 is the minimum abscissa in the coordinates corresponding to the edge pixel of the fingerprint
  • X 4 is the largest abscissa in the coordinates corresponding to the edge pixel of the fingerprint
  • Y 1 is the edge pixel of the fingerprint
  • Y 2 is the minimum ordinate in the coordinates corresponding to the edge pixel of the fingerprint.
  • the distance determining sub-module determines a relative distance between the first fingerprint and a center point of the second fingerprint as a distance between the first fingerprint and the second fingerprint, including:
  • the second expression includes:
  • the angle calculation unit calculates an angle between the first fingerprint and the second fingerprint, including:
  • An angle between a texture of the first fingerprint and the second fingerprint and a vertical direction is determined as a direction angle of the first fingerprint and the second fingerprint.
  • the relative angle between the first fingerprint and the second fingerprint is determined as an angle between the fingerprints.
  • a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the multi-fingerprint identification method.
  • FIG. 1 is a flowchart of a method for identifying multiple fingerprints according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a fingerprint identification board according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of fingerprints collected in an embodiment of the present invention.
  • FIG. 4 is a functional block diagram of a multi-fingerprint identification device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for identifying multiple fingerprints according to an embodiment of the present invention.
  • the processes described below include multiple operations occurring in a particular order, it should be clearly understood that these processes can include more or fewer operations that can be performed sequentially or in parallel (eg, using a parallel processor or a multi-threaded environment).
  • the method may include steps S1-S5:
  • S1 Collect a fingerprint image from a fingerprint detection area of the terminal device, where the fingerprint image includes at least two fingerprints.
  • a fingerprint identification board may be disposed on the back side of the terminal device, and multiple fingerprint recognition controls may be disposed on the fingerprint identification board.
  • two fingerprints may be set on the fingerprint identification board. Identifying controls, the two fingerprint recognition controls can be Fingerprint detection area.
  • the user can enter the fingerprints of the two fingers into the terminal device through the two fingerprint recognition controls, so that the fingerprint image can be collected from the fingerprint detection area of the terminal device.
  • the user can simultaneously place two fingers on two fingerprint recognition controls to capture the fingerprints of the two fingers at the same time.
  • another fingerprint identification control is used to collect the fingerprint of the other finger. That is to say, in the present embodiment, the order of multiple fingerprint collections is not limited, whether it is simultaneous recognition or sequential recognition, and finally, the fingerprints collected by the fingerprint recognition control are displayed on one fingerprint image.
  • S2 Identify the fingerprint in the fingerprint image, and acquire the first fingerprint and the second fingerprint.
  • the fingerprints in the fingerprint image may be identified to distinguish different fingerprints from each other.
  • the fingerprint in the fingerprint image may be identified to acquire the first fingerprint and the second fingerprint.
  • an edge of the fingerprint in the fingerprint image may be detected to acquire a first fingerprint having a first edge and a second fingerprint having a second edge.
  • Fig. 3 the dotted square frame outside the fingerprint can be used as the edge of the fingerprint.
  • the edge of the fingerprint in the fingerprint image can be detected in accordance with the following steps.
  • the color image collected from the fingerprint detection area is a color image
  • the color image may be subjected to gradation processing to meet the needs of subsequent processing.
  • the color image is usually displayed by the color change of three channels of R (Red, Red), G (Green, Green), B (Blue, Blue), and the superposition between them.
  • each can be The pixel values of the channels are weighted averaged to convert the pixel values of the three channels of RGB into grayscale values.
  • the fingerprint image may be grayed out according to any one of the following formulas:
  • R, G, and B represent the pixel values of the R channel, the G channel, and the B channel, respectively, and Gray represents the gray value after the graying process.
  • the format of the fingerprint image may be first converted into an RGB format, and then the gradation processing is performed.
  • S22 Perform filtering processing on the fingerprint grayscale image by using a preset Gaussian function to obtain a filtered image that filters out noise.
  • the fingerprint grayscale image may be subjected to filtering processing to obtain a filtered image that filters out noise.
  • a preset Gaussian function may be used as the filter function in this embodiment.
  • the preset Gaussian function can be, for example:
  • the pixel matrix of the fingerprint grayscale image may be subjected to a convolution operation with the Gaussian function described above, so that noise in the fingerprint grayscale image may be filtered out to obtain the fingerprint grayscale.
  • the filtered image corresponding to the image.
  • the edge of the fingerprint in the filtered image may be determined by calculating a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image.
  • the gradient magnitude and the gradient direction corresponding to each pixel point can be calculated by the first-order partial derivative matrix.
  • the first-order partial derivative matrix may be divided into a lateral partial derivative matrix (x-axis direction) and a longitudinal partial derivative matrix (y-axis direction). Therefore, a lateral convolution operator (x-axis direction) and a longitudinal convolution operator (y-axis direction) can be specified in advance, and each pixel point in the filtered image is separately convoluted by the two convolution operators Thus, a corresponding first-order partial derivative matrix can be obtained.
  • the lateral convolution operator and the vertical convolution operator can be as follows:
  • s x is the lateral convolution operator and s y is the longitudinal convolution operator.
  • the first-order partial derivative matrix obtained by processing each pixel in the filtered image by using the lateral convolution operator and the vertical convolution operator may be as follows:
  • P[i,j] represents the first-order lateral partial derivative corresponding to the pixel of the i-th row and the j-th column
  • Q[i,j] represents the first-order longitudinal partial derivative corresponding to the pixel of the i-th row and the j-th column
  • f[i,j] represents the pixel value corresponding to the pixel of the i-th row and the j-th column.
  • the gradient magnitude and the gradient direction corresponding to each pixel point can be calculated according to the first equation.
  • the first equation includes:
  • M[i,j] is the gradient magnitude corresponding to the pixel point of the i-th row and the j-th column
  • P[i,j] is the first-order lateral partial derivative matrix corresponding to the pixel point of the i-th row and the j-th column
  • Q [i, j] is a first-order longitudinal partial derivative matrix corresponding to the pixel points of the i-th row and the j-th column
  • Q[i, j] is a gradient direction corresponding to the pixel points of the i-th row and the j-th column.
  • the gray value of the pixel in the filtered image changes along the gradient direction of the pixel, and the point where the gray value is the largest in the local area adjacent to the pixel often falls in the
  • the pixel points correspond to the gradient direction.
  • the pixel point whose gradation value is the largest in the adjacent partial region may be referred to as a maximum value pixel point. Since the pixel point on the edge of the fingerprint is in the local area adjacent thereto, the gray value is often the largest, and therefore, in the present embodiment, the maximum value pixel point can be determined in the filtered image.
  • a preset pixel point may be selected in a preset area in the filtered image, and a preset number of pixel points adjacent to the preset pixel point are selected along a gradient direction of the preset pixel point. .
  • the preset pixel point may be determined as a maximum value pixel point.
  • the gradient direction needs to be according to the 8 pixel points. Interpolating the pixel points to determine a gray value of the pixel in the gradient direction, so that the preset pixel point can be compared with the pixel point in the gradient direction to determine the preset pixel point Whether it is a maximum value pixel.
  • S25 Select, from the maximum value pixel, a pixel point whose gray value is greater than or equal to a preset threshold, and determine the selected pixel point as an edge pixel point of the fingerprint.
  • a pixel point whose gray value is greater than or equal to a preset threshold may be selected from the maximum value pixel points, and the selected pixel point is determined as an edge pixel point of the fingerprint. .
  • the first fingerprint having the first edge and the second fingerprint having the second edge in the fingerprint image can be obtained.
  • the first edge and the second edge may be rectangular dashed boxes as shown in FIG.
  • the distance between the first fingerprint and the second fingerprint may be calculated to represent the first fingerprint and the second fingerprint. Positional relationship.
  • the distance between the first fingerprint and the second fingerprint may be represented by a distance between two fingerprint center points.
  • the center point of the first fingerprint and the second fingerprint may be determined by coordinate values of four vertices on the first edge and the second edge.
  • the first fingerprint may be determined according to coordinate values of pixel points of the uppermost, lowermost, leftmost, and rightmost sides on the first edge and the second edge. The first center point and the second center point of the second fingerprint.
  • the calculating a distance between the first fingerprint and the second fingerprint includes:
  • the first expression includes:
  • Is the abscissa of the center point of the fingerprint Is the ordinate of the center point of the fingerprint
  • X 3 is the minimum abscissa in the coordinates corresponding to the edge pixel of the fingerprint
  • X 4 is the largest abscissa in the coordinates corresponding to the edge pixel of the fingerprint
  • Y 1 is the edge pixel of the fingerprint
  • Y 2 is the minimum ordinate in the coordinates corresponding to the edge pixel of the fingerprint.
  • the distance between the first center point and the second center point may be determined as being between the first fingerprint and the second fingerprint the distance.
  • the distance determining sub-module determines a relative distance between the first fingerprint and a center point of the second fingerprint as a distance between the first fingerprint and the second fingerprint, including: according to the second expression Calculating a relative distance between a center point of the first fingerprint and the second fingerprint.
  • the second expression includes:
  • (Xa, Ya) is the center point coordinate of the first fingerprint
  • (Xb, Yb) is the center point coordinate of the second fingerprint
  • L is between the first center point and the second center point a distance
  • x a is the abscissa of the center point of the first fingerprint
  • y a is the ordinate of the center point of the first fingerprint
  • x b is the abscissa of the center point of the second fingerprint
  • y b The ordinate of the center point of the second fingerprint.
  • the positional relationship between the first fingerprint and the second fingerprint may include an angle between the two, in addition to the distance between the two.
  • a direction perpendicular to a texture of the first fingerprint may be determined as a first direction of the first fingerprint
  • a direction perpendicular to a texture of the second fingerprint may be determined.
  • a second direction of the second fingerprint and determining an angle between the first direction and the second direction as an angle between the first fingerprint and the second fingerprint.
  • the direction of the oblique line corresponding to the left fingerprint may be the first direction
  • the first fingerprint and the second fingerprint may be recognized while identifying the first fingerprint and the second fingerprint.
  • the positional relationship between the two is determined to determine that the first fingerprint and the second fingerprint in the current positional relationship can unlock the terminal device.
  • the first fingerprint and the second fingerprint may be matched first, and the user may input multiple fingerprints in the terminal device that can unlock the terminal device to form a fingerprint template.
  • the first fingerprint and the second fingerprint may be compared with the fingerprint template, when the first fingerprint and the second fingerprint are both present in the fingerprint
  • the template it is determined that the first fingerprint and the second fingerprint match the fingerprint template.
  • the condition that the first fingerprint and the second fingerprint match the fingerprint template cannot be used to unlock the terminal device, and the first fingerprint and the second fingerprint are required to be The positional relationship is judged.
  • the distance and the angle between the first fingerprint and the second fingerprint can also be pre-recorded into the terminal device by the user, and then the distance and angle between the first fingerprint and the second fingerprint in the fingerprint image are calculated. Thereafter, the calculated distance and the included angle may be compared with a pre-stored distance and angle, when the calculated distance and the angle between the angle and the pre-stored distance and angle are less than or When it is equal to the preset error value, it indicates that the positional relationship between the current first fingerprint and the second fingerprint matches the preset positional relationship. Then, in the case where the fingerprint matching and the positional relationship between the fingerprints also match, the terminal device can be unlocked.
  • the multi-fingerprint identification method provided by the embodiment of the present invention can obtain multiple fingerprints in the fingerprint image by identifying the collected fingerprint image. By calculating the distance and angle relationship between the plurality of fingerprints, the calculated distance and angle can be compared with the pre-stored distance and angle. In this way, when a plurality of fingerprints are present in the preset fingerprint database, and the positional relationship between the plurality of fingerprints also satisfies the preset positional relationship, the terminal device can be unlocked. It can be seen that the multi-fingerprint identification method provided by the embodiment of the present invention adds a process of matching the positional relationship between the fingerprints on the basis of fingerprint matching. It not only enhances the security of encryption, but also enhances the user's interest in designing fingerprint positional relationships.
  • FIG. 4 is a functional block diagram of a multi-fingerprint identification device according to an embodiment of the present invention.
  • the apparatus may include: a fingerprint collection unit 100, a fingerprint recognition unit 200, a distance calculation unit 300, an angle calculation unit 400, and an unlocking unit 500.
  • the fingerprint collection unit 100 is configured to collect a fingerprint image from a fingerprint detection area of the terminal device, where the fingerprint image includes at least two fingerprints;
  • the fingerprint identification unit 200 is configured to identify the fingerprint in the fingerprint image, and acquire the first fingerprint and the second fingerprint;
  • the distance calculating unit 300 is configured to calculate a distance between the first fingerprint and the second fingerprint
  • the angle calculation unit 400 is configured to calculate an angle between the first fingerprint and the second fingerprint
  • the unlocking unit 500 is configured to match the first fingerprint and the second fingerprint with a pre-stored fingerprint template, and calculate the distance between the distance and the angle and the pre-stored distance and angle When the error is less than or equal to the preset error value, the terminal device is unlocked.
  • the fingerprint identification unit 200 specifically includes: an edge detection module.
  • the fingerprint identification unit identifies the fingerprint in the fingerprint image, and acquiring the first fingerprint and having the second fingerprint includes:
  • the edge detection module is configured to detect an edge of the fingerprint in the fingerprint image, and acquire a first fingerprint having a first edge and a second fingerprint having a second edge.
  • the edge detection module 200 includes a grayscale processing sub-module 201, a filtering sub-module 202, a gradient calculation sub-module 203, a maximum-value pixel determination sub-module 204, and a screening sub-module 205.
  • the detecting, by the edge detecting module 200, the edge of the fingerprint in the fingerprint image includes:
  • the grayscale processing sub-module 201 is configured to perform grayscale processing on the fingerprint image to obtain a fingerprint grayscale image.
  • the filtering sub-module 202 is configured to perform filtering processing on the fingerprint grayscale image by using a preset Gaussian function to obtain a filtered image that filters out noise.
  • the gradient calculation sub-module 203 is configured to calculate a gradient magnitude and a gradient direction corresponding to each pixel point in the filtered image.
  • the maximum value pixel determination sub-module 204 is configured to determine a maximum value pixel point in the filtered image based on the calculated gradient magnitude and the gradient direction.
  • the filtering sub-module 205 is configured to filter, from the maximum-value pixel, a pixel point whose gray value is greater than or equal to a preset threshold, and determine the selected pixel point as an edge pixel of the fingerprint.
  • the gradient calculation sub-module 203 includes: a partial derivative matrix calculation sub-module and an amplitude direction calculation sub-module.
  • the gradient calculation sub-module 203 calculates a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image, including:
  • the partial derivative matrix calculation submodule is configured to calculate a first-order lateral partial derivative matrix and a first-order vertical partial derivative matrix corresponding to each pixel in the filtered image according to a preset lateral convolution operator and a longitudinal convolution operator .
  • the amplitude direction calculation submodule is configured to calculate a gradient magnitude and a gradient direction corresponding to each pixel according to the first equation according to the first-order lateral partial derivative matrix and the first-order longitudinal partial derivative matrix.
  • the first equation includes:
  • M[i,j] is the gradient magnitude corresponding to the pixel point of the i-th row and the j-th column
  • P[i,j] is the first-order lateral partial derivative matrix corresponding to the pixel point of the i-th row and the j-th column
  • Q [i, j] is a first-order longitudinal partial derivative matrix corresponding to the pixel points of the i-th row and the j-th column
  • Q[i, j] is a gradient direction corresponding to the pixel points of the i-th row and the j-th column.
  • the maximum value pixel point determining sub-module 204 includes: a gray value comparison sub-module.
  • the maximum value pixel determination sub-module 204 determines the maximum value pixel in the filtered image according to the calculated gradient magnitude and the gradient direction, including:
  • a gray value comparison sub-module configured to select a preset pixel point in the filtered image, and select a preset number of pixel points adjacent to the preset pixel point along a gradient direction of the preset pixel point And determining, according to the calculated gradient amplitude, a magnitude relationship between the gray value of the preset pixel point and the gray value of each pixel point in the selected preset number of pixel points; When the gray value of the pixel is greater than or equal to the gray value of each of the selected preset number of pixels, the preset pixel is determined as the maximum pixel.
  • the distance calculation unit 300 includes a center point determination sub-module 301 and a distance determination sub-module 302.
  • the calculating, by the distance calculating unit 300, the distance between the first fingerprint and the second fingerprint includes:
  • the central point determining submodule 301 is configured to determine a center point of the fingerprint according to the first expression.
  • the distance determining sub-module 302 is configured to determine a relative distance between a center point of the first fingerprint and the second fingerprint as a distance between the first fingerprint and the second fingerprint.
  • the first expression includes:
  • Is the abscissa of the center point of the fingerprint Is the ordinate of the center point of the fingerprint
  • X 3 is the minimum abscissa in the coordinates corresponding to the edge pixel of the fingerprint
  • X 4 is the largest abscissa in the coordinates corresponding to the edge pixel of the fingerprint
  • Y 1 is the edge pixel of the fingerprint
  • Y 2 is the minimum ordinate in the coordinates corresponding to the edge pixel of the fingerprint.
  • the determining, by the distance determining sub-module 302, the relative distance between the center point of the first fingerprint and the second fingerprint as the distance between the first fingerprint and the second fingerprint includes:
  • the second expression includes:
  • the included angle calculation unit 400 includes a first direction determining module 401, a second direction determining module 402, and an angle determining module 403.
  • the angle calculation unit 400 calculates an angle between the first fingerprint and the second fingerprint, including:
  • the first direction determining module 401 is configured to determine a direction perpendicular to the texture of the first fingerprint as the first direction ⁇ A of the first fingerprint.
  • the second direction determining module 402 is configured to determine a direction perpendicular to the texture of the second fingerprint as the second direction ⁇ B of the second fingerprint.
  • the multi-fingerprint identification device provided by the embodiment of the present invention can obtain multiple fingerprints in the fingerprint image by identifying the collected fingerprint image. By calculating the distance and angle relationship between the plurality of fingerprints, the calculated distance and angle can be compared with the pre-stored distance and angle. In this way, when a plurality of fingerprints are present in the preset fingerprint database, and the positional relationship between the plurality of fingerprints also satisfies the preset positional relationship, the terminal device can be unlocked. It can be seen that the multi-fingerprint identification device provided by the embodiment of the present invention adds a process of matching the positional relationship between the fingerprints on the basis of fingerprint matching, which not only enhances the security of encryption. And also enhances the user's interest in designing fingerprint positional relationships.
  • a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the multi-fingerprint identification method.
  • all or part of the steps of the above embodiments may also be implemented using an integrated circuit.
  • the steps may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps may be fabricated into a single integrated circuit module.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the method and device for identifying multiple fingerprints can obtain multiple fingerprints in the fingerprint image by identifying the collected fingerprint image.
  • the calculated distance and angle can be compared with the pre-stored distance and angle.
  • the terminal device can be unlocked.
  • the solution of the embodiment of the present invention adds a process of matching the positional relationship between fingerprints on the basis of fingerprint matching, which not only enhances the security of encryption, but also enhances the interest of the user in designing the positional relationship of the fingerprint.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Biology (AREA)
  • Data Mining & Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Collating Specific Patterns (AREA)
  • Image Input (AREA)

Abstract

A method and device for identifying multiple fingerprints. The method comprises: collecting, from a fingerprint detection area of a terminal apparatus, a fingerprint image comprising two or more fingerprints (S1); identifying the fingerprints in the fingerprint image to acquire a first fingerprint and a second fingerprint (S2); computing a distance between the first fingerprint and the second fingerprint (S3); computing an angle between the first fingerprint and the second fingerprint (S4); and when the first fingerprint and the second fingerprint match prestored fingerprint templates, and errors between the computed distance and angle and a prestored distance and angle are less than or equal to preconfigured errors, unlocking the terminal apparatus (S5).

Description

一种多指纹的识别方法及装置Multi-fingerprint identification method and device 技术领域Technical field
本申请涉及但不限于图像识别技术领域,尤其涉及一种多指纹的识别方法及装置。The present application relates to, but is not limited to, the field of image recognition technology, and in particular, to a method and device for identifying multiple fingerprints.
背景技术Background technique
随着指纹识别技术的发展,很多终端设备,例如智能手机、平板电脑等,都配备了指纹识别模块,这些终端设备可以通过指纹识别来实现例如屏幕解锁等功能。With the development of fingerprint recognition technology, many terminal devices, such as smart phones, tablet computers, etc., are equipped with fingerprint recognition modules, which can realize functions such as screen unlocking through fingerprint recognition.
目前指纹识别模块主要通过一个固定较小的采集区来采集指纹信息,这样做是为了将采集区域固定,并对整个区域的指纹信息采集来识别。目前市面上的智能手机的指纹接触版大约为1平方厘米左右,并且与机身形成一个凹面,便于手指判断识别区域。At present, the fingerprint identification module mainly collects fingerprint information through a fixed acquisition area, in order to fix the collection area and identify the fingerprint information of the entire area. At present, the fingerprint contact version of the smartphone on the market is about 1 square centimeter, and forms a concave surface with the body, which is convenient for the finger to judge the recognition area.
一般的终端设备的指纹识别区往往比较小,正好能容纳一个手指头,无法实现多个指纹同时识别。这种指纹识别技术往往比较单一,无法满足更多的指纹识别需要和更好的体验。The fingerprint identification area of a typical terminal device is often small, just enough to accommodate a finger, and multiple fingerprints cannot be simultaneously identified. This kind of fingerprint recognition technology tends to be relatively simple and cannot meet more fingerprint recognition needs and better experience.
因而,当前出现了多指纹的识别技术,然而相关技术中的多指纹识别技术,往往是将多个指纹作为一个整体进行识别,这样实质上与单一的指纹识别没有太大区别,仍然无法满足用户更多的需求。Therefore, there is currently a multi-fingerprint recognition technology. However, the multi-fingerprint recognition technology in the related art often recognizes multiple fingerprints as a whole, which is substantially different from a single fingerprint recognition, and still cannot satisfy the user. More needs.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
为了解决上述技术问题,本发明实施例提供了一种多指纹的识别方法及装置,以充分利用不同指纹之间的组合关系,向用户提供更多的指纹加密和指纹识别功能。In order to solve the above technical problem, an embodiment of the present invention provides a method and a device for identifying multiple fingerprints, so as to fully utilize the combination relationship between different fingerprints, and provide more fingerprint encryption and fingerprint recognition functions to the user.
一种多指纹的识别方法,包括:A method for identifying multiple fingerprints, comprising:
从终端设备的指纹检测区采集指纹图像,所述指纹图像中包括至少两个 指纹。Acquiring a fingerprint image from a fingerprint detection area of the terminal device, where the fingerprint image includes at least two fingerprint.
对所述指纹图像中的指纹进行识别,获取第一指纹以及第二指纹。Identifying the fingerprint in the fingerprint image to acquire the first fingerprint and the second fingerprint.
计算所述第一指纹和所述第二指纹之间的距离。Calculating a distance between the first fingerprint and the second fingerprint.
计算所述第一指纹和所述第二指纹之间的夹角。Calculating an angle between the first fingerprint and the second fingerprint.
当所述第一指纹和所述第二指纹均与预先存储的指纹模板相匹配,并且计算的所述距离和所述夹角与预先存储的距离和夹角之间的误差小于或者等于预设误差值时,将所述终端设备解锁。When the first fingerprint and the second fingerprint are both matched with the pre-stored fingerprint template, and the calculated distance between the distance and the angle and the pre-stored distance and angle is less than or equal to the preset When the error value is used, the terminal device is unlocked.
可选地,对所述指纹图像中的指纹进行识别,获取第一指纹以及具有第二指纹包括:Optionally, identifying the fingerprint in the fingerprint image, obtaining the first fingerprint, and having the second fingerprint include:
对所述指纹图像中指纹的边缘进行检测,获取具有第一边缘的第一指纹以及具有第二边缘的第二指纹。Detecting an edge of the fingerprint in the fingerprint image, acquiring a first fingerprint having a first edge and a second fingerprint having a second edge.
可选地,对所述指纹图像中指纹的边缘进行检测包括:Optionally, detecting an edge of the fingerprint in the fingerprint image includes:
将所述指纹图像进行灰度化处理,得到指纹灰度图像。The fingerprint image is subjected to grayscale processing to obtain a fingerprint grayscale image.
利用预设的高斯函数,对所述指纹灰度图像进行滤波处理,得到滤除噪点的过滤图像。The fingerprint grayscale image is filtered by using a preset Gaussian function to obtain a filtered image that filters out noise.
计算所述过滤图像中每个像素点对应的梯度幅值和梯度方向。A gradient magnitude and a gradient direction corresponding to each pixel in the filtered image are calculated.
根据计算的所述梯度幅值和所述梯度方向,在所述过滤图像中确定极大值像素点。A maximum value pixel point is determined in the filtered image based on the calculated gradient magnitude and the gradient direction.
从所述极大值像素点中筛选出灰度值大于或者等于预设阈值的像素点,并将筛选出的所述像素点确定为指纹的边缘像素点。A pixel point whose gray value is greater than or equal to a preset threshold is selected from the maximum value pixel points, and the selected pixel point is determined as an edge pixel point of the fingerprint.
可选地,计算所述过滤图像中每个像素点对应的梯度幅值和梯度方向包括:Optionally, calculating a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image includes:
根据预设的横向卷积算子和纵向卷积算子,计算所述过滤图像中每个像素点对应的一阶横向偏导数矩阵和一阶纵向偏导数矩阵。Calculating a first-order lateral partial derivative matrix and a first-order longitudinal partial derivative matrix corresponding to each pixel in the filtered image according to a preset lateral convolution operator and a longitudinal convolution operator.
根据所述一阶横向偏导数矩阵和一阶纵向偏导数矩阵,按照第一等式计算每个像素点对应的梯度幅值和梯度方向;Calculating a gradient magnitude and a gradient direction corresponding to each pixel according to the first equation according to the first-order lateral partial derivative matrix and the first-order longitudinal partial derivative matrix;
所述第一等式包括: The first equation includes:
Figure PCTCN2016086920-appb-000001
Figure PCTCN2016086920-appb-000001
Q[i,j]=arctan(Q[i,j]/P[i,j]);Q[i,j]=arctan(Q[i,j]/P[i,j]);
其中,M[i,j]为第i行第j列的像素点对应的梯度幅值,P[i,j]为第i行第j列的像素点对应的一阶横向偏导数矩阵,Q[i,j]为第i行第j列的像素点对应的一阶纵向偏导数矩阵,Q[i,j]为第i行第j列的像素点对应的梯度方向。Where M[i,j] is the gradient magnitude corresponding to the pixel point of the i-th row and the j-th column, and P[i,j] is the first-order lateral partial derivative matrix corresponding to the pixel point of the i-th row and the j-th column, Q [i, j] is a first-order longitudinal partial derivative matrix corresponding to the pixel points of the i-th row and the j-th column, and Q[i, j] is a gradient direction corresponding to the pixel points of the i-th row and the j-th column.
可选地,根据计算的所述梯度幅值和所述梯度方向,在所述过滤图像中确定极大值像素点包括:Optionally, determining the maximum value pixel points in the filtered image according to the calculated gradient magnitude and the gradient direction comprises:
在所述过滤图像中选出预设像素点,沿所述预设像素点的梯度方向选取与所述预设像素点相邻的预设数量的像素点,根据计算出的所述梯度幅值判断所述预设像素点的灰度值与选取出的所述预设数量的像素点中每个像素点的灰度值的大小关系;当所述预设像素点的灰度值大于或者等于选取出的所述预设数量的像素点中每个像素点的灰度值时,将所述预设像素点确定为极大值像素点。Selecting a preset pixel point in the filtered image, and selecting a preset number of pixel points adjacent to the preset pixel point along a gradient direction of the preset pixel point, according to the calculated gradient amplitude Determining a relationship between a gray value of the preset pixel point and a gray value of each of the selected preset number of pixel points; when the gray value of the preset pixel point is greater than or equal to When the gray value of each of the preset number of pixels is selected, the preset pixel is determined as a maximum pixel.
可选地,计算所述第一指纹和所述第二指纹之间的距离包括:Optionally, calculating a distance between the first fingerprint and the second fingerprint includes:
按照第一表达式确定指纹的中心点。The center point of the fingerprint is determined according to the first expression.
将所述第一指纹和所述第二指纹的中心点之间的相对距离确定为所述第一指纹和所述第二指纹之间的距离。Determining a relative distance between the first fingerprint and a center point of the second fingerprint as a distance between the first fingerprint and the second fingerprint.
所述第一表达式包括:The first expression includes:
Figure PCTCN2016086920-appb-000002
Figure PCTCN2016086920-appb-000002
其中,
Figure PCTCN2016086920-appb-000003
为指纹的中心点的横坐标,
Figure PCTCN2016086920-appb-000004
为指纹的中心点的纵坐标,X3为指纹的边缘像素点所对应坐标中的最小横坐标,X4为指纹的边缘像素点所对应坐标中的最大横坐标,Y1为指纹的边缘像素点所对应坐标中的最大纵坐标,Y2为指纹的边缘像素点所对应坐标中的最小纵坐标。
among them,
Figure PCTCN2016086920-appb-000003
Is the abscissa of the center point of the fingerprint,
Figure PCTCN2016086920-appb-000004
Is the ordinate of the center point of the fingerprint, X 3 is the minimum abscissa in the coordinates corresponding to the edge pixel of the fingerprint, X 4 is the largest abscissa in the coordinates corresponding to the edge pixel of the fingerprint, and Y 1 is the edge pixel of the fingerprint The maximum ordinate in the coordinates corresponding to the point, Y 2 is the minimum ordinate in the coordinates corresponding to the edge pixel of the fingerprint.
所述将所述第一指纹和所述第二指纹的中心点之间的相对距离确定为所述第一指纹和所述第二指纹之间的距离包括:Determining a relative distance between a center point of the first fingerprint and the second fingerprint as a distance between the first fingerprint and the second fingerprint includes:
根据第二表达式计算所述第一指纹和所述第二指纹的中心点之间的相对 距离;所述第二表达式包括:
Figure PCTCN2016086920-appb-000005
其中,(Xa,Ya)为所述第一指纹的中心点坐标,(Xb,Yb)为所述第二指纹的中心点坐标。
Calculating a relative distance between a center point of the first fingerprint and the second fingerprint according to a second expression; the second expression includes:
Figure PCTCN2016086920-appb-000005
Where (Xa, Ya) is the center point coordinate of the first fingerprint, and (Xb, Yb) is the center point coordinate of the second fingerprint.
可选地,计算所述第一指纹和所述第二指纹之间的夹角包括:Optionally, calculating an angle between the first fingerprint and the second fingerprint includes:
将所述第一指纹和所述第二指纹的纹理与垂直方向的角度确定为所述第一指纹和所述第二指纹的方向角度;Determining an angle of a texture of the first fingerprint and the second fingerprint with a vertical direction as a direction angle of the first fingerprint and the second fingerprint;
如果所述第一指纹和所述第二指纹的方向角度分别为θA和θB,则所述第一指纹和所述第二指纹之间的相对夹角为θ=|θA-θB|,将所述第一指纹和所述第二指纹之间的相对夹角确定为指纹间夹角。If the direction angles of the first fingerprint and the second fingerprint are θA and θB, respectively, the relative angle between the first fingerprint and the second fingerprint is θ=|θA-θB| The relative angle between the first fingerprint and the second fingerprint is determined as an angle between the fingerprints.
一种多指纹的识别装置,包括:指纹采集单元、指纹识别单元、距离计算单元、夹角计算单元和解锁单元。A multi-fingerprint identification device includes: a fingerprint collection unit, a fingerprint recognition unit, a distance calculation unit, an angle calculation unit, and an unlocking unit.
指纹采集单元,设置为从终端设备的指纹检测区采集指纹图像,所述指纹图像中包括至少两个指纹。The fingerprint collection unit is configured to collect a fingerprint image from the fingerprint detection area of the terminal device, where the fingerprint image includes at least two fingerprints.
指纹识别单元,设置为对所述指纹图像中的指纹进行识别,获取第一指纹以及第二指纹。The fingerprint identification unit is configured to identify the fingerprint in the fingerprint image, and acquire the first fingerprint and the second fingerprint.
距离计算单元,设置为计算所述第一指纹和所述第二指纹之间的距离。The distance calculation unit is configured to calculate a distance between the first fingerprint and the second fingerprint.
夹角计算单元,设置为计算所述第一指纹和所述第二指纹之间的夹角。An angle calculation unit is configured to calculate an angle between the first fingerprint and the second fingerprint.
解锁单元,设置为当所述第一指纹和所述第二指纹均与预先存储的指纹模板相匹配,并且计算的所述距离和所述夹角与预先存储的距离和夹角之间的误差小于或者等于预设误差值时,将所述终端设备解锁。An unlocking unit configured to match the first fingerprint and the second fingerprint with a pre-stored fingerprint template, and calculate an error between the distance and the angle and a pre-stored distance and angle When the preset error value is less than or equal to, the terminal device is unlocked.
可选地,所述指纹识别单元包括边缘检测模块。Optionally, the fingerprint identification unit comprises an edge detection module.
所述指纹识别单元对所述指纹图像中的指纹进行识别,获取第一指纹以及具有第二指纹包括:The fingerprint identification unit identifies the fingerprint in the fingerprint image, and acquiring the first fingerprint and having the second fingerprint includes:
边缘检测模块,设置为对所述指纹图像中指纹的边缘进行检测,获取具有第一边缘的第一指纹以及具有第二边缘的第二指纹。The edge detection module is configured to detect an edge of the fingerprint in the fingerprint image, and acquire a first fingerprint having a first edge and a second fingerprint having a second edge.
可选地,所述边缘检测模块包括灰度化处理子模块、滤波子模块、梯度计算子模块、极大值像素点确定子模块和筛选子模块。Optionally, the edge detection module includes a grayscale processing submodule, a filtering submodule, a gradient calculation submodule, a maximum value pixel determination submodule, and a screening submodule.
所述边缘检测模块对所述指纹图像中指纹的边缘进行检测包括: The detecting, by the edge detecting module, the edge of the fingerprint in the fingerprint image comprises:
灰度化处理子模块,设置为将所述指纹图像进行灰度化处理,得到指纹灰度图像。The grayscale processing submodule is configured to perform grayscale processing on the fingerprint image to obtain a fingerprint grayscale image.
滤波子模块,设置为利用预设的高斯函数,对所述指纹灰度图像进行滤波处理,得到滤除噪点的过滤图像。The filtering submodule is configured to filter the fingerprint grayscale image by using a preset Gaussian function to obtain a filtered image that filters out noise.
梯度计算子模块,设置为计算所述过滤图像中每个像素点对应的梯度幅值和梯度方向。The gradient calculation sub-module is configured to calculate a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image.
极大值像素点确定子模块,设置为根据计算的所述梯度幅值和所述梯度方向,在所述过滤图像中确定极大值像素点。A maximum value pixel determination sub-module is arranged to determine a maximum value pixel point in the filtered image based on the calculated gradient magnitude and the gradient direction.
筛选子模块,设置为从所述极大值像素点中筛选出灰度值大于或者等于预设阈值的像素点,并将筛选出的所述像素点确定为指纹的边缘像素点。The screening sub-module is configured to filter, from the maximum-value pixel, a pixel point whose gray value is greater than or equal to a preset threshold, and determine the selected pixel point as an edge pixel point of the fingerprint.
可选地,梯度计算子模块包括:偏导数矩阵计算子模块和幅值方向计算子模块。Optionally, the gradient calculation sub-module includes: a partial derivative matrix calculation sub-module and an amplitude direction calculation sub-module.
所述梯度计算子模块计算所述过滤图像中每个像素点对应的梯度幅值和梯度方向包括:The gradient calculation sub-module calculates a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image, including:
偏导数矩阵计算子模块,设置为根据预设的横向卷积算子和纵向卷积算子,计算所述过滤图像中每个像素点对应的一阶横向偏导数矩阵和一阶纵向偏导数矩阵。The partial derivative matrix calculation submodule is configured to calculate a first-order lateral partial derivative matrix and a first-order vertical partial derivative matrix corresponding to each pixel in the filtered image according to a preset lateral convolution operator and a longitudinal convolution operator .
幅值方向计算子模块,设置为根据所述一阶横向偏导数矩阵和一阶纵向偏导数矩阵,按照第一等式计算每个像素点对应的梯度幅值和梯度方向。The amplitude direction calculation submodule is configured to calculate a gradient magnitude and a gradient direction corresponding to each pixel according to the first equation according to the first-order lateral partial derivative matrix and the first-order longitudinal partial derivative matrix.
所述第一等式包括:The first equation includes:
Figure PCTCN2016086920-appb-000006
Figure PCTCN2016086920-appb-000006
Q[i,j]=arctan(Q[i,j]/P[i,j]);Q[i,j]=arctan(Q[i,j]/P[i,j]);
其中,M[i,j]为第i行第j列的像素点对应的梯度幅值,P[i,j]为第i行第j列的像素点对应的一阶横向偏导数矩阵,Q[i,j]为第i行第j列的像素点对应的一阶纵向偏导数矩阵,Q[i,j]为第i行第j列的像素点对应的梯度方向。Where M[i,j] is the gradient magnitude corresponding to the pixel point of the i-th row and the j-th column, and P[i,j] is the first-order lateral partial derivative matrix corresponding to the pixel point of the i-th row and the j-th column, Q [i, j] is a first-order longitudinal partial derivative matrix corresponding to the pixel points of the i-th row and the j-th column, and Q[i, j] is a gradient direction corresponding to the pixel points of the i-th row and the j-th column.
可选地,所述极大值像素点确定子模块包括:灰度值比较子模块。Optionally, the maximum value pixel point determining submodule comprises: a gray value comparison submodule.
所述极大值像素点确定子模块根据计算的所述梯度幅值和所述梯度方 向,在所述过滤图像中确定极大值像素点包括:The maximum value pixel point determination sub-module is based on the calculated gradient magnitude and the gradient square Determining the maximum value pixel points in the filtered image includes:
灰度值比较子模块,设置为在所述过滤图像中选出预设像素点,沿所述预设像素点的梯度方向选取与所述预设像素点相邻的预设数量的像素点,根据计算出的所述梯度幅值判断所述预设像素点的灰度值与选取出的所述预设数量的像素点中每个像素点的灰度值的大小关系;当所述预设像素点的灰度值大于或者等于选取出的所述预设数量的像素点中每个像素点的灰度值时,将所述预设像素点确定为极大值像素点。a gray value comparison sub-module, configured to select a preset pixel point in the filtered image, and select a preset number of pixel points adjacent to the preset pixel point along a gradient direction of the preset pixel point, Determining, according to the calculated gradient magnitude, a magnitude relationship between a grayscale value of the preset pixel point and a gray value of each of the selected preset number of pixel points; when the preset When the gray value of the pixel is greater than or equal to the gray value of each of the selected preset number of pixels, the preset pixel is determined as the maximum pixel.
可选地,所述距离计算单元包括:中心点确定子模块和距离确定子模块。Optionally, the distance calculation unit includes: a center point determination submodule and a distance determination submodule.
所述距离计算单元计算所述第一指纹和所述第二指纹之间的距离包括:The calculating, by the distance calculation unit, the distance between the first fingerprint and the second fingerprint includes:
中心点确定模块,设置为根据下述公式确定指纹的中心点:The center point determination module is set to determine the center point of the fingerprint according to the following formula:
Figure PCTCN2016086920-appb-000007
Figure PCTCN2016086920-appb-000007
其中,
Figure PCTCN2016086920-appb-000008
为指纹的中心点的横坐标,
Figure PCTCN2016086920-appb-000009
为指纹的中心点的纵坐标,X3为指纹的边缘像素点所对应坐标中的最小横坐标,X4为指纹的边缘像素点所对应坐标中的最大横坐标,Y1为指纹的边缘像素点所对应坐标中的最大纵坐标,Y2为指纹的边缘像素点所对应坐标中的最小纵坐标。
among them,
Figure PCTCN2016086920-appb-000008
Is the abscissa of the center point of the fingerprint,
Figure PCTCN2016086920-appb-000009
Is the ordinate of the center point of the fingerprint, X 3 is the minimum abscissa in the coordinates corresponding to the edge pixel of the fingerprint, X 4 is the largest abscissa in the coordinates corresponding to the edge pixel of the fingerprint, and Y 1 is the edge pixel of the fingerprint The maximum ordinate in the coordinates corresponding to the point, Y 2 is the minimum ordinate in the coordinates corresponding to the edge pixel of the fingerprint.
所述距离确定子模块将所述第一指纹和所述第二指纹的中心点之间的相对距离确定为所述第一指纹和所述第二指纹之间的距离包括:The distance determining sub-module determines a relative distance between the first fingerprint and a center point of the second fingerprint as a distance between the first fingerprint and the second fingerprint, including:
根据第二表达式计算所述第一指纹和所述第二指纹的中心点之间的相对距离;Calculating a relative distance between a center point of the first fingerprint and the second fingerprint according to a second expression;
所述第二表达式包括:
Figure PCTCN2016086920-appb-000010
The second expression includes:
Figure PCTCN2016086920-appb-000010
其中,(Xa,Ya)为所述第一指纹的中心点坐标,(Xb,Yb)为所述第二指纹的中心点坐标。Where (Xa, Ya) is the center point coordinate of the first fingerprint, and (Xb, Yb) is the center point coordinate of the second fingerprint.
可选地,所述夹角计算单元计算所述第一指纹和所述第二指纹之间的夹角包括:Optionally, the angle calculation unit calculates an angle between the first fingerprint and the second fingerprint, including:
将所述第一指纹和所述第二指纹的纹理与垂直方向的角度确定为所述第一指纹和所述第二指纹的方向角度。 An angle between a texture of the first fingerprint and the second fingerprint and a vertical direction is determined as a direction angle of the first fingerprint and the second fingerprint.
如果所述第一指纹和所述第二指纹的方向角度分别为θA和θB,则所述第一指纹和所述第二指纹之间的相对夹角为θ=|θA-θB|,将所述第一指纹和所述第二指纹之间的相对夹角确定为指纹间夹角。If the direction angles of the first fingerprint and the second fingerprint are θA and θB, respectively, the relative angle between the first fingerprint and the second fingerprint is θ=|θA-θB| The relative angle between the first fingerprint and the second fingerprint is determined as an angle between the fingerprints.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现所述的多指纹的识别方法。A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the multi-fingerprint identification method.
附图概述BRIEF abstract
图1为本发明实施例实施方式提供的一种多指纹的识别方法流程图;FIG. 1 is a flowchart of a method for identifying multiple fingerprints according to an embodiment of the present invention;
图2为本发明实施例实施方式中指纹识别板的结构示意图;2 is a schematic structural diagram of a fingerprint identification board according to an embodiment of the present invention;
图3为本发明实施例实施方式中采集的指纹示意图;3 is a schematic diagram of fingerprints collected in an embodiment of the present invention;
图4为本发明实施例实施方式提供的一种多指纹的识别装置的功能模块图。FIG. 4 is a functional block diagram of a multi-fingerprint identification device according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
图1为本发明实施例实施方式提供的一种多指纹的识别方法流程图。虽然下文描述流程包括以特定顺序出现的多个操作,但是应该清楚了解,这些过程可以包括更多或更少的操作,这些操作可以顺序执行或并行执行(例如使用并行处理器或多线程环境)。如图1所示,所述方法可以包括步骤S1-S5:FIG. 1 is a flowchart of a method for identifying multiple fingerprints according to an embodiment of the present invention. Although the processes described below include multiple operations occurring in a particular order, it should be clearly understood that these processes can include more or fewer operations that can be performed sequentially or in parallel (eg, using a parallel processor or a multi-threaded environment). . As shown in FIG. 1, the method may include steps S1-S5:
S1:从终端设备的指纹检测区采集指纹图像,所述指纹图像中包括至少两个指纹。S1: Collect a fingerprint image from a fingerprint detection area of the terminal device, where the fingerprint image includes at least two fingerprints.
请参阅图2。在本实施方式中,可以在终端设备的背面设置指纹识别板,在所述指纹识别板上可以设置多个指纹识别控件,例如在图2中,可以在所述指纹识别板上设置两个指纹识别控件,这两个指纹识别控件可以为所述的 指纹检测区。在本实施方式中,用户可以将两个手指的指纹分别通过这两个指纹识别控件录入终端设备中,这样,从而可以从终端设备的指纹检测区采集指纹图像。在实施时,用户可以同时将两个手指放置于两个指纹识别控件上,以在同一时间对这两个手指的指纹进行采集。另外,还可以在利用一个指纹识别控件采集完一个手指的指纹后,用另一个指纹识别控件来采集另一个手指的指纹。也就是说,在本实施方式中,本不对多个指纹采集的顺序进行限定,无论是同时识别还是按顺序识别,最终,由指纹识别控件采集的指纹均会显示于一个指纹图像上。Please refer to Figure 2. In this embodiment, a fingerprint identification board may be disposed on the back side of the terminal device, and multiple fingerprint recognition controls may be disposed on the fingerprint identification board. For example, in FIG. 2, two fingerprints may be set on the fingerprint identification board. Identifying controls, the two fingerprint recognition controls can be Fingerprint detection area. In this embodiment, the user can enter the fingerprints of the two fingers into the terminal device through the two fingerprint recognition controls, so that the fingerprint image can be collected from the fingerprint detection area of the terminal device. In implementation, the user can simultaneously place two fingers on two fingerprint recognition controls to capture the fingerprints of the two fingers at the same time. In addition, after using one fingerprint recognition control to collect the fingerprint of one finger, another fingerprint identification control is used to collect the fingerprint of the other finger. That is to say, in the present embodiment, the order of multiple fingerprint collections is not limited, whether it is simultaneous recognition or sequential recognition, and finally, the fingerprints collected by the fingerprint recognition control are displayed on one fingerprint image.
需要说明的是,在本实施方式中,仅以两个指纹识别控件和两个指纹进行说明,但本领域技术人员应当知晓,本发明实施例的技术方案同样适用于两个以上的指纹识别控件以及两个以上的指纹。在本发明实施例中,为了描述方便,仅以两个指纹进行阐述。It should be noted that, in this embodiment, only two fingerprint recognition controls and two fingerprints are used for description, but those skilled in the art should know that the technical solutions of the embodiments of the present invention are equally applicable to two or more fingerprint recognition controls. And more than two fingerprints. In the embodiment of the present invention, for the convenience of description, only two fingerprints are used for explanation.
S2:对所述指纹图像中的指纹进行识别,获取第一指纹以及第二指纹。S2: Identify the fingerprint in the fingerprint image, and acquire the first fingerprint and the second fingerprint.
在本实施方式中,从所述指纹检测区采集到包括至少两个指纹的指纹图像后,可以对该指纹图像中的指纹进行识别,以将不同的指纹彼此区分开。在本实施方式中,可以对所述指纹图像中的指纹进行识别,获取第一指纹以及第二指纹。在本实施方式中,可以对所述指纹图像中指纹的边缘进行检测,以获取具有第一边缘的第一指纹以及具有第二边缘的第二指纹。In this embodiment, after the fingerprint image including at least two fingerprints is collected from the fingerprint detection area, the fingerprints in the fingerprint image may be identified to distinguish different fingerprints from each other. In this embodiment, the fingerprint in the fingerprint image may be identified to acquire the first fingerprint and the second fingerprint. In this embodiment, an edge of the fingerprint in the fingerprint image may be detected to acquire a first fingerprint having a first edge and a second fingerprint having a second edge.
请参阅图3。图3中位于指纹外矩形虚线框即可以作为指纹的边缘。在本实施方式中,可以按照下述步骤来对指纹图像中指纹的边缘进行检测。Please refer to Figure 3. In Fig. 3, the dotted square frame outside the fingerprint can be used as the edge of the fingerprint. In the present embodiment, the edge of the fingerprint in the fingerprint image can be detected in accordance with the following steps.
S21:将所述指纹图像进行灰度化处理,得到指纹灰度图像。S21: Perform grayscale processing on the fingerprint image to obtain a fingerprint grayscale image.
在本实施方式中,如果从指纹检测区采集到的指纹图像为彩色图像,则可以对所述彩色图像进行灰度处理,以满足后续处理的需要。彩色图像通常由R(Red,红)、G(Green,绿)、B(Blue,蓝)三个通道的颜色变化以及它们之间的叠加来进行显示,在本实施方式中,可以对每个通道的像素值进行加权平均,从而将RGB三个通道的像素值转换为灰度值。可选地,在本实施方式中可以按照下述公式中的任意一个对指纹图像进行灰度化处理:In this embodiment, if the fingerprint image collected from the fingerprint detection area is a color image, the color image may be subjected to gradation processing to meet the needs of subsequent processing. The color image is usually displayed by the color change of three channels of R (Red, Red), G (Green, Green), B (Blue, Blue), and the superposition between them. In this embodiment, each can be The pixel values of the channels are weighted averaged to convert the pixel values of the three channels of RGB into grayscale values. Optionally, in the embodiment, the fingerprint image may be grayed out according to any one of the following formulas:
公式1:Gray=(R+G+B)/3; Formula 1: Gray=(R+G+B)/3;
公式2:Gray=0.299R+0.587G+0.114B;Formula 2: Gray = 0.299R + 0.587G + 0.114B;
其中,R、G、B分别代表R通道、G通道以及B通道的像素值,Gray代表灰度化处理后的灰度值。Where R, G, and B represent the pixel values of the R channel, the G channel, and the B channel, respectively, and Gray represents the gray value after the graying process.
在本实施方式中,如果所述指纹图像不是RGB格式的图像,那么可以先将所述指纹图像的格式转换为RGB格式,然后在进行灰度化处理。In the present embodiment, if the fingerprint image is not an image in the RGB format, the format of the fingerprint image may be first converted into an RGB format, and then the gradation processing is performed.
S22:利用预设的高斯函数,对所述指纹灰度图像进行滤波处理,得到滤除噪点的过滤图像。S22: Perform filtering processing on the fingerprint grayscale image by using a preset Gaussian function to obtain a filtered image that filters out noise.
在本实施方式中,考虑到在所述指纹灰度图像中,往往存在较多的噪点,这些噪点在后续的处理过程中会严重影响处理结果的准确性。因此,在本实施方式中可以对所述指纹灰度图像进行滤波处理,得到滤除噪点的过滤图像。可选地,在本实施方式中可以将预设的高斯函数作为滤波函数。所述预设的高斯函数例如可以为:In the present embodiment, it is considered that in the fingerprint grayscale image, there is often more noise, and the noise may seriously affect the accuracy of the processing result in the subsequent processing. Therefore, in the present embodiment, the fingerprint grayscale image may be subjected to filtering processing to obtain a filtered image that filters out noise. Optionally, a preset Gaussian function may be used as the filter function in this embodiment. The preset Gaussian function can be, for example:
Figure PCTCN2016086920-appb-000011
Figure PCTCN2016086920-appb-000011
在本实施方式中,可以将所述指纹灰度图像的像素矩阵与上述的高斯函数进行求褶积运算,从而可以将所述指纹灰度图像中的噪点滤除,得到与所述指纹灰度图像对应的过滤图像。In this embodiment, the pixel matrix of the fingerprint grayscale image may be subjected to a convolution operation with the Gaussian function described above, so that noise in the fingerprint grayscale image may be filtered out to obtain the fingerprint grayscale. The filtered image corresponding to the image.
S23:计算所述过滤图像中每个像素点对应的梯度幅值和梯度方向。S23: Calculate a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image.
在本实施方式中,所述过滤图像中指纹的边缘可以通过计算所述过滤图像中每个像素点对应的梯度幅值和梯度方向来确定。在本实施方式中,可以通过一阶偏导数矩阵来计算每个像素点对应的梯度幅值和梯度方向。可选地,在本实施方式中,所述一阶偏导数矩阵可以分为横向偏导数矩阵(x轴方向)和纵向偏导数矩阵(y轴方向)。因此,可以预先指定横向卷积算子(x轴方向)和纵向卷积算子(y轴方向),利用这两个卷积算子分别对所述过滤图像中的各个像素点进行卷积处理,从而可以得到对应的一阶偏导数矩阵。In this embodiment, the edge of the fingerprint in the filtered image may be determined by calculating a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image. In the present embodiment, the gradient magnitude and the gradient direction corresponding to each pixel point can be calculated by the first-order partial derivative matrix. Optionally, in the embodiment, the first-order partial derivative matrix may be divided into a lateral partial derivative matrix (x-axis direction) and a longitudinal partial derivative matrix (y-axis direction). Therefore, a lateral convolution operator (x-axis direction) and a longitudinal convolution operator (y-axis direction) can be specified in advance, and each pixel point in the filtered image is separately convoluted by the two convolution operators Thus, a corresponding first-order partial derivative matrix can be obtained.
在本实施方式中,所述横向卷积算子和纵向卷积算子可以如下所示:In this embodiment, the lateral convolution operator and the vertical convolution operator can be as follows:
Figure PCTCN2016086920-appb-000012
Figure PCTCN2016086920-appb-000012
其中,sx为所述横向卷积算子,sy为所述纵向卷积算子。 Where s x is the lateral convolution operator and s y is the longitudinal convolution operator.
利用所述横向卷积算子和纵向卷积算子对所述过滤图像中每个像素点进行处理后得到的一阶偏导数矩阵可以如下所示:The first-order partial derivative matrix obtained by processing each pixel in the filtered image by using the lateral convolution operator and the vertical convolution operator may be as follows:
P[i,j]=(f[i,j+1]-f[i,j]+f[i+1,j+1]-f[i+1,j])/2;P[i,j]=(f[i,j+1]-f[i,j]+f[i+1,j+1]-f[i+1,j])/2;
Q[i,j]=(f[i,j]-f[i+1,j]+f[i,j+1]-f[i+1,j+1])/2;Q[i,j]=(f[i,j]-f[i+1,j]+f[i,j+1]-f[i+1,j+1])/2;
其中,P[i,j]表示第i行第j列的像素点对应的一阶横向偏导数,Q[i,j]表示第i行第j列的像素点对应的一阶纵向偏导数,f[i,j]表示第i行第j列的像素点对应的像素值。Where P[i,j] represents the first-order lateral partial derivative corresponding to the pixel of the i-th row and the j-th column, and Q[i,j] represents the first-order longitudinal partial derivative corresponding to the pixel of the i-th row and the j-th column, f[i,j] represents the pixel value corresponding to the pixel of the i-th row and the j-th column.
在计算得到所述一阶横向偏导数矩阵和一阶纵向偏导数矩阵后,可以按照第一等式计算每个像素点对应的梯度幅值和梯度方向。After the first-order lateral partial derivative matrix and the first-order longitudinal partial derivative matrix are calculated, the gradient magnitude and the gradient direction corresponding to each pixel point can be calculated according to the first equation.
所述第一等式包括:The first equation includes:
Figure PCTCN2016086920-appb-000013
Figure PCTCN2016086920-appb-000013
Q[i,j]=arctan(Q[i,j]/P[i,j])Q[i,j]=arctan(Q[i,j]/P[i,j])
其中,M[i,j]为第i行第j列的像素点对应的梯度幅值,P[i,j]为第i行第j列的像素点对应的一阶横向偏导数矩阵,Q[i,j]为第i行第j列的像素点对应的一阶纵向偏导数矩阵,Q[i,j]为第i行第j列的像素点对应的梯度方向。Where M[i,j] is the gradient magnitude corresponding to the pixel point of the i-th row and the j-th column, and P[i,j] is the first-order lateral partial derivative matrix corresponding to the pixel point of the i-th row and the j-th column, Q [i, j] is a first-order longitudinal partial derivative matrix corresponding to the pixel points of the i-th row and the j-th column, and Q[i, j] is a gradient direction corresponding to the pixel points of the i-th row and the j-th column.
S24:根据计算的所述梯度幅值和所述梯度方向,在所述过滤图像中确定极大值像素点。S24: Determine a maximum value pixel point in the filtered image according to the calculated gradient magnitude and the gradient direction.
在本实施方式中,所述过滤图像中像素点的灰度值会沿着该像素点的梯度方向进行变化,那么与该像素点相邻的局部区域中灰度值最大的点往往落在该像素点对应的梯度方向上。在本实施方式中,灰度值在相邻的局部区域中最大的像素点可以称为极大值像素点。由于指纹边缘上的像素点在与其相邻的局部区域内,灰度值往往是最大的,因此,在本实施方式中可以在所述过滤图像中确定极大值像素点。可选地,可以在所述过滤图像中的预设区域内选出预设像素点,沿所述预设像素点的梯度方向选取与所述预设像素点相邻的预设数量的像素点。在实施过程中,往往可以选择与所述预设像素点相邻的8个像素点。根据计算出的所述梯度幅值判断所述预设像素点的灰度值与选取出的所述预设数量的像素点中每个像素点的灰度值的大小关系;当所述预设像素点的灰度值大于或者等于所述预设数量的像素点中每个像素点的 灰度值时,则可以将所述预设像素点确定为极大值像素点。In this embodiment, the gray value of the pixel in the filtered image changes along the gradient direction of the pixel, and the point where the gray value is the largest in the local area adjacent to the pixel often falls in the The pixel points correspond to the gradient direction. In the present embodiment, the pixel point whose gradation value is the largest in the adjacent partial region may be referred to as a maximum value pixel point. Since the pixel point on the edge of the fingerprint is in the local area adjacent thereto, the gray value is often the largest, and therefore, in the present embodiment, the maximum value pixel point can be determined in the filtered image. Optionally, a preset pixel point may be selected in a preset area in the filtered image, and a preset number of pixel points adjacent to the preset pixel point are selected along a gradient direction of the preset pixel point. . In the implementation process, it is often possible to select 8 pixel points adjacent to the preset pixel point. Determining, according to the calculated gradient magnitude, a magnitude relationship between a grayscale value of the preset pixel point and a gray value of each of the selected preset number of pixel points; when the preset The gray value of the pixel is greater than or equal to each of the preset number of pixels When the gray value is used, the preset pixel point may be determined as a maximum value pixel point.
需要说明的是,由于所述预设像素点对应的梯度方向上的像素点可能不在选取的8个像素点中,因此在这种情况下,则需要根据所述8个像素点,对梯度方向上的像素点进行插值计算,以确定出所述梯度方向上像素点的灰度值,从而可以将所述预设像素点与其梯度方向上的像素点进行比较,以确定所述预设像素点是否为极大值像素点。It should be noted that, since the pixel points in the gradient direction corresponding to the preset pixel points may not be in the selected 8 pixel points, in this case, the gradient direction needs to be according to the 8 pixel points. Interpolating the pixel points to determine a gray value of the pixel in the gradient direction, so that the preset pixel point can be compared with the pixel point in the gradient direction to determine the preset pixel point Whether it is a maximum value pixel.
S25:从所述极大值像素点中筛选出灰度值大于或者等于预设阈值的像素点,并将筛选出的所述像素点确定为指纹的边缘像素点。S25: Select, from the maximum value pixel, a pixel point whose gray value is greater than or equal to a preset threshold, and determine the selected pixel point as an edge pixel point of the fingerprint.
在本实施方式中,由于受到计算误差或者干扰像素点点的影响,步骤S24中确定的极大值像素点中可能会存在不处于边缘上的像素点。在这种情况下,则需要对确定出的极大值像素点的灰度值再次进行判断,以将灰度值较低的像素点剔除。可选地,在本实施方式中可以从所述极大值像素点中筛选出灰度值大于或者等于预设阈值的像素点,并将筛选出的所述像素点确定为指纹的边缘像素点。In the present embodiment, due to the calculation error or the influence of the interference pixel point, there may be pixel points not on the edge among the maximum value pixel points determined in step S24. In this case, it is necessary to judge the gradation value of the determined maximum value pixel again to remove the pixel having a lower gradation value. Optionally, in the embodiment, a pixel point whose gray value is greater than or equal to a preset threshold may be selected from the maximum value pixel points, and the selected pixel point is determined as an edge pixel point of the fingerprint. .
这样,通过上述的处理步骤,便可以得到指纹图像中具有第一边缘的第一指纹以及具有第二边缘的第二指纹。所述第一边缘和所述第二边缘可以为如图3中所示的矩形虚线框。Thus, by the above processing steps, the first fingerprint having the first edge and the second fingerprint having the second edge in the fingerprint image can be obtained. The first edge and the second edge may be rectangular dashed boxes as shown in FIG.
S3:计算所述第一指纹和所述第二指纹之间的距离。S3: Calculate a distance between the first fingerprint and the second fingerprint.
在本实施方式中,从指纹图像中识别出第一指纹和第二指纹后,便可以计算所述第一指纹和所述第二指纹之间的距离,以表征第一指纹和第二指纹的位置关系。可选地,所述第一指纹和所述第二指纹之间的距离可以通过两个指纹中心点之间的距离来表示。其中,所述第一指纹和第二指纹的中心点可以通过第一边缘和第二边缘上四个顶点的坐标值来确定。可选地,在本实施方式中,可以根据所述第一边缘和所述第二边缘上最上方、最下方、最左方以及最右方的像素点的坐标值,确定所述第一指纹的第一中心点和第二指纹的第二中心点。In this embodiment, after the first fingerprint and the second fingerprint are recognized from the fingerprint image, the distance between the first fingerprint and the second fingerprint may be calculated to represent the first fingerprint and the second fingerprint. Positional relationship. Optionally, the distance between the first fingerprint and the second fingerprint may be represented by a distance between two fingerprint center points. The center point of the first fingerprint and the second fingerprint may be determined by coordinate values of four vertices on the first edge and the second edge. Optionally, in the embodiment, the first fingerprint may be determined according to coordinate values of pixel points of the uppermost, lowermost, leftmost, and rightmost sides on the first edge and the second edge. The first center point and the second center point of the second fingerprint.
可选地,所述计算所述第一指纹和所述第二指纹之间的距离包括:Optionally, the calculating a distance between the first fingerprint and the second fingerprint includes:
按照第一表达式确定指纹的中心点; Determining the center point of the fingerprint according to the first expression;
将所述第一指纹和所述第二指纹的中心点之间的相对距离确定为所述第一指纹和所述第二指纹之间的距离;Determining a relative distance between the first fingerprint and a center point of the second fingerprint as a distance between the first fingerprint and the second fingerprint;
所述第一表达式包括:The first expression includes:
Figure PCTCN2016086920-appb-000014
Figure PCTCN2016086920-appb-000014
其中,
Figure PCTCN2016086920-appb-000015
为指纹的中心点的横坐标,
Figure PCTCN2016086920-appb-000016
为指纹的中心点的纵坐标,X3为指纹的边缘像素点所对应坐标中的最小横坐标,X4为指纹的边缘像素点所对应坐标中的最大横坐标,Y1为指纹的边缘像素点所对应坐标中的最大纵坐标,Y2为指纹的边缘像素点所对应坐标中的最小纵坐标。
among them,
Figure PCTCN2016086920-appb-000015
Is the abscissa of the center point of the fingerprint,
Figure PCTCN2016086920-appb-000016
Is the ordinate of the center point of the fingerprint, X 3 is the minimum abscissa in the coordinates corresponding to the edge pixel of the fingerprint, X 4 is the largest abscissa in the coordinates corresponding to the edge pixel of the fingerprint, and Y 1 is the edge pixel of the fingerprint The maximum ordinate in the coordinates corresponding to the point, Y 2 is the minimum ordinate in the coordinates corresponding to the edge pixel of the fingerprint.
这样,在确定出第一中心点和第二中心点后,可以将所述第一中心点和所述第二中心点之间的距离确定为所述第一指纹和所述第二指纹之间的距离。所述距离确定子模块将所述第一指纹和所述第二指纹的中心点之间的相对距离确定为所述第一指纹和所述第二指纹之间的距离包括:根据第二表达式计算所述第一指纹和所述第二指纹的中心点之间的相对距离。In this way, after determining the first center point and the second center point, the distance between the first center point and the second center point may be determined as being between the first fingerprint and the second fingerprint the distance. The distance determining sub-module determines a relative distance between the first fingerprint and a center point of the second fingerprint as a distance between the first fingerprint and the second fingerprint, including: according to the second expression Calculating a relative distance between a center point of the first fingerprint and the second fingerprint.
所述第二表达式包括:The second expression includes:
Figure PCTCN2016086920-appb-000017
Figure PCTCN2016086920-appb-000017
其中,(Xa,Ya)为所述第一指纹的中心点坐标,(Xb,Yb)为所述第二指纹的中心点坐标,L为所述第一中心点和第二中心点之间的距离,xa为所述第一指纹的中心点的横坐标,ya所述第一指纹的中心点的纵坐标,xb为所述第二指纹的中心点的横坐标,yb所述第二指纹的中心点的纵坐标。Where (Xa, Ya) is the center point coordinate of the first fingerprint, (Xb, Yb) is the center point coordinate of the second fingerprint, and L is between the first center point and the second center point a distance, x a is the abscissa of the center point of the first fingerprint, y a is the ordinate of the center point of the first fingerprint, and x b is the abscissa of the center point of the second fingerprint, y b The ordinate of the center point of the second fingerprint.
S4:计算所述第一指纹和所述第二指纹之间的夹角。S4: Calculate an angle between the first fingerprint and the second fingerprint.
在本实施方式中,所述第一指纹和所述第二指纹之间的位置关系除了两者之间的距离,还可以包括两者之间的夹角。可选地,在本实施方式中,可以将与所述第一指纹的纹理相垂直的方向确定为所述第一指纹的第一方向,将与所述第二指纹的纹理相垂直的方向确定为所述第二指纹的第二方向,并且将所述第一方向与所述第二方向之间的夹角确定为所述第一指纹与所述第二指纹之间的夹角。如图3所示,左侧指纹对应的倾斜直线的方向可以为所述第一方向,右侧指纹对应的竖直直线的方向可以为所述第二方向,那么这 两个直线之间的夹角可以为所述第一指纹和所述第二指纹之间的夹角。In this embodiment, the positional relationship between the first fingerprint and the second fingerprint may include an angle between the two, in addition to the distance between the two. Optionally, in this embodiment, a direction perpendicular to a texture of the first fingerprint may be determined as a first direction of the first fingerprint, and a direction perpendicular to a texture of the second fingerprint may be determined. a second direction of the second fingerprint, and determining an angle between the first direction and the second direction as an angle between the first fingerprint and the second fingerprint. As shown in FIG. 3, the direction of the oblique line corresponding to the left fingerprint may be the first direction, and the direction of the vertical line corresponding to the right fingerprint may be the second direction, then this The angle between the two straight lines may be an angle between the first fingerprint and the second fingerprint.
S5:当所述第一指纹和所述第二指纹均与预先存储的指纹模板相匹配,并且计算的所述距离和所述夹角与预先存储的距离和夹角之间的误差小于或者等于预设误差值时,将所述终端设备解锁。S5: when both the first fingerprint and the second fingerprint match the pre-stored fingerprint template, and the calculated distance between the distance and the angle and the pre-stored distance and angle is less than or equal to When the error value is preset, the terminal device is unlocked.
在本实施方式中,当对所述第一指纹和所述第二指纹的位置关系进行确定后,可以在识别第一指纹和第二指纹的同时,对所述第一指纹和第二指纹之间的位置关系进行判断,以确定处于当前位置关系的第一指纹和第二指纹能够对终端设备进行解锁。可选地,在本实施方式中可以先对第一指纹和第二指纹进行匹配,用户可以预先在终端设备中录入能够解锁所述终端设备的多个指纹,以构成指纹模板。那么当从指纹图像中识别出第一指纹和第二指纹后,可以将第一指纹和第二指纹与所述指纹模板进行比较,当所述第一指纹和第二指纹均存在于所述指纹模板中时,则判定所述第一指纹和第二指纹与所述指纹模板相匹配。In this embodiment, after determining the positional relationship between the first fingerprint and the second fingerprint, the first fingerprint and the second fingerprint may be recognized while identifying the first fingerprint and the second fingerprint. The positional relationship between the two is determined to determine that the first fingerprint and the second fingerprint in the current positional relationship can unlock the terminal device. Optionally, in the embodiment, the first fingerprint and the second fingerprint may be matched first, and the user may input multiple fingerprints in the terminal device that can unlock the terminal device to form a fingerprint template. Then, after the first fingerprint and the second fingerprint are recognized from the fingerprint image, the first fingerprint and the second fingerprint may be compared with the fingerprint template, when the first fingerprint and the second fingerprint are both present in the fingerprint When the template is in the template, it is determined that the first fingerprint and the second fingerprint match the fingerprint template.
在本实施方式中,仅依靠所述第一指纹和第二指纹与所述指纹模板相匹配这一条件并不能对终端设备进行解锁,还需要对所述第一指纹和第二指纹之间的位置关系进行判断。同样地,所述第一指纹和第二指纹之间的距离和夹角同样可以由用户预先录入终端设备中,那么当计算得到指纹图像中第一指纹和第二指纹之间的距离和夹角后,可以将计算的所述距离和所述夹角与预先存储的距离和夹角进行对比,当计算的所述距离和所述夹角与预先存储的距离和夹角之间的误差小于或者等于预设误差值时,则表明当前第一指纹和第二指纹之间的位置关系与预设的位置关系相匹配。那么,在指纹匹配以及指纹之间的位置关系也匹配的情况下,可以将终端设备进行解锁。In this embodiment, the condition that the first fingerprint and the second fingerprint match the fingerprint template cannot be used to unlock the terminal device, and the first fingerprint and the second fingerprint are required to be The positional relationship is judged. Similarly, the distance and the angle between the first fingerprint and the second fingerprint can also be pre-recorded into the terminal device by the user, and then the distance and angle between the first fingerprint and the second fingerprint in the fingerprint image are calculated. Thereafter, the calculated distance and the included angle may be compared with a pre-stored distance and angle, when the calculated distance and the angle between the angle and the pre-stored distance and angle are less than or When it is equal to the preset error value, it indicates that the positional relationship between the current first fingerprint and the second fingerprint matches the preset positional relationship. Then, in the case where the fingerprint matching and the positional relationship between the fingerprints also match, the terminal device can be unlocked.
由上可见,本发明实施例实施方式提供的一种多指纹的识别方法,通过对采集到的指纹图像进行识别,从而可以获取指纹图像中的多个指纹。通过计算这多个指纹之间的距离和夹角关系,从而可以将计算的距离和夹角与预先存储的距离和夹角进行对比。这样,在多个指纹均存在于预设的指纹库中,并且多个指纹之间的位置关系也满足预设的位置关系时,可以将终端设备进行解锁。由此可见,本发明实施例实施方式提供的一种多指纹的识别方法,在进行指纹匹配的基础上,还添加了对指纹之间的位置关系进行匹配的过程, 不仅增强了加密的安全性,并且也增强了用户设计指纹位置关系的趣味性。It can be seen from the above that the multi-fingerprint identification method provided by the embodiment of the present invention can obtain multiple fingerprints in the fingerprint image by identifying the collected fingerprint image. By calculating the distance and angle relationship between the plurality of fingerprints, the calculated distance and angle can be compared with the pre-stored distance and angle. In this way, when a plurality of fingerprints are present in the preset fingerprint database, and the positional relationship between the plurality of fingerprints also satisfies the preset positional relationship, the terminal device can be unlocked. It can be seen that the multi-fingerprint identification method provided by the embodiment of the present invention adds a process of matching the positional relationship between the fingerprints on the basis of fingerprint matching. It not only enhances the security of encryption, but also enhances the user's interest in designing fingerprint positional relationships.
本发明实施例实施方式还提供一种多指纹的识别装置。图4为本发明实施例实施方式提供的一种多指纹的识别装置的功能模块图。如图4所示,所述装置可以包括:指纹采集单元100、指纹识别单元200、距离计算单元300、夹角计算单元400和解锁单元500。An embodiment of the present invention further provides a multi-fingerprint identification device. FIG. 4 is a functional block diagram of a multi-fingerprint identification device according to an embodiment of the present invention. As shown in FIG. 4, the apparatus may include: a fingerprint collection unit 100, a fingerprint recognition unit 200, a distance calculation unit 300, an angle calculation unit 400, and an unlocking unit 500.
指纹采集单元100,设置为从终端设备的指纹检测区采集指纹图像,所述指纹图像中包括至少两个指纹;The fingerprint collection unit 100 is configured to collect a fingerprint image from a fingerprint detection area of the terminal device, where the fingerprint image includes at least two fingerprints;
指纹识别单元200,设置为对所述指纹图像中的指纹进行识别,获取第一指纹以及第二指纹;The fingerprint identification unit 200 is configured to identify the fingerprint in the fingerprint image, and acquire the first fingerprint and the second fingerprint;
距离计算单元300,设置为计算所述第一指纹和所述第二指纹之间的距离;The distance calculating unit 300 is configured to calculate a distance between the first fingerprint and the second fingerprint;
夹角计算单元400,设置为计算所述第一指纹和所述第二指纹之间的夹角;The angle calculation unit 400 is configured to calculate an angle between the first fingerprint and the second fingerprint;
解锁单元500,设置为当所述第一指纹和所述第二指纹均与预先存储的指纹模板相匹配,并且计算的所述距离和所述夹角与预先存储的距离和夹角之间的误差小于或者等于预设误差值时,将所述终端设备解锁。The unlocking unit 500 is configured to match the first fingerprint and the second fingerprint with a pre-stored fingerprint template, and calculate the distance between the distance and the angle and the pre-stored distance and angle When the error is less than or equal to the preset error value, the terminal device is unlocked.
在本发明实施例一可选实施方式中,所述指纹识别单元200具体包括:包括边缘检测模块。In an optional implementation manner of the embodiment of the present invention, the fingerprint identification unit 200 specifically includes: an edge detection module.
所述指纹识别单元对所述指纹图像中的指纹进行识别,获取第一指纹以及具有第二指纹包括:The fingerprint identification unit identifies the fingerprint in the fingerprint image, and acquiring the first fingerprint and having the second fingerprint includes:
边缘检测模块,设置为对所述指纹图像中指纹的边缘进行检测,获取具有第一边缘的第一指纹以及具有第二边缘的第二指纹。The edge detection module is configured to detect an edge of the fingerprint in the fingerprint image, and acquire a first fingerprint having a first edge and a second fingerprint having a second edge.
可选地,所述边缘检测模块200包括灰度化处理子模块201、滤波子模块202、梯度计算子模块203、极大值像素点确定子模块204和筛选子模块205。Optionally, the edge detection module 200 includes a grayscale processing sub-module 201, a filtering sub-module 202, a gradient calculation sub-module 203, a maximum-value pixel determination sub-module 204, and a screening sub-module 205.
所述边缘检测模块200对所述指纹图像中指纹的边缘进行检测包括:The detecting, by the edge detecting module 200, the edge of the fingerprint in the fingerprint image includes:
灰度化处理子模块201,设置为将所述指纹图像进行灰度化处理,得到指纹灰度图像。 The grayscale processing sub-module 201 is configured to perform grayscale processing on the fingerprint image to obtain a fingerprint grayscale image.
滤波子模块202,设置为利用预设的高斯函数,对所述指纹灰度图像进行滤波处理,得到滤除噪点的过滤图像。The filtering sub-module 202 is configured to perform filtering processing on the fingerprint grayscale image by using a preset Gaussian function to obtain a filtered image that filters out noise.
梯度计算子模块203,设置为计算所述过滤图像中每个像素点对应的梯度幅值和梯度方向。The gradient calculation sub-module 203 is configured to calculate a gradient magnitude and a gradient direction corresponding to each pixel point in the filtered image.
极大值像素点确定子模块204,设置为根据计算的所述梯度幅值和所述梯度方向,在所述过滤图像中确定极大值像素点。The maximum value pixel determination sub-module 204 is configured to determine a maximum value pixel point in the filtered image based on the calculated gradient magnitude and the gradient direction.
筛选子模块205,设置为从所述极大值像素点中筛选出灰度值大于或者等于预设阈值的像素点,并将筛选出的所述像素点确定为指纹的边缘像素点。The filtering sub-module 205 is configured to filter, from the maximum-value pixel, a pixel point whose gray value is greater than or equal to a preset threshold, and determine the selected pixel point as an edge pixel of the fingerprint.
在本发明实施例一可选实施方式中,梯度计算子模块203包括:偏导数矩阵计算子模块和幅值方向计算子模块。In an optional implementation manner of the embodiment of the present invention, the gradient calculation sub-module 203 includes: a partial derivative matrix calculation sub-module and an amplitude direction calculation sub-module.
所述梯度计算子模块203计算所述过滤图像中每个像素点对应的梯度幅值和梯度方向包括:The gradient calculation sub-module 203 calculates a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image, including:
偏导数矩阵计算子模块,设置为根据预设的横向卷积算子和纵向卷积算子,计算所述过滤图像中每个像素点对应的一阶横向偏导数矩阵和一阶纵向偏导数矩阵。The partial derivative matrix calculation submodule is configured to calculate a first-order lateral partial derivative matrix and a first-order vertical partial derivative matrix corresponding to each pixel in the filtered image according to a preset lateral convolution operator and a longitudinal convolution operator .
幅值方向计算子模块,设置为根据所述一阶横向偏导数矩阵和一阶纵向偏导数矩阵,按照第一等式计算每个像素点对应的梯度幅值和梯度方向。The amplitude direction calculation submodule is configured to calculate a gradient magnitude and a gradient direction corresponding to each pixel according to the first equation according to the first-order lateral partial derivative matrix and the first-order longitudinal partial derivative matrix.
所述第一等式包括:The first equation includes:
Figure PCTCN2016086920-appb-000018
Figure PCTCN2016086920-appb-000018
Q[i,j]=arctan(Q[i,j]/P[i,j])Q[i,j]=arctan(Q[i,j]/P[i,j])
其中,M[i,j]为第i行第j列的像素点对应的梯度幅值,P[i,j]为第i行第j列的像素点对应的一阶横向偏导数矩阵,Q[i,j]为第i行第j列的像素点对应的一阶纵向偏导数矩阵,Q[i,j]为第i行第j列的像素点对应的梯度方向。Where M[i,j] is the gradient magnitude corresponding to the pixel point of the i-th row and the j-th column, and P[i,j] is the first-order lateral partial derivative matrix corresponding to the pixel point of the i-th row and the j-th column, Q [i, j] is a first-order longitudinal partial derivative matrix corresponding to the pixel points of the i-th row and the j-th column, and Q[i, j] is a gradient direction corresponding to the pixel points of the i-th row and the j-th column.
在本发明实施例一可选实施方式中,所述极大值像素点确定子模块204包括:灰度值比较子模块。In an optional implementation manner of the embodiment of the present invention, the maximum value pixel point determining sub-module 204 includes: a gray value comparison sub-module.
所述极大值像素点确定子模块204根据计算的所述梯度幅值和所述梯度方向,在所述过滤图像中确定极大值像素点包括: The maximum value pixel determination sub-module 204 determines the maximum value pixel in the filtered image according to the calculated gradient magnitude and the gradient direction, including:
灰度值比较子模块,设置为在在所述过滤图像中选出预设像素点,沿所述预设像素点的梯度方向选取与所述预设像素点相邻的预设数量的像素点,根据计算出的所述梯度幅值判断所述预设像素点的灰度值与选取出的所述预设数量的像素点中每个像素点的灰度值的大小关系;当所述预设像素点的灰度值大于或者等于选取出的所述预设数量的像素点中每个像素点的灰度值时,将所述预设像素点确定为极大值像素点。a gray value comparison sub-module, configured to select a preset pixel point in the filtered image, and select a preset number of pixel points adjacent to the preset pixel point along a gradient direction of the preset pixel point And determining, according to the calculated gradient amplitude, a magnitude relationship between the gray value of the preset pixel point and the gray value of each pixel point in the selected preset number of pixel points; When the gray value of the pixel is greater than or equal to the gray value of each of the selected preset number of pixels, the preset pixel is determined as the maximum pixel.
在本发明实施例一可选实施方式中,所述距离计算单元300包括:中心点确定子模块301和距离确定子模块302。In an optional implementation manner of the embodiment of the present invention, the distance calculation unit 300 includes a center point determination sub-module 301 and a distance determination sub-module 302.
所述距离计算单元300计算所述第一指纹和所述第二指纹之间的距离包括:The calculating, by the distance calculating unit 300, the distance between the first fingerprint and the second fingerprint includes:
中心点确定子模块301,设置为根据第一表达式确定指纹的中心点.The central point determining submodule 301 is configured to determine a center point of the fingerprint according to the first expression.
所述距离确定子模块302,设置为将所述第一指纹和所述第二指纹的中心点之间的相对距离确定为所述第一指纹和所述第二指纹之间的距离。The distance determining sub-module 302 is configured to determine a relative distance between a center point of the first fingerprint and the second fingerprint as a distance between the first fingerprint and the second fingerprint.
所述第一表达式包括:The first expression includes:
Figure PCTCN2016086920-appb-000019
Figure PCTCN2016086920-appb-000019
其中,
Figure PCTCN2016086920-appb-000020
为指纹的中心点的横坐标,
Figure PCTCN2016086920-appb-000021
为指纹的中心点的纵坐标,X3为指纹的边缘像素点所对应坐标中的最小横坐标,X4为指纹的边缘像素点所对应坐标中的最大横坐标,Y1为指纹的边缘像素点所对应坐标中的最大纵坐标,Y2为指纹的边缘像素点所对应坐标中的最小纵坐标。
among them,
Figure PCTCN2016086920-appb-000020
Is the abscissa of the center point of the fingerprint,
Figure PCTCN2016086920-appb-000021
Is the ordinate of the center point of the fingerprint, X 3 is the minimum abscissa in the coordinates corresponding to the edge pixel of the fingerprint, X 4 is the largest abscissa in the coordinates corresponding to the edge pixel of the fingerprint, and Y 1 is the edge pixel of the fingerprint The maximum ordinate in the coordinates corresponding to the point, Y 2 is the minimum ordinate in the coordinates corresponding to the edge pixel of the fingerprint.
所述距离确定子模块302将所述第一指纹和所述第二指纹的中心点之间的相对距离确定为所述第一指纹和所述第二指纹之间的距离包括:The determining, by the distance determining sub-module 302, the relative distance between the center point of the first fingerprint and the second fingerprint as the distance between the first fingerprint and the second fingerprint includes:
根据第二表达式计算所述第一指纹和所述第二指纹的中心点之间的相对距离。Calculating a relative distance between a center point of the first fingerprint and the second fingerprint according to a second expression.
所述第二表达式包括:
Figure PCTCN2016086920-appb-000022
The second expression includes:
Figure PCTCN2016086920-appb-000022
其中,(Xa,Ya)为所述第一指纹的中心点坐标,(Xb,Yb)为所述第二指纹的中心点坐标。 Where (Xa, Ya) is the center point coordinate of the first fingerprint, and (Xb, Yb) is the center point coordinate of the second fingerprint.
在本发明实施例一可选实施方式中,所述夹角计算单元400包括第一方向确定模块401、第二方向确定模块402和夹角确定模块403。In an optional implementation manner of the embodiment of the present invention, the included angle calculation unit 400 includes a first direction determining module 401, a second direction determining module 402, and an angle determining module 403.
所述夹角计算单元400计算所述第一指纹和所述第二指纹之间的夹角包括:The angle calculation unit 400 calculates an angle between the first fingerprint and the second fingerprint, including:
第一方向确定模块401,设置为将与所述第一指纹的纹理相垂直的方向确定为所述第一指纹的第一方向θA。The first direction determining module 401 is configured to determine a direction perpendicular to the texture of the first fingerprint as the first direction θA of the first fingerprint.
第二方向确定模块402,设置为将与所述第二指纹的纹理相垂直的方向确定为所述第二指纹的第二方向θB。The second direction determining module 402 is configured to determine a direction perpendicular to the texture of the second fingerprint as the second direction θB of the second fingerprint.
夹角确定模块403,设置为将所述第一方向与所述第二方向之间的夹角θ=|θA-θB|确定为所述第一指纹与所述第二指纹之间的夹角。The angle determining module 403 is configured to determine an angle θ=|θA−θB| between the first direction and the second direction as an angle between the first fingerprint and the second fingerprint .
需要说明的是,上述每个功能模块的实现方式与步骤S1至S5中的描述一致,这里便不再赘述。It should be noted that the implementation manner of each of the foregoing functional modules is consistent with the description in steps S1 to S5, and details are not described herein again.
由上可见,本发明实施例实施方式提供的一种多指纹的识别装置,通过对采集到的指纹图像进行识别,从而可以获取指纹图像中的多个指纹。通过计算这多个指纹之间的距离和夹角关系,从而可以将计算的距离和夹角与预先存储的距离和夹角进行对比。这样,在多个指纹均存在于预设的指纹库中,并且多个指纹之间的位置关系也满足预设的位置关系时,从而可以将终端设备进行解锁。由此可见,本发明实施例实施方式提供的一种多指纹的识别装置,在进行指纹匹配的基础上,还添加了对指纹之间的位置关系进行匹配的过程,不仅增强了加密的安全性,并且也增强了用户设计指纹位置关系的趣味性。It can be seen from the above that the multi-fingerprint identification device provided by the embodiment of the present invention can obtain multiple fingerprints in the fingerprint image by identifying the collected fingerprint image. By calculating the distance and angle relationship between the plurality of fingerprints, the calculated distance and angle can be compared with the pre-stored distance and angle. In this way, when a plurality of fingerprints are present in the preset fingerprint database, and the positional relationship between the plurality of fingerprints also satisfies the preset positional relationship, the terminal device can be unlocked. It can be seen that the multi-fingerprint identification device provided by the embodiment of the present invention adds a process of matching the positional relationship between the fingerprints on the basis of fingerprint matching, which not only enhances the security of encryption. And also enhances the user's interest in designing fingerprint positional relationships.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现所述的多指纹的识别方法。A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the multi-fingerprint identification method.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这 些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented using an integrated circuit. The steps may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps may be fabricated into a single integrated circuit module.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
本发明实施例实施方式提供的一种多指纹的识别方法和装置,通过对采集到的指纹图像进行识别,从而可以获取指纹图像中的多个指纹。通过计算这多个指纹之间的距离和夹角关系,从而可以将计算的距离和夹角与预先存储的距离和夹角进行对比。这样,在多个指纹均存在于预设的指纹库中,并且多个指纹之间的位置关系也满足预设的位置关系时,从而可以将终端设备进行解锁。本发明实施例方案在进行指纹匹配的基础上,还添加了对指纹之间的位置关系进行匹配的过程,不仅增强了加密的安全性,并且也增强了用户设计指纹位置关系的趣味性。 The method and device for identifying multiple fingerprints provided by the embodiments of the present invention can obtain multiple fingerprints in the fingerprint image by identifying the collected fingerprint image. By calculating the distance and angle relationship between the plurality of fingerprints, the calculated distance and angle can be compared with the pre-stored distance and angle. In this way, when a plurality of fingerprints are present in the preset fingerprint database, and the positional relationship between the plurality of fingerprints also satisfies the preset positional relationship, the terminal device can be unlocked. The solution of the embodiment of the present invention adds a process of matching the positional relationship between fingerprints on the basis of fingerprint matching, which not only enhances the security of encryption, but also enhances the interest of the user in designing the positional relationship of the fingerprint.

Claims (15)

  1. 一种多指纹的识别方法,包括:A method for identifying multiple fingerprints, comprising:
    从终端设备的指纹检测区采集指纹图像,所述指纹图像中包括至少两个指纹;Collecting a fingerprint image from a fingerprint detection area of the terminal device, where the fingerprint image includes at least two fingerprints;
    对所述指纹图像中的指纹进行识别,获取第一指纹以及第二指纹;Identifying a fingerprint in the fingerprint image to obtain a first fingerprint and a second fingerprint;
    计算所述第一指纹和所述第二指纹之间的距离;Calculating a distance between the first fingerprint and the second fingerprint;
    计算所述第一指纹和所述第二指纹之间的夹角;Calculating an angle between the first fingerprint and the second fingerprint;
    当所述第一指纹和所述第二指纹均与预先存储的指纹模板相匹配,并且计算的所述距离和所述夹角与预先存储的距离和夹角之间的误差小于或者等于预设误差值时,将所述终端设备解锁。When the first fingerprint and the second fingerprint are both matched with the pre-stored fingerprint template, and the calculated distance between the distance and the angle and the pre-stored distance and angle is less than or equal to the preset When the error value is used, the terminal device is unlocked.
  2. 根据权利要求1所述的多指纹的识别方法,其中,所述对所述指纹图像中的指纹进行识别,获取第一指纹以及具有第二指纹包括:The method for identifying a multi-fingerprint according to claim 1, wherein the identifying the fingerprint in the fingerprint image, obtaining the first fingerprint and having the second fingerprint comprises:
    对所述指纹图像中指纹的边缘进行检测,获取具有第一边缘的第一指纹以及具有第二边缘的第二指纹。Detecting an edge of the fingerprint in the fingerprint image, acquiring a first fingerprint having a first edge and a second fingerprint having a second edge.
  3. 根据权利要求2所述的多指纹的识别方法,其中,所述对所述指纹图像中指纹的边缘进行检测包括:The method for identifying a multi-fingerprint according to claim 2, wherein the detecting the edge of the fingerprint in the fingerprint image comprises:
    将所述指纹图像进行灰度化处理,得到指纹灰度图像;Performing grayscale processing on the fingerprint image to obtain a fingerprint grayscale image;
    利用预设的高斯函数,对所述指纹灰度图像进行滤波处理,得到滤除噪点的过滤图像;Filtering the fingerprint grayscale image by using a preset Gaussian function to obtain a filtered image that filters out noise;
    计算所述过滤图像中每个像素点对应的梯度幅值和梯度方向;Calculating a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image;
    根据计算的所述梯度幅值和所述梯度方向,在所述过滤图像中确定极大值像素点;Determining a maximum value pixel point in the filtered image according to the calculated gradient magnitude and the gradient direction;
    从所述极大值像素点中筛选出灰度值大于或者等于预设阈值的像素点,并将筛选出的所述像素点确定为指纹的边缘像素点。A pixel point whose gray value is greater than or equal to a preset threshold is selected from the maximum value pixel points, and the selected pixel point is determined as an edge pixel point of the fingerprint.
  4. 根据权利要求3所述的多指纹的识别方法,其中,所述计算所述过滤图像中每个像素点对应的梯度幅值和梯度方向包括:The method for identifying a multi-fingerprint according to claim 3, wherein the calculating a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image comprises:
    根据预设的横向卷积算子和纵向卷积算子,计算所述过滤图像中每个像 素点对应的一阶横向偏导数矩阵和一阶纵向偏导数矩阵;Calculating each image in the filtered image according to a preset lateral convolution operator and a longitudinal convolution operator a first-order lateral partial derivative matrix corresponding to the prime point and a first-order longitudinal partial derivative matrix;
    根据所述一阶横向偏导数矩阵和一阶纵向偏导数矩阵,按照第一等式计算每个像素点对应的梯度幅值和梯度方向;Calculating a gradient magnitude and a gradient direction corresponding to each pixel according to the first equation according to the first-order lateral partial derivative matrix and the first-order longitudinal partial derivative matrix;
    所述第一等式包括:The first equation includes:
    Figure PCTCN2016086920-appb-100001
    Figure PCTCN2016086920-appb-100001
    Q[i,j]=arctan(Q[i,j]/P[i,j]);Q[i,j]=arctan(Q[i,j]/P[i,j]);
    其中,M[i,j]为第i行第j列的像素点对应的梯度幅值,P[i,j]为第i行第j列的像素点对应的一阶横向偏导数矩阵,Q[i,j]为第i行第j列的像素点对应的一阶纵向偏导数矩阵,Q[i,j]为第i行第j列的像素点对应的梯度方向。Where M[i,j] is the gradient magnitude corresponding to the pixel point of the i-th row and the j-th column, and P[i,j] is the first-order lateral partial derivative matrix corresponding to the pixel point of the i-th row and the j-th column, Q [i, j] is a first-order longitudinal partial derivative matrix corresponding to the pixel points of the i-th row and the j-th column, and Q[i, j] is a gradient direction corresponding to the pixel points of the i-th row and the j-th column.
  5. 根据权利要求3所述的多指纹的识别方法,其中,根据计算的所述梯度幅值和所述梯度方向,在所述过滤图像中确定极大值像素点包括:The multi-fingerprint recognition method according to claim 3, wherein determining the maximum value pixel points in the filtered image according to the calculated gradient magnitude and the gradient direction comprises:
    在所述过滤图像中选出预设像素点,沿所述预设像素点的梯度方向选取与所述预设像素点相邻的预设数量的像素点,根据计算出的所述梯度幅值判断所述预设像素点的灰度值与选取出的所述预设数量的像素点中每个像素点的灰度值的大小关系;当所述预设像素点的灰度值大于或者等于选取出的所述预设数量的像素点中每个像素点的灰度值时,将所述预设像素点确定为极大值像素点。Selecting a preset pixel point in the filtered image, and selecting a preset number of pixel points adjacent to the preset pixel point along a gradient direction of the preset pixel point, according to the calculated gradient amplitude Determining a relationship between a gray value of the preset pixel point and a gray value of each of the selected preset number of pixel points; when the gray value of the preset pixel point is greater than or equal to When the gray value of each of the preset number of pixels is selected, the preset pixel is determined as a maximum pixel.
  6. 根据权利要求2所述的多指纹的识别方法,其中,所述计算所述第一指纹和所述第二指纹之间的距离包括:The method for identifying a multi-fingerprint according to claim 2, wherein the calculating a distance between the first fingerprint and the second fingerprint comprises:
    按照第一表达式确定指纹的中心点;Determining the center point of the fingerprint according to the first expression;
    将所述第一指纹和所述第二指纹的中心点之间的相对距离确定为所述第一指纹和所述第二指纹之间的距离;Determining a relative distance between the first fingerprint and a center point of the second fingerprint as a distance between the first fingerprint and the second fingerprint;
    所述第一表达式包括:The first expression includes:
    Figure PCTCN2016086920-appb-100002
    Figure PCTCN2016086920-appb-100002
    其中,
    Figure PCTCN2016086920-appb-100003
    为指纹的中心点的横坐标,
    Figure PCTCN2016086920-appb-100004
    为指纹的中心点的纵坐标,X3为指纹的边缘像素点所对应坐标中的最小横坐标,X4为指纹的边缘像素点所对应坐标中的最大横坐标,Y1为指纹的边缘像素点所对应坐标中的最 大纵坐标,Y2为指纹的边缘像素点所对应坐标中的最小纵坐标;
    among them,
    Figure PCTCN2016086920-appb-100003
    Is the abscissa of the center point of the fingerprint,
    Figure PCTCN2016086920-appb-100004
    Is the ordinate of the center point of the fingerprint, X 3 is the minimum abscissa in the coordinates corresponding to the edge pixel of the fingerprint, X 4 is the largest abscissa in the coordinates corresponding to the edge pixel of the fingerprint, and Y 1 is the edge pixel of the fingerprint The maximum ordinate in the coordinates corresponding to the point, Y 2 is the minimum ordinate in the coordinates corresponding to the edge pixel of the fingerprint;
    将所述第一指纹和所述第二指纹的中心点之间的相对距离确定为所述第一指纹和所述第二指纹之间的距离包括:Determining a relative distance between the first fingerprint and a center point of the second fingerprint as a distance between the first fingerprint and the second fingerprint includes:
    根据第二表达式计算所述第一指纹和所述第二指纹的中心点之间的相对距离;Calculating a relative distance between a center point of the first fingerprint and the second fingerprint according to a second expression;
    所述第二表达式包括:
    Figure PCTCN2016086920-appb-100005
    The second expression includes:
    Figure PCTCN2016086920-appb-100005
    其中,(Xa,Ya)为所述第一指纹的中心点坐标,(Xb,Yb)为所述第二指纹的中心点坐标。Where (Xa, Ya) is the center point coordinate of the first fingerprint, and (Xb, Yb) is the center point coordinate of the second fingerprint.
  7. 根据权利要求2所述的多指纹的识别方法,其中,所述计算所述第一指纹和所述第二指纹之间的夹角包括:The method for identifying a multi-fingerprint according to claim 2, wherein the calculating an angle between the first fingerprint and the second fingerprint comprises:
    将所述第一指纹和所述第二指纹的纹理与垂直方向的角度确定为所述第一指纹和所述第二指纹的方向角度;Determining an angle of a texture of the first fingerprint and the second fingerprint with a vertical direction as a direction angle of the first fingerprint and the second fingerprint;
    如果所述第一指纹和所述第二指纹的方向角度分别为θA和θB,则所述第一指纹和所述第二指纹之间的相对夹角为θ=|θA-θB|,将所述第一指纹和所述第二指纹之间的相对夹角确定为指纹间夹角。If the direction angles of the first fingerprint and the second fingerprint are θA and θB, respectively, the relative angle between the first fingerprint and the second fingerprint is θ=|θA-θB| The relative angle between the first fingerprint and the second fingerprint is determined as an angle between the fingerprints.
  8. 一种多指纹的识别装置,包括:指纹采集单元、指纹识别单元、距离计算单元、夹角计算单元和解锁单元;A multi-fingerprint identification device includes: a fingerprint collection unit, a fingerprint recognition unit, a distance calculation unit, an angle calculation unit, and an unlocking unit;
    所述指纹采集单元,设置为从终端设备的指纹检测区采集指纹图像,所述指纹图像中包括至少两个指纹;The fingerprint collection unit is configured to collect a fingerprint image from a fingerprint detection area of the terminal device, where the fingerprint image includes at least two fingerprints;
    所述指纹识别单元,设置为对所述指纹图像中的指纹进行识别,获取第一指纹以及第二指纹;The fingerprint identification unit is configured to identify a fingerprint in the fingerprint image, and acquire a first fingerprint and a second fingerprint;
    所述距离计算单元,设置为计算所述第一指纹和所述第二指纹之间的距离;The distance calculation unit is configured to calculate a distance between the first fingerprint and the second fingerprint;
    所述夹角计算单元,设置为计算所述第一指纹和所述第二指纹之间的夹角;The angle calculation unit is configured to calculate an angle between the first fingerprint and the second fingerprint;
    所述解锁单元,设置为当所述第一指纹和所述第二指纹均与预先存储的指纹模板相匹配,并且计算的所述距离和所述夹角与预先存储的距离和夹角 之间的误差小于或者等于预设误差值时,将所述终端设备解锁。The unlocking unit is configured to match the first fingerprint and the second fingerprint with a pre-stored fingerprint template, and calculate the distance and the angle between the angle and the pre-stored distance and angle The terminal device is unlocked when the error between the errors is less than or equal to the preset error value.
  9. 根据权利要求8所述的多指纹的识别装置,其中,所述指纹识别单元包括边缘检测模块;The multi-fingerprint identification device according to claim 8, wherein the fingerprint recognition unit comprises an edge detection module;
    所述指纹识别单元对所述指纹图像中的指纹进行识别,获取第一指纹以及具有第二指纹包括:The fingerprint identification unit identifies the fingerprint in the fingerprint image, and acquiring the first fingerprint and having the second fingerprint includes:
    所述边缘检测模块,设置为对所述指纹图像中指纹的边缘进行检测,获取具有第一边缘的第一指纹以及具有第二边缘的第二指纹。The edge detection module is configured to detect an edge of the fingerprint in the fingerprint image, and acquire a first fingerprint having a first edge and a second fingerprint having a second edge.
  10. 根据权利要求9所述的多指纹的识别装置,其中,所述边缘检测模块包括灰度化处理子模块、滤波子模块、梯度计算子模块、极大值像素点确定子模块和筛选子模块;The apparatus for identifying multiple fingerprints according to claim 9, wherein the edge detection module comprises a grayscale processing sub-module, a filtering sub-module, a gradient calculation sub-module, a maximum-value pixel determination sub-module, and a screening sub-module;
    所述边缘检测模块对所述指纹图像中指纹的边缘进行检测包括:The detecting, by the edge detecting module, the edge of the fingerprint in the fingerprint image comprises:
    所述灰度化处理子模块,设置为将所述指纹图像进行灰度化处理,得到指纹灰度图像;The grayscale processing sub-module is configured to perform grayscale processing on the fingerprint image to obtain a fingerprint grayscale image;
    所述滤波子模块,设置为利用预设的高斯函数,对所述指纹灰度图像进行滤波处理,得到滤除噪点的过滤图像;The filtering sub-module is configured to filter the fingerprint grayscale image by using a preset Gaussian function to obtain a filtered image that filters out noise;
    所述梯度计算子模块,设置为计算所述过滤图像中每个像素点对应的梯度幅值和梯度方向;The gradient calculation sub-module is configured to calculate a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image;
    所述极大值像素点确定子模块,设置为根据计算的所述梯度幅值和所述梯度方向,在所述过滤图像中确定极大值像素点;The maximum value pixel point determining submodule is configured to determine a maximum value pixel point in the filtered image according to the calculated gradient magnitude and the gradient direction;
    所述筛选子模块,设置为从所述极大值像素点中筛选出灰度值大于或者等于预设阈值的像素点,并将筛选出的所述像素点确定为指纹的边缘像素点。The screening sub-module is configured to filter, from the maximum-value pixel, a pixel point whose gray value is greater than or equal to a preset threshold, and determine the selected pixel point as an edge pixel of the fingerprint.
  11. 根据权利要求10所述的多指纹的识别装置,其中,梯度计算子模块包括:偏导数矩阵计算子模块和幅值方向计算子模块;The apparatus for identifying multiple fingerprints according to claim 10, wherein the gradient calculation sub-module comprises: a partial derivative matrix calculation sub-module and an amplitude direction calculation sub-module;
    所述梯度计算子模块计算所述过滤图像中每个像素点对应的梯度幅值和梯度方向包括:The gradient calculation sub-module calculates a gradient magnitude and a gradient direction corresponding to each pixel in the filtered image, including:
    所述偏导数矩阵计算子模块,设置为根据预设的横向卷积算子和纵向卷积算子,计算所述过滤图像中每个像素点对应的一阶横向偏导数矩阵和一阶 纵向偏导数矩阵;The partial derivative matrix calculation submodule is configured to calculate a first-order lateral partial derivative matrix and a first order corresponding to each pixel point in the filtered image according to a preset lateral convolution operator and a longitudinal convolution operator Longitudinal partial derivative matrix;
    所述幅值方向计算子模块,设置为根据所述一阶横向偏导数矩阵和一阶纵向偏导数矩阵,按照第一等式计算每个像素点对应的梯度幅值和梯度方向;The amplitude direction calculation submodule is configured to calculate a gradient magnitude and a gradient direction corresponding to each pixel according to the first equation according to the first-order lateral partial derivative matrix and the first-order longitudinal partial derivative matrix;
    所述第一等式包括:The first equation includes:
    Figure PCTCN2016086920-appb-100006
    Figure PCTCN2016086920-appb-100006
    Q[i,j]=arctan(Q[i,j]/P[i,j]);Q[i,j]=arctan(Q[i,j]/P[i,j]);
    其中,M[i,j]为第i行第j列的像素点对应的梯度幅值,P[i,j]为第i行第j列的像素点对应的一阶横向偏导数矩阵,Q[i,j]为第i行第j列的像素点对应的一阶纵向偏导数矩阵,Q[i,j]为第i行第j列的像素点对应的梯度方向。Where M[i,j] is the gradient magnitude corresponding to the pixel point of the i-th row and the j-th column, and P[i,j] is the first-order lateral partial derivative matrix corresponding to the pixel point of the i-th row and the j-th column, Q [i, j] is a first-order longitudinal partial derivative matrix corresponding to the pixel points of the i-th row and the j-th column, and Q[i, j] is a gradient direction corresponding to the pixel points of the i-th row and the j-th column.
  12. 根据权利要求10所述的多指纹的识别装置,其中,所述极大值像素点确定子模块包括:灰度值比较子模块;The multi-fingerprint identification device according to claim 10, wherein the maximum value pixel point determination sub-module comprises: a gray value comparison sub-module;
    所述极大值像素点确定子模块根据计算的所述梯度幅值和所述梯度方向,在所述过滤图像中确定极大值像素点包括:The maxima pixel determination sub-module determines the maximum value pixel in the filtered image according to the calculated gradient magnitude and the gradient direction, including:
    所述灰度值比较子模块,设置为在所述过滤图像中选出预设像素点,沿所述预设像素点的梯度方向选取与所述预设像素点相邻的预设数量的像素点,根据计算出的所述梯度幅值判断所述预设像素点的灰度值与选取出的所述预设数量的像素点中每个像素点的灰度值的大小关系;当所述预设像素点的灰度值大于或者等于选取出的所述预设数量的像素点中每个像素点的灰度值时,将所述预设像素点确定为极大值像素点。The gray value comparison sub-module is configured to select a preset pixel point in the filtered image, and select a preset number of pixels adjacent to the preset pixel point along a gradient direction of the preset pixel point Point, determining, according to the calculated gradient magnitude, a magnitude relationship between a grayscale value of the preset pixel point and a gray value of each of the selected preset number of pixel points; When the gray value of the preset pixel is greater than or equal to the gray value of each of the selected preset number of pixels, the preset pixel is determined as the maximum pixel.
  13. 根据权利要求9所述的多指纹的识别装置,其中,所述距离计算单元包括:中心点确定子模块和距离确定子模块;The multi-fingerprint identification device according to claim 9, wherein the distance calculation unit comprises: a center point determination sub-module and a distance determination sub-module;
    所述距离计算单元计算所述第一指纹和所述第二指纹之间的距离包括:The calculating, by the distance calculation unit, the distance between the first fingerprint and the second fingerprint includes:
    所述中心点确定子模块,设置为根据第一表达式确定指纹的中心点;The center point determining submodule is configured to determine a center point of the fingerprint according to the first expression;
    所述距离确定子模块,设置为将所述第一指纹和所述第二指纹的中心点之间的相对距离确定为所述第一指纹和所述第二指纹之间的距离;The distance determining submodule is configured to determine a relative distance between a center point of the first fingerprint and the second fingerprint as a distance between the first fingerprint and the second fingerprint;
    所述第一表达式包括: The first expression includes:
    Figure PCTCN2016086920-appb-100007
    Figure PCTCN2016086920-appb-100007
    其中,
    Figure PCTCN2016086920-appb-100008
    为指纹的中心点的横坐标,
    Figure PCTCN2016086920-appb-100009
    为指纹的中心点的纵坐标,X3为指纹的边缘像素点所对应坐标中的最小横坐标,X4为指纹的边缘像素点所对应坐标中的最大横坐标,Y1为指纹的边缘像素点所对应坐标中的最大纵坐标,Y2为指纹的边缘像素点所对应坐标中的最小纵坐标;
    among them,
    Figure PCTCN2016086920-appb-100008
    Is the abscissa of the center point of the fingerprint,
    Figure PCTCN2016086920-appb-100009
    Is the ordinate of the center point of the fingerprint, X 3 is the minimum abscissa in the coordinates corresponding to the edge pixel of the fingerprint, X 4 is the largest abscissa in the coordinates corresponding to the edge pixel of the fingerprint, and Y 1 is the edge pixel of the fingerprint The maximum ordinate in the coordinates corresponding to the point, Y 2 is the minimum ordinate in the coordinates corresponding to the edge pixel of the fingerprint;
    所述距离确定子模块将所述第一指纹和所述第二指纹的中心点之间的相对距离确定为所述第一指纹和所述第二指纹之间的距离包括:The distance determining sub-module determines a relative distance between the first fingerprint and a center point of the second fingerprint as a distance between the first fingerprint and the second fingerprint, including:
    根据第二表达式计算所述第一指纹和所述第二指纹的中心点之间的相对距离;Calculating a relative distance between a center point of the first fingerprint and the second fingerprint according to a second expression;
    所述第二表达式包括:
    Figure PCTCN2016086920-appb-100010
    The second expression includes:
    Figure PCTCN2016086920-appb-100010
    其中,(Xa,Ya)为所述第一指纹的中心点坐标,(Xb,Yb)为所述第二指纹的中心点坐标。Where (Xa, Ya) is the center point coordinate of the first fingerprint, and (Xb, Yb) is the center point coordinate of the second fingerprint.
  14. 根据权利要求9所述的多指纹的识别装置,其中,所述夹角计算单元计算所述第一指纹和所述第二指纹之间的夹角包括:The multi-fingerprint identification device according to claim 9, wherein the angle calculation unit calculates an angle between the first fingerprint and the second fingerprint, including:
    将所述第一指纹和所述第二指纹的纹理与垂直方向的角度确定为所述第一指纹和所述第二指纹的方向角度;Determining an angle of a texture of the first fingerprint and the second fingerprint with a vertical direction as a direction angle of the first fingerprint and the second fingerprint;
    如果所述第一指纹和所述第二指纹的方向角度分别为θA和θB,则所述第一指纹和所述第二指纹之间的相对夹角为θ=|θA-θB|,将所述第一指纹和所述第二指纹之间的相对夹角确定为指纹间夹角。If the direction angles of the first fingerprint and the second fingerprint are θA and θB, respectively, the relative angle between the first fingerprint and the second fingerprint is θ=|θA-θB| The relative angle between the first fingerprint and the second fingerprint is determined as an angle between the fingerprints.
  15. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现权利要求1至7任意一项所述的多指纹的识别方法。 A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the multi-fingerprint identification method of any one of claims 1 to 7.
PCT/CN2016/086920 2016-04-27 2016-06-23 Method and device for identifying multiple fingerprints WO2017185507A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610274455.1 2016-04-27
CN201610274455.1A CN107315935B (en) 2016-04-27 2016-04-27 Multi-fingerprint identification method and device

Publications (1)

Publication Number Publication Date
WO2017185507A1 true WO2017185507A1 (en) 2017-11-02

Family

ID=60161797

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/086920 WO2017185507A1 (en) 2016-04-27 2016-06-23 Method and device for identifying multiple fingerprints

Country Status (2)

Country Link
CN (1) CN107315935B (en)
WO (1) WO2017185507A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109583320A (en) 2018-11-08 2019-04-05 Oppo广东移动通信有限公司 Fingerprint identification method and relevant apparatus
CN111209553A (en) * 2018-11-22 2020-05-29 上海耕岩智能科技有限公司 Electronic device, control method thereof, and computer-readable storage medium
CN109325338B (en) * 2018-11-30 2021-01-08 维沃移动通信有限公司 Verification method and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324897A (en) * 2012-03-23 2013-09-25 联想(北京)有限公司 Safety certification method and user terminal based on multi-point touch
US8983208B2 (en) * 2006-11-14 2015-03-17 West Virginia University Pattern matching based on global quantitative characterization of patterns
CN105117698A (en) * 2015-08-19 2015-12-02 南昌欧菲生物识别技术有限公司 Fingerprint identification method and device based on multiple fingerprint sensors and terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4522043B2 (en) * 2002-09-06 2010-08-11 セイコーエプソン株式会社 Information device and display control method
CN100356386C (en) * 2005-09-16 2007-12-19 张英杰 Method for encrypting and identifying fingerprint pattern in fingerprint identification system
US8406456B2 (en) * 2008-11-20 2013-03-26 Workshare Technology, Inc. Methods and systems for image fingerprinting
JP2011253378A (en) * 2010-06-02 2011-12-15 Waseda Univ Authentication device and authentication method
CN104268456B (en) * 2014-09-26 2017-07-14 宇龙计算机通信科技(深圳)有限公司 A kind of method and device authenticated by image
CN104932763B (en) * 2015-04-17 2018-06-01 汕头超声显示器技术有限公司 A kind of capacitance touch screen and its fingerprint detection method with fingerprint identification function

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8983208B2 (en) * 2006-11-14 2015-03-17 West Virginia University Pattern matching based on global quantitative characterization of patterns
CN103324897A (en) * 2012-03-23 2013-09-25 联想(北京)有限公司 Safety certification method and user terminal based on multi-point touch
CN105117698A (en) * 2015-08-19 2015-12-02 南昌欧菲生物识别技术有限公司 Fingerprint identification method and device based on multiple fingerprint sensors and terminal

Also Published As

Publication number Publication date
CN107315935A (en) 2017-11-03
CN107315935B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN102667810B (en) Face recognition in digital images
US10558841B2 (en) Method and apparatus for recognizing fingerprint ridge point
US8160366B2 (en) Object recognition device, object recognition method, program for object recognition method, and recording medium having recorded thereon program for object recognition method
CA2867365C (en) Method, system and computer storage medium for face detection
WO2007029591A1 (en) Image processing apparatus, and method and program for creating mask
JP2019079553A (en) System and method for detecting line in vision system
KR101761586B1 (en) Method for detecting borderline between iris and sclera
WO2005011947A2 (en) Image processing method and system for microfluidic devices
WO2017185507A1 (en) Method and device for identifying multiple fingerprints
JP2011008704A (en) Image processing apparatus, image processing method and program
WO2018176514A1 (en) Fingerprint registration method and device
CN108090486A (en) Image processing method and device in a kind of game of billiards
CN110879131B (en) Imaging quality testing method and imaging quality testing device for visual optical system, and electronic apparatus
JP4901229B2 (en) Red-eye detection method, apparatus, and program
CN111222432A (en) Face living body detection method, system, equipment and readable storage medium
Bammey et al. Image forgeries detection through mosaic analysis: the intermediate values algorithm
Zhang et al. A new algorithm for accurate and automatic chessboard corner detection
CN104268550B (en) Feature extracting method and device
CN111639708B (en) Image processing method, device, storage medium and equipment
US20210027095A1 (en) Processing method and processing device using same
EP3958170B1 (en) Method and apparatus with liveness detection
KR20180072517A (en) Method for detecting borderline between iris and sclera
Bammey A contrario mosaic analysis for image forensics
TWI384418B (en) Image processing method and system using regionalized architecture
WO2020075237A1 (en) Image processing device and image processing method

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16900017

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16900017

Country of ref document: EP

Kind code of ref document: A1