WO2023273616A1 - Image recognition method and apparatus, electronic device, storage medium - Google Patents

Image recognition method and apparatus, electronic device, storage medium Download PDF

Info

Publication number
WO2023273616A1
WO2023273616A1 PCT/CN2022/091672 CN2022091672W WO2023273616A1 WO 2023273616 A1 WO2023273616 A1 WO 2023273616A1 CN 2022091672 W CN2022091672 W CN 2022091672W WO 2023273616 A1 WO2023273616 A1 WO 2023273616A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
recognized
similarity
matching points
threshold
Prior art date
Application number
PCT/CN2022/091672
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 WO2023273616A1 publication Critical patent/WO2023273616A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Definitions

  • the present application relates to the technical field of image processing, and in particular to an image recognition method and device, electronic equipment, and a computer-readable storage medium.
  • fingerprint recognition is widely used in occasions that require biometric authentication, such as unlocking mobile phones, access control attendance, and criminal investigation.
  • the final step of fingerprint recognition is generally to send some features (such as the aligned unlock map and template map) into a binary classification model to obtain a binary classification score that measures the similarity between two fingerprints, and compare the score with a specific threshold. Compare to determine whether the two fingerprints come from the same finger.
  • the scores of related binary classification models often deviate from the actual situation in a few cases. It is often not the most reasonable to judge whether the fingerprint comparison is passed through only one threshold.
  • the threshold directly determines the fingerprint comparison result, and the threshold They are all set based on experience, so the accuracy of the fingerprint comparison result is not high. .
  • the embodiment of the present application provides an image recognition method to at least improve the accuracy of fingerprint or palmprint comparison.
  • Some embodiments of the present application provide an image recognition method, which may include:
  • recognition information is obtained, and the recognition information may include a similarity score between the image to be recognized and the template image, a similarity score between the image to be recognized and the template image Number of matching points and/or overlapping area characterization parameters;
  • a recognition result is obtained according to the recognition information.
  • the obtaining the identification result according to the identification information may include:
  • the similarity score is compared with the similarity threshold to obtain a recognition result.
  • the determining the similarity threshold according to the number of matching points and/or the overlapping area characterization parameters may include:
  • determining the similarity threshold according to the number of matching points may include:
  • a matching point number range corresponds to a similarity threshold
  • different matching point number ranges correspond to different similarity thresholds
  • the obtaining identification information according to the image to be identified and the template image may include:
  • the method may further include:
  • Relationships can include:
  • the segments are divided into a number of matching point ranges
  • a similarity threshold corresponding to the matching point quantity range is obtained according to the maximum value of the similarity score.
  • Relationships can include:
  • the similarity scores of the multiple groups of the falsely recognized image pairs the number of matching points of the multiple groups of the falsely rejected image pairs, and the similarity of the multiple groups of the falsely rejected image pairs degree score, to obtain the corresponding relationship between multiple ranges of matching points and multiple similarity thresholds.
  • the determining the similarity threshold according to the number of matching points and/or the overlapping area may include:
  • the overlapping area characterization parameter may be greater than a first threshold or may be less than a second threshold, increase the similarity threshold; wherein the first threshold may be greater than the second threshold;
  • the determining the similarity threshold according to the number of matching points and/or the overlapping area characterization parameter may also include:
  • the similarity threshold increases to a maximum value; the third threshold may be greater than the first threshold.
  • the obtaining identification information according to the image to be identified and the template image may include:
  • the multiple biological feature points of the image to be recognized and the multiple template feature points of the template image perform alignment between the multiple biological feature points and the multiple template feature points to obtain matching point pairs;
  • the pair of matching points is used to determine the number of matching points contained in the image to be recognized;
  • the comparing the similarity score with the similarity threshold to obtain the recognition result may include:
  • the similarity score is greater than the similarity threshold, obtain a recognition result that the image to be recognized and the template image belong to the same object.
  • the obtaining the identification result according to the identification information may include:
  • the object to be recognized may be a fingerprint, palmprint or vein
  • the image to be recognized may be a fingerprint image, a palmprint image or a vein image.
  • an image recognition device which may include:
  • An image acquisition module the image acquisition module can be configured to acquire an image to be identified of an object to be identified
  • An information obtaining module may be configured to obtain recognition information according to the image to be recognized and the template image, and the recognition information may include a similarity score between the image to be recognized and the template image, the The number of matching points and/or the overlapping area between the image to be recognized and the template image;
  • a result obtaining module may be configured to obtain a recognition result according to the recognition information.
  • the result obtaining module can also be configured to:
  • the similarity score is compared with the similarity threshold to obtain a recognition result.
  • the information obtaining module can also be configured to:
  • the multiple biological feature points of the image to be recognized and the multiple template feature points of the template image perform alignment between the multiple biological feature points and the multiple template feature points to obtain matching point pairs;
  • the pair of matching points is used to determine the number of matching points contained in the image to be recognized;
  • Still other embodiments of the present application provide an electronic device, and the electronic device may include:
  • memory for storing processor-executable instructions
  • the processor is configured to execute the above image recognition method.
  • Still other embodiments of the present application provide a computer-readable storage medium, where the storage medium stores a computer program, and the computer program can be executed by a processor to complete the above-mentioned image recognition method.
  • the image to be recognized and the template image are judged according to the similarity score between the image to be recognized and the template image, the number of matching points and/or the overlapping area between the image to be recognized and the template image belong to the same object.
  • the solution provided by the present application improves the recognition accuracy.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Fig. 2 is a schematic flow chart of an image recognition method provided by an embodiment of the present application.
  • Fig. 3 is a detailed flowchart of step S220 in the embodiment corresponding to Fig. 2;
  • Fig. 4 is a schematic flow chart of the alignment process provided by the embodiment of the present application.
  • Fig. 5 is a detailed flowchart of step S230 in the embodiment corresponding to Fig. 2;
  • Fig. 6 is a schematic flow chart of determining similarity thresholds in different ranges provided by an embodiment of the present application.
  • FIG. 7 is a schematic flowchart of the details of step 603 in the embodiment corresponding to FIG. 6;
  • Fig. 8 is a schematic flow chart of determining similarity thresholds in different ranges provided by another embodiment of the present application.
  • Fig. 9 is a schematic diagram of the distribution of the number of matching points and similarity scores of falsely rejected image pairs and misrecognized image pairs provided by the embodiment of the present application;
  • Fig. 10 is a block diagram of an image recognition device provided by an embodiment of the present application.
  • Artificial Intelligence is an emerging science and technology that studies and develops theories, methods, technologies and application systems for simulating and extending human intelligence.
  • the subject of artificial intelligence is a comprehensive subject that involves many technologies such as chips, big data, cloud computing, Internet of Things, distributed storage, deep learning, machine learning, and neural networks.
  • computer vision is specifically to allow machines to recognize the world.
  • Computer vision technology usually includes face recognition, liveness detection, fingerprint recognition and anti-counterfeiting verification, biometric recognition, face detection, pedestrian detection, target detection, pedestrian detection, etc.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 100 may be used to execute the image recognition method provided in the embodiment of the present application.
  • the electronic device 100 includes: one or more processors 102 , and one or more memories 104 storing processor-executable instructions.
  • the processor 102 is configured to execute the image recognition method provided in the following embodiments of the present application.
  • the processor 102 may be a gateway, or an intelligent terminal, or a device including a central processing unit (CPU), a graphics processing unit (GPU), or other forms of processing units with data processing capabilities and/or instruction execution capabilities , can process data of other components in the electronic device 100, and can also control other components in the electronic device 100 to perform desired functions.
  • CPU central processing unit
  • GPU graphics processing unit
  • Other forms of processing units with data processing capabilities and/or instruction execution capabilities can process data of other components in the electronic device 100, and can also control other components in the electronic device 100 to perform desired functions.
  • the memory 104 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory.
  • the volatile memory may include, for example, random access memory (RAM) and/or cache memory (cache).
  • the non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, and the like.
  • One or more computer program instructions can be stored on the computer-readable storage medium, and the processor 102 can execute the program instructions to implement the image recognition method described below.
  • Various application programs and various data such as various data used and/or generated by the application programs, may also be stored in the computer-readable storage medium.
  • the electronic device 100 shown in FIG. 1 may further include an input device 106, an output device 108, and a data acquisition device 110, and these components are interconnected through a bus system 112 and/or other forms of connection mechanisms (not shown).
  • a bus system 112 and/or other forms of connection mechanisms (not shown).
  • the components and structure of the electronic device 100 shown in FIG. 1 are exemplary rather than limiting, and the electronic device 100 may also have other components and structures as required.
  • the input device 106 may be a device used by a user to input instructions, and may include one or more of a keyboard, a mouse, a microphone, and a touch screen.
  • the output device 108 may output various information (eg, images or sounds) to the outside (eg, a user), and may include one or more of a display, a speaker, and the like.
  • the data acquisition device 110 can acquire images of objects and store the acquired images in the memory 104 for use by other components.
  • the data collection device 110 may be a camera.
  • each device in the example electronic device 100 used to implement the image recognition method of the embodiment of the present application can be integrated or distributed, such as the processor 102, the memory 104, the input device 106 and the output device 108 are integrated in one body, and the data collection device 110 is separately set.
  • the example electronic device 100 for implementing the image recognition method of the embodiment of the present application may be implemented as a smart terminal such as a smart phone, a tablet computer, a smart watch, or a vehicle-mounted device.
  • Fig. 2 is a schematic flowchart of an image recognition method provided by an embodiment of the present application. The method can be executed by the above-mentioned electronic device. As shown in FIG. 2 , the method includes the following steps S210-S230.
  • Step S210 Obtain the image of the object to be recognized.
  • the object to be recognized may be a fingerprint, a palm print or a vein.
  • the image to be recognized can be a fingerprint image, a palm print image or a vein image.
  • the image to be recognized may be collected by the biometric image collection device and then sent to the electronic device, and then the electronic device uses the image recognition method provided in this application to compare the received biometric image with the template image stored in advance. Comparison.
  • the electronic device may also include a biometric image collection device, so the image to be recognized is directly collected by the electronic device, and the image to be recognized is recognized.
  • recognizing the image is to judge whether the image to be recognized and the template image belong to the same object.
  • the image to be recognized and the template image stored in advance belong to the same finger or palm, and can be unlocked. Therefore, the image to be recognized can also be called the unlocking image, and the template image can also be called the base library image.
  • the template image can be regarded as a biometric image of a known identity stored in advance. However, if the image to be recognized and the template image are compared and determined to belong to the same object, the identity of the user of the image to be recognized can be determined.
  • Step S220 Obtain identification information according to the image to be identified and the template image.
  • the identification information includes the similarity score between the image to be identified and the template image, the number of matching points between the image to be identified and the template image and/or the overlapping area characterization parameters;
  • identification information may include similarity score and number of matching points; in another embodiment, identification information may include similarity score and overlapping area characterization parameters; in other embodiments, identification information may include similarity Score, number of matching points, and overlapping area characterize parameters. In other embodiments, the identification information may also only include the number of matching points. The identification information may include one or more of the similarity score, the number of matching points, and the overlapping area characterization parameters.
  • the similarity score is used to characterize the similarity between the image to be recognized and the template image.
  • the number of matching points refers to the number of feature point pairs matched between the image to be recognized and the template image obtained during feature point pairing.
  • the overlapping area characterization parameter can be the ratio of the area of the overlapping area to the total area of the image to be recognized, or the area size of the overlapping area.
  • the above step S220 specifically includes: according to the image to be recognized and the template image, obtaining a similarity score between the image to be recognized and the template image through a binary classification algorithm.
  • the similarity score is used to characterize the similarity between the image to be recognized and the template image, for example, 1 may represent the highest similarity score, and 0 may represent the lowest similarity score.
  • the image to be recognized may be aligned with the template image, and then the aligned image to be recognized and the template image may be input into a trained binary classification algorithm to obtain a similarity score output by the binary classification algorithm.
  • Binary classification algorithms can be trained using a large number of biometric images with known similarity scores.
  • step S220 may include the following steps S221 to S222.
  • Step S221 According to the multiple biological feature points of the image to be recognized and the multiple template feature points of the template image, perform alignment between the multiple biological feature points and the multiple template feature points to obtain matching point pairs .
  • the biological feature point refers to the feature point and its descriptor in the image to be recognized.
  • the template feature points refer to the feature points and their descriptors in the template image.
  • the method for extracting image feature points and their descriptors can use ORB method, SIFT method or method based on deep neural network.
  • feature points and descriptors corresponding to each point are extracted from the image to be recognized and the template image respectively. Then, according to the feature points and descriptors, the two images are aligned to obtain the matching point pairs, and the brute force matching or RANSAC method can be used. It should be noted that a biological feature point corresponds to a template feature point, and these two feature points can be considered to form a matching point pair.
  • Step S222 Determine the number of matching points contained in the image to be recognized according to the matching point pairs.
  • the number of matching points contained in the image to be recognized can be obtained by counting the number of matching point pairs.
  • the above step S220 may include the following steps: performing alignment processing on the image to be recognized and the template image; calculating an overlapping area characteristic parameter between the image to be recognized and the template image after the alignment processing.
  • the alignment process refers to detecting the feature points of the image to be recognized and the template image, pairing the feature points, and calculating the transformation matrix between the feature points of the image to be recognized and the matching points of the template image, and transforming the image to be recognized according to this
  • the matrix is transformed.
  • the transformation matrix can be a rigid transformation matrix or an affine transformation matrix.
  • the aligned image to be recognized can be obtained.
  • alignment may be performed based on feature points and descriptors to obtain aligned images to be recognized.
  • the aligned image is equivalent to a trapezoid. Therefore, the overlapping area between the aligned image to be recognized and the template image can be calculated by calculating the intersection area of two convex quadrilaterals.
  • the overlapping area can be directly used as the above-mentioned overlapping area characterization parameter.
  • the overlapping area is divided by the total area of the aligned images to be recognized to obtain the overlapping area ratio, and the overlapping area ratio can be calculated as as the overlapping area characterization parameter.
  • Step S230 Obtain a recognition result according to the recognition information.
  • the recognition result is used to indicate whether the image to be recognized and the template image belong to the same object.
  • the number of matching points exceeds a specified threshold, it can be directly determined that the image to be recognized and the template image belong to the same object, without calling the binary classification algorithm to calculate the similarity score, thereby reducing the comparison time.
  • the number of matching points is less than or equal to the specified threshold, then calculate the similarity score between the image to be recognized and the template image to improve the recognition accuracy, and when the similarity score is greater than the similarity threshold, determine that the image to be recognized and the template image belong to the same object.
  • step S230 specifically includes the following steps S231 to S232.
  • Step S231 Determine the similarity threshold according to the number of matching points and/or the overlapping area characteristic parameter.
  • Step S232 Compare the similarity score with the similarity threshold to obtain a recognition result.
  • the similarity score is greater than or equal to the similarity threshold, a recognition result that the image to be recognized and the template image belong to the same object can be obtained.
  • the similarity score is less than the similarity threshold, the comparison result that the image to be recognized and the template image do not belong to the same object can be obtained.
  • the similarity threshold is not a fixed value manually set according to experience.
  • the similarity threshold may be determined according to the number of matching points and the overlapping area, or determined solely according to the number of matching points, or determined solely according to the characteristic parameter of the overlapping area.
  • the confidence of the similarity score is often positively correlated with the number of matching points.
  • the larger the number of matching points the smaller the similarity threshold. Therefore, the larger the number of matching points, the lower the false recognition rate, so the similarity threshold can be appropriately reduced.
  • the targeted similarity threshold may also be adjusted according to the overlapping area characterization parameter.
  • the initial value of the similarity threshold may be determined according to the number of matching points, or may be a preset initial value. Afterwards, the similarity threshold is adjusted according to the overlapping area characterization parameter.
  • the similarity threshold when the overlapping area characteristic parameter is larger than a first threshold or smaller than a second threshold, the similarity threshold is increased; wherein, the first threshold is larger than the second threshold. In another embodiment, when the overlapping area characteristic parameter is greater than a third threshold, the similarity threshold may be increased to a preset maximum value; the third threshold is greater than the first threshold.
  • the first threshold may be 0.95
  • the second threshold may be 0.2
  • the third threshold may be 0.98.
  • the overlapping area ratio When the overlapping area ratio is large (such as greater than 0.95) or small (such as less than 0.2), the confidence of the similarity score decreases, and the binary classification threshold can be appropriately restricted, that is, the similarity threshold can be increased.
  • the overlapping area ratio of the image is extremely large (such as greater than 0.98), it is likely that the algorithm fails to align to non-biological texture (such as non-fingerprint) areas such as scratches, cracks, and foreign objects.
  • the similarity threshold It is often necessary to be stuck to an extreme size to prevent misrecognition in such extreme situations.
  • determining the similarity threshold according to the number of matching points specifically includes the following steps: obtaining a similarity threshold corresponding to the range of the number of matching points according to the range of the number of matching points in which the number of matching points is located.
  • a matching point number range corresponds to a similarity threshold
  • different matching point number ranges correspond to different similarity thresholds.
  • the corresponding similarity threshold is 0.57.
  • the corresponding similarity threshold is 0.56; when the number of matching points falls within the third interval (for example, 140-200), the corresponding similarity threshold is 0.55. That is, different matching point quantity ranges correspond to different similarity thresholds, and the larger the number range, the smaller the similarity threshold.
  • the range of the number of matching points corresponding to the number of matching points can be determined. For example, if the number of matching points is in the first interval, the similarity threshold of the first interval can be obtained as 0.57.
  • similarity thresholds corresponding to different matching point quantity ranges may be determined in the manner of the following steps S601 to S604 .
  • Step S601 Obtain multiple sets of misrecognized image pairs and the number of matching points of the multiple sets of misrecognized image pairs; the two images of the misrecognized image pairs are from different target objects.
  • the user is generally required to enter several fingers first, and these entered finger pictures form a "bottom database”.
  • the unlocking map and the bottom library map form a "finger pairing". If you use a finger that does not exist in the bottom library to unlock, the pairing of this unlocking map with a certain bottom library is called “attacking finger pairing”, and the successful identification of the attacking finger pairing is called “false acceptance” (False Accept, that is, FA).
  • the "misrecognized image pair" can be considered as two images belonging to different fingers or palms.
  • two images are considered to belong to the same finger or palm.
  • Step S602 Obtain the similarity scores of multiple sets of misrecognized image pairs according to the binary classification algorithm.
  • the similarity score between the image to be recognized and the template image is also calculated by using the binary classification algorithm.
  • Step S603 According to the number of matching points of multiple groups of the misrecognized image pairs and the similarity scores of the multiple groups of the misrecognized image pairs, obtain the corresponding relationship between multiple ranges of matching point numbers and multiple similarity thresholds.
  • step S603 may include steps S701 to S703.
  • Step S701 According to the number of matching points of multiple groups of the misrecognized image pairs, the segments are divided into multiple ranges of matching point numbers.
  • the number range of each matching point can be the same or different. If the number of matching points is different and the similarity score changes greatly, the span of each matching point number range can be reduced and multiple matching point number ranges can be set. For example, the number of matching points may range from 0-50, 51-100, 101-150, 151-200 and other intervals.
  • Step S702 For each range of the number of matching points, obtain the maximum value of the similarity scores of the misrecognized image pairs corresponding to the range of the number of matching points.
  • the misrecognized image pairs corresponding to the matching point number range can be found, and the maximum similarity score can be found according to the similarity scores of these misrecognized image pairs. Therefore, for each range of the number of matching points, the maximum value of the corresponding similarity score can be found.
  • Step S703 Obtain a similarity threshold corresponding to the matching point quantity range according to the maximum value of the similarity score.
  • the similarity threshold corresponding to the range of the number of matching points may be slightly greater than the maximum value of the similarity score corresponding to the range of the number of matching points.
  • the similarity threshold corresponding to each matching point quantity range can be obtained.
  • similarity thresholds corresponding to different matching point quantity ranges may also be determined by the following steps S801 to S803 .
  • Step S801 Obtain multiple groups of falsely rejected image pairs and the number of matching points of the multiple groups of falsely rejected image pairs; the two images of the falsely rejected image pairs are from the same target object.
  • the "falsely rejected image pair" can be considered as two images belonging to the same finger or palm.
  • two images are at a preset similarity threshold, they are considered to belong to different fingers or palms.
  • Step S802 Obtain the similarity scores of multiple groups of falsely rejected image pairs according to the binary classification algorithm
  • both the similarity score of the falsely recognized image pair and the similarity score of the falsely rejected image pair can be obtained by using the same binary classification algorithm.
  • Step S803 According to the number of matching points of the multiple groups of the falsely recognized image pairs, the similarity scores of the multiple groups of the falsely recognized image pairs, the number of matching points of the multiple groups of the falsely rejected image pairs, and the multiple groups of the falsely rejected image pairs The similarity score of the pair is obtained to obtain the correspondence between multiple ranges of matching points and multiple similarity thresholds.
  • the number of matching points of multiple groups of misrecognized image pairs it can be segmented into multiple ranges of matching point numbers; for each range of matching point numbers, the similarity of misrecognized image pairs corresponding to the range of matching point numbers is obtained The maximum value of the score, and the similarity score of the falsely rejected image pair corresponding to the range of the number of matching points.
  • the similarity corresponding to the matching point number range is obtained threshold.
  • the maximum value can be appropriately increased as the threshold, so that the similarity score of the misrecognized image pair is less than the threshold, and at the same time, the similarity score of as few falsely rejected image pairs as possible is less than the threshold .
  • appropriately lower the maximum value as the threshold so that the similarity scores of most misrecognized image pairs are less than the threshold, and the similarity scores of as few falsely rejected image pairs as possible are less than the threshold.
  • 901 represents the number of matching points and the similarity score of the falsely rejected image pair
  • 902 represents the number of matching points and the similarity score of the falsely recognized image pair. Since misrecognition may bring greater security risks, it is possible to control the misrecognition rate while appropriately reducing the similarity threshold, thereby reducing the false rejection rate.
  • the minimum similarity threshold can be 0.5.
  • the similarity threshold may be greater than the maximum similarity score of the misrecognized image pair, for example greater than 0.57. Confidence according to the similarity score is often positively correlated with the number of matching points, that is, the larger the number of matching points, the lower the false positive rate. Therefore, the larger the number of matching points, the lower the similarity threshold can be.
  • five matching point quantity ranges can be configured, and when the matching point quantity is in the first quantity range (for example, 0-100), the corresponding similarity threshold is 0.57.
  • the corresponding similarity threshold is 0.56; when the number of matching points is in the third number section (for example, 140-200), the corresponding similarity threshold is 0.55, when the number of matching points is in the fourth number section (for example, 200-230), the corresponding similarity threshold is 0.53, when the number of matching points is in the fifth number section (for example, 230-330), the corresponding similarity The threshold is 0.5. If the number of matching points is greater than 330, it can be directly considered that the image to be recognized and the template image belong to the same object.
  • the range of the number of matching points corresponding to the number of matching points can be determined first, and then the similarity threshold corresponding to the range of the number of matching points can be obtained. Then adjust the similarity threshold according to the overlapping area ratio between the image to be recognized and the template image. If the overlapping area ratio is large or small, the similarity threshold can be appropriately increased. Then, based on the finally determined similarity threshold, it is compared with the similarity score to determine whether the image to be recognized and the template image belong to the same object. Assuming that the database stores a large number of template images, the method provided by the embodiment of the present application can be used to compare the image to be recognized with each template image until a template image that belongs to the same object as the image to be recognized is found.
  • the similarity threshold corresponding to the range of the number of matching points can be determined. If the image to be recognized and the template image If the overlapping area ratio is less than or equal to the first threshold (for example, 0.95) and greater than or equal to the second threshold (for example, 0.2), then the similarity threshold is used as the similarity threshold for judging whether the image to be recognized and the template image belong to the same object.
  • the first threshold for example, 0.95
  • the second threshold for example, 0.2
  • the similarity threshold corresponding to the obtained matching point quantity range may be increased.
  • the similarity threshold is adjusted from 0.57 to 0.8, and the increased similarity threshold is used as the similarity threshold for judging whether the image to be recognized and the template image belong to the same object.
  • whether the image to be recognized and the template image belong to the same object may also be determined solely according to the overlapping area characteristic parameter. For example, when the overlapping area characterization parameter is in the range of 0.2-0.95, it is considered whether the image to be recognized and the template image belong to the same object.
  • the similarity threshold is determined according to the number of matching points and/or overlapping area between the image to be recognized and the template image, and the similarity score between the image to be recognized and the template image is compared with the similarity threshold to obtain the recognition result of whether the image to be recognized and the template image belong to the same object.
  • the solution provided by the present application improves the accuracy of recognition of the image to be recognized.
  • Fig. 10 is a block diagram of an image recognition device according to an embodiment of the present application. As shown in FIG. 10 , the device includes: an image acquisition module 910 , an information acquisition module 920 , and a result acquisition module 930 .
  • the image acquisition module 910 may be configured to acquire an image to be identified of the object to be identified.
  • An information obtaining module 920 may be configured to obtain recognition information according to the image to be recognized and the template image, where the recognition information includes a similarity score between the image to be recognized and the template image, The number of matching points and/or the overlapping area between the image to be recognized and the template image.
  • the result obtaining module 930 may be configured to obtain a recognition result according to the recognition information.
  • each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more executable instruction.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
  • each functional module in each embodiment of the present application may be integrated to form an independent part, each module may exist independently, or two or more modules may be integrated to form an independent part.
  • the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the computer software product is stored in a storage medium, including several
  • the instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
  • the present application provides an image recognition method and device, electronic equipment, and a storage medium.
  • the method includes: acquiring an image to be recognized of an object to be recognized; obtaining recognition information according to the image to be recognized and a template image; the recognition information includes The similarity score between the image to be recognized and the template image, the number of matching points and/or the overlapping area between the image to be recognized and the template image; obtaining a recognition result according to the recognition information.
  • the scheme provided by the application improves the accuracy of fingerprint or palmprint image recognition waiting to be recognized.
  • the image recognition method and device, electronic equipment, and storage medium of the present application are reproducible and can be used in various industrial applications.
  • the image recognition method and device, electronic equipment, and storage medium of the present application may be used in the technical field of image processing.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Image Analysis (AREA)

Abstract

The present application provides an image recognition method and apparatus, an electronic device, and a storage medium. The method comprises: obtaining an image to be recognized of an object to be recognized; obtaining recognition information according to said image and a template image, the recognition information comprising a similarity score between the image to be recognized and the template image, and the number of matching points and/or an overlap area between the image to be recognized and the template image; and obtaining a recognition result according to the recognition information. The solution provided by the present application improves the recognition accuracy of an image to be recognized such as a fingerprint or palmprint image.

Description

图像识别方法及装置、电子设备、存储介质Image recognition method and device, electronic device, storage medium
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年6月30日提交中国国家知识产权局的申请号为202110739286.5、名称为“图像识别方法及装置、电子设备、存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application with application number 202110739286.5 entitled "Image recognition method and device, electronic equipment, storage medium" filed with the State Intellectual Property Office of China on June 30, 2021, the entire contents of which are incorporated by reference incorporated in this application.
技术领域technical field
本申请涉及图像处理技术领域,特别涉及一种图像识别方法及装置、电子设备、计算机可读存储介质。The present application relates to the technical field of image processing, and in particular to an image recognition method and device, electronic equipment, and a computer-readable storage medium.
背景技术Background technique
作为具有唯一性、永久性、稳定性的生物特征,指纹识别广泛应用于手机解锁、门禁考勤、刑侦破案等需要生物识别认证的场合。指纹识别的最后一步一般为将某些特征(如对齐后解锁图与模板图)送入一个二分类模型,得到一个衡量两枚指纹相似度的二分类得分,将该得分与某一个特定阈值做比较,从而判断这两枚指纹是否来自同一根手指。As a unique, permanent, and stable biometric feature, fingerprint recognition is widely used in occasions that require biometric authentication, such as unlocking mobile phones, access control attendance, and criminal investigation. The final step of fingerprint recognition is generally to send some features (such as the aligned unlock map and template map) into a binary classification model to obtain a binary classification score that measures the similarity between two fingerprints, and compare the score with a specific threshold. Compare to determine whether the two fingerprints come from the same finger.
然而,相关的二分类模型得分在少数情况下往往与实际情况有一定偏差,只通过一个阈值来判断指纹比对是否通过往往不是最合理的,阈值的高低直接决定了指纹比对结果,而阈值都是根据经验设定的,故指纹比对结果的准确性不高。。However, the scores of related binary classification models often deviate from the actual situation in a few cases. It is often not the most reasonable to judge whether the fingerprint comparison is passed through only one threshold. The threshold directly determines the fingerprint comparison result, and the threshold They are all set based on experience, so the accuracy of the fingerprint comparison result is not high. .
发明内容Contents of the invention
本申请实施例提供了一种图像识别方法,用以至少提高指纹或掌纹比对的准确性。The embodiment of the present application provides an image recognition method to at least improve the accuracy of fingerprint or palmprint comparison.
本申请一些实施例提供了一种图像识别方法,该图像识别方法可以包括:Some embodiments of the present application provide an image recognition method, which may include:
获取待识别对象的待识别图像;Obtaining the image to be recognized of the object to be recognized;
根据所述待识别图像和模板图像,获得识别信息,所述识别信息可以包括所述待识别图像与所述模板图像之间的相似度得分、所述待识别图像与所述模板图像之间的匹配点数量和/或重叠面积表征参数;According to the image to be recognized and the template image, recognition information is obtained, and the recognition information may include a similarity score between the image to be recognized and the template image, a similarity score between the image to be recognized and the template image Number of matching points and/or overlapping area characterization parameters;
根据所述识别信息获得识别结果。A recognition result is obtained according to the recognition information.
在一实施例中,所述根据所述识别信息获得识别结果,可以包括:In an embodiment, the obtaining the identification result according to the identification information may include:
根据匹配点数量和/或重叠面积表征参数确定相似度阈值;Determine the similarity threshold according to the number of matching points and/or overlapping area characterization parameters;
将所述相似度得分与所述相似度阈值进行比较,获得识别结果。The similarity score is compared with the similarity threshold to obtain a recognition result.
在一实施例中,所述根据匹配点数量和/或重叠面积表征参数确定相似度阈值,可以包括:In an embodiment, the determining the similarity threshold according to the number of matching points and/or the overlapping area characterization parameters may include:
所述匹配点数量越大,所述相似度阈值越小。The larger the number of matching points, the smaller the similarity threshold.
在一实施例中,根据所述匹配点数量确定相似度阈值,可以包括:In an embodiment, determining the similarity threshold according to the number of matching points may include:
根据所述匹配点数量所处的匹配点数量范围,获得与所述匹配点数量范围对应的相似度阈值;Obtaining a similarity threshold corresponding to the range of the number of matching points according to the range of the number of matching points in which the number of matching points is located;
其中,一个匹配点数量范围对应一个相似度阈值,不同的匹配点数量范围对应不同的相似度阈值。Wherein, a matching point number range corresponds to a similarity threshold, and different matching point number ranges correspond to different similarity thresholds.
在一实施例中,所述根据所述待识别图像和模板图像,获得识别信息,可以包括:In an embodiment, the obtaining identification information according to the image to be identified and the template image may include:
根据所述待识别图像和模板图像,通过二分类算法获得所述待识别图像与所述模板图像之间的相似度得分;Obtaining a similarity score between the image to be recognized and the template image through a binary classification algorithm according to the image to be recognized and the template image;
在所述根据所述匹配点数量所处的匹配点数量范围,获得与所述匹配点数量范围对应的相似度阈值之前,所述方法还可以包括:Before obtaining the similarity threshold corresponding to the range of the number of matching points according to the range of the number of matching points where the number of matching points is located, the method may further include:
获取多组误识图像对以及多组所述误识图像对的匹配点数量;所述误识图像对的两张图像来自不同的目标对象;Obtain multiple groups of misrecognized image pairs and the number of matching points of multiple groups of said misrecognized image pairs; the two images of said misrecognized image pairs are from different target objects;
根据所述二分类算法获得多组误识图像对的相似度得分;Obtain the similarity scores of multiple groups of misrecognized image pairs according to the two classification algorithms;
根据多组所述误识图像对的匹配点数量和多组所述误识图像对的相似度得分,获得多个匹配点数量范围与多个相似度阈值的对应关系。According to the number of matching points of multiple groups of the misrecognized image pairs and the similarity scores of the multiple groups of the misrecognized image pairs, corresponding relationships between multiple ranges of matching point numbers and multiple similarity thresholds are obtained.
在一实施例中,所述根据多组所述误识图像对的匹配点数量和多组所述误识图像对的相似度得分,获得多个匹配点数量范围与多个相似度阈值的对应关系,可以包括:In one embodiment, according to the number of matching points of multiple groups of the misrecognized image pairs and the similarity scores of multiple groups of the misrecognized image pairs, the correspondence between multiple ranges of the number of matching points and multiple similarity thresholds is obtained Relationships can include:
根据多组所述误识图像对的匹配点数量,分段划分为多个匹配点数量范围;According to the number of matching points of multiple sets of misrecognized image pairs, the segments are divided into a number of matching point ranges;
针对每一个匹配点数量范围,获得与所述匹配点数量范围对应的所述误识图像对的相似度得分的最大值;For each matching point number range, obtain the maximum value of the similarity score of the misrecognized image pair corresponding to the matching point number range;
根据所述相似度得分的最大值获得与所述匹配点数量范围对应的相似度阈值。A similarity threshold corresponding to the matching point quantity range is obtained according to the maximum value of the similarity score.
在一实施例中,所述根据多组所述误识图像对的匹配点数量和多组所述误识图像对的相似度得分,获得多个匹配点数量范围与多个相似度阈值的对应关系,可以包括:In one embodiment, according to the number of matching points of multiple groups of the misrecognized image pairs and the similarity scores of multiple groups of the misrecognized image pairs, the correspondence between multiple ranges of the number of matching points and multiple similarity thresholds is obtained Relationships can include:
获取多组误拒图像对以及多组所述误拒图像对的匹配点数量;所述误拒图像对的两张图像来自相同的目标对象;根据所述二分类算法获得多组误拒图像对的相似度得分;Obtain multiple groups of false rejection image pairs and the number of matching points of multiple groups of false rejection image pairs; the two images of the false rejection image pairs are from the same target object; obtain multiple groups of false rejection image pairs according to the binary classification algorithm similarity score;
根据多组所述误识图像对的匹配点数量、多组所述误识图像对的相似度得分、多组所述误拒图像对的匹配点数量、多组所述误拒图像对的相似度得分,获得多个匹配点数量范围与多个相似度阈值的对应关系。According to the number of matching points of the multiple groups of the falsely recognized image pairs, the similarity scores of the multiple groups of the falsely recognized image pairs, the number of matching points of the multiple groups of the falsely rejected image pairs, and the similarity of the multiple groups of the falsely rejected image pairs degree score, to obtain the corresponding relationship between multiple ranges of matching points and multiple similarity thresholds.
在一实施例中,所述根据匹配点数量和/或重叠面积确定相似度阈值,可以包括:In an embodiment, the determining the similarity threshold according to the number of matching points and/or the overlapping area may include:
当所述重叠面积表征参数可以大于第一阈值或可以小于第二阈值时,增大所述相似度阈值;其中,所述第一阈值可以大于所述第二阈值;When the overlapping area characterization parameter may be greater than a first threshold or may be less than a second threshold, increase the similarity threshold; wherein the first threshold may be greater than the second threshold;
在一实施例中,所述根据匹配点数量和/或重叠面积表征参数确定相似度阈值,还可以包括:In an embodiment, the determining the similarity threshold according to the number of matching points and/or the overlapping area characterization parameter may also include:
当所述重叠面积表征参数大于第三阈值时,所述相似度阈值增大为极大值;所述第三阈值可以大于所述第一阈值。When the overlapping area characteristic parameter is greater than a third threshold, the similarity threshold increases to a maximum value; the third threshold may be greater than the first threshold.
在一实施例中,所述根据所述待识别图像和模板图像,获得识别信息,可以包括:In an embodiment, the obtaining identification information according to the image to be identified and the template image may include:
根据所述待识别图像的多个生物特征点和所述模板图像的多个模板特征点,进行所述多个生物特征点和多个模板特征点之间的对齐,获得匹配点对;根据所述匹配点对,确定所述待识别图像包含的匹配点数量;According to the multiple biological feature points of the image to be recognized and the multiple template feature points of the template image, perform alignment between the multiple biological feature points and the multiple template feature points to obtain matching point pairs; The pair of matching points is used to determine the number of matching points contained in the image to be recognized;
和/或;and / or;
将所述待识别图像与所述模板图像进行对齐处理;计算对齐处理之后的待识别图像与所述模板图像之间的重叠面积表征参数。performing alignment processing on the image to be recognized and the template image; calculating an overlapping area characteristic parameter between the image to be recognized after the alignment processing and the template image.
在一实施例中,所述将所述相似度得分与所述相似度阈值进行比较,获得识别结果,可以包括:In an embodiment, the comparing the similarity score with the similarity threshold to obtain the recognition result may include:
若所述相似度得分大于所述相似度阈值,获得所述待识别图像与所述模板图像属于同一对象的识别结果。If the similarity score is greater than the similarity threshold, obtain a recognition result that the image to be recognized and the template image belong to the same object.
在一实施例中,所述根据所述识别信息获得识别结果,可以包括:In an embodiment, the obtaining the identification result according to the identification information may include:
若所述匹配点数量大于指定阈值,获得所述待识别图像与所述模板图像属于同一对象的识别结果。If the number of matching points is greater than a specified threshold, a recognition result that the image to be recognized and the template image belong to the same object is obtained.
在一实施例中,所述待识别对象可以为指纹、掌纹或静脉,所述待识别图像可以为指纹图像、掌纹图像或静脉图像。In an embodiment, the object to be recognized may be a fingerprint, palmprint or vein, and the image to be recognized may be a fingerprint image, a palmprint image or a vein image.
本申请另一些实施例提供了一种图像识别装置,该图像识别装置可以包括:Other embodiments of the present application provide an image recognition device, which may include:
图像获取模块,图像获取模块可以配置成用于获取待识别对象的待识别图像;An image acquisition module, the image acquisition module can be configured to acquire an image to be identified of an object to be identified;
信息获得模块,信息获得模块可以配置成用于根据所述待识别图像和模板图像,获得识别信息,所述识别信息可以包括所述待识别图像与所述模板图像之间的相似度得分、所述待识别图像与所述模板图像之间的匹配点数量和/或重叠面积;An information obtaining module, the information obtaining module may be configured to obtain recognition information according to the image to be recognized and the template image, and the recognition information may include a similarity score between the image to be recognized and the template image, the The number of matching points and/or the overlapping area between the image to be recognized and the template image;
结果获得模块,结果获得模块可以配置成用于根据所述识别信息获得识别结果。A result obtaining module, the result obtaining module may be configured to obtain a recognition result according to the recognition information.
在一实施例中,所述结果获得模块还可以配置成用于:In an embodiment, the result obtaining module can also be configured to:
根据匹配点数量和/或重叠面积表征参数确定相似度阈值;Determine the similarity threshold according to the number of matching points and/or overlapping area characterization parameters;
将所述相似度得分与所述相似度阈值进行比较,获得识别结果。The similarity score is compared with the similarity threshold to obtain a recognition result.
在一实施例中,所述信息获得模块还可以配置成用于:In an embodiment, the information obtaining module can also be configured to:
根据所述待识别图像的多个生物特征点和所述模板图像的多个模板特征点,进行所述多个生物特征点和多个模板特征点之间的对齐,获得匹配点对;根据所述匹配点对,确定所述待识别图像包含的匹配点数量;According to the multiple biological feature points of the image to be recognized and the multiple template feature points of the template image, perform alignment between the multiple biological feature points and the multiple template feature points to obtain matching point pairs; The pair of matching points is used to determine the number of matching points contained in the image to be recognized;
和/或;and / or;
将所述待识别图像与所述模板图像进行对齐处理;计算对齐处理之后的待识别图像与所述模板图像之间的重叠面积表征参数。performing alignment processing on the image to be recognized and the template image; calculating an overlapping area characteristic parameter between the image to be recognized after the alignment processing and the template image.
本申请的再一些实施例提供了一种电子设备,所述电子设备可以包括:Still other embodiments of the present application provide an electronic device, and the electronic device may include:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为执行上述图像识别方法。Wherein, the processor is configured to execute the above image recognition method.
本申请又一些实施例提供了一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序可由处理器执行以完成上述图像识别方法。Still other embodiments of the present application provide a computer-readable storage medium, where the storage medium stores a computer program, and the computer program can be executed by a processor to complete the above-mentioned image recognition method.
本申请上述实施例提供的技术方案,根据待识别图像与模板图像之间的相似度得分、待识别图像与模板图像之间的匹配点数量和/或重叠面积,来判断待识别图像与模板图像是否属于同一对象。相比根据需要随意设定一个相似阈值,仅根据相似度得分高低来进行图像识别,本申请提供的方案提高了识别准确性。In the technical solution provided by the above-mentioned embodiments of the present application, the image to be recognized and the template image are judged according to the similarity score between the image to be recognized and the template image, the number of matching points and/or the overlapping area between the image to be recognized and the template image belong to the same object. Compared with setting a similarity threshold arbitrarily according to needs and performing image recognition only according to the similarity score, the solution provided by the present application improves the recognition accuracy.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单地介绍。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the embodiments of the present application.
图1为本申请一实施例提供的电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图2是本申请实施例提供的一种图像识别方法的流程示意图;Fig. 2 is a schematic flow chart of an image recognition method provided by an embodiment of the present application;
图3是图2对应实施例中步骤S220的细节流程图;Fig. 3 is a detailed flowchart of step S220 in the embodiment corresponding to Fig. 2;
图4是本申请实施例提供的对齐处理的流程示意图;Fig. 4 is a schematic flow chart of the alignment process provided by the embodiment of the present application;
图5是图2对应实施例中步骤S230的细节流程图;Fig. 5 is a detailed flowchart of step S230 in the embodiment corresponding to Fig. 2;
图6是本申请一实施例提供的不同数量范围的相似度阈值的确定流程示意图;Fig. 6 is a schematic flow chart of determining similarity thresholds in different ranges provided by an embodiment of the present application;
图7是图6对应实施例中步骤603的细节流程示意图;FIG. 7 is a schematic flowchart of the details of step 603 in the embodiment corresponding to FIG. 6;
图8是本申请另一实施例提供的不同数量范围的相似度阈值的确定流程示意图;Fig. 8 is a schematic flow chart of determining similarity thresholds in different ranges provided by another embodiment of the present application;
图9是本申请实施例提供的误拒图像对和误识图像对的匹配点数量和相似度得分的分布示意图;Fig. 9 is a schematic diagram of the distribution of the number of matching points and similarity scores of falsely rejected image pairs and misrecognized image pairs provided by the embodiment of the present application;
图10是本申请实施例提供的一种图像识别装置的框图。Fig. 10 is a block diagram of an image recognition device provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。Like numbers and letters denote similar items in the following figures, so that once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second" and the like are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.
近年来,基于人工智能的计算机视觉、深度学习、机器学习、图像处理、图像识别等 技术研究取得了重要进展。人工智能(Artificial Intelligence,AI)是研究、开发用于模拟、延伸人的智能的理论、方法、技术及应用系统的新兴科学技术。人工智能学科是一门综合性学科,涉及芯片、大数据、云计算、物联网、分布式存储、深度学习、机器学习、神经网络等诸多技术种类。计算机视觉作为人工智能的一个重要分支,具体是让机器识别世界,计算机视觉技术通常包括人脸识别、活体检测、指纹识别与防伪验证、生物特征识别、人脸检测、行人检测、目标检测、行人识别、图像处理、图像识别、图像语义理解、图像检索、文字识别、视频处理、视频内容识别、行为识别、三维重建、虚拟现实、增强现实、同步定位与地图构建(SLAM)、计算摄影、机器人导航与定位等技术。随着人工智能技术的研究和进步,该项技术在众多领域展开了应用,例如安防、城市管理、交通管理、楼宇管理、园区管理、人脸通行、人脸考勤、物流管理、仓储管理、机器人、智能营销、计算摄影、手机影像、云服务、智能家居、穿戴设备、无人驾驶、自动驾驶、智能医疗、人脸支付、人脸解锁、指纹解锁、人证核验、智慧屏、智能电视、摄像机、移动互联网、网络直播、美颜、美妆、医疗美容、智能测温等领域。In recent years, artificial intelligence-based computer vision, deep learning, machine learning, image processing, image recognition and other technologies have made important progress. Artificial Intelligence (AI) is an emerging science and technology that studies and develops theories, methods, technologies and application systems for simulating and extending human intelligence. The subject of artificial intelligence is a comprehensive subject that involves many technologies such as chips, big data, cloud computing, Internet of Things, distributed storage, deep learning, machine learning, and neural networks. As an important branch of artificial intelligence, computer vision is specifically to allow machines to recognize the world. Computer vision technology usually includes face recognition, liveness detection, fingerprint recognition and anti-counterfeiting verification, biometric recognition, face detection, pedestrian detection, target detection, pedestrian detection, etc. Recognition, image processing, image recognition, image semantic understanding, image retrieval, text recognition, video processing, video content recognition, behavior recognition, 3D reconstruction, virtual reality, augmented reality, simultaneous localization and map construction (SLAM), computational photography, robotics Navigation and positioning technologies. With the research and progress of artificial intelligence technology, this technology has been applied in many fields, such as security, urban management, traffic management, building management, park management, face access, face attendance, logistics management, warehouse management, robots , smart marketing, computational photography, mobile imaging, cloud services, smart home, wearable devices, unmanned driving, automatic driving, smart medical care, face payment, face unlock, fingerprint unlock, witness verification, smart screen, smart TV, Cameras, mobile Internet, webcasting, beauty, cosmetics, medical beauty, intelligent temperature measurement and other fields.
图1是本申请实施例提供的电子设备的结构示意图。该电子设备100可以用于执行本申请实施例提供的图像识别方法。如图1所示,该电子设备100包括:一个或多个处理器102、一个或多个存储处理器可执行指令的存储器104。其中,所述处理器102被配置为执行本申请下述实施例提供的图像识别方法。FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 100 may be used to execute the image recognition method provided in the embodiment of the present application. As shown in FIG. 1 , the electronic device 100 includes: one or more processors 102 , and one or more memories 104 storing processor-executable instructions. Wherein, the processor 102 is configured to execute the image recognition method provided in the following embodiments of the present application.
所述处理器102可以是网关,也可以为智能终端,或者是包含中央处理单元(CPU)、图像处理单元(GPU)或者具有数据处理能力和/或指令执行能力的其它形式的处理单元的设备,可以对所述电子设备100中的其它组件的数据进行处理,还可以控制所述电子设备100中的其它组件以执行期望的功能。The processor 102 may be a gateway, or an intelligent terminal, or a device including a central processing unit (CPU), a graphics processing unit (GPU), or other forms of processing units with data processing capabilities and/or instruction execution capabilities , can process data of other components in the electronic device 100, and can also control other components in the electronic device 100 to perform desired functions.
所述存储器104可以包括一个或多个计算机程序产品,所述计算机程序产品可以包括各种形式的计算机可读存储介质,例如易失性存储器和/或非易失性存储器。所述易失性存储器例如可以包括随机存取存储器(RAM)和/或高速缓冲存储器(cache)等。所述非易失性存储器例如可以包括只读存储器(ROM)、硬盘、闪存等。在所述计算机可读存储介质上可以存储一个或多个计算机程序指令,处理器102可以运行所述程序指令,以实现下文所述的图像识别方法。在所述计算机可读存储介质中还可以存储各种应用程序和各种数据,例如所述应用程序使用和/或产生的各种数据等。The memory 104 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and/or cache memory (cache). The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, and the like. One or more computer program instructions can be stored on the computer-readable storage medium, and the processor 102 can execute the program instructions to implement the image recognition method described below. Various application programs and various data, such as various data used and/or generated by the application programs, may also be stored in the computer-readable storage medium.
在一实施例中,图1所示电子设备100还可以包括输入装置106、输出装置108以及数据采集装置110,这些组件通过总线系统112和/或其它形式的连接机构(未示出)互连。应当注意,图1所示的电子设备100的组件和结构只是示例性的,而非限制性的,根据需要,所述电子设备100也可以具有其他组件和结构。In one embodiment, the electronic device 100 shown in FIG. 1 may further include an input device 106, an output device 108, and a data acquisition device 110, and these components are interconnected through a bus system 112 and/or other forms of connection mechanisms (not shown). . It should be noted that the components and structure of the electronic device 100 shown in FIG. 1 are exemplary rather than limiting, and the electronic device 100 may also have other components and structures as required.
所述输入装置106可以是用户用来输入指令的装置,并且可以包括键盘、鼠标、麦克风和触摸屏等中的一个或多个。所述输出装置108可以向外部(例如,用户)输出各种信息(例如,图像或声音),并且可以包括显示器、扬声器等中的一个或多个。所述数据采集装置110可以采集对象的图像,并且将所采集的图像存储在所述存储器104中以供其它组件使用。示例性地,该数据采集装置110可以为摄像头。The input device 106 may be a device used by a user to input instructions, and may include one or more of a keyboard, a mouse, a microphone, and a touch screen. The output device 108 may output various information (eg, images or sounds) to the outside (eg, a user), and may include one or more of a display, a speaker, and the like. The data acquisition device 110 can acquire images of objects and store the acquired images in the memory 104 for use by other components. Exemplarily, the data collection device 110 may be a camera.
在一实施例中,用于实现本申请实施例的图像识别方法的示例电子设备100中的各器件可以集成设置,也可以分散设置,诸如将处理器102、存储器104、输入装置106和输出装置108集成设置于一体,而将数据采集装置110分离设置。In one embodiment, each device in the example electronic device 100 used to implement the image recognition method of the embodiment of the present application can be integrated or distributed, such as the processor 102, the memory 104, the input device 106 and the output device 108 are integrated in one body, and the data collection device 110 is separately set.
在一实施例中,用于实现本申请实施例的图像识别方法的示例电子设备100可以被实现为诸如智能手机、平板电脑、智能手表、车载设备等智能终端。In an embodiment, the example electronic device 100 for implementing the image recognition method of the embodiment of the present application may be implemented as a smart terminal such as a smart phone, a tablet computer, a smart watch, or a vehicle-mounted device.
图2是本申请实施例提供的一种图像识别方法的流程示意图。该方法可以由上述电子设备执行,如图2所示,该方法包括以下步骤S210-步骤S230。Fig. 2 is a schematic flowchart of an image recognition method provided by an embodiment of the present application. The method can be executed by the above-mentioned electronic device. As shown in FIG. 2 , the method includes the following steps S210-S230.
步骤S210:获取待识别对象的待识别图像。Step S210: Obtain the image of the object to be recognized.
其中,待识别对象可以是指纹、掌纹或静脉。待识别图像可以是指纹图像、掌纹图像或静脉图像。Wherein, the object to be recognized may be a fingerprint, a palm print or a vein. The image to be recognized can be a fingerprint image, a palm print image or a vein image.
在一实施例中,待识别图像可以由生物特征图像的采集装置采集后发送到电子设备,之后由电子设备采用本申请提供的图像识别方法,将接收到生物特征图像与事先存储的模板图像进行比对。In one embodiment, the image to be recognized may be collected by the biometric image collection device and then sent to the electronic device, and then the electronic device uses the image recognition method provided in this application to compare the received biometric image with the template image stored in advance. Comparison.
在一实施例中,电子设备也可以包括生物特征图像的采集装置,故由电子设备直接采集得到待识别图像,对待识别图像进行识别。In an embodiment, the electronic device may also include a biometric image collection device, so the image to be recognized is directly collected by the electronic device, and the image to be recognized is recognized.
其中,对图像进行识别,即判断待识别图像与模板图像是否属于同一对象。举例来说,待识别图像与事先存储的模板图像属于同一手指或手掌,可以进行解锁。故待识别图像又可称为解锁图,模板图像又可称为底库图。其中,模板图像可以认为是事先存储的已知身份的生物特征图像。而待识别图像与模板图像如果比对确定属于同一对象,由此可以确定待识别图像的用户身份。Wherein, recognizing the image is to judge whether the image to be recognized and the template image belong to the same object. For example, the image to be recognized and the template image stored in advance belong to the same finger or palm, and can be unlocked. Therefore, the image to be recognized can also be called the unlocking image, and the template image can also be called the base library image. Wherein, the template image can be regarded as a biometric image of a known identity stored in advance. However, if the image to be recognized and the template image are compared and determined to belong to the same object, the identity of the user of the image to be recognized can be determined.
步骤S220:根据所述待识别图像和模板图像,获得识别信息。Step S220: Obtain identification information according to the image to be identified and the template image.
其中,识别信息包括所述待识别图像与所述模板图像之间的相似度得分、所述待识别图像与所述模板图像之间的匹配点数量和/或重叠面积表征参数;Wherein, the identification information includes the similarity score between the image to be identified and the template image, the number of matching points between the image to be identified and the template image and/or the overlapping area characterization parameters;
在一实施例中,识别信息可以包括相似度得分和匹配点数量;在另一实施例中,识别信息可以包括相似度得分和重叠面积表征参数;在其他实施例中,识别信息可以包括相似度得分、匹配点数量和重叠面积表征参数。在其他实施例中,识别信息也可以仅包括匹配点数量。识别信息可以包括相似度得分、匹配点数量以及重叠面积表征参数三者中的一种 或几种。In one embodiment, identification information may include similarity score and number of matching points; in another embodiment, identification information may include similarity score and overlapping area characterization parameters; in other embodiments, identification information may include similarity Score, number of matching points, and overlapping area characterize parameters. In other embodiments, the identification information may also only include the number of matching points. The identification information may include one or more of the similarity score, the number of matching points, and the overlapping area characterization parameters.
其中,相似度得分用于表征待识别图像与模板图像之间的相似度。匹配点数量是指进行特征点配对时得到的待识别图像与模板图像之间匹配的特征点对的数量。重叠面积表征参数可以是重叠区域的面积占待识别图像总面积的比例,也可以是重叠区域的面积大小。下面对如何获得相似度得分、匹配点数量和重叠面积表征参数的过程展开详细描述。Among them, the similarity score is used to characterize the similarity between the image to be recognized and the template image. The number of matching points refers to the number of feature point pairs matched between the image to be recognized and the template image obtained during feature point pairing. The overlapping area characterization parameter can be the ratio of the area of the overlapping area to the total area of the image to be recognized, or the area size of the overlapping area. The process of how to obtain the similarity score, the number of matching points and the characteristic parameters of overlapping area will be described in detail below.
在一实施例中,上述步骤S220具体包括:根据所述待识别图像和模板图像,通过二分类算法获得所述待识别图像与所述模板图像之间的相似度得分。In an embodiment, the above step S220 specifically includes: according to the image to be recognized and the template image, obtaining a similarity score between the image to be recognized and the template image through a binary classification algorithm.
相似度得分用于表征待识别图像与模板图像之间的相似度,举例来说,1可以表示相似度得分最高,0表示相似度得分最低。在一实施例中,可以将待识别图像与模板图像进行对齐,再将对齐后的待识别图像与模板图像输入训练好的二分类算法,获得二分类算法输出的相似度得分。二分类算法可以利用已知相似度得分的大量生物特征图像训练得到。The similarity score is used to characterize the similarity between the image to be recognized and the template image, for example, 1 may represent the highest similarity score, and 0 may represent the lowest similarity score. In one embodiment, the image to be recognized may be aligned with the template image, and then the aligned image to be recognized and the template image may be input into a trained binary classification algorithm to obtain a similarity score output by the binary classification algorithm. Binary classification algorithms can be trained using a large number of biometric images with known similarity scores.
在另一实施例中,如图3所示,上述步骤S220可以包括以下步骤S221至步骤S222。In another embodiment, as shown in FIG. 3 , the above step S220 may include the following steps S221 to S222.
步骤S221:根据所述待识别图像的多个生物特征点和所述模板图像的多个模板特征点,进行所述多个生物特征点和多个模板特征点之间的对齐,获得匹配点对。Step S221: According to the multiple biological feature points of the image to be recognized and the multiple template feature points of the template image, perform alignment between the multiple biological feature points and the multiple template feature points to obtain matching point pairs .
其中,生物特征点是指待识别图像中的特征点及其描述子。模板特征点是指模板图像中的特征点及其描述子。提取图像的特征点及其描述子的方法可以采用ORB方法、SIFT方法或者基于深度神经网络的方法。Among them, the biological feature point refers to the feature point and its descriptor in the image to be recognized. The template feature points refer to the feature points and their descriptors in the template image. The method for extracting image feature points and their descriptors can use ORB method, SIFT method or method based on deep neural network.
如图4所示,分别对待识别图像和模板图像提取特征点及各点对应的描述子。进而根据特征点及描述子进行两图间的对齐,获得匹配点对,可以采用暴力匹配或RANSAC方法。需要说明的是,某个生物特征点与某个模板特征点相对应,可以认为这两个特征点构成匹配点对。As shown in Figure 4, feature points and descriptors corresponding to each point are extracted from the image to be recognized and the template image respectively. Then, according to the feature points and descriptors, the two images are aligned to obtain the matching point pairs, and the brute force matching or RANSAC method can be used. It should be noted that a biological feature point corresponds to a template feature point, and these two feature points can be considered to form a matching point pair.
步骤S222:根据所述匹配点对,确定所述待识别图像包含的匹配点数量。Step S222: Determine the number of matching points contained in the image to be recognized according to the matching point pairs.
通过统计匹配点对的数量可以得到待识别图像包含的匹配点数量。The number of matching points contained in the image to be recognized can be obtained by counting the number of matching point pairs.
在其他实施例中,上述步骤S220可以包括以下步骤:将所述待识别图像与所述模板图像进行对齐处理;计算对齐处理之后的待识别图像与所述模板图像之间的重叠面积表征参数。In other embodiments, the above step S220 may include the following steps: performing alignment processing on the image to be recognized and the template image; calculating an overlapping area characteristic parameter between the image to be recognized and the template image after the alignment processing.
其中,对齐处理是指检测待识别图像和模板图像的特征点,进行特征点配对,并计算待识别图像的特征点变换到模板图像的匹配点之间的变换矩阵,将待识别图像按照此变换矩阵进行变换。变换矩阵可以是刚性变换矩阵或仿射变换矩阵。Among them, the alignment process refers to detecting the feature points of the image to be recognized and the template image, pairing the feature points, and calculating the transformation matrix between the feature points of the image to be recognized and the matching points of the template image, and transforming the image to be recognized according to this The matrix is transformed. The transformation matrix can be a rigid transformation matrix or an affine transformation matrix.
如图4所示,基于刚性变换矩阵M,可以得到对齐后的待识别图像。在其他实施例中,可以基于特征点及描述子进行对齐,得到对齐后的待识别图像。对齐后的图像相当于不规则四边形。故可以用计算两个凸四边形相交区域面积的方式计算出对齐后的待识别图像与 模板图像的重叠面积。在一实施例中,可以将重叠面积直接作为上述重叠面积表征参数,在另一实施例中,重叠面积除以对齐后的待识别图图像的总面积,得到重叠面积比例,可以将重叠面积比例作为重叠面积表征参数。As shown in Figure 4, based on the rigid transformation matrix M, the aligned image to be recognized can be obtained. In other embodiments, alignment may be performed based on feature points and descriptors to obtain aligned images to be recognized. The aligned image is equivalent to a trapezoid. Therefore, the overlapping area between the aligned image to be recognized and the template image can be calculated by calculating the intersection area of two convex quadrilaterals. In one embodiment, the overlapping area can be directly used as the above-mentioned overlapping area characterization parameter. In another embodiment, the overlapping area is divided by the total area of the aligned images to be recognized to obtain the overlapping area ratio, and the overlapping area ratio can be calculated as as the overlapping area characterization parameter.
步骤S230:根据所述识别信息获得识别结果。Step S230: Obtain a recognition result according to the recognition information.
其中,识别结果用于指示待识别图像与模板图像是否属于同一对象。Wherein, the recognition result is used to indicate whether the image to be recognized and the template image belong to the same object.
在一实施例中,在匹配点数量超过指定阈值时,可以直接判定为待识别图像与模板图像属于同一对象,无需调用二分类算法计算相似度得分,从而减少比对时间。在匹配点数量小于等于该指定阈值时,再计算待识别图像与模板图像之间的相似度得分,提高识别准确性,且当相似度得分大于相似度阈值时,确定待识别图像与模板图像属于同一对象。In one embodiment, when the number of matching points exceeds a specified threshold, it can be directly determined that the image to be recognized and the template image belong to the same object, without calling the binary classification algorithm to calculate the similarity score, thereby reducing the comparison time. When the number of matching points is less than or equal to the specified threshold, then calculate the similarity score between the image to be recognized and the template image to improve the recognition accuracy, and when the similarity score is greater than the similarity threshold, determine that the image to be recognized and the template image belong to the same object.
在一实施例中,如图5所示,上述步骤S230具体包括以下步骤S231至步骤S232。In an embodiment, as shown in FIG. 5 , the above step S230 specifically includes the following steps S231 to S232.
步骤S231:根据匹配点数量和/或重叠面积表征参数确定相似度阈值。Step S231: Determine the similarity threshold according to the number of matching points and/or the overlapping area characteristic parameter.
步骤S232:将所述相似度得分与所述相似度阈值进行比较,获得识别结果。Step S232: Compare the similarity score with the similarity threshold to obtain a recognition result.
其中,如果相似度得分大于等于相似度阈值,可以得到待识别图像与模板图像属于同一对象的识别结果。相反的,如果相似度得分小于相似度阈值,可以得到待识别图像与模板图像不属于同一对象的比对结果。Wherein, if the similarity score is greater than or equal to the similarity threshold, a recognition result that the image to be recognized and the template image belong to the same object can be obtained. On the contrary, if the similarity score is less than the similarity threshold, the comparison result that the image to be recognized and the template image do not belong to the same object can be obtained.
需要说明的是,如果计算相似度得分,相似度阈值并非人工按照经验设定的固定值。相似度阈值可以根据匹配点数量和重叠面积来确定,或者,单独根据匹配点数量来确定,或者,单独根据重叠面积表征参数来确定。It should be noted that if the similarity score is calculated, the similarity threshold is not a fixed value manually set according to experience. The similarity threshold may be determined according to the number of matching points and the overlapping area, or determined solely according to the number of matching points, or determined solely according to the characteristic parameter of the overlapping area.
下面对如何确定相似度阈值展开详细描述。How to determine the similarity threshold is described in detail below.
相似度得分的置信度往往与匹配点数量呈正相关,在一实施例中,匹配点数量越大,相似度阈值越小。因此匹配点数量越大,误识率会有所降低,故相似度阈值可以适当减小。在另一些实施例中,还可以根据重叠面积表征参数调整所针对的相似度阈值。在一实施例中,相似度阈值的初始值可以是根据匹配点数量确定的,也可以是预先设定的一个初始值。之后,根据重叠面积表征参数对相似度阈值进行调整。The confidence of the similarity score is often positively correlated with the number of matching points. In one embodiment, the larger the number of matching points, the smaller the similarity threshold. Therefore, the larger the number of matching points, the lower the false recognition rate, so the similarity threshold can be appropriately reduced. In some other embodiments, the targeted similarity threshold may also be adjusted according to the overlapping area characterization parameter. In an embodiment, the initial value of the similarity threshold may be determined according to the number of matching points, or may be a preset initial value. Afterwards, the similarity threshold is adjusted according to the overlapping area characterization parameter.
在一实施例中,当所述重叠面积表征参数大于第一阈值或小于第二阈值时,增大相似度阈值;其中,所述第一阈值大于所述第二阈值。在另一实施例中,当所述重叠面积表征参数大于第三阈值时,相似度阈值可以增大为预设极大值;所述第三阈值大于第一阈值。In an embodiment, when the overlapping area characteristic parameter is larger than a first threshold or smaller than a second threshold, the similarity threshold is increased; wherein, the first threshold is larger than the second threshold. In another embodiment, when the overlapping area characteristic parameter is greater than a third threshold, the similarity threshold may be increased to a preset maximum value; the third threshold is greater than the first threshold.
例如,第一阈值可以是0.95,第二阈值可以是0.2,第三阈值可以是0.98。For example, the first threshold may be 0.95, the second threshold may be 0.2, and the third threshold may be 0.98.
重叠面积比例很大(如大于0.95)或很小(如小于0.2)时,相似度得分的置信度降低,可以适当卡严二分类阈值,即增大相似度阈值。特别地,如果图片重叠面积比例极端大(如大于0.98),很可能是因为对其算法失效,对齐到了划痕、裂纹、异物等非生物纹理(如非指纹)区域上,此时相似度阈值往往也需要卡到极端大,以防止这种极端情况下的误识。When the overlapping area ratio is large (such as greater than 0.95) or small (such as less than 0.2), the confidence of the similarity score decreases, and the binary classification threshold can be appropriately restricted, that is, the similarity threshold can be increased. In particular, if the overlapping area ratio of the image is extremely large (such as greater than 0.98), it is likely that the algorithm fails to align to non-biological texture (such as non-fingerprint) areas such as scratches, cracks, and foreign objects. At this time, the similarity threshold It is often necessary to be stuck to an extreme size to prevent misrecognition in such extreme situations.
在一实施例中,根据匹配点数量确定相似度阈值具体包括以下步骤:根据所述匹配点数量所处的匹配点数量范围,获得与所述匹配点数量范围对应的相似度阈值。In one embodiment, determining the similarity threshold according to the number of matching points specifically includes the following steps: obtaining a similarity threshold corresponding to the range of the number of matching points according to the range of the number of matching points in which the number of matching points is located.
其中,一个匹配点数量范围对应一个相似度阈值,不同的匹配点数量范围对应不同的相似度阈值。举例来说,匹配点数量范围在第一区间(例如0-100个)时,对应的相似度阈值为0.57。匹配点数量范围在第二区间(例如100-140个)时,对应的相似度阈值为0.56;匹配点数量范围在第三区间(例如140-200个)时,对应的相似度阈值为0.55。即不同的匹配点数量范围对应不同的相似度阈值,数量区段越大,相似度阈值越小。Wherein, a matching point number range corresponds to a similarity threshold, and different matching point number ranges correspond to different similarity thresholds. For example, when the range of the number of matching points is in the first interval (for example, 0-100), the corresponding similarity threshold is 0.57. When the number of matching points falls within the second interval (for example, 100-140), the corresponding similarity threshold is 0.56; when the number of matching points falls within the third interval (for example, 140-200), the corresponding similarity threshold is 0.55. That is, different matching point quantity ranges correspond to different similarity thresholds, and the larger the number range, the smaller the similarity threshold.
举例来说,根据待识别图像与模板图像的匹配点数量,可以确定匹配点数量对应的匹配点数量范围,例如匹配点数量处于第一区间,则可以获取第一区间的相似度阈值0.57。For example, according to the number of matching points between the image to be recognized and the template image, the range of the number of matching points corresponding to the number of matching points can be determined. For example, if the number of matching points is in the first interval, the similarity threshold of the first interval can be obtained as 0.57.
在一实施例中,如图6所示,不同的匹配点数量范围对应的相似度阈值可以采用以下步骤S601至步骤S604的方式确定。In an embodiment, as shown in FIG. 6 , similarity thresholds corresponding to different matching point quantity ranges may be determined in the manner of the following steps S601 to S604 .
步骤S601:获取多组误识图像对以及多组所述误识图像对的匹配点数量;所述误识图像对的两张图像来自不同的目标对象。Step S601: Obtain multiple sets of misrecognized image pairs and the number of matching points of the multiple sets of misrecognized image pairs; the two images of the misrecognized image pairs are from different target objects.
举例来说,在指纹识别系统中,一般先要求用户录入若干根手指,这些被录入的手指图片组成了“底库”。在之后的解锁过程中,解锁图与底库图组成“手指配对”。若使用不存在于底库的手指解锁,则这张解锁图与某张底库的配对被称为“攻击手指配对”,攻击手指配对识别成功则被称为“误识”(False Accept,即FA)。For example, in a fingerprint identification system, the user is generally required to enter several fingers first, and these entered finger pictures form a "bottom database". In the subsequent unlocking process, the unlocking map and the bottom library map form a "finger pairing". If you use a finger that does not exist in the bottom library to unlock, the pairing of this unlocking map with a certain bottom library is called "attacking finger pairing", and the successful identification of the attacking finger pairing is called "false acceptance" (False Accept, that is, FA).
故“误识图像对”可以认为是属于不同手指或手掌的两张图像。在两张图像在预设相似度阈值的识别系统中,被认为属于同一手指或手掌。Therefore, the "misrecognized image pair" can be considered as two images belonging to different fingers or palms. In a recognition system with a preset similarity threshold, two images are considered to belong to the same finger or palm.
步骤S602:根据二分类算法获得多组误识图像对的相似度得分。Step S602: Obtain the similarity scores of multiple sets of misrecognized image pairs according to the binary classification algorithm.
需要说明的是,待识别图像和模板图像之间的相似度得分也采用该二分类算法计算得到。It should be noted that the similarity score between the image to be recognized and the template image is also calculated by using the binary classification algorithm.
步骤S603:根据多组所述误识图像对的匹配点数量和多组所述误识图像对的相似度得分,获得多个匹配点数量范围与多个相似度阈值的对应关系。Step S603: According to the number of matching points of multiple groups of the misrecognized image pairs and the similarity scores of the multiple groups of the misrecognized image pairs, obtain the corresponding relationship between multiple ranges of matching point numbers and multiple similarity thresholds.
在一实施例中,如图7所示,上述步骤S603可以包括步骤S701至步骤S703。In an embodiment, as shown in FIG. 7 , the above step S603 may include steps S701 to S703.
步骤S701:根据多组所述误识图像对的匹配点数量,分段划分为多个匹配点数量范围。Step S701: According to the number of matching points of multiple groups of the misrecognized image pairs, the segments are divided into multiple ranges of matching point numbers.
每个匹配点数量范围可以相同,也可不同。如果匹配点数量不同,相似度得分变化较大,可以减小每个匹配点数量范围的跨度,设置多个匹配点数量范围。举例来说,匹配点数量范围可以是有0-50、51-100、101-150、151-200等多个区间。The number range of each matching point can be the same or different. If the number of matching points is different and the similarity score changes greatly, the span of each matching point number range can be reduced and multiple matching point number ranges can be set. For example, the number of matching points may range from 0-50, 51-100, 101-150, 151-200 and other intervals.
步骤S702:针对每一个匹配点数量范围,获得与所述匹配点数量范围对应的所述误识图像对的相似度得分的最大值。Step S702: For each range of the number of matching points, obtain the maximum value of the similarity scores of the misrecognized image pairs corresponding to the range of the number of matching points.
具体的,针对每个匹配点数量范围,可以找出该匹配点数量范围对应的误识图像对, 根据这些误识图像对的相似度得分,找出相似度得分的最大值。故针对每个匹配点数量范围,均可找出对应的相似度得分的最大值。Specifically, for each matching point number range, the misrecognized image pairs corresponding to the matching point number range can be found, and the maximum similarity score can be found according to the similarity scores of these misrecognized image pairs. Therefore, for each range of the number of matching points, the maximum value of the corresponding similarity score can be found.
步骤S703:根据所述相似度得分的最大值获得与所述匹配点数量范围对应的相似度阈值。Step S703: Obtain a similarity threshold corresponding to the matching point quantity range according to the maximum value of the similarity score.
针对每个匹配点数量范围,该匹配点数量范围对应的相似度阈值可以略大于该匹配点数量范围对应的相似度得分的最大值。从而可以得到每个匹配点数量范围对应的相似度阈值。For each range of the number of matching points, the similarity threshold corresponding to the range of the number of matching points may be slightly greater than the maximum value of the similarity score corresponding to the range of the number of matching points. Thus, the similarity threshold corresponding to each matching point quantity range can be obtained.
在其他实施例中,如图8所示,不同的匹配点数量范围对应的相似度阈值还可以采用以下步骤S801至步骤S803确定。In other embodiments, as shown in FIG. 8 , similarity thresholds corresponding to different matching point quantity ranges may also be determined by the following steps S801 to S803 .
步骤S801:获取多组误拒图像对以及多组所述误拒图像对的匹配点数量;所述误拒图像对的两张图像来自相同的目标对象。Step S801: Obtain multiple groups of falsely rejected image pairs and the number of matching points of the multiple groups of falsely rejected image pairs; the two images of the falsely rejected image pairs are from the same target object.
其中,“误拒图像对”可以认为是属于相同手指或手掌的两张图像。在两张图像在预设相似度阈值的识别系统中,被认为属于不同的手指或手掌。Among them, the "falsely rejected image pair" can be considered as two images belonging to the same finger or palm. In a recognition system where two images are at a preset similarity threshold, they are considered to belong to different fingers or palms.
步骤S802:根据所述二分类算法获得多组误拒图像对的相似度得分;Step S802: Obtain the similarity scores of multiple groups of falsely rejected image pairs according to the binary classification algorithm;
需要说明的是,误识图像对的相似度得分和误拒图像对的相似度得分均可采用相同的二分类算法得到。It should be noted that both the similarity score of the falsely recognized image pair and the similarity score of the falsely rejected image pair can be obtained by using the same binary classification algorithm.
步骤S803:根据多组所述误识图像对的匹配点数量、多组所述误识图像对的相似度得分、多组所述误拒图像对的匹配点数量、多组所述误拒图像对的相似度得分,获得多个匹配点数量范围与多个相似度阈值的对应关系。Step S803: According to the number of matching points of the multiple groups of the falsely recognized image pairs, the similarity scores of the multiple groups of the falsely recognized image pairs, the number of matching points of the multiple groups of the falsely rejected image pairs, and the multiple groups of the falsely rejected image pairs The similarity score of the pair is obtained to obtain the correspondence between multiple ranges of matching points and multiple similarity thresholds.
具体的,根据多组误识图像对的匹配点数量,可以分段划分为多个匹配点数量范围;针对每一个匹配点数量范围,获得与匹配点数量范围对应的误识图像对的相似度得分的最大值,以及匹配点数量范围对应的误拒图像对的相似度得分。针对每个匹配点数量范围,根据所述匹配点数量范围对应的误拒图像对的相似度得分和误识图像对的相似度得分的最大值,获得与所述匹配点数量范围对应的相似度阈值。Specifically, according to the number of matching points of multiple groups of misrecognized image pairs, it can be segmented into multiple ranges of matching point numbers; for each range of matching point numbers, the similarity of misrecognized image pairs corresponding to the range of matching point numbers is obtained The maximum value of the score, and the similarity score of the falsely rejected image pair corresponding to the range of the number of matching points. For each matching point number range, according to the maximum value of the similarity score of the falsely rejected image pair and the similarity score of the misrecognized image pair corresponding to the matching point number range, the similarity corresponding to the matching point number range is obtained threshold.
理想情况下,是希望误识图像对都比对失败,误拒图像对都比对成功,策略就是去找一个阈值,使得几乎所有的误识图像对都比对失败,同时尽可能多的误拒图像对能比对成功。则根据误识图像对的相似度得分的最大值可以适当调高最大值作为阈值,让误识图像对的相似度得分小于阈值,同时让尽可能少的误拒图像对的相似度得分小于阈值。或者适当调低最大值作为阈值,让大部分误识图像对的相似度得分小于阈值,尽量少的误拒图像对的相似度得分小于阈值。Ideally, it is hoped that all misrecognized image pairs will fail to compare, and all falsely rejected image pairs will be compared successfully. The rejected image pair can be compared successfully. Then according to the maximum value of the similarity score of the misrecognized image pair, the maximum value can be appropriately increased as the threshold, so that the similarity score of the misrecognized image pair is less than the threshold, and at the same time, the similarity score of as few falsely rejected image pairs as possible is less than the threshold . Or appropriately lower the maximum value as the threshold, so that the similarity scores of most misrecognized image pairs are less than the threshold, and the similarity scores of as few falsely rejected image pairs as possible are less than the threshold.
如果误识会比误拒产生更严重的后果,可以选择前一种方式,根据误识图像对的相似度得分的最大值适当调高最大值作为阈值,让所有误识图像对的相似度得分小于阈值,同 时让尽可能少的误拒图像对的相似度得分小于阈值。If misrecognition will have more serious consequences than false rejection, you can choose the former method, and appropriately increase the maximum value as the threshold according to the maximum value of the similarity score of misrecognized image pairs, so that the similarity scores of all misrecognized image pairs is less than the threshold, and at the same time let the similarity scores of as few falsely rejected image pairs as possible be less than the threshold.
如图9所示,901代表误拒图像对的匹配点数量和相似度得分,902代表误识图像对的匹配点数量和相似度得分。由于误识可能带来更大的安全隐患,故可以控制误识率的同时,适当降低相似度阈值,从而降低误拒率。As shown in FIG. 9 , 901 represents the number of matching points and the similarity score of the falsely rejected image pair, and 902 represents the number of matching points and the similarity score of the falsely recognized image pair. Since misrecognition may bring greater security risks, it is possible to control the misrecognition rate while appropriately reducing the similarity threshold, thereby reducing the false rejection rate.
如图9所示,相似度得分在0.5以上时,误识图像对相对较少,故最小的相似度阈值可以是0.5。相似度阈值可以大于误识图像对的最大相似度得分,例如大于0.57。按照相似度得分的置信度往往与匹配点数量呈正相关,即匹配点数量越大,误识率会有所降低。因此匹配点数量越大,相似度阈值可以越低。As shown in FIG. 9 , when the similarity score is above 0.5, there are relatively few misrecognized image pairs, so the minimum similarity threshold can be 0.5. The similarity threshold may be greater than the maximum similarity score of the misrecognized image pair, for example greater than 0.57. Confidence according to the similarity score is often positively correlated with the number of matching points, that is, the larger the number of matching points, the lower the false positive rate. Therefore, the larger the number of matching points, the lower the similarity threshold can be.
如图9所示,可以配置5个匹配点数量范围,当匹配点数量在第一数量区段(例如0-100个)时,对应的相似度阈值为0.57。匹配点数量在第二数量区段(例如100-140个)时,对应的相似度阈值为0.56;匹配点数量在第三数量区段(例如140-200个)时,对应的相似度阈值为0.55,匹配点数量在第四数量区段(例如200-230个)时,对应的相似度阈值为0.53,匹配点数量在第五数量区段(例如230-330个)时,对应的相似度阈值为0.5。如果匹配点数量大于330个,则可以直接认为待识别图像与模板图像属于同一对象。As shown in FIG. 9 , five matching point quantity ranges can be configured, and when the matching point quantity is in the first quantity range (for example, 0-100), the corresponding similarity threshold is 0.57. When the number of matching points is in the second number section (for example, 100-140), the corresponding similarity threshold is 0.56; when the number of matching points is in the third number section (for example, 140-200), the corresponding similarity threshold is 0.55, when the number of matching points is in the fourth number section (for example, 200-230), the corresponding similarity threshold is 0.53, when the number of matching points is in the fifth number section (for example, 230-330), the corresponding similarity The threshold is 0.5. If the number of matching points is greater than 330, it can be directly considered that the image to be recognized and the template image belong to the same object.
在一实施例中,根据待识别图像与模板图像之间的匹配点数量,可以先确定匹配点数量对应的匹配点数量范围,进而获得匹配点数量范围对应的相似度阈值。之后根据待识别图像与模板图像之间的重叠面积比例,调整相似度阈值。如果重叠面积比例很大或很小,可以适当增大相似度阈值。进而基于最终确定的相似度阈值,与相似度得分进行比较,确定待识别图像与模板图像是否属于同一对象。假设数据库存储了大量模板图像,可以采用本申请实施例提供的方法,将待识别图像与每张模板图像进行比对,直到找到与待识别图像属于同一对象的模板图像。In an embodiment, according to the number of matching points between the image to be recognized and the template image, the range of the number of matching points corresponding to the number of matching points can be determined first, and then the similarity threshold corresponding to the range of the number of matching points can be obtained. Then adjust the similarity threshold according to the overlapping area ratio between the image to be recognized and the template image. If the overlapping area ratio is large or small, the similarity threshold can be appropriately increased. Then, based on the finally determined similarity threshold, it is compared with the similarity score to determine whether the image to be recognized and the template image belong to the same object. Assuming that the database stores a large number of template images, the method provided by the embodiment of the present application can be used to compare the image to be recognized with each template image until a template image that belongs to the same object as the image to be recognized is found.
举例来说,可以通过计算待识别图像与模板图像之间的匹配点数量,根据匹配点数量所处的匹配点数数量范围,确定匹配点数数量范围对应的相似度阈值,如果待识别图像与模板图像的重叠面积比例小于等于第一阈值(例如0.95)且大于等于第二阈值(例如0.2),则将该相似度阈值作为判断待识别图像与模板图像是否属于同一对象的相似度阈值。For example, by calculating the number of matching points between the image to be recognized and the template image, and according to the range of the number of matching points in which the number of matching points is located, the similarity threshold corresponding to the range of the number of matching points can be determined. If the image to be recognized and the template image If the overlapping area ratio is less than or equal to the first threshold (for example, 0.95) and greater than or equal to the second threshold (for example, 0.2), then the similarity threshold is used as the similarity threshold for judging whether the image to be recognized and the template image belong to the same object.
在一实施例中,如果重叠面积比例大于第一阈值(例如0.95)或小于第二比例阈值(例如0.2),则可以增大获取的匹配点数量范围对应的相似度阈值。例如,相似度阈值从0.57调整成0.8,将增大后的相似度阈值作为判断待识别图像与模板图像是否属于同一对象的相似度阈值。In an embodiment, if the overlapping area ratio is greater than a first threshold (for example, 0.95) or smaller than a second ratio threshold (for example, 0.2), the similarity threshold corresponding to the obtained matching point quantity range may be increased. For example, the similarity threshold is adjusted from 0.57 to 0.8, and the increased similarity threshold is used as the similarity threshold for judging whether the image to be recognized and the template image belong to the same object.
在其他实施例中,也可以单独根据重叠面积表征参数来确定待识别图像和模板图像是否属于同一对象。例如,在重叠面积表征参数在0.2-0.95区间时,认为待识别图像和模板图像是否属于同一对象。In other embodiments, whether the image to be recognized and the template image belong to the same object may also be determined solely according to the overlapping area characteristic parameter. For example, when the overlapping area characterization parameter is in the range of 0.2-0.95, it is considered whether the image to be recognized and the template image belong to the same object.
本申请上述实施例提供的技术方案,根据待识别图像与模板图像的匹配点数量和/或重叠面积来确定相似度阈值,并比较待识别图像与模板图像之间的相似度得分与相似度阈值的大小,来得到待识别图像与模板图像是否属于同一对象的识别结果。相比根据需要随意设定一个相似阈值,本申请提供的方案提高了待识别图像识别的准确性。In the technical solution provided by the above-mentioned embodiments of the present application, the similarity threshold is determined according to the number of matching points and/or overlapping area between the image to be recognized and the template image, and the similarity score between the image to be recognized and the template image is compared with the similarity threshold to obtain the recognition result of whether the image to be recognized and the template image belong to the same object. Compared with arbitrarily setting a similarity threshold as required, the solution provided by the present application improves the accuracy of recognition of the image to be recognized.
下述为本申请装置实施例,可以用于执行本申请上述图像识别方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请图像识别方法实施例。The following is an embodiment of the device of the present application, which can be used to implement the above-mentioned embodiment of the image recognition method of the present application. For the details not disclosed in the device embodiment of the present application, please refer to the embodiment of the image recognition method of the present application.
图10为本申请一实施例示出的一种图像识别装置的框图。如图10所示,该装置包括:图像获取模块910、信息获得模块920、结果获得模块930。Fig. 10 is a block diagram of an image recognition device according to an embodiment of the present application. As shown in FIG. 10 , the device includes: an image acquisition module 910 , an information acquisition module 920 , and a result acquisition module 930 .
图像获取模块910,图像获取模块910可以配置成用于获取待识别对象的待识别图像。The image acquisition module 910. The image acquisition module 910 may be configured to acquire an image to be identified of the object to be identified.
信息获得模块920,信息获得模块920可以配置成用于根据所述待识别图像和模板图像,获得识别信息,所述识别信息包括所述待识别图像与所述模板图像之间的相似度得分、所述待识别图像与所述模板图像之间的匹配点数量和/或重叠面积。An information obtaining module 920, the information obtaining module 920 may be configured to obtain recognition information according to the image to be recognized and the template image, where the recognition information includes a similarity score between the image to be recognized and the template image, The number of matching points and/or the overlapping area between the image to be recognized and the template image.
结果获得模块930,结果获得模块930可以配置成用于根据所述识别信息获得识别结果。The result obtaining module 930. The result obtaining module 930 may be configured to obtain a recognition result according to the recognition information.
上述装置中各个模块的功能和作用的实现过程具体详见上述图像识别方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each module in the above-mentioned device, please refer to the implementation process of the corresponding steps in the above-mentioned image recognition method for details, and will not be repeated here.
在本申请所提供的几个实施例中,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided in this application, the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are only illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functions and possible implementations of devices, methods and computer program products according to multiple embodiments of the present application. operate. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more executable instruction. In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present application may be integrated to form an independent part, each module may exist independently, or two or more modules may be integrated to form an independent part.
功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储 介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present application or the part that contributes to the related technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several The instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
工业实用性Industrial Applicability
本申请提供了一种图像识别方法及装置、电子设备、存储介质,该方法包括:获取待识别对象的待识别图像;根据所述待识别图像和模板图像,获得识别信息;所述识别信息包括所述待识别图像与所述模板图像之间的相似度得分、所述待识别图像与所述模板图像之间的匹配点数量和/或重叠面积;根据所述识别信息获得识别结果。本申请提供的方案提高了指纹或掌纹等待识别图像识别的准确性。The present application provides an image recognition method and device, electronic equipment, and a storage medium. The method includes: acquiring an image to be recognized of an object to be recognized; obtaining recognition information according to the image to be recognized and a template image; the recognition information includes The similarity score between the image to be recognized and the template image, the number of matching points and/or the overlapping area between the image to be recognized and the template image; obtaining a recognition result according to the recognition information. The scheme provided by the application improves the accuracy of fingerprint or palmprint image recognition waiting to be recognized.
此外,可以理解的是,本申请的图像识别方法及装置、电子设备、存储介质是可以重现的,并且可以用在多种工业应用中。例如,本申请的图像识别方法及装置、电子设备、存储介质可以用于图像处理的技术领域。In addition, it can be understood that the image recognition method and device, electronic equipment, and storage medium of the present application are reproducible and can be used in various industrial applications. For example, the image recognition method and device, electronic equipment, and storage medium of the present application may be used in the technical field of image processing.

Claims (18)

  1. 一种图像识别方法,其特征在于,包括:An image recognition method, characterized in that, comprising:
    获取待识别对象的待识别图像;Obtaining the image to be recognized of the object to be recognized;
    根据所述待识别图像和模板图像,获得识别信息,所述识别信息包括所述待识别图像与所述模板图像之间的相似度得分、所述待识别图像与所述模板图像之间的匹配点数量和/或重叠面积表征参数;According to the image to be recognized and the template image, recognition information is obtained, and the recognition information includes a similarity score between the image to be recognized and the template image, a match between the image to be recognized and the template image Number of points and/or overlapping area characterizing parameters;
    根据所述识别信息获得识别结果。A recognition result is obtained according to the recognition information.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述识别信息获得识别结果,包括:The method according to claim 1, wherein said obtaining the identification result according to the identification information comprises:
    根据匹配点数量和/或重叠面积表征参数确定相似度阈值;Determine the similarity threshold according to the number of matching points and/or overlapping area characterization parameters;
    将所述相似度得分与所述相似度阈值进行比较,获得识别结果。The similarity score is compared with the similarity threshold to obtain a recognition result.
  3. 根据权利要求2所述的方法,其特征在于,所述根据匹配点数量和/或重叠面积表征参数确定相似度阈值,包括:The method according to claim 2, wherein said determining the similarity threshold according to the number of matching points and/or the overlapping area characterization parameters comprises:
    所述匹配点数量越大,所述相似度阈值越小。The larger the number of matching points, the smaller the similarity threshold.
  4. 根据权利要求2或3所述的方法,其特征在于,根据所述匹配点数量确定相似度阈值,包括:The method according to claim 2 or 3, wherein determining the similarity threshold according to the number of matching points includes:
    根据所述匹配点数量所处的匹配点数量范围,获得与所述匹配点数量范围对应的相似度阈值;Obtaining a similarity threshold corresponding to the range of the number of matching points according to the range of the number of matching points in which the number of matching points is located;
    其中,一个匹配点数量范围对应一个相似度阈值,不同的匹配点数量范围对应不同的相似度阈值。Wherein, a matching point number range corresponds to a similarity threshold, and different matching point number ranges correspond to different similarity thresholds.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述待识别图像和模板图像,获得识别信息,包括:The method according to claim 4, wherein the obtaining identification information according to the image to be identified and the template image comprises:
    根据所述待识别图像和模板图像,通过二分类算法获得所述待识别图像与所述模板图像之间的相似度得分;Obtaining a similarity score between the image to be recognized and the template image through a binary classification algorithm according to the image to be recognized and the template image;
    在所述根据所述匹配点数量所处的匹配点数量范围,获得与所述匹配点数量范围对应的相似度阈值之前,所述方法还包括:Before obtaining the similarity threshold corresponding to the range of the number of matching points according to the range of the number of matching points where the number of matching points is located, the method further includes:
    获取多组误识图像对以及多组所述误识图像对的匹配点数量;所述误识图像对的两张图像来自不同的目标对象;Obtain multiple groups of misrecognized image pairs and the number of matching points of multiple groups of said misrecognized image pairs; the two images of said misrecognized image pairs are from different target objects;
    根据所述二分类算法获得多组误识图像对的相似度得分;Obtain the similarity scores of multiple groups of misrecognized image pairs according to the two classification algorithms;
    根据多组所述误识图像对的匹配点数量和多组所述误识图像对的相似度得分,获得多个匹配点数量范围与多个相似度阈值的对应关系。According to the number of matching points of multiple groups of the misrecognized image pairs and the similarity scores of the multiple groups of the misrecognized image pairs, corresponding relationships between multiple ranges of matching point numbers and multiple similarity thresholds are obtained.
  6. 根据权利要求5所述的方法,其特征在于,所述根据多组所述误识图像对的匹配点数量和多组所述误识图像对的相似度得分,获得多个匹配点数量范围与多个相似度阈值的对应关系,包括:The method according to claim 5, characterized in that, according to the number of matching points of multiple sets of misrecognized image pairs and the similarity scores of multiple sets of misrecognized image pairs, the range of the number of multiple matching points and the number of matching points are obtained. Correspondence of multiple similarity thresholds, including:
    根据多组所述误识图像对的匹配点数量,分段划分为多个匹配点数量范围;According to the number of matching points of multiple sets of misrecognized image pairs, the segments are divided into a number of matching point ranges;
    针对每一个匹配点数量范围,获得与所述匹配点数量范围对应的所述误识图像对的相似度得分的最大值;For each matching point number range, obtain the maximum value of the similarity score of the misrecognized image pair corresponding to the matching point number range;
    根据所述相似度得分的最大值获得与所述匹配点数量范围对应的相似度阈值。A similarity threshold corresponding to the matching point quantity range is obtained according to the maximum value of the similarity score.
  7. 根据权利要求5所述的方法,其特征在于,所述根据多组所述误识图像对的匹配点数量和多组所述误识图像对的相似度得分,获得多个匹配点数量范围与多个相似度阈值的对应关系,包括:The method according to claim 5, characterized in that, according to the number of matching points of multiple sets of misrecognized image pairs and the similarity scores of multiple sets of misrecognized image pairs, the range of the number of multiple matching points and the number of matching points are obtained. Correspondence of multiple similarity thresholds, including:
    获取多组误拒图像对以及多组所述误拒图像对的匹配点数量;所述误拒图像对的两张图像来自相同的目标对象;Obtain multiple groups of false rejection image pairs and the number of matching points of multiple groups of false rejection image pairs; the two images of the false rejection image pairs are from the same target object;
    根据所述二分类算法获得多组误拒图像对的相似度得分;Obtain the similarity score of multiple groups of wrongly rejected image pairs according to the two classification algorithms;
    根据多组所述误识图像对的匹配点数量、多组所述误识图像对的相似度得分、多组所述误拒图像对的匹配点数量、多组所述误拒图像对的相似度得分,获得多个匹配点数量范围与多个相似度阈值的对应关系。According to the number of matching points of the multiple groups of the falsely recognized image pairs, the similarity scores of the multiple groups of the falsely recognized image pairs, the number of matching points of the multiple groups of the falsely rejected image pairs, and the similarity of the multiple groups of the falsely rejected image pairs degree score, to obtain the corresponding relationship between multiple ranges of matching points and multiple similarity thresholds.
  8. 根据权利要求2至7中的任意一项所述的方法,其特征在于,所述根据匹配点数量和/或重叠面积确定相似度阈值,包括:The method according to any one of claims 2 to 7, wherein said determining the similarity threshold according to the number of matching points and/or the overlapping area comprises:
    当所述重叠面积表征参数大于第一阈值或小于第二阈值时,增大所述相似度阈值;其中,所述第一阈值大于所述第二阈值。When the overlapping area characteristic parameter is larger than a first threshold or smaller than a second threshold, increase the similarity threshold; wherein, the first threshold is larger than the second threshold.
  9. 根据权利要求8所述的方法,其特征在于,所述根据匹配点数量和/或重叠面积表征参数确定相似度阈值,还包括:The method according to claim 8, wherein said determining the similarity threshold according to the number of matching points and/or the overlapping area characterization parameter further comprises:
    当所述重叠面积表征参数大于第三阈值时,所述相似度阈值增大为极大值;所述第三阈值大于所述第一阈值。When the overlapping area characteristic parameter is greater than a third threshold, the similarity threshold increases to a maximum value; the third threshold is greater than the first threshold.
  10. 根据权利要求1至9中的任意一项所述的方法,其特征在于,所述根据所述待识别图像和模板图像,获得识别信息,包括:The method according to any one of claims 1 to 9, wherein the obtaining identification information according to the image to be identified and the template image comprises:
    根据所述待识别图像的多个生物特征点和所述模板图像的多个模板特征点,进行所述多个生物特征点和多个模板特征点之间的对齐,获得匹配点对;根据所述匹配点对,确定所述待识别图像包含的匹配点数量;According to the multiple biological feature points of the image to be recognized and the multiple template feature points of the template image, perform alignment between the multiple biological feature points and the multiple template feature points to obtain matching point pairs; The pair of matching points is used to determine the number of matching points contained in the image to be recognized;
    和/或;and / or;
    将所述待识别图像与所述模板图像进行对齐处理;计算对齐处理之后的待识别图像与所述模板图像之间的重叠面积表征参数。performing alignment processing on the image to be recognized and the template image; calculating an overlapping area characteristic parameter between the image to be recognized after the alignment processing and the template image.
  11. 根据权利要求2至9中的任意一项所述的方法,其特征在于,所述将所述相似度得分与所述相似度阈值进行比较,获得识别结果,包括:The method according to any one of claims 2 to 9, wherein said comparing said similarity score with said similarity threshold to obtain a recognition result comprises:
    若所述相似度得分大于所述相似度阈值,获得所述待识别图像与所述模板图像属于同一对象的识别结果。If the similarity score is greater than the similarity threshold, obtain a recognition result that the image to be recognized and the template image belong to the same object.
  12. 根据权利要求1至11中的任意一项所述的方法,其特征在于,所述根据所述识别信息获得识别结果,包括:The method according to any one of claims 1 to 11, wherein said obtaining the identification result according to the identification information comprises:
    若所述匹配点数量大于指定阈值,获得所述待识别图像与所述模板图像属于同一对象的识别结果。If the number of matching points is greater than a specified threshold, a recognition result that the image to be recognized and the template image belong to the same object is obtained.
  13. 根据权利要求1至12中的任意一项所述的方法,其特征在于,所述待识别对象为指纹、掌纹或静脉,所述待识别图像为指纹图像、掌纹图像或静脉图像。The method according to any one of claims 1 to 12, wherein the object to be recognized is a fingerprint, palmprint or vein, and the image to be recognized is a fingerprint image, a palmprint image or a vein image.
  14. 一种图像识别装置,其特征在于,包括:An image recognition device, characterized in that it comprises:
    图像获取模块,所述图像获取模块配置成用于获取待识别对象的待识别图像;an image acquisition module, the image acquisition module is configured to acquire an image to be identified of the object to be identified;
    信息获得模块,所述信息获得模块配置成用于根据所述待识别图像和模板图像,获得识别信息,所述识别信息包括所述待识别图像与所述模板图像之间的相似度得分、所述待识别图像与所述模板图像之间的匹配点数量和/或重叠面积;An information obtaining module, the information obtaining module is configured to obtain recognition information according to the image to be recognized and the template image, the recognition information includes a similarity score between the image to be recognized and the template image, the The number of matching points and/or the overlapping area between the image to be recognized and the template image;
    结果获得模块,所述结果获得模块配置成用于根据所述识别信息获得识别结果。A result obtaining module configured to obtain a recognition result according to the recognition information.
  15. 根据权利要求14所述的图像识别装置,其特征在于,所述结果获得模块还配置成用于:The image recognition device according to claim 14, wherein the result obtaining module is further configured to:
    根据匹配点数量和/或重叠面积表征参数确定相似度阈值;Determine the similarity threshold according to the number of matching points and/or overlapping area characterization parameters;
    将所述相似度得分与所述相似度阈值进行比较,获得识别结果。The similarity score is compared with the similarity threshold to obtain a recognition result.
  16. 根据权利要求14或15所述的图像识别装置,其特征在于,所述信息获得模块还配置成用于:The image recognition device according to claim 14 or 15, wherein the information obtaining module is further configured to:
    根据所述待识别图像的多个生物特征点和所述模板图像的多个模板特征点,进行所述多个生物特征点和多个模板特征点之间的对齐,获得匹配点对;根据所述匹配点对,确定所述待识别图像包含的匹配点数量;According to the multiple biological feature points of the image to be recognized and the multiple template feature points of the template image, perform alignment between the multiple biological feature points and the multiple template feature points to obtain matching point pairs; The pair of matching points is used to determine the number of matching points contained in the image to be recognized;
    和/或;and / or;
    将所述待识别图像与所述模板图像进行对齐处理;计算对齐处理之后的待识别图像与所述模板图像之间的重叠面积表征参数。performing alignment processing on the image to be recognized and the template image; calculating an overlapping area characteristic parameter between the image to be recognized after the alignment processing and the template image.
  17. 一种电子设备,其特征在于,所述电子设备包括:An electronic device, characterized in that the electronic device comprises:
    处理器;processor;
    用于存储处理器执行指令的存储器;memory for storing instructions to be executed by the processor;
    其中,所述处理器被配置为执行根据权利要求1至13中的任意一项所述的图像识别方 法。Wherein, the processor is configured to execute the image recognition method according to any one of claims 1-13.
  18. 一种计算机可读存储介质,其特征在于,所述存储介质存储有计算机程序,所述计算机程序由处理器执行以完成根据权利要求1至13中的任意一项所述的图像识别方法。A computer-readable storage medium, characterized in that the storage medium stores a computer program, and the computer program is executed by a processor to complete the image recognition method according to any one of claims 1-13.
PCT/CN2022/091672 2021-06-30 2022-05-09 Image recognition method and apparatus, electronic device, storage medium WO2023273616A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110739286.5A CN113591921A (en) 2021-06-30 2021-06-30 Image recognition method and device, electronic equipment and storage medium
CN202110739286.5 2021-06-30

Publications (1)

Publication Number Publication Date
WO2023273616A1 true WO2023273616A1 (en) 2023-01-05

Family

ID=78245353

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/091672 WO2023273616A1 (en) 2021-06-30 2022-05-09 Image recognition method and apparatus, electronic device, storage medium

Country Status (2)

Country Link
CN (1) CN113591921A (en)
WO (1) WO2023273616A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113591921A (en) * 2021-06-30 2021-11-02 北京旷视科技有限公司 Image recognition method and device, electronic equipment and storage medium
CN116168345B (en) * 2023-04-21 2023-07-21 深圳开鸿数字产业发展有限公司 Fire detection method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6487306B1 (en) * 1997-08-22 2002-11-26 International Business Machines Corporation System and method for deriving a string-based representation of a fingerprint image
CN101414351A (en) * 2008-11-03 2009-04-22 章毅 Fingerprint recognition system and control method
JP2010061576A (en) * 2008-09-05 2010-03-18 Fujitsu Ltd Fingerprint authentication device, fingerprint authentication program, and fingerprint authentication method
CN107545160A (en) * 2016-06-28 2018-01-05 中兴通讯股份有限公司 Fingerprint identification method and device
CN113591921A (en) * 2021-06-30 2021-11-02 北京旷视科技有限公司 Image recognition method and device, electronic equipment and storage medium

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7359553B1 (en) * 2001-02-16 2008-04-15 Bio-Key International, Inc. Image identification system
US8559684B1 (en) * 2012-08-15 2013-10-15 Google Inc. Facial recognition similarity threshold adjustment
WO2015136714A1 (en) * 2014-03-14 2015-09-17 オムロン株式会社 Image recognition device, image sensor, and image recognition method
CN104636730B (en) * 2015-02-10 2018-09-04 北京信息科技大学 The method and apparatus of face verification
CN105447437B (en) * 2015-02-13 2017-05-03 比亚迪股份有限公司 fingerprint identification method and device
US10262190B2 (en) * 2015-03-26 2019-04-16 Beijing Kuangshi Technology Co., Ltd. Method, system, and computer program product for recognizing face
JP6586514B2 (en) * 2015-05-25 2019-10-02 ▲広▼州酷狗▲計▼算机科技有限公司 Audio processing method, apparatus and terminal
CN106909893B (en) * 2017-02-09 2020-12-29 北京小米移动软件有限公司 Fingerprint identification method and device
CN107392082B (en) * 2017-04-06 2020-08-11 杭州景联文科技有限公司 Small-area fingerprint comparison method based on deep learning
CN107491731B (en) * 2017-07-17 2019-12-20 南京航空航天大学 Ground moving target detection and identification method for accurate striking
CN108389396B (en) * 2018-02-28 2021-05-28 北京精英路通科技有限公司 Vehicle type matching method and device based on video and charging system
CN111091080A (en) * 2019-12-06 2020-05-01 贵州电网有限责任公司 Face recognition method and system
CN111738321B (en) * 2020-06-12 2023-08-08 腾讯音乐娱乐科技(深圳)有限公司 Data processing method, device, terminal equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6487306B1 (en) * 1997-08-22 2002-11-26 International Business Machines Corporation System and method for deriving a string-based representation of a fingerprint image
JP2010061576A (en) * 2008-09-05 2010-03-18 Fujitsu Ltd Fingerprint authentication device, fingerprint authentication program, and fingerprint authentication method
CN101414351A (en) * 2008-11-03 2009-04-22 章毅 Fingerprint recognition system and control method
CN107545160A (en) * 2016-06-28 2018-01-05 中兴通讯股份有限公司 Fingerprint identification method and device
CN113591921A (en) * 2021-06-30 2021-11-02 北京旷视科技有限公司 Image recognition method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113591921A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
Singh et al. A comprehensive overview of biometric fusion
CN109948408B (en) Activity test method and apparatus
CN109657533B (en) Pedestrian re-identification method and related product
WO2021139324A1 (en) Image recognition method and apparatus, computer-readable storage medium and electronic device
Marcel et al. On the recent use of local binary patterns for face authentication
WO2023273616A1 (en) Image recognition method and apparatus, electronic device, storage medium
Zhu et al. Fusing multiple features for depth-based action recognition
El Khiyari et al. Age invariant face recognition using convolutional neural networks and set distances
CN111626371A (en) Image classification method, device and equipment and readable storage medium
CN112395979A (en) Image-based health state identification method, device, equipment and storage medium
TWI704505B (en) Face recognition system, establishing data method for face recognition, and face recognizing method thereof
Liu et al. Robust head pose estimation using Dirichlet-tree distribution enhanced random forests
US20200193117A1 (en) Method and system for neural fingerprint enhancement for fingerprint recognition
US20220207305A1 (en) Multi-object detection with single detection per object
Anthony et al. A review of face anti-spoofing methods for face recognition systems
Qi et al. A real-time face detection method based on blink detection
Nahar et al. Twins and Similar Faces Recognition Using Geometric and Photometric Features with Transfer Learning
WO2006057475A1 (en) Face detection and authentication apparatus and method
CN113190819A (en) Authentication method and device based on living body fusion characteristics and computer equipment
Granda et al. Face recognition systems in math classroom through computer vision traditional techniques
Su et al. Linear and deep order-preserving wasserstein discriminant analysis
Boughrara et al. Facial expression recognition based on perceived facial images and local feature matching
KR101884874B1 (en) Method and apparatus for distinguishing object based on partial image
Ding Combining 2D facial texture and 3D face morphology for estimating people's soft biometrics and recognizing facial expressions
Rahouma et al. Applying mobile intelligent API vision kit and normalized features for face recognition using live cameras

Legal Events

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

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22831443

Country of ref document: EP

Kind code of ref document: A1