Feature point extraction and matching method, network, device and computer storage medium

By binary processing and multi-scale fusion of images, combined with the use of hash tables, the problem of slow storage matching speed and low accuracy in feature point extraction and matching is solved, and the speed and accuracy of feature point extraction and matching are achieved. promote.

CN112446431BActive Publication Date: 2024-08-27PENG CHENG LAB +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011368267.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-27
Publication Date
2024-08-27
Estimated Expiration
2040-11-27

AI Technical Summary

Technical Problem

In the existing technology, feature point extraction and matching methods have problems such as slow storage and matching speed and low accuracy. Moreover, the feature point extraction and matching speed of deep learning methods is slow and difficult to meet engineering needs.

Method used

By binarizing the image input features and their weight parameters, and using the convolutional network to obtain feature images with multiple levels of successively lower resolutions for multi-scale fusion, combined with hash operations to establish a binary hash table, Feature point location and matching.

Benefits of technology

It significantly improves the speed and accuracy of feature point extraction and matching, solves the problems of slow storage and matching speed and low accuracy in traditional methods, and achieves nearly two orders of magnitude improvement in computing speed and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112446431B
    Figure CN112446431B
Patent Text Reader

Abstract

The present invention discloses a method for extracting and matching feature points, which includes: binarizing the input features of an image and their weight parameters, and calculating the binarized data to extract feature points; obtaining multiple levels of feature images of the input image with successively lower resolutions through a convolutional network, and multi-scale fusion of the multiple levels of feature images with successively lower resolutions to locate feature points; performing hash operations on the data of feature points adjacent to each other in space after being located, and establishing a binary hash table; when matching, calculating the matching degree between the query data and the data in the hash table, and returning the data with the highest matching degree in the hash table. The method solves the problems of slow storage matching speed and low precision of the feature point extraction method. The feature point extraction, matching speed and feature point positioning accuracy are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to image processing, and in particular to a feature point extraction and matching method. Background Art

[0002] In computer vision, the extraction and matching of feature points play a very important role and are also basic research work. For example, wide baseline stereo, target recognition, fine-grained classification, multi-view reconstruction, image stitching, three-dimensional reconstruction, and reconstruction based on motion. The feature points of an image are composed of two parts, namely key points and descriptors. Among them, the key point refers to the position of the feature point in the image, including two aspects such as direction and scale information; the descriptor is usually a vector, which describes the information of the pixels around the key point according to the design method. The main difficulties in feature point extraction and matching in the algorithm are generally extraction speed, matching accuracy and robustness. In engineering applications, extraction, matching and storage speed, matching accuracy and robustness are more important. If the extraction speed or matching storage speed cannot meet the engineering requirements, the information of the current feature point will be delayed, and the returned visual information will lag, which will lead to the inability to make real-time judgments on the visual information; similarly, if the matching accuracy is not high enough, the information of the current feature point will have errors, and this error will also be transmitted to the returned visual information, resulting in the inability to make accurate judgments on the visual information; in addition, the robustness of feature point extraction and matching is poor, resulting in the extraction and matching effects sometimes being better and sometimes being worse, and the corresponding visual information cannot be correctly judged. It can be seen that feature point extraction and matching occupies a very important position in the field of computer vision.

[0003] There are two main methods for feature point extraction and matching: manual feature point extraction and matching and feature point extraction and matching based on machine learning. Manual feature point extraction and matching was developed first, from the initial SIFT (Scale-invariant feature transform) to the current SURF (Speeded Up Robust Features) and ORB (Oriented FAST (Features from Accelerated Segments Test) and Rotated BRIEF (Binary Robust Independent Elementary Features), an improved feature extraction algorithm based on FAST feature points and BRIEF feature descriptors) and other methods. The SIFT algorithm searches for potential key points through Gaussian differential functions in different scale spaces. At each candidate position, a finely fitted model is used to determine the position and scale, and the direction of the key point is calculated based on the local gradient direction of the image. However, the SIFT method is slow and does not fully extract edge information. The SURF method is an improved version of SIFT. It uses Haar wavelet to approximate the gradient operation in the SIFT method and uses integral graph technology for fast calculation. The speed is 3-7 times that of SIFT. In most cases, its performance is comparable to that of SIFT, so it has a wide range of applications, especially in situations where the running time is high. The ORB method is a supplement to SIFT and SURF. It is improved and optimized based on the detection method of FAST feature points and the BRIEF feature descriptor. It has rotation invariance and noise resistance. At the same time, the calculation speed is two orders of magnitude faster than SIFT, and it is as superior to SIFT in all aspects. In recent years, with the development of machine learning, especially deep learning, the research hotspots of feature point extraction and matching by domestic and foreign scholars have gradually shifted from traditional manual feature point extraction and matching to feature point extraction and matching based on machine learning. Among them, the application of twin neural networks is more in-depth. Although the accuracy and robustness have been experimentally proven to be better than traditional manual methods, the matching and storage speed and calculation extraction speed have always been the defects of deep learning methods, which directly affect their application in engineering. Summary of the invention

[0004] In view of this, a feature point extraction and matching method is provided to solve the problems of traditional manual feature point extraction methods, such as slow storage and matching speed, low accuracy, and susceptibility to the influence of different scenes such as night and day, and the problem that the feature point extraction method of the current deep learning method has high accuracy but poor extraction and matching speed.

[0005] The embodiment of the present application provides a method for extracting and matching feature points, characterized in that the method includes:

[0006] Binarize the image input features and their weight parameters, and calculate the binarized data to extract feature points;

[0007] Acquire multiple levels of feature images with successively lower resolutions of the input image through a convolutional network, and perform multi-scale fusion on the multiple levels of feature images with successively lower resolutions to locate feature points;

[0008] Perform hash operation on the data of adjacent feature points in space after positioning to establish a binary hash table;

[0009] When matching, the matching degree between the query data and the data in the hash table is calculated, and the data with the highest matching degree in the hash table is returned.

[0010] In one embodiment, the binarization of the image input features includes:

[0011] Based on the matrix of the image input features, calculating the mean of the absolute values ​​in the channel dimension;

[0012] Performing a convolution operation on the mean value and a two-dimensional convolution kernel to obtain a convolution result;

[0013] The convolution result is converted into a binary matrix I using a sign function.

[0014] In one embodiment, binarizing the weight parameter includes:

[0015] The weight parameters are normalized;

[0016] The weight parameters are converted into a binary matrix W using a sign function.

[0017] In one embodiment, the step of calculating the binarized data to extract feature points includes:

[0018] A dot multiplication operation is performed on the binary matrix W, the binary matrix I, the convolution result and the scaling factor to extract feature points; wherein the scaling factor is obtained during the normalization process of the weight parameter.

[0019] In one embodiment, the multi-scale fusion of the feature images at multiple levels with successively lower resolutions to locate the feature points includes:

[0020] Connect feature images of the same level and resolution in series;

[0021] The feature images at different levels are connected in parallel in the order of decreasing resolution; the feature images at the same level have the same resolution;

[0022] The position information of feature images at different levels is repeatedly exchanged to obtain multi-scale fusion information;

[0023] The feature points are located based on the multi-scale fusion information.

[0024] In one embodiment, performing a hash operation on the data of the feature points adjacent to each other in space after positioning to establish a binary hash table includes:

[0025] Create an index for the image data to be matched and construct an index number;

[0026] The data of adjacent feature points in the positioned space are binarized and mapped to a table corresponding to the index number through a hash algorithm.

[0027] In one embodiment, calculating the matching degree between the query data and the data in the hash table and returning the data in the hash table with the highest matching degree includes:

[0028] Obtain the corresponding index number from the query data through a hash algorithm, and obtain the data corresponding to the index number in the table;

[0029] Calculating the similarity or distance between the query data and the corresponding data in the obtained table;

[0030] Return the data with the smallest similarity or the smallest distance.

[0031] In order to achieve the above object, a feature point extraction and matching network is also provided, characterized in that the network is a twin network framework structure, including:

[0032] A first network framework and a second network framework; wherein the first network framework and the second network framework are the same;

[0033] The first network framework or the second network framework is configured as follows:

[0034] Binarize the image input features and their weight parameters, and calculate the binarized data to extract feature points;

[0035] Acquire multiple levels of feature images with successively lower resolutions of the input image through a convolutional network, and perform multi-scale fusion on the multiple levels of feature images with successively lower resolutions to locate feature points;

[0036] Perform hash operation on the data of adjacent feature points in space after positioning to establish a hash table;

[0037] When matching, the matching degree between the query data and the data in the hash table is calculated, and the data with the highest matching degree in the hash table is returned;

[0038] Among them, feature point matching is performed using feature point information extracted by the first network framework and feature point information extracted by the second network framework.

[0039] To achieve the above-mentioned purpose, a computer-readable storage medium is further provided, on which a feature point extraction and matching method program is stored. When the feature point extraction and matching method program is executed by a processor, the steps of any of the above-mentioned methods are implemented.

[0040] To achieve the above-mentioned purpose, a device is also provided, including a memory, a processor, and a program of a feature point extraction and matching method stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned methods when executing the program of the feature point extraction and matching method.

[0041] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: binarizing the image input features and their weight parameters, and calculating the binarized data to extract feature points; binarizing the image input features and their weight parameters, so that the calculation speed of feature point extraction is increased by nearly two orders of magnitude. The convolutional network is used to obtain multiple levels of feature images with successively lower resolutions of the input image, and the multiple levels of feature images with successively lower resolutions are multi-scale fused to locate the feature points; in each update calculation, the high-level information and the low-level information are multi-scale fused to ensure the accuracy of feature point positioning. The data of the adjacent feature points in space after positioning are hashed to establish a binary hash table; the binary hash table is constructed to provide data support for subsequent feature point matching. When matching, the matching degree between the query data and the data in the hash table is calculated, and the data with the highest matching degree in the hash table is returned. In terms of matching, the traditional floating-point matching method reduces the storage and matching speed. Through the hash matching method, the data is mapped to a hash table, where data retrieval and storage are both in binary, which greatly speeds up the storage and matching speed by nearly an order of magnitude. It solves the problems of slow storage and matching speed and low accuracy of feature point extraction methods. It greatly improves the feature point extraction, matching speed and feature point positioning accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 Schematic diagram of the hardware architecture of the feature point extraction and matching method involved in the embodiments of the present application;

[0043] Figure 2This is a flow chart of the first embodiment of the feature point extraction and matching method of the present application;

[0044] Figure 3 This is a schematic diagram of the specific flow of step S110 in the first embodiment of the feature point extraction and matching method of the present application;

[0045] Figure 4 A schematic diagram of the process of binarizing image input features in the feature point extraction and matching method of the present application;

[0046] Figure 5 This is a schematic diagram of the specific flow of step S110 in the first embodiment of the feature point extraction and matching method of the present application;

[0047] Figure 6 This is a schematic diagram of the process of binarizing weight parameters in the feature point extraction and matching method of this application;

[0048] Figure 7 This is a schematic diagram of the specific flow of step S110 in the first embodiment of the feature point extraction and matching method of the present application;

[0049] Figure 8 This is a flow chart of the dot multiplication of the binarization results in the feature point extraction and matching method of this application;

[0050] Fig. 9 This is a schematic diagram of the specific flow of step S120 in the first embodiment of the feature point extraction and matching method of the present application;

[0051] Fig.10 This is a schematic diagram of a feature point positioning network framework in the feature point extraction and matching method of this application;

[0052] Fig.11 This is a schematic diagram of the specific flow of step S130 in the first embodiment of the feature point extraction and matching method of the present application;

[0053] Fig.12 A schematic diagram of constructing a binary hash table in the feature point extraction and matching method of this application;

[0054] Fig.13 This is a schematic diagram of the specific flow of step S140 in the first embodiment of the feature point extraction and matching method of the present application;

[0055] Fig.14 The feature point extraction comparison results of the feature point extraction and matching method of this application;

[0056] Fig.15 The feature point matching result of the feature point extraction and matching method of this application;

[0057] Fig.16 This is a schematic diagram of the feature point extraction and matching network of this application. DETAILED DESCRIPTION

[0058] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0059] The main solution of the embodiment of the present invention is: binarize the image input features and their weight parameters, and calculate the binarized data to extract feature points; obtain multiple levels of feature images with successively lower resolutions of the input image through a convolutional network, and perform multi-scale fusion of the multiple levels of feature images with successively lower resolutions to locate the feature points; perform hash operations on the data of adjacent feature points in space after locating, and establish a binary hash table; when matching, calculate the matching degree between the query data and the data in the hash table, and return the data with the highest matching degree in the hash table. The problem of slow storage matching speed and low accuracy of the feature point extraction method is solved. The feature point extraction, matching speed and feature point positioning accuracy are greatly improved.

[0060] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0061] The present application relates to a device 010 including: Figure 1 Shown: at least one processor 012 and a memory 011.

[0062] Processor 012 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in processor 012 or instructions in software form. The above processor 012 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 011, and the processor 012 reads the information in the memory 011 and completes the steps of the above method in combination with its hardware.

[0063] It can be understood that the memory 011 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 011 of the system and method described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

[0064] Reference Figure 2 , Figure 2 This is the first embodiment of the feature point extraction and matching method of the present application, the method comprises the following steps:

[0065] Step S110: binarizing the image input features and their weight parameters, and calculating the binarized data to extract feature points.

[0066] A feature is a corresponding (essential) characteristic or property that distinguishes a certain class of objects from other classes of objects, or a collection of these characteristics and properties. A feature is data that can be extracted through measurement or processing.

[0067] For images, each image has its own characteristics that can be distinguished from other types of images. Some are natural characteristics that can be intuitively felt, such as brightness, edges, textures, and colors; some need to be transformed or processed to obtain, such as moments, histograms, and principal components. Among them, multiple or multiple characteristics of a certain type of object are combined together to form a feature vector to represent the object. If there is only a single numerical feature, the feature vector is a one-dimensional vector. If it is a combination of n characteristics, it is an n-dimensional feature vector. This type of feature vector is often used as an image input feature.

[0068] The weight parameters are calculated with the image input features to obtain the image feature extraction results. The weight parameters can be learned and updated during the training process to obtain more accurate image feature extraction results.

[0069] For example, an image includes a target object, background and noise. To directly extract the target object from a multi-valued digital image, a common method is to set a threshold T and use T to divide the image data into two parts: a group of pixels greater than T and a group of pixels less than T. This is called image binarization.

[0070] Step S120: acquiring feature images of multiple levels with successively lower resolutions of the input image through a convolutional network, and performing multi-scale fusion on the feature images of multiple levels with successively lower resolutions to locate feature points.

[0071] Convolutional networks, also known as convolutional neural networks (CNN), are a type of feed-forward neural networks that include convolution calculations and have a deep structure, which are used to extract features from input images.

[0072] The multiple levels can be multiple levels of information obtained according to the different numbers of convolutions of the convolutional network, such as high-level position information and low-level position information or deep-level information and shallow-level information.

[0073] Multi-scale fusion can be a process of fusing multiple features. The process of feature fusion can be roughly divided into the following three categories: one is a simple feature combination, that is, all feature vectors are combined in a serial or parallel manner to form a new feature vector; the second is feature selection, that is, from the newly combined feature vector, one data with the best classification is selected from each corresponding dimension of data, and finally the selected data is combined into a new feature; the last is feature transformation, that is, all feature vectors are put together, and then a certain mathematical method is used to transform a new feature expression. The feature fusion method in the present invention can be one of the above or an extension thereof.

[0074] Feature point localization is the basis for solving many higher-level vision problems such as identity recognition, image classification, pose estimation, etc.

[0075] Step S130: performing a hash operation on the data of the feature points that are adjacent in space after positioning, and establishing a binary hash table.

[0076] A hash table is a data structure that is accessed directly based on a key value. In other words, it accesses records by mapping the key value to a location in the table to speed up the search. This mapping function is called a hash function, and the array that stores the records is called a hash table.

[0077] Given a table M, there exists a function f(key). For any given keyword value key, if the address of the record containing the keyword in the table can be obtained after substituting it into the function, then the table M is called a hash table and the function f(key) is called a hash function.

[0078] Step S140: when matching, the matching degree between the query data and the data in the hash table is calculated, and the data with the highest matching degree in the hash table is returned.

[0079] Calculate the matching degree between the query data and the data in the hash table, where the matching degree can be the similarity between the query data and the data in the hash table, or the distance between the query data and the data in the hash table. The matching degree can be calculated by Euclidean distance, Manhattan distance, Minkowski distance, cosine similarity, etc., and the present invention is not limited to the above matching degree calculation methods.

[0080] The beneficial effects in the above embodiments are as follows: the image input features and their weight parameters are binarized, and the binarized data is calculated to extract feature points; the image input features and their weight parameters are binarized, so that the calculation speed of feature point extraction is increased by nearly two orders of magnitude. The convolutional network is used to obtain multiple levels of feature images with successively lower resolutions of the input image, and the multiple levels of feature images with successively lower resolutions are multi-scale fused to locate the feature points; in each update calculation, the high-level information and the low-level information are multi-scale fused to ensure the accuracy of feature point positioning. The data of the feature points adjacent in space after positioning are hashed to establish a binary hash table; the binary hash table is constructed to provide data support for subsequent feature point matching. When matching, the matching degree between the query data and the data in the hash table is calculated, and the data with the highest matching degree in the hash table is returned. In terms of matching, the traditional floating-point method matching reduces the storage and matching speed. Through the hash matching method, the data is mapped to a hash table, in which the data retrieval and storage are both binary, which greatly speeds up the storage and matching speed, and the speed is increased by nearly one order of magnitude. The problem of slow storage matching speed and low precision of feature point extraction method is solved, which greatly improves the feature point extraction, matching speed and feature point positioning accuracy.

[0081] Reference Figure 3 , Figure 3 The specific steps of step S110 in the first embodiment of the feature point extraction and matching method of the present application, wherein the image input features are binarized, include:

[0082] Step S111: Based on the matrix of the image input features, the mean of the absolute values ​​is calculated in the channel dimension.

[0083] The channel dimension determines how many values ​​a pixel consists of. For example, a single channel is a pixel consisting of 1 value; a dual channel is a pixel consisting of 2 values, and an n-dimensional channel is a pixel consisting of n values.

[0084] Step S112: performing a convolution operation on the mean value and a two-dimensional convolution kernel to obtain a convolution result.

[0085] The two-dimensional convolution kernel, also known as the 2D convolution kernel, can extract the spatial features of a single static image (i.e., the two dimensions (height and width)). When combined with a neural network, it has achieved good results in image classification, detection and other tasks.

[0086] Step S113: converting the convolution result into a binary matrix I using a sign function.

[0087] The symbolic function can isolate the sign of a function.

[0088] For example, in mathematics and computer operations, its function is to take the sign (positive or negative) of a number:

[0089] When x>0, sign(x)=1; when x=0, sign(x)=0; when x<0, sign(x)=-1.

[0090] The sign function used in the present invention is a relaxed function Htanh(x)=clip(x,-1,1), so that the convolution result is converted into a binary matrix containing 1 and -1 through the relaxed function.

[0091] A binary matrix can be a logical matrix containing two values.

[0092] In this embodiment, if Figure 4 The input of the convolutional layer shown is the real value tensor I. The mean A of the absolute value of the channel dimension is calculated, and then the mean A is convolved with the 2D convolution kernel k to obtain K=A*k, and then the binary matrix of the sign(I) function is obtained.

[0093] The beneficial effect of the above embodiment is that the calculation and extraction speed is increased by nearly two orders of magnitude by binarizing the image input features.

[0094] Reference Figure 5 , Figure 5 Another specific step of step S110 in the first embodiment of the feature point extraction and matching method of the present application, wherein the weight parameter is binarized, comprises:

[0095] Step S111 ′: normalizing the weight parameters.

[0096] The goal of normalization is to convert numbers into decimals between (0, 1). It is mainly proposed for the convenience of data processing. Mapping data to the range of 0 to 1 for processing is more convenient and faster. Normalization can improve the convergence speed of the model and the accuracy of the model. Therefore, in order to ensure the reliability of the results, the weight parameters need to be normalized.

[0097] Step S112 ′: converting the weight parameters into a binary matrix W using a sign function.

[0098] The weight parameter may be a matrix, and the sign function processes the weight parameter matrix and converts it into a binary matrix, wherein the binary matrix has been explained in one of the embodiments and will not be described again here.

[0099] In this embodiment, if Figure 6As shown, the weight parameter (W) is normalized to obtain the scaling factor α, which is then converted into a binary matrix B of the sign(W) function. During back propagation, the relaxed function of the sign function Htanh(x)=clip(x,-1,1) is used to binary the weight w=αB for forward propagation.

[0100] The above embodiment has the beneficial effect of increasing the speed of calculation by normalizing the weight parameters, and further increasing the speed of feature point extraction by binarizing the normalized results.

[0101] Reference Figure 7 , Figure 7 This is another specific step of step S110 in the first embodiment of the feature point extraction and matching method of the present application, wherein the calculation of the binarized data to extract feature points includes:

[0102] Step S111": perform a dot multiplication operation on the binary matrix W, the binary matrix I, the convolution result and the scaling factor to extract feature points; wherein the scaling factor is obtained during the normalization process of the weight parameter.

[0103] In this embodiment, if Figure 8 As shown, the convolution result of the input I and the weight W is approximately obtained by performing a point multiplication operation on the binary matrix W, the binary matrix I, the convolution result and the scaling factor to extract feature points.

[0104] The beneficial effects in the above embodiment are as follows: the convolution of the image input feature I and the weight parameter is approximated as the binary matrix W, the binary matrix I, the convolution result and the scaling factor are subjected to a dot multiplication operation to increase the speed of feature point extraction, thereby increasing the speed of feature point calculation and extraction by nearly two orders of magnitude.

[0105] Reference Fig. 9 , Fig. 9 The specific steps of step S120 in the first embodiment of the feature point extraction and matching method of the present application, wherein the feature images of the multiple levels with successively lower resolutions are subjected to multi-scale fusion to locate the feature points, include:

[0106] Step S121: connect feature images of the same level and resolution in series.

[0107] Feature images of the same level and resolution are serially connected through convolution operations to extract location information.

[0108] Step S122: connecting the feature images at different levels in parallel in the order of decreasing resolution; wherein the feature images at the same level have the same resolution.

[0109] Feature images of different resolutions are divided into different levels and connected in parallel in descending order to provide architectural support for subsequent multi-scale fusion.

[0110] Step S123: repeatedly exchanging the position information of feature images at different levels to obtain multi-scale fusion information.

[0111] The feature images at the same level are subjected to convolution operation, the feature images at the high level are subjected to downsampling operation, and the feature images at the low level are subjected to upsampling operation, so that the position information in the feature images is repeatedly exchanged to obtain multi-scale fusion information.

[0112] Step S124: positioning feature points based on the multi-scale fusion information.

[0113] The position information in the feature image is exchanged repeatedly so that the high-level position information and the low-level position information can share the position information, and the feature points are located based on the shared position information to improve the accuracy of feature point positioning.

[0114] In this embodiment, if Fig.10 As shown in the figure, the main body is three parallel sub-networks. Each sub-network is serial, with a high-resolution sub-network as the first stage, and two sub-networks with high to low resolutions are added one by one to form a new stage, and the multi-resolution sub-networks are connected in parallel, so the parallel sub-networks in the latter stage are composed of the resolution of the previous stage and the resolution of the next stage; in addition, repeated exchanges are performed between the first stage, the second stage, and the third stage to perform repeated multi-scale fusion to achieve the sharing of position information. The entire network structure achieves 8 multi-scale fusions, in which multi-scale fusion uses convolution operations, high-level information downsampling, and low-level information upsampling processing operations.

[0115] The beneficial effect of the above embodiment is that in each update calculation during the multi-scale fusion process of feature images of multiple levels with successively lower resolutions, high-level information and low-level information are multi-scale fused, thereby ensuring the accuracy of feature point positioning.

[0116] Reference Fig.11 , Fig.11 The specific steps of step S130 in the first embodiment of the feature point extraction and matching method of the present application, wherein the data of the adjacent feature points in the space after positioning are subjected to hash operation to establish a binary hash table, include:

[0117] Step S131: Create an index for the image data to be matched and construct an index number.

[0118] An index is a separate, physical storage structure that sorts the values ​​of one or more columns in a database table. It is a collection of values ​​of one or more columns in a table and a corresponding list of logical pointers to the data pages that physically identify these values ​​in the table. The role of an index is equivalent to the catalog of a book, and you can quickly find the required content based on the page numbers in the catalog.

[0119] An index table is a table that indicates the correspondence between logical records and physical records. Each index item in the index table is arranged in the order of keys (or logical record numbers). The order of keys or logical record numbers is the index number.

[0120] Step S132: Binarize the data of adjacent feature points in the positioned space and map them to a table corresponding to the index number through a hash algorithm.

[0121] Binary data is a string of two digits, 0 and 1, which makes it faster and more accurate for computers to read and calculate.

[0122] In this embodiment, if Fig.12 As shown, an index is established for the image data to be matched, and two adjacent data in the space are converted into a table through a constructed mapping function (hash function). The probability that the two data points are still adjacent in the new data space is very high, and the probability that non-adjacent data points are mapped to the same table is very small. Multiple tables, namely hash tables, are obtained through conversion, and the query data is subjected to the hash function to obtain the corresponding table index number, and the data in the corresponding table is taken out (usually only the first two data need to be taken out), and the similarity or distance between the query data and the two data is calculated, and the nearest neighbor data is returned. The data retrieval and storage adopt binary type to speed up the calculation speed of the whole process.

[0123] The beneficial effects of the above embodiments are as follows: through the hash matching method, data is mapped to a hash table, in which data retrieval and storage are both in binary, which greatly speeds up the storage and matching speed by nearly an order of magnitude.

[0124] Reference Fig.13 , Fig.13 The specific steps of step S140 in the first embodiment of the feature point extraction and matching method of the present application, wherein the calculation of the matching degree between the query data and the data in the hash table and the return of the data with the highest matching degree in the hash table include:

[0125] Step S141: Obtain the corresponding index number from the query data through a hash algorithm, and obtain the data corresponding to the index number in the table.

[0126] The query data is operated by a hash algorithm to obtain a corresponding index number, and the corresponding data in the table corresponding to the index number in the hash table is obtained.

[0127] Step S142: Calculate the similarity or distance between the query data and the corresponding data obtained in the table.

[0128] In this embodiment, the similarity between the query data and the data in the hash table can be calculated, or the distance between the query data and the data in the hash table can be calculated. The matching degree calculation method can be Euclidean distance, Manhattan distance, Minkowski distance, cosine similarity, etc., and the present invention is not limited to the above matching degree calculation methods.

[0129] Step S143: Return the data with the smallest similarity or the smallest distance.

[0130] The data with the highest matching degree is returned to obtain the best matching result, wherein the data with the highest matching degree may be the data with the smallest similarity or the smallest distance.

[0131] The beneficial effects of the above embodiments are as follows: the accuracy of feature point matching is improved by calculating the similarity or distance between the query data and the corresponding data in the table, and a binary hash table is established during the matching process to ensure the matching speed of the feature points.

[0132] Based on the network framework structure in deep learning, the implementation scheme of the present invention focuses on changing the depth of the network structure and the calculation method, while strengthening the transmission of high-level information and low-level information, and finally adopts a fast matching algorithm in the matching stage. Fig.14 This patent and traditional SIFT, SURF and ORB methods are listed separately. From the comparative analysis in the figure, it can be seen that the feature point information extracted by this patent basically covers important places and is reasonably distributed, while the feature point information extracted by the ORB method is too concentrated and redundant, and the edge information is ignored; the SIFT and SURF methods extract a lot of feature point information. The time taken to extract the feature points of an image by the four algorithms is compared. The time taken by this patent, SIFT, SURF and ORB are 0.0067s, 0.050s, 0.024s and 0.0051s respectively. By comparison, the time taken by this patent is very close to that of the binary-based ORB algorithm. In addition, Fig.15 The feature point matching is shown in the figure. The patented algorithm takes 0.022s, which is more than half the time of the traditional algorithm (0.055s). If the time consumed for matching massive data is greatly reduced, the matching speed will be faster.

[0133] The present invention also provides a network for feature point extraction and matching method, characterized in that the network is a twin network framework structure, comprising:

[0134] A first network framework and a second network framework; wherein the first network framework and the second network framework are the same;

[0135] The first network framework or the second network framework is configured as follows:

[0136] Binarize the image input features and their weight parameters, and calculate the binarized data to extract feature points;

[0137] Acquire multiple levels of feature images with successively lower resolutions of the input image through a convolutional network, and perform multi-scale fusion on the multiple levels of feature images with successively lower resolutions to locate feature points;

[0138] Perform hash operation on the data of adjacent feature points in space after positioning to establish a hash table;

[0139] When matching, the matching degree between the query data and the data in the hash table is calculated, and the data with the highest matching degree in the hash table is returned;

[0140] Among them, feature point matching is performed using feature point information extracted by the first network framework and feature point information extracted by the second network framework.

[0141] In this embodiment, if Fig.16 As shown, the present invention provides a principle framework diagram of a network of a feature point extraction and matching method. In the network of the feature point extraction and matching method, a feature point extraction process and a feature point matching process are constructed based on a twin network framework structure.

[0142] The present invention also provides a computer-readable storage medium on which a feature point extraction and matching method program is stored, characterized in that the feature point extraction and matching method program implements any of the above-mentioned methods when executed by a processor.

[0143] The present invention also provides a device, including a memory, a processor, and a feature point extraction and matching method program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned methods when executing the feature point extraction and matching method program.

[0144] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0145] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0146] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0147] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0148] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.

[0149] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0150] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A feature point extraction and matching method, characterized in that: The method comprises: Binarize the image input features and their weight parameters, and calculate the binarized data to extract feature points; Acquire multiple levels of feature images with successively lower resolutions of the input image through a convolutional network, and perform multi-scale fusion on the multiple levels of feature images with successively lower resolutions to locate feature points; Perform hash operation on the data of adjacent feature points in space after positioning to establish a binary hash table; When matching, the matching degree between the query data and the data in the hash table is calculated, and the data with the highest matching degree in the hash table is returned.

2. The feature point extraction and matching method according to claim 1, characterized in that: The binarization of the image input features comprises: Based on the matrix of the image input features, calculating the mean of the absolute values ​​in the channel dimension; Performing a convolution operation on the mean value and a two-dimensional convolution kernel to obtain a convolution result; The convolution result is converted into a binary matrix I using a sign function.

3. The feature point extraction and matching method according to claim 2, characterized in that: The binarization of the weight parameters comprises: The weight parameters are normalized; The weight parameters are converted into a binary matrix W using a sign function.

4. The feature point extraction and matching method according to claim 3, characterized in that: The step of calculating the binarized data to extract feature points includes: A dot multiplication operation is performed on the binary matrix W, the binary matrix I, the convolution result and the scaling factor to extract feature points; wherein the scaling factor is obtained during the normalization process of the weight parameter.

5. The feature point extraction and matching method according to claim 1, characterized in that: The step of fusing the feature images at multiple levels with successively lower resolutions at multiple scales to locate the feature points includes: Connect feature images of the same level and resolution in series; The feature images at different levels are connected in parallel in the order of decreasing resolution; the feature images at the same level have the same resolution; The position information of feature images at different levels is repeatedly exchanged to obtain multi-scale fusion information; The feature points are located based on the multi-scale fusion information.

6. The feature point extraction and matching method according to claim 1, characterized in that: The method of performing a hash operation on the data of the adjacent feature points in the space after positioning to establish a binary hash table includes: Create an index for the image data to be matched and construct an index number; The data of adjacent feature points in the positioned space are binarized and mapped to a table corresponding to the index number through a hash algorithm.

7. The feature point extraction and matching method according to claim 6, characterized in that: The calculating the matching degree between the query data and the data in the hash table and returning the data with the highest matching degree in the hash table includes: Obtain the corresponding index number from the query data through a hash algorithm, and obtain the data corresponding to the index number in the table; Calculating the similarity or distance between the query data and the corresponding data in the obtained table; Return the data with the smallest similarity or the smallest distance.

8. A feature point extraction and matching network, characterized in that: The network is a twin network framework structure, including: A first network framework and a second network framework; wherein the first network framework and the second network framework are the same; The first network framework or the second network framework is configured as follows: Binarize the image input features and their weight parameters, and calculate the binarized data to extract feature points; Acquire multiple levels of feature images with successively lower resolutions of the input image through a convolutional network, and perform multi-scale fusion on the multiple levels of feature images with successively lower resolutions to locate feature points; Perform hash operation on the data of adjacent feature points in space after positioning to establish a hash table; When matching, the matching degree between the query data and the data in the hash table is calculated, and the data with the highest matching degree in the hash table is returned; Among them, feature point matching is performed using feature point information extracted by the first network framework and feature point information extracted by the second network framework.

9. A computer-readable storage medium, characterized in that: A feature point extraction and matching method program is stored thereon, and when the feature point extraction and matching method program is executed by a processor, the steps of any method described in claims 1-7 are implemented.

10. A device, characterized in that: The invention comprises a memory, a processor and a program of a feature point extraction and matching method stored in the memory and executable on the processor, wherein the processor implements the steps of any method described in claims 1-7 when executing the program of the feature point extraction and matching method.