Method, device, electronic device and storage medium for matching item identity information

By obtaining and matching the relative coordinate set of the image and determining the number of feature points based on the threshold fan, the problem of low matching accuracy of item identity information in the existing technology is solved, achieving higher matching accuracy and lower misrecognition rate. .

CN113449595BActive Publication Date: 2024-09-24TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110578930.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-26
Publication Date
2024-09-24
Estimated Expiration
2041-05-26

AI Technical Summary

Technical Problem

Existing object identity information matching methods have low accuracy in image matching and have a high misrecognition rate, resulting in unsatisfactory matching results.

Method used

By obtaining the relative coordinate set of the sample image and the item image, and determining the number of successfully matched feature points based on the preset threshold fan, when the number of feature points is greater than the preset threshold, the identity information of the item image is determined based on the identity information of the sample image. , reduce the misrecognition rate and improve the matching accuracy.

Benefits of technology

It significantly reduces the misrecognition rate in item fingerprint recognition, improves the accuracy of item identity information matching results, and ensures the reliability of the matching results through matching verification of the relative coordinates of feature points, relative neighborhood diameters, and relative feature directions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113449595B
    Figure CN113449595B
Patent Text Reader

Abstract

The present invention provides a method, device, electronic device and storage medium for matching item identity information, including: obtaining a first relative coordinate set of a first sample image and a second relative coordinate set of an item image, wherein the first sample image is an image in a first image sample set, and the first image sample set is obtained based on a feature descriptor of the item image and a feature descriptor of each sample image in a preset image sample set; determining a first number of first feature points in the first relative coordinate set that are within a preset threshold fan, wherein the preset threshold fan is determined based on the second relative coordinate set; and determining the identity information of the item image based on the identity information of the first sample image when the first number is greater than a first preset threshold. The method of the present invention can significantly reduce the misidentification rate of item identity identification using item fingerprints, and improve the accuracy of item identity information matching results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision, and in particular to a method, device, electronic device and storage medium for matching object identity information. Background Art

[0002] With the rapid development of image recognition technology, its related applications have been widely used in various fields, such as fingerprint identification, product barcode recognition, object identity information matching, face recognition, etc., providing great convenience to people's lives.

[0003] However, existing object identity information matching methods usually use feature descriptors of the feature points in the image to be detected and the comparison image for matching. Since there may be multiple similar feature points in the image, the accuracy of image matching is not high, there is a high misrecognition rate, and the matching effect is not ideal.

[0004] Therefore, how to better achieve the matching and confirmation of item identity information has become a research focus of the industry. Summary of the invention

[0005] The present invention provides an object identity information matching method, device, electronic device and storage medium, which are used to better realize the matching confirmation of object identity information.

[0006] The present invention provides an object identity information matching method, comprising:

[0007] Acquire a first relative coordinate set of a first sample image and a second relative coordinate set of an object image, wherein the first sample image is an image in a first image sample set, and the first image sample set is obtained according to a feature descriptor of the object image and a feature descriptor of each sample image in a preset image sample set;

[0008] Determine a first number of first feature points in the first relative coordinate set that are within a preset threshold fan, wherein the preset threshold fan is determined based on the second relative coordinate set;

[0009] When the first number is greater than a first preset threshold, the identity information of the object image is determined according to the identity information of the first sample image.

[0010] According to an object identity information matching method provided by the present invention, before obtaining a first relative coordinate set of a first sample image and a second relative coordinate set of an object image, the method further includes:

[0011] Determine a first reference feature point and a second reference feature point having the highest similarity between the first sample image and the object image according to a feature descriptor corresponding to each feature point in the first sample image and a feature descriptor corresponding to each feature point in the object image;

[0012] Taking the first reference feature point as the origin, obtaining a first coordinate system in the first sample image;

[0013] Taking the second reference feature point as the origin, a second coordinate system in the object image is obtained.

[0014] According to an object identity information matching method provided by the present invention, after determining a first number of first feature points in the first relative coordinate set that are within a preset threshold sector, the method further includes:

[0015] Acquire a first relative neighborhood diameter set and a first relative feature direction set of the first sample image, and a second relative neighborhood diameter set and a second relative feature direction set of the object image;

[0016] Determine a second number of second feature points having the same relative neighborhood diameter in the first relative neighborhood diameter set and the second relative neighborhood diameter set, and determine a third number of third feature points having the same relative feature direction in the first relative feature direction set and the second relative feature direction set;

[0017] When the fourth quantity is greater than the second preset threshold, the identity information of the object image is determined according to the identity information of the first sample image, wherein the fourth quantity is determined based on the first quantity, the second quantity and the third quantity.

[0018] According to an item identity information matching method provided by the present invention, before determining the fourth quantity, the method further includes:

[0019] determining the fourth number according to a product of a first weight coefficient and the first number, a product of a second weight coefficient and the second number, and a product of a third weight coefficient and the third number;

[0020] The first weight coefficient is the weight coefficient corresponding to the first quantity, the second weight coefficient is the weight coefficient corresponding to the second quantity, and the third weight coefficient is the weight coefficient corresponding to the third quantity.

[0021] According to an object identity information matching method provided by the present invention, the step of acquiring a first relative coordinate set of a first sample image and a second relative coordinate set of an object image, acquiring a first relative neighborhood diameter set and a first relative feature direction set of the first sample image, and a second relative neighborhood diameter set and a second relative feature direction set of the object image comprises:

[0022] In the first coordinate system, the relative coordinates, relative neighborhood diameter and relative feature direction of each feature point in the first sample image are calculated to obtain a first relative coordinate set, a first relative neighborhood diameter set and a first relative feature direction set of the first sample image;

[0023] In the second coordinate system, the relative coordinates, relative neighborhood diameter and relative feature direction of each feature point in the object image are calculated to obtain a second relative coordinate set, a second relative neighborhood diameter set and a second relative feature direction set of the object image.

[0024] According to an object identity information matching method provided by the present invention, after determining a first number of first feature points in the first relative coordinate set that are within a preset threshold sector, the method further includes:

[0025] Acquire a third relative neighborhood diameter set of the first feature point in the first sample image and a fourth relative neighborhood diameter set of the seventh feature point in the object image;

[0026] The seventh feature point is a feature point in the object image that corresponds to the first feature point;

[0027] Determine the number of eighth feature points having the same relative neighborhood diameter in the third relative neighborhood diameter set and the fourth relative neighborhood diameter set;

[0028] When the number of the eighth feature points is greater than a third preset threshold, the identity information of the object image is determined according to the identity information of the first sample image.

[0029] According to an object identity information matching method provided by the present invention, after determining the number of eighth feature points having the same relative neighborhood diameter in the third relative neighborhood diameter set and the fourth relative neighborhood diameter set, the method further includes:

[0030] Acquire a third relative feature direction set of the eighth feature point in the first sample image and a fourth relative feature direction set of the ninth feature point in the object image;

[0031] The ninth feature point is a feature point in the object image that corresponds to the eighth feature point;

[0032] Determine the number of tenth feature points having the same relative feature directions in the third relative feature direction set and the fourth relative feature direction set;

[0033] When the number of the tenth feature point is greater than a fourth preset threshold, the identity information of the object image is determined according to the identity information of the first sample image.

[0034] The present invention also provides an object identity information matching device, comprising:

[0035] an object fingerprint processing module, configured to obtain a first relative coordinate set of a first sample image and a second relative coordinate set of an object image, wherein the first sample image is an image in a first image sample set, and the first image sample set is obtained based on a feature descriptor of the object image and a feature descriptor of each sample image in a preset image sample set;

[0036] a matching calculation module, configured to determine, in the first relative coordinate set, a first number of first feature points within a preset threshold fan, wherein the preset threshold fan is determined based on the second relative coordinate set;

[0037] A matching result output module is used to determine the identity information of the object image according to the identity information of the first sample image when the first number is greater than a first preset threshold.

[0038] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned methods for matching item identity information are implemented.

[0039] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned object identity information matching methods are implemented.

[0040] The present invention provides an object identity information matching method, device, electronic device and storage medium. The method matches the relative coordinate set of feature points in a sample image obtained by matching feature descriptors with the relative coordinate set of feature points in an object image, and determines the number of successfully matched feature points in the sample image based on a preset threshold fan. When the number of feature points is greater than the preset threshold, the identity information of the object image is determined based on the identity information of the sample image. This can significantly reduce the misrecognition rate of object identity identification using object fingerprints and improve the accuracy of object identity information matching results. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 It is a schematic diagram of the flow of the method for matching the identity information of an object provided by the present invention;

[0043] Figure 2 It is a schematic diagram of threshold sector discrimination in the object identity information matching method provided by the present invention;

[0044] Figure 3 It is a schematic diagram of the parallel matching verification algorithm flow in the method for matching the identity information of an object provided by the present invention;

[0045] Figure 4 It is a flow chart of a verification algorithm for setting a weight function in the method for matching item identity information provided by the present invention;

[0046] Figure 5 It is a flow chart of a serial verification algorithm in the object identity information matching method provided by the present invention;

[0047] Figure 6 It is a schematic diagram of the overall process of the object identity information matching method provided by the present invention;

[0048] Figure 7 It is a structural schematic diagram of the device for matching the identity information of an object provided by the present invention;

[0049] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] It should be noted that in the present invention, the fingerprint of an item refers to a feature information table obtained by extracting features from an image of the surface of an item. The attributes of fingerprint vectors extracted by different feature extraction algorithms are slightly different. In the currently used item fingerprint vector information table, each fingerprint vector contains feature point descriptor information and feature point information, wherein the feature point information includes feature point coordinates, feature point neighborhood diameter, and feature direction. The total number n of fingerprint vectors contained in each item fingerprint can be set to different values ​​according to the item category, usually 50≤n≤1000. The dimension of the feature descriptor can be selected according to the number of items of the same category and the number of feature points, usually 128 dimensions. The feature direction is usually defined by the direction in which the pixel contrast gradient decreases most significantly and the maximum angle between the y-axis direction in the image.

[0052] Figure 1FIG. 1 is a flow chart of the method for matching item identity information provided by the present invention. Figure 1 As shown, including:

[0053] Step S1, obtaining a first relative coordinate set of a first sample image and a second relative coordinate set of an object image, wherein the first sample image is an image in a first image sample set, and the first image sample set is obtained according to a feature descriptor of the object image and a feature descriptor of each sample image in a preset image sample set;

[0054] Specifically, the first relative coordinate set described in the present invention refers to a set of relative coordinates of each feature point in the first sample image.

[0055] The second relative coordinate set described in the present invention refers to a set of relative coordinates of each feature point in the object image.

[0056] The relative coordinates described in the present invention refer to the vector coordinates obtained by the coordinates of the feature points in the image relative to the coordinates of the reference feature points, wherein the coordinates of the feature points refer to the pixel coordinates of the feature points in the image; the reference feature points can be determined based on the feature descriptors in the object image and the feature descriptors in the sample image.

[0057] The feature descriptor described in the present invention refers to a vector used to describe the pixel relationship within an image feature.

[0058] The preset image sample set described in the present invention refers to a preset object image sample database of the present invention, which is used to provide relevant matching data for matching the identity information of the object to be verified.

[0059] The first image sample set described in the present invention is a set of multiple similar image samples obtained by matching the feature descriptor in the object image with the feature descriptor in each sample image in the preset image sample set; the first sample image described in the present invention is any sample image in the first image sample set.

[0060] In the embodiment of the present invention, the feature descriptor matching can be performed using algorithms such as the nearest neighbor, the fast nearest neighbor approximation search function library (Fast Library for Approximate Nearest Neighbors; FLANN) and the string pattern matching (BruteForce; BF) to perform matching calculations. For the fingerprint vector group that has been successfully verified by the feature descriptor matching, the relative relationship of other feature attributes is used to perform fingerprint vector verification to ensure the accuracy of the object identification.

[0061] Furthermore, a first relative coordinate set of the first sample image and a second relative coordinate set of the object image may be acquired.

[0062] Step S2: determining a first number of first feature points in the first relative coordinate set that are within a preset threshold fan, wherein the preset threshold fan is determined based on the second relative coordinate set.

[0063] Specifically, the preset threshold fan described in the present invention refers to a preset error tolerance threshold range of each relative coordinate in the second relative coordinate set.

[0064] Since there may be lens distortion and different angles when taking photos of objects, there may be certain deviations in the angles and distances of the feature points relative to the coordinate vector in the image. In order to avoid the impact of this deviation, as long as the end point of the vector corresponding to the relative coordinate vector of the feature point falls within the threshold fan, it can be determined that the end point corresponds to the end point of the relative coordinate vector of the feature point.

[0065] Figure 2 Schematic diagram of threshold sector discrimination in the object identity information matching method provided by the present invention. Figure 2 As shown in FIG. 1 , the threshold fan is a fault tolerance threshold area composed of the distance threshold and angle threshold of the relative coordinates of the feature point, the distance tolerance threshold and the angle tolerance threshold, wherein the distance threshold refers to the distance tolerance threshold and the angle threshold refers to the angle tolerance threshold. The threshold fan is a sector area formed by giving a certain tolerance range to the length and angle of the end point of the feature vector or relative relationship vector in the fingerprint vector of any object.

[0066] In the embodiment of the present invention, the threshold fan of each feature point in the sample image may also be determined based on the distance tolerance threshold and the angle tolerance threshold of the relative coordinates of the feature point in the sample image, so as to be used in the image feature matching algorithm.

[0067] The first feature point described in the present invention refers to a feature point in the relative coordinates of the first relative coordinate set that falls within a preset threshold fan, and the first number described in the present invention refers to the number of determined first feature points.

[0068] In the embodiment of the present invention, the relative positions of the feature points are determined by the threshold fan, and a certain deviation may be allowed.

[0069] Furthermore, each first feature point and the first quantity in the first relative coordinate set that are within a preset threshold fan may be determined.

[0070] Step S3: when the first number is greater than a first preset threshold, determining the identity information of the object image according to the identity information of the first sample image.

[0071] Specifically, the first preset threshold described in the present invention refers to a preset quantity threshold, which is used to determine the magnitude relationship between the preset threshold and the first quantity to determine whether the first sample image is a target matching image.

[0072] In an embodiment of the present invention, the number of points whose relative relationships meet the requirements is used as a judgment criterion. After the object image and the sample image are matched through feature descriptor matching, 10 successfully matched feature points are obtained, and then matching is performed based on the threshold fan through the relative position coordinates of the feature points. The first threshold is set to 8, that is, as long as it is determined that the relative positions of 8 to 10 feature points in the sample image meet the requirements, the sample image can be determined to be a target matching image.

[0073] In the embodiment of the present invention, a preset threshold may be determined based on the minimum number of feature points for confirming the identity of an image based on the feature point relationship vector.

[0074] Further, when it is determined that the first number is greater than a first preset threshold, the first sample image can be determined as a target matching image, and then the identity information of the object image can be accurately determined based on the identity information of the first sample image.

[0075] The method of the embodiment of the present invention matches the relative coordinate set of feature points in the sample image obtained by matching the feature descriptors with the relative coordinate set of feature points in the object image, and determines the number of successfully matched feature points in the sample image based on a preset threshold fan. When the number of feature points is greater than the preset threshold, the identity information of the object image is determined based on the identity information of the sample image, which can reduce the misrecognition rate of object identity identification using object fingerprints and improve the accuracy of the object identity information matching results.

[0076] Optionally, before acquiring the first relative coordinate set of the first sample image and the second relative coordinate set of the object image, the method further includes:

[0077] Determine a first reference feature point and a second reference feature point having the highest similarity between the first sample image and the object image according to a feature descriptor corresponding to each feature point in the first sample image and a feature descriptor corresponding to each feature point in the object image;

[0078] Taking the first reference feature point as the origin, obtaining a first coordinate system in the first sample image;

[0079] Taking the second reference feature point as the origin, a second coordinate system in the object image is obtained.

[0080] Specifically, the first reference feature point described in the present invention refers to a feature point corresponding to a feature descriptor found in the first sample image and having the highest matching similarity with the object image based on feature descriptor matching.

[0081] The second reference feature point described in the present invention refers to a feature point corresponding to a feature descriptor with the highest matching similarity with the first sample image found in the object image, which corresponds to the first reference feature point.

[0082] The first coordinate system described in the present invention refers to a coordinate system constructed in the first sample image with the first reference feature point as the origin.

[0083] The second coordinate system described in the present invention refers to a coordinate system constructed in the object image with the second reference feature point as the origin.

[0084] Furthermore, in order to enable the relative relationship attributes of the feature points to be accurately matched and verified in the same coordinate system, a group of points with the highest matching similarity between the sample image and the object image can be taken as the origin to construct the coordinate system, that is, the first coordinate system of the first sample image is constructed with the first reference feature point as the origin; and the second coordinate system in the object image is constructed with the second reference feature point as the origin.

[0085] Through the method of the embodiment of the present invention, based on feature descriptor matching, the first reference feature point and the second reference feature point with the highest matching similarity can be determined, and the first coordinate system of the first sample image is constructed with the first reference feature point as the origin, and the second coordinate system in the object image is constructed with the second reference feature point as the origin, to ensure that the first coordinate system and the second coordinate system are the same coordinate system, providing a reliable reference coordinate system for subsequent image feature point verification and matching calculations, thereby improving the accuracy of the matching results.

[0086] Optionally, after determining a first number of first feature points in the first relative coordinate set that are within a preset threshold sector, the method further includes:

[0087] Acquire a first relative neighborhood diameter set and a first relative feature direction set of the first sample image, and a second relative neighborhood diameter set and a second relative feature direction set of the object image;

[0088] Determine a second number of second feature points having the same relative neighborhood diameter in the first relative neighborhood diameter set and the second relative neighborhood diameter set, and determine a third number of third feature points having the same relative feature direction in the first relative feature direction set and the second relative feature direction set;

[0089] When the fourth quantity is greater than the second preset threshold, the identity information of the object image is determined according to the identity information of the first sample image, wherein the fourth quantity is determined based on the first quantity, the second quantity and the third quantity.

[0090] Specifically, the relative neighborhood diameter described in the present invention refers to the ratio of the neighborhood diameter of the feature point in the image to the neighborhood diameter of the reference feature point. The neighborhood diameter of the feature point refers to the maximum pixel diameter of the feature that is meaningful, that is, with a feature point as the center, the gray value change can be detected in an area with a diameter of D pixels, and then D pixels are the neighborhood diameter of the feature point.

[0091] The relative feature direction described in the present invention refers to the difference between the direction of the feature point in the image and the direction of the reference feature point, wherein the feature point direction refers to the direction in which the gradient transformation of the feature point is most obvious.

[0092] The first relative neighborhood diameter set described in the present invention refers to a set of relative neighborhood diameters of each feature point in the first sample image; the first relative feature direction set refers to a set of relative feature directions of each feature point in the first sample image.

[0093] The second relative neighborhood diameter set described in the present invention refers to a set of relative neighborhood diameters of each feature point in the object image; the second relative feature direction set refers to a set of relative feature directions of each feature point in the object image.

[0094] The second feature point described in the present invention refers to the feature point whose relative neighborhood diameter is equal to the relative neighborhood diameter of the feature point in the first relative neighborhood diameter set; the second number refers to the number of the second feature points.

[0095] The third feature point described in the present invention refers to a feature point whose relative feature direction is equal to the relative feature direction of the feature points in the first relative feature direction concentration and the second relative feature direction concentration; the third number refers to the number of the third feature points.

[0096] The fourth quantity described in the present invention refers to any quantity value among the first quantity, the second quantity and the third quantity, and may also be a quantity value obtained after performing the same feature point extraction calculation or weighted sum calculation based on the first quantity, the second quantity and the third quantity, which is used for comparison and judgment with a preset threshold.

[0097] The second preset threshold described in the present invention refers to a preset quantity threshold, which is used to determine the magnitude relationship between the preset threshold and the fourth quantity to determine whether the first sample image is a target matching image.

[0098] Further, by means of parallel calculation, matching calculations are performed on the first relative neighborhood diameter set and the second relative neighborhood diameter set, the first relative feature direction set and the second relative feature direction set, to determine a second number of second feature points having equal relative neighborhood diameters in the first relative neighborhood diameter set and the second relative neighborhood diameter set, and to determine a third number of third feature points having equal relative feature directions in the first relative feature direction set and the second relative feature direction set, and to obtain a fourth number based on analysis of the first number, the second number and the third number;

[0099] Furthermore, when the fourth number is greater than the second preset threshold, the first sample image can be determined as a target matching image, and then the identity information of the object image can be determined according to the identity information of the first sample image.

[0100] In the embodiment of the present invention, for the object identity information matching method based on image features, the feature matching verification includes the comparison and verification of indicators such as feature relative position, feature relative neighborhood diameter and feature relative feature direction. The calculation methods of relative coordinates, relative neighborhood diameter and relative feature direction are as follows:

[0101] (X0 i ,Y0 i )=(X i -X 0 ,Y i -X 0 );

[0102] D0 i =D i / D0 i ;

[0103] R0 i =R i -R0 i ;

[0104] Among them, (Y 0 ,Y 0 )、D 0 and R 0 Respectively represent the coordinates of the reference feature point, the neighborhood diameter and the feature point direction; (X i ,Y i )、D i and R i represents the coordinates, neighborhood diameter and feature point direction of other feature points, where i is the feature point number, (X0 i ,Y0 i )、D0 i and R0 i Represents the calculated relative coordinates of the feature points, relative neighborhood diameter, and relative feature direction.

[0105] Figure 3 FIG. 1 is a flow chart of a parallel matching verification algorithm in the method for matching item identity information provided by the present invention. Figure 3 As shown, taking commodities as an example, the feature point information table of the commodity to be verified is matched and verified in parallel with the feature point information table of the commodity in the database, and the final verification result is obtained by parallel processing of relative neighborhood size verification, relative position verification and relative feature direction verification.

[0106] Specifically, in the embodiment of the present invention, the process of parallel matching and verification between the feature point information table of the commodity to be verified and the feature point information table of the commodity in the database is as follows:

[0107] In an embodiment of the present invention, the feature point information table of the commodity to be verified and the feature point information table of the commodity in the database are verified through relative position, and based on the threshold fan, the first number of first feature points within the threshold fan can be obtained; the feature point information table of the commodity to be verified and the feature point information table of the commodity in the database are verified through relative neighborhood size, and the second number of second feature points with equal relative neighborhood diameter can be obtained; the feature point information table of the commodity to be verified and the feature point information table of the commodity in the database are verified through relative feature direction, and the third number of third feature points with consistent relative feature directions can be obtained, and then the number of feature points that pass the verification is determined based on the first number, the second number and the third number, and any value among the first number, the second number and the third number can be taken as the fourth number, and then the final verification result is determined based on the size relationship between the fourth number and the second preset threshold.

[0108] In addition, in the embodiment of the present invention, the parallel matching verification process may also be:

[0109] The feature point information table of the product to be verified and the product feature point information table in the database are verified through relative position, and based on the threshold fan, the first number of first feature points within the threshold fan can be obtained; the feature point information table of the product to be verified and the product feature point information table in the database are verified through relative neighborhood size, and the second number of second feature points with equal relative neighborhood diameter can be obtained; the feature point information table of the product to be verified and the product feature point information table in the database are verified through relative feature direction, and the third number of third feature points with consistent relative feature directions can be obtained, and then the same feature points are extracted for the first feature point, the second feature point and the third feature point, and the number of the same feature points is determined as the fourth number, and then the final verification result is determined according to the size relationship between the fourth number and the second preset threshold.

[0110] In an embodiment of the present invention, after the object image and the sample image are matched through feature descriptor matching, 10 successfully matched feature points are obtained, and then the neighborhood diameter and feature direction of the feature points are matched respectively through parallel calculation, and the second threshold is set to 5, that is, as long as it is determined that 5 to 10 feature points in the sample image meet the requirements, the sample image can be determined as the target matching image.

[0111] The method of the embodiment of the present invention, after obtaining the first quantity based on the relative coordinate matching of the feature points, matches the neighborhood diameter and the feature direction of the feature points respectively through parallel calculation to obtain the second quantity and the third quantity; analyzes the first quantity, the second quantity and the third quantity to determine the fourth quantity of feature points that ultimately meet the requirements, thereby determining the target matching image according to the threshold, and then determining the identity information of the object image according to the identity information of the first sample image, which can further improve the efficiency of the object identity information matching calculation and the accuracy of the matching results.

[0112] Optionally, before determining the fourth quantity, the method further includes:

[0113] determining the fourth number according to a product of a first weight coefficient and the first number, a product of a second weight coefficient and the second number, and a product of a third weight coefficient and the third number;

[0114] The first weight coefficient is the weight coefficient corresponding to the first quantity, the second weight coefficient is the weight coefficient corresponding to the second quantity, and the third weight coefficient is the weight coefficient corresponding to the third quantity.

[0115] It should be noted that in an embodiment of the present invention, a weight function can be set according to the category of item identity information to assign weights to the first quantity, the second quantity, and the third quantity, thereby determining the weight coefficient corresponding to the first quantity, the weight coefficient corresponding to the second quantity, and the weight coefficient corresponding to the third quantity.

[0116] Specifically, the product of the first weight coefficient and the first quantity, the product of the second weight coefficient and the second quantity, and the product of the third weight coefficient and the third quantity are summed to determine the fourth quantity.

[0117] Figure 4 FIG. 1 is a flow chart of a verification algorithm for setting a weight function in the method for matching item identity information provided by the present invention. Figure 4 As shown, taking commodities as an example, the feature point information table of the commodity to be verified is matched and verified in parallel with the feature point information table of the commodity in the database. By parallel processing the relative neighborhood size verification, relative position verification and relative feature direction verification, the number of each verification is obtained. Based on the weight distribution, the weighted sum calculation analysis is performed to determine the final verification result.

[0118] The method of the embodiment of the present invention can further improve the accuracy of the item identity information verification and matching results by weighting the first quantity, the second quantity and the third quantity and then calculating the fourth quantity.

[0119] Optionally, the acquiring a first relative coordinate set of the first sample image and a second relative coordinate set of the object image, acquiring a first relative neighborhood diameter set and a first relative feature direction set of the first sample image, and a second relative neighborhood diameter set and a second relative feature direction set of the object image, comprises:

[0120] In the first coordinate system, the relative coordinates, relative neighborhood diameter and relative feature direction of each feature point in the first sample image are calculated to obtain a first relative coordinate set, a first relative neighborhood diameter set and a first relative feature direction set of the first sample image;

[0121] In the second coordinate system, the relative coordinates, relative neighborhood diameter and relative feature direction of each feature point in the object image are calculated to obtain a second relative coordinate set, a second relative neighborhood diameter set and a second relative feature direction set of the object image.

[0122] Specifically, in the first coordinate system, the coordinates of each feature point in the first sample image and the coordinates of the first reference feature point are calculated respectively to obtain the relative coordinates of each feature point, thereby obtaining a first relative coordinate set of the first sample image;

[0123] Similarly, in the first coordinate system, the neighborhood diameter of each feature point in the first sample image and the neighborhood diameter of the first reference feature point are calculated respectively to obtain the relative neighborhood diameter of each feature point, thereby obtaining the first relative neighborhood diameter set of the first sample image; in the first coordinate system, the feature direction of each feature point in the first sample image and the feature direction of the first reference feature point are calculated respectively to obtain the relative feature direction of each feature point, thereby obtaining the first relative feature direction set of the first sample image.

[0124] Similarly, according to the above calculation method, in the second coordinate system, the relative coordinates, relative neighborhood diameter and relative feature direction of each feature point in the object image are calculated to obtain the second relative coordinate set, second relative neighborhood diameter set and second relative feature direction set of the object image.

[0125] The method of the embodiment of the present invention is based on the fact that the first coordinate system and the second coordinate system are the same coordinate system. By calculating the relative relationship vector of the feature points in the first sample image in the first coordinate system and calculating the relative relationship vector of the feature points in the object image in the second coordinate system, a matching check is performed on the relative relationship vector of the feature points. The matching check result can be obtained quickly and effectively, and the accuracy of the matching result is guaranteed.

[0126] Optionally, after determining, in the first relative coordinate set, a first number of first feature points within a preset threshold sector, the method further includes:

[0127] Acquire a third relative neighborhood diameter set of the first feature point in the first sample image and a fourth relative neighborhood diameter set of the seventh feature point in the object image;

[0128] The seventh feature point is a feature point in the object image that corresponds to the first feature point;

[0129] Determine the number of eighth feature points having the same relative neighborhood diameter in the third relative neighborhood diameter set and the fourth relative neighborhood diameter set;

[0130] When the number of the eighth feature points is greater than a third preset threshold, the identity information of the object image is determined according to the identity information of the first sample image.

[0131] Specifically, the third relative neighborhood diameter set described in the present invention refers to a set of relative neighborhood diameters of each first feature point in the first sample image.

[0132] The seventh feature point described in the present invention is a feature point that is successfully matched with the first feature point that has passed the verification in the object image based on the verification matching of the relative position coordinates of the feature points.

[0133] The fourth relative neighborhood diameter set described in the present invention refers to a set of relative neighborhood diameters of each seventh feature point in the first sample image.

[0134] The eighth feature point described in the present invention refers to a feature point having the same relative neighborhood diameter in the third relative neighborhood diameter set and the fourth relative neighborhood diameter set.

[0135] The third preset threshold described in the present invention refers to a preset quantity threshold, which is used to determine the magnitude relationship between the preset threshold and the quantity of the eighth feature points, so as to determine whether the first sample image is a target matching image.

[0136] Further, when the number of the eighth feature points is greater than the third preset threshold, the first sample image can be determined as a target matching image, and the identity information of the object image can be determined based on the identity information of the first sample image.

[0137] In an embodiment of the present invention, the number of points whose relative relationships meet the requirements is used as a judgment criterion. After the object image and the sample image are matched through feature descriptor matching, after 10 successfully matched feature points are obtained, matching verification can be performed in turn through the relative position coordinates of the feature points and the relative neighborhood diameter. The third threshold is set to 7, that is, as long as it is determined that 7 to 10 feature points in the sample image meet the requirements, the sample image can be determined to be a target matching image.

[0138] The method of the embodiment of the present invention, based on the sample image obtained by matching the feature descriptor, can further perform relative neighborhood diameter verification of the feature points after the relative coordinate verification of the feature points, and determine the eighth feature point that passes the verification. When the number of feature points is greater than the third preset threshold, the target matching image is determined to further improve the accuracy of the object identity information matching results.

[0139] Optionally, after determining the number of eighth feature points having the same relative neighborhood diameter in the third relative neighborhood diameter set and the fourth relative neighborhood diameter set, the method further includes:

[0140] Acquire a third relative feature direction set of the eighth feature point in the first sample image and a fourth relative feature direction set of the ninth feature point in the object image;

[0141] The ninth feature point is a feature point in the object image corresponding to the eighth feature point;

[0142] Determine the number of tenth feature points having the same relative feature directions in the third relative feature direction set and the fourth relative feature direction set;

[0143] When the number of the tenth feature point is greater than a fourth preset threshold, the identity information of the object image is determined according to the identity information of the first sample image.

[0144] Specifically, the third relative feature direction set described in the present invention refers to a set of relative feature directions of each eighth feature point in the first sample image.

[0145] The ninth feature point described in the present invention is a feature point that is successfully matched with the verified eighth feature point in the object image based on the relative position coordinates and relative neighborhood diameter verification matching of the feature point.

[0146] The fourth relative feature direction set described in the present invention refers to a set of relative feature directions of each ninth feature point in the first sample image.

[0147] The tenth feature point described in the present invention refers to a feature point whose relative feature directions are equal in the third relative feature direction set and the fourth relative feature direction set.

[0148] The fourth preset threshold described in the present invention refers to a preset quantity threshold, which is used to determine the magnitude relationship between the preset threshold and the quantity of the tenth feature point, so as to determine whether the first sample image is a target matching image.

[0149] Further, when the number of the tenth feature point is greater than the fourth preset threshold, the first sample image can be determined as a target matching image, and the identity information of the object image can be determined based on the identity information of the first sample image.

[0150] In an embodiment of the present invention, after the object image and the sample image are matched through feature descriptor matching, after obtaining 10 successfully matched feature points, the matching verification can be performed in turn through the relative position coordinates of the feature points and the relative neighborhood diameter, and the fourth threshold is set to 5, that is, as long as it is determined that 5 to 10 feature points in the sample image meet the requirements, the sample image can be determined to be a target matching image.

[0151] The method of the embodiment of the present invention verifies and matches the sample image obtained by feature descriptor matching through the relative coordinates of the feature points and the relative neighborhood diameter in turn, and then further verifies the relative feature direction of the feature points to determine the eighth feature point that has passed the verification. When the number of feature points is greater than the fourth preset threshold, the identity information of the object image can be determined based on the identity information of the sample image, which can significantly reduce the misrecognition rate of object identity identification using object fingerprints and improve the accuracy of the matching results.

[0152] Figure 5 FIG. 1 is a flow chart of a serial verification algorithm in the object identity information matching method provided by the present invention. Figure 5 As shown, taking the product as an example, the feature point information table of the product to be verified is serially matched with the feature point information table of the product in the database. Through serial processing, relative position verification, relative neighborhood size verification and relative direction verification are performed in turn, verification analysis is performed step by step, matching results are screened, and the final verification result is determined.

[0153] Figure 6 is a schematic diagram of the overall process of the object identity information matching method provided by the present invention, such as Figure 6 As shown, taking the product as an example, the feature point information table of the product to be verified and the feature point information table of the product in the database are first verified based on the feature descriptor matching. After determining that the feature descriptor matching verification has passed, the fingerprint vector verification is further performed, namely, relative position verification, relative neighborhood size verification and relative direction verification, to obtain the final verification result.

[0154] In the embodiment of the present invention, for different categories of items, different parameters and verification processes can be set in the item fingerprint vector verification to adapt to different items, such as: identity information identification of deformation degree and wear degree. The verification algorithm structure in the present invention can adopt a serial structure, a parallel structure or a structure with a weight function.

[0155] The embodiment of the present invention provides an object identity matching and verification method based on the relative relationship of image features, which solves the problem of high misidentification rate caused by using feature descriptors alone for feature matching in object identity identification. Compared with the existing feature matching algorithm, it can significantly reduce the misidentification rate of object identity identification using object fingerprints and improve the accuracy of object identity identification using object fingerprints. At the same time, it can allow the deformation degree to be set according to the material difference of the object to achieve more accurate matching.

[0156] Figure 7 FIG. 7 is a schematic diagram of the structure of the device for matching item identity information provided by the present invention, as shown in FIG. 7 , comprising:

[0157] The object fingerprint processing module 710 is used to obtain a first relative coordinate set of a first sample image and a second relative coordinate set of an object image, wherein the first sample image is an image in a first image sample set, and the first image sample set is obtained according to a feature descriptor of the object image and a feature descriptor of each sample image in a preset image sample set;

[0158] A matching calculation module 720 is used to determine a first number of first feature points in the first relative coordinate set that are within a preset threshold fan, wherein the preset threshold fan is determined based on the second relative coordinate set;

[0159] The matching result output module 730 is used to determine the identity information of the object image according to the identity information of the first sample image when the first number is greater than a first preset threshold.

[0160] The object identity information matching device described in this embodiment can be used to execute the above-mentioned object identity information matching method embodiment. Its principles and technical effects are similar and will not be repeated here.

[0161] Figure 8 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 8As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the object identity information matching method, which includes: obtaining a first relative coordinate set of a first sample image and a second relative coordinate set of an object image, wherein the first sample image is an image in a first image sample set, and the first image sample set is obtained according to a feature descriptor of the object image and a feature descriptor of each sample image in a preset image sample set; determining a first number of first feature points in the first relative coordinate set that are within a preset threshold fan, wherein the preset threshold fan is determined based on the second relative coordinate set; and determining the identity information of the object image according to the identity information of the first sample image when the first number is greater than the first preset threshold.

[0162] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0163] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the object identity information matching method provided by the above methods, and the method includes: obtaining a first relative coordinate set of a first sample image and a second relative coordinate set of an object image, wherein the first sample image is an image in a first image sample set, and the first image sample set is obtained based on a feature descriptor of the object image and a feature descriptor of each sample image in a preset image sample set; determining a first number of first feature points in the first relative coordinate set that are within a preset threshold fan, wherein the preset threshold fan is determined based on the second relative coordinate set; when the first number is greater than a first preset threshold, determining the identity information of the object image based on the identity information of the first sample image.

[0164] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the object identity information matching method provided by the above-mentioned methods, the method comprising: obtaining a first relative coordinate set of a first sample image, and a second relative coordinate set of an object image, wherein the first sample image is an image in a first image sample set, and the first image sample set is obtained based on a feature descriptor of the object image and a feature descriptor of each sample image in a preset image sample set; determining a first number of first feature points in the first relative coordinate set that are within a preset threshold fan, wherein the preset threshold fan is determined based on the second relative coordinate set; and determining the identity information of the object image based on the identity information of the first sample image when the first number is greater than a first preset threshold.

[0165] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0166] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0167] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for matching object identity information, characterized in that: include: Determine a first reference feature point and a second reference feature point having the highest similarity between the first sample image and the object image according to a feature descriptor corresponding to each feature point in the first sample image and a feature descriptor corresponding to each feature point in the object image; Taking the first reference feature point as the origin, obtaining a first coordinate system in the first sample image; Taking the second reference feature point as the origin, obtaining a second coordinate system in the object image; Acquire a first relative coordinate set of a first sample image and a second relative coordinate set of an object image, wherein the first sample image is an image in a first image sample set, and the first image sample set is obtained according to a feature descriptor of the object image and a feature descriptor of each sample image in a preset image sample set; Determine a first number of first feature points in the first relative coordinate set that are within a preset threshold fan, wherein the preset threshold fan is determined based on the second relative coordinate set; the threshold fan is a fan-shaped area formed by giving a certain tolerance range to the length and angle of the end point of the feature vector or the relative relationship vector in any object fingerprint vector; Acquire a first relative neighborhood diameter set and a first relative feature direction set of the first sample image, and a second relative neighborhood diameter set and a second relative feature direction set of the object image; Determine a second number of second feature points having the same relative neighborhood diameter in the first relative neighborhood diameter set and the second relative neighborhood diameter set, and determine a third number of third feature points having the same relative feature direction in the first relative feature direction set and the second relative feature direction set; When the fourth number is greater than the second preset threshold, determining the identity information of the object image according to the identity information of the first sample image, wherein the fourth number is determined based on the first number, the second number, and the third number; When the first number is greater than a first preset threshold, the identity information of the object image is determined according to the identity information of the first sample image.

2. The object identity information matching method according to claim 1, characterized in that: Before determining the fourth quantity, the method further includes: determining the fourth number according to a product of a first weight coefficient and the first number, a product of a second weight coefficient and the second number, and a product of a third weight coefficient and the third number; The first weight coefficient is the weight coefficient corresponding to the first quantity, the second weight coefficient is the weight coefficient corresponding to the second quantity, and the third weight coefficient is the weight coefficient corresponding to the third quantity.

3. The object identity information matching method according to claim 1, characterized in that: The step of acquiring a first relative coordinate set of the first sample image and a second relative coordinate set of the object image, acquiring a first relative neighborhood diameter set and a first relative feature direction set of the first sample image, and a second relative neighborhood diameter set and a second relative feature direction set of the object image comprises: In the first coordinate system, the relative coordinates, relative neighborhood diameter and relative feature direction of each feature point in the first sample image are calculated to obtain a first relative coordinate set, a first relative neighborhood diameter set and a first relative feature direction set of the first sample image; In the second coordinate system, the relative coordinates, relative neighborhood diameter and relative feature direction of each feature point in the object image are calculated to obtain a second relative coordinate set, a second relative neighborhood diameter set and a second relative feature direction set of the object image.

4. The object identity information matching method according to claim 1, characterized in that: After determining a first number of first feature points in the first relative coordinate set that are within a preset threshold sector, the method further includes: Acquire a third relative neighborhood diameter set of the first feature point in the first sample image and a fourth relative neighborhood diameter set of the seventh feature point in the object image; The seventh feature point is a feature point in the object image that corresponds to the first feature point; Determine the number of eighth feature points having the same relative neighborhood diameter in the third relative neighborhood diameter set and the fourth relative neighborhood diameter set; When the number of the eighth feature points is greater than a third preset threshold, the identity information of the object image is determined according to the identity information of the first sample image.

5. The object identity information matching method according to claim 4, characterized in that: After determining the number of eighth feature points having the same relative neighborhood diameter in the third relative neighborhood diameter set and the fourth relative neighborhood diameter set, the method further includes: Acquire a third relative feature direction set of the eighth feature point in the first sample image and a fourth relative feature direction set of the ninth feature point in the object image; The ninth feature point is a feature point in the object image corresponding to the eighth feature point; Determine the number of tenth feature points having the same relative feature directions in the third relative feature direction set and the fourth relative feature direction set; When the number of the tenth feature point is greater than a fourth preset threshold, the identity information of the object image is determined according to the identity information of the first sample image.

6. An object identity information matching device, characterized in that: include: an object fingerprint processing module, configured to determine, based on a feature descriptor corresponding to each feature point in the first sample image and a feature descriptor corresponding to each feature point in the object image, a first reference feature point and a second reference feature point having the highest similarity between the first sample image and the object image; and to obtain a first coordinate system in the first sample image with the first reference feature point as the origin; and to obtain a second coordinate system in the object image with the second reference feature point as the origin; and used to obtain a first relative coordinate set of a first sample image and a second relative coordinate set of an object image, wherein the first sample image is an image in a first image sample set, and the first image sample set is obtained according to a feature descriptor of the object image and a feature descriptor of each sample image in a preset image sample set; a matching calculation module, for determining a first number of first feature points in the first relative coordinate set that are within a preset threshold fan, wherein the preset threshold fan is determined based on the second relative coordinate set; the threshold fan is a fan-shaped area formed by giving a certain tolerance range to the length and angle of the end point of the feature vector or relative relationship vector in any item fingerprint vector; and for obtaining a first relative neighborhood diameter set and a first relative feature direction set of the first sample image, and a second relative neighborhood diameter set and a second relative feature direction set of the item image; and for determining a second number of second feature points having the same relative neighborhood diameter in the first relative neighborhood diameter set and the second relative neighborhood diameter set, and determining a third number of third feature points having the same relative feature direction in the first relative feature direction set and the second relative feature direction set; and for determining the identity information of the item image according to the identity information of the first sample image when the fourth number is greater than the second preset threshold, wherein the fourth number is determined based on the first number, the second number, and the third number; A matching result output module is used to determine the identity information of the object image according to the identity information of the first sample image when the first number is greater than a first preset threshold.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the object identity information matching method according to any one of claims 1 to 5 are implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the object identity information matching method according to any one of claims 1 to 5 are implemented.