Rapid high-precision multi-view matching method and system based on coded marks in dynamic scene
Through the combination of AOD-CycleGAN and CT-YOLOv7 models, the problem of difficulty in coding mark recognition in dynamic scenarios is solved, and high-precision and efficient image matching is achieved, which is suitable for multi-objective matching tasks in complex backgrounds and motion states.
Patent Information
- Application Number
- CN202410916250.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-11-01
AI Technical Summary
In dynamic scenes or complex backgrounds, existing coding logo recognition methods are difficult to accurately identify and quickly match, resulting in unsatisfactory accuracy and speed of image matching. Especially in the motion state or when the target background is complex, insufficient feature information leads to recognition Time-consuming or failed.
The AOD-CycleGAN model is used for defuzzing and CT-YOLOv7 model for coding mark interception and recognition. Combined with data enhancement and dynamic sparse attention mechanism, the recognition accuracy and speed of coding marks are improved.
It significantly improves the accuracy and speed of image matching, can respond quickly in dynamic scenes and complex backgrounds, achieve efficient matching feature extraction, and improves the accuracy and efficiency of multi-objective matching.
Smart Images

Figure CN118887431A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence measurement technology, and in particular to a fast and high-precision multi-objective matching method and system based on coded marks in dynamic scenes. Background Art
[0002] Multi-camera (i.e., multi-eye) synchronous stereo measurement technology is often used for dynamic measurement in motion scenes, among which image matching is a crucial step in obtaining dynamic measurement results. Image matching is an important technology in stereo vision, which mainly refers to the similarity recognition and extraction of the same features or structures in multi-view images taken by multiple cameras in the same scene. For the convenience of description and distinction, the following images of the same target taken from multiple different perspectives by multiple cameras are called multi-eye images, and the image taken by one camera is called a monocular image.
[0003] Existing image matching algorithms include: region-based image matching and feature-based image matching. Region-based image matching mainly divides multi-view images into several regions, traverses each region to calculate the similarity between multi-view images in the matching region, but this method will fail to match in dynamic scenes due to image rotation and scaling changes. Feature-based image matching is currently widely used, mainly to identify and extract significant feature structures with physical significance from multi-view images, including feature points, feature lines or edges, and significant morphological regions, and then match these feature structures and estimate the transformation function, and then align the content in the multi-view image according to the feature structure matched by the transformation function.
[0004] However, in some complex scenes, there is a lot of noise, redundant feature points, and it is difficult to identify and extract feature structures, which will greatly prolong the image matching time. In addition, some matching targets have no obvious features on their surfaces, or it is difficult to find obvious features in dynamic scenes, such as fast-moving targets, which itself increases the difficulty of recognition. In addition, in dynamic scenes, since the camera or the matching target or both are in motion, there will be different degrees of dynamic image blur. Using existing image matching methods, it is difficult or even impossible to identify feature structures, which will also lead to matching failure.
[0005] In view of the above difficulties in image matching, we choose to use more recognizable coding marks to assist image matching. Coding marks are easily recognizable physical optical marks. Each mark has its own unique coding number, which can be decoded from its shape or color. We attach the coding mark to the matching target surface, which can enhance the texture information of the matching target surface, especially when attached to the target surface with unclear feature structure, the coding mark can effectively enhance the visual expression strength of the feature structure. Coding marks can not only enhance the texture information of the moving target surface, but also have the advantages of high flexibility, low cost, high security, and customizability. They have wide application potential in the field of intelligent measurement. We realize the positioning of the feature structure by quickly identifying the coding mark, and use the same coding number in the multi-eye image, that is, the coding mark with the same name, for fast image matching. For example, in three-dimensional reconstruction, the coding mark is attached to the surface of the target object and multi-eye image matching is performed. The stereo image obtained after matching can be used for accurate three-dimensional measurement of the target object, and then the vibration frequency and posture change of the target object are analyzed.
[0006] For different coding marks, researchers have proposed corresponding recognition methods. These recognition methods are all based on conventional image processing methods. With the continuous development of artificial intelligence algorithms, deep learning models are also used to assist in solving the problem of target recognition.
[0007] Generative Adversarial Network (GAN) is the most classic algorithm in the field of generative models. Unlike the traditional unidirectional GAN, CycleGAN is essentially two mirror-symmetric GANs, forming a cyclic graph structure. It can transfer two styles of images from one image domain to another without the need for paired data training.
[0008] The YOLO algorithm is a single-stage detection algorithm for target detection. This type of algorithm does not extract candidate boxes. Instead, it inputs the entire image into the algorithm and directly outputs the target detection result. It is an end-to-end system. Compared with other existing YOLO series models, the detection performance of YOLOv7 is further improved. When all parameters of the input image are the same, its overall detection and extraction performance is better than the currently known mainstream models.
[0009] However, in practical applications, the above methods still have unsatisfactory accuracy and speed in coding mark recognition and image matching. In particular, when multiple cameras are moving to shoot static scenes or multiple cameras are stationary and synchronously shoot moving objects, the image will be blurred during motion, which greatly reduces the recognition speed and accuracy. Alternatively, when the background of the measurement target is complex and the target occupies a small number of pixels in the image, the resolution is low, and the feature information is insufficient, even if it can be recognized, it will take a long time or even be missed, resulting in a significant decrease in the accuracy and speed of image matching. Summary of the invention
[0010] In order to solve the problem that the above-mentioned coding marks are difficult to identify or fail to identify in dynamic scenes or complex backgrounds, resulting in a significant decrease in the accuracy, precision and efficiency of image matching, the present invention improves the recognition method of coding marks in a multi-eye matching system, and proposes a higher-performance AOD-CycleGAN model and CT-YOLOv7 model, so that coding mark recognition can respond quickly to dynamic scenes and complex backgrounds, providing efficient matching features for image matching, thereby greatly improving the accuracy and speed of image matching. The scheme adopted by the present invention is as follows:
[0011] A fast and high-precision multi-object matching method based on coded marks in a dynamic scene comprises the following steps:
[0012] S1: Acquire multi-camera images of matching targets;
[0013] S2: Use the AOD-CycleGAN model to deblur the multi-eye image obtained in S1 to obtain a high-definition multi-eye image;
[0014] S3: Use the CT-YOLOv7 model to extract the coding mark of the high-definition multi-view image obtained in S2 to obtain a multi-view coding mark image set;
[0015] S4: Identify and locate the multi-image coding mark image set intercepted by S3, and then perform multi-image matching through the coding marks with the same name.
[0016] Furthermore, the specific steps of S1 include:
[0017] S11: Acquire multi-camera images of matching targets under multi-camera surveillance;
[0018] It should be noted that the matching target is affixed with a number of coded marks customized according to its appearance characteristics.
[0019] S12: The multi-eye image acquired in S11 is expanded using morphological processing data enhancement, Mosaic data enhancement, and Mixup data enhancement in sequence to obtain an enhanced multi-eye image.
[0020] It should be noted that S1 is not only used to obtain multi-eye images when the system of the present invention is working normally, but also used to prepare training and testing data sets when building the system. Among them, S12 is executed when preparing training and testing data sets, and is not executed when the system is put into normal operation after training and testing. Moreover, when preparing training and testing data sets, S11 needs to obtain a large number of multi-eye images under different target backgrounds, different color temperatures, different motion states, different distances and other usage scenarios.
[0021] In S12, morphological processing data enhancement mainly involves rotating, scaling, and adjusting brightness of some images; Mosaic data enhancement involves splicing four images in a random manner; Mixup data enhancement involves mixing two images in a certain proportion, and stacking the real frames of the two images together by flipping, scaling, and changing the color gamut. The above enhancement methods are used to enhance the diversity and robustness of the dataset.
[0022] Furthermore, the specific steps of S2 include:
[0023] S21: Building the AOD-CycleGAN model
[0024] The AOD architecture is introduced into the generator of the CycleGAN model to form the AOD-CycleGAN model, which is used to enhance the deblurring ability of the CycleGAN model.
[0025] It should be noted that the AOD architecture consists of 5 layers of convolution, such as Figure 3 As shown in the figure, concatenation 1 combines the features of convolution 1 and convolution 2; concatenation 2 combines the features of convolution 2 and convolution 3; and concatenation 3 combines the features of convolution 1, convolution 2, convolution 3, and convolution 4. The AOD architecture is used for complete end-to-end modeling to restore clearer images. Because the AOD architecture can be well embedded in other deep models, the AOD architecture is used to replace the residual structure in the generator of the CycleGAN model to form an AOD-CycleGAN model with better prediction performance.
[0026] like Figure 4 As shown in the figure, the AOD architecture plays the role of a feature converter in the AOD-CycleGAN model, which can convert the feature information of the blurred image obtained by the encoder into a different feature space to obtain the deep feature information of the corresponding clear image. The deep feature information is input into the decoder to generate a clear image.
[0027] S22: Use the trained AOD-CycleGAN model to deblur all monocular images in the multi-eye image obtained in S1 one by one to obtain a high-definition multi-eye image.
[0028] It should be noted that, like all deep learning models, after the AOD-CycleGAN model is established, it needs to be trained with a large amount of data to adjust and calibrate its model parameters so that it can output more accurate prediction results in practical applications. Therefore, the following is an explanation of the AOD-CycleGAN model training and testing process, and S21 and the following AOD-CycleGAN model training and testing process are not executed when the system of the present invention is put into normal operation.
[0029] First, we make a data set: select several appropriate targets, and repeat S1 under different backgrounds, different color temperatures, different motion states, and different distances to obtain multiple sets of multi-view images of each target in each scene, forming data set 1;
[0030] Secondly, the blurred multi-eye images and clear multi-eye images of dataset 1 are divided into training dataset 1a and test dataset 1a, and training dataset 1b and test dataset 1b according to a ratio of 9:1;
[0031] Again, the AOD-CycleGAN model obtained in S21 is trained and tested using the two sets of training data sets and test data sets respectively until the AOD-CycleGAN model can output high-quality deblurred images.
[0032] Furthermore, the specific steps of S3 include:
[0033] S31: Build CT-YOLOv7 model;
[0034] S32: Use the trained CT-YOLOv7 model to extract the coding marks of all the monocular images in the high-definition multi-eye image obtained in S2 one by one to obtain a multi-eye coding mark image set;
[0035] In the multi-objective coded mark image set, there are Z*L images, where Z is the number of objects and cameras, and L is the number of coded marks.
[0036] Furthermore, the specific steps of S31 include:
[0037] S311: Replace the conventional convolution Conv in the main part of the YOLOv7 original model and the enhanced feature extraction part with partial convolution PConv;
[0038] It should be noted that the present invention weighs the model size and inference time, selects YOLOv7 as the detection framework of the coding mark, and improves it on this basis to obtain the CT-YOLOv7 model. The improvement ideas are described below.
[0039] The convolution algorithm is relatively time-consuming, and the main time consumption is reflected in floating-point operations. The floating-point operation FLOPs of the convolution algorithm can be expressed as formula (1):
[0040] FLOPs = h × w × f 2 ×c p 2 (1)
[0041] Where h and w are the characteristic dimensions of the input matrix, f is the size of the convolution kernel, and c p is the number of channels in the convolution feature extraction part. Partial convolution is to convert cp The convolution matrix is set to 1 / 4, and the remaining channels are not involved in the calculation. The FLOPs of partial convolution is only 1 / 16 of that of regular convolution, and the memory access is also reduced to 1 / 4 of the original. Therefore, the PConv algorithm greatly reduces the memory access and computational redundancy. The structure of partial convolution is as follows: Figure 5 shown.
[0042] S312: Add the BRA mechanism to the main part of the YOLOv7 original model and the enhanced feature extraction module respectively;
[0043] The BRA (Bi-level Routing Attention) mechanism, i.e., the bi-level routing attention mechanism, is a query-aware dynamic sparse attention mechanism used to improve the detection accuracy of the model. The original attention mechanisms such as SE, CA, ECA, etc. operate directly in the global scope, which makes the model computationally expensive and occupies a large amount of memory; in addition, some studies reduce the complexity of the model by introducing sparse attention with different manual modes, such as local windows, axial stripes, and expansion windows. However, each query in these methods only focuses on a small number of key-value pairs, rather than all, which still produces two common problems, namely, the inability to adapt and the inability to achieve mutual non-interference. To this end, the present invention refers to a query-aware dynamic sparse attention mechanism, and adds the BRA mechanism to the backbone part of the model and the enhanced feature extraction module respectively. On the one hand, it is used to realize flexible computational allocation and content perception, and retain fine-grained detail information; on the other hand, it can also improve the detection failure caused by the target being too far away and too small in the coding mark detection task, thereby improving the computational efficiency.
[0044] The BRA mechanism is applied to the principle of the present invention as follows Fig.10 As shown in Figure 1, the key idea is to filter out unimportant key-value pairs to achieve fine-grained and sparse attention. The width of the input image is denoted by W, the height is denoted by H, and the depth is denoted by C. The input image is divided into N×N sub-regions, and Softmax is the probability output function.
[0045] Q, K, and V represent query (query value vector), key (keyword vector), and value (tensor value vector) respectively. As shown in formula (3), W q , W k , W v represents the projection weights of Q, K and V, X r Represents a given subregion.
[0046]
[0047] exist Figure 6 Each area is divided into vectors. Construct a directed graph to find the corresponding relationship. Calculate the regional average based on the original Q, K, and then use the obtained regional query vector Q and keyword vector K to perform matrix multiplication, as shown in formula (4). Obtain the adjacency matrix A of the semantic correlation between regions r .
[0048] A r =Q r (K r ) T (4)
[0049] Through the sparse processing, only the top-k connections (the most relevant k connections) in each adjacency matrix are retained to obtain the region-to-region index matrix Ir, as shown in formula (5). The i-th row of data information in the matrix Ir refers to the top k indexes that are most relevant to the i-th region in the image.
[0050] I r =topkIndex(A r ) (5)
[0051] Then, use the gather() function in I r Based on the data combination extracted from the input K and V, a new cascade matrix K is obtained. g ,V g , as shown in formula (6),
[0052]
[0053] Finally, after obtaining K g ,V g After obtaining the two matrices, the obtained matrices can be combined to obtain the output result O, as shown in formula (7). The function LCE(·) represents the parameterization of deep convolution, and the Attention() function constructs the attention mechanism based on the preliminary mathematical definition of the visual transformer.
[0054] O=Attention(Q,K g ,V g )+LCE(V)(7)
[0055] The improved convolution module after adding partial convolution and BRA mechanism is as follows Figure 6 and Figure 7 shown.
[0056] S313: Replace the loss function of the original YOLOv7 model with the WIOU loss function. So far, the CT-YOLOv7 model is obtained.
[0057] It should be noted that there are three versions of the WIOU loss function. The calculation formula of WIOUv1 is as follows:
[0058] L WIOUv1 =R WIOU L IOU (8)
[0059] Where R WIOU and L IOU The calculation formula is shown in (9),
[0060]
[0061] Where W g and H g Respectively represent the width and height of the minimum enclosing rectangle, R WIOU L used to expand the normal anchor box IOU Value, L IOU R is used to reduce the high-quality anchor box WIOU value, * will R WIOU W g and H g Separated from gradient computation.
[0062] WIOUv1 builds an attention-based bounding box loss, while WIOUv3 used in this invention adds an aggregation mechanism based on WIOUv1, and the calculation is as shown in formula (10):
[0063] L WIOUv3 =rL WIOUv1 (10)
[0064] Where r is the gradient gain, and r is calculated as shown in formula (11).
[0065]
[0066] In the formula, β represents the outlier degree, and its value is inversely proportional to the quality of the anchor box. The dynamic average IOU value enables WIOU v3 to make the most suitable gradient allocation strategy for each moment. IOU Separated from the gradient calculation. The two hyperparameters δ and α are set to 3 and 1.9 respectively in the experiments.
[0067] WIOU v3 is mainly used to solve the balance problem of difficult and easy samples, improve the detection accuracy of small targets in multi-view images, and further improve the performance of the model.
[0068] It should be noted that the training and testing process of the CT-YOLOv7 model after construction is completed is described as follows, and S31 and the following CT-YOLOv7 model training and testing process are not executed when the system of the present invention is put into normal operation.
[0069] First, we input dataset 1 into the trained AOD-CycleGAN model to obtain the deblurred dataset 2;
[0070] Secondly, use the labelimg tool to label each monocular image in dataset 2 and generate .xml files corresponding to the monocular images one by one; each .xml file and its corresponding monocular image constitute a base image, and the base images of multi-eye images constitute a group image; all group images constitute dataset 3;
[0071] Again, all the images in dataset 3 are divided into training dataset 2, validation dataset and test dataset 2 according to the ratio of 8:1:1. The validation dataset here is used to determine the model network structure or adjust the hyperparameters to improve the model complexity and performance, and can also be used for preliminary evaluation of model performance;
[0072] Finally, the CT-YOLOv7 model obtained in S313 is trained and tested using training data set 2 and test data set 2 in sequence until the CT-YOLOv7 model can output a high-quality multi-objective coded logo image set.
[0073] Furthermore, the specific steps of S4 include:
[0074] S41: extracting edge features and locating the center of any image in the multi-objective coded mark image set obtained in S3;
[0075] S42: Identify the template point and the decoding point of the coding mark according to the edge feature obtained in S41;
[0076] S43: Obtain the serial number of the coding mark according to the number of the decoding point identified in S42, thereby realizing the identification and position calculation of the coding mark;
[0077] S44: For each image in the multi-view coded mark image set obtained in S3, S41-S43 are repeated to find the true center coordinates of the same coded mark in the high-definition multi-view image, and the true center coordinates are used as an alignment reference to achieve matching between the multi-view images.
[0078] It should be noted that the final output result of image matching is a multi-objective coded landmark matching map, which is a stereo image with rich spatial dimension data and can be used for high-precision three-dimensional measurement.
[0079] Furthermore, the specific steps of S41 include:
[0080] S411: converting any image in the multi-objective coded mark image set obtained in S3 into a grayscale image, and then binarizing the grayscale image;
[0081] It should be noted that the binarization threshold can be adjusted according to the light intensity and environment.
[0082] S412: extract edge features from the binary image obtained in S411;
[0083] S413: by setting filtering conditions, removing edge features of uninteresting targets, retaining pure ellipse edge features belonging to the coding mark, and fitting each ellipse edge by least squares ellipse fitting to obtain ellipse marking points, thereby obtaining the center coordinates of each ellipse marking point;
[0084] Furthermore, the specific steps of S42 include:
[0085] S421: traverse each ellipse mark point and find the 7 points closest to its center coordinates to form an 8-point set;
[0086] S422: Find 3 collinear points in the set of 8 points, so that 3 points out of the remaining 5 points are on one side of the straight line formed by the 3 collinear points, and the other 2 points are on the other side;
[0087] S423: Select two points on both sides of the straight line formed by the three collinear points as point B and point D. Connect these five points to construct the template points. The geometric constraints of point B and point D are:
[0088]
[0089] Where d is the distance between the two points, E is the positioning point, i.e. the ellipse point at the center of the coding mark, and the applicable value of β is 2.5;
[0090] S424: among the 8 points, 5 template points are removed and the remaining 3 are the decoding points;
[0091] S425: Determine the corresponding affine transformation parameters according to the five template points obtained in S423, and then perform coordinate transformation on the three decoding points according to the affine transformation parameters.
[0092] Furthermore, the specific steps of S43 include:
[0093] S431: Calculate the decoding value according to the number of the decoding point identified in S42, find the corresponding decoding value in the encoding library, and then obtain the encoding mark sequence number, and output the coordinates of the center positioning point of the encoding mark area block image;
[0094] S432: Obtain the true center coordinates of the coding mark by using coordinate inverse solution.
[0095] It should be noted that in Figure 8In the figure, we show the matching process between multiple images through a schematic diagram. In the figure, n images are a group of multi-eye images, and each monocular image contains 6 coding marks CODE1, CODE2, CODE3, CODE4, CODE5, and CODE6. By using the method proposed in the present invention, n images can be matched quickly and accurately based on the serial numbers of the identified coding marks and the real center coordinates.
[0096] The beneficial effects of the present invention are:
[0097] 1. The present invention integrates mainstream artificial intelligence models into traditional image processing methods, and realizes fast and high-precision image matching based on coded markers in multi-camera dynamic scenes.
[0098] 2. This paper introduces the AOD architecture to enhance the original CycleGAN model and proposes an AOD-CycleGAN model with stronger generalization ability.
[0099] 3. The present invention improves the original YOLOv7 model, replaces the convolution algorithm, introduces a dynamic sparse attention mechanism and loss function, and proposes a CT-YOLOv7 model, which enables it to more flexibly extract features of small targets with encoded markers and retain detail information; the replaced convolution algorithm is a lightweight convolution, which fully utilizes the computing resources of the device while reducing the number of model memory accesses, thereby realizing lightweight extraction of the model and improving the timeliness of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0100] In order to enable those skilled in the art to better understand the technical solution of the present invention and verify the feasibility and effectiveness of the technical solution, the technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments of the specification.
[0101] Figure 1 : Flow chart of a fast and high-precision multi-object matching method based on coded markers in dynamic scenes;
[0102] Figure 2 : Schematic diagram of the experimental process of coded sign recognition in dynamic scenes;
[0103] Figure 3 : Schematic diagram of AOD architecture;
[0104] Figure 4 :Schematic diagram of the AOD-CycleGAN model generator structure;
[0105] Figure 5 : Schematic diagram of Pconv algorithm;
[0106] Figure 6 : Schematic diagram of the structure of convolution module 1 in the CT-Yolov7 model;
[0107] Figure 7 : Schematic diagram of the structure of convolution module 2 in the CT-Yolov7 model;
[0108] Figure 8 : Schematic diagram of multi-image matching;
[0109] Fig. 9 : Schematic diagram of binocular image matching in Example 2;
[0110] Fig.10 : Schematic diagram of the working principle of the BRA mechanism applied to the present invention. DETAILED DESCRIPTION
[0111] [Example 1]
[0112] 1. Introduction to experimental platform and experimental methods
[0113] The hardware platform involved in this experiment includes a computer and a camera, wherein the basic configuration of the computer is as follows: processor 12th GenIntel(R)Core(TM)i7-1270, graphics card NVIDIA GeForce RTX 2080Ti, GPU TU102, software environment Windows 11, pytorch 1.7.0, CUDA 11.0; the camera uses the camera that comes with the professional version of DJI Mavic 3E, with a resolution of 5280×3956 and an exposure speed of 8-1 / 8000 seconds. This experiment is carried out in a comparative manner, that is, the detection and recognition results of the method of the present invention are compared with the existing mainstream models.
[0114] 2. Experimental process
[0115] This experiment uses two surveying drones (i.e., moving binoculars) to take aerial photos of ground objects with 15 coded signs attached to them. Three groups of binocular images are taken as experimental data for detection and recognition. When each group of binocular images is taken, the two drones shoot at similar heights but at different angles; the first group shoots at a height of 6m; the second group shoots at a height of 6m, but there are obvious shadow areas in the image; the third group shoots at a height of 8m.
[0116] First, three sets of binocular images are detected and identified according to the method of the present invention. The detection and identification process is as follows: Figure 2 shown. Figure 2The present invention sequentially shows the deblurring process of the binocular image by S2, the interception of the coded mark in the deblurred binocular image by S3, and the feature extraction, center positioning and serial number recognition of the intercepted coded mark image by S41-S43. Each coded mark contains eight ellipses, and the diameter of each ellipse point is 12mm. Figure 2 The presented coded sign detection and recognition model is called CT-YoloTard.
[0117] Secondly, the three groups of binocular images were respectively input into the existing mainstream recognition models YOLOv8-L, YOLO MS and CT-Trad, and compared with the CT-YoloTard model of the present invention.
[0118] Again, we compared the accuracy and time consumption of the four models, YOLOv8-L, YOLO MS, CT-Trad, and CT-YoloTard, in recognizing coded logos, as shown in Tables 1 and 2.
[0119] Table 1 Comparison of coding mark recognition accuracy
[0120]
[0121] Table 2 Comparison of time consumption for coding mark recognition
[0122]
[0123] In Tables 1 and 2, in order to make the comparison results clearer and more straightforward, we randomly selected a monocular image from each group of binocular images, numbered them UAV_1, UAV_2, and UAV_3, to compare the accuracy and time consumption of the recognition results.
[0124] The positioning accuracy of the center coordinates of the coding mark requires an effective reference standard, and V-STARS is the most accurate three-dimensional coordinate measurement system currently disclosed, with an accuracy of up to 0.004mm. Therefore, we regard the center positioning coordinate values of the coding mark measured by V-STARS as the ground truth, that is, the error reference standard for center coordinate positioning. Table 3 randomly selects two coding marks in the images numbered UAV_1, UAV_2, and UAV_3, and compares the distance difference between the center coordinates of the coding mark and the center coordinates of the corresponding coding mark measured by V-STARS, showing the positioning accuracy deviation of the center coordinates of the coding mark by the CT-YoloTard model of the present invention.
[0125] Table 3 Coding mark recognition center coordinates and positioning accuracy
[0126]
[0127] It should be noted that the unit of coordinates in the above table is px, that is, pixel unit.
[0128] Conclusion
[0129] As can be seen from Tables 1 and 2, although the YOLOv8-L and YOLO MS models have a faster recognition speed and take 70ms-150ms to recognize images (5280×3956 resolution), the recognition effect of the coded mark is poor, and the recognition accuracy is between 40% and 75%; the CT-Trad algorithm is generally applied to images taken at close range in indoor scenes, and only performs well indoors, but in outdoor scenes, the entire drone image needs to be adjusted over a large area as a whole, and it is difficult to achieve accurate edge extraction, and the recognition accuracy is low, between 45% and 65%, and the recognition time is long, between 700ms and 1400ms; the recognition model CT-YoloTard of the present invention has a recognition accuracy of between 85% and 95%, which is 20%-40% higher than that of the CT-Trad algorithm, and the recognition time is between 200ms and 300ms, and the recognition efficiency is 3-5 times higher than that of the CT-Trad algorithm.
[0130] It can be seen from Table 3 that the method of the present invention has a very small error and is relatively stable in locating the center of the coding mark.
[0131] In summary, the method of coding mark detection and recognition of the present invention achieves a better balance between accuracy and time consumption. Compared with the existing mainstream recognition models, the CT-YoloTard model of the present invention provides fast, high-accuracy and high-precision reference features for image matching.
[0132] [Example 2]
[0133] In the recognition results of Example 1, this example randomly selects a group of recognized high-definition binocular images for matching.
[0134] It should be noted that the final image matching is a high-definition multi-eye image, so the last step of Example 1 is to restore the recognized coded mark image back to the high-definition multi-eye image obtained in S2, so that the final image matching work of S44 in the solution of the present invention can be carried out.
[0135] like Fig. 9 As shown, the selected high-definition binocular images are aligned according to the same-name coding marks identified therein to obtain a binocular coding mark point matching map, which is a stereo image with rich spatial dimension data and can be used for high-precision three-dimensional measurement.
[0136] For the selected binocular image, the process from detection and recognition to matching output in the method of the present invention is as follows: Figure 1As shown, the total time consumption of the process is 1.9 seconds. The resolution of the image recognized in Example 1 is 5280×3956, wherein the recognition results of the binocular image coding mark are shown in Table 4 and Table 5.
[0137] Table 4 Monocular image 1 coding mark sequence number and center coordinates
[0138]
[0139] Table 5 Monocular image 2 coding mark sequence number and center coordinates
[0140]
[0141]
[0142] Because the binocular images are taken from different angles, the coding marks captured by the two monocular images are not necessarily exactly the same. The coding marks we use for matching are the same-name coding marks identified in the two monocular images. In this embodiment, the matching coding marks with the same name are CODE_21, CODE_97, CODE_36, CODE_6, CODE_77, CODE_96, etc.
[0143] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A fast and high-precision multi-object matching method based on coded markers in dynamic scenes, characterized in that: The following steps are involved: S1: Acquire multi-camera images of matching targets with coded labels attached under multi-camera surveillance; S2: Use the AOD-CycleGAN model to deblur the multi-eye image obtained in S1 to obtain a high-definition multi-eye image; S3: Use the CT-YOLOv7 model to extract the coding mark of the high-definition multi-view image obtained in S2 to obtain a multi-view coding mark image set; S4: Identify and locate the multi-image coding mark image set intercepted by S3, and then perform multi-image matching through the coding marks with the same name.
2. According to claim 1, a fast and high-precision multi-objective matching method based on coded marks in a dynamic scene is characterized in that: The specific steps of S2 include: S21: Building the AOD-CycleGAN model The AOD architecture is introduced into the generator of the CycleGAN model to form the AOD-CycleGAN model, which is used to enhance the deblurring ability of the CycleGAN model. S22: Use the trained AOD-CycleGAN model to deblur all monocular images in the multi-eye image obtained in S1 one by one to obtain a high-definition multi-eye image.
3. According to claim 2, a fast and high-precision multi-objective matching method based on coded marks in a dynamic scene is characterized in that: The specific steps of S3 include: S31: Build CT-YOLOv7 model; S32: Use the trained CT-YOLOv7 model to extract the coding marks of all the monocular images in the high-definition multi-eye image obtained in S2 one by one to obtain a multi-eye coding mark image set.
4. According to claim 3, a fast and high-precision multi-objective matching method based on coded marks in a dynamic scene is characterized in that: The specific steps of S31 include: S311: Replace the conventional convolution in the backbone part and enhanced feature extraction part of the YOLOv7 original model with partial convolution; S312: Add the BRA mechanism to the main part of the YOLOv7 original model and the enhanced feature extraction module respectively; S313: Replace the loss function of the original YOLOv7 model with the WIOU loss function. So far, the CT-YOLOv7 model is obtained.
5. According to claim 4, a fast and high-precision multi-objective matching method based on coded marks in a dynamic scene is characterized in that: The specific steps of S4 include: S41: extracting edge features and locating the center of any image in the multi-objective coded mark image set obtained in S3; S42: Identify the template point and the decoding point of the coding mark according to the edge feature obtained in S41; S43: Obtain the serial number of the coding mark according to the number of the decoding point identified in S42, thereby realizing the identification and position calculation of the coding mark; S44: For each image in the multi-view coded mark image set obtained in S3, S41-S43 are repeated to find the true center coordinates of the same coded mark in the high-definition multi-view image, and the true center coordinates are used as an alignment reference to achieve matching between the multi-view images.
6. A fast and high-precision multi-objective matching system based on coded markers in dynamic scenes, characterized in that: include: A multi-eye image acquisition unit, which acquires multi-eye images using the method as described in any one of claim 1; A deblurring unit, which performs deblurring processing on the image using the method according to any one of claims 1 to 2; A coding mark interception unit, which intercepts the coding mark of the image using the method according to any one of claims 1 to 4; The image matching unit matches the coded marks with the same name in the multi-view images using the method as described in any one of claims 1 to 5 to obtain a stereoscopic image with rich spatial dimension data.
Citation Information
Patent Citations
A method for recognizing and locating encoded marks
CN109215016A
Cloth defect real-time detection method based on machine vision
CN117495814A
Method for manufacturing packaging materials using eco-friendly ink composition for gravure printing
KR102815862B1
