Infrared image target positioning method, device, equipment, medium and program product

By extracting and comparing features between the infrared image and the target template image, and using the feature point extraction model to determine the optimal feature point set, the accuracy problem of the traditional infrared image target positioning method under different viewing angles and scale spaces is solved, and a better solution is achieved. High positioning accuracy.

CN118279398BActive Publication Date: 2024-09-03四川中科友成科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410705150.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-03
Estimated Expiration
2044-06-03

AI Technical Summary

Technical Problem

Traditional infrared image target positioning methods have low accuracy under different viewing angles and scale spaces, are affected by noise, and have limited applications.

Method used

By performing feature extraction and comparison on the real-time infrared image and the template image of the target to be located, the rough matching image with the highest matching degree is obtained, and the pre-trained feature point extraction model is used to calculate the similarity of the feature points to determine the best feature point set. Determine the positioning results of the target.

Benefits of technology

It improves the accuracy and application range of infrared image target positioning and ensures positioning accuracy under different viewing angles and scale spaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118279398B
    Figure CN118279398B
Patent Text Reader

Abstract

The present invention discloses an infrared image target positioning method, device, equipment, medium and program product. The method comprises the following steps: collecting real-time infrared images and template images of targets to be positioned; performing feature extraction and convolution operations on the template images of targets to be positioned and the real-time infrared images to obtain a rough matching image; inputting the rough matching image and the template images of targets to be positioned into a pre-trained feature point extraction model, calculating the feature point similarity between the rough matching image and the template images of targets to be positioned, so as to determine the best feature point set; determining the mapping relationship between the best feature point set and the template images of targets to be positioned, so as to determine the positioning result of the key area. The method solves the technical problems of low accuracy and limited application of the traditional infrared image target positioning method in the prior art, and achieves the technical effect of ensuring the positioning accuracy under different viewing angles and different scale spaces.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to an infrared image target positioning method, device, equipment, medium and program product. Background Art

[0002] Infrared imaging technology is a passive technology that converts infrared radiation signals of objects into images that can be distinguished by the human eye. Compared with visible light, infrared imaging technology can meet the needs of all-weather uninterrupted detection. In all-weather uninterrupted detection, target positioning and classification are one of the important business requirements.

[0003] The traditional target localization method of infrared images identifies the target by calculating the grayscale difference of the image, describes the image using a parametric statistical image background model, and combines the target features obtained by the computer-aided design model to use a generalized likelihood ratio test to determine the target to be located.

[0004] However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the inventors of the present application found that the above technology has at least the following technical problems: it is difficult to clearly distinguish the target and the background by grayscale difference; the accuracy of the grayscale difference is affected due to the large noise in the infrared image; and since the infrared image and the computer-aided design model are acquired in different scale spaces and different viewing angles, the matching and positioning using grayscale difference is not effective and has certain limitations. Summary of the invention

[0005] In view of the above problems, the embodiments of the present application solve the technical problems of low accuracy and limited application of traditional infrared image target positioning methods in the prior art by providing infrared image target positioning methods, devices, equipment, media and program products, and achieve the technical effect of ensuring positioning accuracy under different viewing angles and different scale spaces.

[0006] Embodiments of the present application provide infrared image target positioning methods, devices, equipment, media and program products.

[0007] In a first aspect, the present application provides an infrared image target positioning method, comprising the following steps:

[0008] Collecting a real-time infrared image and a template image of the target to be located, wherein the real-time infrared image refers to an infrared image collected in real time, the template image of the target to be located refers to an image taken at different shooting points, and the template image of the target to be located has image association information, and the image association information includes the position coordinates of the key area of ​​the template image of the target to be located;

[0009] Performing feature extraction and convolution operations on the template image of the target to be located and the real-time infrared image to obtain a coarse matching image, wherein the coarse matching image refers to an image in the real-time infrared image that has the highest feature matching degree and the same resolution as the template image of the target to be located;

[0010] Input the coarse matching image and the target template image to be located into a pre-trained feature point extraction model, calculate the feature point similarity between the coarse matching image and the target template image to be located, so as to determine an optimal feature point set, wherein the optimal feature point set refers to a set of feature points that best match the coarse matching image and the target template image to be located;

[0011] The mapping relationship between the best feature point set and the template image of the target to be located is determined, so as to determine the positioning result of the key area.

[0012] Preferably, performing feature extraction and convolution operations on the template image of the target to be located and the real-time infrared image to obtain a coarse matching image includes:

[0013] Inputting the target template image to be located and the real-time infrared image into an improved feature extraction model, wherein the feature extraction model refers to a VGG 13 model including a Ghost conv module;

[0014] Performing feature extraction on the real-time infrared image and the template image of the target to be located to obtain a first feature map of the template image of the target to be located and a second feature map of the real-time infrared image, wherein the second feature map has local area features similar to those of the first feature map;

[0015] Based on the first feature map, performing a convolution operation on the second feature map to obtain a correlation score matrix;

[0016] Determining a maximum relevance score according to the relevance score matrix;

[0017] Determining pixel coordinates of the target template image to be located in the real-time infrared image according to the maximum correlation score;

[0018] The real-time infrared image is cropped according to the pixel coordinates to obtain the coarse matching image.

[0019] Preferably, the correlation score matrix refers to a score matrix obtained by performing a channel-by-channel convolution operation on the second feature map using the first feature map and summing the correlation scores in the channel dimension.

[0020] Preferably, the coarse matching image refers to an image having the same resolution as the template image of the target to be located, which is obtained by cutting the real-time infrared image using the pixel coordinates as vertices.

[0021] Preferably, the coarse matching image and the target template image to be located are input into a pre-trained feature point extraction model, and the feature point similarity between the coarse matching image and the target template image to be located is calculated to determine the best feature point set, including:

[0022] Inputting the rough matching image and the target template image to be located into a pre-trained SuperPoint feature point extraction model, respectively obtaining a third feature map of the rough matching image and a fourth feature map of the target template image to be located, wherein the third feature map and the fourth feature map contain similar feature information;

[0023] Using a SIFT feature point extraction algorithm, respectively collecting a first feature point set and a second feature point set from the coarse matching image and the template image of the target to be located, wherein the first feature point set and the second feature point set are both sets of pixel coordinate points, and there are similar feature points between the first feature point set and the second feature point set;

[0024] According to the third feature map and the fourth feature map, bilinear interpolation is used to sample each pixel coordinate in the first feature point set and the second feature point set, respectively, to obtain a first feature vector matrix of the coarse matching image and a second feature vector matrix of the target template image to be located, wherein the first feature vector matrix and the second feature vector matrix refer to feature vector matrices corresponding one-to-one to the first feature point set and the second feature point set, respectively;

[0025] Obtaining a similarity score according to the first eigenvector matrix and the second eigenvector matrix, wherein the similarity score refers to a similarity of feature points in the first feature point set and in the second feature point set that are matched one by one;

[0026] The first 20 groups of feature points with the highest similarity scores are obtained as the best feature point set.

[0027] Preferably, determining the mapping relationship between the optimal feature point set and the target template image to be located, thereby determining the positioning result of the target template, includes:

[0028] Using a pre-established RANSAC candidate model set, removing incorrect matching points in the optimal feature point set, and obtaining a feature point set to be calculated;

[0029] Calculating a mapping matrix between the target template image to be located and the real-time infrared image according to the feature point set to be calculated;

[0030] According to the mapping matrix, the center point of the template image of the target to be located is mapped to the real-time infrared image to obtain the positioning result of the key area.

[0031] In a second aspect, the present application also provides an infrared image target positioning device, comprising:

[0032] An acquisition module is used to acquire real-time infrared images and template images of the target to be located, wherein the real-time infrared image refers to an infrared image acquired in real time, the template image of the target to be located refers to an image captured at different shooting points, and the template image of the target to be located has image association information, and the image association information includes the position coordinates of the key area of ​​the template image of the target to be located;

[0033] An acquisition module is used to perform feature extraction and convolution operations on the template image of the target to be located and the real-time infrared image to obtain a coarse matching image, wherein the coarse matching image refers to an image in the real-time infrared image that has the highest feature matching degree and the same resolution as the template image of the target to be located;

[0034] A calculation module, used for inputting the coarse matching image and the target template image to be located into a pre-trained feature point extraction model, calculating the feature point similarity between the coarse matching image and the target template image to be located, so as to determine an optimal feature point set, wherein the optimal feature point set refers to a set of feature points that best match the coarse matching image and the target template image to be located;

[0035] The determination module is used to determine the mapping relationship between the best feature point set and the template image of the target to be located, so as to determine the positioning result of the key area.

[0036] In a third aspect, the present application further provides an electronic device, including:

[0037] Processor and memory;

[0038] The memory is used to store executable instructions of the processor;

[0039] The processor is configured to perform any one of the infrared image target positioning methods by executing the executable instructions.

[0040] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement any one of the infrared image target positioning methods.

[0041] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements any one of the infrared image target positioning methods when executed.

[0042] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: by extracting and comparing features of the real-time infrared image and the template image of the target to be located, a local image of the real-time infrared image with the highest matching degree and the same resolution as the template image of the target to be located is obtained as a rough matching image; by calculating the similarity of feature points between the rough matching image and the template image of the target to be located, the best feature point set is determined, and the accuracy of the matching is further guaranteed; and the mapping relationship between the real-time infrared image and the template image of the target to be located is determined based on the best feature point set, and the positioning result is output. The technical problems of low accuracy and limited application of the traditional infrared image target positioning method in the prior art are solved, and the technical effect of ensuring positioning accuracy under different viewing angles and different scale spaces is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A flow chart of an infrared image target positioning method provided by an embodiment of the present application is shown;

[0044] Figure 2 A schematic diagram of positioning results in an urban scenario provided by an embodiment of the present application is shown;

[0045] Figure 3 A schematic diagram of positioning results in a forest scene provided by an embodiment of the present application is shown;

[0046] Figure 4 A flow chart of a method for obtaining a rough matching image provided by an embodiment of the present application is shown;

[0047] Figure 5 A flow chart of a method for determining an optimal feature point set provided by an embodiment of the present application is shown;

[0048] Figure 6 A flow chart of a method for determining a positioning result provided in an embodiment of the present application is shown;

[0049] Figure 7 A structural block diagram of an infrared image target positioning device provided in an embodiment of the present application is shown;

[0050] Figure 8An internal structure diagram of an electronic device provided by this embodiment is shown; DETAILED DESCRIPTION

[0051] The embodiments of the present application solve the technical problems of low accuracy and limited application of traditional infrared image target positioning methods in the prior art by providing infrared image target positioning methods, devices, equipment, media and program products, and achieve the technical effect of ensuring positioning accuracy under different viewing angles and different scale spaces.

[0052] 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.

[0053] Embodiment 1:

[0054] Figure 1 FIG. 1 shows a flow chart of an infrared image target positioning method provided by an embodiment of the present application. Figure 1 As shown, the embodiment of the present application provides an infrared image target positioning method, comprising the following steps:

[0055] S10. Collecting a real-time infrared image and a template image of the target to be located, wherein the real-time infrared image refers to an infrared image collected in real time, and the template image of the target to be located refers to an image taken at different shooting points, and the template image of the target to be located has image association information, and the image association information includes the position coordinates of a key area of ​​the template image of the target to be located.

[0056] The real-time infrared image may be an infrared image for key area positioning, and the infrared image may be any infrared image in a city scene, a forest scene, a home scene, or other scenes. The real-time infrared image may be acquired by an image acquisition device. For example, the image acquisition device may be a drone or a device with an infrared camera.

[0057] The template image of the target to be located may be an infrared image captured by an image acquisition device at different preset shooting points. For example, infrared images captured at at least one preset shooting point may be collected in advance as template images of the target to be located, and the shooting point sequence number of each candidate template image may be recorded to facilitate subsequent position matching with the real-time infrared image.

[0058] Among them, the image association information can be image feature information used to characterize the template image of the target to be located. The key area can be the area in the image that contains the target to be located. It is understandable that the real-time infrared image captured by the image acquisition device contains both the key area and the background elements that are not related to the key area. Therefore, when locating the key area, it is necessary to perform similarity matching on the feature points in the real-time infrared image and the template image of the target to be located, so as to analyze and identify the key area and avoid interference from background elements. Exemplarily, the real-time infrared image is an infrared image of a parking lot, the template image of the target to be located is an infrared image taken from different viewing angles, the key area is the area where the car in the parking lot is located, and the image association information is the feature points contained in the image of the car in the parking lot.

[0059] Among them, the position coordinates of the key area can be the position coordinates of the key area on the target template image to be located. For example, the position coordinates of the key area can be the position coordinates of the pixel points in the key area corresponding to the target template image to be located. Optionally, the key area is usually a rectangular area. Therefore, when the upper left area position and the lower right area position coordinates of the key area are determined, the position of the key area relative to the target template image to be located can be determined. Optionally, the position coordinates of the lower left area and the upper right area of ​​the key area can also be determined to determine the position of the key area relative to the target template image to be located.

[0060] Exemplarily, infrared images captured by the image acquisition device at various shooting points can be collected in advance as template images of the target to be located. From each template image of the target to be located, a template image of the target to be located with the same shooting point number as the real-time infrared image is searched, and similarity matching is performed on the feature points of the real-time infrared image and the template image of the target to be located to determine the position of the key area in the template image of the target to be located, and the coordinate position of the rectangular frame is recorded. Subsequently, the key area of ​​the real-time infrared image can be located by the position coordinates of the key area in the template image of the target to be located.

[0061] S20, performing feature extraction and convolution operations on the template image of the target to be located and the real-time infrared image to obtain a coarse matching image, wherein the coarse matching image refers to an image in the real-time infrared image that has the highest feature matching degree and the same resolution as the template image of the target to be located.

[0062] The coarse matching image may be an image of a key area of ​​the template image of the target to be located in the real-time infrared image. Exemplarily, a pre-trained VGG (Visual Geometry Group) model may be used to extract features from the template image of the target to be located and the real-time infrared image, perform a convolution operation on the extracted features, sum them in the convolution channel dimension, calculate the convolution maximum value, thereby obtaining the feature with the highest matching degree, and according to the location of the successfully matched features, crop an image with the highest matching degree and the same resolution as the key area feature of the template image of the target to be located on the real-time infrared image.

[0063] S30, inputting the coarse matching image and the target template image to be located into a pre-trained feature point extraction model, calculating the feature point similarity between the coarse matching image and the target template image to be located, so as to determine an optimal feature point set, wherein the optimal feature point set refers to a set of feature points that best match the coarse matching image and the target template image to be located.

[0064] The pre-trained feature extraction model may be a deep learning method loaded with pre-trained weights. Exemplarily, by inputting the coarse matching image and the target template image to be located into the pre-trained SuperPoint feature point extraction model and SIFT (Scale-Invariant Feature Transform) feature point extraction algorithm, the SuperPoint feature point extraction model is used to perform key point detection and descriptor extraction, and the SIFT feature point extraction algorithm is used to search and calculate feature points in different scale spaces, so as to obtain the most matching feature point collection between the coarse matching image and the target template image to be located.

[0065] S40, determining a mapping relationship between the best feature point set and the template image of the target to be located, thereby determining a positioning result of the key area.

[0066] Among them, by determining the positions of the feature points in the best feature point set on the real-time infrared image and the template image of the target to be located, the mapping relationship between the real-time infrared image and the template image of the target to be located can be determined, the position of the key area in the template image of the target to be located is mapped to the real-time infrared image, and the position of the key area in the real-time infrared image is determined.

[0067] For example, Figure 2 FIG. 1 shows a schematic diagram of positioning results in an urban scenario provided by an embodiment of the present application. Figure 2 As shown, the green marked area is the key area of ​​the target template image to be located, and the red marked area is the position of the key area of ​​the target template image to be located in the real-time infrared image. Figure 2The positioning results are shown.

[0068] For example, Figure 3 FIG. 1 shows a schematic diagram of positioning results in a forest scene provided by an embodiment of the present application. Figure 3 As shown, the green marked area is the key area of ​​the target template image to be located, and the red marked area is the position of the key area of ​​the target template image to be located in the real-time infrared image. Figure 3 The positioning results are shown.

[0069] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:

[0070] By extracting and comparing the features of the real-time infrared image and the template image of the target to be located, a local image of the real-time infrared image with the highest matching degree and the same resolution as the template image of the target to be located is obtained as a rough matching image; by calculating the similarity of the feature points between the rough matching image and the template image of the target to be located, the best feature point set is determined, and the accuracy of the matching is further guaranteed; and the mapping relationship between the real-time infrared image and the template image of the target to be located is determined based on the best feature point set, and the positioning result is output. The technical problems of low accuracy and limited application of the traditional infrared image target positioning method in the prior art are solved, and the technical effect of ensuring the positioning accuracy under different viewing angles and different scale spaces is achieved.

[0071] Figure 4 FIG. 1 shows a flow chart of a method for obtaining a rough matching image provided by an embodiment of the present application. Figure 4 As shown, S20, feature extraction and convolution operations are performed on the template image of the target to be positioned and the real-time infrared image to obtain a rough matching image, including:

[0072] S21, inputting the template image of the target to be located and the real-time infrared image into an improved feature extraction model, wherein the feature extraction model refers to a VGG 13 model including a Ghost conv module.

[0073] S22, performing feature extraction on the real-time infrared image and the template image of the target to be located to obtain a first feature map of the template image of the target to be located and a second feature map of the real-time infrared image, wherein the second feature map has local area features similar to those of the first feature map.

[0074] S23. Based on the first feature map, perform a convolution operation on the second feature map to obtain a correlation score matrix.

[0075] S24. Determine the maximum correlation score according to the correlation score matrix.

[0076] S25. Determine the pixel coordinates of the template image of the target to be located in the real-time infrared image according to the maximum correlation score.

[0077] S26, cropping the real-time infrared image according to the pixel coordinates to obtain a coarse matching image.

[0078] Preferably, the correlation score matrix refers to a score matrix obtained by performing a channel-by-channel convolution operation on the second feature map using the first feature map and summing the correlation scores in the channel dimension.

[0079] Preferably, the coarse matching image refers to an image having the same resolution as the template image of the target to be located, which is obtained by cropping the real-time infrared image using pixel coordinates as vertices.

[0080] Among them, the improved feature extraction model refers to the VGG 13 model including the Ghost conv module. The Ghost conv module first generates a feature map with a smaller channel through traditional convolution to reduce the amount of calculation, and then further reduces the amount of calculation through cheap operations on the basis of the obtained feature map to generate a new feature map. By splicing two sets of feature groups together to generate a new feature map and output it, the amount of calculation is reduced and the efficiency and performance of the VGG 13 model are improved.

[0081] The first feature map and the second feature map can be feature maps that have been matched in the real-time infrared image and the template image of the target to be located, respectively. The VGG 13 model including the Ghost conv module is used to perform feature matching on the real-time infrared image and the template image of the target to be located. Exemplarily, each feature map generates a 128-dimensional description vector.

[0082] The correlation score matrix is ​​obtained based on the feature vectors of the first feature map and the second feature map. According to the correlation score matrix of the first feature map and the second feature map in each channel, the correlation score matrix is ​​summed in each channel dimension to determine the maximum correlation score, and the pixel coordinates of the template image of the target to be located in the real-time infrared image are determined by the index value of the maximum correlation score. The real-time infrared image is cropped according to the pixel coordinates to obtain a coarse matching image with the same resolution as the template image of the target to be located.

[0083] Exemplarily, the coarse matching image may be an image cropped with the pixel coordinates as the upper left corner vertex, or may be an image cropped with the pixel coordinates as the upper right corner vertex. The resolution of the coarse matching image is the same as that of the template image of the target to be located.

[0084] Figure 5 FIG. 4 is a flow chart showing a method for determining an optimal feature point set provided by an embodiment of the present application. Figure 5As shown, S30, inputting the coarse matching image and the target template image to be located into a pre-trained feature point extraction model, calculating the feature point similarity between the coarse matching image and the target template image to be located, to determine the best feature point set, including:

[0085] S31, inputting the coarse matching image and the target template image to be located into a pre-trained SuperPoint feature point extraction model, and obtaining a third feature map of the coarse matching image and a fourth feature map of the target template image to be located, respectively, wherein the third feature map and the fourth feature map contain similar feature information;

[0086] S32, using a SIFT feature point extraction algorithm to collect a first feature point set and a second feature point set from the rough matching image and the template image of the target to be located, respectively, wherein the first feature point set and the second feature point set are both sets of pixel coordinate points, and there are similar feature points between the first feature point set and the second feature point set;

[0087] S33, according to the third feature map and the fourth feature map, using bilinear interpolation to sample each pixel coordinate in the first feature point set and the second feature point set, respectively, to obtain a first feature vector matrix of the coarse matching image and a second feature vector matrix of the target template image to be located, wherein the first feature vector matrix and the second feature vector matrix refer to feature vector matrices corresponding to the first feature point set and the second feature point set, respectively;

[0088] S34, obtaining a similarity score according to the first eigenvector matrix and the second eigenvector matrix, wherein the similarity score refers to the similarity of feature points in the first feature point set and the second feature point set that match one by one;

[0089] S35, obtaining the top 20 groups of feature points with the highest similarity scores as the best feature point set.

[0090] Among them, the SuperPoint feature point extraction model extracts features from the coarse matching image and the template image of the target to be located respectively. The SIFT (Scale-Invariant Feature Transform) feature extraction algorithm is used to detect and describe local features in the image, find extreme points under different scales and rotations, and extract the positions of these points.

[0091] Among them, by performing feature matching on the rough matching image and the template image of the target to be located, the third feature map and the fourth feature map that are successfully matched are obtained, and the SIFT feature point extraction algorithm is used to collect the first feature point set and the second feature point set that are successfully matched. Bilinear interpolation is used to sample the first feature point set and the second feature point set respectively to obtain the first feature vector and the second feature vector that match each other. By calculating the feature similarity of the first feature vector and the second feature vector, the top 20 matching points with the highest matching degree are obtained to obtain the best feature point set.

[0092] The best feature point set refers to a set of feature points with the highest similarity. The best feature point set can be obtained by calculating the similarity of each matching point set.

[0093] Figure 6 FIG. 2 shows a flow chart of a method for determining a positioning result provided by an embodiment of the present application. Figure 6 As shown, S40, determining the mapping relationship between the best feature point set and the target template image to be located, thereby determining the positioning result of the target template, includes:

[0094] S41, using a pre-established RANSAC candidate model set, removing incorrect matching points in the best feature point set, and obtaining a feature point set to be calculated;

[0095] S42, calculating a mapping matrix between the template image of the target to be located and the real-time infrared image according to the feature point set to be calculated;

[0096] S43, mapping the center point of the template image of the target to be located to the real-time infrared image according to the mapping matrix, and obtaining the positioning result of the key area.

[0097] Among them, the matching point set contains feature point pairs with matching errors. The RANSAC candidate model set can be used for subsequent shape detection calculations to delete the wrong feature point set and further improve the positioning accuracy. The center point of the template image of the target to be located is mapped to the real-time infrared image using the homography matrix to obtain the positioning result of the key area.

[0098] Embodiment 2:

[0099] Figure 7 FIG. 1 shows a structural block diagram of an infrared image target positioning device provided in an embodiment of the present application. Figure 7 As shown, the embodiment of the present application provides an infrared image target detection device, comprising:

[0100] The acquisition module 400 is used to acquire real-time infrared images and template images of the target to be located, wherein the real-time infrared image refers to an infrared image acquired in real time, the template image of the target to be located refers to an image captured at different shooting points, and the template image of the target to be located has image association information, and the image association information includes the position coordinates of the key area of ​​the template image of the target to be located;

[0101] An acquisition module 500 is used to perform feature extraction and convolution operations on the template image of the target to be located and the real-time infrared image to obtain a coarse matching image, wherein the coarse matching image refers to an image in the real-time infrared image that has the highest feature matching degree and the same resolution as the template image of the target to be located;

[0102] The calculation module 600 is used to input the rough matching image and the target template image to be located into a pre-trained feature point extraction model, calculate the feature point similarity between the rough matching image and the target template image to be located, so as to determine the best feature point set, wherein the best feature point set refers to the set of feature points that best match the rough matching image and the target template image to be located;

[0103] The determination module 700 is used to determine the mapping relationship between the best feature point set in the real-time infrared image and the template image of the target to be located, so as to determine the positioning result of the key area.

[0104] Preferably, the acquisition module 500 includes:

[0105] An input unit, used for inputting the template image of the target to be located and the real-time infrared image into the improved feature extraction model, wherein the feature extraction model refers to a VGG 13 model including a Ghost conv module;

[0106] An extraction unit is used to extract features from the real-time infrared image and the template image of the target to be located, so as to obtain a first feature map of the template image of the target to be located and a second feature map of the real-time infrared image, wherein the second feature map has local area features similar to those of the first feature map;

[0107] A convolution unit, configured to perform a convolution operation on the second feature map based on the first feature map to obtain a correlation score matrix;

[0108] A first determining unit, configured to determine a maximum correlation score according to a correlation score matrix;

[0109] A second determination unit is used to determine the pixel coordinates of the template image of the target to be located in the real-time infrared image according to the maximum correlation score;

[0110] The obtaining unit is used to crop the real-time infrared image according to the pixel coordinates to obtain a coarse matching image.

[0111] Preferably, the calculation module 600 includes:

[0112] An input unit is used to input the rough matching image and the target template image to be located into a pre-trained SuperPoint feature point extraction model to obtain a third feature map of the rough matching image and a fourth feature map of the target template image to be located, respectively, wherein the third feature map and the fourth feature map contain similar feature information;

[0113] A collection unit, used to collect a first feature point set and a second feature point set from the rough matching image and the template image of the target to be located respectively by using a SIFT feature point extraction algorithm, wherein the first feature point set and the second feature point set are sets of pixel coordinate points having similar features;

[0114] A sampling unit is used to sample each pixel coordinate in the first feature point set and the second feature point set respectively by bilinear interpolation according to the third feature map and the fourth feature map, so as to obtain a first feature vector matrix of the coarse matching image and a second feature vector matrix of the target template image to be located, wherein the first feature vector matrix and the second feature vector matrix refer to feature vector matrices corresponding one-to-one to the first feature point set and the second feature point set;

[0115] A first acquisition unit is used to acquire a similarity score according to the first eigenvector matrix and the second eigenvector matrix, wherein the similarity score refers to the similarity of feature points that are matched one by one between the first feature point set and the second feature point set;

[0116] The second acquisition unit is used to acquire the first 20 groups of feature points with the highest similarity scores as the best feature point set.

[0117] Preferably, the determination module 700 includes:

[0118] A removal unit is used to remove the wrong matching points in the best feature point set by using a pre-established RANSAC candidate model set to obtain a feature point set to be calculated;

[0119] A calculation unit, used for calculating a mapping matrix between a template image of a target to be located and a real-time infrared image according to a set of feature points to be calculated;

[0120] The mapping unit is used to map the center point of the template image of the target to be located to the real-time infrared image according to the mapping matrix to obtain the positioning result of the key area.

[0121] Embodiment three:

[0122] Figure 8 FIG. 4 shows an internal structure diagram of an electronic device provided by this embodiment. Figure 8As shown, an embodiment of the present application provides an electronic device, comprising: a processor and a memory; the memory is used to store executable instructions of the processor; wherein the processor is configured to perform an infrared image target positioning method by executing the executable instructions.

[0123] In this embodiment, the processor receives and executes executable instructions through the system bus, I / O interface and communication interface, and the internal memory and non-volatile storage medium both receive and store the executable instructions of the processor through the system bus, I / O interface and communication interface.

[0124] Embodiment 4:

[0125] An embodiment of the present application provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement an infrared image target positioning method.

[0126] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory, electrically erasable programmable read-only memory, erasable programmable read-only memory, programmable read-only memory, read-only memory, magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0127] Optionally, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0128] Embodiment five:

[0129] An embodiment of the present application provides a computer program product, including a computer program, which implements an infrared image target positioning method when the computer program is executed.

[0130] It will be appreciated by those skilled in the art 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. Furthermore, 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.

[0131] 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.

[0132] 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.

[0133] 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. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0134] 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.

[0135] 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. An infrared image target positioning method, characterized in that: The steps include: Collecting a real-time infrared image and a template image of the target to be located, wherein the real-time infrared image refers to an infrared image collected in real time, the template image of the target to be located refers to an image taken at different shooting points, and the template image of the target to be located has image association information, and the image association information includes the position coordinates of the key area of ​​the template image of the target to be located; Performing feature extraction and convolution operations on the template image of the target to be located and the real-time infrared image to obtain a coarse matching image, wherein the coarse matching image refers to an image in the real-time infrared image that has the highest feature matching degree and the same resolution as the template image of the target to be located; Input the coarse matching image and the target template image to be located into a pre-trained feature point extraction model, calculate the feature point similarity between the coarse matching image and the target template image to be located, so as to determine an optimal feature point set, wherein the optimal feature point set refers to a set of feature points that best match the coarse matching image and the target template image to be located; Determine a mapping relationship between the optimal feature point set and the template image of the target to be located, thereby determining a positioning result of the key area; The step of performing feature extraction and convolution operations on the template image of the target to be located and the real-time infrared image to obtain a rough matching image includes: Inputting the target template image to be located and the real-time infrared image into an improved feature extraction model, wherein the feature extraction model refers to a VGG 13 model including a Ghost conv module; Performing feature extraction on the real-time infrared image and the template image of the target to be located to obtain a first feature map of the template image of the target to be located and a second feature map of the real-time infrared image, wherein the second feature map has local area features similar to those of the first feature map; Based on the first feature map, performing a convolution operation on the second feature map to obtain a correlation score matrix; Determining a maximum relevance score according to the relevance score matrix; Determining pixel coordinates of the target template image to be located in the real-time infrared image according to the maximum correlation score; The real-time infrared image is cropped according to the pixel coordinates to obtain the coarse matching image.

2. The method according to claim 1, characterized in that The correlation score matrix refers to a score matrix obtained by performing a channel-by-channel convolution operation on the second feature map using the first feature map and summing the correlation scores in the channel dimension.

3. The method according to claim 2, characterized in that The coarse matching image refers to an image having the same resolution as the template image of the target to be located, which is obtained by cutting the real-time infrared image using the pixel coordinates as vertices.

4. The method according to claim 3, characterized in that Inputting the coarse matching image and the target template image to be located into a pre-trained feature point extraction model, calculating the feature point similarity between the coarse matching image and the target template image to be located, so as to determine the best feature point set, including: Inputting the rough matching image and the target template image to be located into a pre-trained SuperPoint feature point extraction model, respectively obtaining a third feature map of the rough matching image and a fourth feature map of the target template image to be located, wherein the third feature map and the fourth feature map contain similar feature information; Using a SIFT feature point extraction algorithm, respectively collecting a first feature point set and a second feature point set from the coarse matching image and the template image of the target to be located, wherein the first feature point set and the second feature point set are both sets of pixel coordinate points, and there are similar feature points between the first feature point set and the second feature point set; According to the third feature map and the fourth feature map, bilinear interpolation is used to sample each pixel coordinate in the first feature point set and the second feature point set, respectively, to obtain a first feature vector matrix of the coarse matching image and a second feature vector matrix of the target template image to be located, wherein the first feature vector matrix and the second feature vector matrix refer to feature vector matrices corresponding one-to-one to the first feature point set and the second feature point set, respectively; Obtaining a similarity score according to the first eigenvector matrix and the second eigenvector matrix, wherein the similarity score refers to a similarity of feature points in the first feature point set and in the second feature point set that are matched one by one; The first 20 groups of feature points with the highest similarity scores are obtained as the best feature point set.

5. The method according to claim 4, characterized in that Determining a mapping relationship between the optimal feature point set and the template image of the target to be located, thereby determining a positioning result of the key area, includes: Using a pre-established RANSAC candidate model set, removing incorrect matching points in the optimal feature point set, and obtaining a feature point set to be calculated; Calculating a mapping matrix between the target template image to be located and the real-time infrared image according to the feature point set to be calculated; According to the mapping matrix, the center point of the template image of the target to be located is mapped to the real-time infrared image to obtain the positioning result of the key area.

6. An infrared image target positioning device, characterized in that: include: An acquisition module is used to acquire real-time infrared images and template images of the target to be located, wherein the real-time infrared image refers to an infrared image acquired in real time, the template image of the target to be located refers to an image captured at different shooting points, and the template image of the target to be located has image association information, and the image association information includes the position coordinates of the key area of ​​the template image of the target to be located; An acquisition module is used to perform feature extraction and convolution operations on the template image of the target to be located and the real-time infrared image to obtain a coarse matching image, wherein the coarse matching image refers to an image in the real-time infrared image that has the highest feature matching degree and the same resolution as the template image of the target to be located; A calculation module, used for inputting the coarse matching image and the target template image to be located into a pre-trained feature point extraction model, calculating the feature point similarity between the coarse matching image and the target template image to be located, so as to determine an optimal feature point set, wherein the optimal feature point set refers to a set of feature points that best match the coarse matching image and the target template image to be located; A determination module, used to determine a mapping relationship between the optimal feature point set and the template image of the target to be located, so as to determine a positioning result of the key area; The acquisition module is specifically used for: Inputting the target template image to be located and the real-time infrared image into an improved feature extraction model, wherein the feature extraction model refers to a VGG 13 model including a Ghost conv module; Performing feature extraction on the real-time infrared image and the template image of the target to be located to obtain a first feature map of the template image of the target to be located and a second feature map of the real-time infrared image, wherein the second feature map has local area features similar to those of the first feature map; Based on the first feature map, performing a convolution operation on the second feature map to obtain a correlation score matrix; Determining a maximum relevance score according to the relevance score matrix; Determining pixel coordinates of the target template image to be located in the real-time infrared image according to the maximum correlation score; The real-time infrared image is cropped according to the pixel coordinates to obtain the coarse matching image.

7. An electronic device, characterized in that: include: Processor and memory; The memory is used to store executable instructions of the processor; The processor is configured to perform the method according to any one of claims 1 to 5 by executing the executable instructions.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method according to any one of claims 1 to 5.

9. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 5 when executed.