Photogrammetry coding mark identification method based on convolutional neural network and support arc

Through the recognition method based on convolutional neural network and support arc, combined with image enhancement and arc support line segment algorithm, the problem of slow recognition speed and low accuracy of photogrammetric coded mark recognition in complex scenes is solved, and efficient and accurate target recognition and high-precision are achieved. Precision measurement.

CN118587692APending Publication Date: 2024-09-03SHENZHEN UNIV

Patent Information

Application Number
CN202410618342.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing photogrammetry coded mark recognition methods have slow recognition speed, low accuracy, and low efficiency in complex scenes. It is especially difficult to achieve high-precision measurement at long distances and under complex lighting conditions.

Method used

A recognition method based on convolutional neural networks and supporting arcs is adopted to obtain the initial coded mark image data set for image enhancement and standardization processing, train the convolutional neural network model, and combine the arc support line segment algorithm to extract the range and center of the coded mark for simulation. radial transformation and decoding to improve recognition accuracy and efficiency.

Benefits of technology

It achieves fast and accurate sub-pixel level extraction of targets in complex scenes, meets millimeter-level high-precision measurement requirements, improves recognition speed and accuracy, and is suitable for large-scale engineering measurements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587692A
    Figure CN118587692A
Patent Text Reader

Abstract

The invention discloses a photogrammetry coding mark identification method based on a convolutional neural network and a support arc, and the method comprises the steps: obtaining an initial coding mark image data set, carrying out the preprocessing through an image enhancement technology, obtaining a first coding mark image data set, training a convolutional neural network model through the first coding mark image data set, and obtaining a second coding mark image data set; obtaining a trained convolutional neural network model; performing graying processing on a to-be-detected target coding mark image to obtain a coding mark grayscale image, performing coding mark range extraction on the coding mark grayscale image by using the trained convolutional neural network model, and extracting an ellipse of the coding mark range and a center of the coding mark range by using an arc support line segment algorithm to obtain a coding mark image; affine transformation and decoding are carried out on the coded mark grayscale image according to the shape of the ellipse, and decoding information is obtained; and the center of the coding mark range and the decoding information are used as coding mark identification results, so that the target identification rate in a complex scene is improved, and the identification speed is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of graphic recognition technology, and in particular to a photogrammetric coding mark recognition method, system, terminal and computer-readable storage medium based on convolutional neural network and supporting arc. Background Art

[0002] Precision engineering measurement in complex and large scenes requires millimeter-level accuracy. Although conventional total stations and three-dimensional laser scanning measurement technologies can meet the accuracy requirements, they are limited by the visibility conditions of complex scenes and cannot achieve rapid measurement of large projects. Photogrammetry has the characteristics of instantaneous imaging and high resolution, and is an efficient and high-precision three-dimensional measurement technology. Precision photogrammetry usually requires the use of artificial markers as accurate feature measurements to improve image matching accuracy. However, in outdoor large-scale engineering sites, photogrammetry artificial markers (referred to as phototargets) are easily unable to accurately identify targets due to long distances and changes in lighting, resulting in limited measurement accuracy. The impact of lighting changes on measurement results is uncontrollable, and weak lighting and occlusion directly affect the data quality of photogrammetry. The distance also causes different ground resolutions of photogrammetric images, thereby affecting the accuracy of photogrammetry. Existing methods for recognizing photogrammetric markers are subject to measurement limitations such as lighting changes in complex scenes and long distances. Therefore, in order to achieve precision photogrammetry in complex and large scenes, it is first necessary to study high-precision measurement and recognition methods for coded markers suitable for complex lighting and long distances.

[0003] In the prior art, methods for identifying photogrammetric coded marks are mainly divided into two categories: those based on traditional image processing and those based on deep learning. The traditional image processing method includes three steps: first, the edge of the coded mark is estimated by grayscale value difference to determine the approximate range of the mark; then the center position is determined; finally, the shape of the mark is restored and decoded. The recognition method based on image processing is relatively mature and can achieve high-precision recognition at the sub-pixel level for high-quality images, but the existing methods still have certain limitations. For example, edge detection and threshold processing are easily affected by complex background, noise or lighting conditions, which may cause the coded mark to be misidentified or unrecognizable. The method based on deep learning uses convolutional neural network (CNN) or other deep learning models for automatic learning and feature extraction to obtain the mark position and information. There are two main types of methods based on deep learning: one is based on candidate area selection, which requires pre-determining the candidate area of ​​the object's location and then making a judgment. It is slow but has high accuracy. Representative algorithms include RCNN, SPP-net, Fast-RCNN and Faster-RCNN series. The other is based on sliding windows, which divides the image into regular or different-scale windows and then makes a judgment on each window. It is fast. Representative algorithms include SSD (Single Shot MultiBox Detector, a target detection algorithm) and YOLO (You Only Look Once, also a target detection algorithm) series. The essence of both is convolutional neural network, which can train models of various complex backgrounds based on a large number of data sets to achieve target recognition in complex environments. However, the candidate area-based method has a low efficiency for large-scene engineering measurement due to its slow recognition speed, and its accuracy is not as good as the traditional total station measurement method. The sliding window-based recognition method is famous for its fast recognition speed, but the detection effect of such methods on small targets at a long distance is relatively poor, so it cannot meet the high-precision target recognition requirements of large-scene engineering measurement. Summary of the invention

[0004] In view of this, the present application provides a photogrammetric coding mark recognition method, system, terminal and computer-readable storage medium based on convolutional neural network and support arc to solve the problems of slow recognition speed, low accuracy and low efficiency of the photogrammetric coding mark recognition method in the prior art.

[0005] The present application proposes a photogrammetric coding mark recognition method based on a convolutional neural network and a support arc, and the photogrammetric coding mark recognition method based on a convolutional neural network and a support arc includes:

[0006] Acquire an initial coding mark image data set, preprocess the initial coding mark image data set using image enhancement technology to obtain a first coding mark image data set, and use the first coding mark image data set to train a convolutional neural network model to obtain the trained convolutional neural network model;

[0007] Acquire a code mark image of the target to be tested, perform grayscale processing on the code mark image of the target to be tested to obtain a code mark grayscale image, and use the trained convolutional neural network model to extract the code mark range of the code mark grayscale image;

[0008] Extracting the ellipse and the center of the coding mark range by using an arc support line segment algorithm, performing an affine transformation on the coding mark grayscale image according to the shape of the ellipse, and decoding the coding mark grayscale image after the affine transformation according to the coding mark range to obtain decoding information;

[0009] The center of the coding mark range and the decoded information are used as coding mark recognition results.

[0010] Optionally, the obtaining of an initial coding mark image dataset, preprocessing the initial coding mark image dataset using an image enhancement technology to obtain a first coding mark image dataset, and training a convolutional neural network model using the first coding mark image dataset to obtain the trained convolutional neural network model specifically includes:

[0011] Using photogrammetry to obtain a series of image data with circular coded marks as an initial coded mark image data set, and using an image standardization processing method to perform image enhancement processing on the initial coded mark image data set to obtain a first coded mark image data set;

[0012] Dividing the first coded mark image data set into a training data set and a test data set, and selecting a class of objects in the first coded mark image data set to be labeled as coded marks;

[0013] Presetting a first training weight for the convolutional neural network model, using the training data set to train the convolutional neural network model with the first training weight, updating the first training weight after the training, and using the test data set to test the trained convolutional neural network model to obtain optimal parameters of the convolutional neural network model;

[0014] The convolutional neural network model with the optimal parameters is used to perform initial prediction on the actual image data to be identified, output a description file of the coding mark, and complete the rough extraction of the coding mark.

[0015] Optionally, the image standardization process specifically includes:

[0016] Performing a de-meaning process on the initial coding mark image data set to achieve centralization of the initial coding mark image data set;

[0017] The formula for the image normalization process is as follows:

[0018]

[0019] Among them, Sta represents the image matrix after standardization, x represents the image matrix of the initial coding mark image data set, μ represents the mean, σ represents the standard deviation, and N represents the number of pixels.

[0020] Optionally, the step of acquiring a code mark image of the target to be measured and graying the code mark image of the target to be measured to obtain a code mark grayscale image specifically includes:

[0021] Acquire a code mark image of the target to be measured, and perform grayscale processing on the code mark image of the target to be measured using a maximum value method to obtain a code mark grayscale image;

[0022] The calculation formula of the maximum value method is as follows:

[0023] F(i,j)=max(R(i,j),G(i,j),B(i,j));

[0024] Among them, F(i,j) represents the grayscale value, R represents the corresponding value of the red channel, G represents the corresponding value of the green channel, B represents the corresponding value of the blue channel, and (i,j) represents the pixel coordinate value in the image plane coordinate system.

[0025] Optionally, the step of extracting the ellipse of the coding mark range and the center of the coding mark range using an arc support line segment algorithm, performing an affine transformation on the coding mark grayscale image according to the shape of the ellipse, and decoding the affine transformed coding mark grayscale image according to the coding mark range to obtain decoding information specifically includes:

[0026] Using an arc support line segment algorithm to generate an arc support line on the grayscale image of the coding mark, and fitting the ellipse and the center of the coding mark range according to the arc support line;

[0027] A first threshold is preset, and the ellipse and the point whose center is within the range of the first threshold are regarded as the central coordinate point of the coding mark range;

[0028] Performing an affine transformation on the coding mark grayscale image according to the shape of the ellipse to obtain a first target coding mark transformation image;

[0029] According to the coding mark range, a decoding method of circular coding mark points is used to perform template matching on the first target coding mark transformation image to obtain decoding information.

[0030] Optionally, the step of generating an arc support line on the grayscale image of the coding mark using an arc support line segment algorithm, and fitting an ellipse and a center of the coding mark range according to the arc support line, specifically includes:

[0031] Acquire the grayscale difference of the grayscale image of the coding mark, and extract the arc support line of the grayscale image of the coding mark according to the grayscale difference;

[0032] The direction of the arc support line is determined using the convexity condition of the arc, and the arc support line is fitted using the ellipse superposition fitting method to obtain the ellipse and center of the coding mark range.

[0033] Optionally, the method of using the convexity condition of the arc to determine the direction of the arc support line, and using an ellipse superposition fitting method to fit the arc support line to obtain the ellipse and center of the coding mark range specifically includes:

[0034] Acquire a point set of the arc support line, determine the direction of the arc support line using the arc convexity condition, and calculate the distribution matrix of the arc support line according to the point set;

[0035] Solve the generalized characteristic matrix of the distribution matrix to obtain the eigenvector of the positive eigenvalue of the distribution matrix, and use the eigenvector as the ellipse and center of the coding mark range.

[0036] The present application also proposes a photogrammetric coding mark recognition system based on a convolutional neural network and a support arc, and the photogrammetric coding mark recognition system based on a convolutional neural network and a support arc includes:

[0037] A convolutional neural network model training module is used to obtain an initial coding mark image data set, preprocess the initial coding mark image data set using image enhancement technology to obtain a first coding mark image data set, and use the first coding mark image data set to train a convolutional neural network model to obtain a trained convolutional neural network model;

[0038] A coding mark range extraction module is used to obtain a coding mark image of a target to be tested, grayscale the coding mark image of the target to be tested to obtain a coding mark grayscale image, and extract a coding mark range of the coding mark grayscale image using the trained convolutional neural network model;

[0039] A coding mark image decoding module, used for extracting the ellipse and the center of the coding mark range by using an arc support line segment algorithm, performing an affine transformation on the coding mark grayscale image according to the shape of the ellipse, and decoding the coding mark grayscale image after the affine transformation according to the coding mark range to obtain decoding information;

[0040] The coding mark result recognition module is used to take the center of the coding mark range and the decoding information as the coding mark recognition result.

[0041] The present application also proposes a terminal, which includes: a memory, a processor, and a photogrammetric coding mark recognition program based on a convolutional neural network and a supporting arc, which is stored in the memory and can be run on the processor. When the photogrammetric coding mark recognition program based on a convolutional neural network and a supporting arc is executed by the processor, the steps of the photogrammetric coding mark recognition method based on a convolutional neural network and a supporting arc are implemented.

[0042] The present application also proposes a computer-readable storage medium, which stores a photogrammetric coding mark recognition program based on a convolutional neural network and a supporting arc. When the photogrammetric coding mark recognition program based on a convolutional neural network and a supporting arc is executed by a processor, the steps of the photogrammetric coding mark recognition method based on a convolutional neural network and a supporting arc are implemented.

[0043] The beneficial effects of the present application are as follows: Different from the prior art, the present application obtains an initial coding mark image data set, pre-processes the initial coding mark image data set using image enhancement technology, obtains a first coding mark image data set, uses the first coding mark image data set to train a convolutional neural network model, obtains a trained convolutional neural network model, and prepares for subsequent steps; secondly, the present application obtains a coding mark image of a target to be tested, grayscales the coding mark image of the target to be tested, obtains a coding mark grayscale image, uses the trained convolutional neural network model to extract the coding mark range from the coding mark grayscale image, and obtains The coding mark range improves the target recognition rate in complex scenes; in addition, the present application uses the arc support line segment algorithm to extract the ellipse of the coding mark range and the center of the coding mark range, performs an affine transformation on the coding mark grayscale image according to the shape of the ellipse, and decodes the affine transformed coding mark grayscale image according to the coding mark range to obtain decoding information, and uses the center of the coding mark range and the decoding information as the coding mark recognition result, which improves the recognition speed, increases the recognition accuracy and recognition efficiency, and realizes the sub-pixel level fast and accurate extraction of the coding mark position. At the same time, it can also meet the millimeter-level high-precision measurement that is no less than traditional measurement methods such as total stations.

[0044] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0046] Figure 1 It is a flowchart of a preferred embodiment of the photogrammetric coding mark recognition method based on convolutional neural network and support arc of the present application;

[0047] Figure 2 It is a schematic diagram of a coding mark of an embodiment of the photogrammetric coding mark recognition method based on a convolutional neural network and a supporting arc of the present application;

[0048] Figure 3 It is a technical roadmap of an embodiment of a photogrammetric coded sign recognition method based on a convolutional neural network and supporting arcs of the present application;

[0049] Figure 4 It is a schematic diagram of the principle of a preferred embodiment of the photogrammetric coding mark recognition system based on convolutional neural network and supporting arcs of the present application;

[0050] Figure 5 A schematic diagram of the operating environment of a preferred embodiment of the terminal of the present application. DETAILED DESCRIPTION

[0051] In order to enable those skilled in the art to better understand the technical solution of the present application, the photogrammetric coded mark recognition method, system, terminal and computer-readable storage medium based on convolutional neural network and support arc provided by the present application are further described in detail below in combination with the accompanying drawings and specific implementation methods. It can be understood that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0052] The terms "first", "second", etc. in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0053] The present application provides a method, system, terminal and computer-readable storage medium for recognizing photogrammetric coded marks based on convolutional neural networks and support arcs, so as to solve the problems of slow recognition speed, low accuracy and low efficiency of the methods for recognizing photogrammetric coded marks in the prior art.

[0054] See also Figures 1 to 3 , Figure 1 It is a flowchart of a preferred embodiment of the photogrammetric coding mark recognition method based on convolutional neural network and support arc of the present application; Figure 2 It is a schematic diagram of a coding mark of an embodiment of the photogrammetric coding mark recognition method based on a convolutional neural network and a supporting arc of the present application; Figure 3 It is the technical roadmap of the embodiment of the photogrammetric coded mark recognition method based on convolutional neural network and supporting arc in this application.

[0055] This application proposes a photogrammetric coded sign recognition method based on convolutional neural network and support arc, such as Figure 1 and Figure 3 As shown, the photogrammetric coding mark recognition method based on convolutional neural network and support arc includes the steps of:

[0056] Step S100: Obtain an initial coding mark image data set, preprocess the initial coding mark image data set using image enhancement technology to obtain a first coding mark image data set, and use the first coding mark image data set to train a convolutional neural network model to obtain the trained convolutional neural network model.

[0057] Specifically, an initial coding mark image data set is obtained, and the initial coding mark image data set is preprocessed using image enhancement technology to obtain a first coding mark image data set. The convolutional neural network model is trained using the first coding mark image data set to obtain a trained convolutional neural network model, and the rough extraction of the coding mark is completed to prepare for subsequent steps.

[0058] The step S100: obtaining an initial coding mark image data set, preprocessing the initial coding mark image data set using image enhancement technology to obtain a first coding mark image data set, and training a convolutional neural network model using the first coding mark image data set to obtain the trained convolutional neural network model, specifically includes:

[0059] Using photogrammetry to obtain a series of image data with circular coded marks as an initial coded mark image data set, and using an image standardization processing method to perform image enhancement processing on the initial coded mark image data set to obtain a first coded mark image data set;

[0060] Dividing the first coded mark image data set into a training data set and a test data set, and selecting a class of objects in the first coded mark image data set to be labeled as coded marks;

[0061] Presetting a first training weight for the convolutional neural network model, using the training data set to train the convolutional neural network model with the first training weight, updating the first training weight after the training, and using the test data set to test the trained convolutional neural network model to obtain optimal parameters of the convolutional neural network model;

[0062] The convolutional neural network model with the optimal parameters is used to perform initial prediction on the actual image data to be identified, output a description file of the coding mark, and complete the rough extraction of the coding mark.

[0063] Specifically, the initial coding mark image dataset mainly uses photogrammetry to obtain a large number of circular coding mark image data, and uses the method of image size unification and image standardization to organize and enhance the initial coding mark image dataset to obtain the first coding mark image dataset, and annotate the first coding mark image dataset, and only select one type of object as the target (i.e., the coding mark) and annotate it as the coding mark. The coding mark image dataset is divided into a training set and a test set, and the first training weight of the convolutional neural network model is preset, and the first training weight is loaded. The training dataset is used to train the convolutional neural network model with the first training weight. After the training, the first training weight is updated, and the trained convolutional neural network model is tested with the test set to obtain and record the optimal parameters of the convolutional neural network model, and the trained convolutional neural network model with the optimal parameters is used to make an initial prediction of the actual image data to be identified, and the description file of the coding mark (including the number and range of the coding mark (i.e., the width and height of the anchor box and the center coordinates) information) is output, and the rough extraction of the coding mark is completed.

[0064] The image standardization process specifically includes:

[0065] Performing a de-meaning process on the initial coding mark image data set to achieve centralization of the initial coding mark image data set;

[0066] The formula for the image normalization process is as follows:

[0067]

[0068] Among them, Sta represents the image matrix after standardization, x represents the image matrix of the initial coding mark image data set, μ represents the mean, σ represents the standard deviation, and N represents the number of pixels.

[0069] Specifically, image standardization is to centralize the data by removing the mean. According to convex optimization theory and data probability distribution, data centralization conforms to the law of data distribution and is easier to achieve generalization effect after training. In addition, the grayscale transformation method can be used to adjust the contrast of the image to make the characteristics of the encoded mark more obvious.

[0070] Among them, other methods can be used to replace image enhancement technology, such as considering using image enhancement technology based on generative adversarial network (GAN) to further improve the model's adaptability to image differences.

[0071] Step S200: Acquire a coding mark image of the target to be tested, grayscale the coding mark image of the target to be tested to obtain a coding mark grayscale image, and use the trained convolutional neural network model to extract the coding mark range of the coding mark grayscale image.

[0072] Specifically, the coded mark image of the target to be tested is obtained, and the coded mark image of the target to be tested is pre-processed into grayscale to obtain the coded mark grayscale image. The grayscale processing methods mainly include component method, maximum method, average method and weighted average method. The maximum method is used in this application to increase the contrast. The trained convolutional neural network model is used to extract the coded mark range from the coded mark grayscale image to obtain the coded mark range, thereby improving the target recognition rate in complex scenes. Figure 2 As shown, R1, R2 and R3 are the radii of three concentric circles, which can be adjusted according to actual conditions. The outermost white circle is the coding area. Compared with traditional image processing methods, such as edge detection and threshold processing, this application has higher speed and real-time performance, making it more suitable for application scenarios that require rapid identification.

[0073] The step of obtaining a coding mark image of a target to be tested and graying the coding mark image of the target to be tested to obtain a coding mark grayscale image specifically includes:

[0074] Acquire a code mark image of the target to be measured, and perform grayscale processing on the code mark image of the target to be measured using a maximum value method to obtain a code mark grayscale image;

[0075] The calculation formula of the maximum value method is as follows:

[0076] F(i,j)=max(R(i,j),G(i,j),B(i,j));

[0077] Among them, F(i,j) represents the grayscale value, R represents the corresponding value of the red channel, G represents the corresponding value of the green channel, B represents the corresponding value of the blue channel, and (i,j) represents the pixel coordinate value in the image plane coordinate system.

[0078] Step S300: Use the arc support line segment algorithm to extract the ellipse of the coding mark range and the center of the coding mark range, perform affine transformation on the coding mark grayscale image according to the shape of the ellipse, and decode the coding mark grayscale image after affine transformation according to the coding mark range to obtain decoding information.

[0079] Specifically, an arc-supported line segment algorithm is used to extract the ellipse of the coding mark range and the center of the coding mark range, an affine transformation is performed on the coding mark grayscale image according to the shape of the ellipse, and the affine transformed coding mark grayscale image is decoded according to the coding mark range to obtain decoding information, thereby improving the recognition speed, increasing the recognition accuracy and recognition efficiency, and realizing sub-pixel-level fast and accurate extraction of the coding mark position, while also meeting millimeter-level high-precision measurement that is no less than traditional measurement methods such as total stations.

[0080] Wherein, the step S300: using an arc support line segment algorithm to extract an ellipse of the coding mark range and the center of the coding mark range, performing an affine transformation on the coding mark grayscale image according to the shape of the ellipse, and decoding the coding mark grayscale image after the affine transformation according to the coding mark range to obtain decoding information, specifically includes:

[0081] Using an arc support line segment algorithm to generate an arc support line on the grayscale image of the coding mark, and fitting the ellipse and the center of the coding mark range according to the arc support line;

[0082] A first threshold is preset, and the ellipse and the point whose center is within the range of the first threshold are regarded as the center coordinate point of the extracted coding mark range;

[0083] Performing an affine transformation on the coding mark grayscale image according to the shape of the ellipse to obtain a first target coding mark transformation image;

[0084] According to the coding mark range, a decoding method of circular coding mark points is used to perform template matching on the first target coding mark transformation image to obtain decoding information.

[0085] Specifically, an arc support line is generated on the coding mark grayscale image using an arc support line algorithm, an ellipse and a center of the coding mark range are fitted according to the arc support line, a first threshold is preset, and verification is performed by fitting the center of the ellipse and the roughly extracted center of the coding mark range, and points of the ellipse and the center within the first threshold range are regarded as the central coordinate points of the extracted coding mark range, and an affine transformation is performed on the coding mark grayscale image according to the shape of the ellipse to obtain a first target coding mark transformation image, and a decoding method of a circular coding mark point is used to perform template matching on the first target coding mark transformation image according to the coding mark range to obtain decoding information.

[0086] The affine transformation process is as follows: Assuming that the coordinates of a point A in the actual target image under the perfect circle coding mark template are B, the relationship between the two can be expressed by the transformation matrix T. The mathematical model is as follows:

[0087] A = TB;

[0088] Among them, A represents a point in the target image, B represents the coordinates of point A under the perfect circle coding mark template, and T represents the affine transformation matrix.

[0089] The step of generating an arc support line on the grayscale image of the coding mark using an arc support line segment algorithm and fitting the ellipse of the coding mark range and the center of the coding mark range according to the arc support line specifically includes:

[0090] Acquire the grayscale difference of the grayscale image of the coding mark, and extract the arc support line of the grayscale image of the coding mark according to the grayscale difference;

[0091] The direction of the arc support line is determined using the convexity condition of the arc, and the arc support line is fitted using the ellipse superposition fitting method to obtain the ellipse and center of the coding mark range.

[0092] The step of: using the convexity condition of the arc to determine the direction of the arc support line, using the ellipse superposition fitting method to fit the arc support line, and obtaining the ellipse and center of the coding mark range specifically includes:

[0093] Acquire a point set of the arc support line, determine the direction of the arc support line using the arc convexity condition, and calculate the distribution matrix of the arc support line according to the point set;

[0094] Solve the generalized characteristic matrix of the distribution matrix to obtain the eigenvector of the positive eigenvalue of the distribution matrix, and use the eigenvector as the ellipse and center of the coding mark range.

[0095] Specifically, a point set of the arc support line is obtained, and the point set is Γ 1 ={p 1 (x 1 ,y 1 ),p 1 (x 2 ,y 2 )…p n (x n ,y n )}, use the convexity condition of the arc to determine the direction of the arc support line, calculate the distribution matrix S of the arc support line based on the point set, and solve the generalized characteristic matrix S of the distribution matrix -1 C (where C is a constant constraint matrix), obtain the eigenvector of the positive eigenvalue of the distribution matrix, and use the eigenvector as the ellipse of the coding mark range, which is the fitting ellipse required by Γ.

[0096] Among them, the present application can use other geometric shape fitting methods to replace the arc support segment algorithm. Other geometric shape fitting methods, such as Hough transform, can also be used to finely extract the features of the coding mark, depending on the specific scenario.

[0097] Step S400: taking the center of the coding mark range and the decoding information as the coding mark recognition result.

[0098] Specifically, the coded mark recognition result mainly includes the center position information of the coded mark range positioning circle and the coded information of the decoded coded mark, where the coded information is the coded mark serial number. The center position (x, y) is the ellipse center coordinates in the image coordinate system obtained by coarse recognition of the deep learning model and fine arc fitting of the ellipse, and the coded information of the coded mark is the coded serial number information obtained by template matching. The final recognition effect of the coded mark recognition can successfully obtain the coded mark serial number and the sub-pixel coordinates of the center of the coded mark.

[0099] In addition, the present application can also use only deep learning methods for preliminary identification, and then use traditional image processing methods for further fine extraction; or use convolutional neural networks for fast preliminary identification, and then combine the results of deep learning to use the arc support segment algorithm for more accurate ellipse center positioning; or on the basis of using convolutional neural networks, introduce image enhancement technology and train with a corrected data set to improve the robustness of the model.

[0100] In addition, in addition to geometric information, the present application may also consider introducing semantic information of the coding mark, such as special characters and colors in the coding mark, to improve the accuracy of recognition.

[0101] See also Figures 4 to 5 , Figure 4 It is a schematic diagram of the principle of a preferred embodiment of the photogrammetric coding mark recognition system based on convolutional neural network and supporting arcs of the present application; Figure 5 A schematic diagram of the operating environment of a preferred embodiment of the terminal of the present application.

[0102] In some embodiments, Figure 4 As shown, based on the above-mentioned photogrammetric coded mark recognition method based on convolutional neural network and support arc, the present application also proposes a photogrammetric coded mark recognition system based on convolutional neural network and support arc, and the photogrammetric coded mark recognition system based on convolutional neural network and support arc includes:

[0103] A convolutional neural network model training module 51 is used to obtain an initial coding mark image data set, pre-process the initial coding mark image data set using an image enhancement technology to obtain a first coding mark image data set, and train a convolutional neural network model using the first coding mark image data set to obtain a trained convolutional neural network model;

[0104] The coding mark range extraction module 52 is used to obtain the coding mark image of the target to be tested, grayscale the coding mark image of the target to be tested to obtain a coding mark grayscale image, and use the trained convolutional neural network model to extract the coding mark range of the coding mark grayscale image;

[0105] A coding mark image decoding module 53 is used to extract the ellipse of the coding mark range and the center of the coding mark range by using an arc support line segment algorithm, perform an affine transformation on the coding mark grayscale image according to the shape of the ellipse, and decode the coding mark grayscale image after the affine transformation according to the coding mark range to obtain decoding information;

[0106] The coding mark result recognition module 54 is used to take the center of the coding mark range and the decoding information as the coding mark recognition result.

[0107] In some embodiments, Figure 5 As shown, based on the above-mentioned photogrammetric coding mark recognition method and system based on convolutional neural network and support arc, the present application also proposes a terminal accordingly, the terminal comprising: a memory 20, a processor 10, a display 30, Figure 5 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0108] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal, such as the program code of the installation terminal, etc. The memory 20 may also be used to temporarily store data that has been output or is to be output.

[0109] In one embodiment, a photogrammetric coding mark recognition program 40 based on a convolutional neural network and a supporting arc is stored in the memory 20. The photogrammetric coding mark recognition program 40 based on a convolutional neural network and a supporting arc can be executed by the processor 10, thereby realizing the photogrammetric coding mark recognition method based on a convolutional neural network and a supporting arc in the present application.

[0110] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the photogrammetric coding mark recognition method based on convolutional neural network and support arc.

[0111] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.

[0112] The present application also proposes a computer-readable storage medium, which stores a photogrammetric coding mark recognition program based on a convolutional neural network and a supporting arc. When the photogrammetric coding mark recognition program based on a convolutional neural network and a supporting arc is executed by a processor, the steps of the photogrammetric coding mark recognition method based on a convolutional neural network and a supporting arc as described above are implemented.

[0113] In summary, the present application obtains an initial coding mark image data set, pre-processes the initial coding mark image data set using image enhancement technology, obtains a first coding mark image data set, uses the first coding mark image data set to train a convolutional neural network model, and obtains a trained convolutional neural network model to prepare for subsequent steps; secondly, the present application obtains a coding mark image of the target to be measured, grayscales the coding mark image of the target to be measured, obtains a coding mark grayscale image, uses the trained convolutional neural network model to extract the coding mark range from the coding mark grayscale image, and obtains the coding mark range, thereby improving the target recognition rate in complex scenes; in addition, the present application extracts the ellipse of the coding mark range and the center of the coding mark range by using an arc support line segment algorithm, performs an affine transformation on the coding mark grayscale image according to the shape of the ellipse, decodes the affine transformed coding mark grayscale image according to the coding mark range, obtains decoding information, and uses the center of the coding mark range and the decoding information as the coding mark recognition result, thereby improving the recognition speed, increasing the recognition accuracy and recognition efficiency, and realizing the sub-pixel level fast and accurate extraction of the coding mark position, while also meeting the millimeter-level high-precision measurement that is no less than traditional measurement methods such as total stations. In addition, compared with the single method of only using traditional image processing or deep learning, the present application organically combines the two, fully realizing the advantages of deep learning in fast preliminary recognition and the advantages of traditional image processing in accurate ellipse center positioning. Such comprehensive application can improve the overall recognition effect. Deep learning performs fast preliminary recognition and successfully reduces the time cost of pre-processing different images, providing strong support for improving the efficiency of the entire system.

[0114] It should be noted that the various optional implementations introduced in the embodiments of the present application can be implemented in combination with each other or can be implemented separately, and the embodiments of the present application are not limited to this.

[0115] In the description of the present application, it should be understood that the terms "upper", "lower", "left", "right", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, and a specific orientation structure and operation. Therefore, it cannot be understood as a limitation on the present application. In addition, "first" and "second" are only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present application, unless otherwise specified, "multiple" means two or more.

[0116] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", etc. should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0117] The above embodiments are described with reference to the accompanying drawings, and other different forms and embodiments are also feasible without departing from the principles of the present application, so the present application should not be constructed as a limitation of the embodiments proposed herein. More specifically, these embodiments are provided so that the present application will be perfect and complete, and the scope of the present application will be conveyed to those skilled in the art. In the accompanying drawings, the component sizes and relative sizes may be exaggerated for clarity. The terms used herein are only based on the purpose of describing specific embodiments and are not intended to be limiting. The terms "comprising" and / or "including" when used in this specification indicate the presence of the features, integers, components and / or components, but do not exclude the presence or increase of one or more other feature integers, components, components and / or their groups. Unless otherwise indicated, when stated, the numerical range includes the upper and lower limits of the range and any sub-ranges therebetween.

[0118] The above descriptions are only some embodiments of the present application, and do not limit the protection scope of the present application. Any equivalent device or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A photogrammetric coded sign recognition method based on convolutional neural network and support arcs, It is characterized in that include: Acquire an initial coding mark image data set, preprocess the initial coding mark image data set using image enhancement technology to obtain a first coding mark image data set, and use the first coding mark image data set to train a convolutional neural network model to obtain the trained convolutional neural network model; Acquire a code mark image of the target to be tested, perform grayscale processing on the code mark image of the target to be tested to obtain a code mark grayscale image, and use the trained convolutional neural network model to extract the code mark range of the code mark grayscale image; Extracting the ellipse and the center of the coding mark range by using an arc support line segment algorithm, performing an affine transformation on the coding mark grayscale image according to the shape of the ellipse, and decoding the coding mark grayscale image after the affine transformation according to the coding mark range to obtain decoding information; The center of the coding mark range and the decoded information are used as coding mark recognition results.

2. The photogrammetric coding mark recognition method based on convolutional neural network and support arc according to claim 1, It is characterized in that The obtaining of an initial coding mark image data set, preprocessing the initial coding mark image data set using an image enhancement technology to obtain a first coding mark image data set, and training a convolutional neural network model using the first coding mark image data set to obtain the trained convolutional neural network model specifically includes: Using photogrammetry to obtain a series of image data with circular coded marks as an initial coded mark image data set, and using an image standardization processing method to perform image enhancement processing on the initial coded mark image data set to obtain a first coded mark image data set; Dividing the first coded mark image data set into a training data set and a test data set, and selecting a class of objects in the first coded mark image data set to be labeled as coded marks; Presetting a first training weight for the convolutional neural network model, using the training data set to train the convolutional neural network model with the first training weight, updating the first training weight after the training, and using the test data set to test the trained convolutional neural network model to obtain optimal parameters of the convolutional neural network model; The convolutional neural network model with the optimal parameters is used to perform initial prediction on the actual image data to be identified, output a description file of the coding mark, and complete the rough extraction of the coding mark.

3. The photogrammetric coding mark recognition method based on convolutional neural network and support arc according to claim 2, It is characterized in that The image standardization process specifically includes: Performing a de-meaning process on the initial coding mark image data set to achieve centralization of the initial coding mark image data set; The formula for the image normalization process is as follows: Among them, Sta represents the image matrix after standardization, x represents the image matrix of the initial coding mark image data set, μ represents the mean, σ represents the standard deviation, and N represents the number of pixels.

4. The photogrammetric coding mark recognition method based on convolutional neural network and support arc according to claim 1, It is characterized in that The step of obtaining a code mark image of the target to be measured and graying the code mark image of the target to be measured to obtain a code mark grayscale image specifically includes: Acquire a code mark image of the target to be measured, and perform grayscale processing on the code mark image of the target to be measured using a maximum value method to obtain a code mark grayscale image; The calculation formula of the maximum value method is as follows: F(i,j)=max(R(i,j),G(i,j),B(i,j)); Among them, F(i,j) represents the grayscale value, R represents the corresponding value of the red channel, G represents the corresponding value of the green channel, B represents the corresponding value of the blue channel, and (i,j) represents the pixel coordinate value in the image plane coordinate system.

5. The photogrammetric coding mark recognition method based on convolutional neural network and support arc according to claim 1, It is characterized in that The method of extracting the ellipse of the coding mark range and the center of the coding mark range by using an arc support line segment algorithm, performing an affine transformation on the coding mark grayscale image according to the shape of the ellipse, and decoding the affine transformed coding mark grayscale image according to the coding mark range to obtain decoding information specifically includes: Using an arc support line segment algorithm to generate an arc support line on the grayscale image of the coding mark, and fitting the ellipse and the center of the coding mark range according to the arc support line; A first threshold is preset, and the ellipse and the point whose center is within the range of the first threshold are regarded as the central coordinate point of the coding mark range; Performing an affine transformation on the coding mark grayscale image according to the shape of the ellipse to obtain a first target coding mark transformation image; According to the coding mark range, a decoding method of circular coding mark points is used to perform template matching on the first target coding mark transformation image to obtain decoding information.

6. The photogrammetric coding mark recognition method based on convolutional neural network and support arc according to claim 5, It is characterized in that The method of using an arc support line segment algorithm to generate an arc support line on the grayscale image of the coding mark, and fitting the ellipse and the center of the coding mark range according to the arc support line, specifically includes: Acquire the grayscale difference of the grayscale image of the coding mark, and extract the arc support line of the grayscale image of the coding mark according to the grayscale difference; The direction of the arc support line is determined using the convexity condition of the arc, and the arc support line is fitted using the ellipse superposition fitting method to obtain the ellipse and center of the coding mark range.

7. The photogrammetric coding mark recognition method based on convolutional neural network and support arc according to claim 6, It is characterized in that The method of using the convexity condition of the arc to determine the direction of the arc support line and using the ellipse superposition fitting method to fit the arc support line to obtain the ellipse and center of the coding mark range specifically includes: Acquire a point set of the arc support line, determine the direction of the arc support line using the arc convexity condition, and calculate the distribution matrix of the arc support line according to the point set; Solve the generalized characteristic matrix of the distribution matrix to obtain the eigenvector of the positive eigenvalue of the distribution matrix, and use the eigenvector as the ellipse and center of the coding mark range.

8. A photogrammetric coded sign recognition system based on convolutional neural network and support arcs, It is characterized in that The photogrammetric coding mark recognition system based on convolutional neural network and support arc includes: A convolutional neural network model training module is used to obtain an initial coding mark image data set, preprocess the initial coding mark image data set using image enhancement technology to obtain a first coding mark image data set, and use the first coding mark image data set to train a convolutional neural network model to obtain a trained convolutional neural network model; A coding mark range extraction module is used to obtain a coding mark image of a target to be tested, grayscale the coding mark image of the target to be tested to obtain a coding mark grayscale image, and extract a coding mark range of the coding mark grayscale image using the trained convolutional neural network model; A coding mark image decoding module, used for extracting the ellipse and the center of the coding mark range by using an arc support line segment algorithm, performing an affine transformation on the coding mark grayscale image according to the shape of the ellipse, and decoding the coding mark grayscale image after the affine transformation according to the coding mark range to obtain decoding information; The coding mark result recognition module is used to take the center of the coding mark range and the decoding information as the coding mark recognition result.

9. A terminal, It is characterized in that The terminal includes: a memory, a processor, and a photogrammetric coding mark recognition program based on a convolutional neural network and a support arc, which is stored in the memory and can be run on the processor. When the photogrammetric coding mark recognition program based on a convolutional neural network and a support arc is executed by the processor, the steps of the photogrammetric coding mark recognition method based on a convolutional neural network and a support arc are implemented as described in any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a photogrammetric coding mark recognition program based on a convolutional neural network and a supporting arc. When the photogrammetric coding mark recognition program based on a convolutional neural network and a supporting arc is executed by a processor, the steps of the photogrammetric coding mark recognition method based on a convolutional neural network and a supporting arc are implemented as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Identification method for motion blurred coding point based on convolutional neural network

    CN106780546A

  • Annular coding point identification and decoding method

    CN114792104A

  • Ship target instance segmentation method based on Gaussian coding and decoding

    CN118038040A

  • Image processing method and device, and computer-readable storage medium

    US20220036124A1

Cited By

  • Tunnel target identification center positioning method

    CN119131072A

  • Target positioning and recognition method for high-precision photogrammetry of jacket

    CN119469078A