Laser datum line measuring system based on computer visual identification
By using two TOF cameras and a feature point matching algorithm to match and calibrate the depth information of the laser baseline, the problem of identification accuracy and stability in complex environments is solved, and high-precision and high-reliability laser baseline measurement is achieved.
Patent Information
- Application Number
- CN202411273900.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing laser baseline measurement system based on computer vision recognition is difficult to maintain high accuracy and reliability in complex environments. It is interfered by factors such as light changes, background clutter, and occlusion, resulting in inaccurate or unstable recognition results.
Two TOF cameras are used to capture the laser baseline in the same scene respectively, depth information is extracted through preprocessing, feature point matching algorithm is used for matching and calibration, and computer vision technology is combined to identify and track the laser baseline.
It improves the accuracy and stability of laser baseline recognition in complex environments, ensuring that the system maintains high accuracy and reliability under various conditions.
Smart Images

Figure CN118799401A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of computer vision, and in particular to a laser reference line measurement system based on computer vision recognition. Background Art
[0002] The laser reference line measurement system based on computer vision recognition is a measurement system that combines computer vision technology and laser ranging technology. It can identify the laser reference line through computer vision technology and measure the distance of objects on the reference line using laser ranging technology.
[0003] In the laser reference line measurement system based on computer vision recognition, it usually involves using a camera or other image sensor to capture the reference line generated by the laser, and using computer vision technology to analyze these images to determine the position, size or angle of the object. This method has broad application prospects in industrial automation, construction and other fields.
[0004] However, the existing laser reference line measurement system based on computer vision recognition still has some problems: how to improve the recognition accuracy and stability of the laser reference line by computer vision in complex environments. Due to factors such as light changes, background clutter, and occlusion in the real environment, the detection of the laser line may be interfered with, resulting in inaccurate or unstable recognition results. Therefore, it is necessary to further optimize the image processing algorithm, such as enhancing image contrast, adopting more advanced feature extraction technology, and developing adaptable noise filtering methods, so as to ensure that the system can maintain high accuracy and high reliability under various conditions. Summary of the invention
[0005] The purpose of the present invention is to provide a laser reference line measurement system based on computer vision recognition to solve the problems existing in the above-mentioned prior art.
[0006] The present invention is implemented by the following technical solutions: The embodiment of the present invention provides a laser reference line measurement system based on computer vision recognition, comprising: Use two TOF cameras to photograph the laser reference line in the same scene respectively; Preprocess the images captured by each TOF camera to extract the depth information including the laser reference line; The depth information captured by the two TOF cameras is matched and calibrated based on the feature point matching algorithm; Using the calibrated depth information, the laser reference line is identified and tracked through computer vision technology.
[0007] Further, the using two TOF cameras to respectively photograph the laser reference line in the same scene includes: Adjust the positions and angles of the two TOF cameras to ensure they can capture the laser reference line at the same time; Start the synchronization signal to ensure that the two TOF cameras start shooting at the same time; Based on the synchronization signal trigger, the two TOF cameras capture images containing the laser reference line respectively; Stop the sync signal as soon as you finish shooting.
[0008] Further, based on the synchronization signal triggering, the two TOF cameras respectively capture images containing the laser reference line, including: Set the frequency of the synchronization signal to f to ensure that the two TOF cameras work at the same frequency; Calculate the frequency f of the current synchronization signal, and monitor whether the frequency f of the current synchronization signal reaches a preset threshold T; If the frequency f of the current synchronization signal is equal to or higher than a preset threshold T, the image capture function of the TOF camera is started; Based on the synchronization signal, the two TOF cameras start capturing images at the same time; If the frequency f of the current synchronization signal is less than the threshold T, wait until the frequency f reaches the threshold T again; When the synchronization signal ends, the two TOF cameras stop capturing images.
[0009] Further, the calculating the frequency f of the current synchronization signal includes: Measure the cycle time t of the synchronization signal; Calculate the frequency f using the formula frequency f = 1 / t; Compare the calculated frequency f with a preset threshold value T; If the frequency f is greater than or equal to the threshold T, the subsequent steps are performed.
[0010] Furthermore, the preprocessing of the image captured by each TOF camera to extract the depth information including the laser reference line includes: Perform noise reduction on the original image captured by the TOF camera; Apply a Gaussian filter to smooth the image; The contrast of the laser reference line is enhanced using a threshold segmentation method; The edge detection algorithm is used to extract the contour of the laser reference line.
[0011] Furthermore, matching and calibrating the depth information captured by the two TOF cameras based on the feature point matching algorithm includes: Detect feature points in the images captured by two TOF cameras; The matching score is calculated based on the similarity of the feature points, where if the score is greater than the set threshold, the match is considered successful; Use the successfully matched feature points to perform geometric transformation on the two images and obtain the transformation parameters; The transformation parameters are optimized by the least squares method.
[0012] Furthermore, the calculation of the matching score based on the similarity of the feature points includes: Calculate the Euclidean distance between the descriptor vectors of the feature points, which can be expressed as: D = sqrt[(x1-x2)² + (y1-y2)² + (z1-z2)²] Where D is the Euclidean distance, (x1, y1, z1) is the three-dimensional coordinate of the first feature point, and (x2, y2, z2) is the three-dimensional coordinate of the second feature point; If the Euclidean distance is less than the preset distance threshold, the feature points are considered similar; The matching score is calculated based on the ratio of the number of similar feature points to the total number of feature points, where the matching score is equal to the number of similar feature points divided by the total number of feature points; If the matching score is greater than the set threshold, the match is considered successful.
[0013] Furthermore, the geometric transformation of the two images using the successfully matched feature points to obtain the transformation parameters includes: Determine the successfully matched feature point pairs; Calculate the fundamental matrix or homography matrix based on the matching point pairs; If the rank of the computed fundamental matrix or homography matrix is equal to 2 or 3, the transformation is considered valid; Apply a valid fundamental matrix or homography matrix to geometrically transform the image and obtain the transformation parameters.
[0014] Further, the optimization of transformation parameters by least square method includes: Collect the coordinates of the successfully matched feature points; Solve the optimal transformation parameters based on the least squares method, where the optimal transformation parameters minimize the sum of the reprojection errors of all matching point pairs; If the sum of the reprojection errors is less than the preset error threshold, the transformation parameter optimization is considered complete; Apply the optimized transformation parameters to perform final calibration on the image.
[0015] The embodiment of the present disclosure provides a laser reference line measurement system based on computer vision recognition, including: using two TOF cameras to respectively photograph the laser reference line in the same scene; preprocessing the images captured by each TOF camera to extract the depth information containing the laser reference line; matching and calibrating the depth information captured by the two TOF cameras based on a feature point matching algorithm; using the calibrated depth information to identify and track the laser reference line through computer vision technology. Through the solution of the embodiment of the present disclosure, it is possible to solve how to improve the recognition accuracy and stability of the laser reference line by computer vision in a complex environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the exemplary implementation methods of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the embodiments of the present disclosure and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 It is a flow chart of a laser reference line measurement system method based on computer vision recognition; Figure 2 It is a flow chart of using two TOF cameras to respectively photograph the laser reference line in the same scene; Figure 3 It is a flow chart that two TOF cameras capture images containing laser reference lines respectively based on synchronization signal triggering; Figure 4 is a flow chart for calculating the frequency f of the current synchronization signal; Figure 5 It is a flowchart for preprocessing the image captured by each TOF camera to extract the depth information including the laser reference line; Figure 6 It is a flow chart for matching and calibrating the depth information captured by two TOF cameras based on the feature point matching algorithm; Figure 7 It is a flowchart for calculating the matching score based on the similarity of feature points; Figure 8 It is a flow chart of geometrically transforming two images using successfully matched feature points to obtain transformation parameters; Fig. 9 It is a flowchart of the least squares method to optimize the transformation parameters. DETAILED DESCRIPTION
[0018] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0019] Next, refer to Figure 1 Description This is a laser reference line measurement system based on computer vision recognition: S101: By using two TOF cameras to capture the laser reference line in the same scene, we first ensured that the information of the laser reference line was captured from different angles. The TOF camera can provide depth information, which is crucial for subsequent processing.
[0020] S102: Extract depth information including the laser reference line by preprocessing the image captured by each TOF camera. The preprocessing stage includes but is not limited to steps such as image enhancement and noise removal to ensure that the image quality is good enough for subsequent feature extraction.
[0021] S103: Match and calibrate the depth information captured by the two TOF cameras based on the feature point matching algorithm. Feature point matching is an important part of computer vision, which can help us find the corresponding positions in two images.
[0022] S104: Using the calibrated depth information, identify and track the laser reference line through computer vision technology. To improve the recognition accuracy and stability in complex environments, once the data of the two TOF cameras are calibrated, computer vision technology can be used to identify and track the laser reference line. In this step, Bough transform can be used to detect straight lines, or machine learning methods can be used to train the model to recognize the laser reference line.
[0023] Through the above steps, we can solve the problem of "how to improve the recognition accuracy and stability of laser reference lines by computer vision in complex environments". By using two TOF cameras to shoot laser reference lines from different angles, and combining the extraction of depth information, feature point matching, and the application of computer vision technology, we can not only improve the recognition accuracy, but also ensure stability and robustness in various complex environments.
[0024] Next, refer to Figure 2 Describe the specific steps of a laser reference line measurement system method based on computer vision recognition: S201: Ensure that the two cameras can capture the laser reference line at the same time by adjusting their positions and angles. This process requires the precise setting of the relative positions and viewing angles of the two cameras so that they cover the same measurement area and the laser reference line is within the field of view of both. To achieve this, a robotic arm or precision slide can be used to fine-tune the position of the camera, while a calibration tool such as a calibration plate can be used to verify that the camera is correctly aligned with the target area.
[0025] S202: Ensure that the two TOF cameras start shooting at the same time by starting a synchronization signal. This step usually involves using an external synchronization device or a signal generator to generate a synchronization pulse, which is sent to the two cameras as a trigger signal. When the synchronization signal is received, the two cameras will start capturing images at the same time. In order to ensure accurate transmission of the signal, a wired connection can be used, such as using a dedicated synchronization cable to connect the camera and the signal generator.
[0026] S203: Based on the synchronization signal trigger, the two TOF cameras respectively capture images containing the laser reference line. After receiving the synchronization signal, the two cameras will start to record the position information of the laser reference line in the scene. Since the TOF camera can provide depth information, the captured image not only contains the two-dimensional position of the laser line, but also contains its position data in three-dimensional space. These data are crucial for subsequent processing and analysis.
[0027] S204: Stop the sync signal immediately after the capture is completed. Once the image capture is completed, the sync signal will be turned off to prevent additional data acquisition and ensure the consistency of image capture. This step helps to ensure that the time difference between the images captured by the two cameras is minimized, thereby improving measurement accuracy. The sync signal can be turned on and off by software control, or a hardware switch can be used to achieve this function.
[0028] Next, refer to Figure 3 Describe the specific steps of image capture triggered by synchronization signals in a laser reference line measurement system method based on computer vision recognition: S301: Setting the frequency of the synchronization signal to f, ensuring that the two TOF cameras work at the same frequency: First, the frequency of the synchronization signal needs to be set to f, and the two TOF cameras need to work at the same frequency f. This setting ensures that the two TOF cameras can start and end the image capture process synchronously.
[0029] S302: Calculate the frequency f of the current synchronization signal, and monitor whether the frequency f of the current synchronization signal reaches a preset threshold T: Start the image capture function of the TOF camera by calculating whether the frequency f of the current synchronization signal reaches or exceeds the preset threshold T. In terms of technical implementation, this can be achieved by programming the trigger logic of the TOF camera.
[0030] S303: If the frequency f of the current synchronization signal is equal to or higher than the preset threshold T, start the image capture function of the TOF camera: When the monitored frequency f is greater than or equal to the preset threshold T, the system will automatically start the image capture function of the TOF camera and start capturing images simultaneously based on the synchronization signal: This step is usually performed by the system's central processing unit CPU or microcontroller, which sends instructions to the TOF camera modules to instruct them to start capturing image data. Once the start command is received, the two TOF cameras will start capturing images simultaneously based on the synchronization signal. Once the synchronization signal is triggered, the two TOF cameras will start capturing images containing the laser reference line at the same time. In terms of technical implementation, this function can be achieved by connecting to the synchronization signal input port on the control circuit board of the TOF camera. When the synchronization signal arrives, the circuit board will immediately activate the camera's image capture mechanism.
[0031] S304: Based on the synchronization signal, the two TOF cameras start capturing images at the same time: Once the synchronization signal is triggered, the two TOF cameras will start capturing images containing the laser reference line at the same time. In terms of technical implementation, this function can be achieved by connecting to the synchronization signal input port on the control circuit board of the TOF camera. When the synchronization signal arrives, the circuit board will immediately activate the image capture mechanism of the camera. Stop capturing images: When the synchronization signal ends, the two TOF cameras stop capturing images. Technically, this can be achieved by the control circuit board sending a stop capture command to the TOF camera when the synchronization signal disappears.
[0032] S305: If the frequency f of the current synchronization signal is less than the threshold T, wait until the frequency f reaches the threshold T again: If the monitored frequency f is lower than the preset threshold T, the system will enter the waiting state until the frequency f reaches or exceeds the threshold T again. During this period, the system will not start the image capture function. This mechanism ensures that image capture is triggered only when specific conditions are met, thereby optimizing the performance and resource utilization efficiency of the system. The waiting state can be implemented by a hardware timer or a software loop until the frequency monitoring module reports that the frequency f meets the conditions.
[0033] S306: When the synchronization signal ends, the two TOF cameras stop capturing images: When the synchronization signal ends, the two TOF cameras stop capturing images. Technically, this can be achieved by sending a stop capture command to the TOF camera by the control circuit board when the synchronization signal disappears.
[0034] Next, refer to Figure 4 Describe the specific steps of calculating the current synchronization signal frequency f in a laser reference line measurement system method based on computer vision recognition: S401: Determine the basic frequency data by measuring the cycle time t of the synchronization signal. This process usually involves real-time monitoring of the synchronization signal and recording the time length of a complete cycle of the signal.
[0035] S402: The actual frequency f of the synchronization signal is calculated by using the formula frequency f = 1 / t. This means that the cycle time t measured in S601 is used as the denominator and the reciprocal thereof is taken to obtain the value of the frequency f.
[0036] S403: Compare the calculated frequency f with the preset threshold value T. This step is to ensure that the frequency of the synchronization signal meets the minimum requirements for the system operation. For example, if the preset threshold value T is set to 400 Hz, and the calculated frequency f is 500 Hz, the frequency f is greater than the threshold value T, indicating that the frequency of the synchronization signal meets the requirements and the subsequent steps can be continued; conversely, if the frequency f is lower than the threshold value T, it may be necessary to adjust the system parameters to increase the frequency of the synchronization signal.
[0037] Next, refer to Figure 5 Describe the specific steps of preprocessing the image captured by each TOF camera to extract the depth information containing the laser reference line in a laser reference line measurement system method based on computer vision recognition: S501: Denoise the original image captured by the TOF camera. This process usually involves applying a specific algorithm to reduce random noise in the image, such as using median filtering or adaptive filtering. These filtering methods can effectively reduce clutter in the image, thereby improving the accuracy of subsequent processing steps.
[0038] S502: Apply a Gaussian filter to smooth the image. Gaussian filtering is a commonly used image smoothing technique that multiplies the Gaussian kernel with the image pixels through a convolution operation to remove high-frequency noise and smooth the image. This step helps to further reduce small fluctuations in the image and provide clearer image data for subsequent processing.
[0039] S503: Use a threshold segmentation method to enhance the contrast of the laser reference line. Threshold segmentation is a technique for dividing pixels in an image into foreground and background by setting one or more thresholds. In the present invention, the laser reference line can be highlighted by adjusting the threshold so that it forms a clear contrast with the background, which is convenient for subsequent feature extraction.
[0040] S504: extracting the contour of the laser reference line using an edge detection algorithm. Edge detection algorithms such as Canny edge detection or Lobes operator can identify locations where the intensity changes significantly in the image, i.e., edges. For the laser reference line, these algorithms can help accurately locate its boundary, thereby obtaining the precise position and shape information of the laser reference line.
[0041] Next, refer to Figure 6 Describe the specific steps of a laser reference line measurement system method based on computer vision recognition: S601: Detection by feature points - In the method of the present invention, it is first necessary to detect feature points in the images captured by two TOF cameras. This step can be achieved by a variety of known feature detection algorithms.
[0042] S602: Calculating matching scores by matching feature points - Once the feature points are detected, the matching scores need to be calculated based on the similarity of these feature points.
[0043] S603: Perform geometric transformation using successfully matched feature points - After determining the matched feature points, the next step is to use these matching points to perform geometric transformation to achieve calibration between the two images. This usually involves estimating a transformation matrix that can map coordinates in one image to corresponding coordinates in another image. Commonly used geometric transformations include affine transformation, perspective transformation, etc. The choice of which transformation depends on the specific application scenario and the required accuracy.
[0044] S604: Optimizing transformation parameters by least squares method - Finally, in order to further improve the accuracy of calibration, the least squares method can be used to optimize the parameters in the above geometric transformation. The least squares method is a mathematical optimization technique that finds the best fitting parameters by minimizing the residual sum of squares. In this process, the residual refers to the difference between the coordinates of the matched feature points in the transformed image and the corresponding coordinates in theory. By iteratively adjusting the transformation parameters, the residual sum of squares of all matching points is minimized, thereby obtaining the optimal calibration result.
[0045] Next, refer to Figure 7 Describe the specific steps of calculating the matching score based on the similarity of feature points: S701: Calculate the Euclidean distance between the descriptor vectors of the feature points, which can be expressed as: D = sqrt[(x1-x2)² + (y1-y2)² +(z1-z2)²], where D is the Euclidean distance, (x1, y1, z1) is the three-dimensional coordinate of the first feature point, and (x2, y2, z2) is the three-dimensional coordinate of the second feature point. This process involves quantizing the feature points extracted from the image and using these descriptor vectors to characterize the unique attributes of each feature point. Specifically, for each pair of feature points from different images, calculate the Euclidean distance between their descriptor vectors as a basic indicator to measure whether the two feature points are similar.
[0046] S702: If the calculated Euclidean distance is less than a preset distance threshold, the two sets of feature points are considered similar. This threshold is a fixed value determined based on experiments or previous experience to distinguish which feature points can be considered matched. In this way, feature points with similar geometric characteristics in different images can be screened out, thereby providing a basis for further matching analysis.
[0047] S703: Calculate the matching score based on the ratio of the number of similar feature points to the total number of feature points. Specifically, the number of feature points identified as similar is divided by the total number of feature points, and the result is the matching score. This ratio reflects the degree of shared features between the two images, and a higher score means that the feature points in the two images are more similar.
[0048] S704: If the matching score is greater than a set threshold, the match is considered successful. The threshold set here is a predefined value used to determine whether the degree of match between the two images is high enough to meet specific application requirements. If the matching score exceeds this threshold, it indicates that there is enough similarity between the two images and they can be considered to be successfully matched.
[0049] Next, refer to Figure 8 Describe the specific steps of a laser reference line measurement system method based on computer vision recognition, which uses successfully matched feature points to perform geometric transformation on two images to achieve calibration: S801: Determine the successfully matched feature point pairs In this step, you first need to detect and extract feature points in the two images using computer vision algorithms. These feature points can be corners, edges, or other unique local areas. Then, feature matching algorithms such as SIFT, SURF, or ORB are used to find the corresponding positions between the two images. Once a sufficient number of matching point pairs are found, you can proceed to the next step.
[0050] S802: Calculate the basic matrix or homography matrix based on the matching point pairs In this step, the geometric relationship between the two images is estimated using an appropriate mathematical model based on the successfully matched feature point pairs. If the two images are from different viewpoints on the same plane, the homography matrix is calculated; if the two images are from viewpoints on different planes, the basic matrix is calculated. These matrices can describe the projective relationship between the two images and are the basis for subsequent geometric transformations.
[0051] S803: Verify the validity of the basic matrix or homography matrix After calculating the fundamental matrix or homography matrix, you need to check whether these matrices are valid. The validity can be determined by checking the rank of the matrix. If the rank of the fundamental matrix or homography matrix is equal to 2 or 3, the matrix is considered valid and can be used for subsequent geometric transformations. This is because in two-dimensional space, a rank of 2 indicates the existence of a non-degenerate homography transformation, while a rank of 3 is applicable to the case of the fundamental matrix.
[0052] S804: Apply a valid fundamental matrix or homography matrix to geometrically transform the image Finally, the images are geometrically transformed using a valid basis matrix or homography to obtain the transformation parameters to achieve calibration between the two images. This calibration ensures that the two images are properly aligned in space, thereby improving the accuracy of subsequent processing steps. For example, in a laser reference line measurement system, the calibrated images can be used to more accurately locate and measure the position and size of the target object.
[0053] Through the above steps, the successfully matched feature points can be effectively used to perform geometric transformation on the two images, thereby achieving the purpose of calibration.
[0054] Next, refer to Fig. 9 Describe the specific steps of optimizing transformation parameters by least square method to improve calibration accuracy in a laser reference line measurement system based on computer vision recognition: S901: By collecting the coordinates of the successfully matched feature points - In this stage, the system first needs to obtain the coordinates of the feature points that are successfully matched in different views. These feature points are usually key points extracted at the location where the laser reference line interacts with the object being measured. In order to ensure the accuracy of the match, algorithms such as scale-invariant feature transform SIFT, fast feature detection and description FAST or directional gradient histogram HOG can be used to identify these feature points. Once these feature points are identified, their coordinate information will be recorded for subsequent calculations.
[0055] S902: Solving the optimal transformation parameters by least squares method - After collecting the coordinates of the successfully matched feature points, the system estimates the optimal transformation parameters by least squares method. These parameters can describe the geometric relationship between the images and minimize the sum of the reprojection errors of all matching point pairs. Specifically, these parameters can be solved by constructing a nonlinear optimization problem and using numerical optimization methods such as Gauss-Newton method or Levenberg-Marquardt algorithm. The transformation parameters obtained in this way can minimize the image distortion caused by factors such as camera position and angle changes.
[0056] S903: By judging whether the reprojection error is less than the preset error threshold - the system checks whether the sum of the reprojection errors obtained in the above steps is less than the preset error threshold. If the sum of the errors is less than the threshold, the transformation parameters are considered to be accurate enough to be used in the subsequent calibration process; otherwise, the transformation parameters need to be further adjusted until the accuracy requirements are met. The choice of this threshold depends on the specific needs of the application and the expected calibration accuracy.
[0057] S904: Final calibration of the image by applying optimized transformation parameters - The last step is to calibrate the image using the optimized transformation parameters. This usually involves geometric transformations such as rotation, scaling, and translation of the image to eliminate distortion caused by changes in camera pose. The calibrated image will more accurately reflect the position of the laser reference line in the actual scene, thereby improving the measurement accuracy of the entire system.
[0058] In actual operation, when this device is used, it is first necessary to align the two Time of Flight cameras with the laser reference line in the scene to be measured. The two cameras can capture the pattern formed by the laser line on the target surface from different angles. Once the laser reference line is captured by the two TOF cameras, the next step is to preprocess these images, which mainly includes operations such as noise removal and contrast enhancement to ensure that the depth information of the laser reference line can be accurately extracted in subsequent processing. To achieve this, the system applies a series of image processing algorithms to highlight the features of the laser line and extract the depth data related to the laser line from it. Subsequently, the system uses a feature point matching algorithm to compare the depth information captured by the two TOF cameras. This process aims to find the corresponding points of the same laser line position in the two views, so as to achieve matching and calibration between the binocular images. Through this matching and calibration, the errors caused by different viewing angles can be eliminated, thereby obtaining more accurate and stable binocular depth information. Finally, using the calibrated depth information, the system uses computer vision technology to identify and track the laser reference line, and can maintain high recognition accuracy and stability even in environments with changing light or complex backgrounds. This process not only improves the accuracy of measurement, but also enhances the robustness of the system, enabling it to play an important role in various practical application scenarios.
[0059] The above formulas are obtained by collecting a large amount of data for software simulation and selecting a formula that is close to the actual value. The coefficients in the formula are set by technical personnel in this field according to actual conditions. The above is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited to this. Any technical personnel familiar with the technical field within the technical scope disclosed by the present invention, according to the technical solution and the inventive concept of the present invention, make equivalent replacement or change, which should be covered within the protection scope of the present invention.
Claims
1. A laser reference line measurement system based on computer vision recognition, characterized in that: include: Use two TOF cameras to photograph the laser reference line in the same scene respectively; Preprocess the images captured by each TOF camera to extract the depth information including the laser reference line; The depth information captured by the two TOF cameras is matched and calibrated based on the feature point matching algorithm; Using the calibrated depth information, the laser reference line is identified and tracked through computer vision technology.
2. The laser reference line measurement system based on computer vision recognition according to claim 1, characterized in that: Using two TOF cameras to shoot the laser reference line in the same scene includes: Adjust the positions and angles of the two TOF cameras to ensure they can capture the laser reference line at the same time; Start the synchronization signal to ensure that the two TOF cameras start shooting at the same time; Based on the synchronization signal trigger, the two TOF cameras capture images containing the laser reference line respectively; Stop the sync signal as soon as you finish shooting.
3. The laser reference line measurement system based on computer vision recognition according to claim 2, characterized in that: Based on the synchronization signal trigger, the two TOF cameras capture images containing the laser reference line including: Set the frequency of the synchronization signal to f to ensure that the two TOF cameras work at the same frequency; Calculate the frequency f of the current synchronization signal, and monitor whether the frequency f of the current synchronization signal reaches a preset threshold T; If the frequency f of the current synchronization signal is equal to or higher than a preset threshold T, the image capture function of the TOF camera is started; Based on the synchronization signal, the two TOF cameras start capturing images at the same time; If the frequency f of the current synchronization signal is less than the threshold T, wait until the frequency f reaches the threshold T again; When the synchronization signal ends, the two TOF cameras stop capturing images.
4. The laser reference line measurement system based on computer vision recognition according to claim 3, characterized in that: Calculating the frequency f of the current synchronization signal includes: Measure the cycle time t of the synchronization signal; Calculate the frequency f using the formula frequency f = 1 / t; Compare the calculated frequency f with a preset threshold value T; If the frequency f is greater than or equal to the threshold T, the subsequent steps are performed.
5. The laser reference line measurement system based on computer vision recognition according to claim 1, characterized in that: Preprocess the images captured by each TOF camera to extract the depth information including the laser reference line including: Perform noise reduction on the original image captured by the TOF camera; Apply a Gaussian filter to smooth the image; The contrast of the laser reference line is enhanced using the threshold segmentation method; The edge detection algorithm is used to extract the contour of the laser reference line.
6. The laser reference line measurement system based on computer vision recognition according to claim 1, characterized in that: The depth information captured by two TOF cameras is matched and calibrated based on the feature point matching algorithm, including: Detect feature points in images captured by two TOF cameras; The matching score is calculated based on the similarity of the feature points. If the score is greater than the set threshold, the match is considered successful; Use the successfully matched feature points to perform geometric transformation on the two images and obtain the transformation parameters; The transformation parameters were optimized by the least squares method.
7. The laser reference line measurement system based on computer vision recognition according to claim 6, characterized in that: The matching score is calculated based on the similarity of feature points: Calculate the Euclidean distance between the descriptor vectors of the feature points, which can be expressed as: D = sqrt[(x1-x2)² + (y1-y2)² + (z1-z2)²] Where D is the Euclidean distance, (x1, y1, z1) is the three-dimensional coordinate of the first feature point, and (x2, y2, z2) is the three-dimensional coordinate of the second feature point; If the Euclidean distance is less than the preset distance threshold, the feature points are considered similar; The matching score is calculated based on the ratio of the number of similar feature points to the total number of feature points, where the matching score is equal to the number of similar feature points divided by the total number of feature points; If the matching score is greater than the set threshold, the match is considered successful.
8. The laser reference line measurement system based on computer vision recognition according to claim 6, characterized in that: Use the successfully matched feature points to perform geometric transformation on the two images and obtain the transformation parameters, including: Determine the successfully matched feature point pairs; Calculate the fundamental matrix or homography matrix based on the matching point pairs; If the value of the calculated fundamental matrix or homography matrix is equal to 2 or 3, the transformation is considered valid; Apply a valid fundamental matrix or homography matrix to geometrically transform the image and obtain the transformation parameters.
9. The laser reference line measurement system based on computer vision recognition according to claim 6, characterized in that: Optimizing transformation parameters by least squares method includes: Collect the coordinates of the successfully matched feature points; Solve the optimal transformation parameters based on the least squares method, where the optimal transformation parameters minimize the sum of the reprojection errors of all matching point pairs; If the sum of the reprojection errors is less than the preset error threshold, the transformation parameter optimization is considered complete; Apply the optimized transformation parameters to perform final calibration on the image.
Citation Information
Patent Citations
Visual ranging-based simultaneous localization and map construction method
CN105469405A
Near space aircraft relative pose measurement method and device based on binocular vision
CN111551151A
Multi-view vision depth exposure synchronization method and system
CN112929575A
Multi-depth map fusion method and device and computer readable storage medium
CN113538301A
Depth image stitching method and device based on TOF camera and computer equipment
CN114972019A
