Structured light 3D scanning system based on virtual binocular vision

Through virtual binocular vision technology and flexible posture adjustment system, the problems of measurement errors and complex adjustments in traditional binocular vision calibration systems are solved, and high-precision 3D scanning and calibration are achieved, which is suitable for a variety of industrial applications.

CN114964051BActive Publication Date: 2024-09-20HEFEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210564489.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-23
Publication Date
2024-09-20
Estimated Expiration
2042-05-23

AI Technical Summary

Technical Problem

The traditional binocular vision calibration system has large measurement errors due to the incomplete synchronization of the camera working status, and the adjustment method is complex, making it difficult to achieve accurate relative pose adjustment.

Method used

A structured light 3D scanning system based on virtual binocular vision is adopted. A camera and a plane mirror are used to realize the binocular stereoscopic vision function. The spherical hinge and guide rail sliding mechanism are used to realize flexible posture adjustment of the camera, structured light projector and plane mirror, reducing the need for equipment. cost and improve measurement accuracy.

Benefits of technology

It greatly reduces measurement errors, improves the accuracy of calibration results and operational flexibility. It is suitable for a variety of industrial cameras and plane mirror models and is versatile.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114964051B
    Figure CN114964051B
Patent Text Reader

Abstract

The present invention discloses a structured light 3D scanning system based on virtual binocular vision, including a plane mirror, a structured light projector, a camera and a mounting seat, wherein the structured light projector and the camera are both located on the front side of the plane mirror, and the two sides of the mounting seat are rotatably connected with ball hinges, and the outer side of the ball hinge is fixedly connected with a guide rail shaft, and a guide rail sliding mechanism is sleeved on the guide rail shaft; the plane mirror and the camera are respectively mounted on two guide rail sliding mechanisms, and the plane mirror and the camera can respectively realize horizontal movement and rotation around a vertical axis; the top surface of the mounting seat is connected with a structured light projector sliding rail, and the structured light projector is mounted on the top of the structured light projector sliding rail, and the structured light projector can realize spatial posture adjustment on the structured light projector sliding rail. The present invention can virtualize two cameras through one camera, and the functions realized by the two cameras are the same, which greatly reduces the cost required for the experiment and meets the requirements of strict synchronous acquisition of two images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine vision technology, and in particular to a structured light 3D scanning system based on virtual binocular vision. Background Art

[0002] In the traditional binocular vision calibration, the traditional binocular vision is based on the principle of parallax. It uses two cross-placed cameras to observe the same object from different angles, obtain the image coordinates of the feature points of the same object, and complete the three-dimensional measurement of the target point. However, this method has certain disadvantages. Since the working states of the two cameras cannot be completely synchronized, the measurement accuracy is reduced. The measurement error caused by the non-strict synchronization between the two cameras will have a great impact on the visual calibration results, and even produce wrong calibration results.

[0003] Chinese invention patent: Single-camera binocular vision device (application publication number: CN109856895), which discloses a technical solution for obtaining binocular images by imaging the same area of ​​interest from different angles through the left and right images of a single camera lens, and obtaining binocular patterns by using two groups of reflectors symmetrically arranged on both sides of the central axis of the camera lens, collecting the pattern of the object from different angles on both sides, and then projecting them into the shooting area of ​​the camera lens respectively, to obtain virtual images at two angles. Therefore, the image calibration method of the device is different from the traditional dual-camera calibration method only in the image acquisition method; due to the difference in calibration scenes and the influence of the ambient light field around the camera, the virtual image pattern formed by the mirror surface obtained by the camera will have a certain deviation from the real pattern information of the object directly obtained by the camera, and it is impossible to simultaneously obtain the real pattern of the object and the virtual image presented in the reflector, and it is also impossible to further distinguish and calibrate the real structured light of the object and the structured light imaged in the plane mirror.

[0004] In the existing binocular vision calibration system composed of two cameras, the two cameras are usually relatively fixed, or a conventional simple adjustment method is used to adjust the relative distance or angle between the two cameras, and the posture of the two cameras in the field of view is adjusted synchronously by rotating the structure. In the process of visual calibration, it is often necessary to adjust the spatial relative posture between the camera, the structured light on the object being measured, and the plane mirror. However, the existing adjustment method is more troublesome to adjust and set the spatial relative posture corresponding to the preset viewing angle. Summary of the invention

[0005] The present invention aims to overcome the shortcomings of the prior art and proposes a structured light 3D scanning system based on virtual binocular vision, which overcomes the shortcomings of the prior art. By photographing the target object and its virtual image, a pair of images with parallax are obtained, which is equivalent to the camera and its virtual camera in the mirror photographing the target object from different angles. It has the function of binocular stereo vision, simplifies the binocular calibration process, and improves the calibration accuracy. It also uses the coded mark attached to the plane mirror to distinguish the structured light of the real object to be measured and the structured light of the object to be measured imaged in the plane mirror. At the same time, a combination of multiple adjustment methods can be used to realize the flexible adjustment of the relative posture among the camera, structured light and plane mirror.

[0006] In order to achieve the above effects, the technical solution adopted by the present invention is:

[0007] A structured light 3D scanning system based on virtual binocular vision, the 3D scanning system comprises a plane mirror, a structured light projector, a camera and a mounting seat, the structured light projector and the camera are both located on the front side of the plane mirror, both sides of the mounting seat are rotatably connected with ball hinges and fastened in the mounting seat by locking screws, the outer side of the ball hinge is fixedly connected with a guide rail shaft, and a guide rail sliding mechanism is sleeved on the guide rail shaft;

[0008] The plane mirror is mounted on a guide rail sliding mechanism on one side, and the camera is mounted on a guide rail sliding mechanism on the other side, and the camera's shooting direction is opposite to the front of the plane mirror. The plane mirror and the camera can respectively realize horizontal movement and rotation around a vertical axis on their respective guide rail sliding mechanisms;

[0009] The top surface of the mounting seat is connected to a structured light projector sliding rail located between two guide rail sliding mechanisms. The structured light projector is installed on the top of the structured light projector sliding rail, and the structured light projector can achieve horizontal movement, vertical movement and rotation around a horizontal axis on the structured light projector sliding rail.

[0010] Furthermore, the plane mirror has a length of m, a width of n, and a thickness of t, and a front coating is provided on the front side surface of the plane mirror.

[0011] Furthermore, three threaded holes are formed on the top surface of the mounting seat, and two ball hinges and one end of the sliding guide rail of the structured light projector are fastened to the mounting seat by locking screws threadedly connected to the threaded holes.

[0012] Furthermore, the guide rail sliding mechanism includes a guide rail sleeved on the outside of the guide rail shaft, a slider slidably connected to the top of the guide rail, a column fixedly arranged on the top of the slider, and a mounting frame assembly rotatably sleeved on the outside of the column, and the plane mirror / camera is fixedly clamped on the top of the mounting frame assembly.

[0013] Furthermore, a sliding assembly structure with a dovetail groove structure is adopted between the slider and the guide rail, and at least one locking screw is threadedly connected to the top of the slider, and the slider is fastened to the guide rail by the locking screw.

[0014] Furthermore, the sliding guide rail of the structured light projector includes a horizontal positioning rail rotatably connected to the top surface of the mounting seat, an L-shaped positioning bracket slidably embedded in the horizontal positioning rail, a vertical positioning rail slidably embedded on the outside of the vertical section of the L-shaped positioning bracket, a column fixedly set on the top of the vertical positioning rail, and a mounting frame assembly rotatably sleeved on the outside of the column, and a hinged seat is fixedly installed on the top of the mounting frame assembly, and the structured light projector is hinged on the hinged seat.

[0015] Furthermore, the column is a cylindrical structure that is larger at the top and smaller at the bottom, and the mounting frame assembly includes a mounting frame plate and a locking frame plate, the mounting frame plate and the locking frame plate are connected and fastened by locking screws, and the opposite sides of the mounting frame plate and the locking frame plate are slidably fitted with the outer wall of the column.

[0016] Furthermore, the horizontal positioning guide rail and the vertical positioning guide rail are each provided with a plurality of threaded holes evenly distributed along their respective length directions, the L-shaped positioning bracket is provided with at least one bolt hole corresponding to the threaded holes, the horizontal section of the L-shaped positioning bracket is fastened to the horizontal positioning guide rail via a locking screw, and the vertical section of the L-shaped positioning bracket is fastened to the vertical positioning guide rail via a locking screw.

[0017] Furthermore, the relative positions among the camera, the structured light projector and the plane mirror are adjustable, and the adjustment method comprises the following steps:

[0018] Step 1, projecting structured light emitted by a structured light projector onto the surface of the object to be measured, forming structured light on the surface of the object to be measured;

[0019] Step 2, setting the position of any one of the three structures of the camera, the structured light projector and the plane mirror to be fixed, and then adjusting the relative positions of the remaining two structures and the relative positions relative to the fixed structure, so that the structured light and the image formed by the structured light in the plane mirror can be captured simultaneously within the camera's field of view;

[0020] Step 3: Adjust the position of the structured light projector until the structured light and the image of the structured light in the plane mirror are within the camera's field of view. That is, part of the image captured by the camera is the structured light covering the object being measured, and part is the plane mirror. The plane mirror occupies half of the camera's field of view and is not centered in the field of view.

[0021] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0022] 1. The present invention uses one camera to realize the functions of two cameras, thus reducing the equipment cost;

[0023] 2. The present invention uses one camera and a plane mirror to complete the functions of both a real camera and a virtual camera, which greatly reduces the problem of measurement errors caused by non-strict synchronization between two cameras in the traditional binocular vision test, and greatly improves the precision of the measurement results and the accuracy of the calibration results;

[0024] 3. The present invention can adjust the distance and rotation angle of the camera, the horizontal movement and rotation angle of the plane mirror, and the distance, height and rotation angle of the structured light projector. The spatial relative position among the camera, structured light and plane mirror is adjusted by combining multiple adjustment methods, and the adjustment operation is flexible and convenient.

[0025] 4. The present invention can be adapted to a variety of different industrial camera models and plane mirrors of different sizes, and has universality. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a schematic diagram of the three-dimensional structure of the present invention;

[0027] Figure 2 is a schematic diagram of the three-dimensional structure of the guide rail sliding mechanism;

[0028] Figure 3 is a schematic diagram of the three-dimensional structure of the sliding guide rail of the structured light projector;

[0029] Figure 4 is a schematic diagram of the three-dimensional structure of the mounting frame assembly;

[0030] Figure 5 It is a schematic diagram of the assembly state of the mounting frame assembly on the slide block. DETAILED DESCRIPTION

[0031] The embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present invention.

[0032] See also Figure 1A structured light 3D scanning system based on virtual binocular vision, the 3D scanning system comprises a plane mirror 1, a structured light projector 2, a camera 3 and a mounting seat 4, the structured light projector 2 and the camera 3 are both located on the front side of the plane mirror 1, and the camera 3 is opposite to the front side of the plane mirror 1, so that the plane mirror 1 can be located in the camera market of the camera 3. In this embodiment, the plane mirror 1 selects a cubic front-coated plane mirror with a length of 300 mm, a width of 250 mm and a thickness of 20 mm, and the plane mirror 1 is placed vertically. The structured light projector 2 uses a monochromatic laser light.

[0033] A bolt hole is provided on one side of the bottom of the mounting seat 4, and the mounting seat 4 can be fixed on the working platform of the scanning system application scenario by bolt connection. Ball hinges 5 are rotatably connected to both sides of the mounting seat 4, and are fastened to the mounting seat 4 by locking screws. Specifically, ball hinge grooves are provided in both side surfaces of the mounting seat 4, and threaded holes corresponding to and connected to the ball hinge grooves are provided on the top surface of the mounting seat 4. The ball hinge 5 is movably embedded in the ball hinge groove, and the locking screw is threadedly connected in the threaded hole, and the inner end of the locking screw rests on the outer circumferential surface of the ball hinge 5. When the locking screw at this location is loosened, the ball hinge 5 can be freely rotated within a certain angle range in the mounting seat 4, and when the locking screw at this location is tightened, the ball hinge 5 can be fixed in the mounting seat 4.

[0034] The outer side of the ball hinge 5 is fixedly connected with a guide rail shaft 6, and a guide rail sliding mechanism 7 is sleeved on the guide rail shaft 6. The plane mirror 1 is installed on the guide rail sliding mechanism 7 on one side, and the camera 3 is installed on the guide rail sliding mechanism 7 on the other side. The plane mirror 1 and the camera 3 can respectively realize horizontal movement and rotation around the vertical axis on their respective guide rail sliding mechanisms 7. Figure 2 As shown, the guide rail sliding mechanism 7 includes a guide rail 71 sleeved on the outside of the guide rail shaft 6, a slider 72 slidably connected to the top of the guide rail 71, a column 73 fixedly arranged on the top of the slider 72, and a mounting frame assembly 74 rotatably sleeved on the outside of the column 73, and a clamping frame 75 is fixedly installed on the top of the mounting frame assembly 74. In this embodiment, the guide rail shaft 6 is a cylindrical rod structure with threaded sections at both ends. One end of the guide rail shaft 6 is fixed to the ball hinge 5 by threaded connection, and the other end is threadedly connected with a locking nut. The guide rail 71 is sleeved on the middle polished rod of the guide rail shaft 6, so that the guide rail 71 and the guide rail shaft 6 can follow the ball hinge 5 to achieve posture adjustment. When the locking nut is loosened, the guide rail 71 can rotate around the axis of the guide rail shaft 6, and when the locking nut is tightened, the guide rail 71 is fixed on the guide rail shaft 6.

[0035] The slider 72 and the guide rail 71 adopt a sliding assembly structure with a dovetail groove structure, and a locking screw is threadedly connected to each of the two sides of the top of the slider 72. The slider 72 is fastened to the guide rail 71 through the locking screws. When the locking screws at this location are loosened, the position of the slider 72 in the length direction of the guide rail 71 can be adjusted. Tightening the locking screws at this location can fix the slider 72 on the guide rail 71. The column 73 is a cylindrical structure with a larger top and a smaller bottom, and is threaded or welded to the center of the top surface of the slider 72. Figure 4 and Figure 5 As shown, the mounting frame assembly 74 includes a mounting frame plate 741 and a locking frame plate 742, the mounting frame plate 741 and the locking frame plate 742 are connected and fastened by a locking screw, and the opposite sides of the mounting frame plate 741 and the locking frame plate 742 are slidably fitted with the outer wall of the column 73. When the locking screw is loosened, the mounting frame assembly 74 can rotate around the axis of the column 73; when the locking screw is tightened, the mounting frame assembly 74 is fixed on the column 73.

[0036] A horizontal mounting plate is arranged on the top of the mounting frame plate 741, and the clamping frame 75 is fixed to the top of the mounting plate by screw connection. Two vertically arranged clamping plates are integrally arranged on the top surface of the clamping frame 75, and the bottom of the plane mirror 1 is located between the two clamping plates, and is fastened to the clamping frame 75 by a gasket placed between the two clamping plates and a locking screw threadedly connected to the side wall of the clamping plate. By loosening the locking screw there, the clamping position of the plane mirror 1 in the clamping frame 75 can be adjusted, and by tightening the locking screw there, the plane mirror 1 is fixed to the clamping frame 75. Through the above-mentioned position adjustment method between the various components in the guide rail sliding mechanism 7, any one adjustment method or a combination of multiple adjustment methods can be adopted to achieve the spatial posture adjustment of the plane mirror 1 (including the relative distance and relative angle between it and the mounting seat 4).

[0037] The guide rail sliding mechanism 7 for mounting the camera 3 has the same structure as the guide rail sliding mechanism 7 for mounting the plane mirror 1, and the spatial position adjustment method of the camera 3 is the same as the spatial position adjustment method of the plane mirror 1, which will not be described in detail here. The difference is that the camera 3 is directly mounted and fixed on the top of the mounting frame plate 741 in its guide rail sliding mechanism 7, and the mounting position of the camera 3 on the mounting frame assembly 74 cannot be adjusted.

[0038] The top surface of the mounting base 1 is connected with a structured light projector sliding rail 8 located between two guide rail sliding mechanisms 7, and the structured light projector 2 is mounted on the top of the structured light projector sliding rail 8, and the structured light projector 2 can realize horizontal movement, vertical movement and rotation around the horizontal axis on the structured light projector sliding rail 8. Figure 3As shown, the structured light projector sliding guide rail 8 comprises a horizontal positioning guide rail 81 rotatably connected to the top surface of the mounting seat, an L-shaped positioning bracket 82 slidably embedded in the horizontal positioning guide rail 81, a vertical positioning guide rail 83 slidably embedded in the outer side of the vertical section of the L-shaped positioning bracket 82, a column 73 fixedly arranged on the top of the vertical positioning guide rail 83, and a mounting bracket assembly 74 rotatably sleeved on the outer side of the column 73. In this embodiment, a threaded hole is provided at the center of the top surface of the mounting seat 4, and a bolt hole corresponding to the threaded hole is provided at one end of the horizontal positioning guide rail 81. The horizontal positioning guide rail 81 is fastened to the mounting seat 4 by a locking screw threadedly connected to the threaded hole and penetrated into the bolt hole. By loosening the locking screw there, the horizontal positioning guide rail 81 can be rotated around the vertical axis on the top surface of the mounting seat 4, thereby adjusting the spatial position of the horizontal positioning guide rail 81, and by tightening the locking screw there, the horizontal positioning guide rail 81 can be fixed to the mounting seat 4.

[0039] The L-shaped positioning bracket 82 is in an "L" shape, and includes an integrally arranged horizontal section and a vertical section. The horizontal section is slidably embedded in the horizontal positioning rail 81, and the vertical section is slidably embedded in the vertical positioning rail 83. The horizontal positioning rail 81 and the vertical positioning rail 83 are both provided with a plurality of threaded holes evenly distributed along their respective length directions. The L-shaped positioning bracket 82 is provided with at least one bolt hole corresponding to the threaded hole. The horizontal section of the L-shaped positioning bracket 82 is connected and fastened to the horizontal positioning rail 81 by a locking screw, and the vertical section of the L-shaped positioning bracket 82 is connected and fastened to the vertical positioning rail 83 by a locking screw. By adjusting the assembly position of the bolt holes on the horizontal section and / or the vertical section of the L-shaped positioning bracket 82 and the threaded holes on the horizontal positioning rail 81 and / or the vertical positioning rail 83, the relative position of the L-shaped positioning bracket 82 and the horizontal positioning rail 81 in the horizontal direction and / or the relative position of the L-shaped positioning bracket 82 and the vertical positioning rail 83 in the vertical direction can be adjusted.

[0040] Preferably, the column 73 and the mounting frame assembly 74 on the structured light projector sliding rail 8 are identical in structure to the column 73 and the mounting frame assembly 74 on the rail sliding mechanism 7, so as to improve the commonality between the device components and reduce the manufacturing cost.

[0041] The top of the mounting frame assembly 74 is fixedly mounted with an articulated seat 84 by screw connection, and the structured light projector 2 is hinged on the articulated seat 84 using a locking screw as an axis. By loosening the locking screw, the relative angle between the structured light projector 2 and the articulated seat 84 can be adjusted by rotating the structured light projector 2, and by tightening the locking screw, the structured light projector 2 can be fixed on the articulated seat 84 in a fixed posture. Through the above-mentioned position adjustment method between the various components in the structured light projector sliding guide 8, any one adjustment method or a combination of multiple adjustment methods can be used to achieve the adjustment of the spatial posture of the structured light projector 2 (including the relative distance and relative angle between the structured light projector 2 and the mounting seat 4).

[0042] In the present invention, the relative positions among the camera 3, the structured light projector 2 and the plane mirror 1 can be adjusted, and the adjustment method comprises the following steps:

[0043] Step 1, projecting the structured light emitted by the structured light projector 2 onto the surface of the object to be measured (the object to be measured is pre-fixed near the mounting seat 4 and can be in the shooting field of the camera 3), forming structured light on the surface of the object to be measured;

[0044] Step 2, setting the position of any one of the three structures of the camera 3, the structured light projector 2 and the plane mirror 1 to be fixed, and then adjusting the relative positions of the remaining two structures and the relative positions relative to the fixed structure, so that the structured light and the image formed by the structured light in the plane mirror can be captured simultaneously within the shooting field of the camera 3;

[0045] As can be seen from the foregoing, by adjusting any one of the assembly relationships or any combination of several assembly relationships among the ball hinge 5 and the mounting seat 4, the axial rotation between the guide rail 71 and the guide rail shaft 6, the linear sliding between the slider 72 and the guide rail 71, the axial rotation between the mounting frame assembly 74 and the column 73, and the sliding embedding of the plane mirror 1 on the support frame 75, the relative spatial position between the plane mirror 1 and the mounting seat 4 can be adjusted accordingly. The same is true for the adjustment method of the camera 3. By adjusting any one of the assembly relationships or any combination of several assembly relationships among the axial rotation between the horizontal positioning rail 81 and the mounting seat 4, the fixed-point plugging between the L-shaped positioning bracket 82 and the horizontal positioning rail 81, the positioning plugging between the vertical positioning rail 83 and the L-shaped positioning bracket 82, the axial rotation between the mounting frame assembly 74 and the column 73, and the axial rotation between the structured light projector 2 and the hinge seat 84, the relative spatial position between the structured light projector 2 and the mounting seat 4 can be adjusted accordingly. By first fixing the spatial position of one of the structures and then adjusting the relative positions of the other two structures, multiple sets of relative position relationships that meet the use requirements can be obtained.

[0046] Step 3, adjust the position of the structured light projector 2 until the structured light and the image of the structured light in the plane mirror are found within the shooting field of view of the camera 1, that is, part of the image captured by the camera is the structured light covering the object to be measured, and part is the plane mirror 1, and the plane mirror 1 occupies half of the area in the shooting field of view of the camera 3 and is not centered in the shooting field of view.

[0047] The relative posture adjustment process among the camera 3, the plane mirror 1, and the structured light projector 2 includes but is not limited to the following situations:

[0048] First, the plane mirror 1, the camera 3 and the structured light projector 2 are installed and connected at the execution end of their position adjustment mechanism. The structured light projector 2 is used to project the structured light onto the surface of the object to be measured, and the camera 3 is connected to an image processing display device (such as a computer) that can display the shooting situation.

[0049] Then, the assembly connection between all the components of the guide rail sliding mechanism 7 on the side where the camera 3 is located is tightened by locking screws, so that the position of the camera 3 relative to the mounting seat 4 is fixed; the spatial posture of the plane mirror 1 is adjusted by adjusting the assembly position between the components of the guide rail sliding mechanism 7 on the side where the plane mirror 1 is located, and the shooting situation displayed is checked on the image processing display device; then, according to the shooting situation, the spatial posture of the structured light projector 2 is adjusted by adjusting the assembly position between the components of the structured light projector sliding guide rail 8. If the plane mirror 1 or the structured light is not within the shooting field of view of the camera 3, the requirements are not met; if the front coating side of the plane mirror 1 is not within the shooting field of view of the camera 3, the requirements are not met; if the angle of adjustment of the plane mirror 1 in space is too large, so that the shooting field of the camera 3 can only display a small part of the front coating of the plane mirror 1 or can only shoot part of the structured light and the image formed by the structured light in the plane mirror 1, the requirements are not met.

[0050] Next, the plane mirror 1 is fixed, the position of the structured light projector 2 is moved, and the displayed shooting situation is checked on the image processing display device at the same time, and then the distribution range of the structured light and the plane mirror 1 in the shooting field of view of the camera 3 is changed by adjusting the position of the camera 3. If the structured light and the image formed by the structured light in the plane mirror 1 cannot be completely presented in the shooting field of view of the camera 3, the requirements are not met. The distance and relative angle between the plane mirror 1 and the camera 3 are appropriately adjusted so that the structured light can be imaged in the plane mirror 1. At the same time, the displayed shooting situation is checked on the image processing display device to observe whether the shooting field of view of the camera 3 can capture the structured light and the complete image formed by the structured light in the plane mirror, and the plane mirror is also completely in the shooting field of view of the camera 3. If not, continue to adjust the spatial posture of the plane mirror 1.

[0051] In the case where the above method cannot meet the requirements, the spatial posture of the camera 3 and the structured light projector 2 can be adjusted alternately or synchronously while adjusting the plane mirror 1. By manually adjusting the plane mirror 1, the camera 3 and the structured light projector 2 multiple times, while observing the changes in the range of the plane mirror 1 in the shooting field of view of the camera 3, until the plane mirror 1 is found to be in the best shooting field of view of the camera 3, that is, the front coated side of the plane mirror 1 should be photographed in the shooting field of view of the camera 3, and the plane mirror 1 occupies half of the area in the shooting field of view of the camera 3 without being centered in the shooting field of view of the camera 3. Then the posture state of the plane mirror 1 in the shooting field of view of the camera 3 that meets the use requirements is obtained.

[0052] The structured light 3D scanning system based on virtual binocular vision of the present invention can utilize one camera and a plane mirror to complete the functions of both a real camera and a virtual camera, which greatly reduces the problem of measurement errors caused by the non-strict synchronization between the two cameras that exist in the traditional binocular vision test. The collected image information is used in the processing process of decoding and encoding the image through coding marks, which greatly improves the precision of the measurement results and the accuracy of the calibration results.

[0053] The method for implementing image information preprocessing using the structured light 3D scanning system based on virtual binocular vision can adopt the following steps:

[0054] S1. Using a camera to capture an image including a plane mirror, a coding mark on the plane mirror, structured light projected by a structured light projector on the object to be measured, and an image formed by the structured light in the plane mirror;

[0055] S2, grayscale the captured image to obtain a grayscale image, and copy it;

[0056] S3, performing adaptive threshold binarization processing on the copied image to obtain a binary image;

[0057] S4, extracting the outline of the binary image, and removing some outlines that are unlikely to be coding marks through a contour filtering algorithm;

[0058] S5, perform perspective transformation on the image obtained by taking the plane mirror and the coding mark on the plane mirror; perform thresholding on the obtained perspective transformed image to separate the white bit and the black bit, and the image after thresholding is divided into different grids according to the size of each coding mark and the size of the boundary. Count the number of black and white pixels falling in each grid to distinguish whether it is a black bit or a white bit to determine the bit position (marking bit) of each coding mark;

[0059] S6, after the bit extraction, extract the ID number of each coding mark, the number of each coding mark is different, that is, locate the position of the coding mark in the reference surface of the plane mirror, and connect them in sequence according to the position of the coding mark and its location to form a complete frame;

[0060] S7, blacken the outside of the frame formed by connecting the coding marks, and keep the inside of the frame to complete the removal of the complex background. The image obtained after removing the complex background is the area where the plane mirror is located. This area includes the image of the structured light projected by the plane mirror and the structured light projector to the object under test in the plane mirror. The area not in this area is the real structured light emitted by the structured light projector, and then the real structured light and the structured light of the virtual image formed in the plane mirror are distinguished to complete the preprocessing of the captured image.

[0061] The above-mentioned adaptive threshold binarization processing method, contour extraction method, contour filtering algorithm, perspective transformation method and threshold processing method can be reasonably combined by selecting existing processing methods according to the needs of image processing. They are not the innovation of the present invention and will not be described in detail here.

[0062] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A structured light 3D scanning system based on virtual binocular vision, characterized by: The 3D scanning system includes a plane mirror, a structured light projector, a camera and a mounting seat. The structured light projector and the camera are both located on the front side of the plane mirror. Ball hinges are rotatably connected to the two sides of the mounting seat and are fastened in the mounting seat by locking screws. A guide rail shaft is fixedly connected to the outer side of the ball hinge, and a guide rail sliding mechanism is sleeved on the guide rail shaft. The plane mirror is mounted on a guide rail sliding mechanism on one side, and the camera is mounted on a guide rail sliding mechanism on the other side, and the camera's shooting direction is opposite to the front of the plane mirror. The plane mirror and the camera can respectively realize horizontal movement and rotation around a vertical axis on their respective guide rail sliding mechanisms; The top surface of the mounting seat is connected with a structured light projector sliding guide rail located between two guide rail sliding mechanisms, the structured light projector is mounted on the top of the structured light projector sliding guide rail, and the structured light projector can realize horizontal movement, vertical movement and rotation around a horizontal axis on the structured light projector sliding guide rail; The relative positions of the camera, the structured light projector and the plane mirror can be adjusted, and the adjustment method includes the following steps: Step 1, projecting structured light emitted by a structured light projector onto the surface of the object to be measured, forming structured light on the surface of the object to be measured; Step 2, setting the position of any one of the three structures of the camera, the structured light projector and the plane mirror to be fixed, and then adjusting the relative positions of the remaining two structures and the relative positions relative to the fixed structure, so that the structured light and the image formed by the structured light in the plane mirror can be captured simultaneously within the camera's field of view; Step 3, adjust the position of the structured light projector until the structured light and the image of the structured light in the plane mirror are found to be within the camera's field of view, that is, part of the image captured by the camera is the structured light covering the object to be measured, and part is the plane mirror, and the plane mirror occupies half of the camera's field of view and is not centered in the field of view; The method for implementing image information preprocessing using the structured light 3D scanning system based on virtual binocular vision comprises the following steps: S1. Using a camera to capture an image including a plane mirror, a coding mark on the plane mirror, structured light projected by a structured light projector on the object to be measured, and an image formed by the structured light in the plane mirror; S2, grayscale the captured image to obtain a grayscale image, and copy it; S3, performing adaptive threshold binarization processing on the copied image to obtain a binary image; S4, extracting the outline of the binary image, and removing some outlines that are unlikely to be coding marks through a contour filtering algorithm; S5, performing perspective transformation on the image obtained by shooting and including the plane mirror and the coding mark on the plane mirror; performing thresholding processing on the obtained perspective transformed image to separate the white bit and the black bit, the image after thresholding processing is divided into different grids according to the size of each coding mark and the size of the boundary, and counting the number of black and white pixels falling in each grid to distinguish whether it is a black bit or a white bit to determine the bit of each coding mark; S6, after the bit extraction, extract the ID number of each coding mark, the number of each coding mark is different, that is, locate the position of the coding mark in the reference surface of the plane mirror, and connect them in sequence according to the position of the coding mark and its location to form a complete frame; S7, the outside of the frame formed by connecting the coding marks is blackened, and the inside of the frame is retained to complete the removal of the complex background. The image obtained after removing the complex background is positioned at the area where the plane mirror is located, and the preprocessing of the captured image is completed.

2. The structured light 3D scanning system based on virtual binocular vision according to claim 1, characterized in that: The plane mirror has a length of m, a width of n, and a thickness of t, and a front coating is provided on the front side surface of the plane mirror.

3. The structured light 3D scanning system based on virtual binocular vision according to claim 1 or 2, characterized in that: The top surface of the mounting seat is provided with three threaded holes, and two ball hinges and one end of the sliding guide rail of the structured light projector are fastened to the mounting seat through locking screws threadedly connected in the threaded holes.

4. The structured light 3D scanning system based on virtual binocular vision according to claim 1, characterized in that: The guide rail sliding mechanism includes a guide rail sleeved on the outside of the guide rail shaft, a slider slidably connected to the top of the guide rail, a column fixedly arranged on the top of the slider, and a mounting frame assembly rotatably sleeved on the outside of the column. The plane mirror / camera is fixedly clamped on the top of the mounting frame assembly.

5. The structured light 3D scanning system based on virtual binocular vision according to claim 4, characterized in that: A sliding assembly structure with a dovetail groove structure is adopted between the slider and the guide rail, and at least one locking screw is threadedly connected to the top of the slider, and the slider is fastened to the guide rail through the locking screw.

6. The structured light 3D scanning system based on virtual binocular vision according to claim 1, characterized in that: The sliding guide rail of the structured light projector includes a horizontal positioning rail rotatably connected to the top surface of the mounting seat, an L-shaped positioning bracket slidably embedded in the horizontal positioning rail, a vertical positioning rail slidably embedded on the outside of the vertical section of the L-shaped positioning bracket, a column fixedly set on the top of the vertical positioning rail, and a mounting frame assembly rotatably sleeved on the outside of the column, wherein a hinge seat is fixedly installed on the top of the mounting frame assembly, and the structured light projector is hinged on the hinge seat.

7. The structured light 3D scanning system based on virtual binocular vision according to claim 4 or 6, characterized in that: The column is a cylindrical structure with a larger top and a smaller bottom. The mounting frame assembly includes a mounting frame plate and a locking frame plate. The mounting frame plate and the locking frame plate are connected and fastened by locking screws, and the opposite sides of the mounting frame plate and the locking frame plate are slidably fitted with the outer wall of the column.

8. The structured light 3D scanning system based on virtual binocular vision according to claim 6, characterized in that: The horizontal positioning guide rail and the vertical positioning guide rail are both provided with a plurality of threaded holes evenly distributed along their respective length directions, the L-shaped positioning bracket is provided with at least one bolt hole corresponding to the threaded holes, the horizontal section of the L-shaped positioning bracket is fastened to the horizontal positioning guide rail via a locking screw, and the vertical section of the L-shaped positioning bracket is fastened to the vertical positioning guide rail via a locking screw.