A method for correcting a visual and laser galvanometer coordinate conversion matrix in field
By using an incremental correction method based on the visual and laser galvanometer coordinate transformation matrix formed by soil calibration carriers and laser ablation spots in the field, the efficiency and accuracy problems of traditional calibration methods in unstructured farmland environments are solved, achieving efficient and precise laser weeding.
Patent Information
- Application Number
- CN202611174542.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-04
- Publication Date
- 2026-11-27
AI Technical Summary
Traditional calibration methods struggle to achieve efficient and accurate coordinate transformation matrix correction for laser weeding robots in unstructured farmland environments, resulting in low robot operating efficiency. Furthermore, existing incremental calibration methods lack robustness in complex environments.
Using field soil as a calibration carrier, a small number of calibration points are obtained through a vision system. These are combined with laser ablation spots to form circular ablation spots. The incremental correction matrix is solved using polynomial feature mapping and the least squares method to achieve rapid updating of the coordinate transformation matrix.
It eliminates the need for a calibration board, significantly shortens operation time, improves weeding efficiency, ensures the accuracy of laser weeding and the robot's anti-interference capability, and enhances overall operation efficiency and precision.
Smart Images

Figure CN123181586A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent agricultural robot technology, specifically to a field incremental correction method for the coordinate transformation matrix between vision and laser galvanometer, applicable to the collaborative control of vision positioning and laser precision weeding in the field operation scenario of intelligent laser weeding robots. Background Technology
[0002] In the field of intelligent agricultural laser weed control, the coordinated control of the vision system and the laser galvanometer is the core technology for achieving precise weed control. The accuracy of the coordinate transformation matrix between the two directly determines the spatial positioning accuracy of laser targeting. Traditional calibration methods often use standard calibration boards to complete full calibration, requiring the collection of a large amount of calibration point data to solve the transformation matrix, which has the drawbacks of cumbersome operation procedures and long time consumption.
[0003] Existing technology, such as patent document with publication number CN119313743A, discloses a camera-laser coordinate transformation parameter calibration device and method for a laser weeding robot. Two mutually perpendicular calibration lines are set on a calibration plate. By adjusting, the two calibration lines are aligned with the X-axis and Y-axis of the laser coordinate system, respectively. Then, by using the coordinate positions of the calibration points in the camera coordinate system and the laser coordinate system, the coordinate transformation parameters corresponding to the X-axis and Y-axis are calculated. By adjusting the height of the calibration platform and calibrating the position of the center, the coordinate transformation parameters corresponding to the Z-axis are obtained.
[0004] Laser weeding robots operate in complex field environments. During long-term operation, factors such as mechanical structure creep, temperature drift, changes in field light intensity, and uneven soil surfaces can all lead to accumulated errors in the initial transformation matrix. If traditional full recalibration methods are used, the operation process must be interrupted to deploy calibration boards in the field. However, it is difficult to stably deploy calibration boards in unstructured farmland environments, and the operation is greatly affected by weather and terrain, significantly reducing robot efficiency. Furthermore, existing incremental calibration methods either rely on preset calibration templates or use a single spot recognition method, lacking robustness in complex field environments and failing to balance calibration accuracy and efficiency.
[0005] Therefore, an incremental correction method for the transformation matrix that does not rely on a calibration board, is based on in-situ ablation spots in the field soil, and supports multiple recognition methods is needed. This is the key to solving the problem of the decrease in accuracy of laser weeding robots in the field. Summary of the Invention
[0006] To address the aforementioned technical problems, this invention provides a field incremental correction method for the visual and laser galvanometer coordinate transformation matrix. Using field soil as a calibration carrier, the incremental update of the transformation matrix can be completed with the help of a small number of calibration points. Compared with traditional full calibration, this method significantly shortens the operation time, avoids long-term robot downtime, and significantly improves the overall weeding efficiency.
[0007] The technical objective of this invention is achieved through the following technical solution: A field incremental correction method for the vision-to-laser galvanometer coordinate transformation matrix, which can be corrected manually or automatically, includes: S1. Obtain the initial transformation matrix between the spatial coordinates of the vision system and the XY deflection angle control values of the laser galvanometer. Initial transformation matrix It is a 2×d-dimensional matrix, where d is the polynomial feature dimension; S2. Acquire real-time images of the field operation area using a vision system. Select one calibration point within the rectangular frame of the area to be calibrated, avoiding weeds and plants. Obtain the pixel coordinates of each calibration point. , , ); S3. Based on the pixel coordinates of the calibration point ( , , Based on the initial transformation matrix Calculate the XY deflection angle control value of the galvanometer ( , ), drive the galvanometer to deflect ( , (To the target angle;) S4. A circular ablation spot is formed on the soil surface of the field operation surface by ablation using a laser emission module; S5. Obtain the pixel coordinates of the ablation spot center. , , ) S6. Obtain the correspondence between visual spatial coordinates and galvanometer XY deflection angle control values. The calibration point count is m = m + 1, initially m = 0, and the preset number of calibration points is M. If m < M, return to step S2 to select one calibration point again. If m ≥ M, execute S7. S7. Solving the incremental correction matrix based on the correspondence between visual spatial coordinates and the XY deflection angle control quantities of the galvanometer. ; S8. Adjust the incremental correction matrix and the initial transformation matrix Linear superposition calculation of the corrected transformation matrix ; S9. Calibration complete. Transfer the corrected transformation matrix. Replace the initial transformation matrix .
[0008] Furthermore, the correspondence between visual spatial coordinates and the control quantities of the galvanometer XY deflection angle ( , ), The pixel coordinates of the ablation spot center. This is the control value for the XY deflection angle of the galvanometer. =1,2,...M; Solve for the incremental correction matrix. At that time, including: S71. Based on the initial transformation matrix Define the dimension of the feature mapping function. ,Will Mapped to d-dimensional polynomial eigenvectors ; S72, Using the initial transformation matrix The spatial coordinates of each ablation spot are predicted and compared with the actual control angles of the galvanometer XY, and the angular residual vector is calculated. : In the formula, This represents the deflection angle error of the galvanometer in both the X and Y directions; S73. Integrate the residual equations of the M ablation spots to form an overdetermined set of equations: In the formula, It is all A column vector formed by stacking them sequentially. The coefficient matrix is 2M×2d. The parameter vector is 2d×1. S74. Solve the overdetermined system of equations using the least squares method to obtain the parameter vector that minimizes the sum of squared residuals. : S75. Rearrange the obtained parameter vectors in order to form the incremental correction matrix. .
[0009] Furthermore, in step S4, when a circular ablation spot is formed on the soil surface of the field operation surface by the laser emission module, the galvanometer deflection angle calculated in step S3 is controlled every 1ms. , The random deflection angle is finely adjusted around the center to form an ablation spot with a radius of 3-5 mm.
[0010] Furthermore, in step S4, two uniformly distributed random numbers belonging to [0,1] are generated every 1ms. and The random deflection angle is The random deflection radius is r; In the formula: A is the maximum angular offset of the galvanometer from the center point; The actual deflection angle control amount of the galvanometer is ,satisfy: Furthermore, when making corrections manually: In step S2, the vision system acquires and displays real-time images of the field operation surface, and overlays the real-time image with a rectangular frame of the area to be calibrated. Calibration points are then manually selected within the rectangular frame.
[0011] Furthermore, when making corrections automatically: in step S2, the rectangular borders of all crops and weeds in the field operation area are identified by the pre-trained crop and weed target recognition model to obtain the border set A; Then, each border in border set A is expanded outward by k millimeters to obtain border set B; Then, within the rectangular area to be calibrated, randomly generate pixel coordinates. Iterate through the border set B and determine the coordinates of the randomly generated pixels. If the pixel is within the border set B, then execute S2 to regenerate the pixel coordinates. If not, obtain the depth coordinates of that pixel. The pixel coordinates of the calibration point are obtained. , , ).
[0012] Furthermore, when correcting automatically, in step S5, a pre-trained ablation spot target recognition model is used to automatically identify the rectangular border of the ablation spot and calculate the center pixel coordinates of the rectangular border of the ablation spot. Then obtain the depth coordinates of the ablation spot. The pixel coordinates of the ablation spot center are obtained. , , ).
[0013] Furthermore, when correcting automatically, in step S6, before returning to step S2 to select another calibration point if m < M, the rectangular border of the ablation spot is expanded outward by k millimeters to obtain a new rectangular border, which is then added to the border set B. Then, within the rectangular area to be calibrated, the pixel coordinates are randomly generated again. .
[0014] Furthermore, the preset cumulative duration of laser output is between 500 and 2000 ms.
[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. This invention uses field soil directly as the calibration carrier, eliminating the need for calibration boards and completely solving the problem that calibration boards are difficult to apply in unstructured farmland scenarios in traditional methods, thus meeting the need for rapid in-situ correction of robots.
[0016] 2. The field incremental correction method for the visual and laser galvanometer coordinate transformation matrix of the present invention only requires a small number of calibration points to complete the incremental update of the transformation matrix. Compared with the traditional full calibration, it greatly shortens the operation time, avoids long-term interruption of robot operation, significantly improves the overall weeding efficiency, and has high correction efficiency.
[0017] 3. The field incremental correction method for the visual and laser galvanometer coordinate transformation matrix of the present invention can be performed manually or automatically. It can flexibly switch according to complex environments such as field lighting and soil conditions, has strong anti-interference ability, effectively ensures the accuracy of calibration data, and thus ensures the accuracy of subsequent laser weeding. Attached Figure Description
[0018] Figure 1 This is a schematic diagram of the manual correction process of the transformation matrix in Embodiment 1 of the present invention.
[0019] Figure 2 This is a schematic diagram of the automatic correction process of the transformation matrix in Embodiment 2 of the present invention. Detailed Implementation
[0020] The technical solution of the present invention will be further described below with reference to specific embodiments: Example 1 An incremental field correction method for the vision-laser galvanometer coordinate transformation matrix is applied to the field weeding operation scenario of an intelligent laser weeding robot. When the laser weeding robot is stationary in the field, the method performs corrections manually. Figure 1 As shown, the method includes: S1. Obtain the initial transformation matrix between the spatial coordinates of the vision system and the XY deflection angle control values of the laser galvanometer. Initial transformation matrix It is a 2×d dimensional matrix, where d is the polynomial feature dimension; for example, the vision system uses an RGBD camera and a two-dimensional high-speed scanning laser mirror, with the relative positions of the RGBD camera and the laser mirror fixed. Initial transformation matrix The initial transformation matrix is obtained through traditional chessboard calibration or other calibration methods, based on third-order polynomial fitting. The reference matrix is stored in the laser weeding robot control system as an incremental correction matrix; in this embodiment, d=3.
[0021] S2. Acquire real-time images of the field operation surface using a vision system, select one calibration point within the rectangular frame of the area to be calibrated, and obtain the pixel coordinates of each calibration point. , , ); Specifically, it includes: Step S21: Start the manual correction program for the transformation matrix, initialize the calibration point count to 0, and set the preset calibration number to M, M=10; Step S22: Acquire and display real-time images of the field operation area using a vision system; Step S23: Overlay the rectangular frame of the area to be calibrated onto the real-time image screen; Step S24: Within the rectangular area to be calibrated, manually select a calibration point using the mouse crosshair cursor to obtain the pixel coordinates of that calibration point. When repeating this step, ensure that each calibration point is distributed widely, covering the entire area to be calibrated as much as possible, and avoiding crops and weeds. Step S25, based on pixel coordinates The depth coordinates of the calibration point are obtained using a depth camera. The pixel coordinates of the calibration point are obtained. , , ).
[0022] S3. Based on the pixel coordinates of the calibration point ( , , Based on the initial transformation matrix Calculate the XY deflection angle control value of the galvanometer ( , ), drive the galvanometer to deflect ( , (To the target angle)
[0023] S4. A circular ablation spot is formed on the soil surface of the field operation surface by ablation using a laser emission module; specifically, a trigger signal is sent to the laser emission module to control the laser output for a preset duration of 500-2000ms. In this embodiment, the output duration is 1000ms. Simultaneously with the laser output, a signal is emitted every 1ms. , Centered on the galvanometer, the XY deflection angle of the galvanometer is randomly finely adjusted to form an ablation spot with a radius of 3-5 mm.
[0024] More specifically, when randomly fine-tuning the XY deflection angle control of the galvanometer, two uniformly random numbers belonging to [0,1] are generated every 1ms. and The random deflection angle is The random deflection radius is r; In the formula: A is the maximum angular offset of the galvanometer from the center point. The maximum radius of the final ablation spot is controlled by controlling the size of A: increasing A will make the ablation spot larger, and decreasing A will make the ablation spot smaller. Finally, A is fixed as a constant and the parameter value is reused every 1ms of random sampling.
[0025] The actual deflection angle control amount of the galvanometer is ,satisfy: S5. Obtain the pixel coordinates of the ablation spot center. , , Specifically, it includes: Step S51: In the real-time image, manually and precisely click on the center position of the ablation spot using the mouse crosshair cursor to obtain the pixel coordinates of the ablation spot center. :; Step S52: Then based on pixel coordinates The depth coordinates of the center of the ablation spot were obtained using a depth camera. Finally, the pixel coordinates of the ablation spot center were obtained. , , ).
[0026] S6. Obtain a set of correspondences between visual space coordinates and the XY deflection angle control values of the galvanometer: The calibration point count is m = m + 1, initially m = 0, and the preset number of calibration points is M. If m < M, return to step S2 to select one calibration point again (specifically execute step S24). If m ≥ M, execute S7.
[0027] S7. Solving the incremental correction matrix based on the correspondence between visual spatial coordinates and the XY deflection angle control quantities of the galvanometer. ; Specifically, the correspondence between visual spatial coordinates and the control quantities of the galvanometer XY deflection angle ( , ), The pixel coordinates of the ablation spot center ( , , ), For the control amount of the XY deflection angle of the galvanometer ( , ), =1,2,...M; Solve for the incremental correction matrix. At that time, including: S71. Based on the initial transformation matrix Define the feature mapping function based on the dimension (2×d). ,Will Mapped to d-dimensional polynomial eigenvectors ; S72, Using the initial transformation matrix The spatial coordinates of each ablation spot are predicted and compared with the actual control angles of the galvanometer XY, and the angular residual vector is calculated. : In the formula, It is a 2×1 vector representing the deflection angle error of the galvanometer in the X and Y directions; S73. Integrate the residual equations of the M ablation spots to form an overdetermined set of equations: In the formula, It is all A 2M×1 column vector formed by stacking columns sequentially; The coefficient matrix is 2M×2d, and its structure is related to the eigenmap and the initial matrix. By expanding the block diagonal or block matrix form, the corrections in the X and Y directions can be solved simultaneously. The parameter vector is 2d×1 and contains the initial transformation matrix. The required correction amount across all parameters; S74. Solve the overdetermined system of equations using the least squares method to obtain the parameter vector that minimizes the sum of squared residuals. : In this embodiment: T represents the transpose of a matrix (vector), which interchanges the rows and columns of the matrix; S75. Rearrange the obtained parameter vectors in order to form a 2×d matrix, which is the incremental correction matrix. .
[0028] S8. Adjust the incremental correction matrix and the initial transformation matrix Linear superposition calculation of the corrected transformation matrix ; S9. Calibration complete. Transfer the corrected transformation matrix. Replace the initial transformation matrix The corrected transformation matrix is then stored in the laser weeding robot control system for subsequent precise laser weeding.
[0029] Example 2 An incremental field correction method for the vision-laser galvanometer coordinate transformation matrix is applied to the field weeding operation scenario of an intelligent laser weeding robot. The laser weeding robot is stationary in the field, such as... Figure 2 As shown, this method performs corrections automatically, and includes the following: S1. Obtain the initial transformation matrix between the spatial coordinates of the vision system and the XY deflection angle control values of the laser galvanometer. Initial transformation matrix It is a 2×d dimensional matrix, where d is the polynomial feature dimension; for example, the vision system uses an RGBD camera and a two-dimensional high-speed scanning laser mirror, with the relative positions of the RGBD camera and the laser mirror fixed. Initial transformation matrix The initial transformation matrix is obtained through traditional chessboard calibration or other calibration methods, based on third-order polynomial fitting. The reference matrix is stored in the laser weeding robot control system as an incremental correction matrix; in this embodiment, d=3.
[0030] S2. Acquire real-time images of the field operation area using a vision system. Select one calibration point within the rectangular frame of the area to be calibrated, avoiding weeds and plants. Obtain the pixel coordinates of each calibration point. , , ); Specifically, it includes: Step S21: Start the automatic correction program for the transformation matrix, initialize the calibration point count m to 0, and set the preset number of calibration points to M, M=10; Step S22: Acquire real-time images of the field operation surface using a vision system; Step S23: Using a crop and weed target recognition model pre-trained based on the YOLO algorithm, identify the rectangular borders of all debris and weeds in the field operation area to obtain the border set A; Step S24: Expand each border in border set A outward by k millimeters and save it as border set B; generate a restricted area (border set B) by expanding the borders outward by k millimeters, so that the calibration point falls on the soil outside the restricted area to prevent the laser from ablating and damaging crops and weeds; More specifically, 3mm≤k≤8mm: The radius of the laser ablation spot is 3-5mm. If k < the radius of the ablation spot, the randomly generated calibration point is still likely to fall on the edge of the ablation spot, and the laser will burn the same area twice, resulting in overlapping ablation spots and incorrect center identification. When the YOLO algorithm pre-trained crop and weed target recognition model is performing crop and weed recognition, and when the ablation spot target recognition model is performing ablation spot rectangular border recognition, there is border expansion and edge pixel difference. If the k value is too small, "visual judgment is that there are no plants, but in fact they are close to crops", and the laser will mistakenly burn weeds and crops. In addition, the undulation of the soil in the field and the camera's depth of field error will cause coordinate offset, and a safe buffer distance needs to be reserved. Therefore, the lower limit of the k value is preferably ≥3mm. If the value of k is too large, the area of the restricted area (boundary set B) will increase dramatically, the area of available soil samples within the rectangle to be calibrated will decrease, the random generation of calibration points will be repeatedly invalidated, the program will lag, and the time required to collect M calibration points will increase significantly. In addition, if the value of k is too large, the available sampling area will be narrow, the calibration points will be concentrated in local areas, the error of the transformation matrix (ΔH) of the polynomial least squares fitting will increase, and the correction accuracy will decrease. In extreme cases, if the value of k is too large, there will be no available soil in the area to be calibrated, and calibration cannot be completed. Therefore, the upper limit of the value of k is preferably ≤8mm. In one implementation process, the optimal value for k is 5mm, which achieves a balance between safety redundancy and sampling space. The maximum ablation spot size is 5mm, and a complete safety zone is reserved around crops and old light spots to completely eliminate accidental laser damage; it also avoids excessive compression of the sampling area, ensuring that the M calibration points are evenly distributed across the area to be calibrated, resulting in optimal fitting accuracy.
[0031] Step S25: Randomly generate the coordinates of a pixel within the rectangular area to be calibrated. ; Step S26: Traverse the border set B and determine the pixel coordinates. Is it within the border of the border set B? If yes, return to step S25 to reselect the calibration point; otherwise, proceed to step S27 to ensure that the selected calibration point is located on the soil. Step S27: Based on pixel coordinates The depth coordinates of the calibration point are obtained using a depth camera. Obtain the pixel coordinates of each calibration point. , , ).
[0032] S3. Based on the pixel coordinates of the calibration point ( , , Based on the initial transformation matrix Calculate the XY deflection angle control value of the galvanometer ( , ), drive the galvanometer to deflect ( , (To the target angle)
[0033] S4. A circular ablation spot is formed on the soil surface of the field operation surface by ablation using a laser emission module; Specifically, the preset duration of laser output is controlled to be between 500 and 2000 ms. In this embodiment, the output duration is 1000 ms. Simultaneously with laser output, the galvanometer deflection angle calculated in step S3 is controlled every 1 ms. , The random deflection angle is finely adjusted around the center to form an ablation spot with a radius of 3-5 mm.
[0034] More specifically, when randomly fine-tuning the XY deflection angle control of the galvanometer, two uniformly random numbers belonging to [0,1] are generated every 1ms. and The random deflection angle is The random deflection radius is r; In the formula: A is the maximum angular offset of the galvanometer from the center point. The maximum radius of the final ablation spot is controlled by controlling the size of A: increasing A will make the ablation spot larger, and decreasing A will make the ablation spot smaller. Finally, A is fixed as a constant and the parameter value is reused every 1ms of random sampling.
[0035] The actual deflection angle control amount of the galvanometer is ,satisfy: S5. Obtain the pixel coordinates of the ablation spot center. , , Specifically, it includes: Step S51: Using a pre-trained ablation spot target recognition model based on the YOLO algorithm, automatically identify the rectangular bounding box of the ablation spot and calculate the center pixel coordinates of the rectangular bounding box of the ablation spot. ; Step S52: Based on pixel coordinates The depth coordinates of the ablation spot were obtained using a depth camera. The pixel coordinates of the ablation spot center are obtained. , , ).
[0036] S6. Obtain the correspondence between visual space coordinates and the XY deflection angle control of the galvanometer: ; The number of calibration points is m = m + 1; If m < M, then return to step S2 to select one calibration point again; If m ≥ M, then execute S7. Before returning to step S2 and selecting another calibration point, expand the rectangular border of the ablation spot outward by k (K=5) millimeters to obtain a new rectangular border and add it to the border set B. Then, execute step S25 to randomly generate pixel coordinates again within the rectangular area to be calibrated. Then, step S26 is executed for judgment. By expanding the rectangular border of the ablation spot by k millimeters and incorporating it into the restricted area (border set B), subsequent calibration points avoid the old ablation spot, thus preventing the overlap of new and old ablation spots from interfering with the visual recognition of the vision system.
[0037] S7. Solving the incremental correction matrix based on the correspondence between visual spatial coordinates and the XY deflection angle control quantities of the galvanometer. ; Specifically, the correspondence between visual spatial coordinates and the control quantities of the galvanometer XY deflection angle ( , ), The pixel coordinates of the ablation spot center ( , , ), For the control amount of the XY deflection angle of the galvanometer ( , ), =1,2,...M; Solve for the incremental correction matrix. At that time, including: S71. Based on the initial transformation matrix Define the feature mapping function based on the dimension (2×d). ,Will Mapped to d-dimensional polynomial eigenvectors ; S72, Using the initial transformation matrix The spatial coordinates of each ablation spot are predicted and compared with the actual control angles of the galvanometer XY, and the angular residual vector is calculated. : In the formula, It is a 2×1 vector representing the deflection angle error of the galvanometer in the X and Y directions; S73. Integrate the residual equations of the M ablation spots to form an overdetermined set of equations: In the formula, It is all A 2M×1 column vector formed by stacking columns sequentially; The coefficient matrix is 2M×2d, and its structure is related to the eigenmap and the initial matrix. By expanding the block diagonal or block matrix form, the corrections in the X and Y directions can be solved simultaneously. The parameter vector is 2d×1 and contains the initial transformation matrix. The required correction amount across all parameters; S74. Solve the overdetermined system of equations using the least squares method to obtain the parameter vector that minimizes the sum of squared residuals. : In this embodiment: T represents the transpose of a matrix (vector), which interchanges the rows and columns of the matrix; S75. Rearrange the obtained parameter vectors in order to form a 2×d matrix, which is the incremental correction matrix. .
[0038] S8. Adjust the incremental correction matrix and the initial transformation matrix Linear superposition calculation of the corrected transformation matrix ; S9. Calibration complete. Transfer the corrected transformation matrix. Replace the initial transformation matrix The corrected transformation matrix is then stored in the laser weeding robot control system for subsequent precise laser weeding.
[0039] This embodiment is merely a further explanation of the present invention and is not intended to limit the present invention. Those skilled in the art can make non-inventive modifications to this embodiment as needed after reading this specification, but such modifications are protected by patent law as long as they are within the scope of the claims of the present invention.
Claims
1. A field incremental correction method for the coordinate transformation matrix between a vision system and a laser galvanometer, characterized in that, This method involves correction, either manually or automatically, and includes: S1. Obtain the initial transformation matrix between the spatial coordinates of the vision system and the XY deflection angle control values of the laser galvanometer. Initial transformation matrix It is a 2×d-dimensional matrix, where d is the polynomial feature dimension; S2. Acquire real-time images of the field operation area using a vision system. Select one calibration point within the rectangular frame of the area to be calibrated, avoiding weeds and plants. Obtain the pixel coordinates of each calibration point. , , ); S3. Based on the pixel coordinates of the calibration point ( , , Based on the initial transformation matrix Calculate the XY deflection angle control value of the galvanometer ( , ), drive the galvanometer to deflect ( , (To the target angle;) S4. A circular ablation spot is formed on the soil surface of the field operation surface by ablation using a laser emission module; S5. Obtain the pixel coordinates of the ablation spot center. , , ) S6. Obtain the correspondence between visual spatial coordinates and galvanometer XY deflection angle control values. The calibration point count is m = m + 1, initially m = 0, and the preset number of calibration points is M. If m < M, return to step S2 to select one calibration point again. If m ≥ M, execute S7. S7. Solving the incremental correction matrix based on the correspondence between visual spatial coordinates and the XY deflection angle control quantities of the galvanometer. ; S8. Adjust the incremental correction matrix and the initial transformation matrix Linear superposition calculation of the corrected transformation matrix ; S9. Calibration complete. Transfer the corrected transformation matrix. Replace the initial transformation matrix .
2. The field incremental correction method for the visual and laser galvanometer coordinate transformation matrix according to claim 1, characterized in that, Correspondence between visual spatial coordinates and galvanometer XY deflection angle control quantities ( , ), The pixel coordinates of the ablation spot center. This is the control value for the XY deflection angle of the galvanometer. =1,2,...M; Solve for the incremental correction matrix. At that time, including: S71. Based on the initial transformation matrix Define the dimension of the feature mapping function. ,Will Mapped to d-dimensional polynomial eigenvectors ; S72, Using the initial transformation matrix The spatial coordinates of each ablation spot are predicted and compared with the actual control angles of the galvanometer XY, and the angular residual vector is calculated. : In the formula, This represents the deflection angle error of the galvanometer in both the X and Y directions; S73. Integrate the residual equations of the M ablation spots to form an overdetermined set of equations: In the formula, It is all A column vector formed by stacking them sequentially. The coefficient matrix is 2M×2d. The parameter vector is 2d×1. S74. Solve the overdetermined system of equations using the least squares method to obtain the parameter vector that minimizes the sum of squared residuals. : S75. Rearrange the obtained parameter vectors in order to form the incremental correction matrix. .
3. The field incremental correction method for the visual and laser galvanometer coordinate transformation matrix according to claim 1, characterized in that, In step S4, when a circular ablation spot is formed on the soil surface of the field work surface by the laser emission module, the galvanometer deflection angle calculated in step S3 is controlled every 1ms. , The random deflection angle is finely adjusted around the center to form an ablation spot with a radius of 3-5 mm.
4. The field incremental correction method for the visual and laser galvanometer coordinate transformation matrix according to claim 3, characterized in that, In S4, two uniformly distributed random numbers belonging to [0,1] are generated every 1ms. and The random deflection angle is The random deflection radius is r; In the formula: A is the maximum angular offset of the galvanometer from the center point; The actual deflection angle control amount of the galvanometer is ,satisfy:
5. A field incremental correction method for the visual and laser galvanometer coordinate transformation matrix according to any one of claims 1-4, characterized in that, When making corrections manually: In step S2, the vision system acquires and displays real-time images of the field operation surface. The rectangular frame of the area to be calibrated is overlaid on the real-time image. Calibration points are manually selected within the rectangular frame.
6. The field incremental correction method for the visual and laser galvanometer coordinate transformation matrix according to any one of claims 1-4, characterized in that, When correcting automatically: In step S2, the rectangular borders of all crops and weeds in the field operation area are identified by the pre-trained crop and weed target recognition model to obtain the border set A; Then, each border in border set A is expanded outward by k millimeters to obtain border set B; Then, within the rectangular area to be calibrated, randomly generate pixel coordinates. Iterate through the border set B and determine the coordinates of the randomly generated pixels. If the pixel is within the border set B, then execute S2 to regenerate the pixel coordinates. If not, obtain the depth coordinates of that pixel. The pixel coordinates of the calibration point are obtained. , , ).
7. The field incremental correction method for the visual and laser galvanometer coordinate transformation matrix according to claim 6, characterized in that, In step S5, a pre-trained ablation spot target recognition model is used to automatically identify the rectangular bounding box of the ablation spot and calculate the center pixel coordinates of the rectangular bounding box of the ablation spot. Then obtain the depth coordinates of the ablation spot. The pixel coordinates of the ablation spot center are obtained. , , ).
8. The field incremental correction method for the visual and laser galvanometer coordinate transformation matrix according to claim 7, characterized in that, In step S6, if m < M, before returning to step S2 to select another calibration point, the rectangular border of the ablation spot is expanded outward by k millimeters to obtain a new rectangular border, which is then added to the border set B. Then, within the rectangular area to be calibrated, the pixel coordinates are randomly generated again. .
9. The field incremental correction method for the visual and laser galvanometer coordinate transformation matrix according to claim 3, characterized in that, The preset cumulative duration of laser output is between 500 and 2000 ms.
Citation Information
Patent Citations
Laser weeding robot camera-laser coordinate transformation parameter calibration device and method
CN119313743A
