WO2021208231A1 - Gap measuring system and measuring method - Google Patents

Gap measuring system and measuring method Download PDF

Info

Publication number
WO2021208231A1
WO2021208231A1 PCT/CN2020/097230 CN2020097230W WO2021208231A1 WO 2021208231 A1 WO2021208231 A1 WO 2021208231A1 CN 2020097230 W CN2020097230 W CN 2020097230W WO 2021208231 A1 WO2021208231 A1 WO 2021208231A1
Authority
WO
WIPO (PCT)
Prior art keywords
gap
camera
image
structured light
motor
Prior art date
Application number
PCT/CN2020/097230
Other languages
French (fr)
Chinese (zh)
Inventor
方宇
董大卫
周志峰
杨皓
吴明晖
Original Assignee
上海工程技术大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海工程技术大学 filed Critical 上海工程技术大学
Publication of WO2021208231A1 publication Critical patent/WO2021208231A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/002Measuring arrangements characterised by the use of optical techniques for measuring two or more coordinates
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • G01B11/022Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness by means of tv-camera scanning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration

Definitions

  • the invention relates to the technical field of machine vision measurement, in particular to a gap measurement system and a measurement method.
  • Gap measurement is a very important inspection item in industrial production.
  • the gap between the workpieces is a relatively important feature information.
  • Non-contact methods include three-coordinate measuring machine for measurement, theodolite measuring system measuring method, three-dimensional laser measuring instrument measuring method, and methods based on capacitance and ultrasound.
  • these methods can only perform sampling tests on the test objects, and the number of sampling tests is extremely limited, the cost is high, and the actual production needs cannot be met.
  • the purpose of the present invention is to provide a gap measurement system and measurement method to solve the problem of high cost of existing gap measurement.
  • the gap measurement system includes a mechanical arm, a host computer, a control cabinet, and a vision system, wherein:
  • the host computer is connected to the control cabinet to control the mechanical arm;
  • the vision system includes a binocular camera and a structured light projector, and both the binocular camera and the structured light projector are fixed to the end of the mechanical arm;
  • the mechanical arm moves above the gap, and the structured light projector projects on the gap to form an image of the gap;
  • the binocular camera is used to collect the image of the gap, and send the image of the gap to the upper computer, the upper computer performs image processing, and the upper computer obtains the three-dimensional space of the gap according to the result of the image processing Coordinates, and generate a three-dimensional reconstruction model of the gap;
  • the space three-dimensional reconstruction model of the rotating slot of the host computer is parallel to the Z axis of the world coordinate system, and the space three-dimensional reconstruction model of the rotating slot is respectively projected to different coordinate planes to obtain the slot width and face difference values.
  • the gap measurement system further includes a motor control system, and the motor control system is used to adjust the baseline distance between the binocular camera and the structured light projector.
  • the motor control system includes a DC brushless motor and a DC brushless motor controller, and the DC brushless motor controller adopts double closed-loop control of a speed loop and a current loop;
  • the current loop When starting the DC brushless motor, the current loop is turned on, and the current increases so that the motor quickly reaches the specified speed, and at the same time the maximum current limit is started;
  • the current loop acts as an inner loop for current limiting protection, and the speed loop acts as an outer loop to maintain a constant speed
  • the brushless DC motor controller includes a hardware module and a software module.
  • the hardware module is composed of a development board, a driver board, an encoder, an AD acquisition circuit, and a simulator; the development board outputs a PWM wave output waveform, and the signal is amplified by the driver board. Finally, it is input into the motor to control the start and stop of the motor and the speed and current of the motor; the encoder and AD acquisition circuit feedback the speed signal and current signal to the software module, and correct the duty cycle of the PWM wave output waveform through feedback to complete the closed loop of the motor control;
  • the software module sets the chip register of the development board, controls the timing and interrupt function of the development board chip, and makes it output PWM waveform; and according to the encoder to detect the motor speed and the feedback signal of the AD sampling circuit, adjust the PWM wave duty cycle, and then Adjust the size of the speed and the size of the current.
  • the mechanical arm includes a first single hollow joint and a second single hollow joint, and the first single hollow joint and the second single hollow joint are used to place a direct current sensor.
  • Brush motor, the first single hollow joint and the second single hollow joint are integrated in a spherical shell in a staggered manner;
  • the spherical housing also has a first driver and a second driver.
  • the first driver is used to drive the structured light projector and the binocular camera, and the second driver is used to drive the first single hollow joint and the The second single hollow joint;
  • the DC brushless motor is a hollow frameless motor, the rotor of the hollow frameless motor is directly connected to the harmonic reducer through a centrally controlled transmission shaft, and the end face of the harmonic reducer is used as a direct output end face;
  • the other end of the motor is connected to the gear through the centrally controlled drive shaft, and the drive shaft is biased through the gear drive, and an electromagnetic brake and an incremental encoder are installed on the biased drive shaft.
  • the relationship matrix between the end of the robotic arm and the binocular camera is a hand-eye relationship matrix
  • the binocular camera collects the image of the gap, calibrate the hand-eye relationship matrix and the camera internal and external parameters of the binocular camera;
  • the image of the gap collected by the binocular camera is a structured light image
  • the binocular camera sends the image of the slit to the image processing system of the upper computer;
  • the image processing system processes the structured light image collected by the binocular camera, and uses a gap detection algorithm based on the Canny operator to perform edge extraction to obtain more contour information;
  • the result of edge extraction is stereo-matched, the coordinates of the slot matching point are obtained, and a spatial three-dimensional reconstruction model is formed, and the width of the slot and the value of the face difference are obtained.
  • calibrating the hand-eye relationship matrix includes: setting a world coordinate system on the work plane, and the world coordinate system does not coincide with the robot coordinate system. After completing the binocular camera After the internal and external parameters are calibrated, the position of the object in the world coordinate system is calculated; the coordinates of the object in the robot coordinate system are obtained, and the hand-eye relationship matrix is calculated according to the conversion between the world coordinate system and the robot coordinate system;
  • the edge extraction includes: adopting image preprocessing technology to reduce noise and enhance edge contour, and extend on the basis of Canny operator, so as to perform edge extraction of gap contour;
  • the stereo matching includes: now obtaining the coordinates of the edge points according to the result of edge contour extraction, and performing binocular stereo matching on the edge points under the restriction of the edge area, that is, first extracting the point coordinates, then matching cost calculation, then cost aggregation, and finally Disparity calculation;
  • Forming the spatial three-dimensional reconstruction model includes: obtaining the left and right projection images through a binocular camera, obtaining the correspondence between the left and right projection images through stereo matching, and obtaining the gap by using the calibration result of the binocular camera, that is, the coordinates of the edge contour points in the left and right projection images.
  • the local coordinate system O g -X g Y g Z g of a single camera in the binocular camera coincides with the camera coordinate system O c -X c Y c Z c, and All are right-handed coordinate systems;
  • the origin of light emitted by the structured light projector is N, O c is the center of the optical axis of the binocular camera; the emission point N of the structured light plane is on the O c X c Z c coordinate plane, and the structured light plane is orthogonal to O c X c Z c coordinate plane; the intersection line is PN, point P is the intersection point of the optical axis O c Z c and the structured light plane, the distance between the exit point N of the light plane and the optical center O c of the camera, that is, the structured light vision measurement
  • the method of obtaining the three-dimensional geometric information of the object according to two or more images assuming that there is an object in space, the left image plane I 1 is obtained by the No. 1 camera and the No. 2 camera.
  • the right image plane I 2 the coordinate of a point P on the object in space is [X Y Z] T
  • the projection points on the left image plane I 1 and the right image plane I 2 are respectively P l and P r , their homogeneity
  • the coordinates are [u 1 v 1 1] T and [u 2 v 2 1] T respectively
  • P l and P r have the following corresponding relations:
  • M L and M R are the projection matrices of the No. 1 camera and the No. 2 camera respectively, and A l and A r are the internal parameters of the No. 1 camera and the No. 2 camera respectively.
  • Respectively external parameter matrix Camera 1 and Camera 2 wherein R l, R r are the number 1 camera 2 camera rotation matrix, t l, t r are the number 1 camera and the No. 2 camera translation vector .
  • the internal parameters and external parameters of the camera are obtained through camera calibration.
  • (u 1 ,v 1 ,1) T , (u 2 ,v 2 ,1) T are the homogeneous coordinates of points p l and p r in the left image plane I 1 and the right image plane I 2
  • ( X, Y, Z, 1) T is the homogeneous coordinates in the world coordinate system to be sought
  • Is the element in the i-th row and j-th column of the projection matrix M L similarly, Is the element in the i-th row and j-th column of the projection matrix M R , and the above equations are solved
  • the least square solution is the space coordinate sought, that is, the three-dimensional reconstruction of the cover gap is realized.
  • the present invention also provides a gap measurement method.
  • the gap measurement method includes:
  • the upper computer controls the robotic arm by connecting to the control cabinet;
  • the binocular camera and structured light projector of the vision system are both fixed to the end of the robotic arm;
  • the mechanical arm moves above the gap, and the structured light projector projects on the gap to form an image of the gap;
  • the binocular camera is used to collect the image of the gap, and send the image of the gap to the upper computer, the upper computer performs image processing, and the upper computer obtains the three-dimensional space of the gap according to the result of the image processing Coordinates, and generate a three-dimensional reconstruction model of the gap;
  • the space three-dimensional reconstruction model of the rotating slot of the host computer is parallel to the Z axis of the world coordinate system, and the space three-dimensional reconstruction model of the rotating slot is respectively projected to different coordinate planes to obtain the slot width and face difference values.
  • control cabinet is connected to the upper computer to control the mechanical arm, the mechanical arm moves to the top of the gap, and the structured light projector is projected on the gap to form an image of the gap, and the binocular camera collects The image of the gap is sent to the upper computer, and the upper computer performs image processing.
  • the upper computer obtains the three-dimensional space coordinates of the gap according to the result of the image processing, and generates a three-dimensional reconstruction model of the gap, and the upper computer rotates the three-dimensional space of the gap
  • the reconstruction model is parallel to the Z axis of the world coordinate system, and the space three-dimensional reconstruction model of the rotated gap is projected to different coordinate planes to obtain the width and surface difference of the gap, which realizes the non-contact measurement of the gap.
  • the measurement accuracy is high, and the software algorithm is used to realize the measurement. There is no need for large-scale investment in hardware. Only software algorithms are required for measurement and image processing. The hardware cost is low, which solves the problem of high cost of gap measurement.
  • FIG. 1 is a schematic diagram of the structure of a mechanical arm based on structured light vision according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a checkerboard used by Zhang Youzheng's calibration method according to another embodiment of the present invention.
  • Figure 3 is a general diagram of a brushless DC motor control system according to another embodiment of the present invention.
  • FIG. 4 is a flowchart of a hardware module of a brushless DC motor control system according to another embodiment of the present invention.
  • Figure 5 is a cross-sectional view of a mechanical arm joint according to another embodiment of the present invention.
  • Fig. 6 is a structured light vision measurement model of another embodiment of the present invention.
  • FIG. 7 is a schematic diagram of the three-dimensional reconstruction of the slit line represented in the detection method of another embodiment of the present invention.
  • FIG. 8 is a schematic diagram of the rotation of the spatial straight line represented in the detection method of another embodiment of the present invention.
  • FIG. 9 is a schematic diagram of the structure of a brushless DC motor according to another embodiment of the present invention.
  • Fig. 10 is a left measurement image taken by a binocular vision system according to another embodiment of the present invention.
  • Fig. 11 is a right measurement image taken by a binocular vision system according to another embodiment of the present invention.
  • FIG. 12 is a schematic diagram of the three-dimensional reconstruction of the slit line represented in the detection method of another embodiment of the present invention.
  • FIG. 13 is a schematic diagram of the rotation of the spatial straight line represented in the detection method of another embodiment of the present invention.
  • FIG. 14 is a schematic diagram of the projection of the slit line on the X-Z plane in the detection method of another embodiment of the present invention.
  • 15 is a schematic diagram showing the projection of the slit line on the Y-Z plane in the detection method according to another embodiment of the present invention.
  • 1-Upper computer As shown in the figure: 1-Upper computer; 2-Control cabinet; 3-Motor control system; 4-Manipulator; 41-The first single hollow joint; 42-The second single hollow joint; 43-The first driver; 44- The second driver; 5-binocular camera; 6-structured light projector.
  • the core idea of the present invention is to provide a gap measurement system and measurement method to solve the existing problem of high cost of gap measurement.
  • the gap measurement system includes a mechanical arm, an upper computer, a control cabinet, and a vision system, wherein: the upper computer is connected to the control cabinet to control The robotic arm; the vision system includes a binocular camera and a structured light projector, the binocular camera and the structured light projector are both fixed to the end of the robotic arm; the robotic arm moves to above the gap, so The structured light projector is projected on the gap to form an image of the gap; the binocular camera is used to collect the image of the gap, and send the image of the gap to the upper computer, and the upper computer performs image processing , The host computer obtains the three-dimensional space coordinates of the gap according to the result of image processing, and generates a spatial three-dimensional reconstruction model of the gap; The space three-dimensional reconstruction model of the gap is projected to different coordinate planes to obtain the width and surface difference of the gap.
  • This embodiment proposes a vision-based gap measurement system, as shown in Figure 1, which includes a motor control system 3, a robotic arm 4, and a vision system.
  • the control cabinet 2 controls and connects to the robotic arm 4, and the upper computer 1 is connected to the control cabinet 2.
  • the vision system includes a binocular camera 5 and a structured light projector 6.
  • the motor control system 3 adjusts the baseline distance between the binocular camera 5 and the structured light projector 6.
  • the binocular camera 5 is used to collect the image projected by the structured light projector 6, and The image is transmitted to the image processing system composed of the software and hardware of the host computer.
  • the binocular camera 5 is fixed to the end of the robotic arm 4, and the structured light projector 6 is projected on the gap.
  • the relationship matrix between the end of the robotic arm 4 and the binocular camera 5 The internal and external parameters of the camera are calibrated first, the relationship matrix between the end of the robotic arm 4 and the binocular camera 5, that is, the hand-eye relationship matrix; then the structured light image collected by the binocular camera 5 is processed, and the gap detection based on the Canny operator is used
  • the algorithm performs edge extraction to obtain more contour information; then, the result of edge extraction is stereo-matched to obtain the coordinates of the gap matching point, and then three-dimensional reconstruction is performed to obtain the gap width and the surface difference value.
  • control cabinet is connected to the upper computer to control the mechanical arm, the mechanical arm moves to the top of the gap, and the structured light projector is projected on the gap to form an image of the gap, and the binocular camera collects The image of the gap is sent to the upper computer, and the upper computer performs image processing.
  • the upper computer obtains the three-dimensional space coordinates of the gap according to the result of the image processing, and generates a three-dimensional reconstruction model of the gap, and the upper computer rotates the three-dimensional space of the gap
  • the reconstruction model is parallel to the Z axis of the world coordinate system, and the space three-dimensional reconstruction model of the rotated gap is projected to different coordinate planes to obtain the width and surface difference of the gap, which realizes the non-contact measurement of the gap.
  • the measurement accuracy is high, and the software algorithm is used to realize the measurement. There is no need for large-scale investment in hardware. Only software algorithms are required for measurement and image processing. The hardware cost is low, which solves the problem of high cost of gap measurement.
  • the calibration of the hand-eye relationship matrix includes: calibrating the internal parameter matrix and distortion parameters of the camera by the Zhang Zhengyou calibration method; as shown in FIG. 2, the camera is used at different distances, different orientations, and different tilts to the chessboard are required. Take several pictures of a checkerboard from a complete angle. Detect inner corners in the picture, that is, corner detection and extraction of sub-pixel information;
  • the calibration of the internal and external camera parameters of the binocular camera includes: before the calibration operation, the position coordinates of the space coordinate system of each internal corner point on the chessboard need to be initialized.
  • the calibration result generated under the default parameters is the camera internal parameter matrix camera Matrix , The camera's 5 distortion coefficients distCoeffs, and each image will generate its own translation vector and rotation vector.
  • the calibration camera external parameter matrix is used for the conversion between image coordinates and world coordinates; the following formula is the conversion formula between pixel coordinates and world coordinates.
  • the first matrix on the right is the camera internal parameter matrix, and the second matrix is the camera external parameter matrix.
  • the image coordinates are known, and the camera's internal parameter matrix has been obtained through calibration. It is also necessary to calculate the scale factor s and the external parameter matrix.
  • s is the scale factor
  • C is the parameter matrix in the camera
  • R is the rotation matrix
  • t is the translation matrix
  • Z const is the height of the world coordinate system, which can be set to 0.
  • Set N feature points (N>3), calculate their world coordinates, move the working end of the robotic arm to the feature point, record the end coordinates, and obtain N sets of data;
  • R is the rotation matrix
  • the motor control system is used to adjust the baseline distance between the binocular camera and the structured light projector, including the DC brushless motor control system scheme.
  • the DC brushless motor and the control system adopt the double closed loop control of the speed loop and the current loop. system.
  • the current loop works. By continuously increasing the current, the motor quickly reaches the specified speed, while limiting the maximum starting current to prevent damage to the motor due to excessive current; after the speed is stable, the current loop acts as an inner loop It is mainly used for current-limiting protection, and the speed loop is outside. Its main purpose is to maintain a constant speed. In the case of low power and constant torque requirement, the current loop can keep the motor torque stable through stable current. On the other hand, it can also increase the system's anti-disturbance ability.
  • Figure 3 is the overall block diagram of the DC brushless motor control system.
  • the brushless DC motor control system includes hardware modules and software modules.
  • the hardware module consists of a development version, a driver board and an emulator.
  • the development chip is controlled by the PC computer.
  • the encoder and AD acquisition circuit in the motor feed back the speed signal and current signal to the computer, and correct the duty cycle of the PWM wave output waveform through feedback to complete the closed-loop control of the motor.
  • Figure 4 is the control block diagram of the hardware module of the brushless motor control system.
  • the software module includes two parts: the setting of chip registers on the development board and the algorithm design.
  • the purpose of setting the chip register of the development board is to control the basic functions such as timing and interrupt of the development board chip, and make it output the PWM waveform;
  • the purpose of the algorithm design is mainly to detect the motor speed according to the encoder and the AD sampling circuit.
  • the feedback signal adjusts the duty cycle of the PWM wave, and then adjusts the size of the speed and the size of the current.
  • the manipulator 4 adopts a staggered manner of two separate joints, and integrates the two separate joints into a spherical shell.
  • There are two drivers in the spherical shell one is used to drive the independent joints, and the other is used to drive the light source and the camera.
  • Figure 5 is a cross-sectional view of the spherical joint, where 41 and 42 are the first single hollow joint and the second single hollow joint, respectively, used to place the hollow frameless motor; 43 and 44 are the first driver and the second driver, respectively, 43 drive structure
  • the light projector and the binocular camera 44 are used to drive the robotic arm 4, and the two drivers are exchanged using CAN signals.
  • a hollow frameless motor is selected for a single hollow joint, which is convenient for internal hollow wiring.
  • the rotor of the motor is directly connected to the harmonic reducer through the central control drive shaft.
  • the end face of the harmonic reducer is used as the direct output end face; the other end of the motor is controlled by the central control
  • the transmission shaft is connected with the gear, and the transmission shaft is offset by gear transmission.
  • the electromagnetic brake and incremental encoder are installed on the offset transmission shaft.
  • the local coordinate system O g -X g Y g Z g and the camera coordinate system O c -X c Y c Z c are all coincident and are all right-handed coordinate systems.
  • the origin of the laser is N
  • O c is the center of the camera's optical axis.
  • the exit point N of the structured light plane is on the O c X c Z c coordinate plane, and the structured light plane is orthogonal to the O c X c Z c coordinate plane.
  • the line of intersection is PN
  • point P is the intersection of the optical axis O c Z c and the structured light plane.
  • the distance between the point N of the light plane and the optical center of the camera O c is the baseline distance of the structured light vision measurement system
  • the coordinate values are unified in the local coordinate system O g -X g Y g Z g , and the projection model for transforming the object coordinates in the local coordinate system to the image point in the image coordinate system is
  • the structured light vision measurement mode can be obtained as shown in equation (3):
  • the camera and light source are driven by a motor to change the baseline distance D to achieve accurate measurement.
  • the edge extraction includes preprocessing methods such as enhancing the edges by using logical operations between images, median filter processing, and image grayscale adjustment enhancement to reduce the complexity of image operations, and then Edge extraction is performed on the basis of canny operator.
  • non-maximum suppression in the gradient direction refers to finding the local maximum of the pixel point, and setting the gray value corresponding to the non-maximum point to 0, so that a large part of non-edge points can be eliminated.
  • FIG 3 in order to perform non-maximum value suppression, it is first necessary to determine whether the gray value of pixel C is the largest in its 8-value neighborhood.
  • the direction of the blue line in Figure 3 is the gradient direction of point C, so that it can be determined that its local maximum must be distributed on this line, that is, outside the point C, the intersection of the gradient direction dTmp1 and dTmp2 are two
  • the point value may also be a local maximum.
  • judging the gray level of point C and the gray level of these two points can determine whether point C is the local maximum gray point in the neighborhood. If it is judged that the gray value of point C is less than either of these two points, it means that point C is not a local maximum, and then point C can be excluded as an edge. This is how non-maximum suppression works.
  • edge tracing includes: In addition to the edge provided by the canny operator, there is actually a wealth of local gradient information, and the gaps extracted by this scheme are all straight lines, so the gradient information is very valuable. Further, for straightness judgment, after all straight lines have grown, the eigenvalue decomposition is performed on each contour, and the smaller eigenvalue is used for linearity judgment. Furthermore, the line segments are paired, the lengths of the two line segments are similar, the centroids of the two line segments are close, and the gradient vectors of the two line segments are opposite.
  • stereo matching includes: the first step is to perform feature matching on the image, that is, to extract the coordinates of the edge contour points of the gap to obtain the initial matching point; the second step is to calculate the matching cost to measure the pixel to be matched and the candidate pixel.
  • the third step is cost aggregation, so that the cost value can accurately reflect the correlation between pixels; the fourth step, the disparity calculation, the optimal view of each pixel is determined by the cost matrix after the cost aggregation Difference.
  • the three-dimensional reconstruction and result analysis include: referring to Figure 8, O 1 and O 2 in the figure are the optical centers of the No. 1 camera and the No. 2 camera.
  • the coordinate of a point P on the object in space is [X Y Z] T , in the left image plane I 1 ,
  • the projection points on the right image plane I 2 are P l and P r , and their homogeneous coordinates are [u 1 v 1 1] T , [u 2 v 2 1] T , then P l and P r are as follows Correspondence:
  • M L and M R are the projection matrices of the No. 1 camera and the No. 2 camera respectively, and A l and A r are the internal parameters of the No. 1 camera and the No. 2 camera respectively;
  • Respectively external parameter matrix Camera 1 and Camera 2 wherein R l, R r are the number 1 camera 2 camera rotation matrix, t l, t r are the number 1 camera and the No. 2 camera translation vector
  • the internal parameters and external parameters of the camera are obtained by camera calibration.
  • the projection matrix M L and M R are calculated according to the internal and external parameters of the camera, the above formula can be eliminated Z c1 or Z c2 , and the information about X, Y, Z can be obtained Four linear equations:
  • (u 1 ,v 1 ,1) T , (u 2 ,v 2 ,1) T are the homogeneous coordinates of points p l and p r in the left image plane I 1 and the right image plane I 2
  • ( X, Y, Z, 1) T is the homogeneous coordinates in the world coordinate system to be sought
  • Is the element in the i-th row and j-th column of the projection matrix M L similarly, Is the element in the i-th row and j-th column of the projection matrix M R , and the above equations are solved
  • the least square solution is the space coordinate sought, that is, the three-dimensional reconstruction of the cover gap is realized.
  • hand-eye calibration includes: first run the Matlab software, add the path where the calibration toolbox is located to the Matlab path environment, and start the main calibration function calib-gui.m. Install the No. 1 camera and the No. 2 camera in the proper position, and adjust the No. 1 camera and the No. 2 camera, change the angle and orientation, shoot about 10 images, and then store them in the computer through the image capture card.
  • the motor drive includes: the motor is in the entire control system, and the motor is the driving part of the entire control system, and its selection is of vital importance to the system.
  • the motor's rated torque, speed, and geometric dimensions and other related parameters Kollmorgen TBM(s)60 series motors were selected. The specific parameters are shown in Table 1-1.
  • the domestic green harmonic reducer is selected, its products meet the work needs and the price is moderate, which can save costs on the basis of ensuring the quality of the developed products.
  • the harmonic reducer also adopts hollow wiring.
  • the LHD hollow ultra-flattened series of harmonics are selected.
  • the harmonic model is determined to be LHD-17-100.
  • the diameter of the inner circular hole of the large gear is selected to be 20mm.
  • the brake device is installed at the end of the biased pinion.
  • the coil of the brake is connected in parallel with the motor.
  • the motor When the motor is powered on, the coil in the brake is energized.
  • the motor When the motor is powered off, the coil in the brake is out of power.
  • the function of the brake is to decelerate the moving parts or mechanical parts in the system. At the same time, it also has a positioning function. After the motor torque is transmitted through the gear, the torque is reduced. While ensuring the braking force, in order to make the structure more compact, choose a smaller size and lighter explosion. After a comprehensive comparison, it is determined to select the KEB01.P1.310 brake. Specific parameters As shown in Table 1-4.
  • the encoder is placed at the end of the offset shaft. It encodes the input signal source or data. After the analog signal is converted by the encoder, it becomes a digital signal that can be communicated, transmitted, stored or processed by the host computer.
  • the encoder has two types: incremental and absolute. Increment has high reliability and is far from simple, but it cannot output absolute information. Therefore, once the position of the object is changed after the power is cut off and the movement is stopped, the original position information will be lost. Absolute type can record the absolute position, the movement of the object will not lose the memory information after the power is off, and the anti-interference ability is strong.
  • the encoder does not need to be wired in the air, so there is no need to use a hollow encoder.
  • the maxon photoelectric encoder HEDL5540 is determined to be selected.
  • the encoder parameters are shown in Table 1-3.
  • the schematic diagram of the structure of the DC brushless motor is shown in Figure 9.
  • the rotor is equipped with permanent magnet steel, and the nails are equipped with windings.
  • the windings are energized in turn according to the read rotor position to generate a rotating magnetic field. Due to the presence of permanent magnets on the rotor, there is the main magnetic field of the rotor's magnetic poles in the air gap. The interaction of the two magnetic fields produces electromagnetic torque.
  • the commutation of the motor is completed, so that the motor can continuously rotate, so that the baseline distance D is continuously changed until it is adjusted to the best shooting position.
  • the edge extraction includes: controlling the mechanical arm, placing the gap part of the vehicle door to be tested in the visual space of the binocular stereo vision system, and capturing images by the No. 1 camera and the No. 2 camera to obtain the gap image.
  • the edge extraction includes: controlling the mechanical arm, placing the gap part of the vehicle door to be tested in the visual space of the binocular stereo vision system, and capturing images by the No. 1 camera and the No. 2 camera to obtain the gap image.
  • Figure 10 and Figure 11 for the original image taken. Perform a series of preprocessing on the image, including logic operations, median filtering, and grayscale image adjustment.
  • the three-dimensional matching includes: after edge extraction of the door gap line to obtain the coordinates of the edge contour points, first perform feature matching on the obtained coordinate points, and then reduce the matching search space from the two-dimensional space to the two-dimensional space by the epipolar geometric constraint method. Matching in one-dimensional space can greatly reduce the amount of calculation during matching, increase the speed of matching, and save matching time.
  • the matching cost needs to be calculated. Whether two pixels are points with the same name or not, the matching cost can be calculated through the matching cost function. The smaller the cost, the greater the correlation and the greater the probability of being a point with the same name.
  • Cost aggregation The calculation of matching cost often only considers local information, which is easily affected by image noise.
  • the cost aggregation is to establish the connection between adjacent pixels to optimize the cost matrix. This optimization is often global.
  • the WTA algorithm is used to calculate the winner-take-all algorithm, that is, among the cost values of all the parallaxes of a certain pixel, the parallax corresponding to the smallest cost value is selected as the optimal parallax.
  • Three-dimensional reconstruction includes: Refer to Figure 12, from the door gap edge points after stereo matching, combined with the camera calibration results, the coordinates of the door gap edge points in the world coordinate system can be inversely calculated, and then the points are reconstructed by the three-dimensional curve in the Matlab software. .
  • the above-mentioned embodiments describe in detail the different configurations of the gap measurement system.
  • the present invention includes but is not limited to the configurations listed in the above-mentioned embodiments, and any changes are made on the basis of the configurations provided by the above-mentioned embodiments.
  • the content all belong to the protection scope of the present invention. Those skilled in the art can draw inferences based on the content of the above-mentioned embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Mathematical Optimization (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Pure & Applied Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Algebra (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

Disclosed are a gap measuring system and measuring method. The measuring system comprises a mechanical arm (4), an upper computer (1), a control cabinet (2) and a visual system. The upper computer (1) is connected to the control cabinet (2) to control the mechanical arm (4); the visual system comprises a binocular camera (5) and a structured light projector (6), with the binocular camera (5) and the structured light projector (6) both being fixed to an end of the mechanical arm (4); the mechanical arm (4) moves to a position above a gap, and the structured light projector (6) projects light onto the gap, such that an image of the gap is formed; the binocular camera (5) is used for collecting an image of the gap, and sends the image of the gap to the upper computer (1), wherein the upper computer (1) processes the image, and the upper computer (1) obtains, according to an image processing result, three-dimensional spatial coordinates of the gap and generates a spatial three-dimensional reconstruction model of the gap; and the upper computer (1) rotates the spatial three-dimensional reconstruction model of the gap to be parallel to a Z-axis of a world coordinate system, and the spatial three-dimensional reconstruction model of the gap after rotation is respectively projected onto different coordinate planes to calculate the width and face difference values of the gap.

Description

缝隙测量系统及测量方法Gap measurement system and measurement method 技术领域Technical field
本发明涉及机器视觉测量技术领域,特别涉及一种缝隙测量系统及测量方法。The invention relates to the technical field of machine vision measurement, in particular to a gap measurement system and a measurement method.
背景技术Background technique
缝隙测量在工业生产上是一项非常重要的检测项目,近些年来,随着社会不断的发展和工业生产水平不断的提高,在智能制造领域,常常需要在线获取工业制造对象的几何特征信息。在这些几何特征中,工件之间缝隙是一个比较重要的特征信息。Gap measurement is a very important inspection item in industrial production. In recent years, with the continuous development of society and the continuous improvement of industrial production levels, in the field of intelligent manufacturing, it is often necessary to obtain online geometric feature information of industrial manufacturing objects. Among these geometric features, the gap between the workpieces is a relatively important feature information.
现有的缝隙检测方法,分为接触式和非接触式两类,其中接触式检测精度低,并且测量结果不能进行实时的处理。非接触式方法有三坐标测量机进行测量、经纬仪测量系统测量法、三维激光测量仪测量法以及基于电容和超声波的方法。但是这些方法只能对检测对象进行抽样检测,并且抽检的数量极为有限,成本较高,不能满足实际生产需要。Existing gap detection methods are divided into two types: contact type and non-contact type. The contact type detection accuracy is low, and the measurement result cannot be processed in real time. Non-contact methods include three-coordinate measuring machine for measurement, theodolite measuring system measuring method, three-dimensional laser measuring instrument measuring method, and methods based on capacitance and ultrasound. However, these methods can only perform sampling tests on the test objects, and the number of sampling tests is extremely limited, the cost is high, and the actual production needs cannot be met.
发明内容Summary of the invention
本发明的目的在于提供一种缝隙测量系统及测量方法,以解决现有的缝隙测量成本高的问题。The purpose of the present invention is to provide a gap measurement system and measurement method to solve the problem of high cost of existing gap measurement.
为解决上述技术问题,本发明提供一种缝隙测量系统,所述缝隙测量系统包括机械臂、上位机、控制柜及视觉系统,其中:In order to solve the above technical problems, the present invention provides a gap measurement system. The gap measurement system includes a mechanical arm, a host computer, a control cabinet, and a vision system, wherein:
所述上位机通过连接所述控制柜以控制所述机械臂;The host computer is connected to the control cabinet to control the mechanical arm;
所述视觉系统包括双目相机及结构光投射器,所述双目相机及结构光投射器均固定于所述机械臂的末端;The vision system includes a binocular camera and a structured light projector, and both the binocular camera and the structured light projector are fixed to the end of the mechanical arm;
所述机械臂运动至缝隙的上方,所述结构光投射器投射在缝隙上,形成缝隙的图像;The mechanical arm moves above the gap, and the structured light projector projects on the gap to form an image of the gap;
所述双目相机用于采集所述缝隙的图像,并把所述缝隙的图像发送至所述上位机,所述上位机进行图像处理,所述上位机根据图像处理的结果获取缝隙的三维空间坐标,并生成缝隙的空间三维重建模型;The binocular camera is used to collect the image of the gap, and send the image of the gap to the upper computer, the upper computer performs image processing, and the upper computer obtains the three-dimensional space of the gap according to the result of the image processing Coordinates, and generate a three-dimensional reconstruction model of the gap;
所述上位机旋转缝隙的空间三维重建模型与世界坐标系的Z轴平行,并把旋转之后的缝隙的空间三维重建模型分别向不同坐标平面投影的方法来求取缝隙的宽度和面差数值。The space three-dimensional reconstruction model of the rotating slot of the host computer is parallel to the Z axis of the world coordinate system, and the space three-dimensional reconstruction model of the rotating slot is respectively projected to different coordinate planes to obtain the slot width and face difference values.
可选的,在所述的缝隙测量系统中,所述缝隙测量系统还包括电机控制系统,所述电机控制系统用于调整双目相机与结构光投射器的基线距离。Optionally, in the gap measurement system, the gap measurement system further includes a motor control system, and the motor control system is used to adjust the baseline distance between the binocular camera and the structured light projector.
可选的,在所述的缝隙测量系统中,所述电机控制系统包括直流无刷电机及直流无刷电机控制器,直流无刷电机控制器采用速度环和电流环的双闭环控制;Optionally, in the gap measurement system, the motor control system includes a DC brushless motor and a DC brushless motor controller, and the DC brushless motor controller adopts double closed-loop control of a speed loop and a current loop;
在启动直流无刷电机时,电流环开启,电流增大使电机迅速达到指定速度,同时启动电流最大限制值;When starting the DC brushless motor, the current loop is turned on, and the current increases so that the motor quickly reaches the specified speed, and at the same time the maximum current limit is started;
在直流无刷电机转速稳定之后,电流环作为内环进行限流保护,速度环作为外环以维持速度恒定;After the speed of the brushless DC motor stabilizes, the current loop acts as an inner loop for current limiting protection, and the speed loop acts as an outer loop to maintain a constant speed;
直流无刷电机控制器包括硬件模块与软件模块,所述硬件模块由开发板、驱动板、编码器、AD采集电路和仿真器组成;开发板输出PWM波输出波形,经过驱动板将信号放大,最后输入电机中,控制电机的启停以及电机的速度、电流;编码器和AD采集电路将速度信号和电流信号反馈给软件模块,通过反馈修正PWM波输出波形的占空比,完成电机的闭环控制;The brushless DC motor controller includes a hardware module and a software module. The hardware module is composed of a development board, a driver board, an encoder, an AD acquisition circuit, and a simulator; the development board outputs a PWM wave output waveform, and the signal is amplified by the driver board. Finally, it is input into the motor to control the start and stop of the motor and the speed and current of the motor; the encoder and AD acquisition circuit feedback the speed signal and current signal to the software module, and correct the duty cycle of the PWM wave output waveform through feedback to complete the closed loop of the motor control;
软件模块对开发板的芯片寄存器进行设置,控制开发板芯片定时、中断功能,并使其输出PWM波形;并根据编码器检测电机速度以及AD采样电路的反馈信号,调整PWM波占空比,进而调节速度的大小和电流大小。The software module sets the chip register of the development board, controls the timing and interrupt function of the development board chip, and makes it output PWM waveform; and according to the encoder to detect the motor speed and the feedback signal of the AD sampling circuit, adjust the PWM wave duty cycle, and then Adjust the size of the speed and the size of the current.
可选的,在所述的缝隙测量系统中,所述机械臂包括第一单个中空关节和第二单个中空关节,所述第一单个中空关节和所述第二单个中空关节用于放置直流无刷电机,所述第一单个中空关节和所述第二单个中空关节以交错的方式集成在一球形外壳之中;Optionally, in the gap measurement system, the mechanical arm includes a first single hollow joint and a second single hollow joint, and the first single hollow joint and the second single hollow joint are used to place a direct current sensor. Brush motor, the first single hollow joint and the second single hollow joint are integrated in a spherical shell in a staggered manner;
所述球形外壳内还具有第一驱动器与第二驱动器,所述第一驱动器用于驱动结构光投射器和双目相机,所述第二驱动器用于驱动所述第一单个中空关节和所述第二单个中空关节;The spherical housing also has a first driver and a second driver. The first driver is used to drive the structured light projector and the binocular camera, and the second driver is used to drive the first single hollow joint and the The second single hollow joint;
所述直流无刷电机为中空无框电机,所述中空无框电机的转子通过中控传动轴直接与谐波减速机相连,谐波减速机的端面作为直接输出端面;在所述中空无框电机的另一端通过中控的传动轴与齿轮相连,通过齿轮传动将传动轴偏置,在偏置的传动轴上安装电磁抱闸以及增量编码器。The DC brushless motor is a hollow frameless motor, the rotor of the hollow frameless motor is directly connected to the harmonic reducer through a centrally controlled transmission shaft, and the end face of the harmonic reducer is used as a direct output end face; The other end of the motor is connected to the gear through the centrally controlled drive shaft, and the drive shaft is biased through the gear drive, and an electromagnetic brake and an incremental encoder are installed on the biased drive shaft.
可选的,在所述的缝隙测量系统中,所述机械臂的末端与双目相机之间的关系矩阵为手眼关系矩阵;Optionally, in the gap measurement system, the relationship matrix between the end of the robotic arm and the binocular camera is a hand-eye relationship matrix;
在所述双目相机采集所述缝隙的图像前,对所述手眼关系矩阵,以及所述双目相机的摄像机内外参数进行标定;Before the binocular camera collects the image of the gap, calibrate the hand-eye relationship matrix and the camera internal and external parameters of the binocular camera;
所述双目相机采集的缝隙的图像为结构光图像;The image of the gap collected by the binocular camera is a structured light image;
所述双目相机将所述缝隙的图像发送至所述上位机的图像处理系统;The binocular camera sends the image of the slit to the image processing system of the upper computer;
所述图像处理系统对双目相机采集的结构光图像进行处理,采用基于Canny算子的缝隙检测算法进行边缘提取,得到更多轮廓信息;The image processing system processes the structured light image collected by the binocular camera, and uses a gap detection algorithm based on the Canny operator to perform edge extraction to obtain more contour information;
将边缘提取的结果进行立体匹配,得到缝隙匹配点坐标,形成空间三维重建模型,得到缝隙的宽度与面差数值。The result of edge extraction is stereo-matched, the coordinates of the slot matching point are obtained, and a spatial three-dimensional reconstruction model is formed, and the width of the slot and the value of the face difference are obtained.
可选的,在所述的缝隙测量系统中,对所述手眼关系矩阵进行标定包括:在工作平面设置一个世界坐标系,所述世界坐标系与机器人坐标系不重合,在完成双目相机的内外参标定后,计算获得物体在世界坐标系中的位置;获得物体在在机器人坐标系中的坐标,根据所述世界坐标系与所述机器人坐标系中的转换计算手眼关系矩阵;Optionally, in the gap measurement system, calibrating the hand-eye relationship matrix includes: setting a world coordinate system on the work plane, and the world coordinate system does not coincide with the robot coordinate system. After completing the binocular camera After the internal and external parameters are calibrated, the position of the object in the world coordinate system is calculated; the coordinates of the object in the robot coordinate system are obtained, and the hand-eye relationship matrix is calculated according to the conversion between the world coordinate system and the robot coordinate system;
所述边缘提取包括:采用图像预处理技术来降低噪声和增强边缘轮廓,并在Canny算子的基础上进行延伸,从而进行缝隙轮廓的边缘提取;The edge extraction includes: adopting image preprocessing technology to reduce noise and enhance edge contour, and extend on the basis of Canny operator, so as to perform edge extraction of gap contour;
所述立体匹配包括:现根据边缘轮廓提取的结果得到边缘点的坐标,在边缘区域的限制下对边缘点进行双目立体匹配,即首先提取点坐标,然后匹配代价计算,接着代价聚合,最后视差计算;The stereo matching includes: now obtaining the coordinates of the edge points according to the result of edge contour extraction, and performing binocular stereo matching on the edge points under the restriction of the edge area, that is, first extracting the point coordinates, then matching cost calculation, then cost aggregation, and finally Disparity calculation;
形成所述空间三维重建模型包括:通过双目相机得到左右投影图像,经过立体匹配得到左右投影图像的对应关系,利用双目相机标定的结果即 左右投影图像中缝隙边缘轮廓点的坐标求出缝隙边缘在空间中的三维坐标,并根据缝隙轮廓的三维坐标进行缝隙线的三维重建,并利用把缝隙面旋转至与某坐标平面平行的方法求取缝隙宽度与面差数值。Forming the spatial three-dimensional reconstruction model includes: obtaining the left and right projection images through a binocular camera, obtaining the correspondence between the left and right projection images through stereo matching, and obtaining the gap by using the calibration result of the binocular camera, that is, the coordinates of the edge contour points in the left and right projection images. The three-dimensional coordinates of the edge in space, and the three-dimensional reconstruction of the slit line according to the three-dimensional coordinates of the slit contour, and the method of rotating the slit surface to be parallel to a certain coordinate plane to obtain the slit width and the surface difference value.
可选的,在所述的缝隙测量系统中,双目相机中的单个相机的局部坐标系O g-X gY gZ g与相机坐标系O c-X cY cZ c坐标均重合且都为右手坐标系; Optionally, in the gap measurement system, the local coordinate system O g -X g Y g Z g of a single camera in the binocular camera coincides with the camera coordinate system O c -X c Y c Z c, and All are right-handed coordinate systems;
结构光投射器射出的光原点为N,O c为双目相机光轴中心;结构光光平面的射出点N在O cX cZ c坐标平面上,且结构光平面正交于O cX cZ c坐标平面;交线为PN,P点为光轴O cZ c与结构光平面的交点,光平面出射点N点与摄像机光心O c点之间的距离,即结构光视觉测量系统的基线距离|NO c|=D,结构光平面与基线之间的夹角PNO c=α,光轴与激光射线之间的夹角O cPN=β; The origin of light emitted by the structured light projector is N, O c is the center of the optical axis of the binocular camera; the emission point N of the structured light plane is on the O c X c Z c coordinate plane, and the structured light plane is orthogonal to O c X c Z c coordinate plane; the intersection line is PN, point P is the intersection point of the optical axis O c Z c and the structured light plane, the distance between the exit point N of the light plane and the optical center O c of the camera, that is, the structured light vision measurement The baseline distance of the system |NO c | = D, the angle between the structured light plane and the baseline PNO c = α, the angle between the optical axis and the laser beam O c PN = β;
在模型当中,各坐标值统一于局部坐标系O g-X gY gZ g之内,由局部坐标系内物坐标转换至图像坐标系中像点的投影模型为 In the model, the coordinate values are unified in the local coordinate system O g -X g Y g Z g , and the projection model for transforming the object coordinates in the local coordinate system to the image point in the image coordinate system is
Figure PCTCN2020097230-appb-000001
Figure PCTCN2020097230-appb-000001
式中:s=1,0 T=(0 0 0) T,R是3X3的单位正交矩阵,t为1x3的平移矢量;由D,α以及β组成的具有明确物理意义的结构参数描述的结构光光平面方程为 In the formula: s = 1, 0 T = (0 0 0) T , R is a 3X3 unit orthogonal matrix, t is a 1x3 translation vector; it is described by structural parameters with clear physical meaning composed of D, α and β The light plane equation of structured light is
Figure PCTCN2020097230-appb-000002
Figure PCTCN2020097230-appb-000002
由投影模型(1)和光平面方程(2),得到结构光视觉测量模式见式(3):From the projection model (1) and the light plane equation (2), the structured light vision measurement mode is obtained as shown in equation (3):
Figure PCTCN2020097230-appb-000003
Figure PCTCN2020097230-appb-000003
由(3)可知,物点坐标值的精确求取与基线距离D紧密相关;通过电机对相机、光源进行驱动,从而改变基线距离D,实现精确测量。It can be seen from (3) that the accurate determination of the coordinate value of the object point is closely related to the baseline distance D; the camera and light source are driven by a motor to change the baseline distance D to achieve accurate measurement.
可选的,在所述的缝隙测量系统中,根据两幅或者两副以上的图像得到物体三维几何信息的方法,假设空间中一物体,通过1号摄像机、2号摄像机获得左图像平面I 1、右图像平面I 2,物体上一点P在空间中的坐标为[X Y Z] T,在左图像平面I 1、右图像平面I 2上的投影点分别为P l与P r,他们的齐次坐标分别为[u 1 v 1 1] T、[u 2 v 2 1] T,则P l、P r有如下的对应关系: Optionally, in the gap measurement system, the method of obtaining the three-dimensional geometric information of the object according to two or more images, assuming that there is an object in space, the left image plane I 1 is obtained by the No. 1 camera and the No. 2 camera. , The right image plane I 2 , the coordinate of a point P on the object in space is [X Y Z] T , the projection points on the left image plane I 1 and the right image plane I 2 are respectively P l and P r , their homogeneity The coordinates are [u 1 v 1 1] T and [u 2 v 2 1] T respectively , then P l and P r have the following corresponding relations:
Figure PCTCN2020097230-appb-000004
Figure PCTCN2020097230-appb-000004
Figure PCTCN2020097230-appb-000005
Figure PCTCN2020097230-appb-000005
其中,in,
Figure PCTCN2020097230-appb-000006
Figure PCTCN2020097230-appb-000006
Figure PCTCN2020097230-appb-000007
Figure PCTCN2020097230-appb-000007
M L、M R分别为1号摄像机、2号摄像机的投影矩阵,A l、A r分别为1号摄像机、2号摄像机的内部参数,
Figure PCTCN2020097230-appb-000008
分别为1号摄像机与2号摄像机的外部参数矩阵,其中R l、R r分别是1号相机、2号相机的旋转矩阵,t l、t r分别是1号相机与2号相机的平移向量,摄像机的内部参数以及外部参数通过摄像机标定获得,当我们根据摄像机的内外参数求出投影矩阵M L、M R之后,可将上式消去Z c1或者Z c2,得到关于X,Y,Z的四个线性方程组:
M L and M R are the projection matrices of the No. 1 camera and the No. 2 camera respectively, and A l and A r are the internal parameters of the No. 1 camera and the No. 2 camera respectively.
Figure PCTCN2020097230-appb-000008
Respectively external parameter matrix Camera 1 and Camera 2, wherein R l, R r are the number 1 camera 2 camera rotation matrix, t l, t r are the number 1 camera and the No. 2 camera translation vector , The internal parameters and external parameters of the camera are obtained through camera calibration. When we obtain the projection matrix M L and M R according to the internal and external parameters of the camera, we can eliminate Z c1 or Z c2 from the above equation to obtain the information about X, Y, and Z Four linear equations:
Figure PCTCN2020097230-appb-000009
Figure PCTCN2020097230-appb-000009
Figure PCTCN2020097230-appb-000010
Figure PCTCN2020097230-appb-000010
Figure PCTCN2020097230-appb-000011
Figure PCTCN2020097230-appb-000011
Figure PCTCN2020097230-appb-000012
Figure PCTCN2020097230-appb-000012
其中:(u 1,v 1,1) T、(u 2,v 2,1) T分别是点p l、p r在左图像平面I 1与右图像平 面I 2中的齐次坐标,(X,Y,Z,1) T为所求的世界坐标系下的齐次坐标,
Figure PCTCN2020097230-appb-000013
为投影矩阵M L的第i行第j列元素,同理,
Figure PCTCN2020097230-appb-000014
为投影矩阵M R的第i行第j列元素,解上述方程组,其最小二乘解即为所求的空间坐标,即实现了覆盖件缝隙的三维重建。
Among them: (u 1 ,v 1 ,1) T , (u 2 ,v 2 ,1) T are the homogeneous coordinates of points p l and p r in the left image plane I 1 and the right image plane I 2, ( X, Y, Z, 1) T is the homogeneous coordinates in the world coordinate system to be sought,
Figure PCTCN2020097230-appb-000013
Is the element in the i-th row and j-th column of the projection matrix M L, similarly,
Figure PCTCN2020097230-appb-000014
Is the element in the i-th row and j-th column of the projection matrix M R , and the above equations are solved, and the least square solution is the space coordinate sought, that is, the three-dimensional reconstruction of the cover gap is realized.
本发明还提供一种缝隙测量方法,所述缝隙测量方法包括,其中:The present invention also provides a gap measurement method. The gap measurement method includes:
上位机通过连接控制柜以控制机械臂;The upper computer controls the robotic arm by connecting to the control cabinet;
视觉系统的双目相机及结构光投射器均固定于所述机械臂的末端;The binocular camera and structured light projector of the vision system are both fixed to the end of the robotic arm;
所述机械臂运动至缝隙的上方,所述结构光投射器投射在缝隙上,形成缝隙的图像;The mechanical arm moves above the gap, and the structured light projector projects on the gap to form an image of the gap;
所述双目相机用于采集所述缝隙的图像,并把所述缝隙的图像发送至所述上位机,所述上位机进行图像处理,所述上位机根据图像处理的结果获取缝隙的三维空间坐标,并生成缝隙的空间三维重建模型;The binocular camera is used to collect the image of the gap, and send the image of the gap to the upper computer, the upper computer performs image processing, and the upper computer obtains the three-dimensional space of the gap according to the result of the image processing Coordinates, and generate a three-dimensional reconstruction model of the gap;
所述上位机旋转缝隙的空间三维重建模型与世界坐标系的Z轴平行,并把旋转之后的缝隙的空间三维重建模型分别向不同坐标平面投影的方法来求取缝隙的宽度和面差数值。The space three-dimensional reconstruction model of the rotating slot of the host computer is parallel to the Z axis of the world coordinate system, and the space three-dimensional reconstruction model of the rotating slot is respectively projected to different coordinate planes to obtain the slot width and face difference values.
在本发明提供的缝隙测量系统及测量方法中,通过上位机连接控制柜以控制机械臂,机械臂运动至缝隙的上方,结构光投射器投射在缝隙上,形成缝隙的图像,双目相机采集缝隙的图像,并把缝隙的图像发送至上位机,上位机进行图像处理,上位机根据图像处理的结果获取缝隙的三维空间坐标,并生成缝隙的空间三维重建模型,上位机旋转缝隙的空间三维重建模型与世界坐标系的Z轴平行,并把旋转之后的缝隙的空间三维重建模型分别向不同坐标平面投影的方法来求取缝隙的宽度和面差数值,实现了缝隙的非接触式测量,测量精度高,且采用软件算法实现测量,无需对硬件进行大规模的投资,只需要软件算法进行测量和图像处理,硬件成本低,解决了缝隙测量成本高的问题。In the gap measurement system and measurement method provided by the present invention, the control cabinet is connected to the upper computer to control the mechanical arm, the mechanical arm moves to the top of the gap, and the structured light projector is projected on the gap to form an image of the gap, and the binocular camera collects The image of the gap is sent to the upper computer, and the upper computer performs image processing. The upper computer obtains the three-dimensional space coordinates of the gap according to the result of the image processing, and generates a three-dimensional reconstruction model of the gap, and the upper computer rotates the three-dimensional space of the gap The reconstruction model is parallel to the Z axis of the world coordinate system, and the space three-dimensional reconstruction model of the rotated gap is projected to different coordinate planes to obtain the width and surface difference of the gap, which realizes the non-contact measurement of the gap. The measurement accuracy is high, and the software algorithm is used to realize the measurement. There is no need for large-scale investment in hardware. Only software algorithms are required for measurement and image processing. The hardware cost is low, which solves the problem of high cost of gap measurement.
附图说明Description of the drawings
图1是本发明一实施例基于结构光视觉的机械臂结构示意图;FIG. 1 is a schematic diagram of the structure of a mechanical arm based on structured light vision according to an embodiment of the present invention;
图2是本发明另一实施例张友正标定法所用的棋盘格示意图;2 is a schematic diagram of a checkerboard used by Zhang Youzheng's calibration method according to another embodiment of the present invention;
图3是本发明另一实施例直流无刷电机控制系统总图;Figure 3 is a general diagram of a brushless DC motor control system according to another embodiment of the present invention;
图4是本发明另一实施例直流无刷电机控制系统硬件模块流程图;4 is a flowchart of a hardware module of a brushless DC motor control system according to another embodiment of the present invention;
图5是本发明另一实施例机械臂关节剖视图;Figure 5 is a cross-sectional view of a mechanical arm joint according to another embodiment of the present invention;
图6是本发明另一实施例结构光视觉测量模型;Fig. 6 is a structured light vision measurement model of another embodiment of the present invention;
图7是本发明另一实施例检测方法中所表示的缝隙线三维重建示意图;7 is a schematic diagram of the three-dimensional reconstruction of the slit line represented in the detection method of another embodiment of the present invention;
图8是本发明另一实施例检测方法中所表示的空间直线的旋转示意图;FIG. 8 is a schematic diagram of the rotation of the spatial straight line represented in the detection method of another embodiment of the present invention;
图9是本发明另一实施例直流无刷电机结构示意图;9 is a schematic diagram of the structure of a brushless DC motor according to another embodiment of the present invention;
图10是本发明另一实施例双目视觉系统拍摄的左测量图像;Fig. 10 is a left measurement image taken by a binocular vision system according to another embodiment of the present invention;
图11是本发明另一实施例双目视觉系统拍摄的右测量图像;Fig. 11 is a right measurement image taken by a binocular vision system according to another embodiment of the present invention;
图12是本发明另一实施例检测方法中所表示的缝隙线三维重建示意图;12 is a schematic diagram of the three-dimensional reconstruction of the slit line represented in the detection method of another embodiment of the present invention;
图13是本发明另一实施例检测方法中所表示的空间直线的旋转示意图;FIG. 13 is a schematic diagram of the rotation of the spatial straight line represented in the detection method of another embodiment of the present invention;
图14是本发明另一实施例检测方法中所表示的缝隙线在X-Z平面投影示意图;14 is a schematic diagram of the projection of the slit line on the X-Z plane in the detection method of another embodiment of the present invention;
图15是本发明另一实施例检测方法中所表示的缝隙线在Y-Z平面的投影示意图;15 is a schematic diagram showing the projection of the slit line on the Y-Z plane in the detection method according to another embodiment of the present invention;
图中所示:1-上位机;2-控制柜;3-电机控制系统;4-机械臂;41-第一单个中空关节;42-第二单个中空关节;43-第一驱动器;44-第二驱动器;5-双目相机;6-结构光投射器。As shown in the figure: 1-Upper computer; 2-Control cabinet; 3-Motor control system; 4-Manipulator; 41-The first single hollow joint; 42-The second single hollow joint; 43-The first driver; 44- The second driver; 5-binocular camera; 6-structured light projector.
具体实施方式Detailed ways
以下结合附图和具体实施例对本发明提出的缝隙测量系统及测量方法作进一步详细说明。根据下面说明和权利要求书,本发明的优点和特征将更清楚。需说明的是,附图均采用非常简化的形式且均使用非精准的比例,仅用以方便、明晰地辅助说明本发明实施例的目的。The gap measurement system and measurement method proposed by the present invention will be further described in detail below in conjunction with the drawings and specific embodiments. According to the following description and claims, the advantages and features of the present invention will be clearer. It should be noted that the drawings all adopt a very simplified form and all use imprecise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.
本发明的核心思想在于提供一种缝隙测量系统及测量方法,以解决现 有的缝隙测量成本高的问题。The core idea of the present invention is to provide a gap measurement system and measurement method to solve the existing problem of high cost of gap measurement.
为实现上述思想,本发明提供了一种缝隙测量系统及测量方法,所述缝隙测量系统包括机械臂、上位机、控制柜及视觉系统,其中:所述上位机通过连接所述控制柜以控制所述机械臂;所述视觉系统包括双目相机及结构光投射器,所述双目相机及结构光投射器均固定于所述机械臂的末端;所述机械臂运动至缝隙的上方,所述结构光投射器投射在缝隙上,形成缝隙的图像;所述双目相机用于采集所述缝隙的图像,并把所述缝隙的图像发送至所述上位机,所述上位机进行图像处理,所述上位机根据图像处理的结果获取缝隙的三维空间坐标,并生成缝隙的空间三维重建模型;所述上位机旋转缝隙的空间三维重建模型与世界坐标系的Z轴平行,并把旋转之后的缝隙的空间三维重建模型分别向不同坐标平面投影的方法来求取缝隙的宽度和面差数值。In order to realize the above ideas, the present invention provides a gap measurement system and a measurement method. The gap measurement system includes a mechanical arm, an upper computer, a control cabinet, and a vision system, wherein: the upper computer is connected to the control cabinet to control The robotic arm; the vision system includes a binocular camera and a structured light projector, the binocular camera and the structured light projector are both fixed to the end of the robotic arm; the robotic arm moves to above the gap, so The structured light projector is projected on the gap to form an image of the gap; the binocular camera is used to collect the image of the gap, and send the image of the gap to the upper computer, and the upper computer performs image processing , The host computer obtains the three-dimensional space coordinates of the gap according to the result of image processing, and generates a spatial three-dimensional reconstruction model of the gap; The space three-dimensional reconstruction model of the gap is projected to different coordinate planes to obtain the width and surface difference of the gap.
<实施例一><Example One>
本实施例提出一种基于视觉的缝隙测量系统,如图1所示,其包括电机控制系统3、机械臂4、视觉系统,控制柜2控制连接机械臂4,上位机1连接控制柜2,视觉系统包括双目相机5、结构光投射器6,电机控制系统3调整双目相机5与结构光投射器6的基线距离,双目相机5是用于采集结构光投射器6投射图像,并将图像传送给由上位机软硬件构成的图像处理系统,双目相机5固定于机械臂4末端,结构光投射器6投射在缝隙上,将机械臂4末端与双目相机5间的关系矩阵、摄像机内外参数先经过标定,机械臂4末端与双目相机5间的关系矩阵,也就是手眼关系矩阵;然后对双目相机5采集的结构光图像进行处理,采用基于Canny算子的缝隙检测算法进行边缘提取,得到更多轮廓信息;接着将边缘提取的结果进行立体匹配,得到缝隙匹配点坐标,进而三维重建,得到缝隙宽度与面差数值。This embodiment proposes a vision-based gap measurement system, as shown in Figure 1, which includes a motor control system 3, a robotic arm 4, and a vision system. The control cabinet 2 controls and connects to the robotic arm 4, and the upper computer 1 is connected to the control cabinet 2. The vision system includes a binocular camera 5 and a structured light projector 6. The motor control system 3 adjusts the baseline distance between the binocular camera 5 and the structured light projector 6. The binocular camera 5 is used to collect the image projected by the structured light projector 6, and The image is transmitted to the image processing system composed of the software and hardware of the host computer. The binocular camera 5 is fixed to the end of the robotic arm 4, and the structured light projector 6 is projected on the gap. The relationship matrix between the end of the robotic arm 4 and the binocular camera 5 The internal and external parameters of the camera are calibrated first, the relationship matrix between the end of the robotic arm 4 and the binocular camera 5, that is, the hand-eye relationship matrix; then the structured light image collected by the binocular camera 5 is processed, and the gap detection based on the Canny operator is used The algorithm performs edge extraction to obtain more contour information; then, the result of edge extraction is stereo-matched to obtain the coordinates of the gap matching point, and then three-dimensional reconstruction is performed to obtain the gap width and the surface difference value.
在本发明提供的缝隙测量系统及测量方法中,通过上位机连接控制柜以控制机械臂,机械臂运动至缝隙的上方,结构光投射器投射在缝隙上,形成缝隙的图像,双目相机采集缝隙的图像,并把缝隙的图像发送至上位机,上位机进行图像处理,上位机根据图像处理的结果获取缝隙的三维空 间坐标,并生成缝隙的空间三维重建模型,上位机旋转缝隙的空间三维重建模型与世界坐标系的Z轴平行,并把旋转之后的缝隙的空间三维重建模型分别向不同坐标平面投影的方法来求取缝隙的宽度和面差数值,实现了缝隙的非接触式测量,测量精度高,且采用软件算法实现测量,无需对硬件进行大规模的投资,只需要软件算法进行测量和图像处理,硬件成本低,解决了缝隙测量成本高的问题。In the gap measurement system and measurement method provided by the present invention, the control cabinet is connected to the upper computer to control the mechanical arm, the mechanical arm moves to the top of the gap, and the structured light projector is projected on the gap to form an image of the gap, and the binocular camera collects The image of the gap is sent to the upper computer, and the upper computer performs image processing. The upper computer obtains the three-dimensional space coordinates of the gap according to the result of the image processing, and generates a three-dimensional reconstruction model of the gap, and the upper computer rotates the three-dimensional space of the gap The reconstruction model is parallel to the Z axis of the world coordinate system, and the space three-dimensional reconstruction model of the rotated gap is projected to different coordinate planes to obtain the width and surface difference of the gap, which realizes the non-contact measurement of the gap. The measurement accuracy is high, and the software algorithm is used to realize the measurement. There is no need for large-scale investment in hardware. Only software algorithms are required for measurement and image processing. The hardware cost is low, which solves the problem of high cost of gap measurement.
具体的,所述对所述手眼关系矩阵进行标定包括:通过张正友标定法标定相机的内参矩阵和畸变参数;如图2所示,使用相机以不同距离,不同方位,同时需要对棋盘有不同倾斜角度完整拍摄棋盘格若干张图片。检测图片中内角点,即角点检测与提取亚像素信息;Specifically, the calibration of the hand-eye relationship matrix includes: calibrating the internal parameter matrix and distortion parameters of the camera by the Zhang Zhengyou calibration method; as shown in FIG. 2, the camera is used at different distances, different orientations, and different tilts to the chessboard are required. Take several pictures of a checkerboard from a complete angle. Detect inner corners in the picture, that is, corner detection and extraction of sub-pixel information;
另外,双目相机的摄像机内外参数进行标定包括:进行标定运算之前,需要对棋盘上每一个内角点的空间坐标系的位置坐标进行初始化,默认参数下生成的标定的结果为相机内参矩阵camera Matrix、相机的5个畸变系数distCoeffs,另外每张图像都会生成属于自己的平移向量和旋转向量。标定相机外参矩阵,用于图像坐标与世界坐标的转换;下式为像素坐标与世界坐标的变换公式,右侧第一个矩阵为相机内参数矩阵,第二个矩阵为相机外参数矩阵。图像坐标已知,同时相机内参数矩阵通过标定已获取,还需计算比例系数s和外参数矩阵。In addition, the calibration of the internal and external camera parameters of the binocular camera includes: before the calibration operation, the position coordinates of the space coordinate system of each internal corner point on the chessboard need to be initialized. The calibration result generated under the default parameters is the camera internal parameter matrix camera Matrix , The camera's 5 distortion coefficients distCoeffs, and each image will generate its own translation vector and rotation vector. The calibration camera external parameter matrix is used for the conversion between image coordinates and world coordinates; the following formula is the conversion formula between pixel coordinates and world coordinates. The first matrix on the right is the camera internal parameter matrix, and the second matrix is the camera external parameter matrix. The image coordinates are known, and the camera's internal parameter matrix has been obtained through calibration. It is also necessary to calculate the scale factor s and the external parameter matrix.
Figure PCTCN2020097230-appb-000015
Figure PCTCN2020097230-appb-000015
其中,s为比例系数Among them, s is the scale factor
转换公式可简化为:The conversion formula can be simplified as:
Figure PCTCN2020097230-appb-000016
Figure PCTCN2020097230-appb-000016
其中,C为相机内参数矩阵,R为旋转矩阵,t为平移矩阵,Z const为世界坐标系高度,可设置为0。 Among them, C is the parameter matrix in the camera, R is the rotation matrix, t is the translation matrix, and Z const is the height of the world coordinate system, which can be set to 0.
通过矩阵变换可得下式:The following formula can be obtained through matrix transformation:
Figure PCTCN2020097230-appb-000017
Figure PCTCN2020097230-appb-000017
求解出旋转矩阵和平移矩阵即可算得s。S can be calculated by solving the rotation matrix and the translation matrix.
设置N个特征点(N>3),计算其世界坐标,移动机械臂工作末端到特征点,记录末端坐标,获得N组数据;Set N feature points (N>3), calculate their world coordinates, move the working end of the robotic arm to the feature point, record the end coordinates, and obtain N sets of data;
利用线性代数求解两组数据的R和t,其中特征点世界坐标为A组数据,末端坐标为B组数据;Use linear algebra to solve the R and t of the two sets of data, where the world coordinates of the feature point are the data of group A, and the end coordinates are the data of group B;
对于两个点集A与B,为了寻找两个点集之间的旋转矩阵R和平移矩阵t。可以将这个问题建模成如下的公式:For two point sets A and B, in order to find the rotation matrix R and the translation matrix t between the two point sets. This problem can be modeled as the following formula:
B=R*A+tB=R*A+t
其中,R为旋转矩阵;Among them, R is the rotation matrix;
计算中心点Calculate the center point
Figure PCTCN2020097230-appb-000018
Figure PCTCN2020097230-appb-000018
点集重新中心化Point set recentralization
Figure PCTCN2020097230-appb-000019
Figure PCTCN2020097230-appb-000019
计算点集之间的协方差矩阵Calculate the covariance matrix between point sets
Figure PCTCN2020097230-appb-000020
Figure PCTCN2020097230-appb-000020
通过奇异值分解计算最优旋转矩阵Calculate the optimal rotation matrix through singular value decomposition
[U,S,V]=SVD(H)[U,S,V]=SVD(H)
R=VU T R=VU T
平移矩阵Translation matrix
t=-R×μ AB t=-R×μ AB
进一步的,电机控制系统用于调整双目相机与结构光投射器的基线距离包括直流无刷电机控制系统方案,具体的,直流无刷电机及控制系统采用了速度环和电流环的双闭环控制系统。在启动电机时,电流环起作用,通过不断加大电流使电机迅速达到指定速度,同时限制启动电流最大值,防止出现因电流过大损坏电机的情况;在转速稳定之后,电流环作为内环主要起限流保护作用,速度环在外,它的主要目的是维持速度的恒定。在 小功率以及要求恒定转矩的场合,电流环通过稳定电流,使电机转矩保持稳定,另一方面,也可以增加系统抗外扰能力。图3为直流无刷电机控制系统总体框图。Further, the motor control system is used to adjust the baseline distance between the binocular camera and the structured light projector, including the DC brushless motor control system scheme. Specifically, the DC brushless motor and the control system adopt the double closed loop control of the speed loop and the current loop. system. When starting the motor, the current loop works. By continuously increasing the current, the motor quickly reaches the specified speed, while limiting the maximum starting current to prevent damage to the motor due to excessive current; after the speed is stable, the current loop acts as an inner loop It is mainly used for current-limiting protection, and the speed loop is outside. Its main purpose is to maintain a constant speed. In the case of low power and constant torque requirement, the current loop can keep the motor torque stable through stable current. On the other hand, it can also increase the system's anti-disturbance ability. Figure 3 is the overall block diagram of the DC brushless motor control system.
直流无刷电机控制系统包括硬件模块与软件模块。硬件模块由开发版、驱动板和仿真器组成。通过PC电脑端控制开发芯片,有开发板芯片输出PWM波波形,在经过驱动板将信号放大,最后输入电机当中,控制电机的启停以及电机的速度、电流等。电机中的编码器和AD采集电路将速度信号和电流信号反馈给电脑端,通过反馈修正PWM波输出波形的占空比,完成电机的闭环控制。图4为无刷电机控制系统硬件模块控制框图。软件模块包括对开发板芯片寄存器的设置和算法设计两部分。对开发板芯片寄存器的设置的目的只要是控制开发板芯片定时、中断等基本功能,并使其输出PWM波形;算法设计的目的主要是根据编码器检测电机速度以及AD采样电路才几点留的反馈信号,调整PWM波占空比,进而调节速度的大小和电流大小。The brushless DC motor control system includes hardware modules and software modules. The hardware module consists of a development version, a driver board and an emulator. The development chip is controlled by the PC computer. There is a development board chip that outputs the PWM wave waveform. After the signal is amplified by the drive board, it is finally input into the motor to control the start and stop of the motor and the speed and current of the motor. The encoder and AD acquisition circuit in the motor feed back the speed signal and current signal to the computer, and correct the duty cycle of the PWM wave output waveform through feedback to complete the closed-loop control of the motor. Figure 4 is the control block diagram of the hardware module of the brushless motor control system. The software module includes two parts: the setting of chip registers on the development board and the algorithm design. The purpose of setting the chip register of the development board is to control the basic functions such as timing and interrupt of the development board chip, and make it output the PWM waveform; the purpose of the algorithm design is mainly to detect the motor speed according to the encoder and the AD sampling circuit. The feedback signal adjusts the duty cycle of the PWM wave, and then adjusts the size of the speed and the size of the current.
机械臂4采用两个单独的关节交错的方式,将两个独立的关节集成到一个球形外壳之中。球壳内有两个驱动器,一个用于驱动独立的关节,一个用于驱动光源和相机。图5为球形关节的剖视图,其中41、42分别为第一单个中空关节、第二单个中空关节,用于放置中空无框电机;43、44分别为第一驱动器和第二驱动器,43驱动结构光投射器与双目相机,44用于驱动机械臂4,两个驱动器使用CAN信号进行交换。The manipulator 4 adopts a staggered manner of two separate joints, and integrates the two separate joints into a spherical shell. There are two drivers in the spherical shell, one is used to drive the independent joints, and the other is used to drive the light source and the camera. Figure 5 is a cross-sectional view of the spherical joint, where 41 and 42 are the first single hollow joint and the second single hollow joint, respectively, used to place the hollow frameless motor; 43 and 44 are the first driver and the second driver, respectively, 43 drive structure The light projector and the binocular camera 44 are used to drive the robotic arm 4, and the two drivers are exchanged using CAN signals.
单个中空关节选用中空无框电机,便于内部中空走线,电机的转子通过中控传动轴直接与谐波减速机相连,谐波减速机的端面作为直接输出端面;在电机的另一端通过中控的传动轴与齿轮相连,通过齿轮传动将传动轴偏置,在偏置的传动轴上安装电磁抱闸以及增量编码器,这样的结构使两个独立的中控关节可以交错安装,使整个球形关节的结构更加紧凑。A hollow frameless motor is selected for a single hollow joint, which is convenient for internal hollow wiring. The rotor of the motor is directly connected to the harmonic reducer through the central control drive shaft. The end face of the harmonic reducer is used as the direct output end face; the other end of the motor is controlled by the central control The transmission shaft is connected with the gear, and the transmission shaft is offset by gear transmission. The electromagnetic brake and incremental encoder are installed on the offset transmission shaft. This structure enables two independent central control joints to be installed in a staggered manner, making the entire The structure of the spherical joint is more compact.
对于单个相机,结构光测量的视觉模型如图6所示,局部坐标系O g-X gY gZ g与相机坐标系O c-X cY cZ c坐标均重合且都为右手坐标系。激光器射出原点为N,O c为相机光轴中心。结构光光平面的射出点N在O cX cZ c坐标平面上,且结构光平面正交于O cX cZ c坐标平面。交线为PN,P点为光轴 O cZ c与结构光平面的交点,光平面出射点N点与摄像机光心O c点之间的距离,即结构光视觉测量系统的基线距离|NO c|=D,结构光平面与基线之间的夹角PNO c=α,光轴与激光射线之间的夹角O cPN=β。 For a single camera, the visual model of structured light measurement is shown in Figure 6. The local coordinate system O g -X g Y g Z g and the camera coordinate system O c -X c Y c Z c are all coincident and are all right-handed coordinate systems. . The origin of the laser is N, and O c is the center of the camera's optical axis. The exit point N of the structured light plane is on the O c X c Z c coordinate plane, and the structured light plane is orthogonal to the O c X c Z c coordinate plane. The line of intersection is PN, point P is the intersection of the optical axis O c Z c and the structured light plane. The distance between the point N of the light plane and the optical center of the camera O c is the baseline distance of the structured light vision measurement system |NO c |=D, the angle between the structured light plane and the baseline PNO c =α, the angle between the optical axis and the laser beam O c PN=β.
在模型当中,各坐标值统一于局部坐标系O g-X gY gZ g之内,由局部坐标系内物坐标转换至图像坐标系中像点的投影模型为 In the model, the coordinate values are unified in the local coordinate system O g -X g Y g Z g , and the projection model for transforming the object coordinates in the local coordinate system to the image point in the image coordinate system is
Figure PCTCN2020097230-appb-000021
Figure PCTCN2020097230-appb-000021
式中:s=1,0 T=(0 0 0) T,R是3X3的单位正交矩阵,t为1x3的平移矢量。由D,α以及β组成的具有明确物理意义的结构参数描述的结构光光平面方程为 In the formula: s = 1, 0 T = (0 0 0) T , R is a 3X3 unit orthogonal matrix, and t is a 1x3 translation vector. The light plane equation of structured light described by structural parameters with clear physical meaning composed of D, α and β is
Figure PCTCN2020097230-appb-000022
Figure PCTCN2020097230-appb-000022
由投影模型(1)和光平面方程(2),可以得到结构光视觉测量模式见式(3):From the projection model (1) and the light plane equation (2), the structured light vision measurement mode can be obtained as shown in equation (3):
Figure PCTCN2020097230-appb-000023
Figure PCTCN2020097230-appb-000023
由(3)可知,物点坐标值的精确求取与基线距离D紧密相关。It can be seen from (3) that the accurate calculation of the coordinate value of the object point is closely related to the baseline distance D.
通过电机对相机、光源进行驱动,从而改变基线距离D,实现精确测量。The camera and light source are driven by a motor to change the baseline distance D to achieve accurate measurement.
具体的,所述边缘提取包括:对拍摄的图片首先通过运用图像之间的逻辑运算、中值滤波处理以及图像灰度调整增强对边缘进行增强等预处理方法,减少图像运算的复杂性,然后在canny算子的基础上进行边缘提取。Specifically, the edge extraction includes preprocessing methods such as enhancing the edges by using logical operations between images, median filter processing, and image grayscale adjustment enhancement to reduce the complexity of image operations, and then Edge extraction is performed on the basis of canny operator.
进一步的,计算各处的梯度向量,图像梯度即求导数,导数能反映出 图像变化最大的地方,图像变化最大的地方也就是图像的边缘。Further, calculate the gradient vector everywhere, the image gradient is to find the derivative, and the derivative can reflect the place where the image changes the most, and the place where the image changes the most is the edge of the image.
在sobel算子不能明显反映图像边缘时就换用scharr算子;When the sobel operator cannot clearly reflect the edge of the image, switch to the scharr operator;
Figure PCTCN2020097230-appb-000024
Figure PCTCN2020097230-appb-000024
Figure PCTCN2020097230-appb-000025
Figure PCTCN2020097230-appb-000025
进一步的,梯度方向上进行非最大值抑制,指寻找像素点局部最大值,将非极大值点所对应的灰度值置为0,这样可以剔除掉一大部分非边缘的点。如图3所示,要进行非极大值抑制,就首先要确定像素点C的灰度值在其8值邻域内是否为最大。图3中蓝色的线条方向为C点的梯度方向,这样就可以确定其局部的最大值肯定分布在这条线上,也即出了C点外,梯度方向的交点dTmp1和dTmp2这两个点的值也可能会是局部最大值。因此,判断C点灰度与这两个点灰度大小即可判断C点是否为其邻域内的局部最大灰度点。如果经过判断,C点灰度值小于这两个点中的任一个,那就说明C点不是局部极大值,那么则可以排除C点为边缘。这就是非极大值抑制的工作原理。Further, non-maximum suppression in the gradient direction refers to finding the local maximum of the pixel point, and setting the gray value corresponding to the non-maximum point to 0, so that a large part of non-edge points can be eliminated. As shown in Figure 3, in order to perform non-maximum value suppression, it is first necessary to determine whether the gray value of pixel C is the largest in its 8-value neighborhood. The direction of the blue line in Figure 3 is the gradient direction of point C, so that it can be determined that its local maximum must be distributed on this line, that is, outside the point C, the intersection of the gradient direction dTmp1 and dTmp2 are two The point value may also be a local maximum. Therefore, judging the gray level of point C and the gray level of these two points can determine whether point C is the local maximum gray point in the neighborhood. If it is judged that the gray value of point C is less than either of these two points, it means that point C is not a local maximum, and then point C can be excluded as an edge. This is how non-maximum suppression works.
具体的,边缘追溯包括:canny算子除了提供了边缘之外,其实还有丰富的局部梯度信息,而本方案提取的缝隙都是直线,因而梯度信息是非常宝贵的。进一步的,直线性判别,所有直线都生长结束后,对每个轮廓进行特征值分解,用较小的特征值进行线性度判定。进一步的,线段配对,两个线段长度相似,两个线段质心接近,两个线段梯度向量相对立。Specifically, edge tracing includes: In addition to the edge provided by the canny operator, there is actually a wealth of local gradient information, and the gaps extracted by this scheme are all straight lines, so the gradient information is very valuable. Further, for straightness judgment, after all straight lines have grown, the eigenvalue decomposition is performed on each contour, and the smaller eigenvalue is used for linearity judgment. Furthermore, the line segments are paired, the lengths of the two line segments are similar, the centroids of the two line segments are close, and the gradient vectors of the two line segments are opposite.
具体的,立体匹配包括:第一步对图像进行特征匹配,即把缝隙的边缘轮廓点的坐标提取出来,得到初始匹配点;第二步,进行匹配代价计算,从而衡量待匹配像素与候选像素之间的相关性;第三步,代价聚合,让代价值能够准确的反映像素之间的相关性;第四步,视差计算,通过代价聚合之后的代价矩阵来确定每个像素的最优视差值。Specifically, stereo matching includes: the first step is to perform feature matching on the image, that is, to extract the coordinates of the edge contour points of the gap to obtain the initial matching point; the second step is to calculate the matching cost to measure the pixel to be matched and the candidate pixel The third step is cost aggregation, so that the cost value can accurately reflect the correlation between pixels; the fourth step, the disparity calculation, the optimal view of each pixel is determined by the cost matrix after the cost aggregation Difference.
具体的,三维重建与结果分析包括:参考图8,图中O 1与O 2为1号相机、2号相机的光心,根据两幅或者两副以上的图像得到物体三维几何信 息的方法,假设空间中一物体,通过1号摄像机、2号摄像机可以获得左图像平面I 1、右图像平面I 2,物体上一点P在空间中的坐标为[X Y Z] T,在左图像平面I 1、右图像平面I 2上的投影点分别为P l与P r,他们的齐次坐标分别为[u 1 v 1 1] T、[u 2 v 2 1] T,则P l、P r有如下的对应关系: Specifically, the three-dimensional reconstruction and result analysis include: referring to Figure 8, O 1 and O 2 in the figure are the optical centers of the No. 1 camera and the No. 2 camera. The method of obtaining the three-dimensional geometric information of the object based on two or more images, Assuming an object in space, the left image plane I 1 and the right image plane I 2 can be obtained by camera No. 1 and No. 2. The coordinate of a point P on the object in space is [X Y Z] T , in the left image plane I 1 , The projection points on the right image plane I 2 are P l and P r , and their homogeneous coordinates are [u 1 v 1 1] T , [u 2 v 2 1] T , then P l and P r are as follows Correspondence:
Figure PCTCN2020097230-appb-000026
Figure PCTCN2020097230-appb-000026
Figure PCTCN2020097230-appb-000027
Figure PCTCN2020097230-appb-000027
其中,in,
Figure PCTCN2020097230-appb-000028
Figure PCTCN2020097230-appb-000028
Figure PCTCN2020097230-appb-000029
Figure PCTCN2020097230-appb-000029
M L、M R分别为1号摄像机、2号摄像机的投影矩阵,A l、A r分别为1号摄像机、2号摄像机的内部参数; M L and M R are the projection matrices of the No. 1 camera and the No. 2 camera respectively, and A l and A r are the internal parameters of the No. 1 camera and the No. 2 camera respectively;
Figure PCTCN2020097230-appb-000030
分别为1号摄像机与2号摄像机的外部参数矩阵,其中R l、R r分别是1号相机、2号相机的旋转矩阵,t l、t r分别是1号相机与2号相机的平移向量,摄像机的内部参数以及外部参数通过摄像机标定获得,当根据摄像机的内外参数求出投影矩阵M L、M R之后,可将上式消去Z c1或者Z c2,可以得到关于X,Y,Z的四个线性方程组:
Figure PCTCN2020097230-appb-000030
Respectively external parameter matrix Camera 1 and Camera 2, wherein R l, R r are the number 1 camera 2 camera rotation matrix, t l, t r are the number 1 camera and the No. 2 camera translation vector The internal parameters and external parameters of the camera are obtained by camera calibration. After the projection matrix M L and M R are calculated according to the internal and external parameters of the camera, the above formula can be eliminated Z c1 or Z c2 , and the information about X, Y, Z can be obtained Four linear equations:
Figure PCTCN2020097230-appb-000031
Figure PCTCN2020097230-appb-000031
Figure PCTCN2020097230-appb-000032
Figure PCTCN2020097230-appb-000032
Figure PCTCN2020097230-appb-000033
Figure PCTCN2020097230-appb-000033
Figure PCTCN2020097230-appb-000034
Figure PCTCN2020097230-appb-000034
其中:(u 1,v 1,1) T、(u 2,v 2,1) T分别是点p l、p r在左图像平面I 1与右图像平面I 2中的齐次坐标,(X,Y,Z,1) T为所求的世界坐标系下的齐次坐标,
Figure PCTCN2020097230-appb-000035
为投影矩阵M L的第i行第j列元素,同理,
Figure PCTCN2020097230-appb-000036
为投影矩阵M R的第i行第j列元素,解上述方程组,其最小二乘解即为所求的空间坐标,即实现了覆盖件缝隙的三维重建。
Among them: (u 1 ,v 1 ,1) T , (u 2 ,v 2 ,1) T are the homogeneous coordinates of points p l and p r in the left image plane I 1 and the right image plane I 2, ( X, Y, Z, 1) T is the homogeneous coordinates in the world coordinate system to be sought,
Figure PCTCN2020097230-appb-000035
Is the element in the i-th row and j-th column of the projection matrix M L, similarly,
Figure PCTCN2020097230-appb-000036
Is the element in the i-th row and j-th column of the projection matrix M R , and the above equations are solved, and the least square solution is the space coordinate sought, that is, the three-dimensional reconstruction of the cover gap is realized.
具体的,手眼标定包括:先运行Matlab软件,并将标定工具箱所在的路径添加到Matlab path环境中,启动标定主函数calib-gui.m。将1号摄像机与2号摄像机安装在适当的位置,并且调整好1号摄像机与2号摄像机,变换角度与方位,拍摄大概10幅图像,然后通过图像采集卡存储在电脑之中。Specifically, hand-eye calibration includes: first run the Matlab software, add the path where the calibration toolbox is located to the Matlab path environment, and start the main calibration function calib-gui.m. Install the No. 1 camera and the No. 2 camera in the proper position, and adjust the No. 1 camera and the No. 2 camera, change the angle and orientation, shoot about 10 images, and then store them in the computer through the image capture card.
运行Calibration标定程序,将得到1号摄像机与2号摄像机标定的结果,并且通过运行Analyze error程序可以对标定结果进行误差分析。Run the Calibration calibration program, you will get the results of the calibration of the No. 1 camera and the No. 2 camera, and by running the Analyze error program, you can perform error analysis on the calibration results.
具体的,电机驱动包括:电机在整个控制系统中,电动机作为整个控制系统的驱动件,他的选型对于恐高至系统具有至关重要作用。综合考虑电机额定转矩、转速、以及几何尺寸等相关参数,选定科尔摩根TBM(s)60系列电机。具体参数如表1-1所示。Specifically, the motor drive includes: the motor is in the entire control system, and the motor is the driving part of the entire control system, and its selection is of vital importance to the system. Considering the motor's rated torque, speed, and geometric dimensions and other related parameters, Kollmorgen TBM(s)60 series motors were selected. The specific parameters are shown in Table 1-1.
Figure PCTCN2020097230-appb-000037
Figure PCTCN2020097230-appb-000037
表1-1电机参数Table 1-1 Motor parameters
选用国产绿的谐波减速器,它的产品符合工作需求且价格适中,可以在保证开发产品质量的基础上节约成本。该谐波减速器同样采取的是中空走线,为了进一步保证结构紧凑,选用LHD中空超偏平系列谐波。经过综合考虑最终的输出扭矩以及谐波所能容许的扭矩,确定谐波型号为LHD-17-100。在齿轮的选择中,为确保中控走线槽的尺寸足够大,大齿轮内部圆孔直径选择为20mm。The domestic green harmonic reducer is selected, its products meet the work needs and the price is moderate, which can save costs on the basis of ensuring the quality of the developed products. The harmonic reducer also adopts hollow wiring. In order to further ensure the compact structure, the LHD hollow ultra-flattened series of harmonics are selected. After comprehensively considering the final output torque and the allowable torque of the harmonics, the harmonic model is determined to be LHD-17-100. In the selection of gears, in order to ensure that the size of the central control wiring groove is large enough, the diameter of the inner circular hole of the large gear is selected to be 20mm.
另一方面,为使总体机构更为紧凑,质量更轻,选用魔术为1的薄型齿轮。通过米思米选型手册,确定合适的大小齿轮齿数,最终选择大齿轮 齿数Z1=48,小齿轮齿数Z2=20,大小齿轮与轴均通过平键连接。On the other hand, in order to make the overall mechanism more compact and lighter, a thin gear with magic number 1 is used. Through the Misumi selection manual, determine the appropriate number of teeth of the large and small gears, and finally select the number of teeth of the large gear Z1=48, the number of teeth of the small gear Z2=20, and the large and small gears and the shaft are connected by flat keys.
抱闸装置安装在偏置的小齿轮端,抱闸的线圈与电机并联,电机上电时,抱闸中的线圈就有电,电机断电时,抱闸中的线圈就没电。抱闸的作用是为了关停系统中的运动件或者是机械零件进行减速,同时,它还具有定位功能。电机扭矩通过齿轮传动后,扭矩减小,在保证制动力的同时,为了使结构更紧凑,选用尺寸较小,质量较轻的爆炸,综合比较之后确定选用KEB01.P1.310抱闸,具体参数如表1-4所示。The brake device is installed at the end of the biased pinion. The coil of the brake is connected in parallel with the motor. When the motor is powered on, the coil in the brake is energized. When the motor is powered off, the coil in the brake is out of power. The function of the brake is to decelerate the moving parts or mechanical parts in the system. At the same time, it also has a positioning function. After the motor torque is transmitted through the gear, the torque is reduced. While ensuring the braking force, in order to make the structure more compact, choose a smaller size and lighter explosion. After a comprehensive comparison, it is determined to select the KEB01.P1.310 brake. Specific parameters As shown in Table 1-4.
Figure PCTCN2020097230-appb-000038
Figure PCTCN2020097230-appb-000038
表1-2抱闸参数Table 1-2 Brake parameters
编码器安置在偏置轴的末端,他将输入信号源或者数据进行编码,是模拟信号在通过编码器转换之后,成为可以通信、传输、存储或者是上位机可以进行处理的数字信号。很具不同的工作原理,编码器具有增量式以及绝对式两种。增量是具有较高的可靠性,并且远离简单,但是他不能输出绝对信息,所以断电停止运动后,一旦改变对象的位置,将会丢失原来的位置信息。二绝对式可以记录绝对位置,断电后对象的运动不会使其丢失记忆信息,抗干扰能力强。未在控制系统中,因为其中的编码器无需空中走线,所以不需要选用中空编码器。综合考虑输出精度、编码器自身尺寸以及安装方式,确定选用maxon光电编码器HEDL5540,编码器参数如表1-3所示。The encoder is placed at the end of the offset shaft. It encodes the input signal source or data. After the analog signal is converted by the encoder, it becomes a digital signal that can be communicated, transmitted, stored or processed by the host computer. There are very different working principles. The encoder has two types: incremental and absolute. Increment has high reliability and is far from simple, but it cannot output absolute information. Therefore, once the position of the object is changed after the power is cut off and the movement is stopped, the original position information will be lost. Absolute type can record the absolute position, the movement of the object will not lose the memory information after the power is off, and the anti-interference ability is strong. It is not in the control system, because the encoder does not need to be wired in the air, so there is no need to use a hollow encoder. Considering the output accuracy, the size of the encoder itself, and the installation method, the maxon photoelectric encoder HEDL5540 is determined to be selected. The encoder parameters are shown in Table 1-3.
Figure PCTCN2020097230-appb-000039
Figure PCTCN2020097230-appb-000039
表1-3编码器参数表Table 1-3 Encoder parameter table
直流无刷电机结构示意图如图9所示,转子上装有永磁钢,钉子上装有绕组。各项绕组根据读取的转子的位置依次通电而产生旋转的磁场,因转子上永磁体的存在从而气隙中有转子的磁极主磁场,两个磁场的相互作用产生了电磁转矩,同时,在通过惯性,完成电机的换相,使电机可以连续旋转,从而使得基线距离D不断改变,直到调整到最佳拍摄位置。The schematic diagram of the structure of the DC brushless motor is shown in Figure 9. The rotor is equipped with permanent magnet steel, and the nails are equipped with windings. The windings are energized in turn according to the read rotor position to generate a rotating magnetic field. Due to the presence of permanent magnets on the rotor, there is the main magnetic field of the rotor's magnetic poles in the air gap. The interaction of the two magnetic fields produces electromagnetic torque. At the same time, Through inertia, the commutation of the motor is completed, so that the motor can continuously rotate, so that the baseline distance D is continuously changed until it is adjusted to the best shooting position.
具体的,边缘提取包括:控制机械臂,将待测车门缝隙部分置于双目立体视觉系统的视觉空间内,由1号摄像机与2号摄像机分别进行拍摄图像,获得缝隙图像。参阅图10以及图11,为拍摄的原图像。对图像进行一系列预处理,包括逻辑运算、中值滤波以及灰度图像调整。Specifically, the edge extraction includes: controlling the mechanical arm, placing the gap part of the vehicle door to be tested in the visual space of the binocular stereo vision system, and capturing images by the No. 1 camera and the No. 2 camera to obtain the gap image. Refer to Figure 10 and Figure 11 for the original image taken. Perform a series of preprocessing on the image, including logic operations, median filtering, and grayscale image adjustment.
使用scharr算子来计算各处的梯度向量,然后梯度方向上进行非最大值抑制,但是需要注意的是梯度方向垂直于边缘方向。完成非极大值抑制后,会得到一个二值图像,非边缘的点灰度值均为0,可能为边缘的局部灰度极大值点可设置其灰度为128。检测结果还是包含了很多由噪声及其他原因造成的假边缘。因此还需要进一步的处理。接下来进行边缘追溯,而后直线性判别,最后线段配对。Use the scharr operator to calculate the gradient vector everywhere, and then perform non-maximum suppression in the gradient direction, but it should be noted that the gradient direction is perpendicular to the edge direction. After the non-maximum suppression is completed, a binary image will be obtained. The gray values of the non-edge points are all 0, and the local gray maximum points that may be edges can be set to 128. The detection result still contains a lot of false edges caused by noise and other reasons. Therefore, further processing is required. Next, perform edge tracing, then straightness judgment, and finally match the line segments.
具体的,立体匹配包括:在对车门缝隙线进行边缘提取得到边缘轮廓的点的坐标之后,首先对所得坐标点进行特征匹配,然后由极线几何约束方法将匹配搜索空间由二维空间降到一维空间进行匹配,可以大大降低匹配时的计算量,提高匹配的速度,节省匹配时间。Specifically, the three-dimensional matching includes: after edge extraction of the door gap line to obtain the coordinates of the edge contour points, first perform feature matching on the obtained coordinate points, and then reduce the matching search space from the two-dimensional space to the two-dimensional space by the epipolar geometric constraint method. Matching in one-dimensional space can greatly reduce the amount of calculation during matching, increase the speed of matching, and save matching time.
在经过外极线几何匹配之后,为了衡量待匹配像素与候选像素之间的相关性,需要进行匹配代价计算。两个像素无论是否为同名点,都可以通过匹配代价函数计算匹配代价,代价越小则说明相关性越大,是同名点的概率也越大。After the epipolar line geometric matching, in order to measure the correlation between the pixel to be matched and the candidate pixel, the matching cost needs to be calculated. Whether two pixels are points with the same name or not, the matching cost can be calculated through the matching cost function. The smaller the cost, the greater the correlation and the greater the probability of being a point with the same name.
代价聚合。匹配代价的计算往往只会考虑局部信息,这很容易受到影像噪声的影响。而代价聚合则是建立邻接像素之间的联系,来对代价矩阵进行优化,这种优化往往是全局的。Cost aggregation. The calculation of matching cost often only considers local information, which is easily affected by image noise. The cost aggregation is to establish the connection between adjacent pixels to optimize the cost matrix. This optimization is often global.
最后进行视差计算。使用WTA算法即赢家通吃算法来计算,即某个像素的所有视差下的代价值中,选择最小代价值所对应的视差作为最优视差。Finally, the disparity calculation is performed. The WTA algorithm is used to calculate the winner-take-all algorithm, that is, among the cost values of all the parallaxes of a certain pixel, the parallax corresponding to the smallest cost value is selected as the optimal parallax.
三维重建包括:参阅图12,由经过立体匹配后的车门缝隙边缘点,结 合摄像机标定结果可以反求出车门缝隙边缘点在世界坐标系中的坐标,然后在Matlab软件中对点进行三维曲线重建。Three-dimensional reconstruction includes: Refer to Figure 12, from the door gap edge points after stereo matching, combined with the camera calibration results, the coordinates of the door gap edge points in the world coordinate system can be inversely calculated, and then the points are reconstructed by the three-dimensional curve in the Matlab software. .
参阅如图13,由缝隙线上点的空间三维坐标,求出缝隙线的方向向量l(a,b,c),利用空间解析几何知识求得l与X轴、Y轴、Z轴的夹角分别为α、β、γ,为把l旋转与Z轴平行,可使l先绕X轴旋转α角,再绕Y轴旋转β角。Refer to Figure 13. From the three-dimensional coordinates of the points on the slit line, obtain the direction vector l(a, b, c) of the slit line, and use the knowledge of spatial analytical geometry to obtain the clamp between l and the X-axis, Y-axis, and Z-axis. The angles are α, β, and γ. To rotate l parallel to the Z axis, you can first rotate l around the X axis by an angle of α, and then rotate around the Y axis by an angle of β.
参阅图14,在缝隙线进行转之后,首先对两条缝隙线在X-Z平面内进行投影,根据在X-Z平面投影的结果计算缝隙的宽度数值;参阅图15,然后对车门两条缝隙线在Y-Z平面进行投影,根据在Y-Z平面的投影结果计算缝隙的面差数值。Refer to Figure 14, after the slit line is rotated, first project the two slit lines in the XZ plane, and calculate the width of the slit according to the results of the projection on the XZ plane; refer to Figure 15, and then set the two slit lines in the door to YZ The plane is projected, and the surface difference of the gap is calculated according to the projection result on the YZ plane.
综上,上述实施例对缝隙测量系统的不同构型进行了详细说明,当然,本发明包括但不局限于上述实施中所列举的构型,任何在上述实施例提供的构型基础上进行变换的内容,均属于本发明所保护的范围。本领域技术人员可以根据上述实施例的内容举一反三。In summary, the above-mentioned embodiments describe in detail the different configurations of the gap measurement system. Of course, the present invention includes but is not limited to the configurations listed in the above-mentioned embodiments, and any changes are made on the basis of the configurations provided by the above-mentioned embodiments. The content all belong to the protection scope of the present invention. Those skilled in the art can draw inferences based on the content of the above-mentioned embodiments.
上述描述仅是对本发明较佳实施例的描述,并非对本发明范围的任何限定,本发明领域的普通技术人员根据上述揭示内容做的任何变更、修饰,均属于权利要求书的保护范围。The above description is only a description of the preferred embodiments of the present invention and does not limit the scope of the present invention in any way. Any changes or modifications made by a person of ordinary skill in the field of the present invention based on the above disclosure shall fall within the protection scope of the claims.

Claims (9)

  1. 一种缝隙测量系统,其特征在于,所述缝隙测量系统包括机械臂、上位机、控制柜及视觉系统,其中:A gap measurement system, characterized in that the gap measurement system includes a mechanical arm, a host computer, a control cabinet and a vision system, wherein:
    所述上位机通过连接所述控制柜以控制所述机械臂;The host computer is connected to the control cabinet to control the mechanical arm;
    所述视觉系统包括双目相机及结构光投射器,所述双目相机及结构光投射器均固定于所述机械臂的末端;The vision system includes a binocular camera and a structured light projector, and both the binocular camera and the structured light projector are fixed to the end of the mechanical arm;
    所述机械臂运动至缝隙的上方,所述结构光投射器投射在缝隙上,形成缝隙的图像;The mechanical arm moves above the gap, and the structured light projector projects on the gap to form an image of the gap;
    所述双目相机用于采集所述缝隙的图像,并把所述缝隙的图像发送至所述上位机,所述上位机进行图像处理,所述上位机根据图像处理的结果获取缝隙的三维空间坐标,并生成缝隙的空间三维重建模型;The binocular camera is used to collect the image of the gap, and send the image of the gap to the upper computer, the upper computer performs image processing, and the upper computer obtains the three-dimensional space of the gap according to the result of the image processing Coordinates, and generate a three-dimensional reconstruction model of the gap;
    所述上位机旋转缝隙的空间三维重建模型与世界坐标系的Z轴平行,并把旋转之后的缝隙的空间三维重建模型分别向不同坐标平面投影的方法来求取缝隙的宽度和面差数值。The space three-dimensional reconstruction model of the rotating slot of the host computer is parallel to the Z axis of the world coordinate system, and the space three-dimensional reconstruction model of the rotating slot is respectively projected to different coordinate planes to obtain the slot width and face difference values.
  2. 如权利要求1所述的缝隙测量系统,其特征在于,所述缝隙测量系统还包括电机控制系统,所述电机控制系统用于调整双目相机与结构光投射器的基线距离。The gap measurement system of claim 1, wherein the gap measurement system further comprises a motor control system, and the motor control system is used to adjust the baseline distance between the binocular camera and the structured light projector.
  3. 如权利要求2所述的缝隙测量系统,其特征在于,所述电机控制系统包括直流无刷电机及直流无刷电机控制器,直流无刷电机控制器采用速度环和电流环的双闭环控制;The gap measurement system according to claim 2, wherein the motor control system comprises a DC brushless motor and a DC brushless motor controller, and the DC brushless motor controller adopts double closed-loop control of a speed loop and a current loop;
    在启动直流无刷电机时,电流环开启,电流增大使电机迅速达到指定速度,同时启动电流最大限制值;When starting the DC brushless motor, the current loop is turned on, and the current increases so that the motor quickly reaches the specified speed, and at the same time the maximum current limit is started;
    在直流无刷电机转速稳定之后,电流环作为内环进行限流保护,速度环作为外环以维持速度恒定;After the speed of the brushless DC motor stabilizes, the current loop acts as an inner loop for current limiting protection, and the speed loop acts as an outer loop to maintain a constant speed;
    直流无刷电机控制器包括硬件模块与软件模块,所述硬件模块由开发板、驱动板、编码器、AD采集电路和仿真器组成;开发板输出PWM波输出波形,经过驱动板将信号放大,最后输入电机中,控制电机的启停以及电机的速度、电流;编码器和AD采集电路将速度信号和电流信号反馈给软件模块,通过反馈修正PWM波输出波形的占空比,完成电机的闭环控 制;The brushless DC motor controller includes a hardware module and a software module. The hardware module is composed of a development board, a driver board, an encoder, an AD acquisition circuit and a simulator; the development board outputs a PWM wave output waveform, and the signal is amplified by the driver board, Finally, it is input into the motor to control the start and stop of the motor and the speed and current of the motor; the encoder and AD acquisition circuit feedback the speed signal and current signal to the software module, and correct the duty cycle of the PWM wave output waveform through feedback to complete the closed loop of the motor control;
    软件模块对开发板的芯片寄存器进行设置,控制开发板芯片定时、中断功能,并使其输出PWM波形;并根据编码器检测电机速度以及AD采样电路的反馈信号,调整PWM波占空比,进而调节速度的大小和电流大小。The software module sets the chip register of the development board, controls the timing and interrupt function of the development board chip, and makes it output PWM waveform; and according to the encoder to detect the motor speed and the feedback signal of the AD sampling circuit, adjust the PWM wave duty cycle, and then Adjust the size of the speed and the size of the current.
  4. 如权利要求3所述的缝隙测量系统,其特征在于,所述机械臂包括第一单个中空关节和第二单个中空关节,所述第一单个中空关节和所述第二单个中空关节用于放置直流无刷电机,所述第一单个中空关节和所述第二单个中空关节以交错的方式集成在一球形外壳之中;The gap measurement system of claim 3, wherein the robotic arm includes a first single hollow joint and a second single hollow joint, and the first single hollow joint and the second single hollow joint are used for placing For a DC brushless motor, the first single hollow joint and the second single hollow joint are integrated in a spherical shell in a staggered manner;
    所述球形外壳内还具有第一驱动器与第二驱动器,所述第一驱动器用于驱动结构光投射器和双目相机,所述第二驱动器用于驱动所述第一单个中空关节和所述第二单个中空关节;The spherical housing also has a first driver and a second driver. The first driver is used to drive the structured light projector and the binocular camera, and the second driver is used to drive the first single hollow joint and the The second single hollow joint;
    所述直流无刷电机为中空无框电机,所述中空无框电机的转子通过中控传动轴直接与谐波减速机相连,谐波减速机的端面作为直接输出端面;在所述中空无框电机的另一端通过中控的传动轴与齿轮相连,通过齿轮传动将传动轴偏置,在偏置的传动轴上安装电磁抱闸以及增量编码器。The DC brushless motor is a hollow frameless motor, the rotor of the hollow frameless motor is directly connected to the harmonic reducer through a centrally controlled transmission shaft, and the end face of the harmonic reducer is used as a direct output end face; The other end of the motor is connected to the gear through the centrally controlled drive shaft, and the drive shaft is biased through the gear drive, and an electromagnetic brake and an incremental encoder are installed on the biased drive shaft.
  5. 如权利要求1所述的缝隙测量系统,其特征在于,所述机械臂的末端与双目相机之间的关系矩阵为手眼关系矩阵;The gap measurement system according to claim 1, wherein the relationship matrix between the end of the robotic arm and the binocular camera is a hand-eye relationship matrix;
    在所述双目相机采集所述缝隙的图像前,对所述手眼关系矩阵,以及所述双目相机的摄像机内外参数进行标定;Before the binocular camera collects the image of the gap, calibrate the hand-eye relationship matrix and the camera internal and external parameters of the binocular camera;
    所述双目相机采集的缝隙的图像为结构光图像;The image of the gap collected by the binocular camera is a structured light image;
    所述双目相机将所述缝隙的图像发送至所述上位机的图像处理系统;The binocular camera sends the image of the slit to the image processing system of the upper computer;
    所述图像处理系统对双目相机采集的结构光图像进行处理,采用基于Canny算子的缝隙检测算法进行边缘提取,得到更多轮廓信息;The image processing system processes the structured light image collected by the binocular camera, and uses a gap detection algorithm based on the Canny operator to perform edge extraction to obtain more contour information;
    将边缘提取的结果进行立体匹配,得到缝隙匹配点坐标,形成空间三维重建模型,得到缝隙的宽度与面差数值。The result of edge extraction is stereo-matched, the coordinates of the slot matching point are obtained, and a spatial three-dimensional reconstruction model is formed, and the width of the slot and the value of the face difference are obtained.
  6. 如权利要求5所述的缝隙测量系统,其特征在于,对所述手眼关系矩阵进行标定包括:在工作平面设置一个世界坐标系,所述世界坐标系与机器人坐标系不重合,在完成双目相机的内外参标定后,计算获得物体在 世界坐标系中的位置;获得物体在在机器人坐标系中的坐标,根据所述世界坐标系与所述机器人坐标系中的转换计算手眼关系矩阵;The gap measurement system of claim 5, wherein calibrating the hand-eye relationship matrix comprises: setting a world coordinate system on the work plane, and the world coordinate system does not coincide with the robot coordinate system. After the internal and external parameters of the camera are calibrated, the position of the object in the world coordinate system is calculated; the coordinates of the object in the robot coordinate system are obtained, and the hand-eye relationship matrix is calculated according to the conversion between the world coordinate system and the robot coordinate system;
    所述边缘提取包括:采用图像预处理技术来降低噪声和增强边缘轮廓,并在Canny算子的基础上进行延伸,从而进行缝隙轮廓的边缘提取;The edge extraction includes: adopting image preprocessing technology to reduce noise and enhance edge contour, and extend on the basis of Canny operator, so as to perform edge extraction of gap contour;
    所述立体匹配包括:现根据边缘轮廓提取的结果得到边缘点的坐标,在边缘区域的限制下对边缘点进行双目立体匹配,即首先提取点坐标,然后匹配代价计算,接着代价聚合,最后视差计算;The stereo matching includes: now obtaining the coordinates of the edge points according to the result of edge contour extraction, and performing binocular stereo matching on the edge points under the restriction of the edge area, that is, first extracting the point coordinates, then matching cost calculation, then cost aggregation, and finally Disparity calculation;
    形成所述空间三维重建模型包括:通过双目相机得到左右投影图像,经过立体匹配得到左右投影图像的对应关系,利用双目相机标定的结果即左右投影图像中缝隙边缘轮廓点的坐标求出缝隙边缘在空间中的三维坐标,并根据缝隙轮廓的三维坐标进行缝隙线的三维重建,并利用把缝隙面旋转至与某坐标平面平行的方法求取缝隙宽度与面差数值。Forming the spatial three-dimensional reconstruction model includes: obtaining the left and right projection images through a binocular camera, obtaining the corresponding relationship between the left and right projection images through stereo matching, and obtaining the gap by using the calibration result of the binocular camera, that is, the coordinates of the edge contour points in the left and right projection images. The three-dimensional coordinates of the edge in space, and the three-dimensional reconstruction of the slit line according to the three-dimensional coordinates of the slit contour, and the method of rotating the slit surface to be parallel to a certain coordinate plane to obtain the slit width and the surface difference value.
  7. 如权利要求6所述的缝隙测量系统,其特征在于,双目相机中的单个相机的局部坐标系O g-X gY gZ g与相机坐标系O c-X cY cZ c坐标均重合且都为右手坐标系; The gap measurement system according to claim 6, wherein the local coordinate system O g -X g Y g Z g of a single camera in the binocular camera and the camera coordinate system O c -X c Y c Z c have both coordinates. Coincident and both are right-handed coordinate systems;
    结构光投射器射出的光原点为N,O c为双目相机光轴中心;结构光光平面的射出点N在O cX cZ c坐标平面上,且结构光平面正交于O cX cZ c坐标平面;交线为PN,P点为光轴O cZ c与结构光平面的交点,光平面出射点N点与摄像机光心O c点之间的距离,即结构光视觉测量系统的基线距离|NO c|=D,结构光平面与基线之间的夹角PNO c=α,光轴与激光射线之间的夹角O cPN=β; The origin of light emitted by the structured light projector is N, O c is the center of the optical axis of the binocular camera; the emission point N of the structured light plane is on the O c X c Z c coordinate plane, and the structured light plane is orthogonal to O c X c Z c coordinate plane; the intersection line is PN, point P is the intersection point of the optical axis O c Z c and the structured light plane, the distance between the exit point N of the light plane and the optical center O c of the camera, that is, the structured light vision measurement The baseline distance of the system |NO c | = D, the angle between the structured light plane and the baseline PNO c = α, the angle between the optical axis and the laser ray O c PN = β;
    在模型当中,各坐标值统一于局部坐标系O g-X gY gZ g之内,由局部坐标系内物坐标转换至图像坐标系中像点的投影模型为 In the model, the coordinate values are unified in the local coordinate system O g -X g Y g Z g , and the projection model for transforming the object coordinates in the local coordinate system to the image point in the image coordinate system is
    Figure PCTCN2020097230-appb-100001
    Figure PCTCN2020097230-appb-100001
    式中:s=1,0 T=(0 0 0) T,R是3X3的单位正交矩阵,t为1x3的平移矢量;由D,α以及β组成的具有明确物理意义的结构参数描述的结构光光平面方程为 In the formula: s = 1, 0 T = (0 0 0) T , R is a 3X3 unit orthogonal matrix, t is a 1x3 translation vector; it is described by structural parameters with clear physical meaning composed of D, α and β The light plane equation of structured light is
    Figure PCTCN2020097230-appb-100002
    Figure PCTCN2020097230-appb-100002
    由投影模型(1)和光平面方程(2),得到结构光视觉测量模式见式(3):From the projection model (1) and the light plane equation (2), the structured light vision measurement mode is obtained as shown in equation (3):
    Figure PCTCN2020097230-appb-100003
    Figure PCTCN2020097230-appb-100003
    由(3)可知,物点坐标值的精确求取与基线距离D紧密相关;通过电机对相机、光源进行驱动,从而改变基线距离D,实现精确测量。It can be seen from (3) that the accurate determination of the coordinate value of the object point is closely related to the baseline distance D; the camera and light source are driven by a motor to change the baseline distance D to achieve accurate measurement.
  8. 如权利要求6所述的缝隙测量系统,其特征在于,根据两幅或者两副以上的图像得到物体三维几何信息的方法,假设空间中一物体,通过1号摄像机、2号摄像机获得左图像平面I 1、右图像平面I 2,物体上一点P在空间中的坐标为[X Y Z] T,在左图像平面I 1、右图像平面I 2上的投影点分别为P l与P r,他们的齐次坐标分别为[u 1 v 1 1] T、[u 2 v 2 1] T,则P l、P r有如下的对应关系: The gap measurement system according to claim 6, wherein the method for obtaining three-dimensional geometric information of an object based on two or more images, assuming that there is an object in space, the left image plane is obtained by the No. 1 camera and the No. 2 camera I 1 , the right image plane I 2 , the coordinates of a point P on the object in space are [X Y Z] T , and the projection points on the left image plane I 1 and the right image plane I 2 are P l and P r , respectively. The homogeneous coordinates are [u 1 v 1 1] T and [u 2 v 2 1] T respectively , then P l and P r have the following corresponding relations:
    Figure PCTCN2020097230-appb-100004
    Figure PCTCN2020097230-appb-100004
    Figure PCTCN2020097230-appb-100005
    Figure PCTCN2020097230-appb-100005
    其中,in,
    Figure PCTCN2020097230-appb-100006
    Figure PCTCN2020097230-appb-100006
    Figure PCTCN2020097230-appb-100007
    Figure PCTCN2020097230-appb-100007
    M L、M R分别为1号摄像机、2号摄像机的投影矩阵,A l、A r分别为1 号摄像机、2号摄像机的内部参数,
    Figure PCTCN2020097230-appb-100008
    分别为1号摄像机与2号摄像机的外部参数矩阵,其中R l、R r分别是1号相机、2号相机的旋转矩阵,t l、t r分别是1号相机与2号相机的平移向量,摄像机的内部参数以及外部参数通过摄像机标定获得,当我们根据摄像机的内外参数求出投影矩阵M L、M R之后,可将上式消去Z c1或者Z c2,得到关于X,Y,Z的四个线性方程组:
    M L and M R are the projection matrices of the No. 1 camera and the No. 2 camera respectively, and A l and A r are the internal parameters of the No. 1 camera and the No. 2 camera respectively.
    Figure PCTCN2020097230-appb-100008
    Respectively external parameter matrix Camera 1 and Camera 2, wherein R l, R r are the number 1 camera 2 camera rotation matrix, t l, t r are the number 1 camera and the No. 2 camera translation vector , The internal parameters and external parameters of the camera are obtained through camera calibration. When we obtain the projection matrix M L and M R according to the internal and external parameters of the camera, we can eliminate Z c1 or Z c2 from the above equation to obtain the information about X, Y, and Z Four linear equations:
    Figure PCTCN2020097230-appb-100009
    Figure PCTCN2020097230-appb-100009
    Figure PCTCN2020097230-appb-100010
    Figure PCTCN2020097230-appb-100010
    Figure PCTCN2020097230-appb-100011
    Figure PCTCN2020097230-appb-100011
    Figure PCTCN2020097230-appb-100012
    Figure PCTCN2020097230-appb-100012
    其中:(u 1,v 1,1) T、(u 2,v 2,1) T分别是点p l、p r在左图像平面I 1与右图像平面I 2中的齐次坐标,(X,Y,Z,1) T为所求的世界坐标系下的齐次坐标,
    Figure PCTCN2020097230-appb-100013
    为投影矩阵M L的第i行第j列元素,同理,
    Figure PCTCN2020097230-appb-100014
    为投影矩阵M R的第i行第j列元素,解上述方程组,其最小二乘解即为所求的空间坐标,即实现了覆盖件缝隙的三维重建。
    Among them: (u 1 ,v 1 ,1) T , (u 2 ,v 2 ,1) T are the homogeneous coordinates of points p l and p r in the left image plane I 1 and the right image plane I 2, ( X, Y, Z, 1) T is the homogeneous coordinates in the world coordinate system to be sought,
    Figure PCTCN2020097230-appb-100013
    Is the element in the i-th row and j-th column of the projection matrix M L, similarly,
    Figure PCTCN2020097230-appb-100014
    Is the element in the i-th row and j-th column of the projection matrix M R , and the above equations are solved, and the least square solution is the space coordinate sought, that is, the three-dimensional reconstruction of the cover gap is realized.
  9. 一种缝隙测量方法,其特征在于,所述缝隙测量方法包括,其中:A method for measuring a gap, characterized in that the method for measuring a gap includes:
    上位机通过连接控制柜以控制机械臂;The upper computer controls the robotic arm by connecting to the control cabinet;
    视觉系统的双目相机及结构光投射器均固定于所述机械臂的末端;The binocular camera and structured light projector of the vision system are both fixed to the end of the robotic arm;
    所述机械臂运动至缝隙的上方,所述结构光投射器投射在缝隙上,形成缝隙的图像;The mechanical arm moves above the gap, and the structured light projector projects on the gap to form an image of the gap;
    所述双目相机用于采集所述缝隙的图像,并把所述缝隙的图像发送至所述上位机,所述上位机进行图像处理,所述上位机根据图像处理的结果获取缝隙的三维空间坐标,并生成缝隙的空间三维重建模型;The binocular camera is used to collect the image of the gap, and send the image of the gap to the upper computer, the upper computer performs image processing, and the upper computer obtains the three-dimensional space of the gap according to the result of the image processing Coordinates, and generate a three-dimensional reconstruction model of the gap;
    所述上位机旋转缝隙的空间三维重建模型与世界坐标系的Z轴平行,并把旋转之后的缝隙的空间三维重建模型分别向不同坐标平面投影的方法来求取缝隙的宽度和面差数值。The space three-dimensional reconstruction model of the rotating slot of the host computer is parallel to the Z axis of the world coordinate system, and the space three-dimensional reconstruction model of the rotating slot is respectively projected to different coordinate planes to obtain the slot width and face difference values.
PCT/CN2020/097230 2020-04-15 2020-06-19 Gap measuring system and measuring method WO2021208231A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010296423.8 2020-04-15
CN202010296423.8A CN111486788A (en) 2020-04-15 2020-04-15 Gap measuring system and measuring method

Publications (1)

Publication Number Publication Date
WO2021208231A1 true WO2021208231A1 (en) 2021-10-21

Family

ID=71812839

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/097230 WO2021208231A1 (en) 2020-04-15 2020-06-19 Gap measuring system and measuring method

Country Status (2)

Country Link
CN (1) CN111486788A (en)
WO (1) WO2021208231A1 (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114119768A (en) * 2021-11-15 2022-03-01 山东省科学院海洋仪器仪表研究所 Stichopus japonicus activity monitoring method based on multi-vision technology
CN114332231A (en) * 2022-03-04 2022-04-12 成都创像科技有限公司 Method, device and medium for positioning manipulator and camera in visual inspection equipment
CN114509048A (en) * 2022-01-20 2022-05-17 中科视捷(南京)科技有限公司 Monocular camera-based overhead transmission line space three-dimensional information acquisition method and system
CN114842089A (en) * 2022-03-29 2022-08-02 国营芜湖机械厂 Automatic modulation method for telex computer potentiometer
CN114972626A (en) * 2022-04-07 2022-08-30 福州大学 Welding seam three-dimensional reconstruction system and method based on coded structured light binocular vision
CN114963981A (en) * 2022-05-16 2022-08-30 南京航空航天大学 Monocular vision-based cylindrical part butt joint non-contact measurement method
CN115112024A (en) * 2022-05-31 2022-09-27 江苏濠汉信息技术有限公司 Algorithm for positioning texture in wire length measurement process
CN115127468A (en) * 2022-08-30 2022-09-30 中机生产力促进中心有限公司 Visual measurement device and measurement method for gap between elastic strip rails
CN115174892A (en) * 2022-07-01 2022-10-11 安徽爱意爱机电科技有限公司 Intelligent image precision detector
CN115468738A (en) * 2022-10-31 2022-12-13 易思维(杭州)科技有限公司 Measurement precision evaluation device and evaluation method of linear array camera measurement system
CN115628700A (en) * 2022-11-02 2023-01-20 江南大学 High-precision measuring rod calibration method
CN116228890A (en) * 2023-05-05 2023-06-06 深圳市拓普泰克技术股份有限公司 Intelligent control system based on oiling equipment
CN116228831A (en) * 2023-05-10 2023-06-06 深圳市深视智能科技有限公司 Method and system for measuring section difference at joint of earphone, correction method and controller
CN116382320A (en) * 2023-05-26 2023-07-04 深圳市景创科技电子股份有限公司 Underwater robot attitude control method and device
CN116593282A (en) * 2023-07-14 2023-08-15 四川名人居门窗有限公司 Glass impact resistance reaction test system and method based on structured light
CN117218681A (en) * 2023-11-09 2023-12-12 厦门瑞为信息技术有限公司 Height estimation method of monocular lens, child passing gate device and judging method
CN117646828A (en) * 2024-01-29 2024-03-05 中国市政工程西南设计研究总院有限公司 Device and method for detecting relative displacement and water leakage of pipe jacking interface

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113570654A (en) * 2021-06-16 2021-10-29 上海工程技术大学 Automobile surface gap size detection method based on minimum external rectangle and application thereof
CN113849000B (en) * 2021-09-15 2024-03-29 山东泰开智能配电有限公司 Control method of automatic detection system for plating thickness of silver plating piece of high-voltage isolating switch
CN115451872A (en) * 2022-10-24 2022-12-09 江阴市海达电机冲片有限公司 Motor core rotor structure analysis platform
CN116459000B (en) * 2023-03-29 2023-09-19 北京诺亦腾科技有限公司 Method, apparatus, device and medium for determining spatial path

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103075973A (en) * 2012-12-31 2013-05-01 吉林大学 Non-contact online inspection method for automobile body gap size
CN105783726A (en) * 2016-04-29 2016-07-20 无锡科技职业学院 Curve-welding-seam three-dimensional reconstruction method based on line structure light vision detection
CN107907048A (en) * 2017-06-30 2018-04-13 长沙湘计海盾科技有限公司 A kind of binocular stereo vision method for three-dimensional measurement based on line-structured light scanning
CN108088390A (en) * 2017-12-13 2018-05-29 浙江工业大学 Optical losses three-dimensional coordinate acquisition methods based on double eye line structure light in a kind of welding detection
US20190383603A1 (en) * 2015-04-24 2019-12-19 Faro Technologies, Inc. Two-camera triangulation scanner with detachable coupling mechanism
CN110681950A (en) * 2019-08-29 2020-01-14 北京航空航天大学 Robot weld joint tracking system based on structured light sensor and control method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102012103980A1 (en) * 2012-05-07 2013-11-07 GOM - Gesellschaft für Optische Meßtechnik mbH Method for aligning component e.g. tailgate in predetermined desired position of vehicle, involves determining positional deviation of component based on actual position of fixed features of component and desired position
CN106514697A (en) * 2016-12-09 2017-03-22 中国科学院合肥物质科学研究院 Two-freedom-degree orthogonal type robot joint module and six-freedom-degree mechanical arm
CN107718046A (en) * 2017-10-24 2018-02-23 中广核研究院有限公司 For the robot of Underwater Welding, robot system and operational method
CN108890689B (en) * 2018-07-27 2020-11-10 北京航天控制仪器研究所 Variable-rigidity joint of flexible robot
CN110784135B (en) * 2019-11-11 2021-08-24 日立楼宇技术(广州)有限公司 Motor control method and motor control system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103075973A (en) * 2012-12-31 2013-05-01 吉林大学 Non-contact online inspection method for automobile body gap size
US20190383603A1 (en) * 2015-04-24 2019-12-19 Faro Technologies, Inc. Two-camera triangulation scanner with detachable coupling mechanism
CN105783726A (en) * 2016-04-29 2016-07-20 无锡科技职业学院 Curve-welding-seam three-dimensional reconstruction method based on line structure light vision detection
CN107907048A (en) * 2017-06-30 2018-04-13 长沙湘计海盾科技有限公司 A kind of binocular stereo vision method for three-dimensional measurement based on line-structured light scanning
CN108088390A (en) * 2017-12-13 2018-05-29 浙江工业大学 Optical losses three-dimensional coordinate acquisition methods based on double eye line structure light in a kind of welding detection
CN110681950A (en) * 2019-08-29 2020-01-14 北京航空航天大学 Robot weld joint tracking system based on structured light sensor and control method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CHEN XIAOBO: "Key Technology Research for Non-Contact Inspection of Gaps on the Car Body", CHINESE MASTER'S THESES FULL-TEXT DATABASE, TIANJIN POLYTECHNIC UNIVERSITY, CN, no. 10, 15 October 2012 (2012-10-15), CN , XP055859285, ISSN: 1674-0246 *
DING XUN, ZHAO QIANCHENG, WANG XIAN, ZHAO YAFENG: "Posture Parameters Optimization of A Structured Light 3D Angle Measuring System", JOURNAL OF HEBEI UNIVERSITY OF SCIENCE AND TECHNOLOGY, vol. 36, no. 5, 31 October 2015 (2015-10-31), pages 467 - 473, XP055859276, ISSN: 1008-1542, DOI: 10.7535/hbkd.2015yx05004 *
WANG MENGLIAN: "The Control System of Burshless DC Motor of 2-DOF Powerball Based on DSP Desian and Control Method", CHINESE MASTER'S THESES FULL-TEXT DATABASE, TIANJIN POLYTECHNIC UNIVERSITY, CN, no. 12, 15 January 2019 (2019-01-15), CN , XP055859280, ISSN: 1674-0246 *

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114119768A (en) * 2021-11-15 2022-03-01 山东省科学院海洋仪器仪表研究所 Stichopus japonicus activity monitoring method based on multi-vision technology
CN114119768B (en) * 2021-11-15 2024-03-19 山东省科学院海洋仪器仪表研究所 Stichopus japonicus activity monitoring method based on multi-vision technology
CN114509048A (en) * 2022-01-20 2022-05-17 中科视捷(南京)科技有限公司 Monocular camera-based overhead transmission line space three-dimensional information acquisition method and system
CN114509048B (en) * 2022-01-20 2023-11-07 中科视捷(南京)科技有限公司 Overhead transmission line space three-dimensional information acquisition method and system based on monocular camera
CN114332231A (en) * 2022-03-04 2022-04-12 成都创像科技有限公司 Method, device and medium for positioning manipulator and camera in visual inspection equipment
CN114842089A (en) * 2022-03-29 2022-08-02 国营芜湖机械厂 Automatic modulation method for telex computer potentiometer
CN114842089B (en) * 2022-03-29 2024-03-15 国营芜湖机械厂 Automatic modulation method for fly-by-wire computer potentiometer
CN114972626A (en) * 2022-04-07 2022-08-30 福州大学 Welding seam three-dimensional reconstruction system and method based on coded structured light binocular vision
CN114963981A (en) * 2022-05-16 2022-08-30 南京航空航天大学 Monocular vision-based cylindrical part butt joint non-contact measurement method
CN114963981B (en) * 2022-05-16 2023-08-15 南京航空航天大学 Cylindrical part butt joint non-contact measurement method based on monocular vision
CN115112024A (en) * 2022-05-31 2022-09-27 江苏濠汉信息技术有限公司 Algorithm for positioning texture in wire length measurement process
CN115112024B (en) * 2022-05-31 2023-09-26 江苏濠汉信息技术有限公司 Algorithm for texture positioning in wire length measurement process
CN115174892A (en) * 2022-07-01 2022-10-11 安徽爱意爱机电科技有限公司 Intelligent image precision detector
CN115127468A (en) * 2022-08-30 2022-09-30 中机生产力促进中心有限公司 Visual measurement device and measurement method for gap between elastic strip rails
CN115127468B (en) * 2022-08-30 2022-11-04 中机生产力促进中心有限公司 Visual measurement device and measurement method for gap between elastic strip rails
CN115468738B (en) * 2022-10-31 2024-02-27 易思维(杭州)科技股份有限公司 Measurement precision evaluation device and evaluation method of linear array camera measurement system
CN115468738A (en) * 2022-10-31 2022-12-13 易思维(杭州)科技有限公司 Measurement precision evaluation device and evaluation method of linear array camera measurement system
CN115628700B (en) * 2022-11-02 2024-05-28 江南大学 High-precision measuring rod calibration method
CN115628700A (en) * 2022-11-02 2023-01-20 江南大学 High-precision measuring rod calibration method
CN116228890B (en) * 2023-05-05 2023-08-11 深圳市拓普泰克技术股份有限公司 Intelligent control system based on oiling equipment
CN116228890A (en) * 2023-05-05 2023-06-06 深圳市拓普泰克技术股份有限公司 Intelligent control system based on oiling equipment
CN116228831A (en) * 2023-05-10 2023-06-06 深圳市深视智能科技有限公司 Method and system for measuring section difference at joint of earphone, correction method and controller
CN116228831B (en) * 2023-05-10 2023-08-22 深圳市深视智能科技有限公司 Method and system for measuring section difference at joint of earphone, correction method and controller
CN116382320B (en) * 2023-05-26 2023-09-01 深圳市景创科技电子股份有限公司 Underwater robot attitude control method and device
CN116382320A (en) * 2023-05-26 2023-07-04 深圳市景创科技电子股份有限公司 Underwater robot attitude control method and device
CN116593282B (en) * 2023-07-14 2023-11-28 四川名人居门窗有限公司 Glass impact resistance reaction test system and method based on structured light
CN116593282A (en) * 2023-07-14 2023-08-15 四川名人居门窗有限公司 Glass impact resistance reaction test system and method based on structured light
CN117218681B (en) * 2023-11-09 2024-02-06 厦门瑞为信息技术有限公司 Height estimation method of monocular lens, child passing gate device and judging method
CN117218681A (en) * 2023-11-09 2023-12-12 厦门瑞为信息技术有限公司 Height estimation method of monocular lens, child passing gate device and judging method
CN117646828A (en) * 2024-01-29 2024-03-05 中国市政工程西南设计研究总院有限公司 Device and method for detecting relative displacement and water leakage of pipe jacking interface
CN117646828B (en) * 2024-01-29 2024-04-05 中国市政工程西南设计研究总院有限公司 Device and method for detecting relative displacement and water leakage of pipe jacking interface

Also Published As

Publication number Publication date
CN111486788A (en) 2020-08-04

Similar Documents

Publication Publication Date Title
WO2021208231A1 (en) Gap measuring system and measuring method
Singh et al. Bigbird: A large-scale 3d database of object instances
US9124873B2 (en) System and method for finding correspondence between cameras in a three-dimensional vision system
Scaramuzza et al. Extrinsic self calibration of a camera and a 3d laser range finder from natural scenes
US8600192B2 (en) System and method for finding correspondence between cameras in a three-dimensional vision system
US11488322B2 (en) System and method for training a model in a plurality of non-perspective cameras and determining 3D pose of an object at runtime with the same
CN105547153B (en) Plug-in element stitch vision positioning method and device based on binocular vision
TW201820061A (en) Anti-collision system and anti-collision method
JP5019478B2 (en) Marker automatic registration method and system
JP7453762B2 (en) Image processing equipment, imaging equipment, robots and robot systems
Hillemann et al. UCalMiCeL–Unified intrinsic and extrinsic calibration of a multi-camera-system and a laserscanner
Song et al. Calibration of event-based camera and 3d lidar
CN205482791U (en) Plug -in components component stitch vision positioning device based on binocular vision
CN113487676A (en) Method and apparatus for determining relative pose angle between cameras mounted to an acquisition entity
CN114926531A (en) Binocular vision based method and system for autonomously positioning welding line of workpiece under large visual field
Mosnier et al. A New Method for Projector Calibration Based on Visual Servoing.
Li et al. Estimating relative pose between nonoverlapping cameras by four laser pointers based on general camera model
Bilal et al. Fusion of Multiview Images for EV Battery Disassembly
WO2012076979A1 (en) Model-based pose estimation using a non-perspective camera
Zhou et al. A Calibration Method of Navigation System Integrated with Kinect and Laser Scanner
CN116499456B (en) Automatic positioning device and method for mobile robot and positioning system for unmanned mower
Netramai et al. Motion estimation of a mobile robot using different types of 3D sensors
CN114643599B (en) Three-dimensional machine vision system and method based on point laser and area array camera
CN214039921U (en) Stereoscopic vision three-dimensional detection device based on differential projection
CN111300426B (en) Control system of sensing head of highly intelligent humanoid robot

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20931405

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20931405

Country of ref document: EP

Kind code of ref document: A1