A three-coordinate machine intelligent positioning detection method and system based on stereo vision

Stereo vision technology and deep learning models are used to achieve efficient 3D reconstruction and virtual reality interaction in a three-dimensional coordinate machine, solving the problems of large calculations and poor interactivity in traditional methods, and providing fast and accurate 3D morphological understanding and remote collaboration capabilities.

CN118261985BActive Publication Date: 2024-08-30NANTONG FUCHUANG PRECISION MFG CO LTD

Patent Information

Application Number
CN202410680596.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-08-30
Estimated Expiration
2044-05-29

AI Technical Summary

Technical Problem

Traditional image processing and computer vision methods in CMMs require large amounts of calculations and slow processing speeds, making it difficult to meet real-time requirements. They also lack natural, intuitive, and interesting user interaction, and cannot achieve simultaneous operation and remote collaboration by multiple people.

Method used

Adopt an intelligent positioning detection method based on stereo vision, use multiple smart cameras to capture object images, extract feature points through a deep learning model, combine the SURF feature matching algorithm and multi-view geometry algorithm for 3D reconstruction, and import the results into the virtual reality environment, allowing Users interact and understand the three-dimensional form of objects through virtual reality devices.

Benefits of technology

It improves computing efficiency and matching accuracy, provides a natural and intuitive user interaction experience, supports simultaneous operation and remote collaboration by multiple people, and is suitable for remote collaboration and education applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118261985B
    Figure CN118261985B
Patent Text Reader

Abstract

The present invention discloses a three-coordinate machine intelligent positioning detection method and system based on stereoscopic vision, which is used in the field of positioning detection. The method comprises the following steps: using multiple intelligent cameras to capture the object to be measured and obtain the original image; training the deep learning model according to the image quality and environmental characteristics; inputting the trained deep learning model into the original image to extract the feature points of the object; using the SURF feature matching algorithm in the feature points to find matching feature point pairs in images of different perspectives; using the multi-view geometry algorithm to perform three-dimensional reconstruction; importing the results of the three-dimensional reconstruction into a virtual reality environment, so that users can observe and interact through virtual reality equipment; and adjusting the measurement strategy in real time. The present invention effectively removes mismatched point pairs, improves the accuracy of the matching results, performs feature point matching in multi-perspective images, and can improve the accuracy of three-dimensional reconstruction and visual navigation of objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of positioning detection, and in particular to a three-coordinate machine intelligent positioning detection method and system based on stereoscopic vision. Background Art

[0002] A three-dimensional coordinate measuring machine, also known as a three-dimensional coordinate measuring machine (CMM), is a precision measuring device used to measure the three-dimensional spatial coordinates of each point on the surface of an object. It can evaluate the shape, size, position accuracy and other parameters of the object based on the measurement results. CMM is widely used in manufacturing, aviation, automobile, medical equipment and other industries for product quality inspection and process control.

[0003] The three-coordinate machine is mainly composed of a probe, a measuring probe, a base, three mutually perpendicular measuring axes and a data processing system. The movement and measurement of each axis are controlled by a computer, which can realize automatic operation. During the measurement process, the probe moves along the three axes and contacts the measuring points on the surface of the object, and then calculates the coordinate positions of these points in space through high-precision sensors and data processing systems. These data can be used to draw the geometric model of the object, evaluate product quality or assist in the design and manufacturing process.

[0004] Traditional image processing and computer vision algorithms usually involve many complex mathematical operations and nonlinear transformations, with a large amount of calculation, resulting in slow processing speed and difficulty in meeting real-time requirements. Traditional feature extraction and matching methods are sensitive to factors such as image rotation, scaling, and lighting changes, and are prone to mismatching, affecting subsequent image understanding and analysis. In addition, image processing and computer vision methods are mainly computer-centric and lack consideration for user interaction and experience. They cannot meet people's needs for more natural, intuitive, and interesting interaction methods, and it is difficult for multiple people to operate and study the same three-dimensional model at the same time, which cannot meet the needs of remote collaboration and sharing.

[0005] Currently, no effective solution has been proposed for the problems in the related technologies. Summary of the invention

[0006] In order to overcome the above problems, the present invention aims to propose a three-coordinate machine intelligent positioning detection method and system based on stereoscopic vision, with the aim of solving the problem that image processing and computer vision methods are mainly computer-centric, lack consideration of user interaction and experience, and cannot meet people's needs for more natural, intuitive and interesting interaction methods.

[0007] To this end, the specific technical solution adopted by the present invention is as follows:

[0008] According to one aspect of the present invention, a three-coordinate machine intelligent positioning detection method based on stereoscopic vision is provided, and the three-coordinate machine intelligent positioning detection method comprises the following steps:

[0009] S1, use multiple smart cameras to capture the object under test, and adaptively adjust parameters to adapt to different environments, while obtaining original images from different perspectives;

[0010] S2, training deep learning models based on image quality and environmental characteristics;

[0011] S3, input the trained deep learning model into the original image, automatically extract the feature points of the object, and optimize the network parameters in real time according to the characteristics of the object and the environment;

[0012] S4, using the SURF feature matching algorithm in the feature points to find matching feature point pairs in images of different perspectives;

[0013] S5. Based on the feature point pairs, a multi-view geometry algorithm is used to perform 3D reconstruction, and optimization is performed by combining prior knowledge of the object and model constraints;

[0014] S6. Importing the results of the three-dimensional reconstruction into a virtual reality environment, so that users can observe and interact through virtual reality equipment to intuitively understand the three-dimensional shape and position of the object;

[0015] S7. Adjust the measurement strategy in real time according to the object characteristics, environmental conditions and the results of 3D reconstruction.

[0016] Optionally, using multiple smart cameras to capture the object to be measured and adaptively adjusting parameters to adapt to different environments while acquiring original images from different viewing angles includes the following steps:

[0017] S11. Select a smart camera with high resolution, high dynamic range and low noise according to the object type, size, material and environmental conditions;

[0018] S12, installing the smart camera at a preset position to ensure that the complete form of the object to be measured can be captured;

[0019] S13. In the process of real-time image capture, the smart camera automatically adjusts the camera setting parameters (such as exposure time, gain, white balance, etc.) according to environmental factors (such as light, background, object movement, etc.) to obtain the best image quality;

[0020] S14, multiple smart cameras start shooting at the same time to ensure that the images of the objects being measured are captured from different perspectives at the same time;

[0021] S15, balance image quality by adjusting shooting frequency and resolution;

[0022] S16, transmitting the original images captured by each camera to the central processing unit in real time.

[0023] Optionally, training a deep learning model based on image quality and environmental characteristics comprises the following steps:

[0024] S21, obtaining the original image in the central processing unit, and performing data preprocessing, such as denoising, color correction, scaling, etc.;

[0025] S22, manually annotating the preprocessed image, inputting the manually annotated information and the image into the convolutional neural network model, and extracting the features of the image through multi-layer convolution, activation and pooling;

[0026] S23, integrate the features of the image through the fully connected layer, and classify them through soft maximization to obtain the probability of each category;

[0027] S24. Use cross entropy to calculate the gap between the output result of the convolutional neural network model and the actual label, and update the model parameters through the back propagation algorithm;

[0028] S25. During the training process, the validation set is used to verify the effect of the convolutional neural network model. If the convolutional neural network model does not perform well on the validation set, the convolutional neural network model is tuned; for example, we can adjust the learning rate to affect the speed of updating the model weights to improve the performance and accuracy of the model;

[0029] S26. After training is completed, use the test set to perform the final test of the convolutional neural network model and evaluate the performance of the convolutional neural network model.

[0030] Optionally, the features of the image are integrated through a fully connected layer and classified through soft maximization, and obtaining the probability of each category includes the following steps:

[0031] S231, flatten the feature map of the last layer of the convolutional neural network into a one-dimensional vector;

[0032] S232, assigning a corresponding weight matrix and bias item to each neuron of the fully connected layer;

[0033] S233, perform linear transformation, multiply the input features of the fully connected layer by the corresponding weight matrix, and add a bias term;

[0034] S234, using the Sigmoid function to perform nonlinear transformation on the result of the linear transformation to obtain the predicted value of each category;

[0035] S235. According to the prediction value output by the Sigmoid function, select the category with the highest probability as the prediction output of the convolutional neural network model.

[0036] Optionally, using the SURF feature matching algorithm in the feature points to find matching feature point pairs in images of different perspectives includes the following steps:

[0037] S41, detecting SURF feature points in the two input images respectively, calculating the principal curvature of each pixel using the Hessian matrix, and finding the local maximum point as the SURF feature point;

[0038] S42, calculating a SURF descriptor for each SURF feature point;

[0039] S43, matching the SURF descriptors calculated in the two images, and using the nearest neighbor matching method to find the point pair with the closest descriptor distance as a matching pair;

[0040] S44. Use the random sampling consensus algorithm to remove mismatched point pairs, and output the correct matching pairs after being screened by the random sampling consensus algorithm.

[0041] Optionally, calculating a SURF descriptor for each SURF feature point comprises the following steps:

[0042] S421, determining the main direction of the feature point by calculating the Haar wavelet response in a small area around the feature point;

[0043] S422, selecting a window around the feature point and dividing the window into 4x4 sub-regions;

[0044] S423, in each sub-region, calculating the horizontal and vertical directions of the Haar wavelet response;

[0045] S424, each sub-region will obtain a 4-dimensional vector, and the vectors of all sub-regions are connected in series to obtain a 64-dimensional SURF descriptor;

[0046] Among them, the formulas for calculating the horizontal and vertical directions of the Haar wavelet response are:

[0047] ;

[0048] ;

[0049] In the formula, Indicates that the image is Haar wavelet response of the direction;

[0050] Indicates that the image is Haar wavelet response of the direction;

[0051] Represents the horizontal coordinate of the image;

[0052] Indicates the vertical coordinate of the image.

[0053] Optionally, using a random sampling consensus algorithm to remove mismatched point pairs and outputting correct matching pairs after being screened by the random sampling consensus algorithm includes the following steps:

[0054] S441, randomly selecting a minimum sample set from the matching pair set (for example, for an affine transformation model, at least 3 pairs of matching points are required), and then calculating a transformation matrix based on these point pairs;

[0055] S442, using the calculated transformation matrix, mapping the feature points in the first image to the second image, and calculating the distance between the mapped points and the positions of the actual matching points in the second image;

[0056] S443, if the distance is less than a preset threshold, the current point pair is considered to be an inlier (i.e., a correct matching point), and the number of inliers is calculated;

[0057] S444, repeat the steps of S441-S443 (the specific number of times can be set according to the actual situation and requirements), obtain a number of transformation matrices and corresponding numbers of interior points, and select the transformation matrix with the largest number of interior points as the optimal transformation matrix;

[0058] S445. Use the best transformation matrix to select matching pairs.

[0059] Optionally, based on the feature point pairs, a multi-view geometry algorithm is used to perform 3D reconstruction, and optimization is performed in combination with prior knowledge of the object and model constraints, including the following steps:

[0060] S51, performing camera calibration to obtain the camera's intrinsic parameters and distortion parameters;

[0061] S52, calculating the essential matrix between the two images using the correct matching pairs screened by the random sampling consistency algorithm;

[0062] S53, by decomposing the essential matrix, the relative rotation matrix and translation vector are obtained. These two variables describe the relative posture of the camera between the two views;

[0063] S54, calculating the coordinates of the three-dimensional point by triangulation according to the rotation matrix and the translation vector and the matched feature point pairs;

[0064] S55. During the 3D reconstruction process, a graph-based optimization algorithm is used to optimize the object model constraints and prior knowledge learned using the deep learning model;

[0065] S56. When processing multiple views, use stereo vision algorithms to guide consistency checks and deep fusion of local 3D point clouds to form a global 3D model.

[0066] S57, performing surface reconstruction according to the dense three-dimensional point cloud data to generate a three-dimensional mesh model of the object;

[0067] S58. In the process of texture mapping and lighting processing according to the three-dimensional model, the pixel color information of the original image and the processing method of simulating light irradiation and reflection are directly applied to the surface of the three-dimensional model.

[0068] Optionally, importing the result of the three-dimensional reconstruction into a virtual reality environment so that a user can observe and interact through a virtual reality device to intuitively understand the three-dimensional shape and position of the object comprises the following steps:

[0069] S61, converting the data format of the three-dimensional model into a format compatible with the virtual reality environment;

[0070] S62, creating a new scene in the virtual reality environment, and importing the converted three-dimensional model at a set position and orientation;

[0071] S63. Configure the viewpoint, camera, and lighting for the virtual reality environment to ensure that the user can clearly see the details of the 3D model;

[0072] S64. Add interactive elements to the virtual environment, such as navigation buttons, rotation controls, zoom controls, etc., and allow users to manipulate objects while observing them;

[0073] S65, connecting and configuring the virtual reality environment and the virtual reality device;

[0074] S66. Provide users with an immersive experience through virtual reality devices, allowing users to observe the three-dimensional form of objects from different angles and distances, and interact with them through interactive elements;

[0075] S67. Collect feedback during the user experience process to optimize the interaction mode of the 3D model and the experience performance of the virtual reality environment.

[0076] According to another aspect of the present invention, there is also provided a three-coordinate machine intelligent positioning detection system based on stereoscopic vision, the system comprising: an image capture module, a deep learning model training module, a feature extraction module, a feature matching module, a three-dimensional reconstruction module, a virtual reality import module and a measurement strategy adjustment module;

[0077] The image capture module is connected to the feature extraction module through the deep learning model training module, the feature extraction module is connected to the three-dimensional reconstruction module through the feature matching module, and the three-dimensional reconstruction module is connected to the measurement strategy adjustment module through the virtual reality import module;

[0078] An image capture module is used to capture the object under test using multiple smart cameras, and to adapt to different environments by adaptively adjusting parameters, while obtaining original images from different perspectives;

[0079] A deep learning model training module, used to train deep learning models based on image quality and environmental characteristics;

[0080] The feature extraction module is used to input the trained deep learning model into the original image, automatically extract the feature points of the object, and optimize the network parameters in real time according to the characteristics of the object and the environment;

[0081] The feature matching module is used to find matching feature point pairs in images of different viewing angles using the SURF feature matching algorithm;

[0082] The 3D reconstruction module is used to perform 3D reconstruction based on feature point pairs using a multi-view geometry algorithm and optimize the model by combining prior knowledge of the object and model constraints;

[0083] A virtual reality import module is used to import the results of 3D reconstruction into a virtual reality environment, so that users can observe and interact through virtual reality devices to intuitively understand the 3D shape and position of objects;

[0084] The measurement strategy adjustment module is used to adjust the measurement strategy in real time according to the object characteristics, environmental conditions and the results of 3D reconstruction.

[0085] Compared with the prior art, this application has the following beneficial effects:

[0086] 1. The fully connected layer of the present invention can integrate the features extracted by the convolutional layer and convert the high-dimensional feature data into a one-dimensional feature vector, which can greatly reduce the complexity of the model and improve the computational efficiency of the model. Secondly, the fully connected layer can automatically learn and adjust the importance of features by adjusting the weight matrix and bias terms, thereby improving the prediction accuracy of the model. Finally, the output of the fully connected layer can be directly used for classification or regression tasks, which is very flexible and convenient.

[0087] 2. The present invention obtains the probability of each category through the soft maximization function, which is very useful for multi-classification problems. The model's prediction confidence for each category can be intuitively seen. At the same time, the output of the soft maximization function can be directly used to calculate the cross entropy loss, which is convenient for optimizing the model parameters.

[0088] 3. The SURF descriptor of the present invention has rotation invariance and scale invariance, and can still accurately match feature points when the image is rotated and scaled. The SURF feature point detection and descriptor calculation are fast and have good real-time performance, which is suitable for scenes that require fast processing. The nearest neighbor matching method is used for feature point matching, which can quickly find the most similar feature point pairs. The random sampling consistency algorithm can effectively remove mismatched point pairs and improve the accuracy of the matching results. Feature point matching in multi-view images can improve the accuracy of object three-dimensional reconstruction and visual navigation.

[0089] 4. The virtual reality technology of the present invention can provide an immersive experience. Users can observe the three-dimensional form of objects from various angles and distances through virtual reality devices, enhance the user's visual experience and spatial understanding ability, and add interactive elements such as navigation buttons, rotation controls, zoom controls, etc. in the virtual environment, allowing users to operate while observing objects, which makes the user experience richer and more interesting. Virtual reality environments and models can be easily shared, and users can share and discuss the same model at different locations through the network, which is very suitable for remote collaboration and educational applications. Virtual reality can provide perspectives that cannot be directly observed by the human eye, such as observing objects from the inside, providing new tools for applications such as scientific research and teaching. BRIEF DESCRIPTION OF THE DRAWINGS

[0090] The above characteristics, features and advantages of the present invention and their implementation methods and methods will become more clearly understood in conjunction with the following description of the embodiments, which are described in detail in conjunction with the accompanying drawings. Herein, a schematic diagram is shown:

[0091] Figure 1 is a flow chart of a three-coordinate machine intelligent positioning detection method based on stereo vision according to an embodiment of the present invention;

[0092] Figure 2 The present invention is a block diagram of a three-coordinate machine intelligent positioning detection system based on stereo vision according to an embodiment of the present invention.

[0093] In the figure:

[0094] 1. Image capture module; 2. Deep learning model training module; 3. Feature extraction module; 4. Feature matching module; 5. 3D reconstruction module; 6. Virtual reality import module; 7. Measurement strategy adjustment module. DETAILED DESCRIPTION

[0095] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, 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 this field without creative work are within the scope of protection of this application.

[0096] According to an embodiment of the present invention, a three-coordinate machine intelligent positioning detection method and system based on stereo vision are provided.

[0097] The present invention will now be further described with reference to the accompanying drawings and specific embodiments. Figure 1 As shown, according to one embodiment of the present invention, a three-coordinate machine intelligent positioning detection method based on stereoscopic vision is provided, and the three-coordinate machine intelligent positioning detection method includes the following steps:

[0098] S1. Use multiple smart cameras to capture the object under test and adaptively adjust parameters to adapt to different environments while obtaining original images from different perspectives.

[0099] Preferably, using multiple smart cameras to capture the object to be measured, and adaptively adjusting parameters to adapt to different environments, while obtaining original images from different viewing angles includes the following steps:

[0100] S11. Select a smart camera with high resolution, high dynamic range and low noise according to the object type, size, material and environmental conditions;

[0101] S12, installing the smart camera at a preset position to ensure that the complete form of the object to be measured can be captured;

[0102] S13. In the process of real-time image capture, the smart camera automatically adjusts the camera setting parameters (such as exposure time, gain, white balance, etc.) according to environmental factors (such as light, background, object movement, etc.) to obtain the best image quality;

[0103] S14, multiple smart cameras start shooting at the same time to ensure that the images of the objects being measured are captured from different perspectives at the same time;

[0104] S15, balance image quality by adjusting shooting frequency and resolution;

[0105] S16, transmitting the original images captured by each camera to the central processing unit in real time.

[0106] It should be explained that camera calibration can also be used to eliminate lens distortion and obtain camera parameters, such as internal and external parameters, to improve the accuracy of three-dimensional reconstruction. In addition, in practical applications, multi-intelligent camera systems can be widely used in drones, autonomous driving, industrial automation, robot vision navigation and other fields, effectively improving the recognition and positioning capabilities of target objects.

[0107] S2. Train the deep learning model based on image quality and environment characteristics.

[0108] Preferably, training the deep learning model according to the image quality and the environment characteristics comprises the following steps:

[0109] S21, obtaining the original image in the central processing unit, and performing data preprocessing, such as denoising, color correction, scaling, etc.;

[0110] S22, manually annotating the preprocessed image, inputting the manually annotated information and the image into the convolutional neural network model, and extracting the features of the image through multi-layer convolution, activation and pooling;

[0111] S23, integrate the features of the image through the fully connected layer, and classify them through soft maximization to obtain the probability of each category;

[0112] S24. Use cross entropy to calculate the gap between the output result of the convolutional neural network model and the actual label, and update the model parameters through the back propagation algorithm;

[0113] S25. During the training process, the validation set is used to verify the effect of the convolutional neural network model. If the convolutional neural network model does not perform well on the validation set, the convolutional neural network model is tuned; for example, we can adjust the learning rate to affect the speed of updating the model weights to improve the performance and accuracy of the model;

[0114] S26. After training is completed, use the test set to perform the final test of the convolutional neural network model and evaluate the performance of the convolutional neural network model.

[0115] Specifically, for example, data augmentation is a commonly used technique. By rotating, flipping, scaling, and shearing the original image, the data set can be effectively expanded and the generalization ability of the model can be improved. In addition, regularization techniques such as L1 and L2 regularization are often used to prevent model overfitting. During model training, we also need to pay attention to the learning curve to promptly detect whether the model is overfitting or underfitting. If these problems occur, we may need to adjust the complexity of the model or adjust the training strategy, such as changing the learning rate, increasing the data set, using a more complex model, etc. Finally, model evaluation is also a very important step. We need to choose appropriate evaluation indicators, such as accuracy, precision, recall, F1 score, etc., in order to accurately measure the performance of the model.

[0116] Preferably, the features of the image are integrated through a fully connected layer and classified through soft maximization, and obtaining the probability of each category includes the following steps:

[0117] S231, flatten the feature map of the last layer of the convolutional neural network into a one-dimensional vector;

[0118] S232, assigning a corresponding weight matrix and bias item to each neuron of the fully connected layer;

[0119] S233, perform linear transformation, multiply the input features of the fully connected layer by the corresponding weight matrix, and add a bias term;

[0120] S234. Use the Sigmoid function (the Sigmoid function is often used in activation functions in various fields, especially in machine learning and neural networks, and can map variables to a probability space between 0 and 1) to perform nonlinear transformation on the result of the linear transformation to obtain the predicted value of each category;

[0121] S235. According to the prediction value output by the Sigmoid function, select the category with the highest probability as the prediction output of the convolutional neural network model.

[0122] It should be explained that in the design and training of deep learning models, in addition to traditional convolutional neural networks, there are many other types of network structures that can be explored. For example, long short-term memory networks and gated recurrent units have excellent performance in processing sequence data, while generative adversarial networks have been widely used in tasks such as image generation and style transfer.

[0123] S3. The trained deep learning model is input into the original image to automatically extract the feature points of the object and optimize the network parameters in real time according to the characteristics of the object and the environment.

[0124] It should be explained that in the task of automatically extracting feature points of objects, in addition to traditional convolutional neural networks, key point detection networks are also often used. These networks can convert objects in images into a series of key points, which facilitates subsequent analysis. In addition, real-time optimization of network parameters is also a major challenge in deep learning. During the training process, the parameters of the model are usually updated through algorithms such as back propagation and gradient descent. However, for real-time scenarios, traditional training methods may not meet the needs. Therefore, some online learning strategies have been proposed, such as using smaller batches, incremental learning, etc. These strategies can quickly update the model when new data arrives, thereby adapting to the changing environment. At the same time, technologies such as reinforcement learning are also widely used in the task of optimizing network parameters in real time. Through interaction with the environment, the model can continuously learn and optimize its strategy.

[0125] S4. Use the SURF (Speeded Up Robust Feature) feature matching algorithm in the feature points to find matching feature point pairs in images from different perspectives.

[0126] Preferably, using the SURF feature matching algorithm in the feature points to find matching feature point pairs in images of different perspectives includes the following steps:

[0127] S41, detecting SURF feature points in the two input images respectively, calculating the principal curvature of each pixel using the Hessian matrix, and finding the local maximum point as the SURF feature point;

[0128] S42, calculating a SURF descriptor for each SURF feature point;

[0129] S43, matching the SURF descriptors calculated in the two images, and using the nearest neighbor matching method to find the point pair with the closest descriptor distance as a matching pair;

[0130] S44. Use the random sampling consensus algorithm to remove mismatched point pairs, and output the correct matching pairs after being screened by the random sampling consensus algorithm.

[0131] Preferably, calculating the SURF descriptor for each SURF feature point comprises the following steps:

[0132] S421, determining the main direction of the feature point by calculating the Haar wavelet response in a small area around the feature point;

[0133] S422, selecting a window around the feature point and dividing the window into 4x4 sub-regions;

[0134] S423, in each sub-region, calculating the horizontal and vertical directions of the Haar wavelet response;

[0135] S424, each sub-region will obtain a 4-dimensional vector, and the vectors of all sub-regions are connected in series to obtain a 64-dimensional SURF descriptor;

[0136] Among them, the formulas for calculating the horizontal and vertical directions of the Haar wavelet response are:

[0137] ;

[0138] ;

[0139] In the formula, Indicates that the image is Haar wavelet response of the direction;

[0140] Indicates that the image is Haar wavelet response of the direction;

[0141] Represents the horizontal coordinate of the image;

[0142] Indicates the vertical coordinate of the image.

[0143] Preferably, using a random sampling consensus algorithm to remove mismatched point pairs and outputting correct matching pairs after being screened by the random sampling consensus algorithm comprises the following steps:

[0144] S441, randomly selecting a minimum sample set from the matching pair set (for example, for an affine transformation model, at least 3 pairs of matching points are required), and then calculating a transformation matrix based on these point pairs;

[0145] S442, using the calculated transformation matrix, mapping the feature points in the first image to the second image, and calculating the distance between the mapped points and the positions of the actual matching points in the second image;

[0146] S443, if the distance is less than a preset threshold, the current point pair is considered to be an inlier (i.e., a correct matching point), and the number of inliers is calculated;

[0147] S444, repeat the steps of S441-S443 (the specific number of times can be set according to the actual situation and requirements), obtain a number of transformation matrices and corresponding numbers of interior points, and select the transformation matrix with the largest number of interior points as the optimal transformation matrix;

[0148] S445. Use the best transformation matrix to select matching pairs.

[0149] It needs to be explained that in practical applications, feature matching algorithms play an important role in some key fields, such as stereo vision, image stitching, object recognition, etc. SURF feature matching is one of the commonly used methods, but in addition to the SURF algorithm, there are some other feature matching algorithms. They all have their own advantages and applicable scenarios. In addition, for the results of feature matching, in addition to the random sampling consistency algorithm, there are some other algorithms that can be used to eliminate incorrect matching pairs. In practical applications, we need to select appropriate feature extraction and matching algorithms based on actual needs and data characteristics. At the same time, deep learning technology has also been widely used in the field of feature matching, such as using convolutional neural networks for feature extraction and matching. This method has better robustness and accuracy, and can achieve good results in complex and changing environments.

[0150] S5. Based on the feature point pairs, a multi-view geometry algorithm is used to perform 3D reconstruction, and optimization is performed by combining prior knowledge of the object and model constraints.

[0151] Preferably, the three-dimensional reconstruction is performed using a multi-view geometry algorithm based on the feature point pairs, and the optimization is performed in combination with the prior knowledge of the object and the model constraints, including the following steps:

[0152] S51, performing camera calibration to obtain the camera's intrinsic parameters and distortion parameters;

[0153] S52, calculating the essential matrix between the two images using the correct matching pairs screened by the random sampling consistency algorithm;

[0154] S53, by decomposing the essential matrix, the relative rotation matrix and translation vector are obtained. These two variables describe the relative posture of the camera between the two views;

[0155] S54, calculating the coordinates of the three-dimensional point by triangulation according to the rotation matrix and the translation vector and the matched feature point pairs;

[0156] S55. During the 3D reconstruction process, a graph-based optimization algorithm is used to optimize the object model constraints and prior knowledge learned using the deep learning model;

[0157] In addition, the introduction of model constraints and prior knowledge: shape constraints: for some objects, we can learn their typical shapes from a large number of data sets, and these shapes can be used as constraints to improve the accuracy of 3D reconstruction. Topological constraints: based on the prior knowledge of objects, the topological relationship between certain regions can be set, for example, the relationship between wheels and car bodies. Dynamic and static constraints: for dynamic scenes, time series information can be used to predict the changes of objects in time series through deep learning models. Fusion of deep learning and graph optimization: through deep learning models such as generative adversarial networks or variational autoencoders, the learned implicit features can be used as optimization constraints to provide additional information. Deep feature extraction is directly introduced in graph optimization, so that the deep features of the image can be directly used in the optimization process. Semi-supervised and unsupervised Learning strategy: Using a small amount of labeled data and a large amount of unlabeled data to train deep learning models can better extract and utilize prior knowledge of objects. Dynamic graph construction and update: In dynamic scenes, as objects move and change, the graph structure will also change. Strategies can be designed to dynamically update the graph structure to adapt to scene changes. Fusion of multimodal information: Combining different sensor information, such as RGB images, depth maps, infrared images, etc., fusing different modalities can enhance the robustness and accuracy of 3D reconstruction. Large-scale scenes and streaming processing: For large-scale scenes, a block strategy can be designed, local optimization can be performed within each block, and then global optimization can be performed to ensure global consistency and accuracy. For real-time or near real-time applications, a streaming processing strategy can be considered, that is, collecting data while processing it to ensure timeliness.

[0158] S56. When processing multiple views, use stereo vision algorithms to guide consistency checks and deep fusion of local 3D point clouds to form a global 3D model.

[0159] S57, performing surface reconstruction according to the dense three-dimensional point cloud data to generate a three-dimensional mesh model of the object;

[0160] S58. In the process of texture mapping and lighting processing according to the three-dimensional model, the pixel color information of the original image and the processing method of simulating light irradiation and reflection are directly applied to the surface of the three-dimensional model.

[0161] It needs to be explained that in the field of 3D reconstruction, multi-view geometry is a basic and important technology, which mainly relies on multiple pictures taken from different perspectives to restore the 3D structure. However, with the development of deep learning, many new methods have been proposed to integrate traditional multi-view geometry technology and deep learning methods, such as deep learning stereo matching algorithms, depth estimation, etc. These methods use deep networks to automatically learn the matching and depth relationship between images, thereby improving the accuracy and robustness of 3D reconstruction. In addition, during the reconstruction process, prior knowledge of objects, such as their shape, topological structure, and surface properties, can also be used as constraints to assist in the generation of 3D models. In recent years, deep learning models such as generative adversarial networks and variational autoencoders have also shown great potential in 3D shape generation, editing, and optimization, bringing new research directions and opportunities to the field of 3D reconstruction.

[0162] S6. Import the results of the three-dimensional reconstruction into a virtual reality environment, so that users can observe and interact through virtual reality devices to intuitively understand the three-dimensional shape and position of the object.

[0163] Preferably, importing the result of the three-dimensional reconstruction into a virtual reality environment so that a user can observe and interact through a virtual reality device to intuitively understand the three-dimensional shape and position of the object comprises the following steps:

[0164] S61, converting the data format of the three-dimensional model into a format compatible with the virtual reality environment;

[0165] S62, creating a new scene in the virtual reality environment, and importing the converted three-dimensional model at a set position and orientation;

[0166] S63. Configure the viewpoint, camera, and lighting for the virtual reality environment to ensure that the user can clearly see the details of the 3D model;

[0167] S64. Add interactive elements to the virtual environment, such as navigation buttons, rotation controls, zoom controls, etc., and allow users to manipulate objects while observing them;

[0168] S65, connecting and configuring the virtual reality environment and the virtual reality device;

[0169] S66. Provide users with an immersive experience through virtual reality devices, allowing users to observe the three-dimensional form of objects from different angles and distances, and interact with them through interactive elements;

[0170] S67. Collect feedback during the user experience process to optimize the interaction mode of the 3D model and the experience performance of the virtual reality environment.

[0171] It needs to be explained that virtual reality (VR) technology provides a new application scenario in the field of 3D reconstruction. Users can directly enter the virtual 3D environment through VR devices, such as head-mounted displays (HMDs) and handheld controllers, and interact with 3D models to obtain a more intuitive and realistic experience. In addition, with the development of mixed reality (MR) and augmented reality (AR) technologies, the results of 3D reconstruction can also be integrated into the real environment. Users can observe and interact with virtual 3D models in the real environment, which brings more possibilities for the application of 3D reconstruction. At the same time, in order to improve the user experience, some new technologies are also being researched and developed, such as real-time lighting simulation, physics-based rendering, tactile feedback, etc. These technologies can make virtual environments and 3D models look more realistic and make the user's interactive experience richer and more interesting.

[0172] S7. Adjust the measurement strategy in real time according to the object characteristics, environmental conditions and the results of 3D reconstruction.

[0173] It should be explained that in practice, 3D reconstruction often needs to face various complex object characteristics and environmental conditions, such as the object's texture, color, reflective properties, and environmental lighting, noise, etc. These factors may affect the results of 3D reconstruction. Therefore, real-time adjustment of the measurement strategy is an effective way to improve the reconstruction effect. This includes selecting appropriate image acquisition equipment and parameters according to the characteristics of the object and the environment, such as the focal length and exposure time of the camera; adjusting the next acquisition strategy according to the preliminary reconstruction results, such as the position and angle of the camera; and optimizing the reconstruction results based on the prior knowledge of the object and the model constraints. This dynamic adjustment process can be automatically completed using machine learning and optimization algorithms, thereby achieving more efficient and accurate 3D reconstruction.

[0174] According to another embodiment of the present invention, Figure 2 As shown, a three-coordinate machine intelligent positioning detection system based on stereoscopic vision is also provided, which includes: an image capture module 1, a deep learning model training module 2, a feature extraction module 3, a feature matching module 4, a three-dimensional reconstruction module 5, a virtual reality import module 6 and a measurement strategy adjustment module 7;

[0175] The image capture module is connected to the feature extraction module through the deep learning model training module, the feature extraction module is connected to the three-dimensional reconstruction module through the feature matching module, and the three-dimensional reconstruction module is connected to the measurement strategy adjustment module through the virtual reality import module;

[0176] An image capture module 1 is used to capture the object under test using multiple smart cameras, and to adapt to different environments by adaptively adjusting parameters, while obtaining original images from different viewing angles;

[0177] A deep learning model training module 2 is used to train a deep learning model according to image quality and environmental characteristics;

[0178] Feature extraction module 3, used to input the trained deep learning model into the original image, automatically extract the feature points of the object, and optimize the network parameters in real time according to the characteristics of the object and the environment;

[0179] A feature matching module 4 is used to find matching feature point pairs in images of different viewing angles using a SURF feature matching algorithm among the feature points;

[0180] A 3D reconstruction module 5 is used to perform 3D reconstruction based on feature point pairs using a multi-view geometry algorithm and optimize the image by combining prior knowledge of the object and model constraints;

[0181] A virtual reality import module 6 is used to import the result of the three-dimensional reconstruction into a virtual reality environment, so that the user can observe and interact through a virtual reality device to intuitively understand the three-dimensional shape and position of the object;

[0182] The measurement strategy adjustment module 7 is used to adjust the measurement strategy in real time according to the object characteristics, environmental conditions and the results of three-dimensional reconstruction.

[0183] In summary, with the help of the above technical solution of the present invention, the fully connected layer of the present invention can integrate the features extracted by the convolution layer and convert the high-dimensional feature data into a one-dimensional feature vector, which can greatly reduce the complexity of the model and improve the calculation efficiency of the model. Secondly, the fully connected layer can realize automatic learning and adjustment of the importance of the features by adjusting the weight matrix and the bias term, thereby improving the prediction accuracy of the model. Finally, the output of the fully connected layer can be directly used for classification or regression tasks, which is very flexible and convenient. Through the soft maximization function, the probability of each category is obtained, which is very useful for multi-classification problems. The model's prediction confidence for each category can be intuitively seen. At the same time, the output of the soft maximization function can be directly used to calculate the cross entropy loss, which is convenient for optimizing the parameters of the model. The SURF descriptor of the present invention has rotation invariance and scale invariance, and can still accurately match feature points when the image is rotated and scaled. The speed of SURF feature point detection and descriptor calculation is fast and real-time, which is suitable for the need for fast In the scene with fast processing, the nearest neighbor matching method is used for feature point matching, which can quickly find the most similar feature point pairs. The random sampling consistency algorithm can effectively remove the mismatched point pairs and improve the accuracy of the matching results. Feature point matching in multi-view images can improve the accuracy of object three-dimensional reconstruction and visual navigation. The virtual reality technology of the present invention can provide an immersive experience. Users can observe the three-dimensional form of objects from various angles and distances through virtual reality devices, enhance the user's visual experience and spatial understanding ability, add interactive elements such as navigation buttons, rotation controls, zoom controls, etc. in the virtual environment, allow users to operate while observing objects, which makes the user experience richer and more interesting. Virtual reality environments and models can be easily shared. Users can share and discuss the same model at different locations through the network, which is very suitable for remote collaboration and educational applications. Virtual reality can provide perspectives that cannot be directly observed by the human eye, such as observing objects from the inside, and provides new tools for applications such as scientific research and teaching.

[0184] Although the present invention has been disclosed as above with preferred embodiments, the embodiments are merely examples for the convenience of description and are not intended to limit the present invention. Those skilled in the art may make several changes and modifications without departing from the spirit and scope of the present invention. The scope of protection claimed by the present invention shall be based on the claims.

Claims

1. A three-coordinate machine intelligent positioning detection method based on stereo vision, characterized in that: The three-coordinate machine intelligent positioning detection method comprises the following steps: S1, use multiple smart cameras to capture the object under test, and adaptively adjust parameters to adapt to different environments, while obtaining original images from different perspectives; S2, training deep learning models based on image quality and environmental characteristics; S3, input the trained deep learning model into the original image, automatically extract the feature points of the object, and optimize the network parameters in real time according to the characteristics of the object and the environment; S4, using the SURF feature matching algorithm in the feature points to find matching feature point pairs in images of different perspectives; S5. Based on the feature point pairs, a multi-view geometry algorithm is used to perform 3D reconstruction, and optimization is performed by combining prior knowledge of the object and model constraints; S6. Importing the results of the three-dimensional reconstruction into a virtual reality environment, so that users can observe and interact through virtual reality equipment to intuitively understand the three-dimensional shape and position of the object; S7, adjust the measurement strategy in real time according to the object characteristics, environmental conditions and the results of 3D reconstruction; The method of using multiple smart cameras to capture the object to be measured, and adaptively adjusting parameters to adapt to different environments, while obtaining original images from different perspectives includes the following steps: S11. Select a smart camera with high resolution, high dynamic range and low noise according to the object type, size, material and environmental conditions; S12, installing the smart camera at a preset position to ensure that the complete form of the object to be measured can be captured; S13, in the process of real-time image capture, the smart camera automatically adjusts the camera setting parameters according to environmental factors to obtain the best image quality; S14, multiple smart cameras start shooting at the same time to ensure that the images of the objects being measured are captured from different perspectives at the same time; S15, balance image quality by adjusting shooting frequency and resolution; S16, transmitting the original images captured by each camera to the central processing unit in real time; The training of the deep learning model according to the image quality and the environmental characteristics comprises the following steps: S21, obtaining the original image in the central processing unit and performing data preprocessing; S22, manually annotating the preprocessed image, inputting the manually annotated information and the image into the convolutional neural network model, and extracting the features of the image through multi-layer convolution, activation and pooling; S23, integrate the features of the image through the fully connected layer, and classify them through soft maximization to obtain the probability of each category; S24. Use cross entropy to calculate the gap between the output result of the convolutional neural network model and the actual label, and update the model parameters through the back propagation algorithm; S25. During the training process, the validation set is used to verify the effect of the convolutional neural network model. If the convolutional neural network model does not perform well on the validation set, the convolutional neural network model is tuned. S26. After the training is completed, the test set is used to perform the final test of the convolutional neural network model and evaluate the performance of the convolutional neural network model; The image features are integrated through a fully connected layer, and classified through soft maximization to obtain the probability of each category, including the following steps: S231, flatten the feature map of the last layer of the convolutional neural network into a one-dimensional vector; S232, assigning a corresponding weight matrix and bias item to each neuron of the fully connected layer; S233, perform linear transformation, multiply the input features of the fully connected layer by the corresponding weight matrix, and add a bias term; S234, using the Sigmoid function to perform nonlinear transformation on the result of the linear transformation to obtain the predicted value of each category; S235. According to the prediction value output by the Sigmoid function, select the category with the highest probability as the prediction output of the convolutional neural network model; The method of using the SURF feature matching algorithm in the feature points to find matching feature point pairs in images of different perspectives comprises the following steps: S41, detecting SURF feature points in the two input images respectively, calculating the principal curvature of each pixel using the Hessian matrix, and finding the local maximum point as the SURF feature point; S42, calculating a SURF descriptor for each SURF feature point; S43, matching the SURF descriptors calculated in the two images, and using the nearest neighbor matching method to find the point pair with the closest descriptor distance as a matching pair; S44, using a random sampling consensus algorithm to remove mismatched point pairs, and outputting correct matching pairs after being screened by the random sampling consensus algorithm; The calculation of the SURF descriptor for each SURF feature point comprises the following steps: S421, determining the main direction of the feature point by calculating the Haar wavelet response in a small area around the feature point; S422, selecting a window around the feature point and dividing the window into sub-regions; S423, in each sub-region, calculating the horizontal and vertical directions of the Haar wavelet response; S424, each sub-region will obtain a vector, and the vectors of all sub-regions are connected in series to obtain a SURF descriptor; The formula for calculating the horizontal and vertical directions of the Haar wavelet response is: ; ; In the formula, Indicates that the image is Directional Haar wavelet response; Indicates that the image is Directional Haar wavelet response; Represents the horizontal coordinate of the image; Indicates the vertical coordinate of the image; The method of removing mismatched point pairs by using the random sampling consensus algorithm and outputting correct matching pairs after being screened by the random sampling consensus algorithm comprises the following steps: S441, randomly selecting a minimum sample set from the matching pair set, and then calculating the transformation matrix based on these point pairs; S442, using the calculated transformation matrix, mapping the feature points in the first image to the second image, and calculating the distance between the mapped points and the positions of the actual matching points in the second image; S443, if the distance is less than a preset threshold, the current point pair is considered to be an inlier, and the number of inliers is calculated; S444, repeating the steps of S441-S443 to obtain a number of transformation matrices and corresponding numbers of inliers, and selecting the transformation matrix with the largest number of inliers as the optimal transformation matrix; S445. Use the best transformation matrix to select matching pairs.

2. The three-coordinate machine intelligent positioning detection method based on stereo vision according to claim 1 is characterized in that: The method of performing 3D reconstruction based on feature point pairs using a multi-view geometry algorithm and optimizing the object based on prior knowledge and model constraints includes the following steps: S51, performing camera calibration to obtain the camera's intrinsic parameters and distortion parameters; S52, calculating the essential matrix between the two images using the correct matching pairs screened by the random sampling consistency algorithm; S53, by decomposing the essential matrix, the relative rotation matrix and translation vector are obtained. These two variables describe the relative posture of the camera between the two views; S54, calculating the coordinates of the three-dimensional point by triangulation according to the rotation matrix and the translation vector and the matched feature point pairs; S55. During the 3D reconstruction process, a graph-based optimization algorithm is used to optimize the object model constraints and prior knowledge learned using the deep learning model; S56. When processing multiple views, use stereo vision algorithms to guide consistency checks and deep fusion of local 3D point clouds to form a global 3D model. S57, performing surface reconstruction according to the dense three-dimensional point cloud data to generate a three-dimensional mesh model of the object; S58. In the process of texture mapping and lighting processing according to the three-dimensional model, the pixel color information of the original image and the processing method of simulating light irradiation and reflection are directly applied to the surface of the three-dimensional model.

3. The three-coordinate machine intelligent positioning detection method based on stereo vision according to claim 2 is characterized in that: The method of importing the three-dimensional reconstruction result into a virtual reality environment so that a user can observe and interact with the object through a virtual reality device to intuitively understand the three-dimensional shape and position of the object comprises the following steps: S61, converting the data format of the three-dimensional model into a format compatible with the virtual reality environment; S62, creating a new scene in the virtual reality environment, and importing the converted three-dimensional model at a set position and orientation; S63. Configure the viewpoint, camera, and lighting for the virtual reality environment to ensure that the user can clearly see the details of the 3D model; S64. Add interactive elements to the virtual environment and allow users to manipulate objects while observing them; S65, connecting and configuring the virtual reality environment and the virtual reality device; S66. Provide users with an immersive experience through virtual reality devices, allowing users to observe the three-dimensional form of objects from different angles and distances, and interact with them through interactive elements; S67. Collect feedback during the user experience process to optimize the interaction mode of the 3D model and the experience performance of the virtual reality environment.

4. A three-coordinate machine intelligent positioning detection system based on stereo vision, used to implement the three-coordinate machine intelligent positioning detection method based on stereo vision described in any one of claims 1 to 3, characterized in that: The system includes: an image capture module, a deep learning model training module, a feature extraction module, a feature matching module, a three-dimensional reconstruction module, a virtual reality import module and a measurement strategy adjustment module; The image capture module is connected to the feature extraction module through the deep learning model training module, the feature extraction module is connected to the three-dimensional reconstruction module through the feature matching module, and the three-dimensional reconstruction module is connected to the measurement strategy adjustment module through the virtual reality import module; The image capture module is used to capture the object under test using multiple smart cameras, and to adapt to different environments by adaptively adjusting parameters, while acquiring original images from different viewing angles; The deep learning model training module is used to train the deep learning model according to image quality and environmental characteristics; The feature extraction module is used to input the trained deep learning model into the original image, automatically extract the feature points of the object, and optimize the network parameters in real time according to the characteristics of the object and the environment; The feature matching module is used to find matching feature point pairs in images of different viewing angles using a SURF feature matching algorithm among the feature points; The 3D reconstruction module is used to perform 3D reconstruction based on feature point pairs using a multi-view geometry algorithm and optimize the image by combining prior knowledge of the object and model constraints; The virtual reality import module is used to import the result of the three-dimensional reconstruction into the virtual reality environment, so that the user can observe and interact through the virtual reality device to intuitively understand the three-dimensional shape and position of the object; The measurement strategy adjustment module is used to adjust the measurement strategy in real time according to the object characteristics, environmental conditions and the result of three-dimensional reconstruction.

Citation Information

Patent Citations

  • Three-dimensional model triangular facet feature learning classification method and device based on deep learning

    CN106529569A

  • Mobile robot map construction method based on graph neural network feature extraction and matching, storage medium and equipment

    CN114707611A

  • Method and bionic model for intelligently identifying true and false pedestrians based on stereoscopic vision of human eyes

    CN115116092A

  • Deep learning based method and apparatus for three dimensional model triangular facet feature learning and classifying

    US20180101752A1

Cited By

  • Single-agent three-dimensional visual positioning method and system based on deep learning

    CN121330662A