Assembly parameter adjusting method for laser galvanometer sensor

By automatically controlling the parameter adjustment of the galvanometer and laser, the problem of difficult to ensure position consistency in the assembly of the laser galvanometer sensor is solved, the assembly efficiency and consistency are improved, the production cost is reduced, and the effectiveness of the detection process is ensured.

CN118913139APending Publication Date: 2024-11-08EASY THINKING HANGZHOU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411119571.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

During the assembly process of existing laser galvanometer sensors, the relative position adjustment consistency between the galvanometer and the laser is difficult to ensure, resulting in high production costs, low efficiency, and poor hardware response characteristics, affecting the effectiveness of the detection process.

Method used

Through an automated method, the signal sent by the main control board is used to control the opening and closing time and rotation period of the galvanometer and line laser, forming a striped projection pattern. After the camera acquires the image, it calculates the pixel offset and automatically adjusts the galvanometer angle and laser time. Ensure consistency of the striped image.

Benefits of technology

It greatly reduces the commissioning workload of production personnel, improves assembly efficiency, ensures the consistency of sensor usage and hardware response characteristics, and improves the adaptability of control programs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118913139A_ABST
    Figure CN118913139A_ABST
Patent Text Reader

Abstract

The invention discloses a method for adjusting assembly parameters of a laser galvanometer sensor. The method comprises the following steps: setting opening and closing time of a line laser, an initial preset angle of a galvanometer and an installation angle of the line laser; single-line laser projected by the line laser presents vertical stripes on the surface plate after being reflected by the galvanometer; a camera acquires images, the acquired stripe images comprise middle stripes and other stripes, the middle stripes are different from the other stripes, and the other stripes are consistent in width and are symmetrically distributed along the middle stripes; calculating a pixel distance pixel from a middle stripe in the reference image to a middle plane of the two cameras; adjusting the preset angle of the galvanometer, enabling the galvanometer to be close to or far away from the reference camera, and when the pixel is in an allowable interval, completing the adjustment of assembly parameters; according to the method, the parameters of the laser galvanometer sensor are accurately adjusted, the automation degree is high, the assembly efficiency is improved, and the consistency of the sensor is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of sensor assembly, and in particular to an assembly parameter adjustment method for a laser galvanometer sensor. Background Art

[0002] With the improvement of industrial automation, more and more jobs that need to be done manually are replaced by robots. Among them, guided grasping based on machine vision is a new application developed in logistics, heavy industry, automobile manufacturing and other industries in recent years. Its basic principle is to obtain the 3D point cloud contour coordinate information of the grasped object based on the machine vision 3D detection method, and then automatically generate the robot's motion trajectory in combination with the path planning algorithm, and input the trajectory information to the robot controller, so as to control the robot to move to the vicinity of the grasped object along the specified path and perform grasping operations on the object.

[0003] Among them, the surface structured light 3D vision sensor is a key component for obtaining the 3D point cloud coordinate information of the object. Its basic components are a camera and a surface structured light generator. According to the different ways of generating structured light, it is divided into DLP surface structured light sensors and laser galvanometer surface structured light sensors.

[0004] DLP surface structured light sensors have the characteristics of good data surface quality and high precision, and are widely used. However, for bright objects and dark objects, DLP brightness is limited, which will cause a large number of point cloud missing when reconstructing the point cloud. For this reason, laser galvanometer surface structured light sensors came into being for such objects. Their point cloud integrity performance on reflective bright and dark objects is better than that of DLP surface structured light sensors.

[0005] The laser galvanometer structured light sensor is mainly composed of a galvanometer, a laser and a camera. In order to ensure the ultimate measurement accuracy of the sensor, the installation position of key components needs to be precisely controlled, and precise timing coordination of the galvanometer and the laser is required to achieve the projection of stripe coded information.

[0006] Before the sensors leave the factory, in order to ensure the consistency of the manufacturing of each sensor, production personnel need to spend a lot of time adjusting the relative position of the galvanometer and the laser. In addition, when parts are aged or damaged, they need to be reassembled and replaced. At this time, the relative position of the galvanometer and the laser also needs to be readjusted. The assembly and adjustment costs are high and the efficiency is low. It is also difficult to ensure the consistency of different sensors when used. The coordination of parts is not uniform and the hardware response characteristics are also different, making it difficult to ensure the effectiveness of the subsequent detection process. Summary of the invention

[0007] In order to solve the above technical problems, the present invention provides a method for adjusting assembly parameters of a laser galvanometer sensor. The method accurately adjusts the parameters of the laser galvanometer sensor, has a high degree of automation, improves assembly efficiency, and ensures the consistency of the sensor.

[0008] The technical solution is as follows:

[0009] A method for adjusting assembly parameters of a laser galvanometer sensor, the laser galvanometer sensor comprising: a housing, a main control board installed in the housing, a galvanometer controlled by the main control board, a line laser and two cameras; the two cameras are symmetrically arranged;

[0010] The line laser projects the line laser to the galvanometer at a certain frequency according to the on-off signal sent by the main control board; the galvanometer controls the galvanometer to rotate periodically according to the rotation period signal sent by the main control board, so as to reflect the line laser to the surface of the object to be measured to form a fringe projection pattern; the two cameras constitute a binocular vision system, and shoot the fringe projection pattern according to the signal sent by the main control board to obtain a fringe image corresponding to the fringe projection pattern;

[0011] Wherein, the assembly parameter adjustment method comprises the following steps:

[0012] 1) Place the laser galvanometer sensor horizontally and set a flat plate in front of it;

[0013] Set the on and off time of the line laser, the initial preset angle of the galvanometer, and the installation angle of the line laser; make the single line laser projected by the line laser appear as vertical stripes on the flat plate after being reflected by the galvanometer;

[0014] 2) The main control board sends start signals to the galvanometer, line laser, and two cameras respectively;

[0015] The camera starts to expose, and at the same time, the line laser is turned on and off repeatedly according to the on and off time; the galvanometer rotates at a constant speed and periodically, reflecting the laser bar projected by the line laser each time it is turned on to different positions on the flat plate;

[0016] After the camera exposure is finished, the collected stripe image includes a middle stripe and other stripes, wherein the middle stripe is different from the other stripes, and the other stripes have the same width and are symmetrically distributed along the middle stripe;

[0017] 3) The stripe image captured by any of the two cameras is recorded as the reference image, and the corresponding camera is recorded as the reference camera. The pixel distance △pixel from the middle stripe in the reference image to the middle plane between the two cameras is calculated;

[0018] The middle plane between the two cameras is a plane passing through the intersection of the optical axes of the two cameras and perpendicular to the line connecting the same positions of the two cameras;

[0019] 4) If △pixel is within the allowable range, proceed directly to step 5);

[0020] On the contrary, adjust the preset angle of the galvanometer to move it closer to or farther away from the reference camera, record the adjusted preset angle as the new preset angle, and jump to step 2);

[0021] 5) Record the current preset angle value as the starting angle of the galvanometer to complete the assembly parameter adjustment.

[0022] Further, in step 3), △pixel = (d2×w1-d1×w2) / (2×w2), wherein d1 represents the pixel distance from the middle stripe in the reference image to the center line of the image, w1 represents the pixel width of the middle stripe in the reference image, d2 represents the pixel distance from the middle stripe in the image captured by another camera to the center line of the image, and w2 represents the pixel width of the middle stripe in the image captured by another camera.

[0023] Preferably, the middle stripe in step 2) is distinguished from other stripes in that: the middle stripe is wider or thinner than other stripes, or the spacing between the middle stripe and adjacent stripes is significantly wider or narrower than the spacing between other stripes.

[0024] Preferably, before setting the on and off time of the line laser, first revise the line laser as follows:

[0025] Step S1: Initialize the on time and off time of the line laser. At this time, the on time is equal to the off time;

[0026] Step S2: The main control board sends a start signal to the galvanometer, the line laser, and one of the cameras respectively;

[0027] The camera starts to expose, and at the same time, the line laser is turned on and off multiple times in succession according to the on and off time; the galvanometer rotates at a constant speed and periodically, reflecting the laser bar projected by the line laser each time it is turned on to different positions on the pure color flat panel;

[0028] After the camera exposure is completed, the acquired stripe image contains multiple vertical stripes;

[0029] Step S3: calculating the average pixel width A1 of each stripe spacing and the average pixel width A2 of each stripe according to the stripe image;

[0030] Determine whether A1 and A2 are equal. If they are equal, jump to step S4; otherwise, continue to determine whether A1 is greater than A2. If so, the line laser is turned on for a short time. Increase the turn-on time and reduce the turn-off time according to the preset step length, and execute step S2 again; if not, the line laser is turned off for a short time. Increase the turn-off time and reduce the turn-on time according to the preset step length, and execute step S2 again;

[0031] Step S4: Obtain the opening time and closing time of the line laser, and record the difference between the opening time and the closing time and the initial time as the correction value (delay time) of the opening and closing time of the line laser.

[0032] Furthermore, in step 1), the installation angle of the line laser is set so that the line laser projected by it appears as vertical stripes on the flat plate after being reflected by the galvanometer, in the following manner:

[0033] Disposing vertical lines on the plane plate;

[0034] The line laser is rotated multiple times according to the preset angle step. During each rotation, it is observed whether the stripes projected on the plane plate are parallel to the vertical lines in the plane plate. When the two are parallel, the rotation is stopped and the position of the line laser is fixed.

[0035] Furthermore, in step 1), the initial preset angle of the galvanometer is: the angle at which the galvanometer is located when the line laser is projected onto the flat plate through coarse adjustment.

[0036] Preferably, in step 4), the preset angle of the galvanometer is adjusted step by step with an angle step length of 1 to 5°;

[0037] Alternatively, adjust the preset galvanometer angle by following the steps below:

[0038] In step 1), the following steps are also included: coarsely adjusting the galvanometer so that all the stripes are included in the stripe image collected by one of the cameras, calculating the pixel distance W between the first and last stripes in the stripe image, and retrieving the angle value β of the total rotation of the galvanometer from the starting angle to the ending angle;

[0039] In step 4), the galvanometer is rotated by Δθ, and the angle after rotation is recorded as a new preset angle;

[0040] △pixel is the pixel distance from the middle stripe in the reference image to the middle plane between the two cameras.

[0041] This method solves the problem that it is difficult to ensure the consistency of the relative position of the galvanometer and the laser during assembly and debugging. By analyzing the pixel offset of the projected image, the offset of the center position of the projected stripe is automatically calculated, and the deflection angle of the galvanometer is automatically and accurately adjusted, which greatly reduces the debugging workload of production personnel and ensures the consistency of the structured light image projected by the sensor.

[0042] In order to adapt to the galvanometers and lasers with different hardware response characteristics from different manufacturers, the laser start and end time is accurately controlled through the width information of the stripes and stripes in the stripe image, thereby achieving precise control of the projection timing, greatly improving the adaptability of the control program. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a schematic diagram of the structure composition and different projection areas of the laser galvanometer sensor in a specific implementation manner;

[0044] Figure 2 Schematic diagram of fringe images corresponding to different projection areas;

[0045] Figure 3 Schematic diagram of the pixel distance calculation process from the middle stripe to the middle plane between the two cameras. DETAILED DESCRIPTION

[0046] The technical solution of the present invention is described in detail below in conjunction with embodiments.

[0047] like Figure 1 As shown in the figure, the projection area is different when the galvanometer is at different preset angles, such as Figure 2 The three fringe images in the figure correspond to projection area 1, projection area 2 (indicated by dotted lines), and projection area 3 (indicated by bold lines) from top to bottom. It can be seen that the fringe images corresponding to projection area 1 are biased to the right as a whole ( Figure 2 The first picture in the figure), the stripes in the stripe image corresponding to the projection area 2 are overall biased to the left ( Figure 2 In the second picture in the figure), only the stripe image corresponding to the projection area 3 has the stripe centered (the wide stripe is the middle stripe in the middle plane of the two cameras, corresponding to Figure 2 Therefore, in this scheme, the purpose of adjusting the preset angle of the galvanometer is to make it at a suitable starting angle (preset angle). After it rotates continuously, the projected middle stripe is located in the middle of the two cameras. At this time, both the left and right cameras can collect rich stripes, providing strong data support for subsequent image analysis.

[0048] Exemplary embodiments are as follows:

[0049] A method for adjusting assembly parameters of a laser galvanometer sensor, such as Figure 1 As shown, the laser galvanometer sensor comprises: a housing and a main control board 2 installed in the housing, a galvanometer 3 controlled by the main control board, a line laser 5 and two cameras 1; the two cameras are symmetrically arranged;

[0050] The line laser projects the line laser to the galvanometer at a certain frequency according to the on / off signal sent by the main control board; the galvanometer controls the galvanometer to rotate periodically according to the rotation period signal sent by the main control board, so as to reflect the line laser to the surface of the object to be measured to form a fringe projection pattern; two cameras constitute a binocular vision system, which shoots the fringe projection pattern according to the signal sent by the main control board to obtain the fringe image corresponding to the fringe projection pattern;

[0051] The assembly parameter adjustment method comprises the following steps:

[0052] 1) Place the laser galvanometer sensor horizontally and set a flat plate in front of it;

[0053] The on-off time of the line laser 5, the initial preset angle of the galvanometer 3, and the installation angle of the line laser 5 are set; the single line laser (indicated by the arrow) projected by the line laser appears as a vertical stripe on the flat plate after being reflected by the galvanometer 3;

[0054] 2) The main control board sends start signals to the galvanometer, line laser, and two cameras respectively;

[0055] The camera starts to expose, and at the same time, the line laser is turned on and off repeatedly according to the on and off time; the galvanometer rotates at a constant speed and periodically, reflecting the laser bar projected by the line laser each time it is turned on to different positions on the flat plate;

[0056] After the camera exposure is finished, the collected stripe image contains the middle stripe and other stripes. The middle stripe is different from other stripes. The other stripes have the same width and are symmetrically distributed along the middle stripe.

[0057] Specifically, the middle stripe is distinguished from the other stripes in that: the middle stripe is wider or thinner than the other stripes, or the spacing between the middle stripe and adjacent stripes is significantly wider or narrower than the spacing between the other stripes.

[0058] In this embodiment, when projecting the middle stripe, the on time of the line laser is controlled to be different from the on time when projecting other stripes. The longer the on time of the line laser is, the wider the stripe is.

[0059] 3) The stripe image captured by any of the two cameras is recorded as the reference image, and the corresponding camera is recorded as the reference camera. The pixel distance △pixel from the middle stripe in the reference image to the middle plane between the two cameras is calculated;

[0060] The middle plane between the two cameras is a plane passing through the intersection of the optical axes of the two cameras and perpendicular to the line between the same positions of the two cameras;

[0061] 4) If △pixel is within the allowable range (corresponding to Figure 1 The projection area 3, corresponding to Figure 2 If the third picture in the figure is not shown, then proceed directly to step 5);

[0062] On the contrary, adjust the preset angle of the galvanometer to move it closer to or farther away from the reference camera, record the adjusted preset angle as the new preset angle, and jump to step 2);

[0063] For example: the tolerance interval is [-5pixel, 5pixel];

[0064] If △pixel is greater than the right end point of the allowable interval 5pixel (corresponding to Figure 2 ), then the control galvanometer is rotated Δθ at the preset angle toward the direction close to the reference camera (counterclockwise (looking down at the galvanometer)), and the angle after rotation is recorded as the new preset angle, and the process jumps to step 2);

[0065] If △pixel is less than the left end point of the tolerance interval -5pixel (corresponding Figure 2 ), then the control galvanometer is rotated Δθ at a preset angle in a direction away from the reference camera (clockwise (looking down at the galvanometer)), and the angle after rotation is recorded as the new preset angle, and the process jumps to step 2);

[0066] 5) Record the current preset angle value as the starting angle of the galvanometer to complete the assembly parameter adjustment.

[0067] In step 3), △pixel = (d2×w1-d1×w2) / (2×w2), wherein d1 represents the pixel distance from the middle stripe in the reference image to the center line of the image, w1 represents the pixel width of the middle stripe in the reference image, d2 represents the pixel distance from the middle stripe in the image captured by another camera to the center line of the image, and w2 represents the pixel width of the middle stripe in the image captured by another camera.

[0068] Specifically, if Figure 3 As shown, the calculation process of △pixel in step 3) is as follows:

[0069] Assume that the actual width of the middle stripe is d; the left camera is the reference camera, and the captured image is the reference image;

[0070] In the stripe image (reference image) captured by the left camera, the pixel distance from the middle stripe (the center line of the light stripe) to the center line of the image is obtained and recorded as d1, and the pixel width of the middle stripe is recorded as w1;

[0071] In the stripe image captured by the right camera, the pixel distance from the middle stripe to the center line of the image is recorded as d2, and the pixel width of the middle stripe is recorded as w2;

[0072] The pixel ratios in the left camera and the right camera are:

[0073] ratio1=d / w1、ratio2=d / w2

[0074] When the middle light bar is in the theoretical position, its distance from the center line of the left camera image is:

[0075] L=((d1×d / w1)+(d2×d / w2)) / 2;

[0076] The distance between the middle light bar at the actual position and the center line of the left camera image is:

[0077] L1=d1×ratio1=d1×d / w1;

[0078] The distance between the middle light bar at the actual position and the middle plane between the two cameras is:

[0079] ΔL=L-L1;

[0080] The corresponding pixel distance in the left camera is:

[0081] Δpixel=ΔL / ratio1=(d2×w1-d1×w2) / (2×w2);

[0082] When Δpixel is within the allowable range (eg, [-5pixel, 5pixel]), the middle light bar is symmetrically distributed relative to the left camera and the right camera.

[0083] In the specific implementation, when adjusting the preset angle of the galvanometer in step 4), the angle is adjusted step by step, and the step value is 1 to 5 degrees;

[0084] Alternatively, adjust the preset galvanometer angle by following the steps below:

[0085] Step 1) also includes the following steps: coarsely adjusting the galvanometer so that all the stripes are included in the stripe image collected by one of the cameras, calculating the pixel distance W between the first and last stripes in the stripe image, and retrieving the angle value β of the total rotation of the galvanometer from the starting angle to the ending angle;

[0086] In step 4), the galvanometer is rotated by Δθ, and the angle after rotation is recorded as a new preset angle;

[0087] △pixel is the pixel distance from the middle stripe in the reference image to the middle plane between the two cameras.

[0088] More specifically, in step 1), the initial preset angle of the galvanometer is: the angle at which the galvanometer is located when the line laser is projected onto the flat plate through coarse adjustment.

[0089] The following contents are for adjusting the line laser:

[0090] On the one hand, the installation angle of the line laser is set so that the line laser projected by it appears as vertical stripes on the flat plate after being reflected by the galvanometer (such as Figure 1 In the embodiment, the direction of the laser strip (indicated by the arrow) emitted by the line laser is perpendicular to the rotating axis 4 of the galvanometer), and the specific method is as follows:

[0091] Setting vertical lines (such as plumb lines, vertical stripes) on a plane plate (a pure color plate different from the laser color, such as a black plane plate);

[0092] The laser is rotated multiple times according to the preset angle step. During each rotation, it is observed whether the stripes projected on the plane plate are parallel to the vertical lines in the plane plate. When the two are parallel, the rotation is stopped and the position of the line laser is fixed.

[0093] On the other hand, before setting the on and off time of the line laser, first revise the line laser as follows:

[0094] Step S1: Initialize the on time and off time of the line laser. At this time, the on time is equal to the off time;

[0095] Step S2: The main control board sends a start signal to the galvanometer, the line laser, and one of the cameras respectively;

[0096] The camera starts to expose, and at the same time, the line laser is turned on and off multiple times in succession according to the on and off time; the galvanometer rotates at a constant speed and periodically, reflecting the laser bar projected by the line laser each time it is turned on to different positions on the pure color flat panel;

[0097] After the camera exposure is completed, the acquired stripe image contains multiple vertical stripes;

[0098] Step S3: calculating the average pixel width A1 of each stripe spacing and the average pixel width A2 of each stripe according to the stripe image;

[0099] Determine whether A1 and A2 are equal. If they are equal, jump to step S4; otherwise, continue to determine whether A1 is greater than A2. If so, the line laser is turned on for a short time. Increase the turn-on time and reduce the turn-off time according to the preset step length (5ns to 30ns), and execute step S2 again; if not, the line laser is turned off for a short time. Increase the turn-off time and reduce the turn-on time according to the preset step length, and execute step S2 again;

[0100] Step S4: Obtain the opening time and closing time of the line laser, and record the difference between the opening time and the closing time and the initial time as the correction value (delay time) of the opening and closing time of the line laser.

[0101] In actual operation, the main control board performs corresponding signal delay according to the correction value (delay time) of the line laser opening and closing time, and controls the line laser to open and close so that the spacing between the projected stripes is the same.

[0102] This solution automatically calculates the offset of the center position of the projected stripes by analyzing the pixel offset of the projected image, and automatically and accurately adjusts the deflection angle of the galvanometer, greatly reducing the debugging workload of production personnel and ensuring the consistency of the structured light image projected by the sensor.

[0103] The foregoing description of the specific exemplary embodiments of the present invention is presented for the purpose of illustration and description. The foregoing description is not intended to be exhaustive, nor is it intended to limit the present invention to the precise form disclosed, and it is apparent that many changes and variations are possible in light of the above teachings. The exemplary embodiments are selected and described to explain the specific principles of the present invention and its practical application, so that other technicians in the field can realize and utilize the various exemplary embodiments of the present invention and its different selected forms and modified forms. The scope of the present invention is intended to be limited by the appended claims and their equivalents.

Claims

1. A method for adjusting assembly parameters of a laser galvanometer sensor, the laser galvanometer sensor comprising: A housing, a main control board installed in the housing, a galvanometer controlled by the main control board, a line laser and two cameras; The two cameras are set symmetrically; The line laser projects the line laser to the galvanometer at a certain frequency according to the on-off signal sent by the main control board; the galvanometer controls the galvanometer to rotate periodically according to the rotation period signal sent by the main control board, so as to reflect the line laser to the surface of the object to be measured to form a fringe projection pattern; the two cameras constitute a binocular vision system, and shoot the fringe projection pattern according to the signal sent by the main control board to obtain a fringe image corresponding to the fringe projection pattern; It is characterized in that the assembly parameter adjustment method comprises the following steps: 1) Place the laser galvanometer sensor horizontally and set a flat plate in front of it; Set the on and off time of the line laser, the initial preset angle of the galvanometer, and the installation angle of the line laser; make the single line laser projected by the line laser appear as vertical stripes on the flat plate after being reflected by the galvanometer; 2) The main control board sends start signals to the galvanometer, line laser, and two cameras respectively; The camera starts to expose, and at the same time, the line laser is turned on and off repeatedly according to the on and off time; the galvanometer rotates at a constant speed and periodically, reflecting the laser bar projected by the line laser each time it is turned on to different positions on the flat plate; After the camera exposure is finished, the collected stripe image includes a middle stripe and other stripes, wherein the middle stripe is different from the other stripes, and the other stripes have the same width and are symmetrically distributed along the middle stripe; 3) The stripe image captured by any of the two cameras is recorded as the reference image, and the corresponding camera is recorded as the reference camera. The pixel distance △pixel from the middle stripe in the reference image to the middle plane between the two cameras is calculated; The middle plane between the two cameras is a plane passing through the intersection of the optical axes of the two cameras and perpendicular to the line connecting the same positions of the two cameras; 4) If △pixel is within the allowable range, proceed directly to step 5); On the contrary, adjust the preset angle of the galvanometer to move it closer to or farther away from the reference camera, record the adjusted preset angle as the new preset angle, and jump to step 2); 5) Record the current preset angle value as the starting angle of the galvanometer to complete the assembly parameter adjustment.

2. The method for adjusting assembly parameters of a laser galvanometer sensor according to claim 1, characterized in that: In step 3), △pixel = (d2×w1-d1×w2) / (2×w2), wherein d1 represents the pixel distance from the middle stripe in the reference image to the center line of the image, w1 represents the pixel width of the middle stripe in the reference image, d2 represents the pixel distance from the middle stripe in the image captured by another camera to the center line of the image, and w2 represents the pixel width of the middle stripe in the image captured by another camera.

3. The method for adjusting assembly parameters of a laser galvanometer sensor according to claim 1, characterized in that: The middle stripe in step 2) is distinguished from other stripes in that the middle stripe is wider or thinner than other stripes, or the spacing between the middle stripe and adjacent stripes is significantly wider or narrower than the spacing between other stripes.

4. The method for adjusting assembly parameters of a laser galvanometer sensor according to claim 1, characterized in that: Before setting the on and off time of the line laser, first revise the line laser as follows: Step S1: Initialize the on time and off time of the line laser. At this time, the on time is equal to the off time; Step S2: The main control board sends a start signal to the galvanometer, the line laser, and one of the cameras respectively; The camera starts to expose, and at the same time, the line laser is turned on and off multiple times in succession according to the on and off time; the galvanometer rotates at a constant speed and periodically, reflecting the laser bar projected by the line laser each time it is turned on to different positions on the pure color flat panel; After the camera exposure is completed, the acquired stripe image contains multiple vertical stripes; Step S3: calculating the average pixel width A1 of each stripe spacing and the average pixel width A2 of each stripe according to the stripe image; Determine whether A1 and A2 are equal. If they are equal, jump to step S4; otherwise, continue to determine whether A1 is greater than A2. If so, the line laser is turned on for a short time. Increase the turn-on time and reduce the turn-off time according to the preset step length, and execute step S2 again; if not, the line laser is turned off for a short time. Increase the turn-off time and reduce the turn-on time according to the preset step length, and execute step S2 again; Step S4: Obtain the on time and off time of the line laser, and record the difference between the on time and the initial time as the correction value of the on and off time of the line laser.

5. The method for adjusting assembly parameters of a laser galvanometer sensor according to claim 1, characterized in that: In step 1), the installation angle of the line laser is set so that the line laser projected by it appears as vertical stripes on the flat plate after being reflected by the galvanometer, as follows: Disposing vertical lines on the plane plate; The line laser is rotated multiple times according to the preset angle step. During each rotation, it is observed whether the stripes projected on the plane plate are parallel to the vertical lines in the plane plate. When the two are parallel, the rotation is stopped and the position of the line laser is fixed.

6. The method for adjusting assembly parameters of a laser galvanometer sensor according to claim 1, characterized in that: In step 1), the initial preset angle of the galvanometer is: the angle at which the galvanometer is located when the line laser is projected onto the flat plate through coarse adjustment.

7. The method for adjusting assembly parameters of a laser galvanometer sensor according to claim 1, characterized in that: In step 4), the preset angle of the galvanometer is adjusted step by step with an angle step length of 1 to 5°; Alternatively, adjust the preset galvanometer angle by following the steps below: In step 1), the following steps are also included: coarsely adjusting the galvanometer so that all the stripes are included in the stripe image collected by one of the cameras, calculating the pixel distance W between the first and last stripes in the stripe image, and retrieving the angle value β of the total rotation of the galvanometer from the starting angle to the ending angle; In step 4), the galvanometer is rotated by Δθ, and the angle after rotation is recorded as a new preset angle; △pixel is the pixel distance from the middle stripe in the reference image to the middle plane between the two cameras.