Assembly guidance method and system

Through the calibration and three-dimensional reconstruction technology of binocular cameras and projectors, combined with rasterization technology, the problems of low efficiency in the traditional assembly process and lack of interactivity in virtual reality are solved, automatic assembly guidance is realized, assembly efficiency and accuracy are improved, and the cost is reduced. Workpiece damage rate.

CN112785685BActive Publication Date: 2024-10-15XINTUO 3D TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011564277.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2024-10-15
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

The traditional manufacturing assembly process is inefficient and has a high error rate. Virtual reality technology lacks realism and interactivity during the assembly process and cannot fully simulate the situation in the real environment.

Method used

Binocular cameras and projectors are used for calibration, and through three-dimensional reconstruction and rasterization technology, the assembly operation is combined with the real environment to achieve automated auxiliary positioning and guidance, and projection of assembly guidance information to improve efficiency.

Benefits of technology

It realizes real-time scanning reconstruction and assembly guidance of the workpiece to be guided, improves the efficiency and accuracy of the assembly process, reduces the damage rate of the workpiece, automates the projection process, and reduces the workload of workers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112785685B_ABST
    Figure CN112785685B_ABST
Patent Text Reader

Abstract

The present invention provides an assembly guidance method and system, which includes: S1. Calibrate a binocular camera and a projector to obtain a spatial transformation relationship between the binocular camera and the projector; S2. Use the calibrated binocular camera to collect the workpiece image of the workpiece to be guided in the current field of view and perform three-dimensional reconstruction to obtain a new point cloud; S3. According to the correspondence between the marker points in the complete point cloud of the workpiece to be guided and the marker points in the newly created point cloud, calculate the transformation relationship between the complete point cloud and the newly created point cloud; then, according to the transformation relationship between the complete point cloud and the newly created point cloud and the spatial transformation relationship between the binocular camera and the projector obtained in step S1, transform the complete point cloud to the projector coordinate system and rasterize it into a guide picture to be projected for projection to realize assembly guidance. The method and system can realize real-time scanning reconstruction and guided assembly of workpieces, and improve the efficiency and accuracy of the assembly process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of optical projection technology, and in particular to an assembly guiding method and system. Background Art

[0002] At present, the assembly process in traditional manufacturing still requires workers to consult the installation manual before proceeding. This method usually requires workers to spend a long time to understand before they can extract effective information, which is inefficient and has a high error rate.

[0003] In recent years, some methods have been used to introduce virtual reality technology into the assembly process of the manufacturing industry, such as the simulated assembly of large passenger aircraft in a virtual reality environment. Virtual assembly mainly uses the assembly actions of virtual parts to simulate the assembly process in real scenes, focusing on simulation and verification. Virtual reality technology has a strong immersiveness, which completely isolates users from the real environment when performing assembly operations, and does not have a sense of reality; users cannot interact with real assembly parts in a virtual guidance environment, and can only use virtual parts to simulate operations; at the same time, the various objective situations encountered in the real environment cannot be fully simulated in the virtual environment. Summary of the invention

[0004] To solve the above problems, the present invention proposes an assembly guidance method and system, which can project various prompt information required for assembly guidance, combine the assembly operation with the real environment, realize automatic auxiliary positioning and guidance, reduce the workload of workers and improve work efficiency.

[0005] The present invention proposes an assembly guidance method, comprising the following steps: S1. calibrating a binocular camera and a projector to obtain a spatial transformation relationship between the binocular camera and the projector; S2. using the calibrated binocular camera to collect a workpiece image of a workpiece to be guided in the current field of view and performing three-dimensional reconstruction to obtain a newly created point cloud; S3. calculating the transformation relationship between the complete point cloud and the newly created point cloud based on the correspondence between the marker points in the complete point cloud of the workpiece to be guided and the marker points in the newly created point cloud; and then, based on the transformation relationship between the complete point cloud and the newly created point cloud and the spatial transformation relationship between the binocular camera and the projector obtained in step S1, transforming the complete point cloud into a projector coordinate system and rasterizing it into a guidance picture to be projected for projection to achieve assembly guidance.

[0006] By projecting various prompt information required for assembly guidance and combining assembly operations with the real environment, automated auxiliary positioning and guidance can be achieved, reducing the workload of workers and improving work efficiency.

[0007] In some embodiments, the step S1 includes the following steps: S11. Calibrate two cameras in the binocular camera to obtain the intrinsic parameters and distortion coefficients of the two cameras; S12. The projector projects grating stripes, and the binocular camera collects a grating calibration plate image with grating stripes and a calibration plate image without grating; S13. Calibrate the projector according to the position of the center of the calibration plate in the grating image pre-stored in the projector, and obtain the transformation relationship between the projector and the binocular camera.

[0008] The calibration plate is used as a bridge for the calibration connection between the binocular camera and the projector. The transformation relationship between the projector and the binocular camera is calculated through the grating image pre-stored in the projector, the grating calibration plate image with grating stripes and the calibration plate image without grating collected by the binocular camera, so that the calibration between the projector and the binocular camera is accurate.

[0009] In some embodiments, step S12 includes: the projector projects grating stripes of multiple frequencies in the horizontal direction and the vertical direction respectively, and the binocular camera collects multiple groups of grating calibration plate images at different angles; the frequencies may be 2, 3 or more. By projecting grating stripes of multiple directions and multiple frequencies respectively, the calibration error is further reduced.

[0010] In some embodiments, the step S13 includes: S131. According to the principle of four-step phase shift and extrapolation, calculating the first absolute phase in the horizontal and vertical directions in the grating image pre-stored by the projector; S132. According to the principle of four-step phase shift and extrapolation, calculating the second absolute phase in the horizontal and vertical directions in the grating calibration plate image; S133. Calculating the position of the center of the calibration plate in the calibration plate image; S134. According to the first absolute phase, the second absolute phase and the position of the center of the calibration plate, calculating the position of the center of the calibration plate in the pre-stored grating image; S135. According to the position of the center of the calibration plate in the pre-stored grating image, calibrating the internal parameters of the projector, and obtaining the spatial transformation relationship between the projector and the binocular camera.

[0011] The projector and the binocular camera are calibrated using the absolute phase of the center of the calibration plate and the absolute phase of the grating image pre-stored in the projector. This can simply and effectively complete the calibration, thereby improving the calibration accuracy and reducing the difficulty of calibration.

[0012] In some embodiments, step S2 includes: S21. The projector projects grating stripes; S22. The binocular camera collects the workpiece image of the workpiece to be guided in the current field of view; S23. Phase resolution is performed on the workpiece image to obtain the left and right absolute phases after unpacking; S24. Phase matching is performed on the left and right absolute phases to obtain the parallax of each marking point of the workpiece to be guided; S25. The depth value of each marking point is calculated based on the parallax to obtain the depth information of the workpiece to be guided; S26. A new point cloud of the workpiece to be guided is obtained based on the depth information of the workpiece to be guided.

[0013] In some embodiments, step S3 includes:

[0014] S31. Importing the complete point cloud of the workpiece to be guided collected in advance;

[0015] S32. Calculate the number of landmark points in the current newly created point cloud;

[0016] S33. If the number of the marker points is greater than the threshold, the marker points are used to calculate the transformation relationship between the complete point cloud and the newly created point cloud; the transformation relationship includes the rotation matrix R1 and the translation vector T1; the coordinates of the complete point cloud are transformed to the binocular camera coordinate system, and the formula is as follows:

[0017] P1=P*R1+T1

[0018] Among them, P1 is the complete point cloud coordinate after transformation to the binocular camera coordinate system, and P is the complete point cloud coordinate before transformation to the binocular camera coordinate system;

[0019] S34. According to the spatial transformation relationship between the binocular camera and the projector in step S1, the coordinates of the complete point cloud are transformed to the projector coordinate system, and the formula is as follows: P2 = P1*R2+T2, wherein P2 is the complete point cloud coordinate after transformation to the projector coordinate system; P1 is the complete point cloud coordinate after transformation to the binocular camera coordinate system; R2 and T2 are the rotation matrix and translation vector between the projector and the binocular camera, respectively;

[0020] S35. rasterizing the complete point cloud after transformation to the projector coordinate system to obtain a rasterized workpiece guide image;

[0021] S36. Performing motion detection on the workpiece;

[0022] S37. If the workpiece remains stable, the projector projects the rasterized workpiece guide image to achieve assembly guidance; otherwise, motion detection is performed again.

[0023] In some embodiments, the motion detection includes the following steps: S361. Acquire several consecutive frames of images from a video stream; S362. Calculate the pixel coordinates and pixel values ​​of the marker points in each frame of the image; S363. Calculate the maximum position deviation and the maximum grayscale deviation of the pixel value of the marker point in each frame of the image relative to the pixel coordinates of the marker point in the first frame of the image; S364. If the maximum position deviation and the maximum grayscale deviation of each frame of the image are both less than a set threshold, it is determined that the workpiece remains stable.

[0024] By motion detection, the workpiece guide image is projected when the workpiece is stable, so that the workpiece guide image can be correctly projected onto the workpiece to be guided, avoiding the projection position error caused by the shaking or movement of the workpiece to be guided.

[0025] The present invention also provides a computer storage medium storing a computer program, wherein the computer program is executed by a processor to implement the assembly guiding method as described above.

[0026] The present invention also provides an assembly guidance system, comprising: a projector for projecting grating stripes and a guidance picture of a workpiece to be guided;

[0027] A binocular camera is used to collect images of a grating calibration plate with grating stripes and an image of a calibration plate without gratings, and to collect images of the workpiece to be guided in the current field of view;

[0028] Processor: used to calibrate the binocular camera and the projector to obtain the spatial transformation relationship between the binocular camera and the projector; perform three-dimensional reconstruction on the collected workpiece image to obtain a new point cloud, and calculate the transformation relationship between the complete cloud and the new point cloud according to the correspondence between the marker points in the complete point cloud of the workpiece to be guided and the marker points in the new point cloud; according to the transformation relationship between the complete point cloud and the new point cloud and the spatial transformation relationship between the binocular camera and the projector, transform the complete point cloud to the coordinate system of the projector and rasterize it into a guide image to be projected for projection to achieve assembly guidance.

[0029] In some embodiments, the system further includes: a display connected to the processor for displaying real-time video and images; and a memory connected to the processor for storing video and images in real time.

[0030] Beneficial effects of the present invention: The binocular camera and projector used in the present invention can realize real-time scanning reconstruction and guided assembly of the workpiece to be guided, and the efficiency and accuracy of the assembly process can be improved by projecting the workpiece guidance information. The projector is calibrated according to the relationship between the absolute phase of the center of the calibration plate and the absolute phase of the grating image in the projector, which can simply and effectively complete the calibration of the projector, while improving the calibration accuracy of the projector and reducing the difficulty of the projector calibration. In addition, the step of motion detection is added in the projection process, which can avoid guidance errors in welding, drilling and other processes, and effectively reduce the damage rate of the workpiece. Using marker points to determine the projection guidance picture can realize the automation of the projection process, that is, after the workpiece moves, the marker points can be automatically tracked to determine the projection picture, without manual intervention, which greatly improves the efficiency of assembly guidance. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 It is a structural block diagram of the assembly guidance system in an embodiment of the present invention.

[0032] Figure 2 The figure is a flow chart of the assembly guidance method in an embodiment of the present invention.

[0033] Figure 3 This is a flow chart of the internal and external calibration of a projector in an embodiment of the present invention.

[0034] Figure 4 This is a flowchart of three-dimensional reconstruction of a workpiece to be guided in an embodiment of the present invention.

[0035] Figure 5 This is a flowchart of projection guidance of a workpiece to be guided in an embodiment of the present invention.

[0036] Figure 6 4 is a flow chart of motion detection in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] The present invention will be further described in detail below in conjunction with specific implementations and with reference to the accompanying drawings. It should be emphasized that the following description is merely exemplary and is not intended to limit the scope of the present invention and its application.

[0038] Figure 1 1 is a structural block diagram of an assembly guidance system according to an embodiment of the present invention. The system includes:

[0039] Projector: used to project the structured light grating and the guide image of the workpiece to be guided;

[0040] Binocular camera: two left and right cameras with a high resolution of 2448×2048, used to collect images of grating calibration plates with grating stripes and calibration plates without grating, and to collect images of the workpiece to be guided in the current field of view;

[0041] Processor: connected to the projector and the binocular camera respectively, used to calibrate the binocular camera and the projector to obtain the spatial transformation relationship between the binocular camera and the projector; perform three-dimensional reconstruction on the collected workpiece image to obtain a new point cloud, and calculate the transformation relationship between the complete point cloud and the new point cloud according to the correspondence between the marker points in the complete point cloud of the workpiece to be guided and the marker points in the new point cloud; according to the transformation relationship between the complete point cloud and the new point cloud and the spatial transformation relationship between the binocular camera and the projector, transform the complete point cloud into the coordinate system of the projector and rasterize it into a guide image to be projected for projection to achieve assembly guidance.

[0042] Memory: connected to the processor and used to store real-time video, images, etc.

[0043] Display: connected to the processor and used to display real-time video, images, etc.

[0044] Based on this system, the assembly guidance method provided is as follows Figure 2 As shown, the details are as follows:

[0045] S1. Calibrate the binocular camera and the projector to obtain the spatial transformation relationship between the binocular camera and the projector.

[0046] The binocular camera and projector are installed on the same baseline, and the three need to be calibrated to convert them to the same coordinate system. Specifically, the following steps are included:

[0047] S11. First, calibrate the two cameras in the binocular camera to obtain the intrinsic parameters and distortion coefficients of the cameras.

[0048] The calibration method of the binocular camera can be performed by using any of the existing methods.

[0049] After the binocular camera is calibrated, the internal parameters and external parameters of the projector (and the parameters between the binocular camera) are calibrated. The process includes: S12. The projector projects grating stripes, and the binocular camera collects the grating calibration plate image with grating stripes and the calibration plate image without grating; S13. The projector is calibrated according to the position of the center of the calibration plate in the grating image pre-stored in the projector, and the transformation relationship between the projector and the binocular camera is obtained.

[0050] In step S12, the projector projects grating stripes in the horizontal and vertical directions, and projects grating stripes of three different frequencies in each direction. While the projector is projecting the grating, the binocular camera collects and saves the collected grating calibration plate image with grating stripes; in addition, the binocular camera also collects the calibration plate image without grating. The binocular camera can collect multiple groups of images at different angles to obtain multiple groups of grating calibration plate images at different angles.

[0051] Figure 3 The specific flow chart for the internal parameter calibration of the projector and the calibration between the projector and the binocular camera is as follows: Step S13 specifically includes the following steps:

[0052] S131-S133. The projector generally stores a grating image in advance. According to the principle of four-step phase shift and extrapolation, the first absolute phase in the horizontal and vertical directions of the grating image is calculated (since the grating image has been burned into the projector, this process can be performed in advance). For the grating calibration plate image, the second absolute phase in the horizontal and vertical directions of the grating calibration plate image is also calculated according to the principle of four-step phase shift and extrapolation. At the same time, the position of the center of the calibration plate circle is calculated using the calibration plate image without grating.

[0053] S134-S135. According to the phase value at the center position of the calibration plate, determine the position of the corresponding center of the circle in the grating image, and the corresponding position refers to the position where the absolute phase difference between the grating image and the calibration plate grating image is less than a given threshold. Through the inverse calibration image, the internal parameters of the projector are calibrated using the inversely obtained center of the circle, and the spatial transformation relationship between the projector and the binocular camera is calculated and saved. The spatial transformation relationship between the projector and the binocular camera includes the rotation matrix R2 and the translation vector T2.

[0054] S2. Use a binocular camera to collect the workpiece image of the workpiece to be guided in the current field of view and perform three-dimensional reconstruction to obtain a new point cloud. Figure 4 FIG. 3 is a flowchart of three-dimensional reconstruction of a workpiece to be guided in an embodiment of the present invention. Figure 4 Shown:

[0055] S21. The projector projects grating stripes;

[0056] S22. At the same time, the binocular camera collects the workpiece image of the workpiece to be guided in the current field of view. The information in the workpiece image includes the three-dimensional coordinate information of the workpiece and the coordinate information of all the marking points, and is stored in the memory.

[0057] S23. Perform phase calculation on the collected workpiece image to obtain the left and right absolute phases after unpacking;

[0058] S24. Phase matching is performed on the left and right absolute phases after unpacking to obtain the parallax of each mark point of the workpiece to be guided;

[0059] S25. Then calculate the depth value of each marker point according to the disparity, using the following formula:

[0060]

[0061] Among them, f is the focal length of the camera, b is the baseline distance of the camera, d is the parallax of the landmark point, and ps is the size of a single pixel of the sensor.

[0062] S26. Summarize the depth values ​​of all the marking points to obtain the depth information of the workpiece to be guided, and then further obtain a new point cloud of the workpiece to be guided.

[0063] S3. According to the correspondence between the marker points in the three-dimensional complete point cloud of the workpiece to be guided and the marker points in the newly created point cloud, the transformation relationship between the complete point cloud and the newly created point cloud is calculated, and the complete point cloud is rasterized into the guide image to be projected and then projected.

[0064] Figure 5 FIG. 1 is a flowchart of projection guidance of a workpiece to be guided in an embodiment of the present invention. Figure 5 As shown:

[0065] S31. Import the three-dimensional complete point cloud of the workpiece to be guided collected in advance.

[0066] S32. Calculate the number of landmark points in the current newly created point cloud.

[0067] S33. If the number of landmark points is greater than the threshold, the landmark points are used to calculate the transformation relationship between the complete point cloud and the two frames of point clouds in the newly created point cloud; the transformation relationship includes the rotation matrix R1 and the translation vector T1 calculated using the SVD decomposition method.

[0068] The complete point cloud coordinates are transformed into the binocular camera coordinate system. The formula is as follows:

[0069] P1=P*R1+T1

[0070] Among them, P1 is the complete point cloud coordinate after transformation to the binocular camera coordinate system, and P is the complete point cloud coordinate before transformation to the binocular camera coordinate system.

[0071] S34. According to the transformation relationship between the binocular camera and the projector in step S1, the complete point cloud is transformed into the projector coordinate system. The formula is as follows:

[0072] P2=P1*R2+T2

[0073] Among them, P2 is the complete point cloud coordinate after transformation to the projector coordinate system; P1 is the complete point cloud coordinate after transformation to the binocular camera coordinate system; R2 and T2 are the rotation matrix and translation vector between the projector and the binocular camera, respectively.

[0074] S35. Use OpenGL to rasterize the complete point cloud after transformation into the projector coordinate system to obtain a rasterized workpiece guide image.

[0075] S36. Perform motion detection on the workpiece.

[0076] S37. If the workpiece remains stable, the projector projects the rasterized workpiece guide image; otherwise, motion detection is performed again.

[0077] The motion detection flow chart is as follows: Figure 6 As shown, the following steps are included:

[0078] S361. Obtain several consecutive frames of images, such as ten frames of images, from the video stream.

[0079] S362. Calculate the pixel coordinates and pixel values ​​of the marker points in each frame of the image.

[0080] S363. Calculate the maximum position deviation of the pixel coordinates of the marker point in each frame image relative to the marker point in the first frame image and the maximum grayscale deviation of the pixel value.

[0081] S364. If the maximum position deviation and the maximum grayscale deviation of each frame image are both smaller than the set threshold, it is determined that the workpiece remains stable.

[0082] The present invention uses two high-resolution cameras and a projector to achieve real-time scanning reconstruction and guided assembly of the workpiece to be guided; the efficiency and accuracy of the assembly process can be improved by projecting the workpiece guidance information. The projector is calibrated according to the relationship between the absolute phase of the center of the calibration plate and the absolute phase of the grating image in the projector, which can simply and effectively complete the calibration of the projector, while improving the calibration accuracy of the projector and reducing the difficulty of the projector calibration. In addition, the step of motion detection is added in the projection process, which can avoid guidance errors in welding, drilling and other processes, and effectively reduce the damage rate of the workpiece. Using marker points to determine the projection guidance picture can realize the automation of the projection process, that is, after the workpiece moves, the marker points can be automatically tracked to determine the projection picture without manual intervention, which greatly improves the efficiency of assembly guidance.

[0083] The above contents are further detailed descriptions of the present invention in combination with specific / preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, they can also make several substitutions or modifications to these described embodiments without departing from the concept of the present invention, and these substitutions or modifications should be regarded as belonging to the protection scope of the present invention.

Claims

1. An assembly guidance method, It is characterized in that The steps include: S1. Calibrate the binocular camera and the projector to obtain the spatial transformation relationship between the binocular camera and the projector; The step S1 comprises the following steps: S11. Calibrate two cameras in the binocular camera to obtain the intrinsic parameters and distortion coefficients of the two cameras; S12. The projector projects grating stripes, and the binocular camera collects the grating calibration plate image with grating stripes and the calibration plate image without grating; S13. Calibrate the projector according to the position of the center of the calibration plate in the grating image pre-stored in the projector, and obtain the transformation relationship between the projector and the binocular camera; S2. using the calibrated binocular camera to collect the workpiece image of the workpiece to be guided in the current field of view and perform three-dimensional reconstruction to obtain a new point cloud; S3. Calculate the transformation relationship between the complete point cloud and the newly created point cloud according to the correspondence between the marker points in the complete point cloud of the workpiece to be guided and the marker points in the newly created point cloud; then, according to the transformation relationship between the complete point cloud and the newly created point cloud and the spatial transformation relationship between the binocular camera and the projector obtained in step S1, transform the complete point cloud into the projector coordinate system and rasterize it into a guide image to be projected for projection to achieve assembly guidance; The step S3 comprises: S31. Importing the complete point cloud of the workpiece to be guided collected in advance; S32. Calculate the number of landmark points in the current newly created point cloud; S33. If the number of the marker points is greater than the threshold, the marker points are used to calculate the transformation relationship between the complete point cloud and the newly created point cloud; the transformation relationship includes the rotation matrix R1 and the translation vector T1; The coordinates of the complete point cloud are transformed into the binocular camera coordinate system, and the formula is as follows: ; Among them, P1 is the complete point cloud coordinate after transformation to the binocular camera coordinate system, and P is the complete point cloud coordinate before transformation to the binocular camera coordinate system; S34. According to the spatial transformation relationship between the binocular camera and the projector in step S1, the coordinates of the complete point cloud are transformed into the projector coordinate system, and the formula is as follows: ; Among them, P2 is the complete point cloud coordinate after transformation to the projector coordinate system; P1 is the complete point cloud coordinate after transformation to the binocular camera coordinate system; R2 and T2 are the rotation matrix and translation vector between the projector and the binocular camera respectively; S35. rasterizing the complete point cloud after transformation to the projector coordinate system to obtain a rasterized workpiece guide image; S36. Performing motion detection on the workpiece; S37. If the workpiece remains stable, the projector projects the rasterized workpiece guide image to achieve assembly guidance; otherwise, motion detection is performed again.

2. The assembly guiding method according to claim 1, It is characterized in that The step S12 includes: the projector projects a plurality of grating stripes of different frequencies in the horizontal direction and the vertical direction respectively, and the binocular camera collects a plurality of groups of grating calibration plate images at different angles.

3. The assembly guiding method according to claim 2, It is characterized in that The step S13 comprises: S131. Calculate the first absolute phase in the horizontal and vertical directions of the grating image pre-stored by the projector according to the four-step phase shift and extrapolation principle; S132. Calculate the second absolute phase in the horizontal and vertical directions of the grating calibration plate image according to the four-step phase shift and extrapolation principle; S133. Calculate the position of the center of the calibration plate in the calibration plate image; S134. Calculating the position of the center of the calibration plate in the pre-stored grating image according to the first absolute phase, the second absolute phase and the position of the center of the calibration plate; S135. Calibrate the internal parameters of the projector according to the position of the center of the calibration plate in the pre-stored grating image, and obtain the spatial transformation relationship between the projector and the binocular camera.

4. The assembly guiding method according to claim 1, It is characterized in that The step S2 comprises: S21. The projector projects grating stripes; S22. The binocular camera collects the workpiece image of the workpiece to be guided in the current field of view; S23. performing phase calculation on the workpiece image to obtain the left and right absolute phases after unpacking; S24. Phase matching is performed on the left and right absolute phases to obtain the parallax of each mark point of the workpiece to be guided; S25. Calculating the depth value of each marker point according to the parallax to obtain the depth information of the workpiece to be guided; S26. Acquire a new point cloud of the workpiece to be guided according to the depth information of the workpiece to be guided.

5. The assembly guiding method according to claim 1, It is characterized in that The motion detection comprises the following steps: S361. Obtaining several consecutive frames of images from the video stream; S362. Calculate the pixel coordinates and pixel values ​​of the marker points in each frame of the image; S363. Calculate the maximum deviation of the position of the marker point in each frame image relative to the pixel coordinates of the marker point in the first frame image and the maximum deviation of the grayscale of the pixel value; S364. If the maximum position deviation and the maximum grayscale deviation of each frame image are both smaller than the set threshold, it is determined that the workpiece remains stable.

6. A computer-readable storage medium, It is characterized in that A computer program is stored therein, and the computer program is executed by a processor to implement the assembly guiding method according to any one of claims 1 to 5.

7. An assembly guidance system, It is characterized in that include: A projector, used for projecting grating stripes and a guide picture of the workpiece to be guided; A binocular camera is used to collect images of a grating calibration plate with grating stripes and an image of a calibration plate without gratings, and to collect images of the workpiece to be guided in the current field of view; Processor: used for calibrating the binocular camera and the projector to obtain a spatial transformation relationship between the binocular camera and the projector; Among them, two cameras in the binocular camera are calibrated to obtain the intrinsic parameters and distortion coefficients of the two cameras; the projector projects grating stripes, and the binocular camera collects the grating calibration plate image with grating stripes and the calibration plate image without grating; the projector is calibrated according to the position of the center of the calibration plate in the grating image pre-stored in the projector, and the transformation relationship between the projector and the binocular camera is obtained; the calibrated binocular camera is used to collect the workpiece image of the workpiece to be guided in the current field of view and perform three-dimensional reconstruction to obtain a new point cloud; And, for performing three-dimensional reconstruction on the collected workpiece image to obtain a new point cloud, and calculating the transformation relationship between the complete point cloud and the new point cloud according to the correspondence between the marker points in the complete point cloud of the workpiece to be guided and the marker points in the new point cloud; according to the transformation relationship between the complete point cloud and the new point cloud and the spatial transformation relationship between the binocular camera and the projector, transforming the complete point cloud into the coordinate system of the projector and rasterizing it into a guide image to be projected for projection to realize assembly guidance; Among them, the complete point cloud of the workpiece to be guided collected in advance is imported; the number of marker points in the current newly created point cloud is calculated; if the number of marker points is greater than the threshold, the marker points are used to calculate the transformation relationship between the complete point cloud and the newly created point cloud; the transformation relationship includes the rotation matrix R1 and the translation vector T1; the coordinates of the complete point cloud are transformed to the binocular camera coordinate system, and the formula is as follows: ; Among them, P1 is the complete point cloud coordinate after transformation to the binocular camera coordinate system, and P is the complete point cloud coordinate before transformation to the binocular camera coordinate system; According to the spatial transformation relationship between the binocular camera and the projector, the coordinates of the complete point cloud are transformed into the projector coordinate system. The formula is as follows: ; Among them, P2 is the complete point cloud coordinate after transformation to the projector coordinate system; P1 is the complete point cloud coordinate after transformation to the binocular camera coordinate system; R2 and T2 are the rotation matrix and translation vector between the projector and the binocular camera respectively; The complete point cloud transformed into the projector coordinate system is rasterized to obtain a rasterized workpiece guide image; Performing motion detection on the workpiece; If the workpiece remains stable, the projector projects the rasterized workpiece guide image to implement assembly guidance; otherwise, the motion detection is performed again.

8. The assembly guide system according to claim 7, It is characterized in that Also includes: A display, connected to the processor, for displaying real-time video and images; The memory is connected to the processor and is used to store videos and images in real time.