WO2017107866A1 - Image retrieval server and system, related retrieval and troubleshooting method - Google Patents

Image retrieval server and system, related retrieval and troubleshooting method Download PDF

Info

Publication number
WO2017107866A1
WO2017107866A1 PCT/CN2016/110356 CN2016110356W WO2017107866A1 WO 2017107866 A1 WO2017107866 A1 WO 2017107866A1 CN 2016110356 W CN2016110356 W CN 2016110356W WO 2017107866 A1 WO2017107866 A1 WO 2017107866A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
feature point
retrieval
matching
target image
Prior art date
Application number
PCT/CN2016/110356
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 WO2017107866A1 publication Critical patent/WO2017107866A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content

Definitions

  • the present invention relates to the field of image retrieval technologies, and in particular, to an image retrieval result troubleshooting method, an image retrieval method, an image retrieval server, and an image retrieval system.
  • the feature extraction is first performed on the image and the feature content is described, and the target image is characterized by the feature point set.
  • the retrieval result of the target image is determined based on the matching relationship between the pair of feature points.
  • the search result may be erroneous (ie, the target image and the search result are two images that are irrelevant).
  • the search results may also be correct. For the above reasons, there is a need for a method of troubleshooting search results to ensure that the image retrieval results are as accurate as possible.
  • the object of the present invention is to provide an image retrieval result troubleshooting method, an image retrieval method, an image retrieval server and an image retrieval system, which solve the problem of too many retrieval result errors caused by the limitation of the feature description image algorithm, and can effectively improve image retrieval. accuracy.
  • the present invention provides an image retrieval result troubleshooting method.
  • the image retrieval is an image retrieval based on feature extraction.
  • the extracted feature data includes each feature point.
  • the image retrieval result refers to one or more sets of search result image data in the image retrieval database that meets the matching algorithm with the target image, and the image retrieval result debugging method is respectively used Troubleshoot each search result image, including:
  • the target image and each are calculated by matching the scale and direction information of the feature point pair set.
  • An attitude relationship between the search result images, the matched feature point pair set includes a target image matching feature point set and a retrieval result image matching feature point set;
  • the coordinates of the target image matching feature point set and the retrieval result image matching feature point set are converted into the same coordinate system, and the target image matching feature point set and the retrieval result are respectively performed in the converted coordinate system.
  • the image matching feature point set is Delaunay triangulation, and the Delaunay triangulation network corresponding to the target image and the Delaunay triangulation network corresponding to the retrieval result image are obtained.
  • the two Delaunay triangulation networks are compared. If the alignment results of the two triangular networks are consistent, the image retrieval result is determined to be correct; otherwise, the image retrieval result is determined to be incorrect.
  • the coordinates of the target image matching feature point set and the retrieval result image matching feature point set are converted into the same coordinate system, specifically: converting the coordinates of the target image matching feature point set into the retrieval result image coordinate system, Or convert the coordinates of the search result image matching feature point set into the target image coordinate system.
  • the Delaunay triangulation is performed on the target image matching feature point set and the search result image matching feature point set respectively in the converted coordinate system, specifically: matching the feature image set and the retrieval result image feature to the target image respectively
  • the feature points in the point set are spatially sorted according to the coordinates converted by the coordinate system, and the corresponding Delaunay triangle networks are constructed according to the sorting results.
  • the spatial ordering is a median sorting, and specifically includes: a sorting axis determining step of using an axis having a maximum/minimum diameter on the x-axis and the y-axis as a sorting axis; and an updating step, in the On the sorting axis, calculate the median value of the two feature points constituting the maximum/minimum diameter, and change the original feature point set so that the feature point spatially located to the left of the median value is located to the left of the median point in the data set, and makes the space
  • the feature point on the right side of the median is located to the right of the median point in the data set;
  • the looping step repeats the sorting axis determining step and the point set on the point set formed by the left point and the right point The update step until the number of feature points on the median side is less than two.
  • the present invention further provides an image retrieval result troubleshooting method, wherein the image retrieval is image retrieval based on feature extraction, and when feature extraction is performed on the target image, the extracted feature data includes each feature point in the image region.
  • image retrieval result refers to one or more sets of search result image data in the image retrieval database that meets the matching algorithm with the target image, and the image retrieval result troubleshooting method is used for each Search results images for troubleshooting, including:
  • the attitude relationship between the target image and each of the search result images is calculated by using the scale and direction information of the matched feature point pair set, and the matched feature point pair set includes the target image matching feature point set and the search result image.
  • the target image is matched with the feature point set and the search result image is matched with the feature point set.
  • the target is converted to the same coordinate system;
  • the subset of the matched feature point pair set is divided, and a plurality of matching feature point pair subsets are obtained, and each matching feature is obtained.
  • the point pair subset includes a target image matching feature point subset and a retrieval result image matching feature point subset;
  • Delaunay triangulation is performed on each target image matching feature point subset and the search result image matching feature point subset respectively to obtain a corresponding Delaunay triangulation network;
  • the image retrieval result is determined to be correct; otherwise It is determined that the image retrieval result is incorrect.
  • the coordinates of the target image matching feature point set and the retrieval result image matching feature point set are converted into the same coordinate system, specifically: converting the coordinates of the target image matching feature point set into the retrieval result image coordinate system, Or convert the coordinates of the search result image matching feature point set into the target image coordinate system.
  • Delaunay triangulation is performed on each subset, specifically: spatially sorting the coordinate points of the feature points in each subset according to the coordinate transformation, and constructing a Delaunay triangular network for each subset according to the sorting result;
  • the spatial ordering refers to median sorting, and specifically includes:
  • a sorting axis determining step of using an axis having a maximum/minimum diameter on the x-axis and the y-axis of the feature point set feature point as a sorting axis;
  • the sorting axis determining step and the updating step are repeated for the point set formed by the left point and the point set formed by the right point until the number of feature points on the median side is less than 2.
  • the present invention further provides an image retrieval method, comprising: acquiring a target image; performing feature extraction on the target image or the pre-processed target image, and extracting the feature data including the position of each feature point in the image region. Information, scale, direction and feature description information; the extracted feature data is sent to the image retrieval server for image retrieval, and one or more search result images that are initially matched with the target image are obtained; for the preliminary matching search result image, the foregoing An image retrieval result troubleshooting method performs troubleshooting of the retrieval results.
  • the present invention also provides an image retrieval server, including an image retrieval database and an image matching module.
  • the image retrieval database stores feature point set data of a plurality of sample images, and the feature point set data of each sample image includes position information, scale, direction and feature description information of each feature point in the feature point set in the image region;
  • the image matching module is configured to receive a retrieval request from the image retrieval client, and match the target image data included in the retrieval request in the image retrieval database according to the set matching algorithm to obtain one or more groups and target images.
  • the search result image data of the matching algorithm is satisfied, the image retrieval server further includes a debugging module, and the debugging module includes:
  • the attitude calculation and coordinate system conversion unit is configured to calculate the attitude relationship between the target image and each of the retrieval result images according to the image retrieval result, and use the matching feature point pair scale and direction information, and according to the calculated posture relationship, Converting the coordinates of the target image matching feature point set and the retrieval result image matching feature point set into the same coordinate system, the matching feature point pair set including the target image matching feature point set and the retrieval result image matching feature point set;
  • a triangular network construction unit is configured to perform Delaunay triangulation on the target image matching feature point set and the search result image matching feature point set respectively in the converted coordinate system, and obtain a Delaunay triangular network corresponding to the target image and the search result image corresponding to the image.
  • Delaunay triangle network
  • the determining unit is configured to compare the two Delaunay triangular networks, and if the two triangular network comparison results are consistent, the image retrieval result is determined to be correct; otherwise, the image retrieval result is determined to be incorrect.
  • the coordinates of the target image matching feature point set and the retrieval result image matching feature point set are converted into the same coordinate system, specifically: converting the coordinates of the target image matching feature point set into the retrieval result image coordinate system, Or convert the coordinates of the search result image matching feature point set into the target image coordinate system.
  • the Delaunay triangulation is performed on the target image matching feature point set and the search result image matching feature point set respectively in the converted coordinate system, specifically: matching the feature image set and the retrieval result image feature point respectively to the target image
  • the concentrated feature points are spatially sorted according to the coordinates converted by the coordinate system, and the corresponding Delaunay triangular networks are constructed according to the sorting results.
  • the present invention further provides an image retrieval server, comprising an image retrieval database and an image matching module, wherein the image retrieval database stores feature point set data of a plurality of sample images, and the feature point set data of each sample image includes features. Position information, scale, direction and feature description information of each feature point in the image area; the image matching module is configured to receive a retrieval request from the image retrieval client, and the retrieval request is according to the set matching algorithm The included target image data is matched in the image retrieval database, and one or more sets of search result image data satisfying the matching algorithm with the target image are obtained, and the image retrieval server further includes a debugging module, and the debugging module includes:
  • An attitude calculation and coordinate system conversion unit for using the scale of the matching feature point pair set according to the image retrieval result And the direction information, calculating the attitude relationship between the target image and each of the retrieval result images, and converting the coordinates of the target image matching feature point set and the retrieval result image matching feature point set into the same coordinate system according to the calculated posture relationship
  • the matching feature point pair set includes a target image matching feature point set and a retrieval result image matching feature point set;
  • the sub-division unit obtains a subset of the matched feature point pair set according to the position information of the search result image corresponding to the target image matching feature point matching the feature point in the search result image, and obtains a plurality of matching feature point pair subsets.
  • Each of the matching feature point pair subsets includes a target image matching feature point subset and a retrieval result image matching feature point subset;
  • a triangular network building unit is configured to perform Delaunay triangulation on each target image matching feature point subset and the search result image matching feature point subset in the converted coordinate system to obtain a corresponding Delaunay triangular network;
  • the determining unit compares the two Delaunay triangulation networks corresponding to the subset of the matching feature points, and if the matching feature point pair of the preset ratio exceeds the matching result of the two triangular networks, the image retrieval result is determined. Correct; otherwise the image retrieval result is determined to be incorrect.
  • the coordinates of the target image matching feature point set and the retrieval result image matching feature point set are converted into the same coordinate system, specifically: converting the coordinates of the target image matching feature point set into the retrieval result image coordinate system, Or convert the coordinates of the search result image matching feature point set into the target image coordinate system.
  • the Delaunay triangulation is performed on each subset, specifically: spatially sorting the coordinate points of the feature points in each subset according to the coordinate transformation, and constructing a Delaunay triangular network for each subset according to the sorting result.
  • the present invention further provides an image retrieval system, comprising an image retrieval client and an image retrieval server, wherein the image retrieval server is any one of the foregoing image retrieval servers;
  • the image retrieval client includes an image acquisition module, a feature extraction module, a retrieval request sending module, and a retrieval result receiving module, wherein:
  • the image acquisition module is configured to acquire a target image
  • the feature extraction module is configured to perform feature extraction on the target image, and the extracted feature data includes location information, scale, direction, and feature description information of each feature point in the image region;
  • the search request sending module is configured to send the feature data extracted by the feature extraction module to an image retrieval server for image retrieval;
  • the search result receiving module is configured to receive the search result information returned from the image retrieval server.
  • the invention uses the Delaunay triangulation network to characterize the internal relationship of the image feature point set, and uses the unique property of the Delaunay triangulation network to debug (correct) the search result, and the algorithm is correct (the bottom line of the constraint condition is satisfied), but the human recognition Knowing that the search results that are determined to be erroneous are eliminated, can effectively improve the accuracy of the search results.
  • FIG. 1 is a schematic flow chart of a method for generating an image retrieval database according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a feature point set in an embodiment of the present invention.
  • FIG. 3 is a first schematic flowchart of a method for troubleshooting an image retrieval result according to an embodiment of the present invention
  • FIG. 4 is a second schematic flowchart of a method for troubleshooting an image retrieval result according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of locations of corresponding matching feature points in a search result image and a target image according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a first structure of an image retrieval server according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram showing a second structure of an image retrieval server according to an embodiment of the present invention.
  • FIG. 8 is a third schematic flowchart diagram of a method for troubleshooting an image retrieval result according to an embodiment of the present invention.
  • FIG. 9 is a fourth schematic flowchart of a method for troubleshooting an image retrieval result according to an embodiment of the present invention.
  • FIG. 10 is a third schematic structural diagram of an image retrieval server according to an embodiment of the present invention.
  • FIG. 11 is a fourth schematic structural diagram of an image retrieval server according to an embodiment of the present invention.
  • the present invention uses a Delaunay triangulation network to characterize the internal relationship of image feature point sets, using the Delaunay triangle
  • the uniqueness characteristics of the network are used to debug (correct) the search results, and the algorithm results are correct (the bottom line that satisfies the constraint), but the search results that are cognitively determined to be erroneous are rejected.
  • the Delaunay triangulation network is a network formed by Delaunay triangulation of point sets. To meet the definition of Delaunay triangulation, two important criteria must be met:
  • the minimum angle of the triangle formed by the Delaunay triangulation is the largest.
  • the Delaunay triangle network is the "closest to the regularized" triangular network. Specifically, it means that the diagonal lines of the convex quadrilaterals are formed by two adjacent triangles, and after the mutual exchange, the minimum angles of the six inner corners are no longer increased.
  • the Delaunay Triangulation Network has the following features:
  • Shell with convex polygons The outermost boundary of the triangular network forms a convex polygonal outer shell.
  • the method for troubleshooting the retrieval result of the present invention it is necessary to construct a Delaunay triangular network separately for the target image matching feature point set and the retrieval result image matching feature point set. Since the triangular network comparison is needed, when the Delaunay triangular network is established, the coordinates of the target image matching feature point and the search result image matching feature point need to be transformed into the same coordinate system. Then, in the converted coordinate system, the Delaunay triangulation is performed on the target image matching feature point set and the search result image matching feature point set respectively, and the Delaunay triangular network corresponding to the target image and the Delaunay triangular network corresponding to the retrieval result image are obtained. Finally, the correctness of the search results is judged by comparing the above two Delaunay triangulation networks.
  • the retrieval result image refers to a sample image that satisfies the matching algorithm.
  • the Delaunay triangulation network corresponding to the target image and the retrieval result image is generated online.
  • the Delaunay triangulation network corresponding to each sample image may be generated offline when the image retrieval database is constructed. Improve the efficiency of image retrieval.
  • the following is a first embodiment of the present invention by taking the Delaunay triangulation network corresponding to the sample image offline as an example with reference to FIG. 1 to FIG. 7 .
  • FIG. 1 is a schematic flowchart of a method for generating an image retrieval database according to an embodiment of the present invention. This method is used to construct a dedicated image retrieval database with Delaunay triangular network data corresponding to the sample image.
  • the image retrieval database generating method includes the following steps S101 to S104.
  • feature extraction is performed on the sample image or the pre-processed sample image to obtain a feature point set corresponding to each sample image.
  • feature extraction method a feature-based extraction method based on scale invariance, such as ORB, SIFT, SURF, etc., may be employed.
  • the preprocessed sample image refers to a sample image preprocessed by one or more methods of uniform size processing, redundant area culling, Gaussian blur processing, and affine transformation, and the preprocessing is to improve retrieval precision.
  • the position information, the scale, the direction and the feature description information of each feature point in the feature point set corresponding to each sample image in the image region are recorded in the search data corresponding to the sample image in the image retrieval database.
  • the order in which feature point data is recorded into the image retrieval database is arbitrary.
  • the characterization information can be an 8-byte content description.
  • the feature point position information can be represented by two-dimensional coordinates.
  • the feature points in the feature point set corresponding to the sample image are spatially sorted. Feature points that are closer in spatial position are still closer together after sorting.
  • S104 constructing a Delaunay triangular network corresponding to the sample image according to the spatial ordering result of each sample image obtained in S103 (the triangular network is unique), that is, constructing the same point set, no matter which point is started A consistent result is obtained; at the same time, the same subset of the point set is deleted, and the resulting triangular network is also consistent).
  • the triangular sequence data of the constructed Delaunay triangulation network is recorded in the retrieval data corresponding to the sample image in the image retrieval database.
  • the triangular sequence data includes the sequence numbers of three points and three sides corresponding to each triangle in the Delaunay triangular network.
  • the spatial ordering in step S103 may be a median ordering.
  • the median ranking refers to performing median ordering based on location information of feature points within the image region. Specifically, the axis having the feature points in the feature points on the x-axis and the y-axis has the largest/minimum diameter as the sorting axis. Calculating a median value of two feature points constituting the maximum/minimum diameter on the sorting axis, and changing a set of original feature points such that a feature point spatially located to the left of the median value is located at a median point in the data set Side, and feature points that are spatially to the right of the median are located to the right of the median point in the data set.
  • the x-axis diameter refers to the absolute value of the difference between the maximum value and the minimum value of the x-coordinates of each feature point in the feature point set; the y-axis diameter refers to the difference between the maximum value and the minimum value of the y-coordinate of each feature point in the feature point set.
  • the absolute value refers to the absolute value of the difference between the maximum value and the minimum value of the y-coordinate of each feature point in the feature point set.
  • the set of 7 points consists of a x-axis diameter of 14 and a y-axis diameter of 7.5.
  • the median sorting uses the larger of the x and y-axis circumference diameters as the sorting axis.
  • the x-axis is used as the sorting axis, and the median is 0.
  • Three points (-7.5, 2.5), (-2, 2), (-4, -1.5) are placed to the left of the median point, and the other four points are placed to the right of the median point.
  • the left point set and the right point set are recursively processed, that is, the left and right side point sets are re-searched for the larger diameter axis in the xy axis, and the median values of the two feature points constituting the diameter are calculated, and the original feature point set is changed. So that the feature points that are spatially to the left of the median are located to the left of the median point in the data set, and the feature points that are spatially to the right of the median are located to the right of the median point in the data set.
  • a large number of sample images may be processed on the server side to generate a corresponding image retrieval database, and new sample image data may be added to the existing image separately or in groups in the added mode. retrieve the database.
  • the sample image can be preprocessed in various ways, including uniform size processing, redundant area culling, Gaussian blur processing, affine transformation and so on.
  • a dedicated image retrieval database used in the embodiment of the present invention can be generated.
  • the image retrieval database is stored on the image retrieval server side.
  • the image retrieval database stores retrieval data of a plurality of sample images.
  • the retrieval data of each sample image includes feature point set data of the sample image and triangular sequence data of a Delaunay triangular network constructed from the feature point set.
  • the feature point set data includes position information, scale, direction, and feature description information of each feature point in the feature point set in the image region.
  • the triangular sequence data includes the sequence numbers of three points and three sides corresponding to each triangle in the Delaunay triangular network.
  • the image retrieval database referred to in the embodiment of the present invention in conjunction with the embodiments of Figs. 3 to 7 is the dedicated image retrieval database described in this embodiment.
  • FIG. 3 is a schematic diagram of a first flow of a method for troubleshooting an image retrieval result according to an embodiment of the present invention.
  • the image retrieval is an image retrieval based on feature extraction.
  • the extracted feature data includes position information, scale, direction, and feature description information of each feature point in the image region.
  • the image retrieval result refers to one or more sets of retrieval result image data in the image retrieval database that satisfy the matching algorithm with the target image.
  • Each of the search result images is separately debugged by using the image search result troubleshooting method shown in FIG. 3, and includes the following steps S201 to S205.
  • the matched feature point pair set includes a target image matching feature point set and a retrieval result image matching feature point set.
  • a target image matching feature point and a search result image matching feature point constitute a matching feature point pair.
  • the feature point spatial sorting manner is consistent with the sample image feature point spatial sorting manner when the image retrieval database is generated. For example, when generating an image retrieval database, the feature points of the sample image are sorted by median ordering and the largest diameter among the x and y axis diameters is the sorting axis. In this step, when the feature points in the target image matching feature point set are spatially sorted, it is also required to be performed in the same manner.
  • the Delaunay triangulation network corresponding to the search result image is obtained from the image retrieval database, and the feature point subsets on the unmatched are deleted in the Delaunay triangulation network corresponding to the search result image, and the search result image matching feature point set is obtained.
  • Corresponding Delaunay triangle network Corresponding Delaunay triangle network.
  • the Delaunay triangular network corresponding to the target image matching feature point set and the Delaunay triangular network corresponding to the search result image matching feature point set are compared. If the results of the two triangular network alignments are consistent (the so-called results are consistent, that is, the corresponding point pairs in the point pair set are in the same position in the two Delaunay triangular networks), it is determined that the image retrieval result is correct; otherwise, the image retrieval result is determined to be incorrect.
  • the image matching algorithm is not limited in the embodiment of the present invention, and the image retrieval based on the feature extraction may be performed by using the method of the embodiment of the present invention.
  • step S201 the calculated attitude relationship between the target image and the search result image can be described by a vector of length 6, which is affine[6].
  • step S202 the coordinates of the feature point set of the target image are converted into coordinates in the image coordinate system of the search result according to affine [6], and the conversion expression is as follows:
  • step S203 the point set of (Xr, Yr) is spatially ordered.
  • the troubleshooting condition is very severe due to the alignment troubleshooting performed by the Delaunay triangulation constructed by matching the feature point set in the entire map. As long as a set of feature points are mismatched, the entire search result is judged as an error.
  • the target image may be subject to distortion or the like.
  • the process method shown in Figure 3 is used to troubleshoot, the error will be too large.
  • the present invention proposes an improvement.
  • FIG. 4 is a second schematic flowchart of a method for troubleshooting an image retrieval result according to an embodiment of the present invention. This troubleshooting method is improved on the embodiment illustrated in FIG.
  • the image retrieval result troubleshooting method includes the following steps S301 to S306.
  • the matched feature point pair set includes a target image matching feature point set and a retrieval result image matching feature point set.
  • a target image matching feature point and a search result image matching feature point constitute a matching feature point pair.
  • step S302 the coordinates of the target image matching feature point set are converted into coordinates in the search result image coordinate system according to the calculated posture relationship.
  • the conversion method is the same as the conversion method in step S201.
  • the subset of the feature points in the target image matching feature point after the coordinate system conversion is divided into subsets, and more The target images match a subset of feature points.
  • the block is divided into 3*3 blocks to 7*7 blocks, and the feature point subset set in 9 to 49 blocks is subjected to subsequent step processing in units of subsets (ie, the processes in steps S304 to S306 are all in subsets).
  • the error of the calculation result is too large due to the different postures of the feature points.
  • the left side is the search result image
  • the right side is the target image.
  • the two matching feature point pairs include A A', B B', C C', D D', E E', F F'.
  • the search result image feature point A B C D E F corresponding to the target image matching feature point A'B'C'D'E'F' is located in the search result image.
  • the location is divided into subsets.
  • the matching feature points A B C D corresponding to the four points of A'B'C'D' are located in the same region fast in the search result image, and the matching feature points E F corresponding to the two points of E'F' are The search result image is located in the same area fast.
  • the four points of A'B'C'D' are divided into the same target image matching feature point subset in the target image matching feature point set, and the E'F' two points are divided into another in the target image matching feature point set.
  • a target image matches a subset of feature points.
  • the A B C D four points are divided into the same search result image matching feature point subset, and the E F is divided into another search result image matching feature point subset.
  • a target image matching feature point subset corresponds to a search result image matching feature point subset.
  • the corresponding target image matching feature point subset and the retrieval result image matching feature point subset are referred to as a subset pair (ie, matching feature point pair subset).
  • a target image matching feature point subset composed of four points A'B'C'D' and a search result image matching feature point subset formed by A B C D four points are referred to as a subset pair.
  • the reason is as follows: the position of the feature point of the search result image corresponding to the target image matching feature point in the search result image is selected, and the feature point of the coordinate image converted target image matching feature point set is subjected to a subset.
  • the division is because the image retrieval is based on the sample images stored in the database.
  • the sample image is a complete image, and the target image may not exist during the shooting process.
  • the target image In the case of a complete image or the like (that is, only a part of the entire image is taken), if the target image is used as a basis for the division, there is a high possibility of an error.
  • the feature points in each of the target image matching feature point subsets are spatially sorted according to the coordinates converted by the coordinate system. According to the sorting result, a Delaunay triangulation network is constructed for each target image matching feature point subset.
  • the feature point spatial sorting manner is consistent with the sample image feature point spatial sorting manner when the image retrieval database is generated.
  • a Delaunay triangular network corresponding to the search result image is obtained from the image retrieval database, and the feature point subsets on the unmatched are deleted in the Delaunay triangular network, and the matching feature points of the search result image in the matching feature point pair set are obtained.
  • the Delaunay triangle network corresponding to the episode is obtained from the image retrieval database, and the feature point subsets on the unmatched are deleted in the Delaunay triangular network, and the matching feature points of the search result image in the matching feature point pair set are obtained.
  • the influence of the distorted image on the retrieval result can be effectively reduced, and the accuracy of the retrieval result can be further improved.
  • the embodiment of FIG. 4 does not limit the image matching algorithm, as long as the image retrieval based on feature extraction can be performed by using the method of the embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a first structure of an image retrieval server according to an embodiment of the present invention.
  • the image retrieval server of the present embodiment includes an image retrieval database 10 and an image matching module 11.
  • the image retrieval database 10 is a dedicated image retrieval database described in the foregoing embodiment.
  • the image matching module 11 is configured to receive a retrieval request from the image retrieval client, and match the target image data included in the retrieval request in the image retrieval database according to the set matching algorithm to obtain one or more groups and targets. The image satisfies the search result image data of the matching algorithm.
  • the image retrieval server also includes a debug module 12.
  • the troubleshooting module 12 includes a posture calculation and coordinate system conversion unit 121, a triangular network construction unit 122, and a determination unit 123.
  • the attitude calculation and coordinate system conversion unit 121 is configured to calculate the attitude relationship between the target image and each of the retrieval result images by using the scale and direction information of the pair of matching feature points according to the image retrieval result, and according to the calculated posture relationship. Converting the coordinates of the target image matching feature point set to the coordinates in the search result image coordinate system.
  • the matched feature point pair set includes a target image matching feature point set and a retrieval result image matching feature point set. a target image Matching feature points and a search result image matching feature points constitute a matching feature point pair.
  • the triangular network construction unit 122 is configured to spatially sort the feature points in the target image matching feature point set according to the coordinate converted by the coordinate system (the sorting manner is consistent with the sorting manner used in the image retrieval database generation), and construct the target image according to the sorting result. Match the Delaunay triangle network corresponding to the feature point set.
  • the determining unit 123 is configured to obtain a Delaunay triangulation network corresponding to the search result image from the image retrieval database 10, and delete the unmatched feature point subset in the Delaunay triangulation network corresponding to the search result image to obtain a search result image matching.
  • the Delaunay triangular network corresponding to the feature point set compares the Delaunay triangular network corresponding to the search result image matching feature point set with the Delaunay triangular network corresponding to the target image matching feature point set constructed by the triangular network construction unit 122. If the alignment results of the two triangular networks are consistent, it is determined that the image retrieval result is correct; otherwise, the image retrieval result is determined to be incorrect.
  • FIG. 7 is a schematic diagram of a second structure of an image retrieval server according to an embodiment of the present invention.
  • the image retrieval server structure differs from that of FIG. 6 in that the debug module 12 is different in structure.
  • a subset division unit 124 is added to the debug module 12, and the functions of the triangle network construction unit 125 and the determination unit 126 are also different from those of the corresponding unit in FIG. 6, as follows:
  • the posture calculation and coordinate system conversion unit 121 in FIG. 7 is completely consistent with the functions of the posture calculation and the coordinate system conversion unit in FIG. 6, and is used for calculating the target image by using the scale and direction information of the matching feature point pair set according to the image retrieval result.
  • the attitude relationship between each of the search result images is converted, and the coordinates of the target image matching feature point set are converted into coordinates in the search result image coordinate system according to the calculated posture relationship.
  • the subset dividing unit 124 is configured to perform a subset of the feature points in the target image matching feature point set after the coordinate system is converted according to the position of the image point of the search result corresponding to the target image matching the feature point in the search result image. Dividing, obtaining a plurality of target image matching feature point subsets. A detailed description of the subset partitioning is provided in the section describing the FIG.
  • the triangular network construction unit 125 is configured to spatially sort the feature points of each target image matching feature point subset according to the coordinates converted by the coordinate system (the sorting manner is consistent with the sorting manner used in the image retrieval database generation), according to the sorting result
  • Each target image matches a subset of feature points to construct a Delaunay triangulation network.
  • the determining unit 126 is configured to obtain a Delaunay triangulation network corresponding to the search result image from the image retrieval database, and delete the unmatched feature point subset in the Delaunay triangulation network corresponding to the search result image to obtain a matching feature point pair set.
  • Each of the search result images matches the Delaunay triangular network corresponding to the subset of feature points, and compares the two Delaunay triangular networks corresponding to each subset pair. If the subset of the preset ratio exceeds the alignment result of the two triangular networks, the image retrieval result is determined to be correct; otherwise, the image retrieval result is determined to be incorrect.
  • the Delaunay triangulation network corresponding to the target image and the search result map are generated online in conjunction with FIG. 8 to FIG.
  • a specific embodiment of the present invention will be described by taking a corresponding Delaunay triangular network as an example.
  • the image retrieval database mentioned in the embodiments introduced in conjunction with FIGS. 8 to 11 is a conventional image retrieval database in which Delaunay triangular network data of sample images is not stored in advance, and only sample images need to be stored.
  • the feature point set data can be.
  • the feature point set data of each sample image includes position information, scale, direction, and feature description information of each feature point in the feature point set in the image region.
  • FIG. 8 is a third schematic flowchart of a method for troubleshooting image retrieval results according to an embodiment of the present invention.
  • the image retrieval is also an image retrieval based on feature extraction.
  • the extracted feature data includes position information, scale, direction, and feature description information of each feature point in the image region.
  • the image retrieval result refers to one or more sets of retrieval result image data in the image retrieval database that satisfy the matching algorithm with the target image.
  • the image retrieval result debugging method shown in FIG. 8 performs error correction for each of the search result images, respectively, and includes the following steps S401 to S404.
  • the matched feature point pair set includes a target image matching feature point set and a retrieval result image matching feature point set.
  • a target image matching feature point and a search result image matching feature point constitute a matching feature point pair.
  • the coordinates of the target image and the search result image matching feature point set are converted into the same coordinate system according to the calculated posture relationship.
  • the coordinates of the target image matching feature point set may be converted into the search result image coordinate system, or the coordinates of the search result image matching feature point set may be converted into the target image coordinate system.
  • the coordinate system conversion method refers to the description of step S201 in the foregoing embodiment.
  • Delaunay triangulation is performed on the target image matching feature point set and the search result image matching feature point set respectively in the converted coordinate system, and the Delaunay triangular network corresponding to the target image and the Delaunay triangular network corresponding to the search result image are obtained.
  • the Delaunay triangulation is specifically as follows: matching the feature points in the feature points of the target image and the feature points in the image feature points of the search result, spatially sorting according to the coordinates converted by the coordinate system, and constructing corresponding Delaunay triangles according to the sorting results.
  • the spatial ordering can be a median ordering.
  • the specific method of median sorting refers to the description of the median ordering in step S103 in the previous embodiment.
  • FIG. 9 is a fourth schematic flowchart of a method for troubleshooting an image retrieval result according to an embodiment of the present invention.
  • the wrong side The method is improved on the embodiment illustrated in Fig. 8.
  • the method flow illustrated in FIG. 8 is to perform a Delaunay triangulation on the entire matching feature point set of the target image and the search result image, respectively.
  • the method flow illustrated in FIG. 9 is to first divide a subset of matching feature points of the target image and the search result image, and then perform Delaunay triangulation on each of the matched feature point subsets respectively, and finally use the subset pair corresponding to the corresponding The Delaunay triangle network is compared.
  • the troubleshooting process of FIG. 9 specifically includes the following steps S501 to S505.
  • the coordinates of the target image and the search result image matching feature point set are converted into the same coordinate system according to the calculated posture relationship.
  • the coordinates of the target image matching feature point set may be converted into the search result image coordinate system, or the coordinates of the search result image matching feature point set may be converted into the target image coordinate system.
  • the coordinate system conversion method refers to the description of step S201 in the foregoing embodiment.
  • the subset of the matched feature point pair set after the coordinate system conversion is divided, and several matching features are obtained.
  • Point to subset Each pair of matching feature point pairs includes a target image matching feature point subset and a retrieval result image matching feature point subset.
  • the specific subset division manner can be combined with FIG. 5, and the sub-set division description in step S303 is referred to.
  • the mode of the subset division in S503 is substantially the same as that of step S303, except that the manner of description is slightly different.
  • each of the target image matching feature point subset and the search result image matching feature point subset are respectively subjected to Delaunay triangulation to obtain a corresponding Delaunay triangular network.
  • Delaunay triangulation is performed for each subset, specifically: spatially sorting the coordinate points of the feature points in each subset according to the coordinate transformation, and constructing a Delaunay triangular network for each subset according to the sorting result.
  • the spatial ordering can be a median ordering.
  • the specific method of median sorting refers to the description of the median ordering in step S103 in the previous embodiment.
  • S505 comparing two Delaunay triangulation networks corresponding to the subset of matching feature points (a Delaunay triangular network corresponding to a target image matching feature point subset and a Delaunay triangular network corresponding to a search result image matching feature point subset) . If the matching feature point pair of the preset ratio exceeds the matching result of the two triangular networks, the image retrieval result is determined to be correct; otherwise, the image retrieval result is determined to be incorrect.
  • the preset ratio can be freely set according to the actual situation, and the setting range is preferably between 1/3 and 1/6. Assumption: The preset ratio is set to 2/3. At this time, if the subset of more than 2/3 matches the two triangular network alignment results, it is determined that the image retrieval result is correct.
  • FIG. 10 is a schematic diagram of a third structure of an image retrieval server according to an embodiment of the present invention.
  • Image retrieval service The apparatus includes an image retrieval database 20 and a matching module 21.
  • the image retrieval database 20 stores feature point set data of a plurality of sample images.
  • the feature point set data of each sample image includes position information, scale, direction, and feature description information of each feature point in the feature point set in the image region.
  • the matching module 21 is configured to receive a retrieval request from the image retrieval client, and match the target image data included in the retrieval request in the image retrieval database according to the set matching algorithm to obtain one or more groups and target images.
  • the image retrieval server also includes a debug module 22.
  • the troubleshooting module 22 includes a posture calculation and coordinate system conversion unit 221, a triangular network construction unit 222, and a determination unit 223, wherein:
  • the posture calculation and coordinate system conversion unit 221 is configured to calculate a posture relationship between the target image and each of the retrieval result images by using the matching feature point pair scale and direction information according to the image retrieval result, and according to the calculated posture The relationship converts the coordinates of the target image and the search result image matching feature point set into the same coordinate system.
  • the coordinates of the target image matching feature point set may be converted into the search result image coordinate system, or the coordinates of the search result image matching feature point set may be converted into the target image coordinate system.
  • the coordinate system conversion method refers to the description of step S201 in the foregoing embodiment.
  • the triangular network construction unit 222 is configured to perform Delaunay triangulation on the target image matching feature point set and the retrieval result image matching feature point set respectively in the converted coordinate system, to obtain the Delaunay triangulation network corresponding to the target image and the retrieval result.
  • the image corresponds to the Delaunay triangle network.
  • the Delaunay triangulation is specifically as follows: matching the feature points in the feature points of the target image and the feature points in the image feature points of the search result, spatially sorting according to the coordinates converted by the coordinate system, and constructing corresponding Delaunay triangles according to the sorting results.
  • the internet The spatial ordering can be a median ordering.
  • the specific method of median sorting refers to the description of the median ordering in step S103 in the previous embodiment.
  • the determining unit 223 is configured to compare the two Delaunay triangulation networks. If the two triangle network comparison results are consistent, the image retrieval result is determined to be correct; otherwise, the image retrieval result is determined to be incorrect.
  • FIG. 11 is a schematic diagram of a fourth structure of an image retrieval server according to an embodiment of the present invention.
  • the image retrieval server structure differs from that of FIG. 10 in that the debug module 22 is different in structure.
  • a subset division unit 224 is added to the debug module 22, and the functions of the triangle network construction unit 225 and the determination unit 226 are also different from the corresponding unit functions in FIG. 10, as follows:
  • the posture calculation and coordinate system conversion unit 221 is completely consistent with the functions of the posture calculation and the coordinate system conversion unit in FIG. 10, and is used for calculating the target image and each by using the scale and direction information of the pair of matching feature points according to the image retrieval result.
  • a pose relationship between the search result images, and according to the calculated pose relationship, the coordinates of the target image matching feature point set and the search result image matching feature point set are converted into the same coordinate system.
  • the coordinates of the target image matching feature point set may be converted into the search result image coordinate system, or the retrieval result may be
  • the coordinates of the image matching feature point set are converted into the target image coordinate system.
  • the coordinate system conversion method refers to the description of step S201 in the foregoing embodiment.
  • the subset dividing unit 224 is configured to perform a subset of the matched feature point pair set after the coordinate system is converted according to the position information of the search result image corresponding to the target image matching feature point matching the feature point in the search result image. Dividing, a number of matching feature point pairs are obtained. Each pair of matching feature point pairs includes a target image matching feature point subset and a retrieval result image matching feature point subset.
  • the specific subset division manner can be combined with FIG. 5, and the sub-set division description in step S303 is referred to.
  • the mode of the subset division in S503 is substantially the same as that of step S303, except that the manner of description is slightly different.
  • the triangular network construction unit 225 is configured to perform Delaunay triangulation on each of the target image matching feature point subset and the search result image matching feature point subset in the converted coordinate system to obtain a corresponding Delaunay triangular network. Delaunay triangulation is performed for each subset. Specifically, the feature points in each subset are spatially sorted according to the coordinates after coordinate transformation, and a Delaunay triangulation network is constructed for each subset according to the sorting result.
  • the spatial ordering can be a median ordering.
  • the specific method of median sorting refers to the description of the median ordering in step S103 in the previous embodiment.
  • the determining unit 226 is configured to compare the two Delaunay triangulation networks corresponding to the subset of the matching feature points, and if the matched feature point pair subsets exceeding the preset ratio satisfy the consistency of the two triangular network comparison results, It is determined that the image retrieval result is correct; otherwise, the image retrieval result is determined to be incorrect.
  • the preset ratio can be freely set according to the actual situation, and the setting range is preferably between 1/3 and 1/6. Assumption: The preset ratio is set to 2/3. At this time, if the subset of more than 2/3 matches the two triangular network alignment results, it is determined that the image retrieval result is correct.
  • An embodiment of the present invention further provides an image retrieval method, including the following steps S601 to S604.
  • the extracted feature data includes position information, scale, direction, and feature description information of each feature point in the image area.
  • the preprocessed sample image refers to a sample image preprocessed by one or more methods of uniform size processing, redundant area culling, Gaussian blur processing, and affine transformation.
  • the extracted feature data is sent to the image retrieval server for image retrieval, and one or more search result images that are initially matched with the target image are obtained.
  • the search result is debugged by using the image search result troubleshooting method in any of the embodiments of the present invention.
  • An embodiment of the present invention further provides an image retrieval system including an image retrieval client and an image retrieval server.
  • the image retrieval client is installed on the mobile terminal.
  • the image retrieval server is an image retrieval server illustrated in any of Figs. 6, 7, 10, and 11.
  • the image retrieval client includes an image acquisition module, a feature extraction module, a retrieval request sending module, and a retrieval result receiving module.
  • the image acquisition module is configured to acquire a target image.
  • the feature extraction module is configured to perform feature extraction on the target image, and the extracted feature data includes location information, scale, direction, and feature description information of each feature point in the image region.
  • the search request sending module is configured to send the feature data extracted by the feature extraction module to the image retrieval server for image retrieval.
  • the search result receiving module is configured to receive the search result information returned from the image retrieval server.
  • the module or unit in the embodiment of the present invention may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit) or an ASIC (Application Specific Integrated Circuit).
  • a general-purpose integrated circuit such as a CPU (Central Processing Unit) or an ASIC (Application Specific Integrated Circuit).
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

An image retrieval result troubleshooting method, an image retrieval method, an image retrieval server, and an image retrieval system. The image retrieval result troubleshooting method comprises: calculating an attitude relationship between a target image and each retrieval result image according to retrieval results and by means of size and direction information of a matching feature point pair set (S201); converting coordinates of a matching feature point set of the target image into coordinates in a coordinate system of the retrieval result image (S202);performing spatial sorting on feature points in the matching feature point set of the target image according to coordinates after the conversion of the coordinate system, and construct a Delaunay triangular network (S203); obtaining a Delaunay triangular network corresponding to the retrieval result image, and deleting an unmatching feature point subset, so as to obtain the corresponding Delaunay triangular network (S204); and comparing the two Delaunay triangular networks; if the comparison result is that the two Delaunay triangular networks are consistent, determining that the retrieval result is correct, and otherwise determining that the retrieval result is wrong (S205). The accuracy rate of the retrieval results can be effectively improved.

Description

图像检索服务器、系统、相关检索及排错方法Image retrieval server, system, related retrieval and troubleshooting method
本申请要求享有2015年12月22日提交的名称为“图像检索服务器、系统、相关检索及排错方法”的中国专利申请CN201510974626.7的优先权,其全部内容通过引用并入本文中。The present application claims priority to Chinese Patent Application No. CN201510974626.7, filed on Dec. 22,,,,,,,,,,,,,,,,,,,,
技术领域Technical field
本发明涉及图像检索技术领域,尤其涉及一种图像检索结果排错方法,图像检索方法,图像检索服务器以及图像检索系统。The present invention relates to the field of image retrieval technologies, and in particular, to an image retrieval result troubleshooting method, an image retrieval method, an image retrieval server, and an image retrieval system.
背景技术Background technique
在基于特征提取的图像检索中,首先对图像进行特征提取并对特征内容进行描述,以特征点集的方式来表征目标图像。在检索时,根据特征点对之间的匹配关系来确定目标图像的检索结果。在极端情况下,检索结果与目标图像之间只有几个匹配特征点对(最低条件为匹配特征点对数量大于或等于3)。此时,由于特征描述算法的局限性,检索结果可能会出现错误(即目标图像和检索结果是无关的两张图像)。当然,检索结果也可能是正确的。基于上述原因,亟需一种对检索结果进行排错的方法,以确保图像检索结果尽量正确。In image retrieval based on feature extraction, the feature extraction is first performed on the image and the feature content is described, and the target image is characterized by the feature point set. At the time of retrieval, the retrieval result of the target image is determined based on the matching relationship between the pair of feature points. In extreme cases, there are only a few matching feature point pairs between the search result and the target image (the lowest condition is that the number of matching feature point pairs is greater than or equal to 3). At this time, due to the limitations of the characterization algorithm, the search result may be erroneous (ie, the target image and the search result are two images that are irrelevant). Of course, the search results may also be correct. For the above reasons, there is a need for a method of troubleshooting search results to ensure that the image retrieval results are as accurate as possible.
发明内容Summary of the invention
本发明的目的是提供一种图像检索结果排错方法,图像检索方法,图像检索服务器以及图像检索系统,解决由于特征描述图像算法局限性造成的检索结果错误过多的问题,可有效提高图像检索准确性。The object of the present invention is to provide an image retrieval result troubleshooting method, an image retrieval method, an image retrieval server and an image retrieval system, which solve the problem of too many retrieval result errors caused by the limitation of the feature description image algorithm, and can effectively improve image retrieval. accuracy.
为了实现上述发明目的,本发明提供了一种图像检索结果排错方法,所述图像检索是基于特征提取的图像检索,对目标图像进行特征提取时,提取出来的特征数据包括每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息;图像检索结果指图像检索数据库中与目标图像满足匹配算法的一组或多组检索结果图像数据,采用所述图像检索结果排错方法分别对每一个检索结果图像进行排错,包括:In order to achieve the above object, the present invention provides an image retrieval result troubleshooting method. The image retrieval is an image retrieval based on feature extraction. When feature extraction is performed on a target image, the extracted feature data includes each feature point. Position information, scale, direction and feature description information in the image region; the image retrieval result refers to one or more sets of search result image data in the image retrieval database that meets the matching algorithm with the target image, and the image retrieval result debugging method is respectively used Troubleshoot each search result image, including:
根据图像检索结果,利用匹配特征点对集合的尺度和方向信息,计算目标图像与每一 个检索结果图像之间的姿态关系,所述匹配特征点对集合包括目标图像匹配特征点集和检索结果图像匹配特征点集;According to the image retrieval result, the target image and each are calculated by matching the scale and direction information of the feature point pair set. An attitude relationship between the search result images, the matched feature point pair set includes a target image matching feature point set and a retrieval result image matching feature point set;
根据计算出的姿态关系,将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中,并在转换后的坐标系中分别对目标图像匹配特征点集和检索结果图像匹配特征点集进行Delaunay三角剖分,得到目标图像对应的Delaunay三角网络和检索结果图像对应的Delaunay三角网络;According to the calculated attitude relationship, the coordinates of the target image matching feature point set and the retrieval result image matching feature point set are converted into the same coordinate system, and the target image matching feature point set and the retrieval result are respectively performed in the converted coordinate system. The image matching feature point set is Delaunay triangulation, and the Delaunay triangulation network corresponding to the target image and the Delaunay triangulation network corresponding to the retrieval result image are obtained.
将上述两个Delaunay三角网络进行比对,若两个三角网络比对结果一致,则判定该图像检索结果正确;否则判定该图像检索结果错误。The two Delaunay triangulation networks are compared. If the alignment results of the two triangular networks are consistent, the image retrieval result is determined to be correct; otherwise, the image retrieval result is determined to be incorrect.
优选的,所述将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中,具体为:将目标图像匹配特征点集的坐标转换到检索结果图像坐标系中,或将检索结果图像匹配特征点集的坐标转换到目标图像坐标系中。Preferably, the coordinates of the target image matching feature point set and the retrieval result image matching feature point set are converted into the same coordinate system, specifically: converting the coordinates of the target image matching feature point set into the retrieval result image coordinate system, Or convert the coordinates of the search result image matching feature point set into the target image coordinate system.
优选的,所述在转换后的坐标系中分别对目标图像匹配特征点集和检索结果图像匹配特征点集进行Delaunay三角剖分,具体为:分别对目标图像匹配特征点集和检索结果图像特征点集中的特征点,按坐标系转换后的坐标进行空间排序,并根据排序结果构建各自对应的Delaunay三角网络。Preferably, the Delaunay triangulation is performed on the target image matching feature point set and the search result image matching feature point set respectively in the converted coordinate system, specifically: matching the feature image set and the retrieval result image feature to the target image respectively The feature points in the point set are spatially sorted according to the coordinates converted by the coordinate system, and the corresponding Delaunay triangle networks are constructed according to the sorting results.
优选的,所述空间排序为中值排序,具体包括:排序轴确定步骤,将特征点集中特征点在x轴和y轴上具有最大/最小直径的轴作为排序轴;更新步骤,在所述排序轴上,计算构成该最大/最小直径的两个特征点的中值,改变原特征点集使空间上位于中值左侧的特征点在数据集合中位于中值点左侧,并使空间上位于中值右侧的特征点在数据集合中位于中值点右侧;循环步骤,对左侧点构成的点集和右侧点构成的点集重复进行所述排序轴确定步骤和所述更新步骤,直到位于中值一侧的特征点的数量小于2时为止。Preferably, the spatial ordering is a median sorting, and specifically includes: a sorting axis determining step of using an axis having a maximum/minimum diameter on the x-axis and the y-axis as a sorting axis; and an updating step, in the On the sorting axis, calculate the median value of the two feature points constituting the maximum/minimum diameter, and change the original feature point set so that the feature point spatially located to the left of the median value is located to the left of the median point in the data set, and makes the space The feature point on the right side of the median is located to the right of the median point in the data set; the looping step repeats the sorting axis determining step and the point set on the point set formed by the left point and the right point The update step until the number of feature points on the median side is less than two.
相应的,本发明还提供一种图像检索结果排错方法,所述图像检索是基于特征提取的图像检索,对目标图像进行特征提取时,提取出来的特征数据包括每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息;图像检索结果指图像检索数据库中与目标图像满足匹配算法的一组或多组检索结果图像数据,采用所述图像检索结果排错方法分别对每一个检索结果图像进行排错,包括:Correspondingly, the present invention further provides an image retrieval result troubleshooting method, wherein the image retrieval is image retrieval based on feature extraction, and when feature extraction is performed on the target image, the extracted feature data includes each feature point in the image region. Location information, scale, direction, and feature description information; image retrieval result refers to one or more sets of search result image data in the image retrieval database that meets the matching algorithm with the target image, and the image retrieval result troubleshooting method is used for each Search results images for troubleshooting, including:
根据图像检索结果,利用匹配特征点对集合的尺度和方向信息,计算目标图像与每一个检索结果图像之间的姿态关系,所述匹配特征点对集合包括目标图像匹配特征点集和检索结果图像匹配特征点集;According to the image retrieval result, the attitude relationship between the target image and each of the search result images is calculated by using the scale and direction information of the matched feature point pair set, and the matched feature point pair set includes the target image matching feature point set and the search result image. Matching feature point sets;
根据计算出的姿态关系,将目标图像匹配特征点集和检索结果图像匹配特征点集的坐 标转换到同一坐标系中;According to the calculated attitude relationship, the target image is matched with the feature point set and the search result image is matched with the feature point set. The target is converted to the same coordinate system;
根据目标图像匹配特征点所对应的检索结果图像匹配特征点在检索结果图像中所处的位置信息,对匹配特征点对集合进行子集划分,得到若干匹配特征点对子集,每一个匹配特征点对子集包括一个目标图像匹配特征点子集和一个检索结果图像匹配特征点子集;According to the position information of the search result image corresponding to the target image matching feature point matching the feature point in the search result image, the subset of the matched feature point pair set is divided, and a plurality of matching feature point pair subsets are obtained, and each matching feature is obtained. The point pair subset includes a target image matching feature point subset and a retrieval result image matching feature point subset;
在转换后的坐标系中,分别对每一个目标图像匹配特征点子集和检索结果图像匹配特征点子集进行Delaunay三角剖分,得到对应的Delaunay三角网络;In the transformed coordinate system, Delaunay triangulation is performed on each target image matching feature point subset and the search result image matching feature point subset respectively to obtain a corresponding Delaunay triangulation network;
将各匹配特征点对子集对应的两个Delaunay三角网络进行比对,若超过预设比例的匹配特征点对子集满足两个三角网络比对结果一致,则判定该图像检索结果正确;否则判定该图像检索结果错误。Comparing the two Delaunay triangulation networks corresponding to the subset of matching feature points to the subset, if the matching feature point pair of the preset ratio exceeds the matching result of the two triangular networks, the image retrieval result is determined to be correct; otherwise It is determined that the image retrieval result is incorrect.
优选的,所述将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中,具体为:将目标图像匹配特征点集的坐标转换到检索结果图像坐标系中,或将检索结果图像匹配特征点集的坐标转换到目标图像坐标系中。Preferably, the coordinates of the target image matching feature point set and the retrieval result image matching feature point set are converted into the same coordinate system, specifically: converting the coordinates of the target image matching feature point set into the retrieval result image coordinate system, Or convert the coordinates of the search result image matching feature point set into the target image coordinate system.
优选的,对每一个子集进行Delaunay三角剖分,具体为:对每一个子集中的特征点按坐标转换后的坐标进行空间排序,根据排序结果为每一个子集构建一个Delaunay三角网络;Preferably, Delaunay triangulation is performed on each subset, specifically: spatially sorting the coordinate points of the feature points in each subset according to the coordinate transformation, and constructing a Delaunay triangular network for each subset according to the sorting result;
所述空间排序指中值排序,具体包括:The spatial ordering refers to median sorting, and specifically includes:
排序轴确定步骤,将特征点集中特征点在x轴和y轴上具有最大/最小直径的轴作为排序轴;a sorting axis determining step of using an axis having a maximum/minimum diameter on the x-axis and the y-axis of the feature point set feature point as a sorting axis;
更新步骤,在所述排序轴上,计算构成该最大/最小直径的两个特征点的中值,改变原特征点集使空间上位于中值左侧的特征点在数据集合中位于中值点左侧,并使空间上位于中值右侧的特征点在数据集合中位于中值点右侧;And an updating step of calculating a median value of two feature points constituting the maximum/minimum diameter on the sorting axis, and changing the original feature point set such that the feature point spatially located to the left of the median value is located at the median point in the data set On the left side, and make the feature points on the right side of the median value in the data set to the right of the median point;
循环步骤,对左侧点构成的点集和右侧点构成的点集重复进行所述排序轴确定步骤和所述更新步骤,直到位于中值一侧的特征点的数量小于2时为止。In the looping step, the sorting axis determining step and the updating step are repeated for the point set formed by the left point and the point set formed by the right point until the number of feature points on the median side is less than 2.
相应的,本发明还提供一种图像检索方法,包括:获取目标图像;对目标图像或经预处理后的目标图像进行特征提取,提取出来的特征数据包括每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息;将提取出来的特征数据发送到图像检索服务器进行图像检索,得到一个或多个与目标图像初步匹配的检索结果图像;对初步匹配的检索结果图像,前述任一种图像检索结果排错方法进行检索结果排错。Correspondingly, the present invention further provides an image retrieval method, comprising: acquiring a target image; performing feature extraction on the target image or the pre-processed target image, and extracting the feature data including the position of each feature point in the image region. Information, scale, direction and feature description information; the extracted feature data is sent to the image retrieval server for image retrieval, and one or more search result images that are initially matched with the target image are obtained; for the preliminary matching search result image, the foregoing An image retrieval result troubleshooting method performs troubleshooting of the retrieval results.
相应的,本发明还提供一种图像检索服务器,包括图像检索数据库和图像匹配模块, 所述图像检索数据库中存储有若干样本图像的特征点集数据,每一个样本图像的特征点集数据包括特征点集中每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息;所述图像匹配模块,用于接收来自图像检索客户端的检索请求,并根据设定的匹配算法将检索请求中包含的目标图像数据在图像检索数据库中进行匹配,得到一组或多组与目标图像满足匹配算法的检索结果图像数据,所述图像检索服务器还包括排错模块,所述排错模块包括:Correspondingly, the present invention also provides an image retrieval server, including an image retrieval database and an image matching module. The image retrieval database stores feature point set data of a plurality of sample images, and the feature point set data of each sample image includes position information, scale, direction and feature description information of each feature point in the feature point set in the image region; The image matching module is configured to receive a retrieval request from the image retrieval client, and match the target image data included in the retrieval request in the image retrieval database according to the set matching algorithm to obtain one or more groups and target images. The search result image data of the matching algorithm is satisfied, the image retrieval server further includes a debugging module, and the debugging module includes:
姿态计算及坐标系转换单元,用于根据图像检索结果,利用匹配特征点对集合的尺度和方向信息,计算目标图像与每一个检索结果图像之间的姿态关系,并根据计算出的姿态关系,将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中,所述匹配特征点对集合包括目标图像匹配特征点集和检索结果图像匹配特征点集;The attitude calculation and coordinate system conversion unit is configured to calculate the attitude relationship between the target image and each of the retrieval result images according to the image retrieval result, and use the matching feature point pair scale and direction information, and according to the calculated posture relationship, Converting the coordinates of the target image matching feature point set and the retrieval result image matching feature point set into the same coordinate system, the matching feature point pair set including the target image matching feature point set and the retrieval result image matching feature point set;
三角网络构建单元,用于在转换后的坐标系中分别对目标图像匹配特征点集和检索结果图像匹配特征点集进行Delaunay三角剖分,得到目标图像对应的Delaunay三角网络和检索结果图像对应的Delaunay三角网络;A triangular network construction unit is configured to perform Delaunay triangulation on the target image matching feature point set and the search result image matching feature point set respectively in the converted coordinate system, and obtain a Delaunay triangular network corresponding to the target image and the search result image corresponding to the image. Delaunay triangle network;
判定单元,用于将上述两个Delaunay三角网络进行比对,若两个三角网络比对结果一致,则判定该图像检索结果正确;否则判定该图像检索结果错误。The determining unit is configured to compare the two Delaunay triangular networks, and if the two triangular network comparison results are consistent, the image retrieval result is determined to be correct; otherwise, the image retrieval result is determined to be incorrect.
优选的,所述将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中,具体为:将目标图像匹配特征点集的坐标转换到检索结果图像坐标系中,或将检索结果图像匹配特征点集的坐标转换到目标图像坐标系中。Preferably, the coordinates of the target image matching feature point set and the retrieval result image matching feature point set are converted into the same coordinate system, specifically: converting the coordinates of the target image matching feature point set into the retrieval result image coordinate system, Or convert the coordinates of the search result image matching feature point set into the target image coordinate system.
优选的,所述在转换后的坐标系中分别对目标图像匹配特征点集和检索结果图像匹配特征点集进行Delaunay三角剖,具体为:分别对目标图像匹配特征点集和检索结果图像特征点集中的特征点,按坐标系转换后的坐标进行空间排序,并根据排序结果构建各自对应的Delaunay三角网络。Preferably, the Delaunay triangulation is performed on the target image matching feature point set and the search result image matching feature point set respectively in the converted coordinate system, specifically: matching the feature image set and the retrieval result image feature point respectively to the target image The concentrated feature points are spatially sorted according to the coordinates converted by the coordinate system, and the corresponding Delaunay triangular networks are constructed according to the sorting results.
相应的,本发明还提供一种图像检索服务器,包括图像检索数据库和图像匹配模块,所述图像检索数据库中存储有若干样本图像的特征点集数据,每一个样本图像的特征点集数据包括特征点集中每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息;所述图像匹配模块,用于接收来自图像检索客户端的检索请求,并根据设定的匹配算法将检索请求中包含的目标图像数据在图像检索数据库中进行匹配,得到一组或多组与目标图像满足匹配算法的检索结果图像数据,所述图像检索服务器还包括排错模块,所述排错模块包括:Correspondingly, the present invention further provides an image retrieval server, comprising an image retrieval database and an image matching module, wherein the image retrieval database stores feature point set data of a plurality of sample images, and the feature point set data of each sample image includes features. Position information, scale, direction and feature description information of each feature point in the image area; the image matching module is configured to receive a retrieval request from the image retrieval client, and the retrieval request is according to the set matching algorithm The included target image data is matched in the image retrieval database, and one or more sets of search result image data satisfying the matching algorithm with the target image are obtained, and the image retrieval server further includes a debugging module, and the debugging module includes:
姿态计算及坐标系转换单元,用于根据图像检索结果,利用匹配特征点对集合的尺度 和方向信息,计算目标图像与每一个检索结果图像之间的姿态关系,并根据计算出的姿态关系,将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中,所述匹配特征点对集合包括目标图像匹配特征点集和检索结果图像匹配特征点集;An attitude calculation and coordinate system conversion unit for using the scale of the matching feature point pair set according to the image retrieval result And the direction information, calculating the attitude relationship between the target image and each of the retrieval result images, and converting the coordinates of the target image matching feature point set and the retrieval result image matching feature point set into the same coordinate system according to the calculated posture relationship And the matching feature point pair set includes a target image matching feature point set and a retrieval result image matching feature point set;
子集划分单元,根据目标图像匹配特征点所对应的检索结果图像匹配特征点在检索结果图像中所处的位置信息,对匹配特征点对集合进行子集划分,得到若干匹配特征点对子集,每一个匹配特征点对子集包括一个目标图像匹配特征点子集和一个检索结果图像匹配特征点子集;The sub-division unit obtains a subset of the matched feature point pair set according to the position information of the search result image corresponding to the target image matching feature point matching the feature point in the search result image, and obtains a plurality of matching feature point pair subsets. Each of the matching feature point pair subsets includes a target image matching feature point subset and a retrieval result image matching feature point subset;
三角网络构建单元,用于在转换后的坐标系中,分别对每一个目标图像匹配特征点子集和检索结果图像匹配特征点子集进行Delaunay三角剖分,得到对应的Delaunay三角网络;A triangular network building unit is configured to perform Delaunay triangulation on each target image matching feature point subset and the search result image matching feature point subset in the converted coordinate system to obtain a corresponding Delaunay triangular network;
判定单元,将各匹配特征点对子集对应的两个Delaunay三角网络进行比对,若超过预设比例的匹配特征点对子集满足两个三角网络比对结果一致,则判定该图像检索结果正确;否则判定该图像检索结果错误。The determining unit compares the two Delaunay triangulation networks corresponding to the subset of the matching feature points, and if the matching feature point pair of the preset ratio exceeds the matching result of the two triangular networks, the image retrieval result is determined. Correct; otherwise the image retrieval result is determined to be incorrect.
优选的,所述将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中,具体为:将目标图像匹配特征点集的坐标转换到检索结果图像坐标系中,或将检索结果图像匹配特征点集的坐标转换到目标图像坐标系中。Preferably, the coordinates of the target image matching feature point set and the retrieval result image matching feature point set are converted into the same coordinate system, specifically: converting the coordinates of the target image matching feature point set into the retrieval result image coordinate system, Or convert the coordinates of the search result image matching feature point set into the target image coordinate system.
优选的,对每一个子集进行Delaunay三角剖分,具体为:对每一个子集中的特征点按坐标转换后的坐标进行空间排序,根据排序结果为每一个子集构建一个Delaunay三角网络。Preferably, the Delaunay triangulation is performed on each subset, specifically: spatially sorting the coordinate points of the feature points in each subset according to the coordinate transformation, and constructing a Delaunay triangular network for each subset according to the sorting result.
相应的,本发明还提供一种图像检索系统,包括图像检索客户端和图像检索服务器,所述图像检索服务器为前述任一种图像检索服务器;Correspondingly, the present invention further provides an image retrieval system, comprising an image retrieval client and an image retrieval server, wherein the image retrieval server is any one of the foregoing image retrieval servers;
所述图像检索客户端包括图像获取模块、特征提取模块、检索请求发送模块和检索结果接收模块,其中:The image retrieval client includes an image acquisition module, a feature extraction module, a retrieval request sending module, and a retrieval result receiving module, wherein:
所述图像获取模块,用于获取目标图像;The image acquisition module is configured to acquire a target image;
所述特征提取模块,用于对目标图像进行特征提取,提取出来的特征数据包括每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息;The feature extraction module is configured to perform feature extraction on the target image, and the extracted feature data includes location information, scale, direction, and feature description information of each feature point in the image region;
所述检索请求发送模块,用于将特征提取模块提取出来的特征数据发送到图像检索服务器进行图像检索;The search request sending module is configured to send the feature data extracted by the feature extraction module to an image retrieval server for image retrieval;
所述检索结果接收模块,用于接收从图像检索服务器返回的检索结果信息。 The search result receiving module is configured to receive the search result information returned from the image retrieval server.
本发明通过采用Delaunay三角网络来表征图像特征点集的内部关系,利用Delaunay三角网络的唯一性特性对检索结果进行排错(校正),将算法上正确(满足约束条件的底线)、但人类认知上会判定为错误的检索结果剔除,能有效提高检索结果准确率。The invention uses the Delaunay triangulation network to characterize the internal relationship of the image feature point set, and uses the unique property of the Delaunay triangulation network to debug (correct) the search result, and the algorithm is correct (the bottom line of the constraint condition is satisfied), but the human recognition Knowing that the search results that are determined to be erroneous are eliminated, can effectively improve the accuracy of the search results.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图:In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained according to these drawings for those skilled in the art without any inventive labor:
图1为本发明一个实施例的图像检索数据库生成方法流程示意图;1 is a schematic flow chart of a method for generating an image retrieval database according to an embodiment of the present invention;
图2为本发明一个实施例中一个特征点集示意图;2 is a schematic diagram of a feature point set in an embodiment of the present invention;
图3为本发明一个实施例的图像检索结果排错方法的第一流程示意图;3 is a first schematic flowchart of a method for troubleshooting an image retrieval result according to an embodiment of the present invention;
图4为本发明一个实施例的图像检索结果排错方法的第二流程示意图;4 is a second schematic flowchart of a method for troubleshooting an image retrieval result according to an embodiment of the present invention;
图5为本发明一个实施例的检索结果图像和目标图像中的对应匹配特征点位置示意图;FIG. 5 is a schematic diagram of locations of corresponding matching feature points in a search result image and a target image according to an embodiment of the present invention; FIG.
图6为本发明一个实施例的图像检索服务器的第一结构示意图;FIG. 6 is a schematic diagram of a first structure of an image retrieval server according to an embodiment of the present invention; FIG.
图7为本发明一个实施例的图像检索服务器的第二结构示意图;FIG. 7 is a schematic diagram showing a second structure of an image retrieval server according to an embodiment of the present invention; FIG.
图8为本发明一个实施例的图像检索结果排错方法的第三流程示意图;FIG. 8 is a third schematic flowchart diagram of a method for troubleshooting an image retrieval result according to an embodiment of the present invention; FIG.
图9为本发明一个实施例的图像检索结果排错方法的第四流程示意图;FIG. 9 is a fourth schematic flowchart of a method for troubleshooting an image retrieval result according to an embodiment of the present invention; FIG.
图10为本发明一个实施例的图像检索服务器的第三结构示意图;FIG. 10 is a third schematic structural diagram of an image retrieval server according to an embodiment of the present invention; FIG.
图11为本发明一个实施例的图像检索服务器的第四结构示意图。FIG. 11 is a fourth schematic structural diagram of an image retrieval server according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明采用Delaunay三角网络来表征图像特征点集的内部关系,利用Delaunay三角 网络的唯一性特性对检索结果进行排错(校正),将算法上正确(满足约束条件的底线)、但人类认知上会判定为错误的检索结果剔除。The present invention uses a Delaunay triangulation network to characterize the internal relationship of image feature point sets, using the Delaunay triangle The uniqueness characteristics of the network are used to debug (correct) the search results, and the algorithm results are correct (the bottom line that satisfies the constraint), but the search results that are cognitively determined to be erroneous are rejected.
首先介绍一下Delaunay三角网络:Delaunay三角网络是对点集进行Delaunay三角剖分而形成的网络,要满足Delaunay三角剖分的定义,必须符合两个重要的准则:First, let's introduce the Delaunay triangulation network: The Delaunay triangulation network is a network formed by Delaunay triangulation of point sets. To meet the definition of Delaunay triangulation, two important criteria must be met:
1)空圆特性:Delaunay三角网络是唯一的(任意四点不能共圆),在Delaunay三角网络中任一三角形的外接圆范围内不会有其它点存在;1) Empty circle characteristics: The Delaunay triangular network is unique (any four points cannot be co-circular), and no other points exist in the circumscribed circle of any triangle in the Delaunay triangular network;
2)最大化最小角特性:在散点集可能形成的三角剖分中,Delaunay三角剖分所形成的三角形的最小角最大。从这个意义上讲,Delaunay三角网络是“最接近于规则化的“的三角网络。具体的说是指在两个相邻的三角形构成凸四边形的对角线,在相互交换后,六个内角的最小角不再增大。2) Maximizing the minimum angular characteristic: In the triangulation that the scatter set may form, the minimum angle of the triangle formed by the Delaunay triangulation is the largest. In this sense, the Delaunay triangle network is the "closest to the regularized" triangular network. Specifically, it means that the diagonal lines of the convex quadrilaterals are formed by two adjacent triangles, and after the mutual exchange, the minimum angles of the six inner corners are no longer increased.
Delaunay三角网络具备如下优异特性:The Delaunay Triangulation Network has the following features:
1)最接近:以最近的三点形成三角形,且各线段(三角形的边)皆不相交;1) closest: a triangle is formed with the last three points, and each line segment (the sides of the triangle) does not intersect;
2)唯一性:不论从区域何处开始构建,最终都将得到一致的结果;2) Uniqueness: no matter where the construction begins, the final result will be consistent;
3)最优性:任意两个相邻三角形形成的凸四边形的对角线如果可以互换的话,那么两个三角形六个内角中最小的角度不会变大;3) Optimality: if the diagonals of the convex quadrilateral formed by any two adjacent triangles are interchangeable, then the smallest angle among the six inner corners of the two triangles does not become large;
4)最规则:如果将三角网络中的每个三角形的最小角进行升序排列,则Delaunay三角网络的排列得到的数值最大;4) The most rule: If the minimum angle of each triangle in the triangular network is sorted in ascending order, the Delaunay triangulation network has the largest value;
5)区域性:新增、删除、移动某一个顶点时只会影响临近的三角形;5) Regionality: adding, deleting, and moving a certain vertex will only affect adjacent triangles;
6)具有凸多边形的外壳:三角网络最外层的边界形成一个凸多边形的外壳。6) Shell with convex polygons: The outermost boundary of the triangular network forms a convex polygonal outer shell.
本发明检索结果排错方法,需要对目标图像匹配特征点集和检索结果图像匹配特征点集分别构建Delaunay三角网络。由于需要进行三角网络比对,因此在建立Delaunay三角网络时,需要将目标图像匹配特征点和检索结果图像匹配特征点的坐标变换到同一坐标系上。然后,在转换后的坐标系中分别对目标图像匹配特征点集和检索结果图像匹配特征点集进行Delaunay三角剖分,得到目标图像对应的Delaunay三角网络和检索结果图像对应的Delaunay三角网络。最后,通过将上述两个Delaunay三角网络进行比对,来判断检索结果的正确性。In the method for troubleshooting the retrieval result of the present invention, it is necessary to construct a Delaunay triangular network separately for the target image matching feature point set and the retrieval result image matching feature point set. Since the triangular network comparison is needed, when the Delaunay triangular network is established, the coordinates of the target image matching feature point and the search result image matching feature point need to be transformed into the same coordinate system. Then, in the converted coordinate system, the Delaunay triangulation is performed on the target image matching feature point set and the search result image matching feature point set respectively, and the Delaunay triangular network corresponding to the target image and the Delaunay triangular network corresponding to the retrieval result image are obtained. Finally, the correctness of the search results is judged by comparing the above two Delaunay triangulation networks.
在本发明中,所述检索结果图像是指满足匹配算法的样本图像。在一种实施方式中,目标图像和检索结果图像对应的Delaunay三角网络均为在线生成。在另一种实施方式中,可以在建设图像检索数据库的时候,离线生成各样本图像对应的Delaunay三角网络,以 提高图像检索时的效率。In the present invention, the retrieval result image refers to a sample image that satisfies the matching algorithm. In one embodiment, the Delaunay triangulation network corresponding to the target image and the retrieval result image is generated online. In another implementation manner, the Delaunay triangulation network corresponding to each sample image may be generated offline when the image retrieval database is constructed. Improve the efficiency of image retrieval.
下面首先结合图1至图7,以离线生成样本图像对应的Delaunay三角网络为例,介绍本发明具体实施方式。The following is a first embodiment of the present invention by taking the Delaunay triangulation network corresponding to the sample image offline as an example with reference to FIG. 1 to FIG. 7 .
参见图1,为本发明实施例一种图像检索数据库生成方法流程示意图。采用该方法来建设具有样本图像对应的Delaunay三角网络数据的专用图像检索数据库。所述图像检索数据库生成方法包括如下步骤S101至步骤S104。1 is a schematic flowchart of a method for generating an image retrieval database according to an embodiment of the present invention. This method is used to construct a dedicated image retrieval database with Delaunay triangular network data corresponding to the sample image. The image retrieval database generating method includes the following steps S101 to S104.
在S101中:对样本图像或经预处理后的样本图像进行特征提取,得到每一个样本图像所对应的特征点集。本步骤特征提取方法,可以采用基于尺度不变的特征提取方法,如ORB,SIFT,SURF等。所述经预处理后的样本图像指经统一尺寸处理、冗余区域剔除、高斯模糊处理、仿射变换中的一种或多种方式预处理后的样本图像,预处理是为了提高检索精度。In S101, feature extraction is performed on the sample image or the pre-processed sample image to obtain a feature point set corresponding to each sample image. In this step feature extraction method, a feature-based extraction method based on scale invariance, such as ORB, SIFT, SURF, etc., may be employed. The preprocessed sample image refers to a sample image preprocessed by one or more methods of uniform size processing, redundant area culling, Gaussian blur processing, and affine transformation, and the preprocessing is to improve retrieval precision.
在S102中:将每个样本图像所对应的特征点集中的每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息,记录在图像检索数据库中对应该样本图像的检索数据中。在特征提取后,特征点数据记录到图像检索数据库中的顺序是随意的。特征描述信息可以为一个8字节的内容描述。特征点位置信息可以用二维坐标表示。In S102, the position information, the scale, the direction and the feature description information of each feature point in the feature point set corresponding to each sample image in the image region are recorded in the search data corresponding to the sample image in the image retrieval database. . After feature extraction, the order in which feature point data is recorded into the image retrieval database is arbitrary. The characterization information can be an 8-byte content description. The feature point position information can be represented by two-dimensional coordinates.
在S103中:根据每个样本图像所对应的特征点集中每个特征点在图像区域内的位置信息,对该样本图像所对应的特征点集中的特征点进行空间排序。空间位置较近的特征点在排序后依然隔得较近。In S103, according to the position information of each feature point in the image region in the feature point corresponding to each sample image, the feature points in the feature point set corresponding to the sample image are spatially sorted. Feature points that are closer in spatial position are still closer together after sorting.
在S104中:根据S103得到的每个样本图像的空间排序结果构建该样本图像所对应的Delaunay三角网络(该三角网络具有唯一性。即对同一个点集进行构建,无论从哪个点开始都将得到一致的结果;同时对点集中的同一个子集进行删除操作,得到的三角网络也是一致的)。然后,将构建好的Delaunay三角网络的三角形序列数据记录在图像检索数据库中对应该样本图像的检索数据中。所述三角形序列数据包括Delaunay三角网络中每个三角形对应的三个点和三条边的序号。In S104: constructing a Delaunay triangular network corresponding to the sample image according to the spatial ordering result of each sample image obtained in S103 (the triangular network is unique), that is, constructing the same point set, no matter which point is started A consistent result is obtained; at the same time, the same subset of the point set is deleted, and the resulting triangular network is also consistent). Then, the triangular sequence data of the constructed Delaunay triangulation network is recorded in the retrieval data corresponding to the sample image in the image retrieval database. The triangular sequence data includes the sequence numbers of three points and three sides corresponding to each triangle in the Delaunay triangular network.
步骤S103中所述空间排序可以为中值排序。所述中值排序指根据特征点在图像区域内的位置信息进行中值排序。具体为:将特征点集中的特征点在x轴和y轴上具有最大/最小直径的轴作为排序轴。在所述排序轴上,计算构成该最大/最小直径的两个特征点的中值,改变原特征点集,以使空间上位于中值左侧的特征点在数据集合中位于中值点左侧,并使空间上位于中值右侧的特征点在数据集合中位于中值点右侧。然后对左侧点构成的点集和右侧点构成的点集进行上述递归处理,直到位于中值一侧的特征点的数量小于2时为 止。其中,x轴直径指特征点集中的各特征点的x坐标的最大值与最小值之差的绝对值;y轴直径指特征点集中的各特征点的y坐标的最大值与最小值之差的绝对值。The spatial ordering in step S103 may be a median ordering. The median ranking refers to performing median ordering based on location information of feature points within the image region. Specifically, the axis having the feature points in the feature points on the x-axis and the y-axis has the largest/minimum diameter as the sorting axis. Calculating a median value of two feature points constituting the maximum/minimum diameter on the sorting axis, and changing a set of original feature points such that a feature point spatially located to the left of the median value is located at a median point in the data set Side, and feature points that are spatially to the right of the median are located to the right of the median point in the data set. Then, the above-mentioned recursive processing is performed on the point set formed by the left point and the point set formed by the right point until the number of feature points on the median side is less than 2 stop. The x-axis diameter refers to the absolute value of the difference between the maximum value and the minimum value of the x-coordinates of each feature point in the feature point set; the y-axis diameter refers to the difference between the maximum value and the minimum value of the y-coordinate of each feature point in the feature point set. The absolute value.
参见图2,为一个点集,包括如下7个点:[(-2,2)(2.5,-5)(2,1)(-4,-1.5)(-7.5,2.5)(7,2)(1,-2.5)]。这7个点组成的点集的x轴直径为14,y轴直径为7.5。假设中值排序时以x、y轴周直径中较大者为排序轴,则在第一次排序时,以x轴作为排序轴,中值为0。将(-7.5,2.5)、(-2,2)、(-4,-1.5)三个点排在中值点左侧,其他四个点放在中值点右侧。然后对左侧点集和右侧点集进行递归处理,即对左右侧点集重新寻找xy轴中直径较大的轴,计算构成该直径的两个特征点的中值,改变原特征点集,以使空间上位于中值左侧的特征点在数据集合中位于中值点左侧,并使空间上位于中值右侧的特征点在数据集合中位于中值点右侧。See Figure 2 for a set of points, including the following seven points: [(-2,2)(2.5,-5)(2,1)(-4,-1.5)(-7.5,2.5)(7,2 ) (1,-2.5)]. The set of 7 points consists of a x-axis diameter of 14 and a y-axis diameter of 7.5. Assume that the median sorting uses the larger of the x and y-axis circumference diameters as the sorting axis. In the first sorting, the x-axis is used as the sorting axis, and the median is 0. Three points (-7.5, 2.5), (-2, 2), (-4, -1.5) are placed to the left of the median point, and the other four points are placed to the right of the median point. Then, the left point set and the right point set are recursively processed, that is, the left and right side point sets are re-searched for the larger diameter axis in the xy axis, and the median values of the two feature points constituting the diameter are calculated, and the original feature point set is changed. So that the feature points that are spatially to the left of the median are located to the left of the median point in the data set, and the feature points that are spatially to the right of the median are located to the right of the median point in the data set.
本实施例图像检索数据库生成方法,既可以在服务器端对大量样本图像进行处理生成对应的图像检索数据库,也能以添加的模式单独或成组地将新的样本图像数据添加进已有的图像检索数据库。针对不同应用需求,为了提高检索精度,可以对样本图像进行多种方式的预处理,包括统一尺寸处理、冗余区域剔除、高斯模糊处理、仿射变换等。In the image retrieval database generation method of the embodiment, a large number of sample images may be processed on the server side to generate a corresponding image retrieval database, and new sample image data may be added to the existing image separately or in groups in the added mode. Retrieve the database. For different application requirements, in order to improve the retrieval accuracy, the sample image can be preprocessed in various ways, including uniform size processing, redundant area culling, Gaussian blur processing, affine transformation and so on.
按照上述图像检索数据库生成方法,可生成本发明实施例中使用的一种专用图像检索数据库,。图像检索数据库存储于图像检索服务器端。图像检索数据库内存储有若干样本图像的检索数据。每一个样本图像的检索数据包括该样本图像的特征点集数据及由特征点集构建的Delaunay三角网络的三角形序列数据。所述特征点集数据包括特征点集中每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息。所述三角形序列数据包括Delaunay三角网络中每个三角形对应的三个点和三条边的序号。本发明的后续结合图3至图7的实施例中所提及的图像检索数据库均为本实施例所述的专用图像检索数据库。According to the image retrieval database generation method described above, a dedicated image retrieval database used in the embodiment of the present invention can be generated. The image retrieval database is stored on the image retrieval server side. The image retrieval database stores retrieval data of a plurality of sample images. The retrieval data of each sample image includes feature point set data of the sample image and triangular sequence data of a Delaunay triangular network constructed from the feature point set. The feature point set data includes position information, scale, direction, and feature description information of each feature point in the feature point set in the image region. The triangular sequence data includes the sequence numbers of three points and three sides corresponding to each triangle in the Delaunay triangular network. The image retrieval database referred to in the embodiment of the present invention in conjunction with the embodiments of Figs. 3 to 7 is the dedicated image retrieval database described in this embodiment.
参见图3,为本发明实施例一种图像检索结果排错方法的第一流程示意图。所述图像检索是基于特征提取的图像检索。对目标图像进行特征提取时,提取出来的特征数据包括每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息。图像检索结果指图像检索数据库中与目标图像满足匹配算法的一组或多组检索结果图像数据。采用图3所示的图像检索结果排错方法分别对每一个检索结果图像进行排错,包括如下步骤S201至S205。FIG. 3 is a schematic diagram of a first flow of a method for troubleshooting an image retrieval result according to an embodiment of the present invention. The image retrieval is an image retrieval based on feature extraction. When feature extraction is performed on the target image, the extracted feature data includes position information, scale, direction, and feature description information of each feature point in the image region. The image retrieval result refers to one or more sets of retrieval result image data in the image retrieval database that satisfy the matching algorithm with the target image. Each of the search result images is separately debugged by using the image search result troubleshooting method shown in FIG. 3, and includes the following steps S201 to S205.
在S201中:根据图像检索结果,利用匹配特征点对集合的尺度和方向信息,计算目标图像与每一个检索结果图像之间的姿态关系。所述匹配特征点对集合包括目标图像匹配特征点集和检索结果图像匹配特征点集。一个目标图像匹配特征点与一个检索结果图像匹配特征点构成了一个匹配特征点对。 In S201: according to the image retrieval result, the attitude relationship between the target image and each of the retrieval result images is calculated by using the scale and direction information of the pair of matching feature points. The matched feature point pair set includes a target image matching feature point set and a retrieval result image matching feature point set. A target image matching feature point and a search result image matching feature point constitute a matching feature point pair.
在S202中:根据计算出的姿态关系,将目标图像匹配特征点集的坐标转换为检索结果图像坐标系中的坐标。In S202: the coordinates of the target image matching feature point set are converted into coordinates in the search result image coordinate system according to the calculated posture relationship.
在S203中:根据坐标系转换后的坐标对目标图像匹配特征点集中的特征点进行空间排序,根据排序结果构建目标图像匹配特征点集所对应的Delaunay三角网络。在本步骤中,特征点空间排序方式与图像检索数据库生成时样本图像特征点空间排序方式一致。例如:在生成图像检索数据库时,样本图像的特征点排序方式为中值排序且以x,y轴直径中最大直径为排序轴。,则本步骤中,对目标图像匹配特征点集中的特征点进行空间排序时,也需要按照同样的方式进行。In S203: spatially sorting the feature points in the target image matching feature point set according to the coordinates converted by the coordinate system, and constructing a Delaunay triangular network corresponding to the target image matching feature point set according to the sorting result. In this step, the feature point spatial sorting manner is consistent with the sample image feature point spatial sorting manner when the image retrieval database is generated. For example, when generating an image retrieval database, the feature points of the sample image are sorted by median ordering and the largest diameter among the x and y axis diameters is the sorting axis. In this step, when the feature points in the target image matching feature point set are spatially sorted, it is also required to be performed in the same manner.
在S204中:从图像检索数据库中获取检索结果图像所对应的Delaunay三角网络,将未匹配上的特征点子集在该检索结果图像所对应的Delaunay三角网络中删除,得到检索结果图像匹配特征点集所对应的Delaunay三角网络。In S204, the Delaunay triangulation network corresponding to the search result image is obtained from the image retrieval database, and the feature point subsets on the unmatched are deleted in the Delaunay triangulation network corresponding to the search result image, and the search result image matching feature point set is obtained. Corresponding Delaunay triangle network.
在S205中:将所述目标图像匹配特征点集对应的Delaunay三角网络和检索结果图像匹配特征点集对应的Delaunay三角网络进行比对。若两个三角网络比对结果一致(所谓结果一致,即点对集合中对应的点对在两Delaunay三角网络中处于同样的位置),则判定该图像检索结果正确;否则判定该图像检索结果错误。本发明实施例对图像匹配算法不做限定,只要基于特征提取的图像检索均可以采用本发明实施例方式进行检索结果排错。In S205, the Delaunay triangular network corresponding to the target image matching feature point set and the Delaunay triangular network corresponding to the search result image matching feature point set are compared. If the results of the two triangular network alignments are consistent (the so-called results are consistent, that is, the corresponding point pairs in the point pair set are in the same position in the two Delaunay triangular networks), it is determined that the image retrieval result is correct; otherwise, the image retrieval result is determined to be incorrect. . The image matching algorithm is not limited in the embodiment of the present invention, and the image retrieval based on the feature extraction may be performed by using the method of the embodiment of the present invention.
在步骤S201中,计算出的目标图像与检索结果图像之间的姿态关系可用一个长度为6的向量来描述,记该向量为affine[6]。步骤S202中根据affine[6]将目标图像的特征点集的坐标转换为检索结果图像坐标系中的坐标,转换表达式如下:In step S201, the calculated attitude relationship between the target image and the search result image can be described by a vector of length 6, which is affine[6]. In step S202, the coordinates of the feature point set of the target image are converted into coordinates in the image coordinate system of the search result according to affine [6], and the conversion expression is as follows:
Xr=Xo*affine[0]+Yo*affine[1]+affine[2]Xr=Xo*affine[0]+Yo*affine[1]+affine[2]
Yr=Xo*affine[3]+Yo*affine[4]+affine[5]Yr=Xo*affine[3]+Yo*affine[4]+affine[5]
其中,(Xr,Yr)为目标图像的特征点在对应检索结果图像坐标系中的坐标,(Xo,Yo)为目标图像的特征点的原始坐标。在步骤S203中,对(Xr,Yr)的点集合进行空间排序。Where (Xr, Yr) is the coordinate of the feature point of the target image in the image coordinate system corresponding to the search result, and (Xo, Yo) is the original coordinate of the feature point of the target image. In step S203, the point set of (Xr, Yr) is spatially ordered.
在图3所示的实施例中,由于按照整图匹配特征点集所构造的Delaunay三角网络来进行比对排错,排错条件是非常严苛的。只要一组特征点匹配错误,则会将整个检索结果判断为错误。In the embodiment shown in FIG. 3, the troubleshooting condition is very severe due to the alignment troubleshooting performed by the Delaunay triangulation constructed by matching the feature point set in the entire map. As long as a set of feature points are mismatched, the entire search result is judged as an error.
在实际图像检索过程中,目标图像可能会存在画面扭曲等情况。在这种情况下,如果采用图3所示的流程方法来排错,会造成排错误差过大。鉴于这种情况,本发明提出了改进方案。 In the actual image retrieval process, the target image may be subject to distortion or the like. In this case, if the process method shown in Figure 3 is used to troubleshoot, the error will be too large. In view of this situation, the present invention proposes an improvement.
参见图4,为本发明实施例一种图像检索结果排错方法的第二流程示意图。该排错方法是在图3示意的实施例上进行了改进。该图像检索结果排错方法包括如下步骤S301至S306。FIG. 4 is a second schematic flowchart of a method for troubleshooting an image retrieval result according to an embodiment of the present invention. This troubleshooting method is improved on the embodiment illustrated in FIG. The image retrieval result troubleshooting method includes the following steps S301 to S306.
在S301中:根据图像检索结果,利用匹配特征点对集合的尺度和方向信息,计算目标图像与每一个检索结果图像之间的姿态关系。所述匹配特征点对集合包括目标图像匹配特征点集和检索结果图像匹配特征点集。一个目标图像匹配特征点与一个检索结果图像匹配特征点构成了一个匹配特征点对。In S301, according to the image retrieval result, the attitude relationship between the target image and each of the search result images is calculated by using the scale and direction information of the pair of matching feature points. The matched feature point pair set includes a target image matching feature point set and a retrieval result image matching feature point set. A target image matching feature point and a search result image matching feature point constitute a matching feature point pair.
在S302中:根据计算出的姿态关系,将目标图像匹配特征点集的坐标转换为检索结果图像坐标系中的坐标。转换方式与步骤S201中的转换方式一致。In S302: the coordinates of the target image matching feature point set are converted into coordinates in the search result image coordinate system according to the calculated posture relationship. The conversion method is the same as the conversion method in step S201.
在S303中:根据目标图像匹配特征点所对应的检索结果图像特征点在检索结果图像中所处的位置,对坐标系转换后的目标图像匹配特征点集中的特征点进行子集划分,得到多个目标图像匹配特征点子集。一般分成3*3的块至7*7的块,对9到49个块中的特征点子集集合以子集为单位进行后续步骤处理(即步骤S304至步骤S306中的处理过程均以子集为单位),以避免特征点集合匹配对中由于各特征点子集姿态不同而导致计算排错结果误差过大。参见图5,左侧为检索结果图像,右侧为目标图像。二者匹配特征点对包括A A’,B B’,C C’,D D’,E E’,F F’。在对匹配特征点集划分子区域时,按照目标图像匹配特征点A’B’C’D’E’F’所对应的检索结果图像特征点A B C D E F在检索结果图像中所处的位置进行子集划分。如图5所示,A’B’C’D’四点对应的匹配特征点A B C D在检索结果图像中位于同一区域快中,E’F’两点对应的匹配特征点E F在检索结果图像中位于同一区域快中。因此,A’B’C’D’四个点在目标图像匹配特征点集中被划分到同一个目标图像匹配特征点子集,E’F’两个点在目标图像匹配特征点集中被划分到另一个目标图像匹配特征点子集。同样地,在检索结果图像中,A B C D四点被划分到同一个检索结果图像匹配特征点子集,E F被划分到另一个检索结果图像匹配特征点子集。一个目标图像匹配特征点子集对应一个检索结果图像匹配特征点子集。相互对应的目标图像匹配特征点子集和检索结果图像匹配特征点子集合称为一个子集对(即匹配特征点对子集)。在一个子集对中,目标图像匹配特征点子集中的特征点完全与检索结果图像匹配特征点子集中的特征点匹配。例如A’B’C’D’四个点构成的目标图像匹配特征点子集与A B C D四点构成的检索结果图像匹配特征点子集合称为一个子集对。在本步骤中,之所以选择根据目标图像匹配特征点所对应的检索结果图像特征点在检索结果图像中所处的位置,对坐标系转换后的目标图像匹配特征点集中的特征点进行子集划分,是因为图像检索是以数据库中存储的样本图像作为比对基础。样本图像是一个完整图像,而目标图像在拍摄过程中,可能存在不是 完全图像等情况(即只拍了整图的一部分),若以目标图像作为子集划分基础,则出现误差的可能性较大。In S303, according to the position of the image point of the search result corresponding to the target image matching feature point in the search result image, the subset of the feature points in the target image matching feature point after the coordinate system conversion is divided into subsets, and more The target images match a subset of feature points. Generally, the block is divided into 3*3 blocks to 7*7 blocks, and the feature point subset set in 9 to 49 blocks is subjected to subsequent step processing in units of subsets (ie, the processes in steps S304 to S306 are all in subsets). In order to avoid the feature point set matching alignment, the error of the calculation result is too large due to the different postures of the feature points. Referring to Figure 5, the left side is the search result image, and the right side is the target image. The two matching feature point pairs include A A', B B', C C', D D', E E', F F'. When the sub-region is divided into the matching feature point set, the search result image feature point A B C D E F corresponding to the target image matching feature point A'B'C'D'E'F' is located in the search result image. The location is divided into subsets. As shown in FIG. 5, the matching feature points A B C D corresponding to the four points of A'B'C'D' are located in the same region fast in the search result image, and the matching feature points E F corresponding to the two points of E'F' are The search result image is located in the same area fast. Therefore, the four points of A'B'C'D' are divided into the same target image matching feature point subset in the target image matching feature point set, and the E'F' two points are divided into another in the target image matching feature point set. A target image matches a subset of feature points. Similarly, in the search result image, the A B C D four points are divided into the same search result image matching feature point subset, and the E F is divided into another search result image matching feature point subset. A target image matching feature point subset corresponds to a search result image matching feature point subset. The corresponding target image matching feature point subset and the retrieval result image matching feature point subset are referred to as a subset pair (ie, matching feature point pair subset). In a subset pair, the feature points in the target image matching feature point subset are completely matched with the feature points in the search result image matching feature point subset. For example, a target image matching feature point subset composed of four points A'B'C'D' and a search result image matching feature point subset formed by A B C D four points are referred to as a subset pair. In this step, the reason is as follows: the position of the feature point of the search result image corresponding to the target image matching feature point in the search result image is selected, and the feature point of the coordinate image converted target image matching feature point set is subjected to a subset. The division is because the image retrieval is based on the sample images stored in the database. The sample image is a complete image, and the target image may not exist during the shooting process. In the case of a complete image or the like (that is, only a part of the entire image is taken), if the target image is used as a basis for the division, there is a high possibility of an error.
在S304中:对每一个目标图像匹配特征点子集中的特征点按坐标系转换后的坐标进行空间排序。根据排序结果为每一个目标图像匹配特征点子集构建一个Delaunay三角网络。在本步骤中,特征点空间排序方式与图像检索数据库生成时样本图像特征点空间排序方式一致。In S304, the feature points in each of the target image matching feature point subsets are spatially sorted according to the coordinates converted by the coordinate system. According to the sorting result, a Delaunay triangulation network is constructed for each target image matching feature point subset. In this step, the feature point spatial sorting manner is consistent with the sample image feature point spatial sorting manner when the image retrieval database is generated.
在S305中:从图像检索数据库中获取检索结果图像所对应的Delaunay三角网络,将未匹配上的特征点子集在该Delaunay三角网络中删除,得到匹配特征点对集合中各检索结果图像匹配特征点子集所对应的Delaunay三角网络。In S305, a Delaunay triangular network corresponding to the search result image is obtained from the image retrieval database, and the feature point subsets on the unmatched are deleted in the Delaunay triangular network, and the matching feature points of the search result image in the matching feature point pair set are obtained. The Delaunay triangle network corresponding to the episode.
在S306中:将各匹配特征点子集对所对应的上述两个Delaunay三角网络进行比对(这里所说的上述两个Delaunay三角网络指,步骤S304和S305中分别得到的各匹配特征点子集对所对应的两个Delaunay三角网络)。若超过预设比例的子集对满足两个三角网络比对结果一致,则判定该图像检索结果正确;否则判定该图像检索结果错误。本步骤中,预设比例可根据实际情况自由设置,设置范围优选在1/3至1/6之间。假设:预设比例设置为2/3。此时,若超过2/3的子集对满足两个三角网络比对结果一致,则判定图像检索结果正确。In S306: comparing the two pairs of Delaunay triangulation networks corresponding to each pair of matched feature points (the above two Delaunay triangulation networks refer to the pairs of matching feature points obtained in steps S304 and S305 respectively) Corresponding to the two Delaunay triangle networks). If the subset of the preset ratio exceeds the alignment result of the two triangular networks, the image retrieval result is determined to be correct; otherwise, the image retrieval result is determined to be incorrect. In this step, the preset ratio can be freely set according to the actual situation, and the setting range is preferably between 1/3 and 1/6. Assumption: The preset ratio is set to 2/3. At this time, if the subset of more than 2/3 matches the two triangular network alignment results, it is determined that the image retrieval result is correct.
采用图4的流程方法,能有效降低扭曲图像对检索结果的影响,进一步提高检索结果准确率。图4的实施例对图像匹配算法不做限定,只要基于特征提取的图像检索均可以采用本发明实施例方式进行检索结果排错。Using the flow method of FIG. 4, the influence of the distorted image on the retrieval result can be effectively reduced, and the accuracy of the retrieval result can be further improved. The embodiment of FIG. 4 does not limit the image matching algorithm, as long as the image retrieval based on feature extraction can be performed by using the method of the embodiment of the present invention.
参见图6,为本发明实施例一种图像检索服务器的第一结构示意图。本实施例的图像检索服务器包括图像检索数据库10和图像匹配模块11。所述图像检索数据库10为前述实施例中所述的专用图像检索数据库。所述图像匹配模块11,用于接收来自图像检索客户端的检索请求,并根据设定的匹配算法将检索请求中包含的目标图像数据在图像检索数据库中进行匹配,得到一组或多组与目标图像满足匹配算法的检索结果图像数据。FIG. 6 is a schematic diagram of a first structure of an image retrieval server according to an embodiment of the present invention. The image retrieval server of the present embodiment includes an image retrieval database 10 and an image matching module 11. The image retrieval database 10 is a dedicated image retrieval database described in the foregoing embodiment. The image matching module 11 is configured to receive a retrieval request from the image retrieval client, and match the target image data included in the retrieval request in the image retrieval database according to the set matching algorithm to obtain one or more groups and targets. The image satisfies the search result image data of the matching algorithm.
所述图像检索服务器还包括排错模块12。所述排错模块12包括姿态计算及坐标系转换单元121、三角网络构建单元122和判断单元123。The image retrieval server also includes a debug module 12. The troubleshooting module 12 includes a posture calculation and coordinate system conversion unit 121, a triangular network construction unit 122, and a determination unit 123.
姿态计算及坐标系转换单元121,用于根据图像检索结果,利用匹配特征点对集合的尺度和方向信息,计算目标图像与每一个检索结果图像之间的姿态关系,并根据计算出的姿态关系,将目标图像匹配特征点集的坐标转换为检索结果图像坐标系中的坐标。所述匹配特征点对集合包括目标图像匹配特征点集和检索结果图像匹配特征点集。一个目标图像 匹配特征点与一个检索结果图像匹配特征点构成了一个匹配特征点对。The attitude calculation and coordinate system conversion unit 121 is configured to calculate the attitude relationship between the target image and each of the retrieval result images by using the scale and direction information of the pair of matching feature points according to the image retrieval result, and according to the calculated posture relationship. Converting the coordinates of the target image matching feature point set to the coordinates in the search result image coordinate system. The matched feature point pair set includes a target image matching feature point set and a retrieval result image matching feature point set. a target image Matching feature points and a search result image matching feature points constitute a matching feature point pair.
三角网络构建单元122,用于根据坐标系转换后的坐标对目标图像匹配特征点集中的特征点进行空间排序(排序方式与图像检索数据库生成时采用的排序方式一致),根据排序结果构建目标图像匹配特征点集对应的Delaunay三角网络。The triangular network construction unit 122 is configured to spatially sort the feature points in the target image matching feature point set according to the coordinate converted by the coordinate system (the sorting manner is consistent with the sorting manner used in the image retrieval database generation), and construct the target image according to the sorting result. Match the Delaunay triangle network corresponding to the feature point set.
判断单元123,用于从图像检索数据库10中获取检索结果图像所对应的Delaunay三角网络,将未匹配上的特征点子集在该检索结果图像所对应的Delaunay三角网络中删除,得到检索结果图像匹配特征点集所对应的Delaunay三角网络,并将该检索结果图像匹配特征点集所对应的Delaunay三角网络与三角网络构建单元122所构建的目标图像匹配特征点集对应的Delaunay三角网络进行比对。若两个三角网络比对结果一致,则判定该图像检索结果正确;否则判定该图像检索结果错误。The determining unit 123 is configured to obtain a Delaunay triangulation network corresponding to the search result image from the image retrieval database 10, and delete the unmatched feature point subset in the Delaunay triangulation network corresponding to the search result image to obtain a search result image matching. The Delaunay triangular network corresponding to the feature point set compares the Delaunay triangular network corresponding to the search result image matching feature point set with the Delaunay triangular network corresponding to the target image matching feature point set constructed by the triangular network construction unit 122. If the alignment results of the two triangular networks are consistent, it is determined that the image retrieval result is correct; otherwise, the image retrieval result is determined to be incorrect.
参见图7,为本发明实施例一种图像检索服务器的第二结构示意图。该图像检索服务器结构与图6的区别在于,排错模块12结构不同。在本实施例中,所述排错模块12内增加了一个子集划分单元124,另外三角网络构建单元125及判断单元126功能也与图6中对应单元功能有所不同,具体如下:FIG. 7 is a schematic diagram of a second structure of an image retrieval server according to an embodiment of the present invention. The image retrieval server structure differs from that of FIG. 6 in that the debug module 12 is different in structure. In this embodiment, a subset division unit 124 is added to the debug module 12, and the functions of the triangle network construction unit 125 and the determination unit 126 are also different from those of the corresponding unit in FIG. 6, as follows:
图7中姿态计算与坐标系转换单元121与图6中姿态计算及坐标系转换单元的功能完全一致,用于根据图像检索结果,利用匹配特征点对集合的尺度和方向信息,计算目标图像与每一个检索结果图像之间的姿态关系,并根据计算出的姿态关系,将目标图像匹配特征点集的坐标转换为检索结果图像坐标系中的坐标。The posture calculation and coordinate system conversion unit 121 in FIG. 7 is completely consistent with the functions of the posture calculation and the coordinate system conversion unit in FIG. 6, and is used for calculating the target image by using the scale and direction information of the matching feature point pair set according to the image retrieval result. The attitude relationship between each of the search result images is converted, and the coordinates of the target image matching feature point set are converted into coordinates in the search result image coordinate system according to the calculated posture relationship.
子集划分单元124,用于根据目标图像匹配特征点所对应的检索结果图像特征点在检索结果图像中所处的位置,对坐标系转换后的目标图像匹配特征点集中的特征点进行子集划分,得到多个目标图像匹配特征点子集。子集划分详细描述参见对图5描述部分。The subset dividing unit 124 is configured to perform a subset of the feature points in the target image matching feature point set after the coordinate system is converted according to the position of the image point of the search result corresponding to the target image matching the feature point in the search result image. Dividing, obtaining a plurality of target image matching feature point subsets. A detailed description of the subset partitioning is provided in the section describing the FIG.
三角网络构建单元125,用于对每一个目标图像匹配特征点子集中的特征点按坐标系转换后的坐标进行空间排序(排序方式与图像检索数据库生成时采用的排序方式一致),根据排序结果为每一个目标图像匹配特征点子集构建一个Delaunay三角网络。The triangular network construction unit 125 is configured to spatially sort the feature points of each target image matching feature point subset according to the coordinates converted by the coordinate system (the sorting manner is consistent with the sorting manner used in the image retrieval database generation), according to the sorting result Each target image matches a subset of feature points to construct a Delaunay triangulation network.
判断单元126,用于从图像检索数据库中获取检索结果图像所对应的Delaunay三角网络,将未匹配上的特征点子集在该检索结果图像所对应的Delaunay三角网络中删除,得到匹配特征点对集合中各检索结果图像匹配特征点子集所对应的Delaunay三角网络,并将各子集对所对应的两个Delaunay三角网络进行比对。若超过预设比例的子集对满足两个三角网络比对结果一致,则判定该图像检索结果正确;否则判定该图像检索结果错误。The determining unit 126 is configured to obtain a Delaunay triangulation network corresponding to the search result image from the image retrieval database, and delete the unmatched feature point subset in the Delaunay triangulation network corresponding to the search result image to obtain a matching feature point pair set. Each of the search result images matches the Delaunay triangular network corresponding to the subset of feature points, and compares the two Delaunay triangular networks corresponding to each subset pair. If the subset of the preset ratio exceeds the alignment result of the two triangular networks, the image retrieval result is determined to be correct; otherwise, the image retrieval result is determined to be incorrect.
下面结合图8至图11,以在线生成目标图像对应的Delaunay三角网络和检索结果图 像对应的Delaunay三角网络为例,介绍本发明具体实施方式。在本说明书后面段落中,结合图8至图11介绍的实施例中所提及的图像检索数据库为常规图像检索数据库,其内不需要预先存储样本图像的Delaunay三角网络数据,只需要存储样本图像的特征点集数据即可。每一个样本图像的特征点集数据包括特征点集中每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息。The Delaunay triangulation network corresponding to the target image and the search result map are generated online in conjunction with FIG. 8 to FIG. A specific embodiment of the present invention will be described by taking a corresponding Delaunay triangular network as an example. In the later paragraphs of the present specification, the image retrieval database mentioned in the embodiments introduced in conjunction with FIGS. 8 to 11 is a conventional image retrieval database in which Delaunay triangular network data of sample images is not stored in advance, and only sample images need to be stored. The feature point set data can be. The feature point set data of each sample image includes position information, scale, direction, and feature description information of each feature point in the feature point set in the image region.
参见图8,为本发明实施例一种图像检索结果排错方法的第三流程示意图。所述图像检索同样是基于特征提取的图像检索。对目标图像进行特征提取时,提取出来的特征数据包括每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息。图像检索结果指图像检索数据库中与目标图像满足匹配算法的一组或多组检索结果图像数据。图8所示的图像检索结果排错方法分别对每一个检索结果图像进行排错,包括如下步骤S401至S404。FIG. 8 is a third schematic flowchart of a method for troubleshooting image retrieval results according to an embodiment of the present invention. The image retrieval is also an image retrieval based on feature extraction. When feature extraction is performed on the target image, the extracted feature data includes position information, scale, direction, and feature description information of each feature point in the image region. The image retrieval result refers to one or more sets of retrieval result image data in the image retrieval database that satisfy the matching algorithm with the target image. The image retrieval result debugging method shown in FIG. 8 performs error correction for each of the search result images, respectively, and includes the following steps S401 to S404.
在S401中:根据图像检索结果,利用匹配特征点对集合的尺度和方向信息计算目标图像与每一个检索结果图像之间的姿态关系。所述匹配特征点对集合包括目标图像匹配特征点集和检索结果图像匹配特征点集。一个目标图像匹配特征点与一个检索结果图像匹配特征点构成了一个匹配特征点对。In S401: calculating a posture relationship between the target image and each of the search result images by using the matching feature point pair scale and direction information according to the image retrieval result. The matched feature point pair set includes a target image matching feature point set and a retrieval result image matching feature point set. A target image matching feature point and a search result image matching feature point constitute a matching feature point pair.
在S402中:根据计算出的姿态关系,将目标图像和检索结果图像匹配特征点集的坐标转换到同一坐标系中。具体实施时:可以是将目标图像匹配特征点集的坐标转换到检索结果图像坐标系中,也可以是将检索结果图像匹配特征点集的坐标转换到目标图像坐标系中。坐标系转换方式参考前述实施例中对步骤S201的描述。In S402: the coordinates of the target image and the search result image matching feature point set are converted into the same coordinate system according to the calculated posture relationship. In a specific implementation, the coordinates of the target image matching feature point set may be converted into the search result image coordinate system, or the coordinates of the search result image matching feature point set may be converted into the target image coordinate system. The coordinate system conversion method refers to the description of step S201 in the foregoing embodiment.
在S403中:在转换后的坐标系中分别对目标图像匹配特征点集和检索结果图像匹配特征点集进行Delaunay三角剖分,得到目标图像对应的Delaunay三角网络和检索结果图像对应的Delaunay三角网络。Delaunay三角剖分具体为:分别对目标图像匹配特征点集中的特征点和检索结果图像特征点集中的特征点,按坐标系转换后的坐标进行空间排序,并根据排序结果构建各自对应的Delaunay三角网络。所述空间排序可以为中值排序。中值排序的具体方法参考前面实施例中步骤S103中对中值排序的描述。In S403, Delaunay triangulation is performed on the target image matching feature point set and the search result image matching feature point set respectively in the converted coordinate system, and the Delaunay triangular network corresponding to the target image and the Delaunay triangular network corresponding to the search result image are obtained. . The Delaunay triangulation is specifically as follows: matching the feature points in the feature points of the target image and the feature points in the image feature points of the search result, spatially sorting according to the coordinates converted by the coordinate system, and constructing corresponding Delaunay triangles according to the sorting results. The internet. The spatial ordering can be a median ordering. The specific method of median sorting refers to the description of the median ordering in step S103 in the previous embodiment.
在S404中:将上述两个Delaunay三角网络进行比对。若两个三角网络比对结果一致(所谓结果一致,即点对集合中对应的点对在两Delaunay三角网络中处于同样的位置),则判定该图像检索结果正确;否则判定该图像检索结果错误。本发明实施例对图像匹配算法不做限定,只要基于特征提取的图像检索均可以采用本发明实施例方式进行检索结果排错。In S404: the above two Delaunay triangular networks are compared. If the results of the two triangular network alignments are consistent (the so-called results are consistent, that is, the corresponding point pairs in the point pair set are in the same position in the two Delaunay triangular networks), it is determined that the image retrieval result is correct; otherwise, the image retrieval result is determined to be incorrect. . The image matching algorithm is not limited in the embodiment of the present invention, and the image retrieval based on the feature extraction may be performed by using the method of the embodiment of the present invention.
参见图9,为本发明实施例一种图像检索结果排错方法的第四流程示意图。该排错方 法是在图8示意的实施例上进行了改进。图8示意的方法流程是分别对目标图像和检索结果图像的匹配特征点集整体做一个Delaunay三角剖分。而图9示意的方法流程是先对目标图像和检索结果图像的匹配特征点集做一个子集划分,然后分别对各匹配特征点子集进行Delaunay三角剖分,最后用用子集对所对应的Delaunay三角网络进行比对。图9排错流程具体包括如下步骤S501至S505。FIG. 9 is a fourth schematic flowchart of a method for troubleshooting an image retrieval result according to an embodiment of the present invention. The wrong side The method is improved on the embodiment illustrated in Fig. 8. The method flow illustrated in FIG. 8 is to perform a Delaunay triangulation on the entire matching feature point set of the target image and the search result image, respectively. The method flow illustrated in FIG. 9 is to first divide a subset of matching feature points of the target image and the search result image, and then perform Delaunay triangulation on each of the matched feature point subsets respectively, and finally use the subset pair corresponding to the corresponding The Delaunay triangle network is compared. The troubleshooting process of FIG. 9 specifically includes the following steps S501 to S505.
在S501中:根据图像检索结果,利用匹配特征点对集合的尺度和方向信息计算目标图像与每一个检索结果图像之间的姿态关系。In S501: calculating the attitude relationship between the target image and each of the search result images by using the matching feature point pair scale and direction information according to the image retrieval result.
在S502中:根据计算出的姿态关系,将目标图像和检索结果图像匹配特征点集的坐标转换到同一坐标系中。同样,具体实施时:可以是将目标图像匹配特征点集的坐标转换到检索结果图像坐标系中,也可以是将检索结果图像匹配特征点集的坐标转换到目标图像坐标系中。坐标系转换方式参考前述实施例中对步骤S201的描述。In S502, the coordinates of the target image and the search result image matching feature point set are converted into the same coordinate system according to the calculated posture relationship. Similarly, in a specific implementation, the coordinates of the target image matching feature point set may be converted into the search result image coordinate system, or the coordinates of the search result image matching feature point set may be converted into the target image coordinate system. The coordinate system conversion method refers to the description of step S201 in the foregoing embodiment.
在S503中:根据目标图像匹配特征点所对应的检索结果图像匹配特征点在检索结果图像中所处的位置信息,对坐标系转换后的匹配特征点对集合进行子集划分,得到若干匹配特征点对子集。每一个匹配特征点对子集包括一个目标图像匹配特征点子集和一个检索结果图像匹配特征点子集。具体子集划分方式可结合图5,参考S303步骤中子集划分描述。在S503中子集划分方式与步骤S303实质一致,只是描述时方式稍微有所不同。In S503, according to the position information of the search result image corresponding to the target image matching feature point matching the feature point in the search result image, the subset of the matched feature point pair set after the coordinate system conversion is divided, and several matching features are obtained. Point to subset. Each pair of matching feature point pairs includes a target image matching feature point subset and a retrieval result image matching feature point subset. The specific subset division manner can be combined with FIG. 5, and the sub-set division description in step S303 is referred to. The mode of the subset division in S503 is substantially the same as that of step S303, except that the manner of description is slightly different.
在S504中:在转换后的坐标系中,分别对每一个目标图像匹配特征点子集和检索结果图像匹配特征点子集进行Delaunay三角剖分,得到对应的Delaunay三角网络。本步骤中,对每一个子集进行Delaunay三角剖分,具体为:对每一个子集中的特征点按坐标转换后的坐标进行空间排序,根据排序结果为每一个子集构建一个Delaunay三角网络。所述空间排序可以为中值排序。中值排序的具体方法参考前面实施例中步骤S103中对中值排序的描述。In S504, in the converted coordinate system, each of the target image matching feature point subset and the search result image matching feature point subset are respectively subjected to Delaunay triangulation to obtain a corresponding Delaunay triangular network. In this step, Delaunay triangulation is performed for each subset, specifically: spatially sorting the coordinate points of the feature points in each subset according to the coordinate transformation, and constructing a Delaunay triangular network for each subset according to the sorting result. The spatial ordering can be a median ordering. The specific method of median sorting refers to the description of the median ordering in step S103 in the previous embodiment.
在S505中:将各匹配特征点对子集对应的两个Delaunay三角网络(一个目标图像匹配特征点子集对应的Delaunay三角网络和一个检索结果图像匹配特征点子集对应的Delaunay三角网络)进行比对。若超过预设比例的匹配特征点对子集满足两个三角网络比对结果一致,则判定该图像检索结果正确;否则判定该图像检索结果错误。本步骤中,预设比例可根据实际情况自由设置,设置范围优选在1/3至1/6之间。假设:预设比例设置为2/3。此时,若超过2/3的子集对满足两个三角网络比对结果一致,则判定图像检索结果正确。In S505: comparing two Delaunay triangulation networks corresponding to the subset of matching feature points (a Delaunay triangular network corresponding to a target image matching feature point subset and a Delaunay triangular network corresponding to a search result image matching feature point subset) . If the matching feature point pair of the preset ratio exceeds the matching result of the two triangular networks, the image retrieval result is determined to be correct; otherwise, the image retrieval result is determined to be incorrect. In this step, the preset ratio can be freely set according to the actual situation, and the setting range is preferably between 1/3 and 1/6. Assumption: The preset ratio is set to 2/3. At this time, if the subset of more than 2/3 matches the two triangular network alignment results, it is determined that the image retrieval result is correct.
参见图10,为本发明实施例一种图像检索服务器第三结构示意图。该图像检索服务 器包括图像检索数据库20和匹配模块21。所述图像检索数据库20中存储有若干样本图像的特征点集数据。每一个样本图像的特征点集数据包括特征点集中每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息。所述匹配模块21,用于接收来自图像检索客户端的检索请求,并根据设定的匹配算法将检索请求中包含的目标图像数据在图像检索数据库中进行匹配,得到一组或多组与目标图像满足匹配算法的检索结果图像数据。所述图像检索服务器还包括排错模块22。所述排错模块22包括姿态计算及坐标系转换单元221、三角网络构建单元222和判断单元223,其中:FIG. 10 is a schematic diagram of a third structure of an image retrieval server according to an embodiment of the present invention. Image retrieval service The apparatus includes an image retrieval database 20 and a matching module 21. The image retrieval database 20 stores feature point set data of a plurality of sample images. The feature point set data of each sample image includes position information, scale, direction, and feature description information of each feature point in the feature point set in the image region. The matching module 21 is configured to receive a retrieval request from the image retrieval client, and match the target image data included in the retrieval request in the image retrieval database according to the set matching algorithm to obtain one or more groups and target images. The search result image data satisfying the matching algorithm. The image retrieval server also includes a debug module 22. The troubleshooting module 22 includes a posture calculation and coordinate system conversion unit 221, a triangular network construction unit 222, and a determination unit 223, wherein:
所述姿态计算及坐标系转换单元221,用于根据图像检索结果,利用匹配特征点对集合的尺度和方向信息计算目标图像与每一个检索结果图像之间的姿态关系,并根据计算出的姿态关系,将目标图像和检索结果图像匹配特征点集的坐标转换到同一坐标系中。具体实施时:可以是将目标图像匹配特征点集的坐标转换到检索结果图像坐标系中,也可以是将检索结果图像匹配特征点集的坐标转换到目标图像坐标系中。坐标系转换方式参考前述实施例中对步骤S201的描述。The posture calculation and coordinate system conversion unit 221 is configured to calculate a posture relationship between the target image and each of the retrieval result images by using the matching feature point pair scale and direction information according to the image retrieval result, and according to the calculated posture The relationship converts the coordinates of the target image and the search result image matching feature point set into the same coordinate system. In a specific implementation, the coordinates of the target image matching feature point set may be converted into the search result image coordinate system, or the coordinates of the search result image matching feature point set may be converted into the target image coordinate system. The coordinate system conversion method refers to the description of step S201 in the foregoing embodiment.
所述三角网络构建单元222,用于在转换后的坐标系中分别对目标图像匹配特征点集和检索结果图像匹配特征点集进行Delaunay三角剖分,得到目标图像对应的Delaunay三角网络和检索结果图像对应的Delaunay三角网络。Delaunay三角剖分具体为:分别对目标图像匹配特征点集中的特征点和检索结果图像特征点集中的特征点,按坐标系转换后的坐标进行空间排序,并根据排序结果构建各自对应的Delaunay三角网络。所述空间排序可以为中值排序。中值排序的具体方法参考前面实施例中步骤S103中对中值排序的描述。The triangular network construction unit 222 is configured to perform Delaunay triangulation on the target image matching feature point set and the retrieval result image matching feature point set respectively in the converted coordinate system, to obtain the Delaunay triangulation network corresponding to the target image and the retrieval result. The image corresponds to the Delaunay triangle network. The Delaunay triangulation is specifically as follows: matching the feature points in the feature points of the target image and the feature points in the image feature points of the search result, spatially sorting according to the coordinates converted by the coordinate system, and constructing corresponding Delaunay triangles according to the sorting results. The internet. The spatial ordering can be a median ordering. The specific method of median sorting refers to the description of the median ordering in step S103 in the previous embodiment.
所述判定单元223,用于将上述两个Delaunay三角网络进行比对,若两个三角网络比对结果一致,则判定该图像检索结果正确;否则判定该图像检索结果错误。The determining unit 223 is configured to compare the two Delaunay triangulation networks. If the two triangle network comparison results are consistent, the image retrieval result is determined to be correct; otherwise, the image retrieval result is determined to be incorrect.
参见图11,为本发明实施例一种图像检索服务器第四结构示意图。该图像检索服务器结构与图10的区别在于,排错模块22结构不同。在本实施例中,所述排错模块22内增加了一个子集划分单元224,另外三角网络构建单元225及判断单元226功能也与图10中对应单元功能有所不同,具体如下:FIG. 11 is a schematic diagram of a fourth structure of an image retrieval server according to an embodiment of the present invention. The image retrieval server structure differs from that of FIG. 10 in that the debug module 22 is different in structure. In this embodiment, a subset division unit 224 is added to the debug module 22, and the functions of the triangle network construction unit 225 and the determination unit 226 are also different from the corresponding unit functions in FIG. 10, as follows:
所述姿态计算及坐标系转换单元221与图10中姿态计算与坐标系转换单元的功能完全一致,用于根据图像检索结果,利用匹配特征点对集合的尺度和方向信息,计算目标图像与每一个检索结果图像之间的姿态关系,并根据计算出的姿态关系,将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中。同样,具体实施时:可以是将目标图像匹配特征点集的坐标转换到检索结果图像坐标系中,也可以是将检索结果 图像匹配特征点集的坐标转换到目标图像坐标系中。坐标系转换方式参考前述实施例中对步骤S201的描述。The posture calculation and coordinate system conversion unit 221 is completely consistent with the functions of the posture calculation and the coordinate system conversion unit in FIG. 10, and is used for calculating the target image and each by using the scale and direction information of the pair of matching feature points according to the image retrieval result. A pose relationship between the search result images, and according to the calculated pose relationship, the coordinates of the target image matching feature point set and the search result image matching feature point set are converted into the same coordinate system. Similarly, in the specific implementation: the coordinates of the target image matching feature point set may be converted into the search result image coordinate system, or the retrieval result may be The coordinates of the image matching feature point set are converted into the target image coordinate system. The coordinate system conversion method refers to the description of step S201 in the foregoing embodiment.
所述子集划分单元224,用于根据目标图像匹配特征点所对应的检索结果图像匹配特征点在检索结果图像中所处的位置信息,对坐标系转换后的匹配特征点对集合进行子集划分,得到若干匹配特征点对子集。每一个匹配特征点对子集包括一个目标图像匹配特征点子集和一个检索结果图像匹配特征点子集。具体子集划分方式可结合图5,参考S303步骤中子集划分描述。在S503中子集划分方式与步骤S303实质一致,只是描述时方式稍微有所不同。The subset dividing unit 224 is configured to perform a subset of the matched feature point pair set after the coordinate system is converted according to the position information of the search result image corresponding to the target image matching feature point matching the feature point in the search result image. Dividing, a number of matching feature point pairs are obtained. Each pair of matching feature point pairs includes a target image matching feature point subset and a retrieval result image matching feature point subset. The specific subset division manner can be combined with FIG. 5, and the sub-set division description in step S303 is referred to. The mode of the subset division in S503 is substantially the same as that of step S303, except that the manner of description is slightly different.
所述三角网络构建单元225,用于在转换后的坐标系中,分别对每一个目标图像匹配特征点子集和检索结果图像匹配特征点子集进行Delaunay三角剖分,得到对应的Delaunay三角网络。对每一个子集进行Delaunay三角剖分,具体为:对每一个子集中的特征点按坐标转换后的坐标进行空间排序,根据排序结果为每一个子集构建一个Delaunay三角网络。所述空间排序可以为中值排序。中值排序的具体方法参考前面实施例中步骤S103中对中值排序的描述。The triangular network construction unit 225 is configured to perform Delaunay triangulation on each of the target image matching feature point subset and the search result image matching feature point subset in the converted coordinate system to obtain a corresponding Delaunay triangular network. Delaunay triangulation is performed for each subset. Specifically, the feature points in each subset are spatially sorted according to the coordinates after coordinate transformation, and a Delaunay triangulation network is constructed for each subset according to the sorting result. The spatial ordering can be a median ordering. The specific method of median sorting refers to the description of the median ordering in step S103 in the previous embodiment.
所述判定单元226,用于将各匹配特征点对子集对应的两个Delaunay三角网络进行比对,若超过预设比例的匹配特征点对子集满足两个三角网络比对结果一致,则判定该图像检索结果正确;否则判定该图像检索结果错误。预设比例可根据实际情况自由设置,设置范围优选在1/3至1/6之间。假设:预设比例设置为2/3。此时,若超过2/3的子集对满足两个三角网络比对结果一致,则判定图像检索结果正确。The determining unit 226 is configured to compare the two Delaunay triangulation networks corresponding to the subset of the matching feature points, and if the matched feature point pair subsets exceeding the preset ratio satisfy the consistency of the two triangular network comparison results, It is determined that the image retrieval result is correct; otherwise, the image retrieval result is determined to be incorrect. The preset ratio can be freely set according to the actual situation, and the setting range is preferably between 1/3 and 1/6. Assumption: The preset ratio is set to 2/3. At this time, if the subset of more than 2/3 matches the two triangular network alignment results, it is determined that the image retrieval result is correct.
本发明实施例还提供了一种图像检索方法,包括如下步骤S601至S604。An embodiment of the present invention further provides an image retrieval method, including the following steps S601 to S604.
在S601中:获取目标图像。In S601: the target image is acquired.
在S602中:对目标图像或经预处理后的目标图像进行特征提取。提取出来的特征数据包括每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息。所述经预处理后的样本图像指经统一尺寸处理、冗余区域剔除、高斯模糊处理、仿射变换中的一种或多种方式预处理后的样本图像。In S602: feature extraction is performed on the target image or the pre-processed target image. The extracted feature data includes position information, scale, direction, and feature description information of each feature point in the image area. The preprocessed sample image refers to a sample image preprocessed by one or more methods of uniform size processing, redundant area culling, Gaussian blur processing, and affine transformation.
在S603中:将提取出来的特征数据发送到图像检索服务器进行图像检索,得到一个或多个与目标图像初步匹配的检索结果图像。In S603: the extracted feature data is sent to the image retrieval server for image retrieval, and one or more search result images that are initially matched with the target image are obtained.
在S604中:对初步匹配的检索结果图像,采用本发明实施例中任一种图像检索结果排错方法对检索结果进行排错。In S604, the search result is debugged by using the image search result troubleshooting method in any of the embodiments of the present invention.
本发明实施例还提供了一种图像检索系统,包括图像检索客户端和图像检索服务器。 所述图像检索客户端安装于移动终端上。所述图像检索服务器为图6、图7、图10和图11中任一图所示意的图像检索服务器。所述图像检索客户端包括图像获取模块、特征提取模块、检索请求发送模块和检索结果接收模块。其中:所述图像获取模块,用于获取目标图像。所述特征提取模块,用于对目标图像进行特征提取,提取出来的特征数据包括每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息。所述检索请求发送模块,用于将特征提取模块提取出来的特征数据发送到图像检索服务器进行图像检索。所述检索结果接收模块,用于接收从图像检索服务器返回的检索结果信息。An embodiment of the present invention further provides an image retrieval system including an image retrieval client and an image retrieval server. The image retrieval client is installed on the mobile terminal. The image retrieval server is an image retrieval server illustrated in any of Figs. 6, 7, 10, and 11. The image retrieval client includes an image acquisition module, a feature extraction module, a retrieval request sending module, and a retrieval result receiving module. The image acquisition module is configured to acquire a target image. The feature extraction module is configured to perform feature extraction on the target image, and the extracted feature data includes location information, scale, direction, and feature description information of each feature point in the image region. The search request sending module is configured to send the feature data extracted by the feature extraction module to the image retrieval server for image retrieval. The search result receiving module is configured to receive the search result information returned from the image retrieval server.
本发明实施例中所述模块或单元,可以通过通用集成电路,例如CPU(CentralProcessing Unit,中央处理器),或通过ASIC(Application Specific Integrated Circuit,专用集成电路)来实现。The module or unit in the embodiment of the present invention may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit) or an ASIC (Application Specific Integrated Circuit).
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。 The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and those skilled in the art can understand all or part of the process of implementing the above embodiments, and according to the claims of the present invention. The equivalent change is still within the scope of the invention.

Claims (15)

  1. 一种图像检索结果排错方法,所述图像检索是基于特征提取的图像检索,对目标图像进行特征提取时,提取出来的特征数据包括每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息;图像检索结果指图像检索数据库中与目标图像满足匹配算法的一组或多组检索结果图像数据,其特征在于,采用所述图像检索结果排错方法分别对每一个检索结果图像进行排错,包括:An image retrieval result troubleshooting method, the image retrieval is an image retrieval based on feature extraction, and when the feature image is extracted from the target image, the extracted feature data includes position information, scale, and direction of each feature point in the image region. And the feature description information; the image retrieval result refers to one or more sets of search result image data in the image retrieval database that meets the matching algorithm with the target image, and is characterized in that each of the search result images is separately used by the image retrieval result debugging method. Troubleshoot, including:
    根据图像检索结果,利用匹配特征点对集合的尺度和方向信息,计算目标图像与每一个检索结果图像之间的姿态关系,所述匹配特征点对集合包括目标图像匹配特征点集和检索结果图像匹配特征点集;According to the image retrieval result, the attitude relationship between the target image and each of the search result images is calculated by using the scale and direction information of the matched feature point pair set, and the matched feature point pair set includes the target image matching feature point set and the search result image. Matching feature point sets;
    根据计算出的姿态关系,将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中,并在转换后的坐标系中分别对目标图像匹配特征点集和检索结果图像匹配特征点集进行Delaunay三角剖分,得到目标图像对应的Delaunay三角网络和检索结果图像对应的Delaunay三角网络;According to the calculated attitude relationship, the coordinates of the target image matching feature point set and the retrieval result image matching feature point set are converted into the same coordinate system, and the target image matching feature point set and the retrieval result are respectively performed in the converted coordinate system. The image matching feature point set is Delaunay triangulation, and the Delaunay triangulation network corresponding to the target image and the Delaunay triangulation network corresponding to the retrieval result image are obtained.
    将上述两个Delaunay三角网络进行比对,若两个三角网络比对结果一致,则判定该图像检索结果正确;否则判定该图像检索结果错误。The two Delaunay triangulation networks are compared. If the alignment results of the two triangular networks are consistent, the image retrieval result is determined to be correct; otherwise, the image retrieval result is determined to be incorrect.
  2. 如权利要求1所述的方法,其特征在于,所述将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中,具体为:将目标图像匹配特征点集的坐标转换到检索结果图像坐标系中,或将检索结果图像匹配特征点集的坐标转换到目标图像坐标系中。The method according to claim 1, wherein the coordinates of the target image matching feature point set and the retrieval result image matching feature point set are converted into the same coordinate system, specifically: matching the target image with the feature point set The coordinates are converted into the search result image coordinate system, or the coordinates of the search result image matching feature point set are converted into the target image coordinate system.
  3. 如权利要求2所述的方法,其特征在于,所述在转换后的坐标系中分别对目标图像匹配特征点集和检索结果图像匹配特征点集进行Delaunay三角剖分,具体为:分别对目标图像匹配特征点集和检索结果图像特征点集中的特征点,按坐标系转换后的坐标进行空间排序,并根据排序结果构建各自对应的Delaunay三角网络。The method according to claim 2, wherein said Delaunay triangulation is performed on the target image matching feature point set and the retrieval result image matching feature point set in the converted coordinate system, respectively: The image matching feature point set and the feature points in the image feature point of the retrieval result are spatially sorted according to the coordinates converted by the coordinate system, and the corresponding Delaunay triangular network is constructed according to the sorting result.
  4. 如权利要求3所述的方法,其特征在于,所述空间排序为中值排序,具体包括:The method of claim 3, wherein the spatial ordering is a median ordering, specifically comprising:
    排序轴确定步骤,将特征点集中特征点在x轴和y轴上具有最大/最小直径的轴作为排序轴;a sorting axis determining step of using an axis having a maximum/minimum diameter on the x-axis and the y-axis of the feature point set feature point as a sorting axis;
    更新步骤,在所述排序轴上,计算构成该最大/最小直径的两个特征点的中值,改变原特征点集使空间上位于中值左侧的特征点在数据集合中位于中值点左侧,并使空间上位于中值右侧的特征点在数据集合中位于中值点右侧; And an updating step of calculating a median value of two feature points constituting the maximum/minimum diameter on the sorting axis, and changing the original feature point set such that the feature point spatially located to the left of the median value is located at the median point in the data set On the left side, and make the feature points on the right side of the median value in the data set to the right of the median point;
    循环步骤,对左侧点构成的点集和右侧点构成的点集重复进行所述排序轴确定步骤和所述更新步骤,直到位于中值一侧的特征点的数量小于2时为止。In the looping step, the sorting axis determining step and the updating step are repeated for the point set formed by the left point and the point set formed by the right point until the number of feature points on the median side is less than 2.
  5. 一种图像检索结果排错方法,所述图像检索是基于特征提取的图像检索,对目标图像进行特征提取时,提取出来的特征数据包括每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息;图像检索结果指图像检索数据库中与目标图像满足匹配算法的一组或多组检索结果图像数据,其特征在于,采用所述图像检索结果排错方法分别对每一个检索结果图像进行排错,包括:An image retrieval result troubleshooting method, the image retrieval is an image retrieval based on feature extraction, and when the feature image is extracted from the target image, the extracted feature data includes position information, scale, and direction of each feature point in the image region. And the feature description information; the image retrieval result refers to one or more sets of search result image data in the image retrieval database that meets the matching algorithm with the target image, and is characterized in that each of the search result images is separately used by the image retrieval result debugging method. Troubleshoot, including:
    根据图像检索结果,利用匹配特征点对集合的尺度和方向信息,计算目标图像与每一个检索结果图像之间的姿态关系,所述匹配特征点对集合包括目标图像匹配特征点集和检索结果图像匹配特征点集;According to the image retrieval result, the attitude relationship between the target image and each of the search result images is calculated by using the scale and direction information of the matched feature point pair set, and the matched feature point pair set includes the target image matching feature point set and the search result image. Matching feature point sets;
    根据计算出的姿态关系,将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中;Converting the coordinates of the target image matching feature point set and the retrieval result image matching feature point set to the same coordinate system according to the calculated posture relationship;
    根据目标图像匹配特征点所对应的检索结果图像匹配特征点在检索结果图像中所处的位置信息,对匹配特征点对集合进行子集划分,得到若干匹配特征点对子集,每一个匹配特征点对子集包括一个目标图像匹配特征点子集和一个检索结果图像匹配特征点子集;According to the position information of the search result image corresponding to the target image matching feature point matching the feature point in the search result image, the subset of the matched feature point pair set is divided, and a plurality of matching feature point pair subsets are obtained, and each matching feature is obtained. The point pair subset includes a target image matching feature point subset and a retrieval result image matching feature point subset;
    在转换后的坐标系中,分别对每一个目标图像匹配特征点子集和检索结果图像匹配特征点子集进行Delaunay三角剖分,得到对应的Delaunay三角网络;In the transformed coordinate system, Delaunay triangulation is performed on each target image matching feature point subset and the search result image matching feature point subset respectively to obtain a corresponding Delaunay triangulation network;
    将各匹配特征点对子集对应的两个Delaunay三角网络进行比对,若超过预设比例的匹配特征点对子集满足两个三角网络比对结果一致,则判定该图像检索结果正确;否则判定该图像检索结果错误。Comparing the two Delaunay triangulation networks corresponding to the subset of matching feature points to the subset, if the matching feature point pair of the preset ratio exceeds the matching result of the two triangular networks, the image retrieval result is determined to be correct; otherwise It is determined that the image retrieval result is incorrect.
  6. 如权利要求5所述的方法,其特征在于,所述将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中,具体为:将目标图像匹配特征点集的坐标转换到检索结果图像坐标系中,或将检索结果图像匹配特征点集的坐标转换到目标图像坐标系中。The method according to claim 5, wherein the coordinates of the target image matching feature point set and the retrieval result image matching feature point set are converted into the same coordinate system, specifically: matching the target image with the feature point set The coordinates are converted into the search result image coordinate system, or the coordinates of the search result image matching feature point set are converted into the target image coordinate system.
  7. 如权利要求6所述的方法,其特征在于,对每一个子集进行Delaunay三角剖分,具体为:对每一个子集中的特征点按坐标转换后的坐标进行空间排序,根据排序结果为每一个子集构建一个Delaunay三角网络;The method according to claim 6, wherein each of the subsets is subjected to Delaunay triangulation, specifically: spatially sorting the coordinate points of the feature points in each subset according to the coordinate conversion, according to the sorting result for each Construct a Delaunay triangulation network in a subset;
    所述空间排序指中值排序,具体包括:The spatial ordering refers to median sorting, and specifically includes:
    排序轴确定步骤,将特征点集中特征点在x轴和y轴上具有最大/最小直径的轴作为 排序轴;The sorting axis determining step is to take the axis having the largest/minimum diameter on the x-axis and the y-axis of the feature point in the feature point Sorting axis
    更新步骤,在所述排序轴上,计算构成该最大/最小直径的两个特征点的中值,改变原特征点集使空间上位于中值左侧的特征点在数据集合中位于中值点左侧,并使空间上位于中值右侧的特征点在数据集合中位于中值点右侧;And an updating step of calculating a median value of two feature points constituting the maximum/minimum diameter on the sorting axis, and changing the original feature point set such that the feature point spatially located to the left of the median value is located at the median point in the data set On the left side, and make the feature points on the right side of the median value in the data set to the right of the median point;
    循环步骤,对左侧点构成的点集和右侧点构成的点集重复进行所述排序轴确定步骤和所述更新步骤,直到位于中值一侧的特征点的数量小于2时为止。In the looping step, the sorting axis determining step and the updating step are repeated for the point set formed by the left point and the point set formed by the right point until the number of feature points on the median side is less than 2.
  8. 一种图像检索方法,其特征在于,包括:An image retrieval method, comprising:
    获取目标图像;Obtain the target image;
    对目标图像或经预处理后的目标图像进行特征提取,提取出来的特征数据包括每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息;Feature extraction is performed on the target image or the pre-processed target image, and the extracted feature data includes position information, scale, direction and feature description information of each feature point in the image region;
    将提取出来的特征数据发送到图像检索服务器进行图像检索,得到一个或多个与目标图像初步匹配的检索结果图像;Sending the extracted feature data to an image retrieval server for image retrieval, to obtain one or more search result images that initially match the target image;
    对初步匹配的检索结果图像,采用权利要求1至7中任一项所述的图像检索结果排错方法进行检索结果排错。The search result image of the preliminary matching is subjected to the image search result troubleshooting method according to any one of claims 1 to 7, and the search result is debugged.
  9. 一种图像检索服务器,包括图像检索数据库和图像匹配模块,所述图像检索数据库中存储有若干样本图像的特征点集数据,每一个样本图像的特征点集数据包括特征点集中每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息;所述图像匹配模块,用于接收来自图像检索客户端的检索请求,并根据设定的匹配算法将检索请求中包含的目标图像数据在图像检索数据库中进行匹配,得到一组或多组与目标图像满足匹配算法的检索结果图像数据,其特征在于,所述图像检索服务器还包括排错模块,所述排错模块包括:An image retrieval server includes an image retrieval database and an image matching module. The image retrieval database stores feature point set data of a plurality of sample images, and the feature point set data of each sample image includes each feature point in the feature point set. Location information, scale, direction, and feature description information in the image area; the image matching module is configured to receive a retrieval request from the image retrieval client, and image the target image included in the retrieval request according to the set matching algorithm Searching the database for matching, and obtaining one or more sets of search result image data that meets the matching algorithm with the target image, wherein the image retrieval server further includes a debugging module, and the debugging module includes:
    姿态计算及坐标系转换单元,用于根据图像检索结果,利用匹配特征点对集合的尺度和方向信息,计算目标图像与每一个检索结果图像之间的姿态关系,并根据计算出的姿态关系,将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中,所述匹配特征点对集合包括目标图像匹配特征点集和检索结果图像匹配特征点集;The attitude calculation and coordinate system conversion unit is configured to calculate the attitude relationship between the target image and each of the retrieval result images according to the image retrieval result, and use the matching feature point pair scale and direction information, and according to the calculated posture relationship, Converting the coordinates of the target image matching feature point set and the retrieval result image matching feature point set into the same coordinate system, the matching feature point pair set including the target image matching feature point set and the retrieval result image matching feature point set;
    三角网络构建单元,用于在转换后的坐标系中分别对目标图像匹配特征点集和检索结果图像匹配特征点集进行Delaunay三角剖分,得到目标图像对应的Delaunay三角网络和检索结果图像对应的Delaunay三角网络;A triangular network construction unit is configured to perform Delaunay triangulation on the target image matching feature point set and the search result image matching feature point set respectively in the converted coordinate system, and obtain a Delaunay triangular network corresponding to the target image and the search result image corresponding to the image. Delaunay triangle network;
    判定单元,用于将上述两个Delaunay三角网络进行比对,若两个三角网络比对结果一致,则判定该图像检索结果正确;否则判定该图像检索结果错误。 The determining unit is configured to compare the two Delaunay triangular networks, and if the two triangular network comparison results are consistent, the image retrieval result is determined to be correct; otherwise, the image retrieval result is determined to be incorrect.
  10. 如权利要求9所述的图像检索服务器,其特征在于,所述将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中,具体为:将目标图像匹配特征点集的坐标转换到检索结果图像坐标系中,或将检索结果图像匹配特征点集的坐标转换到目标图像坐标系中。The image retrieval server according to claim 9, wherein the coordinates of the target image matching feature point set and the retrieval result image matching feature point set are converted into the same coordinate system, specifically: matching the target image with the feature point The set coordinates are converted into the search result image coordinate system, or the coordinates of the search result image matching feature point set are converted into the target image coordinate system.
  11. 如权利要求10所述的图像检索服务器,其特征在于,所述在转换后的坐标系中分别对目标图像匹配特征点集和检索结果图像匹配特征点集进行Delaunay三角剖,具体为:分别对目标图像匹配特征点集和检索结果图像特征点集中的特征点,按坐标系转换后的坐标进行空间排序,并根据排序结果构建各自对应的Delaunay三角网络。The image retrieval server according to claim 10, wherein said Delaunay triangulation is performed on the target image matching feature point set and the search result image matching feature point set in the converted coordinate system, specifically: respectively The target image matching feature point set and the feature points in the image point set of the search result are spatially sorted according to the coordinates converted by the coordinate system, and the corresponding Delaunay triangle networks are constructed according to the sorting result.
  12. 一种图像检索服务器,包括图像检索数据库和图像匹配模块,所述图像检索数据库中存储有若干样本图像的特征点集数据,每一个样本图像的特征点集数据包括特征点集中每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息;所述图像匹配模块,用于接收来自图像检索客户端的检索请求,并根据设定的匹配算法将检索请求中包含的目标图像数据在图像检索数据库中进行匹配,得到一组或多组与目标图像满足匹配算法的检索结果图像数据,其特征在于,所述图像检索服务器还包括排错模块,所述排错模块包括:An image retrieval server includes an image retrieval database and an image matching module. The image retrieval database stores feature point set data of a plurality of sample images, and the feature point set data of each sample image includes each feature point in the feature point set. Location information, scale, direction, and feature description information in the image area; the image matching module is configured to receive a retrieval request from the image retrieval client, and image the target image included in the retrieval request according to the set matching algorithm Searching the database for matching, and obtaining one or more sets of search result image data that meets the matching algorithm with the target image, wherein the image retrieval server further includes a debugging module, and the debugging module includes:
    姿态计算及坐标系转换单元,用于根据图像检索结果,利用匹配特征点对集合的尺度和方向信息,计算目标图像与每一个检索结果图像之间的姿态关系,并根据计算出的姿态关系,将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中,所述匹配特征点对集合包括目标图像匹配特征点集和检索结果图像匹配特征点集;The attitude calculation and coordinate system conversion unit is configured to calculate the attitude relationship between the target image and each of the retrieval result images according to the image retrieval result, and use the matching feature point pair scale and direction information, and according to the calculated posture relationship, Converting the coordinates of the target image matching feature point set and the retrieval result image matching feature point set into the same coordinate system, the matching feature point pair set including the target image matching feature point set and the retrieval result image matching feature point set;
    子集划分单元,根据目标图像匹配特征点所对应的检索结果图像匹配特征点在检索结果图像中所处的位置信息,对匹配特征点对集合进行子集划分,得到若干匹配特征点对子集,每一个匹配特征点对子集包括一个目标图像匹配特征点子集和一个检索结果图像匹配特征点子集;The sub-division unit obtains a subset of the matched feature point pair set according to the position information of the search result image corresponding to the target image matching feature point matching the feature point in the search result image, and obtains a plurality of matching feature point pair subsets. Each of the matching feature point pair subsets includes a target image matching feature point subset and a retrieval result image matching feature point subset;
    三角网络构建单元,用于在转换后的坐标系中,分别对每一个目标图像匹配特征点子集和检索结果图像匹配特征点子集进行Delaunay三角剖分,得到对应的Delaunay三角网络;A triangular network building unit is configured to perform Delaunay triangulation on each target image matching feature point subset and the search result image matching feature point subset in the converted coordinate system to obtain a corresponding Delaunay triangular network;
    判定单元,将各匹配特征点对子集对应的两个Delaunay三角网络进行比对,若超过预设比例的匹配特征点对子集满足两个三角网络比对结果一致,则判定该图像检索结果正确;否则判定该图像检索结果错误。The determining unit compares the two Delaunay triangulation networks corresponding to the subset of the matching feature points, and if the matching feature point pair of the preset ratio exceeds the matching result of the two triangular networks, the image retrieval result is determined. Correct; otherwise the image retrieval result is determined to be incorrect.
  13. 如权利要求12所述的图像检索服务器,其特征在于,所述将目标图像匹配特征点集和检索结果图像匹配特征点集的坐标转换到同一坐标系中,具体为:将目标图像匹配特 征点集的坐标转换到检索结果图像坐标系中,或将检索结果图像匹配特征点集的坐标转换到目标图像坐标系中。The image retrieval server according to claim 12, wherein the coordinates of the target image matching feature point set and the retrieval result image matching feature point set are converted into the same coordinate system, specifically: matching the target image The coordinates of the point set are converted into the search result image coordinate system, or the coordinates of the search result image matching feature point set are converted into the target image coordinate system.
  14. 如权利要求13所述的图像检索服务器,其特征在于,对每一个子集进行Delaunay三角剖分,具体为:对每一个子集中的特征点按坐标转换后的坐标进行空间排序,根据排序结果为每一个子集构建一个Delaunay三角网络。The image retrieval server according to claim 13, wherein the Delaunay triangulation is performed for each subset, specifically: spatially sorting the coordinate points of the feature points in each subset according to the coordinate conversion, according to the sorting result Construct a Delaunay triangle network for each subset.
  15. 一种图像检索系统,包括图像检索客户端和图像检索服务器,其特征在于:An image retrieval system comprising an image retrieval client and an image retrieval server, characterized in that:
    所述图像检索服务器为权利要求9至14任一项所述的图像检索服务器;The image retrieval server is the image retrieval server according to any one of claims 9 to 14;
    所述图像检索客户端包括图像获取模块、特征提取模块、检索请求发送模块和检索结果接收模块,其中:The image retrieval client includes an image acquisition module, a feature extraction module, a retrieval request sending module, and a retrieval result receiving module, wherein:
    所述图像获取模块,用于获取目标图像;The image acquisition module is configured to acquire a target image;
    所述特征提取模块,用于对目标图像进行特征提取,提取出来的特征数据包括每个特征点在图像区域内的位置信息、尺度、方向和特征描述信息;The feature extraction module is configured to perform feature extraction on the target image, and the extracted feature data includes location information, scale, direction, and feature description information of each feature point in the image region;
    所述检索请求发送模块,用于将特征提取模块提取出来的特征数据发送到图像检索服务器进行图像检索;The search request sending module is configured to send the feature data extracted by the feature extraction module to an image retrieval server for image retrieval;
    所述检索结果接收模块,用于接收从图像检索服务器返回的检索结果信息。 The search result receiving module is configured to receive the search result information returned from the image retrieval server.
PCT/CN2016/110356 2015-12-22 2016-12-16 Image retrieval server and system, related retrieval and troubleshooting method WO2017107866A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510974626.7 2015-12-22
CN201510974626.7A CN106909552A (en) 2015-12-22 2015-12-22 Image retrieval server, system, coordinate indexing and misarrangement method

Publications (1)

Publication Number Publication Date
WO2017107866A1 true WO2017107866A1 (en) 2017-06-29

Family

ID=59089161

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/110356 WO2017107866A1 (en) 2015-12-22 2016-12-16 Image retrieval server and system, related retrieval and troubleshooting method

Country Status (2)

Country Link
CN (1) CN106909552A (en)
WO (1) WO2017107866A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110992407A (en) * 2019-11-07 2020-04-10 武汉多谱多勒科技有限公司 Infrared and visible light image matching method

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG11202004469WA (en) * 2017-11-15 2020-06-29 Angel Playing Cards Co Ltd Recognition system
CN109063197B (en) * 2018-09-06 2021-07-02 徐庆 Image retrieval method, image retrieval device, computer equipment and storage medium
CN110766728B (en) * 2019-10-16 2023-09-29 南京航空航天大学 Combined image feature accurate matching method based on deep learning

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556481A (en) * 2003-12-30 2004-12-22 上海交通大学 Map browsing apparatus realizing method faced large scale space informations
CN101719140A (en) * 2009-12-23 2010-06-02 中山大学 Figure retrieving method
CN101727452A (en) * 2008-10-22 2010-06-09 富士通株式会社 Image processing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184186A (en) * 2011-04-12 2011-09-14 宋金龙 Multi-feature adaptive fusion-based image retrieval method
CN102930251B (en) * 2012-10-26 2016-09-21 北京炎黄拍卖有限公司 Bidimensional collectibles data acquisition and the apparatus and method of examination
CN104392434A (en) * 2014-11-05 2015-03-04 浙江工业大学 Triangle constraint-based image matching diffusion method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556481A (en) * 2003-12-30 2004-12-22 上海交通大学 Map browsing apparatus realizing method faced large scale space informations
CN101727452A (en) * 2008-10-22 2010-06-09 富士通株式会社 Image processing method and device
CN101719140A (en) * 2009-12-23 2010-06-02 中山大学 Figure retrieving method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YAN ET AL: "Image Matching Based on SURF Feature and Delaunay Triangular Meshes", ACTA AUTOMATICA SINICA, vol. 40, no. 6, 30 June 2014 (2014-06-30), pages 1216 - 1222, ISSN: 0254-4156 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110992407A (en) * 2019-11-07 2020-04-10 武汉多谱多勒科技有限公司 Infrared and visible light image matching method
CN110992407B (en) * 2019-11-07 2023-10-27 武汉多谱多勒科技有限公司 Infrared and visible light image matching method

Also Published As

Publication number Publication date
CN106909552A (en) 2017-06-30

Similar Documents

Publication Publication Date Title
WO2017107865A1 (en) Image retrieval system, server, database, and related method
US10269147B2 (en) Real-time camera position estimation with drift mitigation in incremental structure from motion
CN109493375B (en) Data matching and merging method and device for three-dimensional point cloud and readable medium
US20180315232A1 (en) Real-time incremental 3d reconstruction of sensor data
WO2017107866A1 (en) Image retrieval server and system, related retrieval and troubleshooting method
US20180315222A1 (en) Real-time image undistortion for incremental 3d reconstruction
CN109741374B (en) Point cloud registration rotation transformation method, point cloud registration equipment and readable storage medium
Melo et al. Unsupervised intrinsic calibration from a single frame using a" plumb-line" approach
WO2021052283A1 (en) Method for processing three-dimensional point cloud data and computing device
CN109754459B (en) Method and system for constructing human body three-dimensional model
CN108550166B (en) Spatial target image matching method
CN105654483A (en) Three-dimensional point cloud full-automatic registration method
US20200005078A1 (en) Content aware forensic detection of image manipulations
CN114332291A (en) Oblique photography model building outer contour rule extraction method
CN114202632A (en) Grid linear structure recovery method and device, electronic equipment and storage medium
JP6558803B2 (en) Geometric verification apparatus and program
CN112270748B (en) Three-dimensional reconstruction method and device based on image
CN113052880A (en) SFM sparse reconstruction method, system and application
CN114998433A (en) Pose calculation method and device, storage medium and electronic equipment
CN113034673B (en) 3D point cloud modeling system and computer readable storage medium
CN117197410B (en) Virtual splicing method, device and equipment for steel structure and storage medium
CN114494429B (en) Large-scale uncontrolled three-dimensional adjustment net geometric positioning gross error detection and processing method
US20230401670A1 (en) Multi-scale autoencoder generation method, electronic device and readable storage medium
CN113344996B (en) Vertex registration method and device based on graph matching and storage medium
CN115994942B (en) Symmetrical extraction method, device, equipment and storage medium of three-dimensional model

Legal Events

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

Ref document number: 16877677

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16877677

Country of ref document: EP

Kind code of ref document: A1