An automatic laser module assembly method
By acquiring and processing spot images in a positioning coordinate system, calculating spot feature points and angles, generating assembly adjustment targets, and using a six-axis robotic arm to adjust the position and angle of the automatic laser module, the problem of low assembly accuracy caused by spot image judgment errors is solved, and high-precision automatic laser module assembly is achieved.
Patent Information
- Application Number
- CN202510640104.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-19
- Publication Date
- 2026-11-20
AI Technical Summary
In the existing automated laser module assembly process, the different sizes and shapes of the laser spot images lead to large position judgment errors, which affect the assembly accuracy.
By acquiring light spot images in the positioning coordinate system, performing feature recognition and fitting, calculating the light spot rotation angle and deflection angle, generating assembly and adjustment targets, and using a six-axis robotic arm to adjust the position and angle of the automatic laser module.
It significantly improves the assembly accuracy of automatic laser modules, continuously reduces the laser spot size, and decreases assembly errors.
Smart Images

Figure CN123129115A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of laser device technology, and in particular to an automated laser module assembly method. Background Technology
[0002] An automated laser module is a device that integrates high-precision laser emission, reception, and signal processing technologies. It is widely used in industrial automation, intelligent manufacturing, robot navigation, 3D scanning, machine vision, and other fields. Automated laser modules are an indispensable tool in modern industrial production and scientific research.
[0003] Currently, the assembly of automated laser modules is achieved through the cooperation of a camera and multiple robotic arms. The camera captures images of the laser spot illuminated by the automated laser module, and then the positions of each robotic arm are adjusted based on the position of the spot image to complete the assembly. However, due to variations in the size and shape of the laser spot images, and the lack of further image processing in current technology, the position judgment of the automated laser module can be quite inaccurate. Subsequent adjustments to the positions of the robotic arms are also affected by these judgment errors, ultimately resulting in low assembly accuracy for automated laser modules in current technology. Summary of the Invention
[0004] To address the shortcomings of existing technologies, the present invention aims to provide an automated laser module assembly method to improve the assembly accuracy of automated laser modules.
[0005] To achieve the above objectives, the present invention provides the following technical solution: an automatic laser module assembly method, wherein the automatic laser module is mounted on a six-axis robotic arm, a sight assembly is provided above the automatic laser module, an illumination plate is provided above the sight assembly, a positioning coordinate system is provided on the illumination plate, and a central origin is provided at the center of the positioning coordinate system; the automatic laser module assembly method includes:
[0006] Step S1: Activate the automatic laser module, and the laser shines on the positioning coordinate system to form a light spot. The image acquisition device acquires the light spot image in real time.
[0007] Step S2: Perform feature recognition on the light spot image to obtain several light spot feature points. In the positioning coordinate system, calculate the rotation angle of the light spot image based on the coordinates of each light spot feature point.
[0008] Step S3: Generate a spot circle based on the spot image fitting, and process the spot circle to obtain the spot diameter and spot center;
[0009] Step S4: In the positioning coordinate system, the deflection angle of the light spot image is calculated based on the coordinates of the center of the light spot.
[0010] Step S5: Generate an assembly adjustment target based on the spot diameter, the rotation angle, and the deflection angle; generate a six-axis adjustment command based on the assembly adjustment target; and dynamically adjust the position and angle of the automatic laser module according to the six-axis adjustment command.
[0011] Preferably, step S2 includes:
[0012] Step S21: An initial light spot image is configured in the positioning coordinate system, the center point of the initial light spot image is aligned with the central origin, and feature recognition is performed on the initial light image to obtain several initial feature points;
[0013] Step S22: Calculate several initial feature angles between each initial feature point and the central origin based on the coordinates of the initial feature points, and calculate several spot feature angles between each spot feature point and the central origin based on the coordinates of each spot feature point.
[0014] Step S23: Input the initial feature angles and the spot feature angles into a preset angle calculation formula to calculate the rotation angle.
[0015] Preferably, the angle calculation formula is configured as follows:
[0016]
[0017] Among them, R a S is used to represent the rotation angle. fak I is used to represent the feature angle of the kth light spot. fak The initial feature angle is used to represent the kth initial feature angle, and t is used to represent the number of light spot feature points called by the angle calculation formula.
[0018] Preferably, in step S4, the deflection angle between the center of the light spot and the origin is calculated based on the coordinates of the center of the light spot.
[0019] Preferably, step S5 includes:
[0020] Step S51: Input the spot diameter, the rotation angle and the deflection angle into the preset overall loss calculation equation to calculate the overall accuracy loss;
[0021] Step S52: The minimum value of the overall accuracy loss is taken as the assembly adjustment target.
[0022] Preferably, the overall loss calculation equation is configured as follows:
[0023]
[0024] Among them, S fa S is used to represent the overall accuracy loss. d S is used to represent the diameter of the light spot. d ′ is used to represent the preset ideal diameter of the light spot, R a R is used to represent the rotation angle. a ′ is used to represent the preset ideal rotation angle, D a D is used to represent the deflection angle. a ′ is used to represent the preset ideal deflection angle, and ε1, ε2, and ε3 are used to represent the preset first loss constant, second loss constant, and third loss constant, respectively.
[0025] Preferably, step S5 further includes:
[0026] Step S53: Real-time collection of ambient light intensity, air cleanliness, ambient temperature and ambient air pressure;
[0027] Step S54: Input the ambient light intensity, air cleanliness, ambient temperature and ambient air pressure into the preset diameter interference formula, rotation interference formula and deflection interference formula respectively, and calculate the spot diameter interference coefficient, spot rotation interference coefficient and spot deflection interference coefficient respectively.
[0028] Step S55: Optimize the first loss constant, the second loss constant, and the third loss constant according to the spot diameter interference coefficient, the spot rotation interference coefficient, and the spot deflection interference coefficient, respectively, to obtain the optimized first optimization coefficient, the second optimization coefficient, and the third optimization coefficient.
[0029] Preferably, the diameter interference formula is configured as follows:
[0030]
[0031] Wherein, D represents the light spot diameter interference coefficient, L represents the ambient light intensity, A represents the air cleanliness, T represents the ambient temperature, P represents the ambient air pressure, and α, β, γ, δ, ∈, η, θ represent weighting coefficients determined based on preset experimental data, used to adjust the degree of influence of each environmental parameter on the light spot diameter.
[0032] Preferably, the rotational interference formula is configured as follows:
[0033]
[0034] Where R represents the beam rotation interference coefficient, w i θ is used to represent the weight of the i-th feature point of the light spot. iUsed to represent the characteristic angle of the i-th light spot.
[0035] Preferably, the deflection interference formula is configured as follows:
[0036]
[0037] Where P represents the beam deflection interference coefficient, v j φ is used to represent the weight of the j-th spot feature point. j Used to represent the characteristic angle of the j-th spot.
[0038] The beneficial effects of this invention are:
[0039] This invention first uses an image acquisition device to acquire an image of a light spot illuminating an illumination plate. Then, it performs feature recognition on the light spot image to obtain multiple light spot feature points. Subsequently, it calculates the rotation angle of the light spot image in real time based on the coordinates of each light spot feature point in the positioning coordinate system. At the same time, it fits the light spot image to obtain a light spot circle. It processes the light spot circle to obtain the light spot diameter and the light spot center. It calculates the deflection angle of the light spot image in real time based on the coordinates of the light spot center. Then, it generates an assembly adjustment target based on the light spot diameter, deflection angle, and rotation angle. Finally, it generates a six-axis adjustment command based on the assembly adjustment target. The six-axis robotic arm dynamically adjusts the position and angle of the automatic laser module according to the six-axis adjustment command. During this process, the light spot continuously shrinks, and the assembly accuracy of the automatic laser module also continuously and dynamically improves. Therefore, this invention significantly improves the assembly accuracy of the automatic laser module. Attached Figure Description
[0040] Figure 1 This is a flowchart of the automatic laser module assembly method in this invention;
[0041] Figure 2 This is a flowchart of step S2 in this invention;
[0042] Figure 3 This is a flowchart of step S5 in this invention. Detailed Implementation
[0043] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Identical components are denoted by the same reference numerals. It should be noted that the terms "front," "rear," "left," "right," "upper," and "lower" used in the following description refer to directions in the accompanying drawings, and the terms "bottom surface," "top surface," "inner," and "outer" refer to directions toward or away from the geometric center of a specific component, respectively.
[0044] Example 1, referring to Figure 1This is the first embodiment of the present invention, which provides an automatic laser module assembly method capable of achieving high assembly accuracy for the automatic laser module. The automatic laser module is mounted on a six-axis robotic arm, and a sight assembly is provided above the automatic laser module. An illumination plate is provided above the sight assembly, and a positioning coordinate system is provided on the illumination plate. The center of the positioning coordinate system is a central origin. The automatic laser module assembly method includes:
[0045] Step S1: Start the automatic laser module. The laser shines on the positioning coordinate system to form a light spot. The image acquisition device acquires the light spot image in real time.
[0046] Step S2: Perform feature recognition on the spot image to obtain several spot feature points. In the positioning coordinate system, calculate the rotation angle of the spot image based on the coordinates of each spot feature point.
[0047] Step S3: Generate a spot circle based on the spot image fitting, and process the spot circle to obtain the spot diameter and spot center;
[0048] Step S4: In the positioning coordinate system, calculate the deflection angle of the light spot image based on the coordinates of the light spot center;
[0049] Step S5: Generate assembly adjustment target based on spot diameter, rotation angle and deflection angle, generate six-axis adjustment command based on assembly adjustment target, and dynamically adjust the position and angle of automatic laser module according to six-axis adjustment command.
[0050] Working principle of Example 1:
[0051] In this embodiment, the image acquisition device can be an industrial camera, specifically the Forge1 GigESWIR shortwave infrared industrial camera series. This series of cameras is suitable for various industrial applications, such as semiconductor inspection, new energy solar cells, waste recycling and sorting, and hyperspectral imaging. This ensures the clarity of the acquired spot image. In step S2, the spot image is characterized using a speckle detection method to obtain several spot feature points. The speckle detection method is specifically used to detect speckle-like feature points in an image. It converts the input grayscale image into a binary image through a series of consecutive thresholding processes, and then detects the speckle-like feature points within it. In step S3, the spot image is fitted using least squares circle fitting to obtain a spot circle. Least squares circle fitting is a commonly used spot center detection algorithm, based on the principle of least squares (minimum sum of squared residuals) to approximate the contour of the laser spot. Least squares circle fitting can also determine the spot center and spot diameter of the spot circle. Then, in the positioning coordinate system, the deflection angle of the spot image is calculated using the tangent function.
[0052] This embodiment first uses an image acquisition device to acquire an image of the light spot illuminating the illumination plate. Then, it performs feature recognition on the light spot image to obtain multiple light spot feature points. Subsequently, it calculates the rotation angle of the light spot image in real time based on the coordinates of each light spot feature point in the positioning coordinate system. At the same time, it fits the light spot image to obtain a light spot circle. It processes the light spot circle to obtain the light spot diameter and the light spot center. It calculates the deflection angle of the light spot image in real time based on the coordinates of the light spot center. Then, it generates an assembly adjustment target based on the light spot diameter, deflection angle, and rotation angle. It then generates a six-axis adjustment command based on the assembly adjustment target. The six-axis robotic arm dynamically adjusts the position and angle of the automatic laser module according to the six-axis adjustment command. During this process, the light spot continuously shrinks, and the assembly accuracy of the automatic laser module also continuously and dynamically improves. Therefore, this embodiment significantly improves the assembly accuracy of the automatic laser module.
[0053] Preferred, such as Figure 2 As shown, step S2 includes:
[0054] Step S21: An initial light spot image is configured in the positioning coordinate system, the center point of the initial light spot image is aligned with the center origin, and feature recognition is performed on the initial light image to obtain several initial feature points.
[0055] Step S22: Calculate several initial feature angles between each initial feature point and the central origin based on the coordinates of the initial feature points, and calculate several spot feature angles between each spot feature point and the central origin based on the coordinates of each spot feature point.
[0056] Step S23: Input each initial feature angle and each spot feature angle into the preset angle calculation formula to calculate the rotation angle.
[0057] Specifically, in this embodiment, the initial spot image and the spot image are used to identify features by the spot detection method to obtain several spot feature points and several initial feature points. Then, each initial feature angle and each spot feature angle are used as inputs to the angle calculation formula to calculate the rotation angle.
[0058] Preferably, the angle calculation formula is configured as follows:
[0059]
[0060] Among them, R a Used to represent rotation angle, S fak I is used to represent the characteristic angle of the k-th light spot. fak The value 't' represents the k-th initial feature angle, and 't' represents the number of spot feature points called by the angle calculation formula.
[0061] Specifically, in this embodiment, the difference between the feature angle of each spot and the initial feature angle is calculated to obtain the rotation angle of each spot feature point. The rotation angles of each spot feature point are added together and then divided by the number of spot feature points to obtain the average rotation angle of the spot image.
[0062] Preferably, in step S4, the deflection angle between the center of the light spot and the origin is calculated based on the coordinates of the center of the light spot.
[0063] Specifically, in this embodiment, in the positioning coordinate system, the coordinates of the center of the light spot and the coordinates of the origin are converted into the lengths of the two sides of the tangent function, and then the deflection angle between the center of the light spot and the origin is calculated according to the tangent function, which is used as the deflection angle of the light spot image.
[0064] Example 2, refer to Figure 2 This is the second embodiment of the present invention. Unlike the previous embodiment, this embodiment provides an overall loss calculation equation that enables dynamic adjustment of the position and angle of the automatic laser module based on the overall accuracy loss, thereby improving the adjustment accuracy of the automatic laser module. Figure 3 As shown, step S5 includes:
[0065] Step S51: Input the spot diameter, rotation angle and deflection angle into the preset overall loss calculation equation to calculate the overall accuracy loss;
[0066] Step S52: The minimum value of the overall accuracy loss is taken as the assembly adjustment target.
[0067] Preferably, the overall loss calculation equation is configured as follows:
[0068]
[0069] Among them, S fa S is used to represent the overall accuracy loss. d Used to represent the diameter of the light spot, S d ′ is used to represent the preset ideal diameter of the light spot, R a R is used to represent the rotation angle. a ′ is used to represent the preset ideal rotation angle, D a Used to represent the deflection angle, D a ′ is used to represent the preset ideal deflection angle, and ε1, ε2, and ε3 are used to represent the preset first loss constant, second loss constant, and third loss constant, respectively.
[0070] Working principle of Example 2:
[0071] The difference between the spot diameter and the ideal spot diameter is the diameter deviation value; the difference between the rotation angle and the ideal rotation angle is the rotation angle deviation value; the difference between the deflection angle and the ideal deflection angle is the deflection angle deviation value; the product of the first loss constant and the square of the diameter deviation value is the diameter loss; the product of the second loss constant and the square of the rotation angle deviation value is the rotation angle loss; the product of the third loss constant and the square of the deflection angle deviation value is the deflection angle loss; finally, the diameter loss, rotation angle loss, and deflection angle loss are added together and divided by the product of the first loss constant, the second loss constant, and the third loss constant, and the square root is taken to obtain the overall accuracy loss. The overall accuracy loss can comprehensively reflect the spot diameter, rotation angle, and deflection angle. Therefore, the assembly adjustment target generated based on the overall accuracy loss takes into account the spot diameter, rotation angle, and deflection angle. Consequently, the six-axis adjustment command generated based on the assembly adjustment target will simultaneously include dynamic adjustments to the position and angle of the automatic laser module. Through continuous adjustments, in this embodiment, the spot diameter can ultimately be less than 0.5 mm, and the deviation angle and rotation angle are both less than 0.2°. Therefore, the assembly accuracy of the automatic laser module is significantly improved.
[0072] Example 3, the third embodiment of the present invention, differs from the previous embodiment in that it provides ambient light intensity, air cleanliness, ambient temperature, and ambient air pressure, enabling optimization of the first loss constant, second loss constant, and third loss constant, further improving the adjustment accuracy of the automatic laser module. Step S5 also includes:
[0073] Step S53: Real-time collection of ambient light intensity, air cleanliness, ambient temperature and ambient air pressure;
[0074] Step S54: Input the ambient light intensity, air cleanliness, ambient temperature and ambient air pressure into the preset diameter interference formula, rotation interference formula and deflection interference formula respectively, and calculate the spot diameter interference coefficient, spot rotation interference coefficient and spot deflection interference coefficient respectively.
[0075] Step S55: Optimize the first loss constant, the second loss constant, and the third loss constant based on the light spot diameter interference coefficient, the light spot rotation interference coefficient, and the light spot deflection interference coefficient, respectively, to obtain the optimized first optimization coefficient, the second optimization coefficient, and the third optimization coefficient.
[0076] Working principle of Example 3:
[0077] Uneven temperature distribution and significant air pressure variations can cause laser spot distortion, thus affecting the detection of the laser spot image. Strong light or background light can interfere with the observation and measurement of the laser spot, thus affecting the detection of the laser spot image. Dust, smoke, and other particulate matter in the air absorb or scatter the laser, affecting the clarity and intensity of the laser spot, thus affecting the imaging of the laser spot image. The laser spot image is simultaneously affected by ambient light intensity, air cleanliness, ambient temperature, and ambient air pressure, leading to insufficient accuracy in the laser spot diameter, rotation angle, and deflection angle identified from the image, resulting in poor overall accuracy. In this embodiment, by calculating the spot diameter interference coefficient, spot rotation interference coefficient, and spot deflection interference coefficient using ambient light intensity, air cleanliness, ambient temperature, and ambient air pressure, and optimizing the first, second, and third loss constants based on these coefficients, the impact of ambient light intensity, air cleanliness, ambient temperature, and ambient air pressure on the spot image can be significantly reduced. This improves the overall accuracy of the accuracy loss calculation, thereby further enhancing the adjustment accuracy of the automatic laser module. Specifically, the calculated spot diameter interference coefficient is multiplied by the first loss constant to obtain the first optimization coefficient; the spot rotation interference coefficient is multiplied by the second loss constant to obtain the second optimization coefficient; and the spot deflection interference coefficient is multiplied by the third loss constant to obtain the third optimization coefficient.
[0078] Preferably, the diameter interference formula is configured as follows:
[0079]
[0080] Where D represents the light spot diameter interference coefficient, L represents the ambient light intensity, A represents the air cleanliness, T represents the ambient temperature, P represents the ambient air pressure, and α, β, γ, δ, ∈, η, θ represent the weighting coefficients determined based on preset experimental data, which are used to adjust the degree of influence of each environmental parameter on the light spot diameter.
[0081] Preferably, the rotational interference formula is configured as follows:
[0082]
[0083] Where R represents the beam rotation interference coefficient, w i θ is used to represent the weight of the i-th feature point of the light spot. i Used to represent the characteristic angle of the i-th light spot.
[0084] Specifically, in this embodiment, the rotational interference formula takes into account the distribution and rotation direction of the light spot feature points to determine the rotation trend of the light spot.
[0085] Preferably, the deflection interference formula is configured as follows:
[0086]
[0087] Where P represents the beam deflection interference coefficient, v j φ is used to represent the weight of the j-th spot feature point. j Used to represent the characteristic angle of the j-th spot.
[0088] Specifically, in this embodiment, the deflection interference formula takes into account the deflection direction and distribution of the light spot feature points in order to determine the deflection trend of the light spot.
[0089] The above are merely preferred embodiments of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principle of the present invention should also be considered within the scope of protection of the present invention.
Claims
1. An automated laser module assembly method, characterized in that, The automatic laser module is mounted on a six-axis robotic arm. A sight assembly is positioned above the automatic laser module, and an illumination plate is positioned above the sight assembly. A positioning coordinate system is provided on the illumination plate, with a central origin at the center of the positioning coordinate system. The automatic laser module assembly method includes: Step S1: Activate the automatic laser module, and the laser shines on the positioning coordinate system to form a light spot. The image acquisition device acquires the light spot image in real time. Step S2: Perform feature recognition on the light spot image to obtain several light spot feature points. In the positioning coordinate system, calculate the rotation angle of the light spot image based on the coordinates of each light spot feature point. Step S3: Generate a spot circle based on the spot image fitting, and process the spot circle to obtain the spot diameter and spot center; Step S4: In the positioning coordinate system, the deflection angle of the light spot image is calculated based on the coordinates of the center of the light spot. Step S5: Generate an assembly adjustment target based on the spot diameter, the rotation angle, and the deflection angle; generate a six-axis adjustment command based on the assembly adjustment target; and dynamically adjust the position and angle of the automatic laser module according to the six-axis adjustment command.
2. The automatic laser module assembly method according to claim 1, characterized in that: Step S2 includes: Step S21: An initial light spot image is configured in the positioning coordinate system, the center point of the initial light spot image is aligned with the central origin, and feature recognition is performed on the initial light image to obtain several initial feature points; Step S22: Calculate several initial feature angles between each initial feature point and the central origin based on the coordinates of the initial feature points, and calculate several spot feature angles between each spot feature point and the central origin based on the coordinates of each spot feature point. Step S23: Input the initial feature angles and the spot feature angles into a preset angle calculation formula to calculate the rotation angle.
3. The automatic laser module assembly method according to claim 2, characterized in that: The angle calculation formula is configured as follows: Among them, R a S is used to represent the rotation angle. fak I is used to represent the feature angle of the kth light spot. fak The initial feature angle is used to represent the kth initial feature angle, and t is used to represent the number of light spot feature points called by the angle calculation formula.
4. The automatic laser module assembly method according to claim 1, characterized in that: In step S4, the deflection angle between the center of the light spot and the origin is calculated based on the coordinates of the center of the light spot.
5. The automatic laser module assembly method according to claim 2, characterized in that: Step S5 includes: Step S51: Input the spot diameter, the rotation angle and the deflection angle into the preset overall loss calculation equation to calculate the overall accuracy loss; Step S52: The minimum value of the overall accuracy loss is taken as the assembly adjustment target.
6. The automatic laser module assembly method according to claim 5, characterized in that: The overall loss calculation equation is configured as follows: ε1≠0, ε2≠0, ε3≠0 Among them, S fa S is used to represent the overall accuracy loss. d S is used to represent the diameter of the light spot. d ′ is used to represent the preset ideal diameter of the light spot, R a R is used to represent the rotation angle. a ′ is used to represent the preset ideal rotation angle, D a D is used to represent the deflection angle. a ′ is used to represent the preset ideal deflection angle, and ε1, ε2, and ε3 are used to represent the preset first loss constant, second loss constant, and third loss constant, respectively.
7. The automatic laser module assembly method according to claim 6, characterized in that: Step S5 further includes: Step S53: Real-time collection of ambient light intensity, air cleanliness, ambient temperature and ambient air pressure; Step S54: Input the ambient light intensity, air cleanliness, ambient temperature and ambient air pressure into the preset diameter interference formula, rotation interference formula and deflection interference formula respectively, and calculate the spot diameter interference coefficient, spot rotation interference coefficient and spot deflection interference coefficient respectively. Step S55: Optimize the first loss constant, the second loss constant, and the third loss constant according to the spot diameter interference coefficient, the spot rotation interference coefficient, and the spot deflection interference coefficient, respectively, to obtain the optimized first optimization coefficient, the second optimization coefficient, and the third optimization coefficient.
8. The automatic laser module assembly method according to claim 7, characterized in that: The diameter interference formula is configured as follows: Wherein, D represents the light spot diameter interference coefficient, L represents the ambient light intensity, A represents the air cleanliness, T represents the ambient temperature, P represents the ambient air pressure, and α, β, γ, δ, ∈, η, θ represent weighting coefficients determined based on preset experimental data, used to adjust the degree of influence of each environmental parameter on the light spot diameter.
9. The automatic laser module assembly method according to claim 8, characterized in that: The rotational interference formula is configured as follows: Where R represents the beam rotation interference coefficient, w i θ is used to represent the weight of the i-th feature point of the light spot. i Used to represent the characteristic angle of the i-th light spot.
10. The automatic laser module assembly method according to claim 7, characterized in that: The deflection interference formula is configured as follows: Where P represents the beam deflection interference coefficient, v j φ is used to represent the weight of the j-th spot feature point. j Used to represent the characteristic angle of the j-th spot.
