WO2022022365A1 - Image matching method applied to fingerprint recognition and related device - Google Patents

Image matching method applied to fingerprint recognition and related device Download PDF

Info

Publication number
WO2022022365A1
WO2022022365A1 PCT/CN2021/107689 CN2021107689W WO2022022365A1 WO 2022022365 A1 WO2022022365 A1 WO 2022022365A1 CN 2021107689 W CN2021107689 W CN 2021107689W WO 2022022365 A1 WO2022022365 A1 WO 2022022365A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
template
information
recognized
detected
Prior art date
Application number
PCT/CN2021/107689
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 WO2022022365A1 publication Critical patent/WO2022022365A1/en

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/13Sensors therefor

Definitions

  • the present application relates to the technical field of image recognition, and in particular, to an image matching method and related device applied to fingerprint recognition.
  • Image matching can include a template image acquisition stage and an image matching stage. Before image matching, some template images are pre-collected, and after the images to be recognized are collected, the pre-collected template images are queried whether there is an image that matches the image to be recognized. , the matched image may be the same as the to-be-recognized image or an image with a higher similarity. When the images are successfully matched, the object information corresponding to the matched images is used as the result of image recognition.
  • the present application provides an image matching method and related device applied to fingerprint identification, which can improve the efficiency of image matching.
  • an embodiment of the present application provides an image matching method applied to fingerprint recognition, the method comprising:
  • the attribute information of the image to be recognized is determined, wherein the image to be recognized is used to recognize the object to be detected;
  • the image matching the to-be-recognized image is queried.
  • the morphological feature information may include static and dynamic morphological feature information of the object to be detected.
  • the morphological feature information of the object to be detected may include at least one of the following information: contour information, position information, and kinematic information of the object to be detected;
  • the attribute information of the to-be-recognized image includes at least one of the following information: the object type of the to-be-detected object, the habitual posture information of the to-be-detected object, and the outline of the to-be-recognized image and the to-be-detected object Global location information between messages.
  • the method before determining the attribute information of the to-be-recognized image according to the morphological feature information of the to-be-detected object, the method includes:
  • the touch signal of the object to be detected determine the morphological feature information of the object to be detected
  • the time difference between the time when the image to be recognized is obtained and the time when the touch signal of the object to be detected is obtained is less than a time deviation threshold.
  • the touch signal of the object to be detected is collected by a touch device
  • the method further includes: acquiring three-dimensional position information of the touch-control device through a gesture sensor;
  • the determining the attribute information of the image to be recognized according to the morphological feature information of the object to be detected includes: determining the attribute information of the image to be recognized according to the morphological feature information of the object to be detected and the three-dimensional position information of the touch control device information.
  • the object to be detected is a fingerprint part to be recognized;
  • the image to be recognized is a fingerprint image of the fingerprint part to be recognized collected by a fingerprint sensor.
  • the object type of the object to be detected includes at least one of the following: left and right hand information, and finger type.
  • the global position information between the to-be-identified image and the contour information of the to-be-detected object includes at least one of the following: a region located on the left side of the contour centerline, and a region located on the right side of the contour centerline Region, the region position information with the contour information as the reference system.
  • the habitual posture information of the object to be detected includes at least one of the following: global direction information of the object to be detected, the speed of the object to be detected, and the information in the image to be recognized. the moving direction of the object to be detected, the movement track of the object to be detected in the image to be recognized;
  • the global position information between the to-be-recognized image and the outline information of the to-be-detected object includes: when the to-be-recognized image is a partial image of the to-be-detected object, the to-be-recognized image is located in the to-be-detected image The corresponding area location identifier in the outline information of the object.
  • the attribute correlation condition includes at least one of the following:
  • the object type corresponding to the filtered template image is the same as the object type corresponding to the to-be-recognized image;
  • the habitual gesture information corresponding to the filtered template image is the same as the habitual gesture information corresponding to the to-be-recognized image;
  • the attribute information of the to-be-recognized image includes the global location information corresponding to the to-be-recognized image, the global location information corresponding to the filtered template image and the global location information corresponding to the to-be-recognized image satisfy the location proximity condition;
  • the location proximity condition includes: the area indicated by the global location information corresponding to the filtered template image contains the global location information corresponding to the to-be-recognized image, or the global location corresponding to the filtered template image There is an intersection between the area represented by the information and the global location information corresponding to the image to be recognized, or the area represented by the global location information corresponding to the filtered template image and the global location information corresponding to the image to be recognized. The distance between the regions is less than the adjacent region distance threshold.
  • the number of attribute information of the image to be recognized is at least two;
  • the screening of at least one template image according to the attribute information of the image to be recognized includes: screening the at least one template image according to at least two attribute information of the to-be-recognized image and the weight of each attribute information .
  • the Methods when the number of filtered template images is 0, or, in the filtered template images, no target template image matching the to-be-recognized image is queried, the Methods also include:
  • the Methods when the number of filtered template images is 0, or, in the filtered template images, no target template image matching the to-be-recognized image is queried, the Methods also include:
  • the image matching the to-be-recognized image is queried.
  • the method further includes:
  • the method before the at least one template image is screened according to the attribute information of the to-be-recognized image, the method includes:
  • each template image is in one-to-one correspondence with each template object;
  • the attribute information of each template image is determined according to the morphological feature information of the template object corresponding to each template image.
  • the object to be detected is the fingerprint part to be recognized;
  • the morphological feature information of the object to be detected is the outline information of the fingerprint part to be recognized;
  • the image to be recognized is the fingerprint part to be recognized. Identify the partial fingerprint image of the fingerprint part;
  • the determining the attribute information of the to-be-recognized image according to the morphological feature information of the to-be-detected object includes: determining, according to the outline information of the to-be-recognized fingerprint part, the outline information of the partial fingerprint image in the to-be-recognized fingerprint part The region location identifier in ; the region location identifier is used as the attribute information of the local fingerprint image.
  • the acquiring the at least one template image and the morphological feature information of the template object corresponding to each template image includes: acquiring P-1 first template images of the first template object, and , the outline information of the first template object corresponding to the P-1 first template images;
  • the determining the attribute information of each template image according to the morphological feature information of the template object corresponding to each template image includes: determining each first template image according to the outline information of the first template object corresponding to each first template image respectively.
  • the method further includes: judging whether the set of area location identifiers corresponding to the P-1 first template images satisfies the coverage condition; if not, acquiring the Pth first template image of the first template object;
  • the covering condition includes: covering at least one local area of the first template object, or covering the edge covering condition of the edge area of the first template object, or satisfying the outline of covering the first template object Global coverage condition of information; P is an integer greater than or equal to 2.
  • the present application also provides an image matching method applied to fingerprint identification, the method comprising:
  • the outline information of the template object is used to determine the region position identifier of the at least one first template image in the outline information of the template object;
  • the at least one first template image and the second template image are used to query the image matching the image to be recognized.
  • the coverage conditions include at least one of the following:
  • the outline information covering the template object exceeds a preset coverage ratio.
  • the coverage condition may further include a preset number threshold of template images.
  • the coverage condition may include that the edge area of the template object covered exceeds a preset coverage ratio and the number of template images is greater than a preset number threshold,
  • the coverage condition may include covering the global area of the template object exceeding a preset coverage ratio and the number of template images is greater than a preset number threshold.
  • the acquiring the outline information of the template object includes: acquiring the outline information of the template object through a touch screen of an electronic device;
  • the acquiring at least one first template image of the template object includes: acquiring the at least one first template image through a fingerprint sensor;
  • the fingerprint sensor is located on a side of the touch screen close to the body of the electronic device.
  • the method before the acquisition of the second template image of the template object, the method further includes:
  • Prompt information is output, where the prompt information is used to prompt the input of a second template image of the template object including the supplementary acquisition area.
  • the present application provides an image matching device applied to fingerprint identification, comprising:
  • a determination module configured to determine attribute information of an image to be recognized according to the morphological feature information of the object to be detected, wherein the image to be recognized is used to identify the object to be detected;
  • a matching module configured to screen at least one template image according to the attribute information of the to-be-recognized image, wherein the attribute information of the filtered template image and the attribute information of the to-be-recognized image satisfy an attribute correlation condition; and, In the filtered template image, the image matching the to-be-recognized image is queried.
  • the device further includes:
  • an acquisition module configured to acquire the image to be recognized and the touch signal of the object to be detected; and, according to the touch signal of the object to be detected, determine the morphological feature information of the object to be detected; wherein , the time difference between the time when the image to be recognized is obtained and the time when the touch signal of the object to be detected is obtained is less than a time deviation threshold.
  • the matching module is specifically configured to filter the at least one template image according to at least two types of attribute information of the to-be-recognized image and the weight of each attribute information.
  • the matching module is further configured to: when the number of the filtered template images is 0, or, in the filtered template images, no match with the to-be-recognized image is queried.
  • the target template image is selected, in the at least one template image other than the filtered template image, the image matching the to-be-identified image is queried.
  • the matching module is further configured to: when the number of the filtered template images is 0, or, in the filtered template images, no match with the to-be-recognized image is queried.
  • the target template image is the target template image, sort according to the historical matching success rate corresponding to the at least one template image, and query the image matching the to-be-recognized image in the at least one template image.
  • the matching module is further configured to acquire the template entity identifier corresponding to the target template image when a target template image matching the to-be-identified image is queried and/or use and, when the target template image matching the to-be-recognized image is not queried, it is determined that the to-be-detected object corresponding to the to-be-matched image does not have use rights.
  • the acquiring module is further configured to acquire the at least one template image and each template before the at least one template image is screened according to the attribute information of the to-be-recognized image Morphological feature information of the template object corresponding to the image; each template image corresponds to each template object one-to-one;
  • the determining module is further configured to determine attribute information of each template image according to the morphological feature information of the template object corresponding to each template image.
  • the acquiring module is specifically configured to acquire P-1 first template images of the first template object, and the first template images corresponding to the P-1 first template images The outline information of a template object;
  • the determining module is specifically configured to determine the region position identifier of each first template image in the corresponding contour information according to the contour information of the first template object corresponding to each first template image;
  • the determining module is further configured to determine whether the set of region location identifiers corresponding to the P-1 first template images satisfies the coverage condition; if not, instructing the obtaining module to obtain the P-th image of the first template object.
  • a first template image wherein, the coverage condition includes: an edge coverage condition covering the edge region of the first template object, or, satisfying a global coverage condition covering the outline information of the first template object; P is greater than or an integer equal to 2.
  • the present application provides an image matching device applied to fingerprint identification, comprising:
  • an acquiring module configured to acquire at least one first template image of a template object; and, acquiring contour information of the template object, wherein the contour information of the template object is used to determine that the at least one first template image is in the The region location identifier in the outline information of the template object;
  • a determination module configured to determine whether the set of area location identifiers corresponding to the at least one first template image satisfies the coverage condition, and instruct the acquisition module to acquire the second template image of the template object when the coverage condition is not met; wherein , the at least one first template image and the second template image are used to query the image matching the image to be recognized.
  • the coverage conditions include at least one of the following:
  • the outline information covering the template object exceeds a preset coverage ratio.
  • the determining module is further configured to determine the supplementary mining area according to the set of area location identifiers corresponding to the at least one first template image and the coverage condition;
  • the apparatus further includes: an output module for outputting prompt information, the prompt information being used for prompting the input of a second template image of the template object including the supplementary mining area.
  • the application provides an electronic device, comprising:
  • an image acquisition device for acquiring an image to be recognized, wherein the image to be recognized is used to recognize an object to be detected
  • a morphological feature collecting device used for collecting morphological feature information of the object to be detected
  • a processor configured to determine attribute information of the to-be-recognized image according to the morphological feature information of the to-be-detected object; and, according to the attribute information of the to-be-recognized image, screen at least one template image, wherein the filtered template An attribute correlation condition is satisfied between the attribute information of the image and the attribute information of the to-be-recognized image; and, in the filtered template image, an image matching the to-be-recognized image is queried.
  • the morphological feature collecting device is a touch device.
  • the morphological feature collecting device is a touch screen
  • the image collecting device is a fingerprint sensor
  • the fingerprint sensor is disposed on a side of the touch screen close to the body of the electronic device.
  • the application provides an electronic device, comprising:
  • an image acquisition device configured to acquire at least one first template image of a template object; and, when the set of region location identifiers corresponding to the at least one first template image does not satisfy the coverage condition, acquire a second template of the template object an image; wherein, the at least one first template image and the second template image are used to query images that match the image to be recognized;
  • the touch device is configured to acquire contour information of the template object, wherein the contour information of the template object is used to determine a region position identifier of the at least one first template image in the contour information of the template object.
  • the image acquisition device is a fingerprint sensor
  • the touch control device is a touch screen in an electronic device
  • the fingerprint sensor is disposed on a side of the touch screen close to the body of the electronic device .
  • the touch control device is further configured to output prompt information when the set of area location identifiers corresponding to the at least one first template image does not satisfy the coverage condition, and the prompt information uses upon prompting to input a second template image of the template object through the image acquisition device.
  • the present application provides an electronic device, comprising: a processor and a memory, the memory for storing instructions, the processor for executing the instructions to cause the electronic device to perform the first to second aspects The method of any of the aspects.
  • the present application provides a computer storage medium, comprising a computer program, which, when executed on a computer, causes the computer to perform the method of any one of the first to second aspects.
  • FIG. 1A is a schematic diagram of a processing process of an image matching method provided by an embodiment of the present application.
  • FIG. 1B is a schematic diagram 1 of an application scenario of an image matching method provided by an embodiment of the present application.
  • 1C is a second schematic diagram of an application scenario of the image matching method provided by the embodiment of the present application.
  • 1D is a schematic diagram of the global position information of the to-be-recognized image in the outline information of the to-be-detected object in the image matching method provided by the embodiment of the application;
  • FIG. 2A is a schematic flowchart of an input stage of an image matching method provided by an embodiment of the present application
  • 2B is a schematic diagram of determining morphological feature information according to a touch signal in an embodiment of the present application
  • 2C is a schematic diagram of inferring left and right hand types in an embodiment of the present application.
  • 2D is a schematic diagram of inferring a finger type in an embodiment of the present application.
  • 2E is a schematic diagram of inferring global position information and global direction information in an embodiment of the present application.
  • 3A is a schematic flowchart of a recognition stage of an image matching method provided by an embodiment of the present application.
  • FIG. 3B is a schematic diagram of an approximate area inferred in an embodiment of the present application.
  • 3C is a schematic diagram of template matching in an embodiment of the present application.
  • FIG. 4 is a second schematic flowchart of an image matching method provided by an embodiment of the present application.
  • 5A is a schematic diagram of the position of a template image of an edge region in an image matching method provided by an embodiment of the present application
  • 5B is a schematic diagram 3 of an application scenario of the image matching method provided by the embodiment of the present application.
  • FIG. 6 is a schematic diagram of a processing flow of a fingerprint entry stage in an image matching method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a processing flow of a fingerprint identification stage in an image matching method provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram 1 of an image matching apparatus provided by an embodiment of the present application.
  • FIG. 9 is a second schematic structural diagram of an image matching apparatus provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the image matching method provided in the embodiment of the present application can be applied to various object recognition scenarios, such as a fingerprint recognition scenario, a face recognition scenario, and other user identity recognition scenarios.
  • object recognition scenarios such as a fingerprint recognition scenario, a face recognition scenario, and other user identity recognition scenarios.
  • the image to be recognized may be a fingerprint image.
  • the image matching method may involve: an input stage and a recognition stage.
  • the processing in the entry stage includes: entering the template image in the image database, that is, establishing the image database.
  • the processing in the identification stage includes: collecting the image to be identified from the object to be detected, and querying the template image in the image database for the target template image that matches the image to be identified.
  • the image matching result may be used to determine one or more types of object information, such as entity identification or usage authority corresponding to the object to be detected from which the image to be recognized is collected.
  • FIG. 1A is a schematic diagram of a processing process of an image matching method provided by an embodiment of the present application.
  • the morphological feature information of the template object may also be collected, and then, according to the morphological feature information of the template object
  • One or more attribute information corresponding to the template image is determined, and then the template image and the corresponding attribute information are stored in the image database.
  • the morphological feature information of the object to be detected can also be collected, and then one or more attribute information corresponding to the image to be recognized is determined according to the morphological feature information of the object to be detected, and then , the attribute information of the image to be recognized can be used to screen many template images in the image database, and the template image matching the image to be recognized can be queried in the filtered template images, which can improve the efficiency of image matching.
  • the morphological feature information of the template object may include at least one kind of information used to represent the shape, size, position, direction, speed, etc. of the template object, for example, the outline information of the template object, the relative information of the template object relative to the electronic device Position information or position information in the geodetic coordinate system, kinematic information, etc.
  • the attribute information corresponding to the template image may be determined according to the morphological feature information of the corresponding template object, for example, the object type of the template object, the global position information of the template image in the outline information of the template object, the current posture of the template object, the movement track Wait. For example, FIG.
  • 1D is a schematic diagram of global position information of the to-be-identified image in the outline information of the to-be-detected object in the image matching method provided by the embodiment of the present application. As shown in FIG. 1D , the position of the partial fingerprint image to be identified in the contour information of the corresponding finger to be detected.
  • the morphological feature information and attribute information and the processing steps of determining the attribute information according to the morphological feature information will be described in detail in combination with practical applications, which will not be repeated here.
  • the image matching method may be deployed in an electronic device having an image capturing device.
  • the electronic device may be a terminal with an image acquisition device, such as a mobile phone, a tablet computer, a handheld identification device, a wearable device, or the like.
  • the image capture device may be a camera or a sensor.
  • the image acquisition device can be a fingerprint sensor, and the fingerprint sensor can be used to collect template images in the input stage, and to collect images to be recognized in the recognition stage.
  • a touch control device may also be provided on the electronic device.
  • the touch device can be used to acquire the morphological feature information of the template object in the input stage, and obtain the morphological feature information of the object to be detected in the recognition stage.
  • FIG. 1B is a schematic diagram 1 of an application scenario of the image matching method provided by the embodiment of the present application.
  • the touch control device may be a touch screen on an electronic device.
  • the fingerprint sensor may be disposed below the touch screen of the electronic device (as shown in FIG. 1B ).
  • FIG. 1C is a second schematic diagram of an application scenario of the image matching method provided by the embodiment of the present application.
  • the template object may be the fingerprint part of the user's finger.
  • the fingerprint sensor can collect the fingerprint image through the touch screen.
  • the fingerprint sensor may also be provided in other areas on the surface of the electronic device that are not covered by the touch screen.
  • the touch screen can obtain the coordinate set of the contact point when the current finger touches the touch screen, and generate a touch signal, and each frame of the touch signal can include the coordinate set of the contact point. Determined touch image.
  • each frame of the touch signal may further include information such as a touch pressure (touch pressure, TP) value on the contact point.
  • the touch screen may generate multiple frames of touch signals during the current period when a finger touches the touch screen.
  • the multi-frame touch signals may form a touch signal sequence, and the touch signal sequence may be referred to as a touch sequence for short.
  • the touch screen may also generate a touch signal when it is detected that the current distance between the finger and the touch screen is less than a preset sensing distance.
  • the touch screen can generate one or more frames of touch signals. Coordinate set, each frame of touch signal may include touch image determined by the coordinate set of these points and information such as the distance between the user's finger and these points.
  • the touch screen can generate multiple frames of touch signals.
  • morphological feature information may also be collected by other morphological feature collecting devices such as a camera or a sensor.
  • an attitude sensor (not shown in the figure) may also be provided on the electronic device, and the attitude sensor may be used to acquire three-dimensional position information of the electronic device in the earth coordinate system.
  • the attitude sensor may be a gyroscope or a gravity accelerometer.
  • the data collected by the touch device and the attitude sensor can be combined to determine the attribute information of the template object. The processing steps for determining the attribute information of the template object in combination with the data collected by the touch device and the gesture sensor will be described in detail in the following embodiments.
  • the image database involved in the embodiments of this application may be deployed on an electronic device, or may be deployed independently. This embodiment of the present application does not limit this.
  • the technical solutions of the input stage and the recognition stage in the image matching method provided in the embodiment of the present application may also be implemented by different electronic devices, and the electronic devices used in any stage may include the above-mentioned image acquisition device, touch device, attitude sensor, etc. .
  • the image matching method provided by the embodiments of the present application is exemplarily described below.
  • FIG. 2A is a schematic flowchart of an input stage of an image matching method provided by an embodiment of the present application.
  • the steps of the entry phase may include:
  • a template image may be collected from a template object by an image collection device.
  • the fingerprint image to be recognized can be collected by the fingerprint sensor of the fingerprint part to be recognized.
  • the touch signal of the object to be detected may be collected by the touch device.
  • the touch control device may be a touch screen on an electronic device.
  • the relative positions of the touch device and the image capture device may be predetermined, as shown in FIG. 1B .
  • step S101 and step S102 may be performed simultaneously, that is, the touch signal of the template object and the template image may be simultaneously collected when the template object is pressed on the touch screen.
  • steps S101 and S102 can be set to be completed in a relatively short period of time. For example, the time difference between the time of acquiring the image to be recognized and the time of acquiring the touch signal of the object to be detected can be set to be less than the time deviation threshold.
  • FIG. 2B is a schematic diagram of determining morphological feature information according to a touch signal in an embodiment of the present application.
  • a group of continuous touch signals within a period of time are obtained as the touch sequence, for example, as shown in FIG. 2B , 20 frames of touch signals can be acquired as a touch sequence, wherein each frame of touch signals includes a touch image determined by the coordinate set of the contact points when the current frame of touch signals is collected (as shown in the upper part of FIG. 2B ). Show).
  • S103 Determine morphological feature information of the template object according to the touch signal of the template object.
  • the morphological feature information of the template object may be determined according to one or more frames of touch signals of the template object.
  • the morphological feature information of the template object may be contour information, position information, kinematic information, and the like of the template object. It should be noted that the position of the image capture device that captures the template image and the relative position of the touch screen that captures the touch signal are determined. Therefore, the morphological feature information of the template image can be the contour information with the position of the image capture device as a reference. , location information, kinematics information.
  • the contour information may be a set of projection points of the template object in a plane (such as the screen where the touch device is located), or a set of points in a three-dimensional coordinate system; the position information may be the relative position of the template object relative to the image acquisition device , and the kinematic information can be the moving direction, moving speed, and moving trajectory of the template object.
  • edge detection can be performed on the preprocessed contour map such as normalization of each frame of touch signal, to obtain each frame of touch.
  • Profile information of fingers can be performed on the preprocessed contour map such as normalization of each frame of touch signal, to obtain each frame of touch.
  • any ray starting from the center point will pass through at least one edge point in the finger outline of the current frame, and then, respectively, from the touch images of each frame Select a reference ray from the center point as the starting point, the slope of the reference ray in each frame is the same, compare the coordinates of the edge points that the reference ray passes through in the finger outline of each frame, and select the point farthest from the corresponding center point as the final point.
  • edge detection methods such as Laplacian operator and Canny operator, or computer vision algorithms such as machine learning methods may be used to perform contour detection on the touch image frame data.
  • Preprocessing can include methods such as normalization, graphing, and time series analysis. For example, the value of the coordinate point is limited within the interval [0, 255], or the touch signal sequence is filtered by time using the Kalman filtering method.
  • the touch signal when the touch screen supports acquiring the touch signal generated by the template object entering the sensing control, the touch signal may also include relative position information between the template object and the touch screen.
  • the position is fixed. Therefore, the relative position information of the template object relative to the touch screen obtained according to the touch signal can be converted into the position information of the object to be detected relative to the image acquisition device.
  • the touch signal can contain a set of three-dimensional coordinates. The touch image determined by the point set in the system.
  • the kinematic information of the template object such as the movement speed and movement trajectory of the template object can also be determined according to the change rule of the relative position information in the multi-frame touch signals.
  • the foregoing method for determining the morphological feature information of the template object according to the touch signal is merely an example, which is not limited in this embodiment of the present application.
  • the method may further include: acquiring the three-dimensional position information of the touch control device through a gesture sensor; correspondingly, step S103 is based on The morphological feature information of the object to be detected and the determination of the attribute information of the image to be recognized may include: determining the attribute information of the image to be recognized according to the morphological feature information of the object to be detected and the three-dimensional position information of the touch device.
  • the use of the attitude sensor to correct the attribute information of the image to be recognized will be described in detail.
  • S104 Determine attribute information of the template image according to the morphological feature information of the template object.
  • the attribute information of the template image may be the object type of the template object, the habitual posture information of the template object, the global position information of the template image in the outline information of the template object, and the like.
  • the object type may be any of the following.
  • the object type of the template object may include at least one of the following: fingerprint part, palm print part, left and right hand information, and finger type.
  • the object type of the template object may also include other types of objects that can be identified through the outline information, such as ears, lips, head, and soles of feet.
  • the object type of the template object may also be entered by the user.
  • the habitual gesture information may include at least one of a movement track type, a movement speed type, global direction information, and movement direction information.
  • the movement trajectory type can be used to indicate that the user's finger moves in a straight line or along an arc when approaching the touch screen.
  • the speed level of the speed at which the finger approaches the touch screen when the finger is pressed, and the press stay duration type may indicate the length level of the duration of the user's finger staying on the touch screen when pressing.
  • the global orientation information may indicate the orientation of the tip of the user's finger when pressing the touch screen, for example, the tip is inclined to the left.
  • the movement direction information may be the sliding direction of the user's finger when it approaches the touch screen until it contacts the touch screen.
  • the global position information of the template image in the contour information of the template object may include at least one of the following: a distance from a reference point in the contour information of the template object, with the contour information of the template object as a reference
  • the regional location identifier of the system may be a central area, an edge area, an upper half area, a lower half area, an area identified by the coordinate value of the area center, and the like.
  • determining the attribute information of the template image according to the morphological feature information of the template object may include one or more of the following implementations.
  • step S104 may include: determining the object type of the template object according to the outline information of the template object; and using the object type of the template object as the attribute information of the template image.
  • the object type of the template object may include at least one of the following: fingerprint part, palm print part, left and right hand information, and finger type.
  • the object type of the template object may also include other types of objects that can be identified through the outline information, such as ears, lips, head, and soles of feet.
  • the object type of the template object may also be other objects that can be identified through the outline information. For example, when the shape of the object to be detected represented by the outline information is close to an ellipse and the maximum size is less than 6 square centimeters, the object can be considered as a fingerprint part.
  • a finger type recognition system can be constructed, wherein the feature extraction of the finger type can use a machine learning-based feature extraction network (eg, Res-Net).
  • a classification network such as classic frameworks such as SVM and CNN
  • the finger object type can also be inferred by theoretical deduction and statistical analysis directly based on the finger touch signal and gesture sensor data.
  • the inference of the finger object type is exemplified by theoretical derivation and statistical analysis.
  • the finger object type may include left and right hand types
  • FIG. 2C is a schematic diagram of inferring left and right hand types in an embodiment of the present application.
  • the angle between the pressing direction and the positive direction of the vertical axis of the screen is an obtuse angle, it can be inferred that the left and right hand type of the current finger is the right hand, as shown in the left figure in Figure 2C, if it is an acute angle, it can be inferred that the left and right hand type of the current finger is the left hand. As shown in the right panel in Figure 2C.
  • the three-dimensional attitude information of the touch panel can be estimated at this time, wherein the attitude sensor data can be used to estimate that the vertical axis and the horizontal axis of the extension plane of the touch panel are relative in the geodetic coordinate system.
  • the inclination angle of the ground surface and the orientation of the extension plane, etc. For example, the inclination angle ⁇ 2 of the horizontal axis of the touch panel with respect to the ground surface can be calculated. After that, ⁇ 1 is corrected in combination with the horizontal axis inclination angle ⁇ 2 of the touch panel.
  • the finger object types may include finger types such as thumb, index finger, middle finger, etc.
  • FIG. 2D is a schematic diagram of inferring finger types in this embodiment of the present application.
  • the left figure is a schematic time sequence diagram of the touch pressure (touch pressure, TP) value of the left thumb
  • the right figure is a schematic time sequence diagram of the TP value of the right index finger or middle finger.
  • the distribution rules of TP values of various finger types can be obtained.
  • the finger type of the current finger can be inferred according to the distribution law of the TP value of the finger type.
  • each touch signal includes the TP value on the pixels touched by the current finger in the 8*8 area.
  • draw the timing diagram of each pixel in the 8x8 area and a total of 64 timing lines are obtained.
  • each pixel corresponds to a curve, which represents the change of the TP value on a certain pixel over time over time. law.
  • the proportion of the time series lines whose TP value is greater than the preset TP value threshold in a certain time interval in the total number of time series lines is counted.
  • the touch signal sequence of the current finger can be collected, and the timing diagram of the TP value can be drawn. If the proportion is higher than the preset classification proportion threshold, it can be inferred that the finger type of the current finger is the thumb, otherwise, it can be inferred that the finger type of the current finger is the index finger or the middle finger. Taking the classification ratio threshold of 5/64 as an example, when the ratio is greater than the classification ratio threshold, it can be inferred that the current finger is the thumb; if the ratio is less than or equal to the classification ratio threshold, it can be inferred that the current finger is the index finger or the middle finger. It should be noted that, in the steps of the identification stage in this embodiment of the present application, a similar method may also be used to determine the finger type of the current finger collected in the identification stage.
  • the finger object types may include left and right hand types and finger types, eg, right thumb, left index finger, left middle finger.
  • the finger object type of the current finger can be inferred in conjunction with the previous examples. For example, according to FIG. 2C and FIG. 2D , it can be jointly inferred that finger 1 is the thumb of the right hand, and finger 2 is the index finger or middle finger of the left hand.
  • step S104 may include: determining the global position information of the template image in the contour information of the template object according to the contour information of the template object; Attribute information as a template image.
  • the global position information of the template image in the contour information of the template object may include at least one of the following: a distance from a reference point in the contour information of the template object, a region position identifier with the contour information of the template object as a reference system .
  • the area may be a rectangle, the center of the area may be a coordinate point in a reference system, and the length and width of the rectangle may be preset length and width values.
  • FIG. 2E is a schematic diagram of inferring global position information and global direction information in an embodiment of the present application.
  • the position of the finger outline of the current finger on the screen can be determined.
  • the global position information of the template image can be determined by coordinate transformation from the relative position of the template image in the fingerprint contour.
  • the long and short axes of the smoothed general outline of the finger are determined as the finger X axis and the finger Y axis of the finger coordinate system, wherein the The major axis can be determined according to the line connecting the two points with the largest curvature of the contour.
  • the coordinates (x i , y i ) of the center of the template image are taken as the global position information of the template image.
  • the angle ⁇ i between the diagonal line of the template image and the X-axis of the finger is taken as the global direction information.
  • the diagonal line of the template image is a dotted line passing through the center of the template image.
  • step S104 may include: determining the habitual posture information of the template object according to at least one morphological feature information among contour information, position information, and kinematic information of the template object;
  • the customary pose information of the template object is used as the attribute information of the template image.
  • the customary posture information of the template object includes at least one of the following: global direction information of the template object, speed or speed level of the template object, movement direction of the template object, and movement track of the template object.
  • the global orientation information of the template object includes at least one of the following: the top end is inclined to the left, and the top end is inclined to the right.
  • the template object is a fingerprint
  • the morphological feature information of the template object may be the kinematic information of the template object, for example, the moving speed is lower than 0.01 m/s, and the global direction information is that the top is tilted to the left.
  • the moving speed and global direction information of the template object can be used as the attribute information of the template image.
  • S105 add the template image and the attribute information of the template image to the image database.
  • the image database may store at least one template image and attribute information of each template image.
  • the image database may also store object information such as object identifiers or entity identifiers or usage rights corresponding to template objects corresponding to each template image.
  • Table 1 is a schematic diagram of the data stored in the image database.
  • the usage authority may be one or more of unlocking the screen, booting up, logging in to the system, logging in to an application (Application, APP) with account information corresponding to the entity identification, or other usage authority for the application or data corresponding to the entity identification, etc.
  • Application Application
  • APP Application, APP
  • Table 1 For usage rights, see examples in Table 1, which are not limited in this application.
  • an image database can provide template images and attribute information corresponding to the template images, and then, according to the attribute information of the template images, the template images that satisfy the attribute information similarity condition with the attribute information of the image to be recognized can be screened , query the target template image matching the to-be-recognized image in the filtered template image, which can improve the message of image matching.
  • This embodiment of the present application provides an optional implementation of the identification stage of the image matching method.
  • FIG. 3A is a schematic flowchart of a recognition stage of an image matching method provided by an embodiment of the present application. As shown in Figure 3A, the steps of the identification phase may include:
  • the image to be recognized is an image of the object to be detected. Taking the object to be detected as the fingerprint part of the user's finger as an example, the image to be recognized may be a fingerprint image.
  • the manner of acquiring the image to be recognized is similar to the manner of acquiring the template image, and reference may be made to the relevant description in step S101.
  • the manner of acquiring the morphological feature information of the object to be detected is similar to the manner of acquiring the morphological feature information of the template object, and reference may be made to the relevant description in step S102.
  • S203 Determine attribute information of the image to be recognized according to the morphological feature information of the object to be detected.
  • step S103 The implementation of this step is similar to that of step S103, and reference may be made to the relevant description in S103.
  • S204 Screen at least one template image according to the attribute information of the image to be recognized.
  • the attribute correlation condition is satisfied between the attribute information of the filtered template image and the attribute information of the image to be recognized.
  • the attribute information of each template image may be obtained by using any of the methods mentioned in the first embodiment.
  • other implementations may also be used to input the attribute information of the template image.
  • the electronic device may prompt the user to select or input attribute information corresponding to each template image in the input device of the electronic device.
  • the user can be prompted to input the fingerprint of the right thumb in the graphical user interface of the electronic device, and the collected fingerprint image and the corresponding attribute information "right thumb" are added to the image database.
  • the user may also be prompted to enter a template image whose global position information is the edge region, and the collected fingerprint image and the corresponding attribute information "edge region" are added to the image database. This application does not limit this.
  • the number of attribute information of the image to be recognized may be one or more.
  • the above step S204 may include: screening at least one template image according to the at least two types of attribute information of the image to be recognized and the weight of each attribute information. For example, a template image with higher similarity in attribute information can be selected.
  • the similarity of attribute information can be calculated according to the following formula:
  • Similarity percentage of attribute information weight 1 * similarity percentage of two images - weight 2 * distance of global position information of two images - weight 3 * difference of global orientation information of two images
  • weight 2 and weight 3 can also be set to 0
  • the attribute correlation condition in step 204 may include one of the following implementations or a combination of multiple implementations.
  • the object type corresponding to the filtered template image may be the same as the object type corresponding to the to-be-recognized image same.
  • the morphological feature information of the object to be detected may be the outline information of the fingerprint part to be recognized, and according to the outline information of the object to be detected, it can be determined that the object type of the object to be detected is the finger of the left hand, and then the object type is used as the image to be recognized.
  • attribute information first filter the template image whose object type is the finger of the left hand in the image database.
  • the habitual gesture information corresponding to the filtered template image may be the same as that of the to-be-recognized image.
  • the habitual posture information is the same.
  • the object to be detected is a fingerprint
  • the morphological feature information of the object to be detected can be the kinematic information of the object to be detected, for example, the moving speed is lower than 0.01 m/s, and the global direction information is the top left.
  • the moving speed and global direction information of the object to be detected can be used as the attribute information of the image to be recognized, and the corresponding moving speed is less than 0.01 m/s and the global direction information is the template image with the top left facing in the image database, and then in the image database.
  • the attribute information of the image to be recognized includes global location information corresponding to the image to be recognized
  • the global location information corresponding to the filtered template image is the same as the image to be recognized.
  • the global location information satisfies the location proximity condition.
  • the location proximity condition may include: the location indicated by the global location information corresponding to the filtered template image includes the location indicated by the global location information corresponding to the image to be recognized, or, the location indicated by the global location information corresponding to the filtered template image There is an intersection between the position represented by the global position information corresponding to the image to be recognized, or the position represented by the global position information corresponding to the filtered template image and the position represented by the global position information corresponding to the image to be recognized. The distance is less than the proximity distance threshold.
  • the attribute information of the image to be recognized includes object type and global position information
  • the object type of the image to be recognized is the index finger of the left hand
  • the region position of the image to be recognized in the outline information of the object to be detected is identified as region 1
  • the A group of template images are screened out from at least one template image
  • the object type of the screened template image is the index finger of the left hand
  • the region position of the template image in the contour information of the corresponding template object is identified as region 2, wherein region 2 contains the region 1, or, there is an intersection between area 2 and area 1, or the distance between area 2 and area 1 is less than the adjacent area distance threshold.
  • the to-be-recognized image collected by the image acquisition device is the fingerprint image of the user's finger pressed in the fingerprint collection area, which may be called a partial image or a partial topology.
  • the morphological feature information of the object to be detected can be the contour information of the object to be detected, which can be called a global image or global topology; according to the contour information of the object to be detected and the position of the fingerprint collection area, the global position information of the local image in the global image can be determined .
  • the global image may be an ellipse corresponding to the thumb of the right hand, and the local image may be located on the left side of the long axis of the ellipse, that is, the left side of the Y axis in the figure.
  • the global position information corresponding to the image to be recognized in the contour information of the object to be detected is used as the attribute information of the image to be recognized, and the numerous template images in the image database are screened.
  • the global position information may be screened to be a template image located on the left side of the long axis, and a target template image matching the image to be recognized may be queried from the screened template images.
  • the attribute information of the image to be recognized may include global position information of the image to be recognized in the complete outline of the object to be detected.
  • the image to be recognized The attribute value corresponding to the attribute information may be "edge area", then a template image with the corresponding attribute information as "edge area” may be filtered out of the template image, and the selected template image may be searched for matches with the image to be recognized. target template image.
  • the location proximity condition is that the distance between the location represented by the global location information corresponding to the filtered template image and the location represented by the global location information corresponding to the image to be recognized is smaller than the adjacent area distance threshold.
  • the approximate region to which the image to be recognized belongs can be inferred based on the global location information of the image to be recognized. After that, the template image corresponding to the global location information is located in the inferred approximate region, and the template image that matches the image to be recognized is queried in the filtered template image.
  • the approximate region to which it belongs may be referred to as an inference region or an inference template region.
  • FIG. 3B is a schematic diagram of an approximate area inferred in an embodiment of the present application.
  • the coordinates of the center of the fingerprint image to be recognized can be taken as the center of the estimated approximate area, and the area within a preset radius around the center is determined as the approximate area, as shown by the dotted line in FIG. 3B the circular area.
  • the Euclidean distance between the center position of the template image in the template library and the center position of the current fingerprint to be recognized is calculated, and when the distance is less than the specified radius, it can be determined that the template image is located in the approximate area to which it belongs. Based on this judgment principle, the two template images adjacent to the image to be recognized in Fig.
  • the approximate area may also be an area of another fixed shape centered on the global position of the fingerprint image to be recognized in the fingerprint contour.
  • the fixed shape may be, for example, a regular hexagon, an ellipse, a rectangle, or the like.
  • the target template image matching the image to be recognized may be a target template image whose image similarity with the image to be recognized reaches a similarity threshold.
  • step S205 in the filtered template images, query the target template image that matches the image to be recognized, which may include: comparing the similarity between the filtered template image and the image to be recognized, and comparing the similarity Template images greater than the similarity threshold are used as matching target template images.
  • the filtered template images may also be sorted according to the historical matching success rate of the filtered template images from high to low. , and then compare the similarity between the filtered template image and the to-be-recognized image one by one in sequence.
  • one or more attribute information of the image to be recognized is used to screen the template images in the image database, and in the filtered template images, the target template image that matches the image to be recognized is queried. It can provide the efficiency of image matching.
  • step S204 the number of filtered template images obtained in step S204 is 0, or, in step S205, when no target template image matching the image to be recognized is found in the filtered template images, in step S205 After step S205, step S206 may also be included.
  • the above-mentioned other template images may be sorted according to the historical matching success rate from high to low, and then the similarity between each other template image and the image to be recognized is compared in order.
  • step S206 when no matching target template image is found in the filtered template images, the matching target template image can be continuously searched in other template images in the image database to improve the success rate of image recognition.
  • FIG. 3C is a schematic diagram of template matching in an embodiment of the present application.
  • the template triples in the global template library that belong to the inferred finger type and are located in the approximate area of the inference, exemplarily, the global position information in FIG. 3C is (x j , y j ), the template triplet is matched with the to-be-recognized image extracted by the current pressing.
  • the matching order within this range may be determined according to historical statistical sorting information, and the matching formula may be calculated according to the attribute information similarity calculation formula given in S204 in the foregoing embodiment.
  • the similarity percentage is greater than the similarity matching success threshold, the matching is successful in the inferred finger type and the inferred area, the historical statistical ranking information is updated, and the user is prompted in the output device that fingerprint recognition is successful; If the matching in the template image fails, there are two strategies for the follow-up process.
  • Table 2 is a set of schematics for matching strategies.
  • the inferred finger type refers to the left and right hand type and finger type of the object to be recognized determined according to the morphological feature information of the object to be recognized, and the inferred template area is determined according to the global position information of the image to be recognized in the outline information of the object to be detected. approximate area.
  • the first strategy or the second strategy can be used after matching the template image of the inferred finger type and the inferred template region first, but after the matching fails.
  • the first strategy you can try to match the template image of the inferred template area under the non-inferred finger type, and if it still fails, enter the second strategy or try to match the template image of the non-inferred template area under the non-inferred finger type. template image to match. If the match is successful at this stage, update the historical statistical sorting information and enter the output device to prompt the user that the fingerprint identification is successful. The matching order within this range can still be determined according to historical statistical sorting information.
  • the second strategy you can try to match the template image of the non-inferred template area under the inferred finger type, and if it still fails, enter the first strategy or try to match the non-inferred template area under the non-inferred finger type. template image to match. If the match is successful at this stage, update the historical statistical sorting information and enter the output device to prompt the user that the fingerprint identification is successful. The matching order within this range can still be determined according to historical statistical sorting information. It should be noted that if the first strategy is executed first, and then the second strategy is executed, if the recognition still fails after the second strategy is executed, it will directly enter the template image of the non-inferred template area under the trial and non-inferred finger types. to match.
  • the steps in the matching and identifying stage may further include steps S207 and S208.
  • the template entity identifier may be user identity information, and the usage authority may be unlocking the screen, booting, logging in to the system, logging in to the APP, and the like.
  • the attribute information of the image to be recognized is determined by the morphological feature information of the object to be detected, and at least one template image is screened according to the attribute information of the image to be recognized, and then, after the screening
  • the target template image matching the image to be recognized is queried in the template image, which can improve the efficiency of image matching.
  • the embodiment of the present application also provides an optional implementation of the input stage of the image matching method. Among them, in the input stage, the template image and the morphological feature information of the template object are collected, and the attribute information of the template image is determined according to the morphological feature information of the template object. Detect the morphological feature information of the object.
  • one method is to obtain both the image to be identified and the morphological feature information of the object to be detected, and then, according to the attribute information of the image to be identified determined by the morphological feature information of the object to be detected, at least one Template images to filter.
  • only the to-be-recognized image may be acquired.
  • the template image may not be screened, and the target template image matching the to-be-recognized image may be directly queried in the complete set of template images.
  • template images with various values of the attribute information can be collected for each attribute information. In this way, as many template images as possible can be collected, thereby improving the success rate of image recognition.
  • the following takes the morphological feature information as the contour information as an example for illustrative description.
  • FIG. 4 is a second schematic flowchart of an image matching method provided by an embodiment of the present application. As shown in FIG. 4 , the steps in this embodiment of the present application may include:
  • At least one first template image of the template object can be collected by the image collection device
  • the outline information of the template object may be acquired through the touch device, and the outline information of the template object is used to determine the region position identifier of the at least one first template image in the outline information of the template object.
  • the template object may be the first template object, for example, the fingerprint part of the index finger of the right hand of the user 1 .
  • the manner of collecting the template image the manner of acquiring the outline information of the template object, and the manner of determining the region position identifier, reference may be made to the descriptions in other embodiments of the present application.
  • S403 Determine, according to the outline information of the template object, a region position identifier of each first template image in the outline information of the template object.
  • S404 Collect a second template image of the template object when the set of region location identifiers corresponding to at least one first template image does not satisfy the coverage condition.
  • At least one of the first template image and the second template image is used to query the target template image matching the image to be recognized.
  • the above coverage conditions may include: covering at least one local area of the template object; covering the edge area of the template object exceeding the edge coverage condition of the preset coverage ratio, or, covering the outline information of the template object exceeding the preset coverage A global override condition for the scale.
  • the preset coverage ratio may be 50%, 90%, or the like.
  • FIG. 5A is a schematic diagram of the position of a template image of an edge region in an image matching method provided by an embodiment of the present application. As shown in FIG. 5A , for example, it can be checked whether the acquired template image covers the edge area of the template object, or whether it completely covers the entire area of the template object. When not enough template images are collected, the user may be prompted to continue collecting template images of the uncovered area. In this way, the success rate of image matching can be improved.
  • the steps in this embodiment of the present application may further include:
  • S405 Determine the supplementary mining area according to the set of area location identifiers and coverage conditions corresponding to the at least one first template image.
  • the supplementary mining area may be an area where at least one first template image does not satisfy the coverage condition.
  • the coverage condition is to cover the center area and the first edge area, and at least one first template image only covers the center area, the supplementary mining area may be the first edge area.
  • S406 Output prompt information, where the prompt information is used to prompt the input of a second template image of the template object including the supplementary mining area.
  • the image acquisition device can be a fingerprint sensor; the touch device is a touch screen in an electronic device; the fingerprint sensor is disposed on the side of the touch screen close to the body of the electronic device, as shown in FIG. 1C .
  • the output prompt information can be prompted through a touch screen, or through a device such as a sound.
  • FIG. 5B is a schematic diagram 3 of an application scenario of the image matching method provided by the embodiment of the present application.
  • the user enters a fingerprint on the fingerprint entry interface of the fingerprint entry system. If one or more fingerprints of the finger have been collected, but the collected fingerprint image does not cover the left edge of the fingerprint outline, a prompt message "The collected fingerprint does not cover the left edge of the fingerprint outline, please You rotate your finger to continue enrolling your fingerprints".
  • steps S405 and S406 are not steps that must be performed in this embodiment of the present application.
  • the steps in this embodiment of the present application may further include: collecting the three-dimensional attitude information of the electronic device through the attitude sensor, and then correcting the position of each first template object in the template object according to the outline information of the template object obtained by using the touch device.
  • the region location identifier in the contour information of please refer to the detailed description in other embodiments of the present application.
  • the steps in the template image entry stage may include: collecting the P-1 th template image and the P-th template object corresponding to the P-1 th template image for the first template object -1 contour information; wherein, P can be an integer greater than or equal to 2.
  • the region position identifier of the P-1 th template image in the P-1 th outline information is determined according to the P-1 th outline information. If the set of the 1st to P-1th area location identifiers corresponding to the 1st to P-1th template images of the first template object fails to satisfy the global coverage condition.
  • the P th template image and the P th contour information of the first template object corresponding to the P th template image may continue to be collected from the first template object.
  • the image database obtained in this way may include at least P template images of the first template object. It should be noted that the time difference between the moment of acquiring the corresponding first template image and the moment of acquiring the outline information of the first template object is less than a preset time deviation threshold; exemplarily, the corresponding The first template image and the contour information of the first template object are obtained.
  • the image matching method provided by the embodiment of the present application, it is possible to collect as much template image as possible in the template image input stage, for example, to collect a template image including an edge area, or to collect a plurality of template images to cover the outline of the template object information, that is, to build a global fingerprint template library, so as to avoid the problem of recognition failure caused when the image to be recognized is located at the edge of the object to be detected or at some special position.
  • a template triplet corresponding to each template image may be stored in the image database.
  • the template triplet may include a template image, global position information, and the global orientation in the above-mentioned user gesture information information.
  • the global position information may be referred to as template position for short, and the global direction information may be referred to as template direction for short.
  • steps S101 to S105 may be performed multiple times to input multiple template images and attribute information of the template images.
  • a condition for stopping inputting may also be set. The following is an exemplary description of the processing flow of the input stage.
  • the technical solutions provided by the embodiments of the present application can be applied to the field of fingerprint identification technology.
  • the fingerprint identification technology is a biometric identification technology, and the biometric identification can capture the biometrics as a digital signal through a sensor device.
  • the image matching method provided by the embodiments of the present application can be used to provide a fingerprint identification system.
  • the fingerprint recognition system can be a pattern recognition system including fingerprint image acquisition, preprocessing, feature extraction, comparison and other modules, and can be used in places that require personnel identity confirmation, such as mobile phone unlocking, notebook unlocking, mobile payment, bank internal processing, access control system and attendance system. Referring to FIG.
  • a fingerprint reader when a fingerprint identification system is deployed on a smart terminal device, a fingerprint reader can be set under the screen, and the reader can collect information and match and identify the user's fingerprint through the screen.
  • the fingerprint reader can be combined with optical recognition, capacitive recognition and ultrasonic recognition.
  • the under-screen fingerprint recognition technology mainly uses under-screen optical fingerprint recognition and under-screen ultrasonic recognition.
  • the image matching method provided by the embodiments of the present application may include: a fingerprint entry stage and a fingerprint identification stage.
  • a global fingerprint template library can be constructed for the user's finger.
  • the global fingerprint template library may be referred to as a global template library for short, and the fingerprint template image may be referred to as a fingerprint template for short.
  • the global template library can contain attribute information of each fingerprint template.
  • the attribute information of each fingerprint template may include the global position information and global orientation information of each fingerprint template in the overall fingerprint of the user's finger, the global fingerprint profile corresponding to the template library, and the corresponding finger type, such as: left and right hands, thumb , index and middle fingers, etc.
  • the global fingerprint template library can include fingerprint images and attribute information corresponding to fingerprint images, a set of fingerprint images and attribute information corresponding to fingerprint images can be called a fingerprint template, and each fingerprint template can include fingerprint images, global location information, and global orientation information. , which can also be called fingerprint template triples.
  • the profile and type information of the currently entered finger can be estimated.
  • the contour information the hardware position information of the fingerprint image collector relative to the touch screen, and the pixel information of the screen touch dot matrix, the global position information and global orientation of the captured fingerprint image in the overall fingerprint of the finger can be estimated. information.
  • FIG. 6 is a schematic diagram of a processing flow of a fingerprint entry stage in an image matching method provided by an embodiment of the present application.
  • the processing flow of the input stage may include:
  • the first step is to prompt the user to enter fingerprints in the designated area.
  • the global fingerprint template library and its corresponding fingerprint profile and type can be set as empty. If the fingerprint template of the finger is already stored in the global fingerprint template library, then according to the existing information in the template library in the device storage area, determine the fingerprint area that still needs to be entered by the user, and prompt the user on the display device in the form of image display Enter the fingerprint of the designated area of the finger. Refer to the illustration of the graphical user interface shown in FIG. 5B .
  • the second step is to capture fingerprint images and touch signals.
  • the fingerprint authentication system can obtain fingerprint image, touch signal sequence and attitude sensor data respectively after receiving the touch signal.
  • the fingerprint authentication system can obtain fingerprint image, touch signal sequence and attitude sensor data respectively after receiving the touch signal.
  • this step reference may be made to the relevant descriptions in steps S101 and S102.
  • the third step is to extract the template image, and determine the outline and type of the finger.
  • the outline and type of the currently entered finger are estimated by using the multi-frame touch signals obtained in the second step and the data of the attitude sensor and other information.
  • this step please refer to the related descriptions of determining the morphological feature information according to the touch signal in step S103 and S104 according to the attribute information of the morphological feature information
  • the fourth step is to determine template triples, including template image, template position, and template direction.
  • each entered fingerprint template can calculate the position of the collected fingerprint template on the finger according to the pixel position information of the touch dot matrix on the screen and the absolute position information of the fingerprint sensor collection area on the screen.
  • Global position information and global orientation information in the contour Referring to FIG. 1D , for example, a reference coordinate system can be determined based on the contour of the fingerprint portion, and then the region position identification, global orientation information, etc. of the collected fingerprint template in the finger contour information can be identified in the reference coordinate system. For the implementation of this step, reference may be made to the detailed description of determining the global position information of the template image in the outline information of the template object in step S104.
  • the fifth step is to judge whether the current template triplet already exists in the global template library, if so, execute the first step, and if not, execute the sixth step.
  • the similarity of attribute information between the extracted template image and the template image in the global template library is compared to determine whether the extracted template image exists in the global template library.
  • the similarity of attribute information can be calculated according to the following formula:
  • Similarity percentage of attribute information weight 1 * similarity percentage of two images - weight 2 * distance of global position information of two images - weight 3 * difference of global orientation information of two images
  • weight 2 and weight 3 can also be set to 0.
  • the sixth step is to add the current template triplet to the global template library.
  • the triplet of fingerprint template image information, global position information, and global orientation information is stored in the global fingerprint template database, and the finger number and type are updated and the global finger contour is enriched.
  • the fingerprint image information, global position information and global orientation information extracted from the current entry are combined into triples, and the similarity is compared with the templates existing in the existing fingerprint global template database. If the similarity is greater than a certain threshold, it is determined that the currently extracted template triplet is already in the global template library. At this time, it can be judged whether the fingerprint location entered by the user is the entry area required by the first step according to the extracted global location information of the template, and if it does not meet the requirements of the entry area, request the user to enter the required area again, and go to the first step .
  • the similarity is less than or equal to a certain threshold, judge whether the currently extracted template triplet does not exist in the constructed global fingerprint template library, if not, add it to the global fingerprint template library, and use the currently extracted template triplet Finger profile and type update the coverage degree information and type of the finger profile corresponding to the current global fingerprint template library.
  • the fingerprint template image information, global position information, and global orientation information can be stored as triples in the global fingerprint template library, and the finger number and type can be updated and the coverage degree information of the global finger contour can be enriched. It should be noted that when this entry is the first entry, the finger outline and type corresponding to the current global fingerprint template library can be updated using the finger outline and type extracted from the current entry. If it is the first entry, since the global template library is empty during the first entry, the comparison step of the fifth step can be skipped.
  • the seventh step is to judge whether to end the input, if not, go to the first step.
  • the number of entries meets the upper limit of the number of entries. If the upper limit of the number of entries is met, the user is prompted to complete the fingerprint entry. If the upper limit of the number of entries is not reached, it is determined whether the template information in some areas is missing more according to the global location information in the saved fingerprint template library. For example, it can be determined whether the coverage percentage of the coverage contour information is lower than a preset coverage ratio threshold. If there are many missing areas, it is determined that the global fingerprint template library is still incomplete, and a prompt message is output to prompt the user to enter the fingerprints in the missing area. If the template information in the partial area is not missing or is missing less, it can be further determined whether the template information in the global finger contour meets the preset number of templates threshold.
  • the global fingerprint template library is still incomplete, and the user can be further prompted to enter an area with a small number of templates. If the number of templates reaches the threshold of the number of templates, it can be determined that the global fingerprint template library has been constructed, and the number of the currently entered finger is bound to its corresponding global fingerprint profile and type, and the user is prompted to complete the fingerprint entry.
  • the fingerprint contour can be divided into several areas, for example, a central area and an edge area, and the number of templates in each area is not less than one.
  • the main process of the fingerprint identification stage includes: first, infer the attribute information of the current fingerprint to be identified.
  • the attribute information of the fingerprint may include the type of the finger to which the fingerprint belongs and the approximate area in the global fingerprint template database.
  • the global position information and global orientation information in the triplet of the fingerprint template are combined with the inferred contour to estimate the approximate area of the current fingerprint to be recognized in the global template library.
  • the template image of the inferred finger type and the template image in the approximate region of the inferred template are preferentially matched.
  • the fingers in the global template library can be filtered out.
  • at least one template triple filtered out is preferentially matched with the triple of the current fingerprint to be identified, which can achieve accurate matching and improve fingerprint recognition. speed.
  • the fingerprint matching process can be completed in a short time, the fingerprint recognition process under the screen is accelerated, and the user experience is improved.
  • FIG. 7 is a schematic diagram of processing logic in a fingerprint identification stage in an image matching method provided by an embodiment of the present application.
  • the processing flow of the identification stage may include:
  • the first step is to obtain the fingerprint image and touch signal to be recognized.
  • this step is similar to the second step of the fingerprint entry stage.
  • the fingerprint authentication system After receiving the touch signal, the fingerprint authentication system determines whether it is a finger press, and if it is a finger press, obtains the fingerprint image, touch signal sequence and additional attitude sensor data generated by the current pressing process.
  • the fingerprint image to be recognized is extracted, and the current finger outline and type are determined.
  • the outline and type of the currently recorded finger are estimated.
  • the global position information and global orientation information of the fingerprint image to be recognized in the finger contour are located according to the touch signal.
  • the third step is to infer the triplet of the fingerprint image to be identified and the approximate area to which it belongs.
  • this step please refer to the step.
  • the fourth step is to preferentially match the template images of the inferred finger and the inferred region.
  • the fifth step it is judged whether the template image of the inferred finger type or the inferred region has not been matched successfully.
  • Step 6 Match other template images of the global template library according to historical statistical sorting information.
  • the seventh step is to judge whether the matching is successful among other template images in the global template library, if not, confirm that the authentication fails, and if so, confirm that the authentication is successful.
  • the fingerprint identification system can update the historical statistical ranking information to prompt the user that the fingerprint identification is successful, and during the authentication and identification, it can prompt the user that the fingerprint identification fails.
  • each fingerprint template corresponds to a corresponding finger type, global position information, global orientation information and other information.
  • the priority matching range is limited to the template image whose finger type is the inferred finger in the global template library.
  • the approximate area to which the inferred current fingerprint to be recognized belongs. In one example, if the distance metric value is smaller than the radius specified in the detailed description of the third step, it is determined that the template image is located within the approximate area.
  • the template images belonging to the approximate region are preferentially matched.
  • the inferred finger type and the inferred area can be preferentially matched here, and the matching process of the following two situations can be adopted:
  • the fourth step is performed first to firstly match the template image of the inferred area of the inferred finger type, secondly to match the template image of the non-inferred area of the inferred finger type, and then to match the template image of the inferred area of the non-inferred finger type, and finally transfer to
  • the fifth step is to match non-inferred template regions of non-inferred finger types according to historical statistical ranking information. If a match succeeds at any of these steps, the match is terminated.
  • the fourth step is firstly performed to firstly match the template image of the inferred area of the inferred finger type, secondly match the template image of the inferred area of the non-inferred finger type, then match the non-inferred template area of the inferred finger type, and finally transfer to
  • the fifth step is to match the non-inferred template region of the non-inferred finger type according to the historical statistical sorting information; if the matching is successful in any step, the matching is terminated.
  • the method of matching based on the inferred finger type with high confidence and the template image of the inferred area is adopted. Since most fingerprint recognition processes can be successfully authenticated in the fourth step, the subsequent process of matching other template images can be avoided as much as possible. It can effectively accelerate the recognition speed of trusted fingerprints, improve the speed of fingerprint authentication, and reduce power consumption to a certain extent.
  • the image matching method provided by the embodiments of the present application can solve various technical problems in the fingerprint identification scene.
  • the fingerprint template library is mainly used to judge whether the pressed fingerprint exists in the template library when the user uses fingerprint authentication, or, the similarity with the template image in the template library is high enough, that is, the above-mentioned embodiment mentioned in the image similarity degree. matching process.
  • a sufficient fingerprint template library is saved for trusted users, which can improve the user's unlocking accuracy in the later fingerprint identification stage, and help to quickly locate the fingerprint image related to the captured fingerprint image in the later fingerprint identification stage.
  • Template image For example, relative to the information in the template library, it only contains the partial image information (or called partial topology) extracted from each fingerprint image entry, and does not include the fingerprint image (or called partial fingerprint) in the entry of finger fingerprints (or called partial fingerprint).
  • the method provided by the embodiment of the present application can quickly perform the screening and matching of template images, thereby improving the matching efficiency.
  • the technical solutions provided by the embodiments of the present application can help the fingerprint system to determine whether the currently constructed template library is sufficient to enable the user to unlock effectively, for example, whether the template library contains the user's edge fingerprint.
  • the problem of low matching rate due to too many template images can be solved.
  • the number of template images that need to be judged for matching can be reduced, thereby improving the matching efficiency, and at the same time, based on the global template library success rate.
  • the authentication speed and accuracy mainly affect the user's experience.
  • the technical solutions provided by the embodiments of the present application rapidly and accurately locate the position of the fingerprint image in the fingerprint template database for rapid matching, thereby accelerating the fingerprint recognition speed.
  • the accuracy of fingerprint identification can be maximized as much as possible, and the user's edge fingerprints can be prevented from being rejected by the fingerprint identification system.
  • the solution provided by the embodiments of the present application to accelerate the fingerprint recognition under the screen based on the touch signal of the finger pressing the screen can improve the fingerprint recognition speed and unlocking accuracy under the screen without adding a hardware module specially used for image processing.
  • successful template matching needs to ensure that the similarity of fingerprint image information, global position information and global orientation information are all higher than a certain threshold, that is, the triple information is used for matching. Therefore, The technical solutions provided by the embodiments of the present application can also improve the security of fingerprint recognition under the screen without affecting the user experience.
  • the image matching method provided in the embodiment of the present application can be deployed in an electronic device having an image acquisition device.
  • the electronic device may include the following components: an input unit, a processor unit, a communication unit, a storage unit, an output unit, and a power supply and other electronic devices.
  • the input unit includes a fingerprint image collector, an attitude sensor and a touch panel.
  • the fingerprint image collector includes a sensor capable of extracting fingerprint information, but is not limited to a capacitive fingerprint sensor, an optical fingerprint sensor or an ultrasonic fingerprint sensor.
  • the attitude sensor is a high-performance three-dimensional motion attitude measurement system based on MEMS technology. It contains motion sensors such as a three-axis gyroscope, a three-axis accelerometer, and a three-axis electronic compass. The sensor is mainly used to capture the gesture information of the touch panel. In the actual fingerprint recognition system under the screen, this device is an optional device.
  • a touch panel also known as a touch screen or a touch screen, collects the actions of a user touching or approaching it.
  • the user uses any suitable object or accessory, such as a finger, a stylus, or an operation action on the touch panel or a position close to the touch panel, and drives the corresponding connection device according to a preset program.
  • the touch panel may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch operation, converts the detected touch operation into an electrical signal, and transmits the electrical signal to the touch controller; the touch controller receives the electrical signal from the touch detection device and converts it into an electrical signal.
  • Contact coordinates are sent to the processing unit.
  • the touch controller can also receive and execute commands from the processing unit.
  • the touch panel can be realized by various types such as resistive type, capacitive type, infrared (Infrared), and surface acoustic wave.
  • the processor unit is the control center of the electronic equipment. It uses various interfaces and lines to connect various parts of the entire electronic equipment. It runs or executes the software programs and/or modules stored in the storage unit, and calls the data stored in the storage unit. , to perform various functions of the electronic device and/or process data.
  • the processor unit may be composed of an integrated circuit (Integrated Circuit, IC for short), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs with the same function or different functions.
  • the processor unit may only include a central processing unit (Central Processing Unit, CPU for short), or may be a GPU, a digital signal processor (Digital Signal Processor, DSP for short), and a control chip (such as a baseband) in the communication unit chip) combination.
  • the processor unit is mainly used to run the fingerprint entry and identification system.
  • the communication unit is used for establishing a communication channel, enabling the electronic device to connect to the remote server through the communication channel, and download media data from the remote server.
  • the output unit includes, but is not limited to, an image output unit and a sound output unit.
  • the video output unit is used to output text, pictures and/or videos.
  • the image output unit may include a display panel, such as a display configured in the form of an LCD (Liquid Crystal Display, liquid crystal display), an OLED (Organic Light-Emitting Diode, organic light-emitting diode), a field emission display (field emission display, FED for short), etc. panel.
  • the image output unit may include a reflective display, such as an electrophoretic display, or a display utilizing Interferometric Modulation of Light.
  • the image output unit may include a single display or multiple displays of different sizes.
  • the touch panel used in the above-mentioned input unit can also be used as a display panel of the output unit at the same time. For example, when the touch panel detects a touch or an approaching gesture operation on it, it is transmitted to the processing unit to determine the type of the touch event, and then the processing unit provides corresponding visual output on the display panel according to the type of the touch event.
  • the storage unit can be used to store software programs and modules, and the processing unit executes various functional applications of the electronic device and implements data processing by running the software programs and modules stored in the storage unit.
  • Power supplies are used to power different parts of an electronic device to keep it running.
  • the power source can be a built-in battery, such as a common lithium-ion battery, a nickel-metal hydride battery, etc., and also includes an external power source that directly supplies power to the electronic device, such as an AC adapter.
  • FIG. 8 is a first structural schematic diagram of an image matching apparatus provided by an embodiment of the present application. As shown in FIG. 8, the present application provides an image matching apparatus 1000, including:
  • a determination module 1001 configured to determine attribute information of an image to be identified according to morphological feature information of the object to be detected, wherein the image to be identified is used to identify the object to be detected;
  • a matching module 1002 configured to screen at least one template image according to the attribute information of the image to be recognized, wherein the attribute information of the filtered template image and the attribute information of the image to be recognized satisfy the attribute correlation condition; and, in In the filtered template images, the images matching the images to be recognized are queried.
  • the apparatus 1000 may further include: an acquisition module 1003, configured to acquire the image to be recognized, and acquire the touch signal of the object to be detected; and, according to the touch signal of the object to be detected, determine Morphological feature information of the object to be detected; wherein the time difference between the moment when the image to be recognized is acquired and the moment when the touch signal of the object to be detected is acquired is less than a time deviation threshold.
  • the matching module 1002 is specifically configured to screen at least one template image according to at least two types of attribute information of the image to be recognized and the weight of each attribute information.
  • the matching module 1002 is further configured to: when the number of the filtered template images is 0, or, in the filtered template images, no target template matching the to-be-recognized image is queried. When creating an image, among other template images in at least one template image except the filtered template images, an image matching the to-be-recognized image is queried.
  • the matching module 1002 is further configured to: when the number of the filtered template images is 0, or, in the filtered template images, no target template matching the to-be-recognized image is queried. When the image is selected, it is sorted according to the historical matching success rate corresponding to the at least one template image, and in the at least one template image, the image matching the image to be recognized is queried.
  • the matching module 1002 is further configured to obtain the template entity identifier and/or use authority corresponding to the target template image when the target template image matching the to-be-recognized image is queried; and, in When no target template image matching the to-be-identified image is found, it is determined that the to-be-detected object corresponding to the to-be-matched image does not have the right to use.
  • the acquiring module 1003 is specifically configured to acquire P-1 first template images of the first template object, and the outline of the first template object corresponding to the P-1 first template images
  • the determining module 1001 is specifically configured to determine the region position identifier of each first template image in the corresponding contour information according to the contour information of the first template object corresponding to each first template image; the determining module 1001 is further configured to Judging whether the set of area location identifiers corresponding to the P-1 first template images satisfies the coverage condition; if not, instruct the acquisition module 1003 to obtain the Pth first template image of the first template object; wherein, the coverage conditions include: coverage The edge coverage condition of the edge region of the first template object, or, satisfies the global coverage condition of covering the contour information of the first template object; P is an integer greater than or equal to 2.
  • the determining module 1001 is further configured to determine the supplementary mining area according to the set of area location identifiers corresponding to the at least one first template image and the coverage conditions; the apparatus further includes: an output module 1004, configured to Output prompt information, where the prompt information is used to prompt the input of the template image of the first template object including the supplementary mining area.
  • the image matching apparatus provided in the embodiments of the present application can be used to execute the methods in the foregoing embodiments.
  • FIG. 9 is a first structural schematic diagram of an image matching apparatus provided by an embodiment of the present application. As shown in FIG. 9, the present application provides an image matching apparatus 1100, including:
  • the obtaining module 1103 is configured to obtain at least one first template image of the template object; and, obtain contour information of the template object, wherein the contour information of the template object is used to determine the position of the at least one first template image in the contour information of the template object. area location identifier;
  • a determination module 1101 configured to determine whether the set of area location identifiers corresponding to at least one first template image satisfies the coverage condition, and when the coverage condition is not met, instruct the acquisition module to acquire the second template image of the template object; wherein at least one first template image The template image and the second template image are used to query the image matching the image to be recognized.
  • the apparatus 1100 may further include a matching module 1102, configured to query at least one of the first template image and the second template image for an image that matches the image to be recognized.
  • the coverage condition includes at least one of the following: covering at least one partial area of the template object; covering the edge area of the template object exceeds a preset coverage ratio; covering the outline information of the template object exceeds a preset coverage ratio .
  • the determining module 1101 is further configured to determine the supplementary mining area according to the set of location identifiers corresponding to the at least one first template image and the coverage conditions; the apparatus further includes: an output module 1104, configured to Output prompt information, where the prompt information is used to prompt input of the second template image of the template object including the supplementary mining area.
  • the image matching apparatus provided in the embodiments of the present application can be used to execute the methods in the foregoing embodiments.
  • FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 10, an embodiment of the present application provides an electronic device 1200, including: a processor 1210, a memory 1220, and an input and output device 1230; wherein:
  • the processor 1210 may be configured to execute the execution instructions to cause the electronic device to execute any of the image matching methods in the foregoing embodiments.
  • the memory 1220 can be used to store program instructions and data involved in any of the image matching methods in the foregoing embodiments.
  • the input and output devices 1230 may include data input and output devices and data input and output devices.
  • the input and output device 1230 may be used to acquire or output various information involved in performing the above-mentioned image matching method.
  • the input and output device 1230 may include: an image acquisition device and a morphological feature acquisition device.
  • the morphological feature collection device may be a touch device, and exemplarily, it may be a touch screen.
  • the image collection device may be a fingerprint sensor, a fingerprint collector, or the like for collecting fingerprint images.
  • the fingerprint sensor is located on the side of the touch screen close to the body of the electronic device.
  • the touch screen can also be used to output prompt information. See Figure 1C.
  • an image acquisition device which can be used to acquire an image to be recognized of the object to be detected
  • a morphological feature collection device which can be used to collect morphological feature information of the object to be detected
  • the processor is used to determine the attribute information of the image to be recognized according to the morphological feature information of the object to be detected; and, according to the attribute information of the image to be recognized, screen at least one template image, wherein the attribute information of the filtered template image is The attribute correlation condition is satisfied with the attribute information of the image to be recognized; and, in the filtered template image, the image matching the image to be recognized is queried.
  • An image acquisition device which can be used to acquire at least one first template image of the template object; and, when the set of area position identifiers corresponding to the at least one first template image does not satisfy the coverage condition, acquire the second template image of the template object; wherein, at least one of the first template image and the second template image is used to query the image matching the image to be recognized;
  • the touch device can be used to obtain contour information of the template object, wherein the contour information of the template object is used to determine a region position identifier of the at least one first template image in the contour information of the template object.
  • the touch control device is further configured to output prompt information when the set of area location identifiers corresponding to the at least one first template image does not satisfy the coverage condition, and the prompt information is used to prompt the image acquisition device to pass the Enter the second template image of the template object.
  • the electronic device provided in this embodiment of the present application can be used to execute the image matching method described in any one of the foregoing embodiments.
  • a computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored on or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g.
  • coaxial cable, optical fiber, digital subscriber line) or wireless means to another website site, computer, server or data center.
  • a computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media.
  • Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk), among others.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Collating Specific Patterns (AREA)

Abstract

An image matching method and a related device. The method comprises: determining, according to morphological feature information of an object to be detected, attribute information of an image to be recognized used for recognizing said object; screening template images according to the attribute information of the image to be recognized, attribute information of the screened template images and the attribute information of the image to be recognized meeting an attribute correlation condition; and querying, in the screened template images, an image matched with the image to be recognized. The method can improve efficiency of image recognition.

Description

一种应用于指纹识别的图像匹配方法及相关装置An image matching method and related device applied to fingerprint recognition
本申请要求于2020年07月31日提交中国专利局、申请号为202010762013.8、申请名称为“一种应用于指纹识别的图像匹配方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on July 31, 2020 with the application number 202010762013.8 and the application name "An Image Matching Method and Related Device Applied in Fingerprint Recognition", the entire contents of which are approved by Reference is incorporated in this application.
技术领域technical field
本申请涉及图像识别技术领域,尤其涉及一种应用于指纹识别的图像匹配方法及相关装置。The present application relates to the technical field of image recognition, and in particular, to an image matching method and related device applied to fingerprint recognition.
背景技术Background technique
随着计算机技术的不断发展,图像识别技术已广泛应用于人们生活的各个场景。例如,在身份识别技术领域、指纹识别技术领域,均采用了基于图像匹配的识别技术。With the continuous development of computer technology, image recognition technology has been widely used in various scenes of people's lives. For example, in the field of identity recognition technology and fingerprint recognition technology, recognition technology based on image matching is used.
图像匹配可以包括模板图像采集阶段和图像匹配阶段,在进行图像匹配之前,预先采集一些模板图像,在采集待识别图像后,在预先采集的模板图像中查询是否存在与待识别图像相匹配的图像,该相匹配的图像可以是与待识别图像相同或者相似度较高的图像。在图像匹配成功时,将相匹配的图像对应的对象信息作为图像识别的结果。Image matching can include a template image acquisition stage and an image matching stage. Before image matching, some template images are pre-collected, and after the images to be recognized are collected, the pre-collected template images are queried whether there is an image that matches the image to be recognized. , the matched image may be the same as the to-be-recognized image or an image with a higher similarity. When the images are successfully matched, the object information corresponding to the matched images is used as the result of image recognition.
在预先采集的模板图像数量较大时,查询相匹配的图像的效率较低。When the number of pre-collected template images is large, the efficiency of querying matching images is low.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种应用于指纹识别的图像匹配方法及相关装置,能够提高图像匹配的效率。The present application provides an image matching method and related device applied to fingerprint identification, which can improve the efficiency of image matching.
第一方面,本申请实施例提供一种应用于指纹识别的图像匹配方法,所述方法包括:In a first aspect, an embodiment of the present application provides an image matching method applied to fingerprint recognition, the method comprising:
根据待检测对象的形态特征信息,确定待识别图像的属性信息,其中,所述待识别图像用于识别所述待检测对象;According to the morphological feature information of the object to be detected, the attribute information of the image to be recognized is determined, wherein the image to be recognized is used to recognize the object to be detected;
根据所述待识别图像的属性信息,对至少一个模板图像进行筛选;筛选后的模板图像的属性信息与所述待识别图像的属性信息之间满足属性相关性条件;Screening at least one template image according to the attribute information of the to-be-recognized image; the attribute information of the filtered template image and the attribute information of the to-be-recognized image satisfy the attribute correlation condition;
在筛选后的模板图像中,查询与所述待识别图像相匹配的图像。In the filtered template image, the image matching the to-be-recognized image is queried.
其中,形态特征信息可以包括待检测对象的静态和动态的形态特征信息。The morphological feature information may include static and dynamic morphological feature information of the object to be detected.
在一种可选的实施方式中,所述待检测对象的形态特征信息可以包括以下信息中至少一种:所述待检测对象的轮廓信息、位置信息、运动学信息;In an optional implementation manner, the morphological feature information of the object to be detected may include at least one of the following information: contour information, position information, and kinematic information of the object to be detected;
所述待识别图像的属性信息包括以下信息中至少一种:所述待检测对象的对象类型,所述待检测对象的习惯姿态信息,以及,所述待识别图像与所述待检测对象的轮廓信息之间的全局位置信息。The attribute information of the to-be-recognized image includes at least one of the following information: the object type of the to-be-detected object, the habitual posture information of the to-be-detected object, and the outline of the to-be-recognized image and the to-be-detected object Global location information between messages.
在一种可选的实施方式中,在所述根据所述待检测对象的形态特征信息,确定所述待识别图像的属性信息之前,包括:In an optional implementation manner, before determining the attribute information of the to-be-recognized image according to the morphological feature information of the to-be-detected object, the method includes:
获取所述待识别图像;obtaining the to-be-recognized image;
获取所述待检测对象的触控信号;acquiring the touch signal of the object to be detected;
根据所述待检测对象的触控信号,确定所述待检测对象的形态特征信息;According to the touch signal of the object to be detected, determine the morphological feature information of the object to be detected;
其中,获取所述待识别图像的时刻与获取所述待检测对象的触控信号的时刻之间的时间差小于时间偏差阈值。Wherein, the time difference between the time when the image to be recognized is obtained and the time when the touch signal of the object to be detected is obtained is less than a time deviation threshold.
在一种可选的实施方式中,所述待检测对象的触控信号为通过触控装置采集的;In an optional implementation manner, the touch signal of the object to be detected is collected by a touch device;
在所述根据所述待检测对象的触控信息,确定所述待检测对象的形态特征信息之前,还包括:通过姿态传感器获取所述触控装置的三维位置信息;Before determining the morphological feature information of the to-be-detected object according to the touch-control information of the to-be-detected object, the method further includes: acquiring three-dimensional position information of the touch-control device through a gesture sensor;
所述根据待检测对象的形态特征信息,确定待识别图像的属性信息,包括:根据所述待检测对象的形态特征信息和所述触控装置的三维位置信息,确定所述待识别图像的属性信息。The determining the attribute information of the image to be recognized according to the morphological feature information of the object to be detected includes: determining the attribute information of the image to be recognized according to the morphological feature information of the object to be detected and the three-dimensional position information of the touch control device information.
在一种可选的实施方式中,所述待检测对象为待识别指纹部;所述待识别图像为通过指纹传感器采集的所述待识别指纹部的指纹图像。In an optional implementation manner, the object to be detected is a fingerprint part to be recognized; the image to be recognized is a fingerprint image of the fingerprint part to be recognized collected by a fingerprint sensor.
在一种可选的实施方式中,所述待检测对象的对象类型包括以下至少一种:左右手信息,手指类型。In an optional implementation manner, the object type of the object to be detected includes at least one of the following: left and right hand information, and finger type.
在一种可选的实施方式中,所述待识别图像与所述待检测对象的轮廓信息之间的全局位置信息包括以下至少一种:位于轮廓中线的左侧区域,位于轮廓中线的右侧区域,以轮廓信息为参照系的区域位置信息。In an optional implementation manner, the global position information between the to-be-identified image and the contour information of the to-be-detected object includes at least one of the following: a region located on the left side of the contour centerline, and a region located on the right side of the contour centerline Region, the region position information with the contour information as the reference system.
在一种可选的实施方式中,所述待检测对象的习惯姿态信息,包括以下至少一种:所述待检测对象的全局方向信息,所述待检测对象的速度,所述待识别图像中所述待检测对象的移动方向,所述待识别图像中所述待检测对象的移动轨迹;In an optional implementation manner, the habitual posture information of the object to be detected includes at least one of the following: global direction information of the object to be detected, the speed of the object to be detected, and the information in the image to be recognized. the moving direction of the object to be detected, the movement track of the object to be detected in the image to be recognized;
和/或,and / or,
所述待识别图像与所述待检测对象的轮廓信息之间的全局位置信息,包括:在所述待识别图像为所述待检测对象的局部图像时,所述待识别图像在所述待检测对象的轮廓信息中对应的区域位置标识。The global position information between the to-be-recognized image and the outline information of the to-be-detected object includes: when the to-be-recognized image is a partial image of the to-be-detected object, the to-be-recognized image is located in the to-be-detected image The corresponding area location identifier in the outline information of the object.
在一种可选的实施方式中,所述属性相关性条件,包括以下至少一种:In an optional implementation manner, the attribute correlation condition includes at least one of the following:
在所述待识别图像的属性信息包括所述待识别图像对应的对象类型时,筛选后的模板图像对应的对象类型与所述待识别图像对应的对象类型相同;When the attribute information of the to-be-recognized image includes the object type corresponding to the to-be-recognized image, the object type corresponding to the filtered template image is the same as the object type corresponding to the to-be-recognized image;
在所述待识别图像的属性信息包括所述待识别图像对应的姿态信息时,筛选后的模板图像对应的习惯姿态信息与所述待识别图像对应的习惯姿态信息相同;When the attribute information of the to-be-recognized image includes gesture information corresponding to the to-be-recognized image, the habitual gesture information corresponding to the filtered template image is the same as the habitual gesture information corresponding to the to-be-recognized image;
在所述待识别图像的属性信息包括所述待识别图像对应的全局位置信息时,筛选后的模板图像对应的全局位置信息与所述待识别图像对应的全局位置信息满足位置临近条件;When the attribute information of the to-be-recognized image includes the global location information corresponding to the to-be-recognized image, the global location information corresponding to the filtered template image and the global location information corresponding to the to-be-recognized image satisfy the location proximity condition;
其中,所述位置临近条件包括:所述筛选后的模板图像对应的全局位置信息所表示的区域包含所述待识别图像对应的全局位置信息,或者,所述筛选后的模板图像对应的全局位置信息所表示的区域与所述待识别图像对应的全局位置信息存在交集,或者,所述筛选后的模板图像对应的全局位置信息所表示的区域与所述待识别图像对应的全局位置信息所表示的区域之间的距离小于邻近区域距离阈值。The location proximity condition includes: the area indicated by the global location information corresponding to the filtered template image contains the global location information corresponding to the to-be-recognized image, or the global location corresponding to the filtered template image There is an intersection between the area represented by the information and the global location information corresponding to the image to be recognized, or the area represented by the global location information corresponding to the filtered template image and the global location information corresponding to the image to be recognized. The distance between the regions is less than the adjacent region distance threshold.
在一种可选的实施方式中,所述待识别图像的属性信息的数量为至少两个;In an optional implementation manner, the number of attribute information of the image to be recognized is at least two;
所述根据所述待识别图像的属性信息,对至少一个模板图像进行筛选,包括:根据所述待识别图像的至少两个属性信息以及各个属性信息的权重,对所述至少一个模板图像进行筛选。The screening of at least one template image according to the attribute information of the image to be recognized includes: screening the at least one template image according to at least two attribute information of the to-be-recognized image and the weight of each attribute information .
在一种可选的实施方式中,在筛选后的模板图像的数量为0,或者,在筛选后的模板图像中,未查询到与所述待识别图像相匹配的目标模板图像时,所述方法还包括:In an optional implementation manner, when the number of filtered template images is 0, or, in the filtered template images, no target template image matching the to-be-recognized image is queried, the Methods also include:
在所述至少一个模板图像中除所述筛选后的模板图像中的其他模板图像中,查询与所述待识别图像相匹配的目标模板图像。In the at least one template image except for the other template images in the filtered template image, query the target template image that matches the to-be-recognized image.
在一种可选的实施方式中,在筛选后的模板图像的数量为0,或者,在筛选后的模板图像中,未查询到与所述待识别图像相匹配的目标模板图像时,所述方法还包括:In an optional implementation manner, when the number of filtered template images is 0, or, in the filtered template images, no target template image matching the to-be-recognized image is queried, the Methods also include:
根据所述至少一个模板图像对应的历史匹配成功率排序,在所述至少一个模板图像中,查询与所述待识别图像相匹配的图像。According to the ranking of the historical matching success rate corresponding to the at least one template image, in the at least one template image, the image matching the to-be-recognized image is queried.
在一种可选的实施方式中,所述方法还包括:In an optional embodiment, the method further includes:
在查询到与所述待识别图像相匹配的目标模板图像时,获取所述目标模板图像对应的模板实体标识和/或使用权限;When the target template image matching the to-be-recognized image is queried, obtain the template entity identifier and/or use authority corresponding to the target template image;
在所述至少一个模板图像中未查询到与所述待识别图像相匹配的目标模板图像时,确定所述待匹配图像对应的待检测对象不具有使用权限。When no target template image matching the to-be-recognized image is found in the at least one template image, it is determined that the to-be-detected object corresponding to the to-be-matched image does not have the right to use.
在一种可选的实施方式中,在所述根据所述待识别图像的属性信息,对至少一个模板图像进行筛选之前,包括:In an optional implementation manner, before the at least one template image is screened according to the attribute information of the to-be-recognized image, the method includes:
获取所述至少一个模板图像以及各个模板图像对应的模板对象的形态特征信息;各个模板图像与各个模板对象一一对应;obtaining the morphological feature information of the at least one template image and the template object corresponding to each template image; each template image is in one-to-one correspondence with each template object;
根据各个模板图像对应的模板对象的形态特征信息,确定各个模板图像的属性信息。The attribute information of each template image is determined according to the morphological feature information of the template object corresponding to each template image.
在一种可选的实施方式中,所述待检测对象为待识别指纹部;所述待检测对象的形态特征信息为所述待识别指纹部的轮廓信息;所述待识别图像为所述待识别指纹部的局部指纹图像;In an optional implementation manner, the object to be detected is the fingerprint part to be recognized; the morphological feature information of the object to be detected is the outline information of the fingerprint part to be recognized; the image to be recognized is the fingerprint part to be recognized. Identify the partial fingerprint image of the fingerprint part;
所述根据待检测对象的形态特征信息,确定待识别图像的属性信息,包括:根据所述所述待识别指纹部的轮廓信息,确定所述局部指纹图像在所述待识别指纹部的轮廓信息中的区域位置标识;将所述区域位置标识作为所述局部指纹图像的属性信息。The determining the attribute information of the to-be-recognized image according to the morphological feature information of the to-be-detected object includes: determining, according to the outline information of the to-be-recognized fingerprint part, the outline information of the partial fingerprint image in the to-be-recognized fingerprint part The region location identifier in ; the region location identifier is used as the attribute information of the local fingerprint image.
在一种可选的实施方式中,所述获取所述至少一个模板图像以及各个模板图像对应的模板对象的形态特征信息,包括:获取第一模板对象的P-1个第一模板图像,以及,所述P-1个第一模板图像对应的所述第一模板对象的轮廓信息;In an optional implementation manner, the acquiring the at least one template image and the morphological feature information of the template object corresponding to each template image includes: acquiring P-1 first template images of the first template object, and , the outline information of the first template object corresponding to the P-1 first template images;
所述根据各个模板图像对应的模板对象的形态特征信息,确定各个模板图像的属性信息,包括:分别根据各个第一模板图像对应的所述第一模板对象的轮廓信息,确定各个第一模板图像在对应的轮廓信息中的区域位置标识;The determining the attribute information of each template image according to the morphological feature information of the template object corresponding to each template image includes: determining each first template image according to the outline information of the first template object corresponding to each first template image respectively. The region location identifier in the corresponding contour information;
所述方法还包括:判断所述P-1个第一模板图像对应的区域位置标识的集合是否满足覆盖条件;若未满足,获取所述第一模板对象的第P个第一模板图像;The method further includes: judging whether the set of area location identifiers corresponding to the P-1 first template images satisfies the coverage condition; if not, acquiring the Pth first template image of the first template object;
其中,所述覆盖条件包括:覆盖所述第一模板对象的至少一个局部区域,或者,覆盖所述第一模板对象的边缘区域的边缘覆盖条件,或者,满足覆盖所述第一模板对象的轮廓信息的全局覆盖条件;P为大于或者等于2的整数。Wherein, the covering condition includes: covering at least one local area of the first template object, or covering the edge covering condition of the edge area of the first template object, or satisfying the outline of covering the first template object Global coverage condition of information; P is an integer greater than or equal to 2.
第二方面,本申请还提供一种应用于指纹识别的图像匹配方法,所述方法包括:In a second aspect, the present application also provides an image matching method applied to fingerprint identification, the method comprising:
获取模板对象的至少一个第一模板图像;obtaining at least one first template image of the template object;
获取所述模板对象的轮廓信息,其中,所述模板对象的轮廓信息用于确定所述至 少一个第一模板图像在所述模板对象的轮廓信息中的区域位置标识;Obtain the outline information of the template object, wherein, the outline information of the template object is used to determine the region position identifier of the at least one first template image in the outline information of the template object;
在所述至少一个第一模板图像对应的区域位置标识的集合未满足覆盖条件时,采集所述模板对象的第二模板图像;When the set of area location identifiers corresponding to the at least one first template image does not satisfy the coverage condition, collecting a second template image of the template object;
其中,所述至少一个第一模板图像和所述第二模板图像用于查询与待识别图像相匹配的图像。Wherein, the at least one first template image and the second template image are used to query the image matching the image to be recognized.
在一种可选的实施方式中,所述覆盖条件包括以下至少一种:In an optional embodiment, the coverage conditions include at least one of the following:
覆盖所述模板对象的至少一个局部区域;covering at least one local area of the template object;
覆盖所述模板对象的边缘区域超过预设覆盖比例;Covering the edge area of the template object exceeds a preset coverage ratio;
覆盖所述模板对象的轮廓信息超过预设覆盖比例。The outline information covering the template object exceeds a preset coverage ratio.
在本申请实施例中,覆盖条件还可以包括模板图像的预设数量阈值,例如,覆盖条件可以包括覆盖所述模板对象的边缘区域超过预设覆盖比例且模板图像的数量大于预设数量阈值,或者,覆盖条件可以包括覆盖所述模板对象的全局区域超过预设覆盖比例且模板图像的数量大于预设数量阈值。In this embodiment of the present application, the coverage condition may further include a preset number threshold of template images. For example, the coverage condition may include that the edge area of the template object covered exceeds a preset coverage ratio and the number of template images is greater than a preset number threshold, Alternatively, the coverage condition may include covering the global area of the template object exceeding a preset coverage ratio and the number of template images is greater than a preset number threshold.
在一种可选的实施方式中,所述获取所述模板对象的轮廓信息,包括:通过电子设备的触摸屏获取所述模板对象的轮廓信息;In an optional implementation manner, the acquiring the outline information of the template object includes: acquiring the outline information of the template object through a touch screen of an electronic device;
所述获取模板对象的至少一个第一模板图像,包括:通过指纹传感器采集所述至少一个第一模板图像;The acquiring at least one first template image of the template object includes: acquiring the at least one first template image through a fingerprint sensor;
所述指纹传感器位于所述触摸屏靠近所述电子设备的本体的一侧。The fingerprint sensor is located on a side of the touch screen close to the body of the electronic device.
在一种可选的实施方式中,在所述采集所述模板对象的第二模板图像之前,所述方法还包括:In an optional implementation manner, before the acquisition of the second template image of the template object, the method further includes:
根据所述至少一个第一模板图像对应的区域位置标识的集合和所述覆盖条件,确定补采区;determining a supplementary mining area according to the set of area location identifiers corresponding to the at least one first template image and the coverage condition;
输出提示信息,所述提示信息用于提示录入包含所述补采区的所述模板对象的第二模板图像。Prompt information is output, where the prompt information is used to prompt the input of a second template image of the template object including the supplementary acquisition area.
第三方面,本申请提供一种应用于指纹识别的图像匹配装置,包括:In a third aspect, the present application provides an image matching device applied to fingerprint identification, comprising:
确定模块,用于根据待检测对象的形态特征信息,确定待识别图像的属性信息,其中,所述待识别图像用于识别所述待检测对象;a determination module, configured to determine attribute information of an image to be recognized according to the morphological feature information of the object to be detected, wherein the image to be recognized is used to identify the object to be detected;
匹配模块,用于根据待识别图像的属性信息,对至少一个模板图像进行筛选,其中,筛选后的模板图像的属性信息与所述待识别图像的属性信息之间满足属性相关性条件;以及,在筛选后的模板图像中,查询与所述待识别图像相匹配的图像。a matching module, configured to screen at least one template image according to the attribute information of the to-be-recognized image, wherein the attribute information of the filtered template image and the attribute information of the to-be-recognized image satisfy an attribute correlation condition; and, In the filtered template image, the image matching the to-be-recognized image is queried.
在一种可选的实施方式中,所述装置还包括:In an optional embodiment, the device further includes:
获取模块,用于获取所述待识别图像,以及,获取所述待检测对象的触控信号;以及,根据所述待检测对象的触控信号,确定所述待检测对象的形态特征信息;其中,获取所述待识别图像的时刻与获取所述待检测对象的触控信号的时刻之间的时间差小于时间偏差阈值。an acquisition module, configured to acquire the image to be recognized and the touch signal of the object to be detected; and, according to the touch signal of the object to be detected, determine the morphological feature information of the object to be detected; wherein , the time difference between the time when the image to be recognized is obtained and the time when the touch signal of the object to be detected is obtained is less than a time deviation threshold.
在一种可选的实施方式中,所述匹配模块,具体用于根据所述待识别图像的至少两种属性信息以及各个属性信息的权重,对所述至少一个模板图像进行筛选。In an optional implementation manner, the matching module is specifically configured to filter the at least one template image according to at least two types of attribute information of the to-be-recognized image and the weight of each attribute information.
在一种可选的实施方式中,所述匹配模块,还用于在筛选后的模板图像的数量为0,或者,在筛选后的模板图像中,未查询到与所述待识别图像相匹配的目标模板图 像时,在所述至少一个模板图像中除所述筛选后的模板图像中的其他模板图像中,查询与所述待识别图像相匹配的图像。In an optional implementation manner, the matching module is further configured to: when the number of the filtered template images is 0, or, in the filtered template images, no match with the to-be-recognized image is queried. When the target template image is selected, in the at least one template image other than the filtered template image, the image matching the to-be-identified image is queried.
在一种可选的实施方式中,所述匹配模块,还用于在筛选后的模板图像的数量为0,或者,在筛选后的模板图像中,未查询到与所述待识别图像相匹配的目标模板图像时,根据所述至少一个模板图像对应的历史匹配成功率排序,在所述至少一个模板图像中,查询与所述待识别图像相匹配的图像。In an optional implementation manner, the matching module is further configured to: when the number of the filtered template images is 0, or, in the filtered template images, no match with the to-be-recognized image is queried. When the target template image is the target template image, sort according to the historical matching success rate corresponding to the at least one template image, and query the image matching the to-be-recognized image in the at least one template image.
在一种可选的实施方式中,所述匹配模块,还用于在查询到与所述待识别图像相匹配的目标模板图像时,获取所述目标模板图像对应的模板实体标识和/或使用权限;以及,在未查询到与所述待识别图像相匹配的目标模板图像时,确定所述待匹配图像对应的待检测对象不具有使用权限。In an optional implementation manner, the matching module is further configured to acquire the template entity identifier corresponding to the target template image when a target template image matching the to-be-identified image is queried and/or use and, when the target template image matching the to-be-recognized image is not queried, it is determined that the to-be-detected object corresponding to the to-be-matched image does not have use rights.
在一种可选的实施方式中,所述获取模块,还用于在所述根据所述待识别图像的属性信息,对至少一个模板图像进行筛选之前,获取所述至少一个模板图像以及各个模板图像对应的模板对象的形态特征信息;各个模板图像与各个模板对象一一对应;In an optional implementation manner, the acquiring module is further configured to acquire the at least one template image and each template before the at least one template image is screened according to the attribute information of the to-be-recognized image Morphological feature information of the template object corresponding to the image; each template image corresponds to each template object one-to-one;
所述确定模块,还用于根据各个模板图像对应的模板对象的形态特征信息,确定各个模板图像的属性信息。The determining module is further configured to determine attribute information of each template image according to the morphological feature information of the template object corresponding to each template image.
在一种可选的实施方式中,所述获取模块,具体用于获取第一模板对象的P-1个第一模板图像,以及,所述P-1个第一模板图像对应的所述第一模板对象的轮廓信息;In an optional implementation manner, the acquiring module is specifically configured to acquire P-1 first template images of the first template object, and the first template images corresponding to the P-1 first template images The outline information of a template object;
所述确定模块,具体用于分别根据各个第一模板图像对应的所述第一模板对象的轮廓信息,确定各个第一模板图像在对应的轮廓信息中的区域位置标识;The determining module is specifically configured to determine the region position identifier of each first template image in the corresponding contour information according to the contour information of the first template object corresponding to each first template image;
所述确定模块,还用于判断所述P-1个第一模板图像对应的区域位置标识的集合是否满足覆盖条件;若未满足,指示所述获取模块获取所述第一模板对象的第P个第一模板图像;其中,所述覆盖条件包括:覆盖所述第一模板对象的边缘区域的边缘覆盖条件,或者,满足覆盖所述第一模板对象的轮廓信息的全局覆盖条件;P为大于或者等于2的整数。The determining module is further configured to determine whether the set of region location identifiers corresponding to the P-1 first template images satisfies the coverage condition; if not, instructing the obtaining module to obtain the P-th image of the first template object. a first template image; wherein, the coverage condition includes: an edge coverage condition covering the edge region of the first template object, or, satisfying a global coverage condition covering the outline information of the first template object; P is greater than or an integer equal to 2.
第四方面,本申请提供一种应用于指纹识别的图像匹配装置,包括:In a fourth aspect, the present application provides an image matching device applied to fingerprint identification, comprising:
获取模块,用于获取模板对象的至少一个第一模板图像;以及,获取所述模板对象的轮廓信息,其中,所述模板对象的轮廓信息用于确定所述至少一个第一模板图像在所述模板对象的轮廓信息中的区域位置标识;an acquiring module, configured to acquire at least one first template image of a template object; and, acquiring contour information of the template object, wherein the contour information of the template object is used to determine that the at least one first template image is in the The region location identifier in the outline information of the template object;
确定模块,用于确定所述至少一个第一模板图像对应的区域位置标识的集合是否满足覆盖条件,在未满足覆盖条件时,指示所述获取模块获取所述模板对象的第二模板图像;其中,所述至少一个第一模板图像和所述第二模板图像用于查询与待识别图像相匹配的图像。a determination module, configured to determine whether the set of area location identifiers corresponding to the at least one first template image satisfies the coverage condition, and instruct the acquisition module to acquire the second template image of the template object when the coverage condition is not met; wherein , the at least one first template image and the second template image are used to query the image matching the image to be recognized.
在一种可选的实施方式中,所述覆盖条件包括以下至少一种:In an optional embodiment, the coverage conditions include at least one of the following:
覆盖所述模板对象的至少一个局部区域;covering at least one local area of the template object;
覆盖所述模板对象的边缘区域超过预设覆盖比例;Covering the edge area of the template object exceeds a preset coverage ratio;
覆盖所述模板对象的轮廓信息超过预设覆盖比例。The outline information covering the template object exceeds a preset coverage ratio.
在一种可选的实施方式中,所述确定模块,还用于根据所述至少一个第一模板图像对应的区域位置标识的集合和所述覆盖条件,确定补采区;In an optional implementation manner, the determining module is further configured to determine the supplementary mining area according to the set of area location identifiers corresponding to the at least one first template image and the coverage condition;
所述装置还包括:输出模块,用于输出提示信息,所述提示信息用于提示录入包 含所述补采区的所述模板对象的第二模板图像。The apparatus further includes: an output module for outputting prompt information, the prompt information being used for prompting the input of a second template image of the template object including the supplementary mining area.
第五方面,本申请提供一种电子设备,包括:In a fifth aspect, the application provides an electronic device, comprising:
图像采集装置,用于采集待识别图像,其中,所述待识别图像用于识别待检测对象;an image acquisition device for acquiring an image to be recognized, wherein the image to be recognized is used to recognize an object to be detected;
形态特征采集装置,用于采集所述待检测对象的形态特征信息;a morphological feature collecting device, used for collecting morphological feature information of the object to be detected;
处理器,用于根据所述待检测对象的形态特征信息,确定所述待识别图像的属性信息;以及,根据待识别图像的属性信息,对至少一个模板图像进行筛选,其中,筛选后的模板图像的属性信息与所述待识别图像的属性信息之间满足属性相关性条件;以及,在筛选后的模板图像中,查询与所述待识别图像相匹配的图像。a processor, configured to determine attribute information of the to-be-recognized image according to the morphological feature information of the to-be-detected object; and, according to the attribute information of the to-be-recognized image, screen at least one template image, wherein the filtered template An attribute correlation condition is satisfied between the attribute information of the image and the attribute information of the to-be-recognized image; and, in the filtered template image, an image matching the to-be-recognized image is queried.
在一种可选的实施方式中,所述形态特征采集装置为触控装置。In an optional implementation manner, the morphological feature collecting device is a touch device.
在一种可选的实施方式中,所述形态特征采集装置为触摸屏,所述图像采集装置为指纹传感器,所述指纹传感器设置于所述触摸屏靠近所述电子设备的本体的一侧。In an optional implementation manner, the morphological feature collecting device is a touch screen, the image collecting device is a fingerprint sensor, and the fingerprint sensor is disposed on a side of the touch screen close to the body of the electronic device.
第六方面,本申请提供一种电子设备,包括:In a sixth aspect, the application provides an electronic device, comprising:
图像采集装置,用于采集模板对象的至少一个第一模板图像;以及,在所述至少一个第一模板图像对应的区域位置标识的集合未满足覆盖条件时,采集所述模板对象的第二模板图像;其中,所述至少一个第一模板图像和所述第二模板图像用于查询与待识别图像相匹配的图像;an image acquisition device, configured to acquire at least one first template image of a template object; and, when the set of region location identifiers corresponding to the at least one first template image does not satisfy the coverage condition, acquire a second template of the template object an image; wherein, the at least one first template image and the second template image are used to query images that match the image to be recognized;
触控装置,用于获取所述模板对象的轮廓信息,其中,所述模板对象的轮廓信息用于确定所述至少一个第一模板图像在所述模板对象的轮廓信息中的区域位置标识。The touch device is configured to acquire contour information of the template object, wherein the contour information of the template object is used to determine a region position identifier of the at least one first template image in the contour information of the template object.
在一种可选的实施方式中,所述图像采集装置为指纹传感器;所述触控装置为电子设备中的触摸屏;所述指纹传感器设置于所述触摸屏靠近所述电子设备的本体的一侧。In an optional implementation manner, the image acquisition device is a fingerprint sensor; the touch control device is a touch screen in an electronic device; the fingerprint sensor is disposed on a side of the touch screen close to the body of the electronic device .
在一种可选的实施方式中,所述触控装置,还用于在所述至少一个第一模板图像对应的区域位置标识的集合未满足覆盖条件时,输出提示信息,所述提示信息用于提示通过所述图像采集装置输入所述模板对象的第二模板图像。In an optional implementation manner, the touch control device is further configured to output prompt information when the set of area location identifiers corresponding to the at least one first template image does not satisfy the coverage condition, and the prompt information uses upon prompting to input a second template image of the template object through the image acquisition device.
在又一方面,本申请提供一种电子设备,包括:处理器和存储器,所述存储器用于存储指令,所述处理器用于执行所述指令以使得所述电子设备执行第一方面至第二方面中任一项所述方法。In yet another aspect, the present application provides an electronic device, comprising: a processor and a memory, the memory for storing instructions, the processor for executing the instructions to cause the electronic device to perform the first to second aspects The method of any of the aspects.
在又一方面,本申请提供一种计算机存储介质,包括计算机程序,所述计算机程序在计算机上被执行时,使得所述计算机执行第一方面至第二方面中任一项所述的方法。In yet another aspect, the present application provides a computer storage medium, comprising a computer program, which, when executed on a computer, causes the computer to perform the method of any one of the first to second aspects.
附图说明Description of drawings
为了更清楚地说明本申请或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the present application or the prior art more clearly, the following briefly introduces the accompanying drawings that are used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are the For some embodiments of the application, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1A为本申请实施例提供的图像匹配方法的处理过程的示意图;1A is a schematic diagram of a processing process of an image matching method provided by an embodiment of the present application;
图1B为本申请实施例提供的图像匹配方法的应用场景的示意图一;1B is a schematic diagram 1 of an application scenario of an image matching method provided by an embodiment of the present application;
图1C为本申请实施例提供的图像匹配方法的应用场景的示意图二;1C is a second schematic diagram of an application scenario of the image matching method provided by the embodiment of the present application;
图1D为本申请实施例提供的图像匹配方法中待识别图像在待检测对象的轮廓信息中的全局位置信息的示意图;1D is a schematic diagram of the global position information of the to-be-recognized image in the outline information of the to-be-detected object in the image matching method provided by the embodiment of the application;
图2A为本申请实施例提供的图像匹配方法的录入阶段的流程示意图;2A is a schematic flowchart of an input stage of an image matching method provided by an embodiment of the present application;
图2B为本申请实施例中根据触控信号确定形态特征信息的示意图;2B is a schematic diagram of determining morphological feature information according to a touch signal in an embodiment of the present application;
图2C为本申请实施例中推断左右手类型的示意图;2C is a schematic diagram of inferring left and right hand types in an embodiment of the present application;
图2D为本申请实施例中推断手指类型的示意图;2D is a schematic diagram of inferring a finger type in an embodiment of the present application;
图2E为本申请实施例中推断全局位置信息和全局方向信息的示意图;2E is a schematic diagram of inferring global position information and global direction information in an embodiment of the present application;
图3A为本申请实施例提供的图像匹配方法的识别阶段的流程示意图;3A is a schematic flowchart of a recognition stage of an image matching method provided by an embodiment of the present application;
图3B为本申请实施例中推断大致区域的示意图;FIG. 3B is a schematic diagram of an approximate area inferred in an embodiment of the present application;
图3C为本申请实施例中模板匹配的示意图;3C is a schematic diagram of template matching in an embodiment of the present application;
图4为本申请实施例提供的图像匹配方法的流程示意图二;4 is a second schematic flowchart of an image matching method provided by an embodiment of the present application;
图5A为本申请实施例提供的图像匹配方法中边缘区域的模板图像的位置示意图;5A is a schematic diagram of the position of a template image of an edge region in an image matching method provided by an embodiment of the present application;
图5B为本申请实施例提供的图像匹配方法的应用场景的示意图三;5B is a schematic diagram 3 of an application scenario of the image matching method provided by the embodiment of the present application;
图6为本申请实施例提供的图像匹配方法中指纹录入阶段的处理流程的示意图。FIG. 6 is a schematic diagram of a processing flow of a fingerprint entry stage in an image matching method provided by an embodiment of the present application.
图7为本申请实施例提供的图像匹配方法中指纹识别阶段的处理流程的示意图。FIG. 7 is a schematic diagram of a processing flow of a fingerprint identification stage in an image matching method provided by an embodiment of the present application.
图8为本申请实施例提供的图像匹配装置的结构示意图一;FIG. 8 is a schematic structural diagram 1 of an image matching apparatus provided by an embodiment of the present application;
图9为本申请实施例提供的图像匹配装置的结构示意图二;FIG. 9 is a second schematic structural diagram of an image matching apparatus provided by an embodiment of the present application;
图10为本申请实施例提供的电子设备的结构示意图。FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
本的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The terms used in the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
本申请实施例提供的图像匹配方法可应用于各种对象识别场景,如指纹识别场景、人脸识别场景等用户身份识别场景。示例性地,待识别图像可以为指纹图像。The image matching method provided in the embodiment of the present application can be applied to various object recognition scenarios, such as a fingerprint recognition scenario, a face recognition scenario, and other user identity recognition scenarios. Exemplarily, the image to be recognized may be a fingerprint image.
在本申请实施例中,图像匹配方法可以涉及:录入阶段和识别阶段。其中,录入阶段的处理包括:在图像数据库中录入模板图像,即建立图像数据库。识别阶段的处理包括:对待检测对象采集待识别图像,在图像数据库的模板图像中,查询与待识别图像相匹配的目标模板图像。在本申请实施例中,图像匹配的结果可以用于确定采集待识别图像的待检测对象对应的实体标识或使用权限等一种或多种对象信息。In this embodiment of the present application, the image matching method may involve: an input stage and a recognition stage. The processing in the entry stage includes: entering the template image in the image database, that is, establishing the image database. The processing in the identification stage includes: collecting the image to be identified from the object to be detected, and querying the template image in the image database for the target template image that matches the image to be identified. In this embodiment of the present application, the image matching result may be used to determine one or more types of object information, such as entity identification or usage authority corresponding to the object to be detected from which the image to be recognized is collected.
图1A为本申请实施例提供的图像匹配方法的处理过程的示意图。FIG. 1A is a schematic diagram of a processing process of an image matching method provided by an embodiment of the present application.
如图1A所示,在本申请实施例提供的图像匹配方法中,在录入阶段,在对模板对象采集模板图像时,还可以采集模板对象的形态特征信息,之后,根据模板对象的形态特征信息确定模板图像对应的一种或多种属性信息,然后,将模板图像与对应的属性信息存入图像数据库中。在识别阶段,在对待检测对象采集待识别图像时,还可以采集待检测对象的形态特征信息,之后,根据待检测对象的形态特征信息确定待识别图像对应的一种或多种属性信息,然后,可以利用待识别图像的属性信息对图像数据库中的众多模板图像进行筛选,在筛选后的模板图像中查询与待识别图像相匹配的模 板图像,能够提高图像匹配的效率。As shown in FIG. 1A , in the image matching method provided by the embodiment of the present application, in the input stage, when the template image is collected for the template object, the morphological feature information of the template object may also be collected, and then, according to the morphological feature information of the template object One or more attribute information corresponding to the template image is determined, and then the template image and the corresponding attribute information are stored in the image database. In the recognition stage, when the image to be recognized is collected from the object to be detected, the morphological feature information of the object to be detected can also be collected, and then one or more attribute information corresponding to the image to be recognized is determined according to the morphological feature information of the object to be detected, and then , the attribute information of the image to be recognized can be used to screen many template images in the image database, and the template image matching the image to be recognized can be queried in the filtered template images, which can improve the efficiency of image matching.
举例来说,模板对象的形态特征信息可以包括用于表示模板对象的形状、大小、位置、方向、速度等状态的至少一种信息,例如,模板对象的轮廓信息、模板对象相对于电子设备的位置信息或者在大地坐标系中的位置信息、运动学信息等。模板图像对应的属性信息可以是根据对应的模板对象的形态特征信息确定的,例如,模板对象的对象类型、模板图像在模板对象的轮廓信息中的全局位置信息、模板对象的当前姿态、移动轨迹等。举例来说,图1D为本申请实施例提供的图像匹配方法中待识别图像在待检测对象的轮廓信息中的全局位置信息的示意图。如图1D所示,待识别的局部指纹图像在对应的待检测的手指的轮廓信息中的位置。在本申请实施例中,将结合实际应用对形态特征信息和属性信息以及根据形态特征信息确定属性信息的处理步骤进行详细说明,此处不再赘述。For example, the morphological feature information of the template object may include at least one kind of information used to represent the shape, size, position, direction, speed, etc. of the template object, for example, the outline information of the template object, the relative information of the template object relative to the electronic device Position information or position information in the geodetic coordinate system, kinematic information, etc. The attribute information corresponding to the template image may be determined according to the morphological feature information of the corresponding template object, for example, the object type of the template object, the global position information of the template image in the outline information of the template object, the current posture of the template object, the movement track Wait. For example, FIG. 1D is a schematic diagram of global position information of the to-be-identified image in the outline information of the to-be-detected object in the image matching method provided by the embodiment of the present application. As shown in FIG. 1D , the position of the partial fingerprint image to be identified in the contour information of the corresponding finger to be detected. In the embodiments of the present application, the morphological feature information and attribute information and the processing steps of determining the attribute information according to the morphological feature information will be described in detail in combination with practical applications, which will not be repeated here.
下面对本申请实施例提供的图像匹配方法的实际应用场景进行示例性说明。The actual application scenarios of the image matching method provided by the embodiments of the present application are exemplarily described below.
在本申请实施例中,图像匹配方法可部署于具有图像采集装置的电子设备。其中,电子设备可以是手机、平板电脑、手持式识别装置、可穿戴设备等具有图像采集装置的终端。图像采集装置可以是摄像装置或者传感器。以指纹识别场景为例,图像采集装置可以为指纹传感器,指纹传感器可用于在录入阶段采集模板图像,以及,在识别阶段采集待识别图像。In this embodiment of the present application, the image matching method may be deployed in an electronic device having an image capturing device. The electronic device may be a terminal with an image acquisition device, such as a mobile phone, a tablet computer, a handheld identification device, a wearable device, or the like. The image capture device may be a camera or a sensor. Taking a fingerprint recognition scenario as an example, the image acquisition device can be a fingerprint sensor, and the fingerprint sensor can be used to collect template images in the input stage, and to collect images to be recognized in the recognition stage.
在本申请实施例中,电子设备上还可以设置触控装置。触控装置可以用于在录入阶段获取模板对象的形态特征信息,以及,在识别阶段获取待检测对象的形态特征信息。In this embodiment of the present application, a touch control device may also be provided on the electronic device. The touch device can be used to acquire the morphological feature information of the template object in the input stage, and obtain the morphological feature information of the object to be detected in the recognition stage.
图1B为本申请实施例提供的图像匹配方法的应用场景的示意图一。如图1B所示,触控装置可以是电子设备上的触摸屏。FIG. 1B is a schematic diagram 1 of an application scenario of the image matching method provided by the embodiment of the present application. As shown in FIG. 1B , the touch control device may be a touch screen on an electronic device.
在一示例中,指纹传感器可以设置在电子设备的触摸屏的下方(如图1B所示)。图1C为本申请实施例提供的图像匹配方法的应用场景的示意图二。以录入阶段为例,模板对象可以是用户手指的指纹部。当用户手指按压在指纹传感器的采集区域(如图1C所示)时,指纹传感器可以透过触摸屏采集指纹图像。在另一示例中,指纹传感器也可以设置在电子设备的表面上未被触摸屏覆盖的其他区域。In one example, the fingerprint sensor may be disposed below the touch screen of the electronic device (as shown in FIG. 1B ). FIG. 1C is a second schematic diagram of an application scenario of the image matching method provided by the embodiment of the present application. Taking the entry stage as an example, the template object may be the fingerprint part of the user's finger. When the user's finger presses on the collection area of the fingerprint sensor (as shown in FIG. 1C ), the fingerprint sensor can collect the fingerprint image through the touch screen. In another example, the fingerprint sensor may also be provided in other areas on the surface of the electronic device that are not covered by the touch screen.
以模板对象和待检测对象为用户手指的指纹部为例,触摸屏可以在当前手指接触触摸屏时,获取接触点的坐标集合,生成触控信号,每帧触控信号可以包括由接触点的坐标集合确定的触控图像。在本申请实施例中,每帧触控信号还可以包括接触点上的接触压力(touch pressure,TP)数值等信息。在本申请实施例中,触摸屏可以在当前手指接触触摸屏期间,生成多帧触控信号。多帧触控信号可以组成一个触控信号序列,触控信号序列可简称为触控序列。Taking the template object and the object to be detected as the fingerprint part of the user's finger as an example, the touch screen can obtain the coordinate set of the contact point when the current finger touches the touch screen, and generate a touch signal, and each frame of the touch signal can include the coordinate set of the contact point. Determined touch image. In this embodiment of the present application, each frame of the touch signal may further include information such as a touch pressure (touch pressure, TP) value on the contact point. In this embodiment of the present application, the touch screen may generate multiple frames of touch signals during the current period when a finger touches the touch screen. The multi-frame touch signals may form a touch signal sequence, and the touch signal sequence may be referred to as a touch sequence for short.
在本申请其他实施例中,触摸屏还可以在检测到当前手指距离触摸屏小于预设的感应距离时,生成触控信号。以感应距离为1厘米为例,在当前手指进入触摸屏上方1厘米的感应空间时,触摸屏可以生成一帧或多帧触控信号,触摸屏可以获取在触摸屏 上与用户手指距离小于感应距离的点的坐标集合,每帧触控信号可以包括由这些点的坐标集合所确定的触控图像以及用户手指与这些点之间的距离等信息。当用户手指持续停留在感应空间时,触摸屏可以产生多帧的触控信号。In other embodiments of the present application, the touch screen may also generate a touch signal when it is detected that the current distance between the finger and the touch screen is less than a preset sensing distance. Taking the sensing distance of 1 cm as an example, when the current finger enters the sensing space 1 cm above the touch screen, the touch screen can generate one or more frames of touch signals. Coordinate set, each frame of touch signal may include touch image determined by the coordinate set of these points and information such as the distance between the user's finger and these points. When the user's finger continues to stay in the sensing space, the touch screen can generate multiple frames of touch signals.
需要说明的是,形态特征信息也可以通过摄像装置或者传感器等其他形态特征采集装置采集。It should be noted that the morphological feature information may also be collected by other morphological feature collecting devices such as a camera or a sensor.
在本申请实施例中,电子设备上还可以设置有姿态传感器(图中未示出),姿态传感器可以用于获取电子设备在大地坐标系中的三维位置信息。示例性地,姿态传感器可以是陀螺仪或者重力加速度计。在实际应用中,可以结合触控装置和姿态传感器采集的数据,来确定模板对象的属性信息。在下面的实施例中将对结合触控装置和姿态传感器采集的数据来确定模板对象的属性信息的处理步骤进行详细说明。In this embodiment of the present application, an attitude sensor (not shown in the figure) may also be provided on the electronic device, and the attitude sensor may be used to acquire three-dimensional position information of the electronic device in the earth coordinate system. Illustratively, the attitude sensor may be a gyroscope or a gravity accelerometer. In practical applications, the data collected by the touch device and the attitude sensor can be combined to determine the attribute information of the template object. The processing steps for determining the attribute information of the template object in combination with the data collected by the touch device and the gesture sensor will be described in detail in the following embodiments.
本申请实施例中涉及的图像数据库可以部署在电子设备上,也可以单独部署。本申请实施例对此不做限制。The image database involved in the embodiments of this application may be deployed on an electronic device, or may be deployed independently. This embodiment of the present application does not limit this.
本申请实施例提供的图像匹配方法中的录入阶段和识别阶段的技术方案也可以采用不同的电子设备实施,任一阶段所采用的电子设备可以包括上述图像采集装置、触控装置、姿态传感器等。下面对本申请实施例提供的图像匹配方法进行示例性说明。The technical solutions of the input stage and the recognition stage in the image matching method provided in the embodiment of the present application may also be implemented by different electronic devices, and the electronic devices used in any stage may include the above-mentioned image acquisition device, touch device, attitude sensor, etc. . The image matching method provided by the embodiments of the present application is exemplarily described below.
实施例一Example 1
本申请实施例提供图像匹配方法的录入阶段的一种可选的实施方式。图2A为本申请实施例提供的图像匹配方法的录入阶段的流程示意图。This embodiment of the present application provides an optional implementation of the input stage of the image matching method. FIG. 2A is a schematic flowchart of an input stage of an image matching method provided by an embodiment of the present application.
如图2A所示,录入阶段的步骤可以包括:As shown in Figure 2A, the steps of the entry phase may include:
S101,获取模板图像。S101, obtain a template image.
在本申请实施例中,可以通过图像采集装置对模板对象采集模板图像。举例来说,模板对象为指纹部时,可以利用指纹传感器对待识别指纹部采集待识别的指纹图像。In this embodiment of the present application, a template image may be collected from a template object by an image collection device. For example, when the template object is a fingerprint part, the fingerprint image to be recognized can be collected by the fingerprint sensor of the fingerprint part to be recognized.
S102,获取模板对象的触控信号。S102: Acquire a touch signal of the template object.
在本申请实施例中,可以通过触控装置采集待检测对象的触控信号。在一示例中,触控装置可以为电子设备上的触摸屏。触控装置与图像采集装置的相对位置可以是预先确定的,可参看图1B所示。In the embodiment of the present application, the touch signal of the object to be detected may be collected by the touch device. In an example, the touch control device may be a touch screen on an electronic device. The relative positions of the touch device and the image capture device may be predetermined, as shown in FIG. 1B .
需要说明的是,步骤S101和步骤S102可以同时执行,即,可以在模板对象按压在触摸屏上时同时采集模板对象的触控信号和模板图像。在实际应用中,可以设置在较短的时间段内完成步骤S101和S102,例如,可以设置获取待识别图像的时刻与获取待检测对象的触控信号的时刻之间的时间差小于时间偏差阈值。It should be noted that step S101 and step S102 may be performed simultaneously, that is, the touch signal of the template object and the template image may be simultaneously collected when the template object is pressed on the touch screen. In practical applications, steps S101 and S102 can be set to be completed in a relatively short period of time. For example, the time difference between the time of acquiring the image to be recognized and the time of acquiring the touch signal of the object to be detected can be set to be less than the time deviation threshold.
在本申请实施例中,在检测到模板对象接触触摸屏后,可以获取模板对象的一帧或者多帧触控信号。图2B为本申请实施例中根据触控信号确定形态特征信息的示意图。以待确定的形态特征信息为手指轮廓信息为例,从手指按压在触摸屏产生触控信号开始,获取一段时间内的一组连续的触控信号作为触控序列,例如,如图2B所示,可以获取20帧的触控信号作为一个触控序列,其中,每一帧触控信号包含由在采集当前帧 触控信号时的接触点的坐标集合所确定的触控图像(如图2B上部所示)。In this embodiment of the present application, after detecting that the template object contacts the touch screen, one frame or multiple frames of touch signals of the template object may be acquired. FIG. 2B is a schematic diagram of determining morphological feature information according to a touch signal in an embodiment of the present application. Taking the morphological feature information to be determined as the finger contour information as an example, starting from the touch signal generated by the finger pressing on the touch screen, a group of continuous touch signals within a period of time are obtained as the touch sequence, for example, as shown in FIG. 2B , 20 frames of touch signals can be acquired as a touch sequence, wherein each frame of touch signals includes a touch image determined by the coordinate set of the contact points when the current frame of touch signals is collected (as shown in the upper part of FIG. 2B ). Show).
S103,根据模板对象的触控信号,确定模板对象的形态特征信息。S103: Determine morphological feature information of the template object according to the touch signal of the template object.
在本申请实施例中,举例来说,可以根据模板对象的一帧或多帧触控信号,确定模板对象的形态特征信息。In the embodiment of the present application, for example, the morphological feature information of the template object may be determined according to one or more frames of touch signals of the template object.
在本申请实施例中,模板对象的形态特征信息可以是模板对象的轮廓信息、位置信息、运动学信息等。需要说明的是,采集模板图像的图像采集装置的位置和采集触控信号的触摸屏的相对位置是确定的,因此,模板图像的形态特征信息可以为以图像采集装置的位置为参照物的轮廓信息、位置信息、运动学信息。其中,轮廓信息可以是模板对象在一平面(如触控装置所在屏幕)内的投影点的集合,或者,三维坐标系中的点集;位置信息可以是模板对象相对于图像采集装置的相对位置,运动学信息可以为模板对象的移动方向、移动速度、移动轨迹等。In this embodiment of the present application, the morphological feature information of the template object may be contour information, position information, kinematic information, and the like of the template object. It should be noted that the position of the image capture device that captures the template image and the relative position of the touch screen that captures the touch signal are determined. Therefore, the morphological feature information of the template image can be the contour information with the position of the image capture device as a reference. , location information, kinematics information. The contour information may be a set of projection points of the template object in a plane (such as the screen where the touch device is located), or a set of points in a three-dimensional coordinate system; the position information may be the relative position of the template object relative to the image acquisition device , and the kinematic information can be the moving direction, moving speed, and moving trajectory of the template object.
以待确定的形态特征信息为手指的轮廓信息为例,可参看图2B所示,可以分别对每一帧触控信号进行归一化等预处理后的轮廓图进行边缘检测,得到每帧触控信号对应的一组表示手指轮廓的边缘点,其中,边缘检测可以使用Sobel算法;然后,综合多帧的触控信号的边缘检测结果,对检测到的手指轮廓进行集合求并,得到当前录入手指的轮廓信息。例如,首先,确定每帧触控信号的中心点,其中,从中心点为起点的任意一条射线会经过当前帧的手指轮廓中的至少一个边缘点,然后,分别从各个帧的触控图像中选择从中心点为起点的一条基准射线,每个帧的基准射线的斜率相同,比较各个帧的手指轮廓中基准射线所经过的边缘点的坐标,选择距离对应的中心点最远的点为最终的边缘坐标点,之后,按照预设的旋转间隔角旋转基准射线,比较各个帧的触控图像中旋转后的射线所经过的边缘点的坐标,选择距离对应的中心点最远的点为最终的边缘坐标点,之后,多次旋转基准射线并获得相应的边缘坐标点,直至基准射线旋转一周,最后,将所有边缘坐标点的集合确定为当前按压的手指的轮廓信息。在本申请实施例中,可以使用还可以采用Laplacian算子、Canny算子等边缘检测方法,或者,机器学习方法等计算机视觉算法对触控图像帧数据进行轮廓检测。预处理可以包括归一化、图形化及时间序列分析等方法。例如,将坐标点的数值限制在区间[0,255]之内,或者,利用Kalman滤波方法对触控信号序列按照时间进行滤波等。Taking the morphological feature information to be determined as the contour information of the finger as an example, as shown in FIG. 2B , edge detection can be performed on the preprocessed contour map such as normalization of each frame of touch signal, to obtain each frame of touch. A set of edge points representing the finger contour corresponding to the control signal, in which the Sobel algorithm can be used for edge detection; then, the edge detection results of the multi-frame touch signals are synthesized, and the detected finger contour is aggregated to obtain the current input. Profile information of fingers. For example, first, determine the center point of each frame of touch signals, wherein any ray starting from the center point will pass through at least one edge point in the finger outline of the current frame, and then, respectively, from the touch images of each frame Select a reference ray from the center point as the starting point, the slope of the reference ray in each frame is the same, compare the coordinates of the edge points that the reference ray passes through in the finger outline of each frame, and select the point farthest from the corresponding center point as the final point. Then, rotate the reference ray according to the preset rotation interval angle, compare the coordinates of the edge points that the rotated ray passes through in the touch image of each frame, and select the point farthest from the corresponding center point as the final point After that, rotate the reference ray several times to obtain the corresponding edge coordinate points until the reference ray rotates once, and finally, the set of all edge coordinate points is determined as the outline information of the currently pressed finger. In the embodiments of the present application, edge detection methods such as Laplacian operator and Canny operator, or computer vision algorithms such as machine learning methods may be used to perform contour detection on the touch image frame data. Preprocessing can include methods such as normalization, graphing, and time series analysis. For example, the value of the coordinate point is limited within the interval [0, 255], or the touch signal sequence is filtered by time using the Kalman filtering method.
在本申请其他实施例中,当触摸屏支持获取模板对象进入感应控制生成的触控信号时,触控信号中还可以包含模板对象与触摸屏之间的相对位置信息,由于触摸屏与图像采集装置的相对位置是固定的,因此,可以根据触控信号获得的模板对象相对于触摸屏的相对位置信息,转换为待检测对象相对于图像采集装置的位置信息,例如,触控信号可以包含由一组三维坐标系中的点集所确定的触控图像。此外,当获取的触控信号包括多帧触控信号时,根据多帧触控信号中的相对位置信息的变化规律,还可以确定模板对象的移动速度、移动轨迹等模板对象的运动学信息。In other embodiments of the present application, when the touch screen supports acquiring the touch signal generated by the template object entering the sensing control, the touch signal may also include relative position information between the template object and the touch screen. The position is fixed. Therefore, the relative position information of the template object relative to the touch screen obtained according to the touch signal can be converted into the position information of the object to be detected relative to the image acquisition device. For example, the touch signal can contain a set of three-dimensional coordinates. The touch image determined by the point set in the system. In addition, when the acquired touch signal includes multiple frames of touch signals, the kinematic information of the template object such as the movement speed and movement trajectory of the template object can also be determined according to the change rule of the relative position information in the multi-frame touch signals.
上述根据触控信号确定模板对象的形态特征信息的方法仅为示例,本申请实施例对此不做限制。The foregoing method for determining the morphological feature information of the template object according to the touch signal is merely an example, which is not limited in this embodiment of the present application.
在本申请其他实施例中,在根据待检测对象的触控信息,确定待检测对象的形态 特征信息之前,还可以包括:通过姿态传感器获取触控装置的三维位置信息;相应地,步骤S103根据待检测对象的形态特征信息,确定待识别图像的属性信息,可以包括:根据待检测对象的形态特征信息和触控装置的三维位置信息,确定待识别图像的属性信息。在本申请其他实施例中将对利用姿态传感器修正待识别图像的属性信息进行详细说明。In other embodiments of the present application, before determining the morphological feature information of the object to be detected according to the touch information of the object to be detected, the method may further include: acquiring the three-dimensional position information of the touch control device through a gesture sensor; correspondingly, step S103 is based on The morphological feature information of the object to be detected and the determination of the attribute information of the image to be recognized may include: determining the attribute information of the image to be recognized according to the morphological feature information of the object to be detected and the three-dimensional position information of the touch device. In other embodiments of the present application, the use of the attitude sensor to correct the attribute information of the image to be recognized will be described in detail.
S104,根据模板对象的形态特征信息,确定模板图像的属性信息。S104: Determine attribute information of the template image according to the morphological feature information of the template object.
在本申请实施例中,模板图像的属性信息可以是模板对象的对象类型、模板对象的习惯姿态信息、模板图像在模板对象的轮廓信息中的全局位置信息等。In this embodiment of the present application, the attribute information of the template image may be the object type of the template object, the habitual posture information of the template object, the global position information of the template image in the outline information of the template object, and the like.
在本申请实施例中,对象类型可以为以下任一种。在一示例中,模板对象的对象类型可以包括以下至少一种:指纹部、掌纹部、左右手信息、手指类型。在另一示例中,模板对象的对象类型还可以包括其他通过轮廓信息能够辨别的对象的类型,例如,耳朵部、嘴唇部、头部、足底部。在本申请其他实施例中,模板对象的对象类型也可以是由用户录入的。In this embodiment of the present application, the object type may be any of the following. In an example, the object type of the template object may include at least one of the following: fingerprint part, palm print part, left and right hand information, and finger type. In another example, the object type of the template object may also include other types of objects that can be identified through the outline information, such as ears, lips, head, and soles of feet. In other embodiments of the present application, the object type of the template object may also be entered by the user.
在本申请实施例中,习惯姿态信息可以包括移动轨迹类型、移动速度类型、全局方向信息、移动方向信息中至少一种。In this embodiment of the present application, the habitual gesture information may include at least one of a movement track type, a movement speed type, global direction information, and movement direction information.
其中,移动轨迹类型可以用于表示用户手指向触摸屏靠近时是沿直线移动或者沿弧线移动等轨迹类型;移动速度类型可以包括按压下降速度类型和按压停留时长类型,按压下降速度类型可以表示用户手指按压时靠近触摸屏的速度的快慢等级,按压停留时长类型可以表示用户手指按压在触摸屏上时停留的时长的长短等级。全局方向信息可以表示用户手指按压触摸屏时手指顶端的朝向,例如,顶端向左倾斜等。移动方向信息可以是用户手指靠近触摸屏至接触触摸屏时的手指的滑动方向。Among them, the movement trajectory type can be used to indicate that the user's finger moves in a straight line or along an arc when approaching the touch screen. The speed level of the speed at which the finger approaches the touch screen when the finger is pressed, and the press stay duration type may indicate the length level of the duration of the user's finger staying on the touch screen when pressing. The global orientation information may indicate the orientation of the tip of the user's finger when pressing the touch screen, for example, the tip is inclined to the left. The movement direction information may be the sliding direction of the user's finger when it approaches the touch screen until it contacts the touch screen.
在本申请实施例中,模板图像在模板对象的轮廓信息中的全局位置信息可以包括以下至少一种:与模板对象的轮廓信息中的参考点之间的距离,以模板对象的轮廓信息为参照系的区域位置标识。其中,区域位置标识可以为中心区域、边缘区域、上半区域、下半区域、以区域中心的坐标值标识的区域等。In this embodiment of the present application, the global position information of the template image in the contour information of the template object may include at least one of the following: a distance from a reference point in the contour information of the template object, with the contour information of the template object as a reference The regional location identifier of the system. The area location identifier may be a central area, an edge area, an upper half area, a lower half area, an area identified by the coordinate value of the area center, and the like.
在本申请实施例中,根据模板对象的形态特征信息,确定模板图像的属性信息可以包括以下一种或多种实施方式。In this embodiment of the present application, determining the attribute information of the template image according to the morphological feature information of the template object may include one or more of the following implementations.
在确定属性信息的一种可选的实施方式中,步骤S104可以包括:根据模板对象的轮廓信息,确定模板对象的对象类型;将模板对象的对象类型作为模板图像的属性信息。其中,在一示例中,模板对象的对象类型可以包括以下至少一种:指纹部、掌纹部、左右手信息、手指类型。在另一示例中,模板对象的对象类型还可以包括其他通过轮廓信息能够辨别的对象的类型,例如,耳朵部、嘴唇部、头部、足底部。在又一示例中,模板对象的对象类型还可以是通过轮廓信息能够辨别的其他物体。例如,在轮廓信息所表示的待检测对象的形状接近椭圆形且最大尺寸小于6平方厘米时,可以认为对象为指纹部。In an optional implementation manner of determining the attribute information, step S104 may include: determining the object type of the template object according to the outline information of the template object; and using the object type of the template object as the attribute information of the template image. Wherein, in an example, the object type of the template object may include at least one of the following: fingerprint part, palm print part, left and right hand information, and finger type. In another example, the object type of the template object may also include other types of objects that can be identified through the outline information, such as ears, lips, head, and soles of feet. In yet another example, the object type of the template object may also be other objects that can be identified through the outline information. For example, when the shape of the object to be detected represented by the outline information is close to an ellipse and the maximum size is less than 6 square centimeters, the object can be considered as a fingerprint part.
在本申请实施例中,对手指对象类型的推断有多种方式。可以使用数据分析手段或者基于机器学习的方法,结合姿态传感器数据,根据触控信号的分布特征,判断当前录入手 指的类型。在一种推断对象类型的实施方式中,可以构建手指类型识别系统,其中手指类型的特征提取可使用基于机器学习的特征提取网络(如Res-Net)。在另一种推断手指类型的实施方式中,可直接基于大数据构建分类网络(如SVM、CNN等经典框架)来判断手指的类型。此外,还可以直接根据手指触控信号和姿态传感器数据进行理论推导和统计分析来推断手指对象类型。这里,以理论推导和统计分析来推断手指对象类型进行示例性说明。In this embodiment of the present application, there are multiple ways to infer the finger object type. Data analysis methods or methods based on machine learning can be used, combined with attitude sensor data, to determine the type of the currently entered finger according to the distribution characteristics of touch signals. In an embodiment of inferring the object type, a finger type recognition system can be constructed, wherein the feature extraction of the finger type can use a machine learning-based feature extraction network (eg, Res-Net). In another embodiment of inferring the type of the finger, a classification network (such as classic frameworks such as SVM and CNN) can be constructed directly based on big data to determine the type of the finger. In addition, the finger object type can also be inferred by theoretical deduction and statistical analysis directly based on the finger touch signal and gesture sensor data. Here, the inference of the finger object type is exemplified by theoretical derivation and statistical analysis.
在一示例中,手指对象类型可以包括左右手类型,图2C为本申请实施例中推断左右手类型的示意图。In an example, the finger object type may include left and right hand types, and FIG. 2C is a schematic diagram of inferring left and right hand types in an embodiment of the present application.
如图2C所示,首先,以屏幕垂直中线为参考纵轴,屏幕底线为横轴,提取多帧触控信号的边缘轮廓并求并集,通过曲线拟合等方法对求并集后的边缘轮廓进行光滑化处理,以轮廓曲率最大两点连线为长轴代表手指按压方向,如图2C左图中倾斜的虚线。然后,计算位于屏幕纵轴右侧的按压方向中横坐标大于0的虚线与屏幕纵轴正向的夹角θ1。若按压方向与屏幕纵轴正向之间的夹角为钝角,可以推测当前手指的左右手类型为右手,如图2C中左图所示,若为锐角,可以推测当前手指的左右手类型为左手,如图2C中右图所示。As shown in Figure 2C, first, taking the vertical center line of the screen as the reference vertical axis, and the bottom line of the screen as the horizontal axis, extract the edge contours of the multi-frame touch signals and obtain a union, and use curve fitting and other methods to calculate the edges after the union. The contour is smoothed, and the line connecting the two points with the largest contour curvature is the long axis to represent the finger pressing direction, as shown in the slanted dotted line in the left figure of Figure 2C. Then, in the pressing direction on the right side of the vertical axis of the screen, the included angle θ1 between the dotted line whose abscissa is greater than 0 and the positive direction of the vertical axis of the screen is calculated. If the angle between the pressing direction and the positive direction of the vertical axis of the screen is an obtuse angle, it can be inferred that the left and right hand type of the current finger is the right hand, as shown in the left figure in Figure 2C, if it is an acute angle, it can be inferred that the left and right hand type of the current finger is the left hand. As shown in the right panel in Figure 2C.
此外,根据电子设备自身的姿态传感器数据,可以估计触控面板此时的三维姿态信息,其中,姿态传感器数据可以用于估计触控面板的延伸平面的纵轴和横轴在大地坐标系中相对于地表的倾斜角度和延伸平面的朝向等。例如,可以计算出触控面板的横轴相对于地表的倾斜角度θ2。之后,结合触控面板横轴倾斜角度θ2,对θ1进行修正。例如,若θ1-θ2>0,则将θ1修正为θ1-θ2,若θ1-θ2<0,则可以将θ1修正为180-θ2+θ1。最后,根据修正后的角度推断手指左右手类型。例如,当θ2=0时,如图2C中左图所示,修正值为钝角,则推测当前手指的左右手类型为右手,又如,当θ2=0,如图2C中右图所示,推测当前手指的左右手类型为左手。In addition, according to the attitude sensor data of the electronic device itself, the three-dimensional attitude information of the touch panel can be estimated at this time, wherein the attitude sensor data can be used to estimate that the vertical axis and the horizontal axis of the extension plane of the touch panel are relative in the geodetic coordinate system. The inclination angle of the ground surface and the orientation of the extension plane, etc. For example, the inclination angle θ2 of the horizontal axis of the touch panel with respect to the ground surface can be calculated. After that, θ1 is corrected in combination with the horizontal axis inclination angle θ2 of the touch panel. For example, if θ1-θ2>0, θ1 can be corrected to θ1-θ2, and if θ1-θ2<0, θ1 can be corrected to 180-θ2+θ1. Finally, the left and right hand types of the fingers are inferred from the corrected angle. For example, when θ2=0, as shown in the left figure in Fig. 2C, and the correction value is an obtuse angle, it is presumed that the left and right hand types of the current finger are right-handed. The left and right hand type of the current finger is left hand.
在另一示例中,手指对象类型可以包括拇指、食指、中指等手指类型,图2D为本申请实施例中推断手指类型的示意图。In another example, the finger object types may include finger types such as thumb, index finger, middle finger, etc. FIG. 2D is a schematic diagram of inferring finger types in this embodiment of the present application.
如图2D所示,其中,左图为左手拇指的接触压力(touch pressure,TP)数值的时序图示意,右图为右手食指或中指的TP数值时序图示意。在本申请实施例中,依据预先采集的各种手指类型的手指对应的TP数值的时序图,可以得到各种手指类型的TP数值的分布规律。然后,根据手指类型的TP数值的分布规律可以推断当前手指的手指类型。As shown in FIG. 2D , the left figure is a schematic time sequence diagram of the touch pressure (touch pressure, TP) value of the left thumb, and the right figure is a schematic time sequence diagram of the TP value of the right index finger or middle finger. In the embodiment of the present application, according to the pre-collected time sequence diagrams of TP values corresponding to fingers of various finger types, the distribution rules of TP values of various finger types can be obtained. Then, the finger type of the current finger can be inferred according to the distribution law of the TP value of the finger type.
举例来说,在确定当前手指的手指类型之前,首先采集各种手指类型的触控信号序列。示例性地,可以取20帧触控信号组成的触控序列,其中,每个触控信号包括当前手指在8*8区域内接触的像素点上的TP数值。然后,绘制8x8区域内每个像素点的时序图,共得到64条时序线,其中,每个像素点对应一条曲线,该曲线表示在一段时间内某一像素点上的TP数值随时间变化的规律。之后,统计某个时间区间内TP数值大于预设TP数值阈值的时序线在总时序线数中的占比。示例性地,从图2D中左图和右图可以比较得出,在时间段[0.05,0.10]中,左图中示出的拇指的时序线中,TP数值高于175的时序线的数量,明显比右图中示出的食指和中指的时序线多,如图2D中虚线框交叉区域所示。For example, before determining the finger type of the current finger, first collect touch signal sequences of various finger types. Exemplarily, a touch sequence composed of 20 frames of touch signals may be taken, wherein each touch signal includes the TP value on the pixels touched by the current finger in the 8*8 area. Then, draw the timing diagram of each pixel in the 8x8 area, and a total of 64 timing lines are obtained. Among them, each pixel corresponds to a curve, which represents the change of the TP value on a certain pixel over time over time. law. After that, the proportion of the time series lines whose TP value is greater than the preset TP value threshold in a certain time interval in the total number of time series lines is counted. Exemplarily, from the left graph and the right graph in Figure 2D, it can be concluded that in the time period [0.05, 0.10], in the time sequence line of the thumb shown in the left graph, the number of time sequence lines with TP values higher than 175 , significantly more than the index and middle finger timing lines shown in the right figure, as shown by the intersecting area of the dotted box in Figure 2D.
基于此,在录入阶段,可采集当前手指的触控信号序列,并绘制TP数值的时序图, 若当前手指的时序图中时间段[0.05,0.10]内TP数值高于TP数值阈值的时序线占比高于预设的分类比例阈值,则可以推断当前手指的手指类型为拇指,否则,可以推断当前手指的手指类型为食指或中指。以分类比例阈值为5/64为例,当占比大于分类比例阈值,则可以推断当前手指为拇指,若占比小于或者二等于分类比例阈值,可以推断当前手指为食指或中指。需要说明的是,在本申请实施例的识别阶段的步骤中,也可以采用类似的方式确定识别阶段采集的当前手指的手指类型。Based on this, in the input stage, the touch signal sequence of the current finger can be collected, and the timing diagram of the TP value can be drawn. If the proportion is higher than the preset classification proportion threshold, it can be inferred that the finger type of the current finger is the thumb, otherwise, it can be inferred that the finger type of the current finger is the index finger or the middle finger. Taking the classification ratio threshold of 5/64 as an example, when the ratio is greater than the classification ratio threshold, it can be inferred that the current finger is the thumb; if the ratio is less than or equal to the classification ratio threshold, it can be inferred that the current finger is the index finger or the middle finger. It should be noted that, in the steps of the identification stage in this embodiment of the present application, a similar method may also be used to determine the finger type of the current finger collected in the identification stage.
在又一示例中,手指对象类型可以包括左右手类型和手指类型,例如,右手拇指、左手食指、左手中指。可以联合前面的示例推断当前手指的手指对象类型。例如,可以根据图2C和图2D,联合推断出手指1为右手拇指,手指2为左手食指或中指。在确定属性信息的另一种可选的实施方式中,步骤S104可以包括:根据模板对象的轮廓信息,确定模板图像在模板对象的轮廓信息中的全局位置信息;将模板图像对应的全局位置信息作为模板图像的属性信息。其中,模板图像在模板对象的轮廓信息中的全局位置信息可以包括以下至少一种:与模板对象的轮廓信息中的参考点之间的距离,以模板对象的轮廓信息为参照系的区域位置标识。示例性地,区域可以为矩形,区域的中心可以是参照系中的坐标点,矩形的长和宽可以为预设的长度值和宽度值。In yet another example, the finger object types may include left and right hand types and finger types, eg, right thumb, left index finger, left middle finger. The finger object type of the current finger can be inferred in conjunction with the previous examples. For example, according to FIG. 2C and FIG. 2D , it can be jointly inferred that finger 1 is the thumb of the right hand, and finger 2 is the index finger or middle finger of the left hand. In another optional implementation manner of determining the attribute information, step S104 may include: determining the global position information of the template image in the contour information of the template object according to the contour information of the template object; Attribute information as a template image. Wherein, the global position information of the template image in the contour information of the template object may include at least one of the following: a distance from a reference point in the contour information of the template object, a region position identifier with the contour information of the template object as a reference system . Exemplarily, the area may be a rectangle, the center of the area may be a coordinate point in a reference system, and the length and width of the rectangle may be preset length and width values.
图2E为本申请实施例中推断全局位置信息和全局方向信息的示意图。如图2E所示,根据触控信号提取的触控像素的位置,可以确定当前手指的手指轮廓在屏幕中的位置。然后,由于指纹采集器的采集区域的位置在硬件设计时固定,模板图像的全局位置信息可以由模板图像在指纹轮廓中的相对位置经坐标变换确定。FIG. 2E is a schematic diagram of inferring global position information and global direction information in an embodiment of the present application. As shown in FIG. 2E , according to the position of the touch pixel extracted from the touch signal, the position of the finger outline of the current finger on the screen can be determined. Then, since the position of the collection area of the fingerprint collector is fixed during hardware design, the global position information of the template image can be determined by coordinate transformation from the relative position of the template image in the fingerprint contour.
举例来说,可参看图2E所示,将光滑化处理后的手指总轮廓(图2E中椭圆形)的长短轴确定为手指坐标系的手指X轴和手指Y轴,其中,手指总轮廓的长轴可以根据轮廓曲率最大的两点的连线确定。然后,取模板图像中心的坐标(x i,y i)为模板图像的全局位置信息。然后,取模板图像的对角线与手指X轴的夹角θ i为全局方向信息。其中,可参看图2E所示,模板图像的对角线为经过模板图像中心的虚线。 For example, referring to FIG. 2E , the long and short axes of the smoothed general outline of the finger (ellipse in FIG. 2E ) are determined as the finger X axis and the finger Y axis of the finger coordinate system, wherein the The major axis can be determined according to the line connecting the two points with the largest curvature of the contour. Then, the coordinates (x i , y i ) of the center of the template image are taken as the global position information of the template image. Then, the angle θ i between the diagonal line of the template image and the X-axis of the finger is taken as the global direction information. Wherein, as shown in FIG. 2E , the diagonal line of the template image is a dotted line passing through the center of the template image.
在确定属性信息的又一种可选的实施方式中,步骤S104可以包括:根据模板对象的轮廓信息、位置信息、运动学信息中至少一种形态特征信息,确定模板对象的习惯姿态信息;将模板对象的习惯姿态信息作为模板图像的属性信息。其中,模板对象的习惯姿态信息,包括以下至少一种:模板对象的全局方向信息,模板对象的速度或者速度等级,模板对象的移动方向,模板对象的移动轨迹。举例来说,模板对象的全局方向信息包括以下至少一种:顶端向左倾斜,顶端向右倾斜。In another optional implementation manner of determining the attribute information, step S104 may include: determining the habitual posture information of the template object according to at least one morphological feature information among contour information, position information, and kinematic information of the template object; The customary pose information of the template object is used as the attribute information of the template image. The customary posture information of the template object includes at least one of the following: global direction information of the template object, speed or speed level of the template object, movement direction of the template object, and movement track of the template object. For example, the global orientation information of the template object includes at least one of the following: the top end is inclined to the left, and the top end is inclined to the right.
举例来说,模板对象为指纹,模板对象的形态特征信息可以为模板对象的运动学信息,例如,移动速度低于0.01米/秒、全局方向信息为顶端向左倾斜等。可以将模板对象的移动速度和全局方向信息作为模板图像的属性信息。S105,将模板图像和模板图像的属性信息,加入图像数据库。For example, the template object is a fingerprint, and the morphological feature information of the template object may be the kinematic information of the template object, for example, the moving speed is lower than 0.01 m/s, and the global direction information is that the top is tilted to the left. The moving speed and global direction information of the template object can be used as the attribute information of the template image. S105, add the template image and the attribute information of the template image to the image database.
其中,图像数据库中可以存储至少一个模板图像以及各个模板图像的属性信息,此外,图像数据库中还可以存储各个模板图像对应的模板对象对应的对象标识或者实体标识或者使用权限等对象信息。The image database may store at least one template image and attribute information of each template image. In addition, the image database may also store object information such as object identifiers or entity identifiers or usage rights corresponding to template objects corresponding to each template image.
表1为图像数据库中存储数据的一种示意。Table 1 is a schematic diagram of the data stored in the image database.
表1Table 1
Figure PCTCN2021107689-appb-000001
Figure PCTCN2021107689-appb-000001
其中,使用权限可以是解锁屏幕、开机、登录系统、以实体标识对应的账户信息登陆某一应用(Application,APP)、实体标识对应的应用或者数据的其他使用权限等的中一种或多种使用权限,可参见表1中的示例,本申请对此不做限制。The usage authority may be one or more of unlocking the screen, booting up, logging in to the system, logging in to an application (Application, APP) with account information corresponding to the entity identification, or other usage authority for the application or data corresponding to the entity identification, etc. For usage rights, see examples in Table 1, which are not limited in this application.
采用本申请实施例的技术方法构建图像数据库,能够提供模板图像和模板图像对应的属性信息,之后,可以根据模板图像的属性信息筛选与待识别图像的属性信息满足属性信息相似度条件的模板图像,在筛选后的模板图像中查询与待识别图像相匹配的目标模板图像,能够提高图像匹配的消息。Using the technical method of the embodiments of the present application to construct an image database can provide template images and attribute information corresponding to the template images, and then, according to the attribute information of the template images, the template images that satisfy the attribute information similarity condition with the attribute information of the image to be recognized can be screened , query the target template image matching the to-be-recognized image in the filtered template image, which can improve the message of image matching.
实施例二 Embodiment 2
下面对识别阶段的实施方式进行示例性说明。The implementation of the identification phase is exemplified below.
本申请实施例提供图像匹配方法的识别阶段的一种可选的实施方式。This embodiment of the present application provides an optional implementation of the identification stage of the image matching method.
图3A为本申请实施例提供的图像匹配方法的识别阶段的流程示意图。如图3A所示,识别阶段的步骤可以包括:FIG. 3A is a schematic flowchart of a recognition stage of an image matching method provided by an embodiment of the present application. As shown in Figure 3A, the steps of the identification phase may include:
S201,获取待识别图像。S201, an image to be recognized is acquired.
其中,待识别图像为待检测对象的图像。以待检测对象为用户手指的指纹部为例,待识别图像可以为指纹图像。获取待识别图像的方式与获取模板图像的方式类似,可参看步骤S101中的相关说明。The image to be recognized is an image of the object to be detected. Taking the object to be detected as the fingerprint part of the user's finger as an example, the image to be recognized may be a fingerprint image. The manner of acquiring the image to be recognized is similar to the manner of acquiring the template image, and reference may be made to the relevant description in step S101.
S202,获取待检测对象的形态特征信息。S202: Obtain morphological feature information of the object to be detected.
其中,获取待检测对象的形态特征信息的方式与获取模板对象的形态特征信息的方式类似,可参看步骤S102中的相关说明。The manner of acquiring the morphological feature information of the object to be detected is similar to the manner of acquiring the morphological feature information of the template object, and reference may be made to the relevant description in step S102.
S203,根据待检测对象的形态特征信息,确定待识别图像的属性信息。S203: Determine attribute information of the image to be recognized according to the morphological feature information of the object to be detected.
其中,该步骤的实施方式与步骤S103类似,可参看S103中的相关说明。The implementation of this step is similar to that of step S103, and reference may be made to the relevant description in S103.
S204,根据待识别图像的属性信息,对至少一个模板图像进行筛选。S204: Screen at least one template image according to the attribute information of the image to be recognized.
其中,筛选后的模板图像的属性信息与待识别图像的属性信息之间满足属性相关性条件。The attribute correlation condition is satisfied between the attribute information of the filtered template image and the attribute information of the image to be recognized.
在本申请实施例中,各个模板图像的属性信息可以为采用实施例一中提及的任一方法获得的。本申请实施例还可以采用其他实施方式录入模板图像的属性信息。例如,在采集模板图像的同时,电子设备可以提示用户在电子设备的输入设备中选择或者输入各个模板图像对应的属性信息。在一示例中,可以电子设备的图形用户界面中提示用户输入右手大拇指的指纹,并将采集到的指纹图像和对应的属性信息“右手大拇指”添加到图像数据库中。在另一示例中,还可以提示用户录入全局位置信息为边缘区域的模板图像,并将采集到的指纹图像和对应的属性信息“边缘区域”添加到图像数据库中。本申请对此不做限制。In this embodiment of the present application, the attribute information of each template image may be obtained by using any of the methods mentioned in the first embodiment. In this embodiment of the present application, other implementations may also be used to input the attribute information of the template image. For example, while collecting template images, the electronic device may prompt the user to select or input attribute information corresponding to each template image in the input device of the electronic device. In an example, the user can be prompted to input the fingerprint of the right thumb in the graphical user interface of the electronic device, and the collected fingerprint image and the corresponding attribute information "right thumb" are added to the image database. In another example, the user may also be prompted to enter a template image whose global position information is the edge region, and the collected fingerprint image and the corresponding attribute information "edge region" are added to the image database. This application does not limit this.
在本申请实施例中,待识别图像的属性信息的数量为可以为一种或多种。当待识别图像的属性信息为至少两种时,上述步骤S204可以包括:根据待识别图像的至少两种属性信息以及各个属性信息的权重,对至少一个模板图像进行筛选。举例来说,可以选择属性信息的相似度较高的模板图像。In this embodiment of the present application, the number of attribute information of the image to be recognized may be one or more. When there are at least two types of attribute information of the image to be recognized, the above step S204 may include: screening at least one template image according to the at least two types of attribute information of the image to be recognized and the weight of each attribute information. For example, a template image with higher similarity in attribute information can be selected.
示例性地,属性信息的相似度可以根据如下公式计算:Exemplarily, the similarity of attribute information can be calculated according to the following formula:
属性信息相似度百分比=权重1*两图像相似度百分比-权重2*两图像全局位置信息的距离-权重3*两图像全局方向信息的差值Similarity percentage of attribute information = weight 1 * similarity percentage of two images - weight 2 * distance of global position information of two images - weight 3 * difference of global orientation information of two images
需要说明的是,在一些场景中,也可以将权重2、权重3设置为0It should be noted that in some scenarios, weight 2 and weight 3 can also be set to 0
在本申请实施例中,针对不同的属性信息,步骤204中的属性相关性条件可以包括以下一种实施或多种实施方式的组合。In this embodiment of the present application, for different attribute information, the attribute correlation condition in step 204 may include one of the following implementations or a combination of multiple implementations.
在属性相关性条件的一种可选的实施方式中,在待识别图像的属性信息包括待识别图像对应的对象类型时,筛选后的模板图像对应的对象类型可以与待识别图像对应的对象类型相同。举例来说,待检测对象的形态特征信息可以为待识别的指纹部的轮廓信息,根据待检测对象的轮廓信息可以确定待检测对象的对象类型为左手手指,之后,将对象类型作为待识别图像的属性信息,先在图像数据库中筛选对象类型为左手手指的模板图像。In an optional implementation manner of the attribute correlation condition, when the attribute information of the to-be-recognized image includes the object type corresponding to the to-be-recognized image, the object type corresponding to the filtered template image may be the same as the object type corresponding to the to-be-recognized image same. For example, the morphological feature information of the object to be detected may be the outline information of the fingerprint part to be recognized, and according to the outline information of the object to be detected, it can be determined that the object type of the object to be detected is the finger of the left hand, and then the object type is used as the image to be recognized. attribute information, first filter the template image whose object type is the finger of the left hand in the image database.
在属性相关性条件的另一种可选的实施方式中,在待识别图像的属性信息包括待识别图像对应的姿态信息时,筛选后的模板图像对应的习惯姿态信息可以与待识别图像对应的习惯姿态信息相同。举例来说,举例来说,待检测对象为指纹,待检测对象的形态特征信息可以为待检测对象的运动学信息,例如,移动速度低于0.01米/秒、全局方向信息为顶端朝左。可以将待检测对象的移动速度和全局方向信息作为待识别图像的属性信息,在图像数据库中筛选对应的移动速度为低于0.01米/秒、全局方向信息为顶端朝左的模板图像,然后在筛选后的模板中查询相匹配的目标模板图像。在属性相关性条件的又一种可选的实施方式中,在待识别图像的属性信息包括待识别图像 对应的全局位置信息时,筛选后的模板图像对应的全局位置信息与待识别图像对应的全局位置信息满足位置临近条件。In another optional implementation of the attribute correlation condition, when the attribute information of the to-be-recognized image includes the gesture information corresponding to the to-be-recognized image, the habitual gesture information corresponding to the filtered template image may be the same as that of the to-be-recognized image. The habitual posture information is the same. For example, for example, the object to be detected is a fingerprint, and the morphological feature information of the object to be detected can be the kinematic information of the object to be detected, for example, the moving speed is lower than 0.01 m/s, and the global direction information is the top left. The moving speed and global direction information of the object to be detected can be used as the attribute information of the image to be recognized, and the corresponding moving speed is less than 0.01 m/s and the global direction information is the template image with the top left facing in the image database, and then in the image database. The target template image that matches the query in the filtered template. In another optional implementation manner of the attribute correlation condition, when the attribute information of the image to be recognized includes global location information corresponding to the image to be recognized, the global location information corresponding to the filtered template image is the same as the image to be recognized. The global location information satisfies the location proximity condition.
其中,位置临近条件可以包括:筛选后的模板图像对应的全局位置信息所表示的位置包含待识别图像对应的全局位置信息所表示的位置,或者,筛选后的模板图像对应的全局位置信息所表示的位置与待识别图像对应的全局位置信息所表示的位置存在交集,或者,筛选后的模板图像对应的全局位置信息所表示的位置与待识别图像对应的全局位置信息所表示的位置之间的距离小于邻近区域距离阈值。The location proximity condition may include: the location indicated by the global location information corresponding to the filtered template image includes the location indicated by the global location information corresponding to the image to be recognized, or, the location indicated by the global location information corresponding to the filtered template image There is an intersection between the position represented by the global position information corresponding to the image to be recognized, or the position represented by the global position information corresponding to the filtered template image and the position represented by the global position information corresponding to the image to be recognized. The distance is less than the proximity distance threshold.
举例来说,待识别图像的属性信息包括对象类型和全局位置信息,待识别图像的对象类型为左手食指,待识别图像在待检测对象的轮廓信息中的区域位置标识为区域1,则可以从至少一个模板图像中筛选出一组模板图像,筛选出的模板图像的对象类型为左手食指,且模板图像在对应的模板对象的轮廓信息中的区域位置标识为区域2,其中,区域2包含区域1,或者,区域2与区域1存在交集,或者,区域2与区域1之间的距离小于邻近区域距离阈值。For example, the attribute information of the image to be recognized includes object type and global position information, the object type of the image to be recognized is the index finger of the left hand, and the region position of the image to be recognized in the outline information of the object to be detected is identified as region 1, then the A group of template images are screened out from at least one template image, the object type of the screened template image is the index finger of the left hand, and the region position of the template image in the contour information of the corresponding template object is identified as region 2, wherein region 2 contains the region 1, or, there is an intersection between area 2 and area 1, or the distance between area 2 and area 1 is less than the adjacent area distance threshold.
在实际应用的一种示例中,若待检测对象为待识别的指纹部,图像采集装置采集的待识别图像为用户手指按压在指纹采集区域内的指纹图像,可称为局部图像或者局部拓扑。待检测对象的形态特征信息可以为待检测对象的轮廓信息,可称为全局图像或者全局拓扑;根据待检测对象的轮廓信息和指纹采集区域的位置可以确定局部图像在全局图像中的全局位置信息。示例性地,可参看图1D所示,全局图像可以为右手拇指对应的椭圆图形,局部图像可以位于椭圆图形的长轴中轴线的左侧,即图中Y轴的左侧。之后,将待识别图像在待检测对象的轮廓信息中对应的全局位置信息作为待识别图像的属性信息,对图像数据库中的众多模板图像进行筛选。示例性地,可以筛选全局位置信息为位于长轴中轴线左侧的模板图像,并在筛选出的模板图像中查询与待识别图像相匹配的目标模板图像。In an example of practical application, if the object to be detected is the fingerprint part to be recognized, the to-be-recognized image collected by the image acquisition device is the fingerprint image of the user's finger pressed in the fingerprint collection area, which may be called a partial image or a partial topology. The morphological feature information of the object to be detected can be the contour information of the object to be detected, which can be called a global image or global topology; according to the contour information of the object to be detected and the position of the fingerprint collection area, the global position information of the local image in the global image can be determined . 1D, the global image may be an ellipse corresponding to the thumb of the right hand, and the local image may be located on the left side of the long axis of the ellipse, that is, the left side of the Y axis in the figure. After that, the global position information corresponding to the image to be recognized in the contour information of the object to be detected is used as the attribute information of the image to be recognized, and the numerous template images in the image database are screened. Exemplarily, the global position information may be screened to be a template image located on the left side of the long axis, and a target template image matching the image to be recognized may be queried from the screened template images.
在实际应用中又一种实施例中,可参看图1A所示,待识别图像的属性信息可以包括待识别图像在待检测对象的完整轮廓中的全局位置信息,在一示例中,待识别图像对应的该属性信息的属性值可以为“边缘区域”,则可以在模板图像中筛选出相应属性信息为“边缘区域”的模板图像,并在筛选出的模板图像中查询与待识别图像相匹配的目标模板图像。In yet another embodiment in practical applications, as shown in FIG. 1A , the attribute information of the image to be recognized may include global position information of the image to be recognized in the complete outline of the object to be detected. In an example, the image to be recognized The attribute value corresponding to the attribute information may be "edge area", then a template image with the corresponding attribute information as "edge area" may be filtered out of the template image, and the selected template image may be searched for matches with the image to be recognized. target template image.
在实际应用中另一种实施例中,当位置邻近条件为筛选后的模板图像对应的全局位置信息所表示的位置与待识别图像对应的全局位置信息所表示的位置之间的距离小于邻近区域距离阈值时。可以根据待识别图像的全局位置信息推断其所属的大致区域,之后,筛选对应的全局位置信息位于推断的所属大致区域中模板图像,并在筛选出的模板图像中查询与待识别图像相匹配的目标模板图像。所属大致区域可以称为推断区域或者推断模板区域。In another embodiment in practical applications, when the location proximity condition is that the distance between the location represented by the global location information corresponding to the filtered template image and the location represented by the global location information corresponding to the image to be recognized is smaller than the adjacent area distance threshold. The approximate region to which the image to be recognized belongs can be inferred based on the global location information of the image to be recognized. After that, the template image corresponding to the global location information is located in the inferred approximate region, and the template image that matches the image to be recognized is queried in the filtered template image. Target template image. The approximate region to which it belongs may be referred to as an inference region or an inference template region.
图3B为本申请实施例中推断大致区域的示意图。如图3B所示,示例性地,可以取待识别指纹图像的中心的坐标为推测的大致区域的中心,将该中心周围预设半径内的区域确定为大致区域,如图3B中虚线所示的圆形区域。举例来说,计算模板库中模板图像的 中心位置与当前待识别指纹的中心位置的欧式距离,在距离小于指定半径时,可判定该模板图像位于所属大致区域。基于这一判断原则,图3B中与待识别图像相邻的两个模板图像属于推断区域内,而中心为(x k,y k)的模板图像则不在推断区域内。在本申请实施例中,该大致区域还可以是以待识别指纹图像在指纹轮廓中的全局位置为中心的其他固定形状的区域。其中,固定形状例如可以是正六边形、椭圆、长方形等。 FIG. 3B is a schematic diagram of an approximate area inferred in an embodiment of the present application. As shown in FIG. 3B , for example, the coordinates of the center of the fingerprint image to be recognized can be taken as the center of the estimated approximate area, and the area within a preset radius around the center is determined as the approximate area, as shown by the dotted line in FIG. 3B the circular area. For example, the Euclidean distance between the center position of the template image in the template library and the center position of the current fingerprint to be recognized is calculated, and when the distance is less than the specified radius, it can be determined that the template image is located in the approximate area to which it belongs. Based on this judgment principle, the two template images adjacent to the image to be recognized in Fig. 3B belong to the inference area, while the template image whose center is (x k , y k ) is not in the inference area. In this embodiment of the present application, the approximate area may also be an area of another fixed shape centered on the global position of the fingerprint image to be recognized in the fingerprint contour. The fixed shape may be, for example, a regular hexagon, an ellipse, a rectangle, or the like.
S205,在筛选后的模板图像中,查询与待识别图像相匹配的目标模板图像。S205 , in the filtered template images, query a target template image that matches the image to be recognized.
其中,与待识别图像相匹配的目标模板图像可以为与待识别图像的图像相似度达到相似度阈值的目标模板图像。The target template image matching the image to be recognized may be a target template image whose image similarity with the image to be recognized reaches a similarity threshold.
在本申请实施例中,步骤S205在筛选后的模板图像中,查询与待识别图像相匹配的目标模板图像,可以包括:将筛选后的模板图像与待识别图像进行相似度比较,将相似度大于相似度阈值的模板图像作为相匹配的目标模板图像。在一示例中,当筛选后的模板图像的数量为多个时,在进行相似度比较之前,还可以按照筛选后的模板图像的历史匹配成功率由高到低对筛选后的模板图像进行排序,然后,按照顺序逐个对筛选后的模板图像和待识别图像进行相似度比较。In this embodiment of the present application, in step S205, in the filtered template images, query the target template image that matches the image to be recognized, which may include: comparing the similarity between the filtered template image and the image to be recognized, and comparing the similarity Template images greater than the similarity threshold are used as matching target template images. In an example, when the number of the filtered template images is multiple, before the similarity comparison is performed, the filtered template images may also be sorted according to the historical matching success rate of the filtered template images from high to low. , and then compare the similarity between the filtered template image and the to-be-recognized image one by one in sequence.
在本申请实施例中,利用待识别图像的一种或多种属性信息,对图像数据库中的模板图像进行筛选,并在筛选后的模板图像中,查询与待识别图像相匹配的目标模板图像能够提供图像匹配的效率。In the embodiment of the present application, one or more attribute information of the image to be recognized is used to screen the template images in the image database, and in the filtered template images, the target template image that matches the image to be recognized is queried. It can provide the efficiency of image matching.
在本申请实施例中,在步骤S204得到的筛选后的模板图像的数量为0,或者,步骤S205在筛选后的模板图像中,未查询到与待识别图像相匹配的目标模板图像时,在步骤S205之后,还可以包括步骤S206。In this embodiment of the present application, the number of filtered template images obtained in step S204 is 0, or, in step S205, when no target template image matching the image to be recognized is found in the filtered template images, in step S205 After step S205, step S206 may also be included.
S206,在至少一个模板图像中除筛选后的模板图像的其他模板图像中,查询与待识别图像相匹配的目标模板图像。S206 , in at least one template image other than the filtered template image, search for a target template image that matches the image to be recognized.
在一示例中,可以按照历史匹配成功率由高到低对上述其他模板图像进行排序,然后,按照顺序对各个其他模板图像和待识别图像进行相似度比较。In an example, the above-mentioned other template images may be sorted according to the historical matching success rate from high to low, and then the similarity between each other template image and the image to be recognized is compared in order.
采用步骤S206时,可以当在筛选后的模板图像中未查询到相匹配的目标模板图像时,继续在图像数据库中的其他模板图像中查询相匹配的目标模板图像,提高图像识别的成功率。When step S206 is adopted, when no matching target template image is found in the filtered template images, the matching target template image can be continuously searched in other template images in the image database to improve the success rate of image recognition.
举例来说,在实际应用中,图3C为本申请实施例中模板匹配的示意图。如图3C中分支1所示,首先,将全局模板库中属于推断手指类型且位于推断的大致区域内的模板三元组,示例性地,如图3C中全局位置信息为(x j,y j)的模板三元组,与当前按压所提取的待识别图像进行匹配。其中,该范围内的匹配顺序可依据历史统计排序信息决定,匹配公式可按前述实施方式中S204中给出的属性信息相似度计算公式计算。若相似度百分比大于相似度匹配成功阈值,则在推断手指类型和推断区域内匹配成功,更新历史统计排序信息,在输出设备中提示用户指纹识别成功;若在推断手指类型和推断模板区域内的模板图像中匹配失败,可以分两种策略进行后续流程。 For example, in practical applications, FIG. 3C is a schematic diagram of template matching in an embodiment of the present application. As shown in branch 1 in FIG. 3C , first, the template triples in the global template library that belong to the inferred finger type and are located in the approximate area of the inference, exemplarily, the global position information in FIG. 3C is (x j , y j ), the template triplet is matched with the to-be-recognized image extracted by the current pressing. The matching order within this range may be determined according to historical statistical sorting information, and the matching formula may be calculated according to the attribute information similarity calculation formula given in S204 in the foregoing embodiment. If the similarity percentage is greater than the similarity matching success threshold, the matching is successful in the inferred finger type and the inferred area, the historical statistical ranking information is updated, and the user is prompted in the output device that fingerprint recognition is successful; If the matching in the template image fails, there are two strategies for the follow-up process.
在实际应用中,上述筛选及筛选后的匹配过程的匹配策略有多种方式。表2为匹 配策略的一组示意。In practical applications, there are various ways of matching strategies for the above screening and the matching process after screening. Table 2 is a set of schematics for matching strategies.
表2Table 2
Figure PCTCN2021107689-appb-000002
Figure PCTCN2021107689-appb-000002
其中,推断手指类型即根据待识别对象的形态特征信息确定的待识别对象的手指左右手类型和手指类型,推断模板区域为根据待识别图像在待检测对象的轮廓信息中的全局位置信息确定的所属大致区域。在优先匹配推断手指类型及推断模板区域的模板图像,但匹配失败后可以采用第一种策略或者第二种策略。The inferred finger type refers to the left and right hand type and finger type of the object to be recognized determined according to the morphological feature information of the object to be recognized, and the inferred template area is determined according to the global position information of the image to be recognized in the outline information of the object to be detected. approximate area. The first strategy or the second strategy can be used after matching the template image of the inferred finger type and the inferred template region first, but after the matching fails.
在第一种策略的示例中,可以尝试与非推断手指类型下的推断模板区域的模板图像进行匹配,若仍然失败,则进入第二种策略或者尝试与非推断手指类型下非推断模板区域的模板图像进行匹配。若该阶段匹配成功,则更新历史统计排序信息并进入在输出设备中提示用户指纹识别成功。其中,该范围内的匹配顺序仍可依据历史统计排序信息决定。In the example of the first strategy, you can try to match the template image of the inferred template area under the non-inferred finger type, and if it still fails, enter the second strategy or try to match the template image of the non-inferred template area under the non-inferred finger type. template image to match. If the match is successful at this stage, update the historical statistical sorting information and enter the output device to prompt the user that the fingerprint identification is successful. The matching order within this range can still be determined according to historical statistical sorting information.
在第二种策略的示例中,可以尝试与推断手指类型下的非推断模板区域的模板图像进行匹配,若仍然失败,则进入第一种策略或者尝试与非推断手指类型下非推断模板区域的模板图像进行匹配。若该阶段匹配成功,则更新历史统计排序信息并进入在输出设备中提示用户指纹识别成功。其中,该范围内的匹配顺序仍可依据历史统计排序信息决定。需要说明的是,若先执行第一种策略,再执行第二种策略,则在执行第二种策略后若仍然识别失败,则直接进入尝试与非推断手指类型下非推断模板区域的模板图像进行匹配。In the example of the second strategy, you can try to match the template image of the non-inferred template area under the inferred finger type, and if it still fails, enter the first strategy or try to match the non-inferred template area under the non-inferred finger type. template image to match. If the match is successful at this stage, update the historical statistical sorting information and enter the output device to prompt the user that the fingerprint identification is successful. The matching order within this range can still be determined according to historical statistical sorting information. It should be noted that if the first strategy is executed first, and then the second strategy is executed, if the recognition still fails after the second strategy is executed, it will directly enter the template image of the non-inferred template area under the trial and non-inferred finger types. to match.
在本申请实施例中,在步骤S205或者S206之后,匹配识别阶段的步骤还可以包括步骤S207、S208。In this embodiment of the present application, after step S205 or S206, the steps in the matching and identifying stage may further include steps S207 and S208.
S207,在查询到与待识别图像相匹配的目标模板图像时,获取目标模板图像对应的模板实体标识和/或使用权限。S207, when the target template image matching the image to be recognized is queried, obtain the template entity identifier and/or the usage authority corresponding to the target template image.
S208,在未查询到与待识别图像相匹配的目标模板图像时,确定待识别图像对应的待检测对象不具有使用权限。S208 , when the target template image matching the image to be recognized is not queried, it is determined that the object to be detected corresponding to the image to be recognized does not have the right to use.
其中,模板实体标识可以为用户身份信息,使用权限可以是解锁屏幕、开机、登录系统、登录APP等。The template entity identifier may be user identity information, and the usage authority may be unlocking the screen, booting, logging in to the system, logging in to the APP, and the like.
在本申请实施例中,为了进一步提升图像匹配的成功率。在录入阶段,还可以根据模板图像对应的全局位置信息,来尽量保证对模板对象采集足够的模板图像。例如,可以在采集模板图像时,采集覆盖模板对象的边缘部分的模板图像,或者,通过对模板对象采集多个模板图像,来保证模板对象对应的多个模板图像能够覆盖模板对象的轮廓信息。在本申请其他实施例中将进行详细说明。In this embodiment of the present application, in order to further improve the success rate of image matching. In the input stage, it is also possible to ensure that enough template images are collected for the template object as much as possible according to the global position information corresponding to the template image. For example, when collecting a template image, a template image covering the edge portion of the template object may be collected, or by collecting multiple template images for the template object, it is ensured that the multiple template images corresponding to the template object can cover the contour information of the template object. Detailed descriptions will be made in other embodiments of the present application.
在本申请实施例提供的图像匹配方法中,通过待检测对象的形态特征信息确定待识别图像的属性信息,并根据待识别图像的属性信息对至少一个模板图像进行筛选,然后,在筛选后的模板图像中查询与待识别图像相匹配的目标模板图像,能够提升图像匹配的效率。In the image matching method provided by the embodiment of the present application, the attribute information of the image to be recognized is determined by the morphological feature information of the object to be detected, and at least one template image is screened according to the attribute information of the image to be recognized, and then, after the screening The target template image matching the image to be recognized is queried in the template image, which can improve the efficiency of image matching.
实施例三Embodiment 3
本申请实施例还提供图像匹配方法的录入阶段的一种可选的实施方式。其中,在录入阶段,采集模板图像以及模板对象的形态特征信息,并根据模板对象的形态特征信息确定模板图像的属性信息,之后,在识别阶段,可以不限定在采集待识别图像时必须采集待检测对象的形态特征信息。The embodiment of the present application also provides an optional implementation of the input stage of the image matching method. Among them, in the input stage, the template image and the morphological feature information of the template object are collected, and the attribute information of the template image is determined according to the morphological feature information of the template object. Detect the morphological feature information of the object.
举例来说,在识别阶段,一种方式是既获取待识别图像,也获取待检测对象的形态特征信息,然后,根据由待检测对象的形态特征信息确定的待识别图像的属性信息对至少一个模板图像进行筛选。另一种方式,可以仅获取待识别图像,当仅获取待识别图像时,可以不对模板图像进行筛选,直接在模板图像的全集中查询与待识别图像相匹配的目标模板图像。For example, in the identification stage, one method is to obtain both the image to be identified and the morphological feature information of the object to be detected, and then, according to the attribute information of the image to be identified determined by the morphological feature information of the object to be detected, at least one Template images to filter. In another way, only the to-be-recognized image may be acquired. When only the to-be-recognized image is acquired, the template image may not be screened, and the target template image matching the to-be-recognized image may be directly queried in the complete set of template images.
需要说明的是,在录入阶段,将模板图像和模板图像对应的属性信息加入图像数据库时,可以对每种属性信息采集具有该属性信息的各种取值的模板图像。采用这种方式,可以采集尽可能丰富的模板图像,进而能够提高图像识别的成功率。It should be noted that, in the input stage, when the template image and the attribute information corresponding to the template image are added to the image database, template images with various values of the attribute information can be collected for each attribute information. In this way, as many template images as possible can be collected, thereby improving the success rate of image recognition.
下面以形态特征信息为轮廓信息为例,进行示例性说明。The following takes the morphological feature information as the contour information as an example for illustrative description.
图4为本申请实施例提供的图像匹配方法的流程示意图二。如图4所示,本申请实施例的步骤可以包括:FIG. 4 is a second schematic flowchart of an image matching method provided by an embodiment of the present application. As shown in FIG. 4 , the steps in this embodiment of the present application may include:
S401,获取模板对象的至少一个第一模板图像。S401. Acquire at least one first template image of a template object.
其中,可以通过图像采集装置采集模板对象的至少一个第一模板图像Wherein, at least one first template image of the template object can be collected by the image collection device
S402,获取模板对象的轮廓信息。S402, obtain the outline information of the template object.
其中,可以通过触控装置获取模板对象的轮廓信息,模板对象的轮廓信息用于确定至少一个第一模板图像在模板对象的轮廓信息中的区域位置标识。Wherein, the outline information of the template object may be acquired through the touch device, and the outline information of the template object is used to determine the region position identifier of the at least one first template image in the outline information of the template object.
在本申请实施例中,举例来说,模板对象可以为第一模板对象,例如,用户1的右手食指的指纹部。采集模板图像的方式、获取模板对象的轮廓信息的方式,以及确定区域位置标识的方式,可参见本申请其他实施例中的描述。In the embodiment of the present application, for example, the template object may be the first template object, for example, the fingerprint part of the index finger of the right hand of the user 1 . For the manner of collecting the template image, the manner of acquiring the outline information of the template object, and the manner of determining the region position identifier, reference may be made to the descriptions in other embodiments of the present application.
S403,根据模板对象的轮廓信息确定各个第一模板图像在模板对象的轮廓信息中的区域位置标识。S403: Determine, according to the outline information of the template object, a region position identifier of each first template image in the outline information of the template object.
在本申请实施例中,确定区域位置标识的方式,可参见本申请其他实施例中的描述。In this embodiment of the present application, reference may be made to descriptions in other embodiments of the present application for the manner of determining the area location identifier.
S404,在至少一个第一模板图像对应的区域位置标识的集合未满足覆盖条件时,采集模板对象的第二模板图像。S404: Collect a second template image of the template object when the set of region location identifiers corresponding to at least one first template image does not satisfy the coverage condition.
其中,至少一个第一模板图像和第二模板图像用于查询与待识别图像相匹配的目标模板图像。Wherein, at least one of the first template image and the second template image is used to query the target template image matching the image to be recognized.
在本申请实施例中,上述覆盖条件可以包括:覆盖模板对象的至少一个局部区域;覆盖模板对象的边缘区域超过预设覆盖比例的边缘覆盖条件,或者,覆盖模板对象的 轮廓信息超过预设覆盖比例的全局覆盖条件。在一示例中,预设覆盖比例可以是50%、90%等。In the embodiment of the present application, the above coverage conditions may include: covering at least one local area of the template object; covering the edge area of the template object exceeding the edge coverage condition of the preset coverage ratio, or, covering the outline information of the template object exceeding the preset coverage A global override condition for the scale. In an example, the preset coverage ratio may be 50%, 90%, or the like.
图5A为本申请实施例提供的图像匹配方法中边缘区域的模板图像的位置示意图。如图5A所示,例如,可以检查已采集到的模板图像是否覆盖了模板对象的边缘区域,或者,是否完整覆盖了模板对象的全部区域。当未采集到足够的模板图像时,可以提示用户继续采集未覆盖区域的模板图像。采用这种方式能够提高图像匹配的成功率。FIG. 5A is a schematic diagram of the position of a template image of an edge region in an image matching method provided by an embodiment of the present application. As shown in FIG. 5A , for example, it can be checked whether the acquired template image covers the edge area of the template object, or whether it completely covers the entire area of the template object. When not enough template images are collected, the user may be prompted to continue collecting template images of the uncovered area. In this way, the success rate of image matching can be improved.
在其他一些实施例中,在步骤S404之前,本申请实施例的步骤还可以包括:In some other embodiments, before step S404, the steps in this embodiment of the present application may further include:
S405,根据至少一个第一模板图像对应的区域位置标识的集合和覆盖条件,确定补采区。S405: Determine the supplementary mining area according to the set of area location identifiers and coverage conditions corresponding to the at least one first template image.
其中,补采区可以为至少一个第一模板图像未满足覆盖条件的区域。例如,覆盖条件为覆盖中心区域和第一边缘区域,至少一个第一模板图像仅覆盖中心区域,则补采区可以为第一边缘区域。Wherein, the supplementary mining area may be an area where at least one first template image does not satisfy the coverage condition. For example, if the coverage condition is to cover the center area and the first edge area, and at least one first template image only covers the center area, the supplementary mining area may be the first edge area.
S406,输出提示信息,提示信息用于提示录入包含补采区的模板对象的第二模板图像。S406: Output prompt information, where the prompt information is used to prompt the input of a second template image of the template object including the supplementary mining area.
在实际应用中,举例来说,图像采集装置可以为指纹传感器;触控装置为电子设备中的触摸屏;指纹传感器设置于触摸屏靠近电子设备的本体的一侧,可参看图1C所示。输出提示信息可以通过触摸屏提示,也可以通过音响等装置提示。In practical applications, for example, the image acquisition device can be a fingerprint sensor; the touch device is a touch screen in an electronic device; the fingerprint sensor is disposed on the side of the touch screen close to the body of the electronic device, as shown in FIG. 1C . The output prompt information can be prompted through a touch screen, or through a device such as a sound.
图5B为本申请实施例提供的图像匹配方法的应用场景的示意图三。在实际应用中,如图5B所示为用户在指纹录入系统的指纹录入界面上录入指纹。若已经采集该手指的一个或多个指纹,但已采集的指纹图像没有覆盖到指纹轮廓的左侧边缘时,可以在触摸屏上显示提示信息“已采集指纹未覆盖指纹轮廓的左侧边缘,请您旋转手指,继续录入指纹”。FIG. 5B is a schematic diagram 3 of an application scenario of the image matching method provided by the embodiment of the present application. In practical applications, as shown in FIG. 5B , the user enters a fingerprint on the fingerprint entry interface of the fingerprint entry system. If one or more fingerprints of the finger have been collected, but the collected fingerprint image does not cover the left edge of the fingerprint outline, a prompt message "The collected fingerprint does not cover the left edge of the fingerprint outline, please You rotate your finger to continue enrolling your fingerprints".
需要说明的是,步骤S405和S406不是本申请实施例必须执行的步骤。It should be noted that steps S405 and S406 are not steps that must be performed in this embodiment of the present application.
在步骤S403之前,本申请实施例的步骤还可以包括:通过姿态传感器采集电子设备的三维姿态信息,之后,可以根据利用触控装置获取的模板对象的轮廓信息修正各个第一模板对象在模板对象的轮廓信息中的区域位置标识。可参看本申请其他实施例中的详细描述。Before step S403, the steps in this embodiment of the present application may further include: collecting the three-dimensional attitude information of the electronic device through the attitude sensor, and then correcting the position of each first template object in the template object according to the outline information of the template object obtained by using the touch device. The region location identifier in the contour information of . Please refer to the detailed description in other embodiments of the present application.
在实际应用中,举例来说,在模板图像的录入阶段的步骤可以包括:对第一模板对象采集第P-1个模板图像和第P-1个模板图像对应的第一模板对象的第P-1个轮廓信息;其中,P可以为大于或者等于2的整数。根据第P-1个轮廓信息确定第P-1个模板图像在第P-1个轮廓信息中的区域位置标识。若第一模板对象的第1个至第P-1个模板图像对应的第1个至第P-1个区域位置标识的集合未能满足全局覆盖条件。可以继续对第一模板对象采集第P个模板图像和第P个模板图像对应的第一模板对象的第P个轮廓信息。若第1个至第P个模板图像对应的第1个至第P个区域位置标识的结合仍未能满足全局覆盖条件,还可以继续对第一模板对象采集第P+1个模板图像和第P+1个模板图像对应的第一模板对象的第P+1个轮廓信息。当已采集的第一模板对象的模板图像对应区域位置标识的集合达到全局覆盖条件时,可以结束录入。采用这种方式得到的图像数据库中可以至少包括第一模板对象的P个模板图像。需要说明的是,获取相对应的第一模板图像的时刻与获取第一模板对象的轮廓信息的时刻之间的时间差值小于预设的时间偏差阈值;示例性地,可以同时获取相对应的第一模板图像以及获取第一模板对象的轮廓信息。In practical applications, for example, the steps in the template image entry stage may include: collecting the P-1 th template image and the P-th template object corresponding to the P-1 th template image for the first template object -1 contour information; wherein, P can be an integer greater than or equal to 2. The region position identifier of the P-1 th template image in the P-1 th outline information is determined according to the P-1 th outline information. If the set of the 1st to P-1th area location identifiers corresponding to the 1st to P-1th template images of the first template object fails to satisfy the global coverage condition. The P th template image and the P th contour information of the first template object corresponding to the P th template image may continue to be collected from the first template object. If the combination of the 1st to Pth region location identifiers corresponding to the 1st to Pth template images still fails to satisfy the global coverage condition, the P+1th template image and The P+1th contour information of the first template object corresponding to the P+1 template images. When the set of the region location identifiers corresponding to the collected template image of the first template object reaches the global coverage condition, the input can be ended. The image database obtained in this way may include at least P template images of the first template object. It should be noted that the time difference between the moment of acquiring the corresponding first template image and the moment of acquiring the outline information of the first template object is less than a preset time deviation threshold; exemplarily, the corresponding The first template image and the contour information of the first template object are obtained.
采用本申请实施例提供的图像匹配方法,可以在模板图像的录入阶段,采集尽量充分的模板图像,例如,采集包含边缘区域的模板图像,或者,通过采集多张模板图像以覆盖模板对象的轮廓信息,即构建全局指纹模板库,从而可以避免由于待识别图像为位于待检测对象的边缘位置或者某些特殊位置的图像时导致的识别失败的问题。By using the image matching method provided by the embodiment of the present application, it is possible to collect as much template image as possible in the template image input stage, for example, to collect a template image including an edge area, or to collect a plurality of template images to cover the outline of the template object information, that is, to build a global fingerprint template library, so as to avoid the problem of recognition failure caused when the image to be recognized is located at the edge of the object to be detected or at some special position.
实施例四Embodiment 4
在实际应用中,举例来说,图像数据库中可以存储每个模板图像对应的模板三元组,示例性地,模板三元组可以包括模板图像、全局位置信息和上述用户姿态信息中的全局方向信息。其中,全局位置信息可以简称为模板位置,全局方向信息可以简称为模板方向。In practical applications, for example, a template triplet corresponding to each template image may be stored in the image database. Exemplarily, the template triplet may include a template image, global position information, and the global orientation in the above-mentioned user gesture information information. The global position information may be referred to as template position for short, and the global direction information may be referred to as template direction for short.
在本申请实施例中,在录入阶段,可以多次执行步骤S101至S105,以录入多个模板图像以及模板图像的属性信息。其中,对于一个对象标识采集多个模板图像和对应的属性信息时,还可以设置停止录入条件。下面对录入阶段的处理流程进行示例性说明。In this embodiment of the present application, in the input stage, steps S101 to S105 may be performed multiple times to input multiple template images and attribute information of the template images. Wherein, when a plurality of template images and corresponding attribute information are collected for an object identification, a condition for stopping inputting may also be set. The following is an exemplary description of the processing flow of the input stage.
本申请实施例提供的技术方案可应用于指纹识别技术领域,指纹识别技术是一种生物特征识别技术,生物特征识别可以通过传感器设备将生物特征捕获为数字信号。本申请实施例提供的图像匹配方法可以用于提供指纹识别系统。指纹识别系统可以为包括指纹图像获取、预处理、特征提取、比对等模块的模式识别系统,可用于需要人员身份确认的场所,例如手机解锁、笔记本解锁、移动支付、银行内部处理、门禁系统及考勤系统等场景。可参看图1C,在智能终端设备上部署指纹识别系统时,可以将指纹识别器设置在屏幕下面,识别器透过屏幕对用户的指纹进行信息采集和匹配识别。指纹识别器可结合光学识别、电容识别以及超声波识别等多种方式来进行。屏下指纹识别技术主要采用屏下光学指纹识别和屏下超声波识别。The technical solutions provided by the embodiments of the present application can be applied to the field of fingerprint identification technology. The fingerprint identification technology is a biometric identification technology, and the biometric identification can capture the biometrics as a digital signal through a sensor device. The image matching method provided by the embodiments of the present application can be used to provide a fingerprint identification system. The fingerprint recognition system can be a pattern recognition system including fingerprint image acquisition, preprocessing, feature extraction, comparison and other modules, and can be used in places that require personnel identity confirmation, such as mobile phone unlocking, notebook unlocking, mobile payment, bank internal processing, access control system and attendance system. Referring to FIG. 1C , when a fingerprint identification system is deployed on a smart terminal device, a fingerprint reader can be set under the screen, and the reader can collect information and match and identify the user's fingerprint through the screen. The fingerprint reader can be combined with optical recognition, capacitive recognition and ultrasonic recognition. The under-screen fingerprint recognition technology mainly uses under-screen optical fingerprint recognition and under-screen ultrasonic recognition.
与前述实施例所示方法类似,本申请实施例提供的图像匹配方法可以包括:指纹录入阶段和指纹识别阶段。Similar to the methods shown in the foregoing embodiments, the image matching method provided by the embodiments of the present application may include: a fingerprint entry stage and a fingerprint identification stage.
其中,指纹录入阶段可以针对用户手指构建全局指纹模板库。全局指纹模板库可简称为全局模板库,指纹模板图像可简称为指纹模板。全局模板库可以包含每份指纹模板的属性信息。示例性地,每份指纹模板的属性信息可以包括每份指纹模板在用户手指整体指纹中的全局位置信息和全局方向信息、模板库对应的全局指纹轮廓以及对应的手指类型,例如:左右手、拇指、食指及中指等。Among them, in the fingerprint entry stage, a global fingerprint template library can be constructed for the user's finger. The global fingerprint template library may be referred to as a global template library for short, and the fingerprint template image may be referred to as a fingerprint template for short. The global template library can contain attribute information of each fingerprint template. Exemplarily, the attribute information of each fingerprint template may include the global position information and global orientation information of each fingerprint template in the overall fingerprint of the user's finger, the global fingerprint profile corresponding to the template library, and the corresponding finger type, such as: left and right hands, thumb , index and middle fingers, etc.
全局指纹模板库可以包括指纹图像和指纹图像对应的属性信息,一组指纹图像和指纹图像对应的属性信息可以称为一个指纹模板,每个指纹模板可以包括指纹图像、全局位置信息、全局方向信息,也可以称为指纹模板三元组。The global fingerprint template library can include fingerprint images and attribute information corresponding to fingerprint images, a set of fingerprint images and attribute information corresponding to fingerprint images can be called a fingerprint template, and each fingerprint template can include fingerprint images, global location information, and global orientation information. , which can also be called fingerprint template triples.
需要说明的是,利用捕获的触控信号序列、姿态传感器数据,一方面,能够估计出当前录入手指的轮廓和类型信息。另一方面,根据轮廓信息、指纹图像采集器相对于触控屏的硬件位置信息以及屏幕触控点阵的像素信息,可以估计出被捕获指纹图像在手指整体指纹中的全局位置信息、全局方向信息。It should be noted that, using the captured touch signal sequence and attitude sensor data, on the one hand, the profile and type information of the currently entered finger can be estimated. On the other hand, according to the contour information, the hardware position information of the fingerprint image collector relative to the touch screen, and the pixel information of the screen touch dot matrix, the global position information and global orientation of the captured fingerprint image in the overall fingerprint of the finger can be estimated. information.
图6为本申请实施例提供的图像匹配方法中指纹录入阶段的处理流程的示意图。FIG. 6 is a schematic diagram of a processing flow of a fingerprint entry stage in an image matching method provided by an embodiment of the present application.
如图6所示,在实际应用中,录入阶段的处理流程可以包括:As shown in Figure 6, in practical applications, the processing flow of the input stage may include:
第一步,提示用户在指定区域录入指纹。The first step is to prompt the user to enter fingerprints in the designated area.
其中,若为录入开始阶段,可以将全局指纹模板库及其对应的指纹轮廓和类型设置为空。若全局指纹模板库中已经存储有该手指的指纹模板,则根据设备存储区中模板库的现有信息,判断目前还需用户录入的指纹区域,并以图像展示的形式在显示装置上提示用户录入手指指定区域的指纹。可参看图5B所示的图形用户界面的示意。Among them, if it is at the beginning of entry, the global fingerprint template library and its corresponding fingerprint profile and type can be set as empty. If the fingerprint template of the finger is already stored in the global fingerprint template library, then according to the existing information in the template library in the device storage area, determine the fingerprint area that still needs to be entered by the user, and prompt the user on the display device in the form of image display Enter the fingerprint of the designated area of the finger. Refer to the illustration of the graphical user interface shown in FIG. 5B .
第二步,捕获指纹图像和触控信号。The second step is to capture fingerprint images and touch signals.
其中,指纹认证系统可以在收到触控信号后分别获取指纹图像、触控信号序列及姿态传感器数据。该步骤的实施方式可参看步骤S101和S102中的相关说明。Among them, the fingerprint authentication system can obtain fingerprint image, touch signal sequence and attitude sensor data respectively after receiving the touch signal. For the implementation of this step, reference may be made to the relevant descriptions in steps S101 and S102.
第三步,提取模板图像,并确定手指轮廓、类型。The third step is to extract the template image, and determine the outline and type of the finger.
其中,使用第二步获取的多帧触控信号以及姿态传感器数据等信息,估计当前录入手指的轮廓和类型。该步骤的实施方式可参看步骤S103中根据触控信号确定形态特征信息以及S104根据形态特征信息的属性信息的相关说明Among them, the outline and type of the currently entered finger are estimated by using the multi-frame touch signals obtained in the second step and the data of the attitude sensor and other information. For the implementation of this step, please refer to the related descriptions of determining the morphological feature information according to the touch signal in step S103 and S104 according to the attribute information of the morphological feature information
第四步,确定模板三元组,其中包括模板图像、模板位置、模板方向。The fourth step is to determine template triples, including template image, template position, and template direction.
其中,根据提取的模板图像对应的触控信号,定位指纹模板在手指轮廓中的全局位置信息和方向信息。举例来说,在推断出录入手指轮廓后,每个录入指纹模板均可以根据屏幕触控点阵的像素位置信息和指纹传感器采集区域在屏幕上的绝对位置信息,计算出采集的指纹模板在手指轮廓中的全局位置信息和全局方向信息。可参看图1D所示,示例性地,可以基于指纹部的轮廓确定参考坐标系,然后在参考坐标系中标识采集的指纹模板在手指轮廓信息中的区域位置标识、全局方向信息等。该步骤的实施方式可参看步骤S104中确定模板图像在模板对象的轮廓信息中的全局位置信息的详细说明。Wherein, according to the touch signal corresponding to the extracted template image, the global position information and orientation information of the fingerprint template in the finger contour are located. For example, after deducing the profile of the entered finger, each entered fingerprint template can calculate the position of the collected fingerprint template on the finger according to the pixel position information of the touch dot matrix on the screen and the absolute position information of the fingerprint sensor collection area on the screen. Global position information and global orientation information in the contour. Referring to FIG. 1D , for example, a reference coordinate system can be determined based on the contour of the fingerprint portion, and then the region position identification, global orientation information, etc. of the collected fingerprint template in the finger contour information can be identified in the reference coordinate system. For the implementation of this step, reference may be made to the detailed description of determining the global position information of the template image in the outline information of the template object in step S104.
第五步,判断当前模板三元组是否已存在于全局模板库,若是,执行第一步,若否,执行第六步。The fifth step is to judge whether the current template triplet already exists in the global template library, if so, execute the first step, and if not, execute the sixth step.
其中,将提取的模板图像与全局模板库中模板图像进行属性信息的相似度比较,来判断提取的模板图像是否存在于全局模板库。示例性地,属性信息的相似度可以根据如下公式计算:The similarity of attribute information between the extracted template image and the template image in the global template library is compared to determine whether the extracted template image exists in the global template library. Exemplarily, the similarity of attribute information can be calculated according to the following formula:
属性信息相似度百分比=权重1*两图像相似度百分比-权重2*两图像全局位置信息的距离-权重3*两图像全局方向信息的差值Similarity percentage of attribute information = weight 1 * similarity percentage of two images - weight 2 * distance of global position information of two images - weight 3 * difference of global orientation information of two images
需要说明的是,在一些场景中,也可以将权重2、权重3设置为0。It should be noted that, in some scenarios, weight 2 and weight 3 can also be set to 0.
第六步,将当前模板三元组加入全局模板库。The sixth step is to add the current template triplet to the global template library.
其中,以指纹模板图像信息、全局位置信息、全局方向信息为三元组存入全局指纹模板库,更新手指编号、类型并丰富全局手指轮廓。Among them, the triplet of fingerprint template image information, global position information, and global orientation information is stored in the global fingerprint template database, and the finger number and type are updated and the global finger contour is enriched.
举例来说,将从当次录入提取出的指纹图像信息、全局位置信息和全局方向信息合并为三元组,与现有指纹全局模板库中存在的模板进行相似度比对。若相似度大于某阈值,则判断当前提取的模板三元组已在全局模板库中。此时,可以根据提取的模板全局位置信息判断用户录入的指纹位置是否为第一步要求的录入区域,如果不满足录入区域的要求,则请求用户再次录入要求的区域,并转入第一步。若相似度小于或者等于某阈值,则判断当前提取的模板三元组是否不存在于已构建的全局指纹模板库中,若不存在,将其加入全局指纹模板库,并使用当前录入提取到的手指轮廓和类型更新当前全局指纹模板库对应的手指轮廓的覆盖程度信息和类型。在一示例中,可以将指纹模板图像信息、全局位置信息、全局方向信息为三元组存入全局指纹模板库,并更新手指编号、类型并丰富全局手指轮廓 的覆盖程度信息。需要说明的是,当本次录入为第一次录入时,可以使用当前录入提取到的手指轮廓和类型更新当前全局指纹模板库对应的手指轮廓和类型。若为第一次录入,由于第一次录入时全局模板库为空,可以跳过第五步的比对步骤。For example, the fingerprint image information, global position information and global orientation information extracted from the current entry are combined into triples, and the similarity is compared with the templates existing in the existing fingerprint global template database. If the similarity is greater than a certain threshold, it is determined that the currently extracted template triplet is already in the global template library. At this time, it can be judged whether the fingerprint location entered by the user is the entry area required by the first step according to the extracted global location information of the template, and if it does not meet the requirements of the entry area, request the user to enter the required area again, and go to the first step . If the similarity is less than or equal to a certain threshold, judge whether the currently extracted template triplet does not exist in the constructed global fingerprint template library, if not, add it to the global fingerprint template library, and use the currently extracted template triplet Finger profile and type update the coverage degree information and type of the finger profile corresponding to the current global fingerprint template library. In one example, the fingerprint template image information, global position information, and global orientation information can be stored as triples in the global fingerprint template library, and the finger number and type can be updated and the coverage degree information of the global finger contour can be enriched. It should be noted that when this entry is the first entry, the finger outline and type corresponding to the current global fingerprint template library can be updated using the finger outline and type extracted from the current entry. If it is the first entry, since the global template library is empty during the first entry, the comparison step of the fifth step can be skipped.
第七步,判断是否结束录入,若不结束,转入第一步。The seventh step is to judge whether to end the input, if not, go to the first step.
其中,可以采用判断全局模板库是否完整,或者,判断录入次数是否达到录入次数上限,或者,组合判断的方式来判断是否结束录入。Wherein, it can be judged whether the global template library is complete, or whether the number of entries has reached the upper limit of the number of entries, or whether the entry is to be terminated by a combined judgment method.
举例来说,可以判断录入次数是否满足录入次数上限。若满足录入次数上限,则提示用户指纹录入完成。若未达到录入次数上限,根据已保存指纹模板库中的全局位置信息判断部分区域的模板信息是否缺失较多,例如,可以判断覆盖轮廓信息的覆盖百分比是否低于预设的覆盖比例阈值。若缺失较多,则确定全局指纹模板库仍不完整,输出提示信息,提示用户录入缺失区域的指纹。若部分区域的模板信息不缺失或者缺失较少,可以进一步判断全局手指轮廓内的模板信息是否满足预设的模板数量阈值。若模板数量未达到模板数量阈值,则全局指纹模板库仍不完整,可以进一步提示用户录入模板数量较少的区域。若模板数量达到模板数量阈值,则可以确定全局指纹模板库已构建完成,为当前录入手指编号并绑定其相应的全局指纹轮廓和类型,提示用户指纹录入完成。示例性地,可以将指纹轮廓划分为若干区域,例如,中心区域和边缘区域,每个区域的模板数量不小于1张。For example, it can be determined whether the number of entries meets the upper limit of the number of entries. If the upper limit of the number of entries is met, the user is prompted to complete the fingerprint entry. If the upper limit of the number of entries is not reached, it is determined whether the template information in some areas is missing more according to the global location information in the saved fingerprint template library. For example, it can be determined whether the coverage percentage of the coverage contour information is lower than a preset coverage ratio threshold. If there are many missing areas, it is determined that the global fingerprint template library is still incomplete, and a prompt message is output to prompt the user to enter the fingerprints in the missing area. If the template information in the partial area is not missing or is missing less, it can be further determined whether the template information in the global finger contour meets the preset number of templates threshold. If the number of templates does not reach the threshold of the number of templates, the global fingerprint template library is still incomplete, and the user can be further prompted to enter an area with a small number of templates. If the number of templates reaches the threshold of the number of templates, it can be determined that the global fingerprint template library has been constructed, and the number of the currently entered finger is bound to its corresponding global fingerprint profile and type, and the user is prompted to complete the fingerprint entry. Exemplarily, the fingerprint contour can be divided into several areas, for example, a central area and an edge area, and the number of templates in each area is not less than one.
在一种可选的实施方式中,示例性地,指纹识别阶段的主要过程包括:首先,推断当前待识别的指纹的属性信息。示例性地,指纹的属性信息可以包括指纹所属手指类型及在全局指纹模板库中的大致区域。然后,将指纹模板三元组中的全局位置信息和全局方向信息,与推断的轮廓结合,估计出当前待识别指纹在全局模板库中的大致区域。然后,在指纹匹配阶段,优先匹配推断手指类型的模板图像和推断的模板大致区域内的模板图像。借助于全局模板库中已保存的手指类型信息和各个模板图像的全局位置信息,在推断出当前待识别指纹所属手指的类型和全局位置信息所属大致区域后,即可筛选出全局模板库中手指类型相符合、全局位置信息位于推断大致区域内的模板三元组,将筛选出的至少一个模板三元组与当前待识别指纹的三元组进行优先匹配,能够实现精准匹配,从而提升指纹识别的速度。In an optional implementation manner, for example, the main process of the fingerprint identification stage includes: first, infer the attribute information of the current fingerprint to be identified. Exemplarily, the attribute information of the fingerprint may include the type of the finger to which the fingerprint belongs and the approximate area in the global fingerprint template database. Then, the global position information and global orientation information in the triplet of the fingerprint template are combined with the inferred contour to estimate the approximate area of the current fingerprint to be recognized in the global template library. Then, in the fingerprint matching stage, the template image of the inferred finger type and the template image in the approximate region of the inferred template are preferentially matched. With the help of finger type information saved in the global template library and the global position information of each template image, after inferring the type of the finger to which the fingerprint to be recognized belongs and the approximate area to which the global position information belongs, the fingers in the global template library can be filtered out. For template triples whose types match and whose global location information is located in the approximate area of inference, at least one template triple filtered out is preferentially matched with the triple of the current fingerprint to be identified, which can achieve accurate matching and improve fingerprint recognition. speed.
采用本申请实施例提供的技术方案,若当前按压的指纹属于模板库中手指的指纹,通过该手段,可在短时间内完成指纹的匹配过程,加速屏下指纹识别过程,提升用户体验。With the technical solutions provided in the embodiments of the present application, if the currently pressed fingerprint belongs to the fingerprint of the finger in the template library, by this method, the fingerprint matching process can be completed in a short time, the fingerprint recognition process under the screen is accelerated, and the user experience is improved.
图7为本申请实施例提供的图像匹配方法中指纹识别阶段的处理逻辑的示意图。FIG. 7 is a schematic diagram of processing logic in a fingerprint identification stage in an image matching method provided by an embodiment of the present application.
如图7所示,在实际应用中,识别阶段的处理流程可以包括:As shown in Figure 7, in practical applications, the processing flow of the identification stage may include:
第一步,获取待识别指纹图像和触控信号。The first step is to obtain the fingerprint image and touch signal to be recognized.
其中,该步骤类似于指纹录入阶段的第二步。指纹认证系统在收到触控信号后,判断是否为手指按压,若为手指按压,则获取当前按压过程产生的指纹图像、触控信号序列以及额外的姿态传感器数据。Among them, this step is similar to the second step of the fingerprint entry stage. After receiving the touch signal, the fingerprint authentication system determines whether it is a finger press, and if it is a finger press, obtains the fingerprint image, touch signal sequence and additional attitude sensor data generated by the current pressing process.
第二步,提取待识别指纹图像,并确定当前手指轮廓、类型。In the second step, the fingerprint image to be recognized is extracted, and the current finger outline and type are determined.
其中,类似于指纹录入阶段的第三步。根据多帧触控信号和姿态传感器数据,估计当前录入手指的轮廓和类型。根据触控信号定位待识别指纹图像在手指轮廓中的全局位置信息和全局方向信息。Among them, it is similar to the third step of the fingerprint entry stage. According to the multi-frame touch signal and gesture sensor data, the outline and type of the currently recorded finger are estimated. The global position information and global orientation information of the fingerprint image to be recognized in the finger contour are located according to the touch signal.
第三步,推断待识别指纹图像三元组以及所属大致区域。The third step is to infer the triplet of the fingerprint image to be identified and the approximate area to which it belongs.
其中,该步骤可参看步骤。Among them, for this step, please refer to the step.
第四步,优先匹配推断手指及推断区域的模板图像。The fourth step is to preferentially match the template images of the inferred finger and the inferred region.
第五步,判断在推断手指类型或者推断区域的模板图像中是否均未匹配成功,若否,执行第六步,若是,确认认证成功。In the fifth step, it is judged whether the template image of the inferred finger type or the inferred region has not been matched successfully.
其中,在推断手指类型或者推断区域的模板图像中均未匹配成功时,有可能是推断手指类型或者推断的大致区域不准确导致匹配不成功,此时,后续还可以匹配全局模板库中的其他模板图像。Among them, when the template image of the inferred finger type or the inferred region fails to match successfully, it may be that the inferred finger type or the inferred approximate region is inaccurate, resulting in the unsuccessful matching. Template image.
第六步:按历史统计排序信息匹配全局模板库的其他模板图像。Step 6: Match other template images of the global template library according to historical statistical sorting information.
第七步,判断在全局模板库的其他模板图像中是否匹配成功,若否,确认认证失败,若是,确认认证成功。The seventh step is to judge whether the matching is successful among other template images in the global template library, if not, confirm that the authentication fails, and if so, confirm that the authentication is successful.
其中,在认证成功后,指纹识别系统可以更新历史统计排序信息,提示用户指纹识别成功,在认证识别时,可以提示用户指纹识别失败。Wherein, after the authentication is successful, the fingerprint identification system can update the historical statistical ranking information to prompt the user that the fingerprint identification is successful, and during the authentication and identification, it can prompt the user that the fingerprint identification fails.
举例来说,在全局指纹模板库中,每个指纹模板均对应有相应的手指类型和全局位置信息、全局方向信息等信息。首先,根据第二步中推断的当前按压手指类型,将优先匹配范围限制为全局模板库中手指类型为推断手指的模板图像。其次,通过计算全局模板库中保存的模板三元组中全局位置信息与当前待识别指纹的三元组位置信息之间的某种距离度量,判断全局模板库中的模板图像是否位于第三步推断的当前待识别指纹所属大致区域。在一示例中,若距离度量值小于第三步的详细描述中指定的半径,则判断该模板图像位于该大致区域之内。进而,在进行模板匹配时,优先匹配属于该大致区域的模板图像。For example, in the global fingerprint template library, each fingerprint template corresponds to a corresponding finger type, global position information, global orientation information and other information. First, according to the current pressing finger type inferred in the second step, the priority matching range is limited to the template image whose finger type is the inferred finger in the global template library. Secondly, by calculating a certain distance metric between the global position information in the template triplet saved in the global template library and the position information of the triplet of the current fingerprint to be identified, it is judged whether the template image in the global template library is located in the third step. The approximate area to which the inferred current fingerprint to be recognized belongs. In one example, if the distance metric value is smaller than the radius specified in the detailed description of the third step, it is determined that the template image is located within the approximate area. Furthermore, when performing template matching, the template images belonging to the approximate region are preferentially matched.
需要说明的是,此处优先匹配推断手指类型及推断区域可以采用如下两种情形的匹配流程:It should be noted that, the inferred finger type and the inferred area can be preferentially matched here, and the matching process of the following two situations can be adopted:
一示例中,先执行第四步优先匹配推断手指类型的推断区域的模板图像,其次匹配推断手指类型的非推断区域的模板图像,再匹配非推断手指类型的推断区域的模板图像,最后转入第五步,根据历史统计排序信息匹配非推断手指类型的非推断模板区域。若在其中任何一步匹配成功则终止匹配。In one example, the fourth step is performed first to firstly match the template image of the inferred area of the inferred finger type, secondly to match the template image of the non-inferred area of the inferred finger type, and then to match the template image of the inferred area of the non-inferred finger type, and finally transfer to The fifth step is to match non-inferred template regions of non-inferred finger types according to historical statistical ranking information. If a match succeeds at any of these steps, the match is terminated.
在另一示例中,先执行第四步优先匹配推断手指类型的推断区域的模板图像,其次匹配非推断手指类型的推断区域的模板图像,再匹配推断手指类型的非推断模板区域,最后转入第五步,根据历史统计排序信息匹配非推断手指类型的非推断模板区域;若在其中任何一步匹配成功则终止匹配。In another example, the fourth step is firstly performed to firstly match the template image of the inferred area of the inferred finger type, secondly match the template image of the inferred area of the non-inferred finger type, then match the non-inferred template area of the inferred finger type, and finally transfer to The fifth step is to match the non-inferred template region of the non-inferred finger type according to the historical statistical sorting information; if the matching is successful in any step, the matching is terminated.
采用优先基于置信度较高的推断手指类型以及推断区域的模板图像进行匹配的方式,由于大多数指纹识别过程均可在第四步中成功认证,因而能够尽量避免后续匹配其他模板图像的过程,可有效加速受信指纹的识别速度,提升指纹认证的速度,并能够一定程度地降低功耗。The method of matching based on the inferred finger type with high confidence and the template image of the inferred area is adopted. Since most fingerprint recognition processes can be successfully authenticated in the fourth step, the subsequent process of matching other template images can be avoided as much as possible. It can effectively accelerate the recognition speed of trusted fingerprints, improve the speed of fingerprint authentication, and reduce power consumption to a certain extent.
基于上述指纹录入阶段和指纹匹配识别阶段的技术方案,本申请实施例提供的图像匹配方法,能够解决指纹识别场景中的多种技术问题。Based on the above-mentioned technical solutions in the fingerprint entry stage and the fingerprint matching identification stage, the image matching method provided by the embodiments of the present application can solve various technical problems in the fingerprint identification scene.
一方面,在指纹录入阶段,建立手指的全局指纹模板库,能够避免由于模板不全导致识别失败或者识别效率低问题。指纹模板库主要用于在用户使用指纹认证时,判断按压指纹是否存在于模板库中,或者,与模板库中的模板图像的相似度足够高,即前述实施例提 到的按照图像相似度进行匹配的过程。On the one hand, in the fingerprint entry stage, establishing a global fingerprint template library of fingers can avoid the problem of recognition failure or low recognition efficiency due to incomplete templates. The fingerprint template library is mainly used to judge whether the pressed fingerprint exists in the template library when the user uses fingerprint authentication, or, the similarity with the template image in the template library is high enough, that is, the above-mentioned embodiment mentioned in the image similarity degree. matching process.
在指纹录入阶段为受信任的用户保存足够充分的指纹模板库,能够提升后期指纹识别阶段用户的解锁精度,并且有助于后期指纹识别阶段中快速定位模板库中与捕捉到的指纹图像相关的模板图像。例如,相对于模板库中的信息仅包含从每次录入指纹图片中提取的局部图像信息(或者称为局部拓扑),并不包含指纹图像(或者称为局部指纹)在录入手指指纹(或者称为全局指纹)中的绝对位置信息(或者称为全局拓扑)的情况,本申请实施例提供的方法能够快速进行模板图像的筛选和匹配,从而提高匹配的效率。又如,本申请实施例提供的技术方案能够帮助指纹系统判断当前构建的模板库是否足够充分以使得用户能够有效地解锁,例如,模板库是否包含用户的边缘指纹。In the fingerprint entry stage, a sufficient fingerprint template library is saved for trusted users, which can improve the user's unlocking accuracy in the later fingerprint identification stage, and help to quickly locate the fingerprint image related to the captured fingerprint image in the later fingerprint identification stage. Template image. For example, relative to the information in the template library, it only contains the partial image information (or called partial topology) extracted from each fingerprint image entry, and does not include the fingerprint image (or called partial fingerprint) in the entry of finger fingerprints (or called partial fingerprint). In the case of absolute position information (or referred to as global topology) in the global fingerprint), the method provided by the embodiment of the present application can quickly perform the screening and matching of template images, thereby improving the matching efficiency. For another example, the technical solutions provided by the embodiments of the present application can help the fingerprint system to determine whether the currently constructed template library is sufficient to enable the user to unlock effectively, for example, whether the template library contains the user's edge fingerprint.
另一方面,在指纹识别阶段,通过对模板图像进行筛选,能够解决由于模板图像较多,导致匹配速率较低的问题。特别的是,通过快速定位捕获的指纹图像在全局指纹模板库中的位置,能够减少需要判断是否相匹配的模板图像的数量,从而提升匹配的效率,同时,基于全局模板库成功率。其中,例如,在指纹认证时,主要是认证速度和准确度影响用户的体验。本申请实施例提供的技术方案快速地精准定位指纹图像在指纹模板库中的位置以进行迅速地匹配,从而加速指纹识别速度。此外,借助于全局拓扑下的指纹模板库,可以尽可能地最大化指纹识别准确度,避免用户的边缘指纹被指纹识别系统拒认。On the other hand, in the fingerprint identification stage, by screening template images, the problem of low matching rate due to too many template images can be solved. In particular, by quickly locating the position of the captured fingerprint image in the global fingerprint template library, the number of template images that need to be judged for matching can be reduced, thereby improving the matching efficiency, and at the same time, based on the global template library success rate. Among them, for example, in fingerprint authentication, the authentication speed and accuracy mainly affect the user's experience. The technical solutions provided by the embodiments of the present application rapidly and accurately locate the position of the fingerprint image in the fingerprint template database for rapid matching, thereby accelerating the fingerprint recognition speed. In addition, with the help of the fingerprint template library under the global topology, the accuracy of fingerprint identification can be maximized as much as possible, and the user's edge fingerprints can be prevented from being rejected by the fingerprint identification system.
此外,本申请实施例提供的基于手指按压屏幕的触控信号来加速屏下指纹识别的方案,不需要增加专门用于图像处理的硬件模块,就能够提升屏下指纹识别速度和解锁精度。另外,由于识别时匹配多项属性信息,例如,模板匹配成功需同时保证指纹图像信息、全局位置信息和全局方向信息的相似度均高于一定阈值,即使用三元组信息进行匹配,因此,本申请实施例提供的技术方案还能够在不影响用户体验的前提下,提升屏下指纹识别的安全性。In addition, the solution provided by the embodiments of the present application to accelerate the fingerprint recognition under the screen based on the touch signal of the finger pressing the screen can improve the fingerprint recognition speed and unlocking accuracy under the screen without adding a hardware module specially used for image processing. In addition, since multiple attribute information is matched during identification, for example, successful template matching needs to ensure that the similarity of fingerprint image information, global position information and global orientation information are all higher than a certain threshold, that is, the triple information is used for matching. Therefore, The technical solutions provided by the embodiments of the present application can also improve the security of fingerprint recognition under the screen without affecting the user experience.
实施例五Embodiment 5
本申请实施例提供的图像匹配方法可以部署于具有图像采集装置的电子设备。The image matching method provided in the embodiment of the present application can be deployed in an electronic device having an image acquisition device.
在一示例中,电子设备可以包括如下部件:输入单元、处理器单元、通信单元、存储单元、输出单元及电源等电子设备。In an example, the electronic device may include the following components: an input unit, a processor unit, a communication unit, a storage unit, an output unit, and a power supply and other electronic devices.
其中,输入单元包括指纹图像采集器、姿态传感器以及触控面板。指纹图像采集器包括能提取指纹信息的传感器,但不限于电容式指纹传感器、光学指纹传感器亦或是超声波式指纹传感器。姿态传感器是基于MEMS技术的高性能三维运动姿态测量系统。它包含三轴陀螺仪、三轴加速度计,三轴电子罗盘等运动传感器。该传感器主要用来捕获触控面板的姿态信息,在实际屏下指纹识别系统中,该设备为可选设备。触控面板也称为触摸屏或触控屏,可收集用户在其上触摸或接近的操作动作。比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或接近触控面板的位置的操作动作,并根据预先设定的程式驱动相应的连接装置。可选的,触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸操作,并将检测到的触摸操作转换为电信号,以及将电信号传送给触摸控制器;触摸控制器从触摸检测装置上接收电信号,并将它转换成触点坐标,再送给处理单元。触摸控制器还可以接收处理单元发来的命令并执行。此外,可以采用电阻式、电容式、红外线(Infrared)以及表面声波等多种类型实现触控面板。Wherein, the input unit includes a fingerprint image collector, an attitude sensor and a touch panel. The fingerprint image collector includes a sensor capable of extracting fingerprint information, but is not limited to a capacitive fingerprint sensor, an optical fingerprint sensor or an ultrasonic fingerprint sensor. The attitude sensor is a high-performance three-dimensional motion attitude measurement system based on MEMS technology. It contains motion sensors such as a three-axis gyroscope, a three-axis accelerometer, and a three-axis electronic compass. The sensor is mainly used to capture the gesture information of the touch panel. In the actual fingerprint recognition system under the screen, this device is an optional device. A touch panel, also known as a touch screen or a touch screen, collects the actions of a user touching or approaching it. For example, the user uses any suitable object or accessory, such as a finger, a stylus, or an operation action on the touch panel or a position close to the touch panel, and drives the corresponding connection device according to a preset program. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the user's touch operation, converts the detected touch operation into an electrical signal, and transmits the electrical signal to the touch controller; the touch controller receives the electrical signal from the touch detection device and converts it into an electrical signal. Contact coordinates are sent to the processing unit. The touch controller can also receive and execute commands from the processing unit. In addition, the touch panel can be realized by various types such as resistive type, capacitive type, infrared (Infrared), and surface acoustic wave.
处理器单元为电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储单元内的软件程序和/或模块,以及调用存储在存储单元内的数据,以执行电子设备的各种功能和/或处理数据。处理器单元可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器单元可以仅包括中央处理器(Central Processing Unit,简称CPU),也可以是GPU、数字信号处理器(Digital Signal Processor,简称DSP)、及通信单元中的控制芯片(例如基带芯片)的组合。本实施中,处理器单元主要用来运行指纹录入、识别系统。The processor unit is the control center of the electronic equipment. It uses various interfaces and lines to connect various parts of the entire electronic equipment. It runs or executes the software programs and/or modules stored in the storage unit, and calls the data stored in the storage unit. , to perform various functions of the electronic device and/or process data. The processor unit may be composed of an integrated circuit (Integrated Circuit, IC for short), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs with the same function or different functions. For example, the processor unit may only include a central processing unit (Central Processing Unit, CPU for short), or may be a GPU, a digital signal processor (Digital Signal Processor, DSP for short), and a control chip (such as a baseband) in the communication unit chip) combination. In this implementation, the processor unit is mainly used to run the fingerprint entry and identification system.
通信单元用于建立通信信道,使电子设备通过通信信道以连接至远程服务器,并从远程服务器下媒体数据。The communication unit is used for establishing a communication channel, enabling the electronic device to connect to the remote server through the communication channel, and download media data from the remote server.
输出单元包括但不限于影像输出单元和声音输出单元。影像输出单元用于输出文字、图片和/或视频。影像输出单元可包括显示面板,例如采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)、场发射显示器(field emission display,简称FED)等形式来配置的显示面板。或者影像输出单元可以包括反射式显示器,例如电泳式(electrophoretic)显示器,或利用光干涉调变技术(Interferometric Modulation of Light)的显示器。影像输出单元可以包括单个显示器或不同尺寸的多个显示器。在本发明的具体实施方式中,上述输入单元所采用的触控面板亦可同时作为输出单元的显示面板。例如,当触控面板检测到在其上的触摸或接近的手势操作后,传送给处理单元以确定触摸事件的类型,随后处理单元根据触摸事件的类型在显示面板上提供相应的视觉输出。The output unit includes, but is not limited to, an image output unit and a sound output unit. The video output unit is used to output text, pictures and/or videos. The image output unit may include a display panel, such as a display configured in the form of an LCD (Liquid Crystal Display, liquid crystal display), an OLED (Organic Light-Emitting Diode, organic light-emitting diode), a field emission display (field emission display, FED for short), etc. panel. Alternatively, the image output unit may include a reflective display, such as an electrophoretic display, or a display utilizing Interferometric Modulation of Light. The image output unit may include a single display or multiple displays of different sizes. In a specific embodiment of the present invention, the touch panel used in the above-mentioned input unit can also be used as a display panel of the output unit at the same time. For example, when the touch panel detects a touch or an approaching gesture operation on it, it is transmitted to the processing unit to determine the type of the touch event, and then the processing unit provides corresponding visual output on the display panel according to the type of the touch event.
存储单元可用于存储软件程序以及模块,处理单元通过运行存储在存储单元的软件程序以及模块,从而执行电子设备的各种功能应用以及实现数据处理。The storage unit can be used to store software programs and modules, and the processing unit executes various functional applications of the electronic device and implements data processing by running the software programs and modules stored in the storage unit.
电源用于给电子设备的不同部件进行供电以维持其运行。示例性地,电源可以是内置的电池,例如常见的锂离子电池、镍氢电池等,也包括直接向电子设备供电的外接电源,例如AC适配器等。Power supplies are used to power different parts of an electronic device to keep it running. Exemplarily, the power source can be a built-in battery, such as a common lithium-ion battery, a nickel-metal hydride battery, etc., and also includes an external power source that directly supplies power to the electronic device, such as an AC adapter.
实施例六Embodiment 6
本申请实施例还提供一种图像匹配装置。图8为本申请实施例提供的图像匹配装置的结构示意图一。如图8所示,本申请提供一种图像匹配装置1000,包括:Embodiments of the present application further provide an image matching apparatus. FIG. 8 is a first structural schematic diagram of an image matching apparatus provided by an embodiment of the present application. As shown in FIG. 8, the present application provides an image matching apparatus 1000, including:
确定模块1001,用于根据待检测对象的形态特征信息,确定待识别图像的属性信息,其中,待识别图像用于识别待检测对象;A determination module 1001, configured to determine attribute information of an image to be identified according to morphological feature information of the object to be detected, wherein the image to be identified is used to identify the object to be detected;
匹配模块1002,用于根据待识别图像的属性信息,对至少一个模板图像进行筛选,其中,筛选后的模板图像的属性信息与待识别图像的属性信息之间满足属性相关性条件;以及,在筛选后的模板图像中,查询与待识别图像相匹配的图像。A matching module 1002, configured to screen at least one template image according to the attribute information of the image to be recognized, wherein the attribute information of the filtered template image and the attribute information of the image to be recognized satisfy the attribute correlation condition; and, in In the filtered template images, the images matching the images to be recognized are queried.
在一种可选的实施方式中,装置1000还可以包括:获取模块1003,用于获取待识别图像,以及,获取待检测对象的触控信号;以及,根据待检测对象的触控信号,确定待检测对象的形态特征信息;其中,获取待识别图像的时刻与获取待检测对象的触控信号的时刻之间的时间差小于时间偏差阈值。In an optional embodiment, the apparatus 1000 may further include: an acquisition module 1003, configured to acquire the image to be recognized, and acquire the touch signal of the object to be detected; and, according to the touch signal of the object to be detected, determine Morphological feature information of the object to be detected; wherein the time difference between the moment when the image to be recognized is acquired and the moment when the touch signal of the object to be detected is acquired is less than a time deviation threshold.
在一种可选的实施方式中,匹配模块1002,具体用于根据待识别图像的至少两种 属性信息以及各个属性信息的权重,对至少一个模板图像进行筛选。In an optional implementation manner, the matching module 1002 is specifically configured to screen at least one template image according to at least two types of attribute information of the image to be recognized and the weight of each attribute information.
在一种可选的实施方式中,匹配模块1002,还用于在筛选后的模板图像的数量为0,或者,在筛选后的模板图像中,未查询到与待识别图像相匹配的目标模板图像时,在至少一个模板图像中除筛选后的模板图像中的其他模板图像中,查询与待识别图像相匹配的图像。In an optional implementation manner, the matching module 1002 is further configured to: when the number of the filtered template images is 0, or, in the filtered template images, no target template matching the to-be-recognized image is queried. When creating an image, among other template images in at least one template image except the filtered template images, an image matching the to-be-recognized image is queried.
在一种可选的实施方式中,匹配模块1002,还用于在筛选后的模板图像的数量为0,或者,在筛选后的模板图像中,未查询到与待识别图像相匹配的目标模板图像时,根据至少一个模板图像对应的历史匹配成功率排序,在至少一个模板图像中,查询与待识别图像相匹配的图像。In an optional implementation manner, the matching module 1002 is further configured to: when the number of the filtered template images is 0, or, in the filtered template images, no target template matching the to-be-recognized image is queried. When the image is selected, it is sorted according to the historical matching success rate corresponding to the at least one template image, and in the at least one template image, the image matching the image to be recognized is queried.
在一种可选的实施方式中,匹配模块1002,还用于在查询到与待识别图像相匹配的目标模板图像时,获取目标模板图像对应的模板实体标识和/或使用权限;以及,在未查询到与待识别图像相匹配的目标模板图像时,确定待匹配图像对应的待检测对象不具有使用权限。In an optional implementation manner, the matching module 1002 is further configured to obtain the template entity identifier and/or use authority corresponding to the target template image when the target template image matching the to-be-recognized image is queried; and, in When no target template image matching the to-be-identified image is found, it is determined that the to-be-detected object corresponding to the to-be-matched image does not have the right to use.
在一种可选的实施方式中,获取模块1003,还用于在根据待识别图像的属性信息,对至少一个模板图像进行筛选之前,获取至少一个模板图像以及各个模板图像对应的模板对象的形态特征信息;各个模板图像与各个模板对象一一对应;确定模块1001,还用于根据各个模板图像对应的模板对象的形态特征信息,确定各个模板图像的属性信息。In an optional implementation manner, the acquiring module 1003 is further configured to acquire at least one template image and the form of the template object corresponding to each template image before screening the at least one template image according to the attribute information of the image to be recognized feature information; each template image is in one-to-one correspondence with each template object; the determining module 1001 is further configured to determine attribute information of each template image according to the morphological feature information of the template object corresponding to each template image.
在一种可选的实施方式中,获取模块1003,具体用于获取第一模板对象的P-1个第一模板图像,以及,P-1个第一模板图像对应的第一模板对象的轮廓信息;确定模块1001,具体用于分别根据各个第一模板图像对应的第一模板对象的轮廓信息,确定各个第一模板图像在对应的轮廓信息中的区域位置标识;确定模块1001,还用于判断P-1个第一模板图像对应的区域位置标识的集合是否满足覆盖条件;若未满足,指示获取模块1003获取第一模板对象的第P个第一模板图像;其中,覆盖条件包括:覆盖第一模板对象的边缘区域的边缘覆盖条件,或者,满足覆盖第一模板对象的轮廓信息的全局覆盖条件;P为大于或者等于2的整数。In an optional implementation manner, the acquiring module 1003 is specifically configured to acquire P-1 first template images of the first template object, and the outline of the first template object corresponding to the P-1 first template images The determining module 1001 is specifically configured to determine the region position identifier of each first template image in the corresponding contour information according to the contour information of the first template object corresponding to each first template image; the determining module 1001 is further configured to Judging whether the set of area location identifiers corresponding to the P-1 first template images satisfies the coverage condition; if not, instruct the acquisition module 1003 to obtain the Pth first template image of the first template object; wherein, the coverage conditions include: coverage The edge coverage condition of the edge region of the first template object, or, satisfies the global coverage condition of covering the contour information of the first template object; P is an integer greater than or equal to 2.
在一种可选的实施方式中,确定模块1001,还用于根据至少一个第一模板图像对应的区域位置标识的集合和覆盖条件,确定补采区;装置还包括:输出模块1004,用于输出提示信息,提示信息用于提示录入包含补采区的第一模板对象的模板图像。In an optional implementation manner, the determining module 1001 is further configured to determine the supplementary mining area according to the set of area location identifiers corresponding to the at least one first template image and the coverage conditions; the apparatus further includes: an output module 1004, configured to Output prompt information, where the prompt information is used to prompt the input of the template image of the first template object including the supplementary mining area.
本申请实施例提供的图像匹配装置可以用于执行前述实施例中的方法,本申请实施例的其他技术方案细节和技术效果可参见本申请其他实施例中的描述。The image matching apparatus provided in the embodiments of the present application can be used to execute the methods in the foregoing embodiments. For details of other technical solutions and technical effects of the embodiments of the present application, reference may be made to the descriptions in other embodiments of the present application.
本申请实施例还提供一种图像匹配装置。图9为本申请实施例提供的图像匹配装置的结构示意图一。如图9所示,本申请提供一种图像匹配装置1100,包括:Embodiments of the present application further provide an image matching apparatus. FIG. 9 is a first structural schematic diagram of an image matching apparatus provided by an embodiment of the present application. As shown in FIG. 9, the present application provides an image matching apparatus 1100, including:
获取模块1103,用于获取模板对象的至少一个第一模板图像;以及,获取模板对象的轮廓信息,其中,模板对象的轮廓信息用于确定至少一个第一模板图像在模板对象的轮廓信息中的区域位置标识;The obtaining module 1103 is configured to obtain at least one first template image of the template object; and, obtain contour information of the template object, wherein the contour information of the template object is used to determine the position of the at least one first template image in the contour information of the template object. area location identifier;
确定模块1101,用于确定至少一个第一模板图像对应的区域位置标识的集合是否满足覆盖条件,在未满足覆盖条件时,指示获取模块获取模板对象的第二模板图像;其中,至少一个第一模板图像和第二模板图像用于查询与待识别图像相匹配的图像。A determination module 1101, configured to determine whether the set of area location identifiers corresponding to at least one first template image satisfies the coverage condition, and when the coverage condition is not met, instruct the acquisition module to acquire the second template image of the template object; wherein at least one first template image The template image and the second template image are used to query the image matching the image to be recognized.
在一种可选的实施方式中,装置1100还可以包括匹配模块1102,用于在至少一个第一模板图像和第二模板图像中查询与待识别图像相匹配的图像。In an optional implementation manner, the apparatus 1100 may further include a matching module 1102, configured to query at least one of the first template image and the second template image for an image that matches the image to be recognized.
在一种可选的实施方式中,覆盖条件包括以下至少一种:覆盖模板对象的至少一个局部区域;覆盖模板对象的边缘区域超过预设覆盖比例;覆盖模板对象的轮廓信息超过预设覆盖比例。In an optional implementation manner, the coverage condition includes at least one of the following: covering at least one partial area of the template object; covering the edge area of the template object exceeds a preset coverage ratio; covering the outline information of the template object exceeds a preset coverage ratio .
在一种可选的实施方式中,确定模块1101,还用于根据至少一个第一模板图像对应的区域位置标识的集合和覆盖条件,确定补采区;装置还包括:输出模块1104,用于输出提示信息,提示信息用于提示录入包含补采区的模板对象的第二模板图像。In an optional implementation manner, the determining module 1101 is further configured to determine the supplementary mining area according to the set of location identifiers corresponding to the at least one first template image and the coverage conditions; the apparatus further includes: an output module 1104, configured to Output prompt information, where the prompt information is used to prompt input of the second template image of the template object including the supplementary mining area.
本申请实施例提供的图像匹配装置可以用于执行前述实施例中的方法,本申请实施例的其他技术方案细节和技术效果可参见本申请其他实施例中的描述。The image matching apparatus provided in the embodiments of the present application can be used to execute the methods in the foregoing embodiments. For details of other technical solutions and technical effects of the embodiments of the present application, reference may be made to the descriptions in other embodiments of the present application.
图10为本申请实施例提供的电子设备的结构示意图。如图10所示,本申请实施例提供一种电子设备1200,包括:处理器1210,存储器1220和输入输出设备1230;其中:FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 10, an embodiment of the present application provides an electronic device 1200, including: a processor 1210, a memory 1220, and an input and output device 1230; wherein:
处理器1210,可用于执行执行指令以使得电子设备执行前述实施例中任一的图像匹配方法。The processor 1210 may be configured to execute the execution instructions to cause the electronic device to execute any of the image matching methods in the foregoing embodiments.
存储器1220,可用于存储前述实施例中任一图像匹配方法涉及的程序指令和数据。The memory 1220 can be used to store program instructions and data involved in any of the image matching methods in the foregoing embodiments.
输入输出设备1230,可以包括数据输入输入输出设备和数据输出输入输出设备。输入输出设备1230可以用于获取或者输出执行上述图像匹配方法涉及的各种信息。The input and output devices 1230 may include data input and output devices and data input and output devices. The input and output device 1230 may be used to acquire or output various information involved in performing the above-mentioned image matching method.
举例来说,输入输出设备1230可以包括:图像采集装置和形态特征采集装置。For example, the input and output device 1230 may include: an image acquisition device and a morphological feature acquisition device.
其中,形态特征采集装置可以为触控装置,示例性的,可以为触摸屏。图像采集装置可以为用于采集指纹图像的指纹传感器、指纹采集器等。在一示例中,指纹传感器位于触摸屏靠近电子设备的本体的一侧。此外,触摸屏还可以用于输出提示信息。可参看图1C所示。Wherein, the morphological feature collection device may be a touch device, and exemplarily, it may be a touch screen. The image collection device may be a fingerprint sensor, a fingerprint collector, or the like for collecting fingerprint images. In one example, the fingerprint sensor is located on the side of the touch screen close to the body of the electronic device. In addition, the touch screen can also be used to output prompt information. See Figure 1C.
在电子设备的第一种可选的实施方式中:In a first optional implementation of the electronic device:
图像采集装置,可用于对待检测对象采集待识别图像;an image acquisition device, which can be used to acquire an image to be recognized of the object to be detected;
形态特征采集装置,可用于采集待检测对象的形态特征信息;A morphological feature collection device, which can be used to collect morphological feature information of the object to be detected;
处理器,用于根据待检测对象的形态特征信息,确定待识别图像的属性信息;以及,根据待识别图像的属性信息,对至少一个模板图像进行筛选,其中,筛选后的模板图像的属性信息与待识别图像的属性信息之间满足属性相关性条件;以及,在筛选后的模板图像中,查询与待识别图像相匹配的图像。The processor is used to determine the attribute information of the image to be recognized according to the morphological feature information of the object to be detected; and, according to the attribute information of the image to be recognized, screen at least one template image, wherein the attribute information of the filtered template image is The attribute correlation condition is satisfied with the attribute information of the image to be recognized; and, in the filtered template image, the image matching the image to be recognized is queried.
在电子设备的第二种可选的实施方式中:In a second optional embodiment of the electronic device:
图像采集装置,可用于采集模板对象的至少一个第一模板图像;以及,在至少一个第一模板图像对应的区域位置标识的集合未满足覆盖条件时,采集模板对象的第二模板图像;其中,至少一个第一模板图像和第二模板图像用于查询与待识别图像相匹配的图像;An image acquisition device, which can be used to acquire at least one first template image of the template object; and, when the set of area position identifiers corresponding to the at least one first template image does not satisfy the coverage condition, acquire the second template image of the template object; wherein, at least one of the first template image and the second template image is used to query the image matching the image to be recognized;
触控装置,可用于获取模板对象的轮廓信息,其中,模板对象的轮廓信息用于确定至少一个第一模板图像在模板对象的轮廓信息中的区域位置标识。The touch device can be used to obtain contour information of the template object, wherein the contour information of the template object is used to determine a region position identifier of the at least one first template image in the contour information of the template object.
在一种可选的实施方式中,触控装置,还用于在至少一个第一模板图像对应的区 域位置标识的集合未满足覆盖条件时,输出提示信息,提示信息用于提示通过图像采集装置输入模板对象的第二模板图像。In an optional implementation manner, the touch control device is further configured to output prompt information when the set of area location identifiers corresponding to the at least one first template image does not satisfy the coverage condition, and the prompt information is used to prompt the image acquisition device to pass the Enter the second template image of the template object.
本申请实施例提供的电子设备可以用于执行前述实施例中任一所述的图像匹配方法。The electronic device provided in this embodiment of the present application can be used to execute the image matching method described in any one of the foregoing embodiments.
本申请实施例的其他技术方案细节和技术效果可参见本申请其他实施例中的描述。For details of other technical solutions and technical effects of the embodiments of the present application, reference may be made to the descriptions in other embodiments of the present application.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk)等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the present application result in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored on or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g. coaxial cable, optical fiber, digital subscriber line) or wireless (eg infrared, wireless, microwave, etc.) means to another website site, computer, server or data center. A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media. Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk), among others.

Claims (21)

  1. 一种应用于指纹识别的图像匹配方法,其特征在于,所述方法包括:An image matching method applied to fingerprint identification, characterized in that the method comprises:
    根据待检测对象的形态特征信息,确定待识别图像的属性信息,其中,所述待识别图像用于识别所述待检测对象;According to the morphological feature information of the object to be detected, the attribute information of the image to be recognized is determined, wherein the image to be recognized is used to recognize the object to be detected;
    根据所述待识别图像的属性信息,对至少一个模板图像进行筛选;筛选后的模板图像的属性信息与所述待识别图像的属性信息之间满足属性相关性条件;Screening at least one template image according to the attribute information of the to-be-recognized image; the attribute information of the filtered template image and the attribute information of the to-be-recognized image satisfy the attribute correlation condition;
    在筛选后的模板图像中,查询与所述待识别图像相匹配的图像。In the filtered template image, the image matching the to-be-recognized image is queried.
  2. 根据权利要求1所述的方法,其特征在于,在所述根据所述待检测对象的形态特征信息,确定所述待识别图像的属性信息之前,包括:The method according to claim 1, wherein before the determining the attribute information of the to-be-recognized image according to the morphological feature information of the to-be-detected object, the method comprises:
    获取所述待识别图像;obtaining the to-be-recognized image;
    获取所述待检测对象的触控信号;acquiring the touch signal of the object to be detected;
    根据所述待检测对象的触控信号,确定所述待检测对象的形态特征信息;According to the touch signal of the object to be detected, determine the morphological feature information of the object to be detected;
    其中,获取所述待识别图像的时刻与获取所述待检测对象的触控信号的时刻之间的时间差小于时间偏差阈值。Wherein, the time difference between the time when the image to be recognized is obtained and the time when the touch signal of the object to be detected is obtained is less than a time deviation threshold.
  3. 根据权利要求2所述的方法,其特征在于,所述待检测对象的触控信号为通过触控装置采集的;The method according to claim 2, wherein the touch signal of the object to be detected is collected by a touch device;
    在所述根据所述待检测对象的触控信息,确定所述待检测对象的形态特征信息之前,还包括:获取所述触控装置在大地坐标系中的三维位置信息;Before determining the morphological feature information of the to-be-detected object according to the touch-control information of the to-be-detected object, the method further includes: acquiring three-dimensional position information of the touch-control device in the geodetic coordinate system;
    所述根据所述待检测对象的形态特征信息,确定所述待识别图像的属性信息,包括:根据所述待检测对象的形态特征信息和所述触控装置的三维位置信息,确定所述待识别图像的属性信息。The determining the attribute information of the image to be recognized according to the morphological feature information of the object to be detected includes: determining the morphological feature information of the object to be detected and the three-dimensional position information of the touch control device to determine the image to be recognized. Identify the attribute information of the image.
  4. 根据权利要求1-3任一所述的方法,其特征在于,所述待检测对象的形态特征信息包括以下信息中至少一种:所述待检测对象的轮廓信息、位置信息、运动学信息;The method according to any one of claims 1-3, wherein the morphological feature information of the object to be detected includes at least one of the following information: contour information, position information, and kinematic information of the object to be detected;
    所述待识别图像的属性信息包括以下信息中至少一种:所述待检测对象的对象类型,所述待识别图像在所述待检测对象的轮廓信息中的全局位置信息,以及,所述待检测对象的习惯姿态信息。The attribute information of the to-be-recognized image includes at least one of the following information: the object type of the to-be-detected object, the global position information of the to-be-recognized image in the outline information of the to-be-detected object, and the Detect the habitual pose information of the object.
  5. 根据权利要求1-4任一所述的方法,其特征在于,所述待检测对象为待识别指纹部;所述待识别图像为通过指纹传感器采集的所述待识别指纹部的指纹图像。The method according to any one of claims 1-4, wherein the object to be detected is a fingerprint part to be recognized; the image to be recognized is a fingerprint image of the fingerprint part to be recognized collected by a fingerprint sensor.
  6. 根据权利要求1-5任一所述的方法,其特征在于,所述根据所述待检测对象的形态特征信息,确定所述待识别图像的属性信息,包括:根据所述待检测对象的轮廓信息,确定所述待检测对象的对象类型;将所述待检测对象的对象类型作为所述待识别图像的属性信息;The method according to any one of claims 1-5, wherein the determining the attribute information of the to-be-recognized image according to the morphological feature information of the to-be-detected object comprises: according to the outline of the to-be-detected object information, determine the object type of the object to be detected; take the object type of the object to be detected as the attribute information of the image to be recognized;
    其中,所述待检测对象的对象类型包括以下至少一种:左右手信息,手指类型。Wherein, the object type of the object to be detected includes at least one of the following: left and right hand information, and finger type.
  7. 根据权利要求1-6任一所述的方法,其特征在于,所述根据所述待检测对象的形态特征信息,确定所述待识别图像的属性信息,包括:根据所述待检测对象的轮廓信息,确定所述待识别图像在所述待检测对象的轮廓信息中的全局位置信息;将所述待识别图像对应的全局位置信息作为所述待识别图像的属性信息;The method according to any one of claims 1-6, wherein the determining the attribute information of the to-be-recognized image according to the morphological feature information of the to-be-detected object comprises: according to the outline of the to-be-detected object information, determine the global position information of the image to be recognized in the contour information of the object to be detected; take the global position information corresponding to the image to be recognized as the attribute information of the image to be recognized;
    其中,所述待识别图像在所述待检测对象的轮廓信息中的全局位置信息包括以下至少一种:与所述待检测对象的轮廓信息中的参考点之间的距离,以所述待检测对象的轮廓信息为参照系的区域位置标识。Wherein, the global position information of the image to be recognized in the contour information of the object to be detected includes at least one of the following: a distance from a reference point in the contour information of the object to be detected The outline information of the object is the regional position identification of the reference system.
  8. 根据权利要求1-7任一所述的方法,其特征在于,所述根据所述待检测对象的形态特征信息,确定所述待识别图像的属性信息,包括:根据所述待检测对象的轮廓信息、位置信息、运动学信息中至少一种形态特征信息,确定所述待检测对象的习惯姿态信息;将所述待检测对象的习惯姿态信息作为所述待识别图像的属性信息;The method according to any one of claims 1-7, wherein the determining the attribute information of the to-be-recognized image according to the morphological feature information of the to-be-detected object comprises: according to the outline of the to-be-detected object at least one morphological feature information among information, position information, and kinematics information, to determine the habitual posture information of the object to be detected; use the habitual posture information of the object to be detected as the attribute information of the image to be recognized;
    其中,所述待检测对象的习惯姿态信息,包括以下至少一种:所述待检测对象的全局方向信息,所述待检测对象的速度,所述待检测对象的移动方向,所述待检测对象的移动轨迹。Wherein, the habitual posture information of the object to be detected includes at least one of the following: global direction information of the object to be detected, the speed of the object to be detected, the moving direction of the object to be detected, the object to be detected movement trajectory.
  9. 根据权利要求1-5任一所述的方法,其特征在于,所述属性相关性条件,包括以下至少一种:The method according to any one of claims 1-5, wherein the attribute correlation condition includes at least one of the following:
    在所述待识别图像的属性信息包括所述待识别图像对应的对象类型时,筛选后的模板图像对应的对象类型与所述待识别图像对应的对象类型相同;When the attribute information of the to-be-recognized image includes the object type corresponding to the to-be-recognized image, the object type corresponding to the filtered template image is the same as the object type corresponding to the to-be-recognized image;
    在所述待识别图像的属性信息包括所述待识别图像对应的姿态信息时,筛选后的模板图像对应的习惯姿态信息与所述待识别图像对应的习惯姿态信息相同;When the attribute information of the to-be-recognized image includes gesture information corresponding to the to-be-recognized image, the habitual gesture information corresponding to the filtered template image is the same as the habitual gesture information corresponding to the to-be-recognized image;
    在所述待识别图像的属性信息包括所述待识别图像对应的全局位置信息时,筛选后的模板图像对应的全局位置信息与所述待识别图像对应的全局位置信息满足位置临近条件;When the attribute information of the to-be-recognized image includes the global location information corresponding to the to-be-recognized image, the global location information corresponding to the filtered template image and the global location information corresponding to the to-be-recognized image satisfy the location proximity condition;
    其中,所述位置临近条件包括:所述筛选后的模板图像对应的全局位置信息所表示的位置包含所述待识别图像对应的全局位置信息所表示的位置,或者,所述筛选后的模板图像对应的全局位置信息所表示的位置与所述待识别图像对应的全局位置信息所表示的位置存在交集,或者,所述筛选后的模板图像对应的全局位置信息所表示的位置与所述待识别图像对应的全局位置信息所表示的位置之间的距离小于邻近区域距离阈值。The location proximity condition includes: the location indicated by the global location information corresponding to the filtered template image includes the location indicated by the global location information corresponding to the to-be-recognized image, or the filtered template image There is an intersection between the position indicated by the corresponding global position information and the position indicated by the global position information corresponding to the to-be-recognized image, or, the position indicated by the global position information corresponding to the filtered template image and the to-be-identified image. The distance between the positions represented by the global position information corresponding to the image is smaller than the adjacent area distance threshold.
  10. 根据权利要求1-9任一所述的方法,其特征在于,所述待识别图像的属性信息的数量为至少两种;The method according to any one of claims 1-9, wherein the quantity of the attribute information of the to-be-recognized image is at least two;
    所述根据所述待识别图像的属性信息,对至少一个模板图像进行筛选,包括:根据所述待识别图像的至少两种属性信息以及各个属性信息的权重,对所述至少一个模板图像进行筛选。The screening of at least one template image according to the attribute information of the image to be recognized includes: screening the at least one template image according to at least two kinds of attribute information of the image to be recognized and the weight of each attribute information .
  11. 根据权利要求1-10任一所述的方法,其特征在于,在筛选后的模板图像的数量为0,或者,在筛选后的模板图像中,未查询到与所述待识别图像相匹配的目标模板图像时,所述方法还包括:The method according to any one of claims 1-10, wherein the number of the filtered template images is 0, or, in the filtered template images, no image matching the to-be-recognized image is queried. When the target template image is used, the method further includes:
    在所述至少一个模板图像中除所述筛选后的模板图像中的其他模板图像中,查询与所述待识别图像相匹配的图像。Among other template images in the at least one template image except the filtered template images, an image matching the to-be-recognized image is queried.
  12. 根据权利要求1-10任一所述的方法,其特征在于,在筛选后的模板图像的数量为0,或者,在筛选后的模板图像中,未查询到与所述待识别图像相匹配的目标模板 图像时,所述方法还包括:The method according to any one of claims 1-10, wherein the number of the filtered template images is 0, or, in the filtered template images, no image matching the to-be-recognized image is queried. When the target template image is used, the method further includes:
    根据所述至少一个模板图像对应的历史匹配成功率排序,在所述至少一个模板图像中,查询与所述待识别图像相匹配的图像。According to the ranking of the historical matching success rate corresponding to the at least one template image, in the at least one template image, the image matching the to-be-recognized image is queried.
  13. 根据权利要求1-12任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-12, wherein the method further comprises:
    在查询到与所述待识别图像相匹配的目标模板图像时,获取所述目标模板图像对应的模板实体标识和/或使用权限;When the target template image matching the to-be-recognized image is queried, obtain the template entity identifier and/or usage authority corresponding to the target template image;
    在未查询到与所述待识别图像相匹配的目标模板图像时,确定所述待匹配图像对应的待检测对象不具有使用权限。When no target template image matching the to-be-identified image is found, it is determined that the to-be-detected object corresponding to the to-be-matched image does not have the right to use.
  14. 根据权利要求1-13任一所述的方法,其特征在于,在所述根据所述待识别图像的属性信息,对至少一个模板图像进行筛选之前,包括:The method according to any one of claims 1-13, wherein before the screening of at least one template image according to the attribute information of the to-be-recognized image, the method comprises:
    获取所述至少一个模板图像以及各个模板图像对应的模板对象的形态特征信息;各个模板图像与各个模板对象一一对应;obtaining the morphological feature information of the at least one template image and the template object corresponding to each template image; each template image is in one-to-one correspondence with each template object;
    根据各个模板图像对应的模板对象的形态特征信息,确定各个模板图像的属性信息。The attribute information of each template image is determined according to the morphological feature information of the template object corresponding to each template image.
  15. 根据权利要求14所述的方法,其特征在于,The method of claim 14, wherein:
    所述获取所述至少一个模板图像以及各个模板图像对应的模板对象的形态特征信息,包括:获取第一模板对象的P-1个第一模板图像,以及,所述P-1个第一模板图像对应的所述第一模板对象的轮廓信息;The acquiring the at least one template image and the morphological feature information of the template object corresponding to each template image includes: acquiring P-1 first template images of the first template object, and, the P-1 first templates Outline information of the first template object corresponding to the image;
    所述根据各个模板图像对应的模板对象的形态特征信息,确定各个模板图像的属性信息,包括:分别根据各个第一模板图像对应的所述第一模板对象的轮廓信息,确定各个第一模板图像在对应的轮廓信息中的区域位置标识;The determining the attribute information of each template image according to the morphological feature information of the template object corresponding to each template image includes: determining each first template image according to the outline information of the first template object corresponding to each first template image. The region location identification in the corresponding contour information;
    所述方法还包括:判断所述P-1个第一模板图像对应的区域位置标识的集合是否满足覆盖条件;若未满足,获取所述第一模板对象的第P个第一模板图像;The method further includes: judging whether the set of area location identifiers corresponding to the P-1 first template images satisfies the coverage condition; if not, acquiring the Pth first template image of the first template object;
    其中,所述覆盖条件包括:覆盖所述第一模板对象的边缘区域的边缘覆盖条件,或者,满足覆盖所述第一模板对象的轮廓信息的全局覆盖条件;P为大于或者等于2的整数。The coverage conditions include: edge coverage conditions covering the edge region of the first template object, or satisfying a global coverage condition covering contour information of the first template object; P is an integer greater than or equal to 2.
  16. 一种应用于指纹识别的图像匹配方法,其特征在于,包括:An image matching method applied to fingerprint identification, comprising:
    获取模板对象的至少一个第一模板图像;obtaining at least one first template image of the template object;
    获取所述模板对象的轮廓信息,其中,所述模板对象的轮廓信息用于确定所述至少一个第一模板图像在所述模板对象的轮廓信息中的区域位置标识;acquiring contour information of the template object, wherein the contour information of the template object is used to determine a region position identifier of the at least one first template image in the contour information of the template object;
    在所述至少一个第一模板图像对应的区域位置标识的集合未满足覆盖条件时,采集所述模板对象的第二模板图像;when the set of area location identifiers corresponding to the at least one first template image does not satisfy the coverage condition, collecting a second template image of the template object;
    其中,所述至少一个第一模板图像和所述第二模板图像用于查询与待识别图像相匹配的图像。Wherein, the at least one first template image and the second template image are used to query the image matching the image to be recognized.
  17. 根据权利要求16所述的方法,其特征在于,所述覆盖条件包括以下至少一种:The method according to claim 16, wherein the coverage condition comprises at least one of the following:
    覆盖所述模板对象的至少一个局部区域;covering at least one local area of the template object;
    覆盖所述模板对象的边缘区域超过预设覆盖比例;Covering the edge area of the template object exceeds a preset coverage ratio;
    覆盖所述模板对象的轮廓信息超过预设覆盖比例。The outline information covering the template object exceeds a preset coverage ratio.
  18. 根据权利要求16或17所述的方法,其特征在于,所述获取所述模板对象的轮廓信息,包括:通过电子设备的触摸屏获取所述模板对象的轮廓信息;The method according to claim 16 or 17, wherein the acquiring the outline information of the template object comprises: acquiring the outline information of the template object through a touch screen of an electronic device;
    所述获取模板对象的至少一个第一模板图像,包括:通过指纹传感器采集所述至少一个第一模板图像;The acquiring at least one first template image of the template object includes: acquiring the at least one first template image through a fingerprint sensor;
    所述指纹传感器位于所述触摸屏靠近所述电子设备的本体的一侧。The fingerprint sensor is located on a side of the touch screen close to the body of the electronic device.
  19. 根据权利要求17或18所述的方法,其特征在于,在所述采集所述模板对象的第二模板图像之前,所述方法还包括:The method according to claim 17 or 18, wherein before the acquiring the second template image of the template object, the method further comprises:
    根据所述至少一个第一模板图像对应的区域位置标识的集合和所述覆盖条件,确定补采区;determining a supplementary mining area according to the set of area location identifiers corresponding to the at least one first template image and the coverage condition;
    输出提示信息,所述提示信息用于提示录入包含所述补采区的所述模板对象的第二模板图像。Prompt information is output, where the prompt information is used to prompt the input of a second template image of the template object including the supplementary acquisition area.
  20. 一种电子设备,其特征在于,包括:处理器和存储器,所述存储器用于存储指令,所述处理器用于执行所述指令以使得所述电子设备执行权利要求1-19任一项所述方法。An electronic device, characterized in that it comprises: a processor and a memory, the memory is used for storing instructions, and the processor is used for executing the instructions, so that the electronic device executes any one of claims 1-19 method.
  21. 一种计算机存储介质,其特征在于,包括计算机程序,所述计算机程序在电子设备上被执行时,使得所述电子设备执行权利要求1-19中任一项所述的方法。A computer storage medium, characterized by comprising a computer program, which, when executed on an electronic device, causes the electronic device to execute the method of any one of claims 1-19.
PCT/CN2021/107689 2020-07-31 2021-07-21 Image matching method applied to fingerprint recognition and related device WO2022022365A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010762013.8 2020-07-31
CN202010762013.8A CN114078258A (en) 2020-07-31 2020-07-31 Image matching method applied to fingerprint identification and related device

Publications (1)

Publication Number Publication Date
WO2022022365A1 true WO2022022365A1 (en) 2022-02-03

Family

ID=80037097

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/107689 WO2022022365A1 (en) 2020-07-31 2021-07-21 Image matching method applied to fingerprint recognition and related device

Country Status (2)

Country Link
CN (1) CN114078258A (en)
WO (1) WO2022022365A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117391708A (en) * 2023-12-12 2024-01-12 深圳市深讯科科技有限公司 Mobile payment identity authentication method and system based on organism sign

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107358144A (en) * 2017-05-20 2017-11-17 深圳信炜科技有限公司 Image identification system and electronic installation
CN108241843A (en) * 2016-12-26 2018-07-03 北京小米移动软件有限公司 Fingerprint identification method and device
CN109543492A (en) * 2017-09-21 2019-03-29 比亚迪股份有限公司 Fingerprint input method and device
CN109740520A (en) * 2018-12-29 2019-05-10 Oppo广东移动通信有限公司 Fingerprint identification method and relevant device
CN110298277A (en) * 2019-06-19 2019-10-01 Oppo广东移动通信有限公司 Fingerprint identification method and Related product
CN111079467A (en) * 2018-10-18 2020-04-28 北京小米移动软件有限公司 Fingerprint identification method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108241843A (en) * 2016-12-26 2018-07-03 北京小米移动软件有限公司 Fingerprint identification method and device
CN107358144A (en) * 2017-05-20 2017-11-17 深圳信炜科技有限公司 Image identification system and electronic installation
CN109543492A (en) * 2017-09-21 2019-03-29 比亚迪股份有限公司 Fingerprint input method and device
CN111079467A (en) * 2018-10-18 2020-04-28 北京小米移动软件有限公司 Fingerprint identification method and device, electronic equipment and storage medium
CN109740520A (en) * 2018-12-29 2019-05-10 Oppo广东移动通信有限公司 Fingerprint identification method and relevant device
CN110298277A (en) * 2019-06-19 2019-10-01 Oppo广东移动通信有限公司 Fingerprint identification method and Related product

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117391708A (en) * 2023-12-12 2024-01-12 深圳市深讯科科技有限公司 Mobile payment identity authentication method and system based on organism sign
CN117391708B (en) * 2023-12-12 2024-03-26 深圳市深讯科科技有限公司 Mobile payment identity authentication method and system based on organism sign

Also Published As

Publication number Publication date
CN114078258A (en) 2022-02-22

Similar Documents

Publication Publication Date Title
US9965608B2 (en) Biometrics-based authentication method and apparatus
US8649575B2 (en) Method and apparatus of a gesture based biometric system
KR102180226B1 (en) Electronic device and method for securing using complex biometrics
US8525876B2 (en) Real-time embedded vision-based human hand detection
CN102231093B (en) Screen locating control method and device
JP6815707B2 (en) Face posture detection method, device and storage medium
US9858467B2 (en) Method and apparatus for recognizing fingerprints
US9122353B2 (en) Kind of multi-touch input device
CN108139856B (en) Signature authentication method, terminal, handwriting pen and system
TW201120681A (en) Method and system for operating electric apparatus
US20170108977A1 (en) Touch display device and touch method thereof
WO2021103945A1 (en) Map fusion method, apparatus, device, and storage medium
US9619041B2 (en) Biometric authentication apparatus and biometric authentication method
US20160334877A1 (en) Real-time 3d gesture recognition and tracking system for mobile devices
WO2018214499A1 (en) Method and device for starting fingerprint recognition, and intelligent terminal
US9880634B2 (en) Gesture input apparatus, gesture input method, and program for wearable terminal
CN106778450A (en) A kind of face recognition method and device
TWI431538B (en) Image based motion gesture recognition method and system thereof
CN107818290A (en) Heuristic fingerprint detection method based on depth map
WO2015003606A1 (en) Method and apparatus for recognizing pornographic image
US9785863B2 (en) Fingerprint authentication
WO2018161893A1 (en) User identification method and device
CN109937434A (en) Image processing method, device, terminal and storage medium
WO2022022365A1 (en) Image matching method applied to fingerprint recognition and related device
WO2018076720A1 (en) One-hand operation method and control system

Legal Events

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

Ref document number: 21850091

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21850091

Country of ref document: EP

Kind code of ref document: A1