A relatively wide-area machine vision image accurate measurement system and measurement method thereof
Through the parallel measurement form of a compound monocular camera and an arm robot combined with a binocular structured light device and a single-point ranging laser group, the problem of accurate measurement of the visual system in a wide area is solved, achieving high precision and flexibility. Suitable for automotive production lines in complex environments.
Patent Information
- Application Number
- CN202210271593.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-18
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-03-18
AI Technical Summary
Existing vision systems are difficult to achieve accurate measurement in a wide area in complex and harsh environments, and limited hardware conditions prevent the measurement range and accuracy from meeting high requirements at the same time. Especially in automobile production lines, measurement errors are large and cannot meet production needs.
A compound monocular camera is used for rough positioning, and an arm-type robot drives a binocular structured light device and a single-point ranging laser group for precise measurement. The processor corrects the coordinate values, eliminates system errors, and achieves high-precision measurement.
It achieves high-precision measurement in a wider range, improves the flexibility, flexibility and adaptability of the system, and can provide accurate measurement data in online production.
Smart Images

Figure CN114562941B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image-based measurement and positioning, and in particular to a relatively wide-area machine vision image precision measurement system and a measurement method thereof. Background Art
[0002] Machine vision is gradually being used more and more widely in industry, from electronics factories with very strict environmental requirements to general industries and even the automotive welding industry. However, there are very few existing technologies that use visual systems for accurate measurement in a relatively wide range. And there is no technology that uses visual accurate measurement technology in welding workshops with very complex and harsh environments.
[0003] To solve the problem that existing visual technology has poor versatility and is greatly limited by hardware conditions, once the hardware is determined, its field of view and measurement range will be locked and cannot be changed; that is, once the hardware of the visual system is confirmed, its detection range is determined. For example, when the measurement accuracy in the XY axis direction needs to reach ±0.02mm, the detection field of view can only reach a 50×50mm range of a 5 million pixel binocular camera. For example, when the measurement accuracy is within ±0.02mm within the range of 5000×2000mm, there is currently no suitable visual equipment that can achieve this accuracy within such a wide range. In addition, the data that needs to be processed by a camera that can take 5000mm×200mm photos with an accuracy of ±0.02mm is huge. Therefore, to achieve accurate measurement in a relatively wide area, it is necessary not only to find the object to be measured in the relevant wide area, but also to accurately measure the absolute coordinate value of the object to be measured in space and the size of the object itself; at the same time, it is undoubtedly a difficult problem to feedback this measured value and compare it with the theoretical design value to calculate whether the coordinate value and size of the current object to be measured meet the production requirements. Summary of the invention
[0004] In response to the above problems, the present invention provides a relatively wide-area machine vision image precise measurement system and measurement method, aiming to solve the problems of existing precise measurement systems and measurement methods, such as large measurement errors, especially in automobile production lines, and the accuracy and measurement speed requirements cannot meet the requirements of the production line.
[0005] The present invention adopts the following technical solutions to achieve the above purpose:
[0006] A relatively wide-area machine vision image accurate measurement system, comprising:
[0007] A compound monocular camera, including two relatively fixed monocular cameras, is used for coarse positioning of the object to be measured;
[0008] The arm-type robot is used to drive its end component to move to the designated area according to the coarse positioning information of the compound monocular camera;
[0009] The binocular structured light device installed at the end of the arm robot is used to calibrate the coordinate values of the object to be measured;
[0010] A single-point ranging laser group installed at the end of the arm-type robot includes more than three single-point ranging lasers, which are used to measure the distance to the calibration feature of the object to be measured;
[0011] A controller, used for sending a driving signal of the arm-type robot according to the coarse positioning information of the compound monocular camera;
[0012] A processor, used for correcting the coordinate value of the object to be measured according to the detection value of the single-point ranging laser group;
[0013] Among them, the compound monocular camera and the fixed seat of the arm-type robot maintain a relatively fixed layout, and the binocular structured light device and the single-point ranging laser group maintain a relatively fixed layout; the controller and the processor are both electrically signal connected with the compound monocular camera, the arm-type robot, the binocular structured light device, and the single-point ranging laser group.
[0014] In the technical scheme, the first monocular camera of the compound monocular camera divides the photographed object to be measured into a grid surface composed of multiple boxes in the XY plane, and marks them in sequence, and reads the object to be measured in the grid of the xth row and yth column from the picture; the second monocular camera divides the photographed object to be measured into a grid surface composed of multiple boxes in the YZ plane, and marks them in sequence, and reads the object to be measured in the grid of the yth row and zth column from the picture. Therefore, the compound monocular camera is used to roughly locate the object to be measured, that is, to calibrate the grid coordinates corresponding to the object to be measured; the arm-type robot drives the binocular structured light device to the photo taking position matched with the grid coordinates according to the grid coordinates, and adopts the measurement method of the binocular camera and the structured light to accurately measure the object to be measured, and obtain the coordinate value of the object to be measured; because the coordinate value is based on the rough positioning information of the compound monocular camera Calibration and measurement are performed on the object to be measured, so the movement and positioning errors of the arm-type robot in the system, the measurement errors of the composite monocular camera, and the measurement errors caused by vibration and noise of the overall system all have an impact on the coordinate value of the object to be measured, so it is also necessary to perform data correction on the coordinate value; this technical solution adopts more than three single-point ranging lasers to measure the distance of the calibration feature of the object to be measured, and compares the ranging value of each single-point ranging laser through a processor. Its working principle is: if there is a large deviation in the coordinate value, then each single-point ranging laser will also have a different deviation in the distance value of the calibration feature. The different deviation values of each ranging point are compared with the position on the calibration feature for fitting, and the position of the actual ranging point is obtained, thereby correcting the coordinate value of the object to be measured, thereby eliminating the measurement error caused by the accuracy of the arm-type robot.
[0015] A further technical solution is that the calibration feature is a conical or square cone structure, and the theoretical distances from the single-point ranging lasers of the single-point ranging laser group to the calibration feature are equal. In this technical solution, three or more single-point ranging lasers respectively measure the conical side surface or square cone side surface of the calibration feature. If there is a gradient difference between the measured values, it indicates that there is an error in the binocular structured light device or the arm-type robot, and correction is required.
[0016] A further technical solution is that the composite monocular camera is a binocular camera or one of two monocular cameras fixedly connected by a fixed bracket. In this technical solution, the two monocular cameras or binocular cameras are used to roughly measure the spatial coordinates of the measured object.
[0017] A method for accurately measuring a relatively wide-area machine vision image comprises the following steps:
[0018] A. Use a composite monocular camera to project the object to be measured onto the XY and YZ plane coordinate systems respectively, and divide the entire area into N1×N2 and N2×N3 boxes to divide the area where the object to be measured is located;
[0019] B. The controller sends a driving signal to guide the arm-type robot according to the area information detected by the compound monocular camera, driving the binocular structured light device and the single-point ranging laser group at the end of the robot to the corresponding position of the divided area of the object to be measured;
[0020] C. Use binocular structured light device to accurately measure the object to be measured and obtain the coordinate value of the object to be measured;
[0021] D. Use a single-point ranging laser group to measure the distance of the calibration feature of the object to be measured, and obtain the distance from each single-point ranging laser to the calibration feature of the object to be measured;
[0022] E. The processor compares the distance values from each single-point ranging laser to the calibration feature of the object to be measured. If the deviation of the distance values is within the threshold range, the coordinate value of the object to be measured is corrected according to the detection value of the single-point ranging laser group; if the deviation of the distance values exceeds the threshold range, return to step B.
[0023] Its further technical solution is that step E also includes:
[0024] E1. If the deviation of the distance value exceeds the threshold range three times in a row, an error is reported.
[0025] The beneficial effects of the present invention are:
[0026] The present invention discloses a relatively wide-area machine vision image precise measurement system and a measurement method thereof, which adopts a "parallel" measurement form of a high-precision arm-type robot with a binocular structured light device + a single-point ranging laser group and a compound monocular camera, performs rough measurement and positioning of a marked area through the compound monocular camera, uses the value of the rough measurement and positioning to guide the arm-type robot to an optimal measurement position, then uses the binocular structured light device to perform high-precision measurement, and finally uses the single-point ranging laser group to correct the detection result, which can eliminate errors in the system, especially errors caused by the arm-type robot, the binocular structured light device, etc., can achieve high-precision measurement data in online production, can be adapted to a wider measurement range, and has high flexibility, agility and adaptability. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 : A schematic diagram of the structure of a relatively wide-area machine vision image precise measurement system according to the present invention.
[0028] Figure 2 : A schematic diagram of the single-point ranging laser group measuring and correcting characteristic parts of the present invention.
[0029] Figure 3 The figure is a flow chart of a method for accurate measurement of relatively wide-area machine vision images described in the present invention.
[0030] In the figure:
[0031] 1. Object to be measured; 2. Calibration feature; 3. Compound monocular camera; 4. Single-point ranging laser group; 5. Binocular structured light device; 6. Arm-type robot. DETAILED DESCRIPTION
[0032] The following is combined with Figures 1 to 3 The present invention is described in detail. In the absence of conflict, the following embodiments and features of the embodiments may be combined with each other.
[0033] like Figures 1 to 3 As shown, this embodiment provides a relatively wide-area machine vision image accurate measurement system, including:
[0034] The composite monocular camera 3 includes two relatively fixed monocular cameras and is used for roughly positioning the object 1 to be measured;
[0035] The arm robot 6 is used to drive its end component to move to a designated area according to the rough positioning information of the compound monocular camera 3;
[0036] A binocular structured light device 5 installed at the end of the arm-type robot 6 is used to calibrate the coordinate value of the object to be measured 1;
[0037] A single-point distance measuring laser group 4 installed at the end of the arm-type robot 6 includes more than three single-point distance measuring lasers, which are used to measure the distance to the calibration feature 2 of the object to be measured 1;
[0038] A controller, used for sending a driving signal of the arm-type robot 6 according to the coarse positioning information of the compound monocular camera 3;
[0039] A processor, used for correcting the coordinate value of the object to be measured 1 according to the detection value of the single-point ranging laser group 4;
[0040] Among them, the compound monocular camera 3 and the fixed seat of the arm-type robot 6 maintain a relatively fixed layout, and the binocular structured light device 5 and the single-point ranging laser group 4 maintain a relatively fixed layout; the controller and the processor are both electrically connected to the compound monocular camera 3, the arm-type robot 6, the binocular structured light device 5, and the single-point ranging laser group 4.
[0041] Specifically, the two monocular cameras of the compound monocular camera 3 are relatively fixedly connected through a connecting rod. In other embodiments or practical applications, the compound monocular camera 3 can also be a binocular camera. The connecting rod of the compound monocular camera 3 and the fixing seat of the arm-type robot 6 are fixedly installed on the workstation. The single-point ranging laser group 4 includes three fixedly installed at the end of the arm-type robot 6. The binocular structured light device 5 and the single-point ranging laser group 4 are relatively fixedly installed at the end of the arm-type robot 6 at a certain distance. The object to be measured 1 in this embodiment takes the locating pin of the body or its parts on the AGV car as an example, and the calibration feature 2 is a conical structure support surface set at the bottom of the locating pin. Since the object to be measured 1 and the calibration feature in this embodiment are fixedly installed at the end of the arm-type robot 6 2 is a coaxial structure, so the three single-line ranging lasers are arranged around the axis of the end of the arm-type robot 6, and the theoretical distance from each single-point ranging laser to the ranging point corresponding to the calibration feature 2 is on the same gradient. In other embodiments, the position of the single-point ranging laser group 4 at the end of the arm-type robot 6 can be arranged according to the relative position of the calibration feature 2 and the object to be measured 1, which is not limited here. In addition, the object to be measured 1 can also be other parts or tooling on an automobile production line that need to be detected and positioned; the structure and detection principle of the binocular structured light device 5 can be but are not limited to the structured light binocular vision system described in Chinese patents CN208795188U and CN111906767A, which will not be repeated here.
[0042] In the above embodiment, after the AGV enters the workstation, due to its motion inertia, control system errors, etc., the spatial position of the positioning pin on the AGV will have deviations, so the above measurement system is used for precise positioning, and the measurement method includes the following steps:
[0043] A. Use a composite monocular camera 3 to project the object 1 to be measured onto the XY and YZ plane coordinate systems respectively, divide the entire area into boxes of N1×N2 and N2×N3, and divide the area where the object to be measured is located;
[0044] Specifically, the field of view covered by one group of compound monocular cameras 3 is within the range of 1600×800×500mm, and four groups of compound monocular cameras can cover the entire projected area of 5000mm×2000mm to be measured, and the coordinates of the object to be measured 1 (locating pin) in the stereoscopic field of view are projected onto the XY and YZ plane coordinates respectively; according to the measurement field of view accuracy requirement of the binocular structured light device 5 (such as 50×50mm), XY and YZ are divided into 32×16 and 16×10 small field of view measurement areas respectively; and the field of view of the object to be measured is calibrated in sequence in which row and column;
[0045] B. The controller sends a driving signal to guide the arm-type robot 6 according to the area information detected by the compound monocular camera 3, driving the binocular structured light device 5 and the single-point ranging laser group 4 at the end thereof to the corresponding position of the divided area of the object to be measured 1;
[0046] Specifically, the processor uses the coordinate values of the area measured and positioned by the compound monocular camera 3 to perform probability optimization, and guides the arm-type robot 6 to the optimal position to perform high-precision measurement of the binocular structured light device 5; the compound monocular camera 3 divides the measurement area suitable for the binocular structured light device 5, and performs multiple groups of measurement data before teaching, and calculates the optimal position suitable for the binocular structured light device 5 through probability comparison. The probability optimization algorithm uses probability theory operations to clearly express uncertainty, that is, a probability algorithm is used to represent the probability distribution information of the entire inference space, wherein the specific process of the probability estimation algorithm is to analyze multiple groups of data with Gaussian distribution characteristics measured before teaching, and take a reasonable confidence interval, and the points within the confidence interval are preferentially set as the point range that can be directly used for measurement;
[0047] C. Using the binocular structured light device 5 to accurately measure the object 1 to be measured, and obtain the coordinate value of the object 1 to be measured;
[0048] D. using the single-point ranging laser group 4 to measure the distance of the calibration feature 2 of the object 1 to be measured, and obtaining the distance from each single-point ranging laser to the calibration feature 2 of the object 1 to be measured;
[0049] E. The processor compares the distance values from each single-point ranging laser to the calibration feature 2 of the object to be measured. If the deviation of the distance values is within the threshold range, the coordinate value of the object to be measured 1 is corrected according to the detection value of the single-point ranging laser group 4; if the deviation of the distance values exceeds the threshold range, the process returns to step B;
[0050] Specifically, in theory, the distance value of each single-point ranging laser to the measuring point corresponding to the calibration feature 2 (conical slope) is on the same gradient. If there is no deviation, the coordinate value is determined to be the final coordinate value of the object 1 to be measured. If there is a deviation between the actual measured values, the position on the calibration feature 2 is fitted according to the deviation value to obtain the position of the actual ranging point, thereby correcting the coordinate value of the object 1 to be measured. The corrected coordinate value is used as the final coordinate value, so that the measurement error caused by the accuracy of the arm-type robot 6 can be eliminated, that is, the coordinate value of the object 1 to be measured is fine-tuned by the ranging value of the single-point ranging laser group 4; if the deviation value is too large, it means that the optimal position of the arm-type robot 6 is guided or an error occurs during the movement of the arm-type robot 6, that is, step B is re-executed. In the calibration process, a control optimization algorithm is used, specifically an extended Kalman filter algorithm and an HD kinematic control algorithm are used to optimize the robot end to achieve the purpose of automatically and accurately controlling the position of the robot end through a program.
[0051] The above-mentioned embodiments exemplarily show the single-point ranging laser group 4 of three single-point ranging lasers, the specific structure and position of the correction feature 2, and the specific connection method of the compound monocular camera 3. According to other embodiments or practical applications, in order to further improve the correction performance of the single-point ranging laser group 4, more than three single-point ranging lasers can be used to measure and calibrate different ranging points; the correction feature 2 can also adopt a square cone structure coaxially arranged with the positioning pin or a relatively fixed arrangement at a certain distance, or a correction feature 2 with a stepped structure, and the ranging gradient corresponding to each single-point ranging laser is the same as the gradient of the stepped structure corresponding to the ranging point; the two monocular cameras in the compound monocular camera 3 can also be fixedly installed on the workstation respectively or fixedly installed at a certain distance and shooting angle using other intermediate parts.
[0052] In order to improve the working efficiency of the measurement system in the above embodiment, step E in the measurement method further includes:
[0053] E1. If the deviation of the distance value exceeds the threshold range three times in a row, an error is reported and manual intervention is used to check and maintain the measurement system.
[0054] The present invention provides a relatively wide-area machine vision image precision measurement system and a measurement method thereof, which adopts a "parallel" measurement form of a high-precision arm-type robot 6 with a binocular structured light device 5 + a single-point ranging laser group 4 and a compound monocular camera 3, and uses the compound monocular camera 3 to perform rough measurement and positioning of the area, and uses the value of the rough measurement and positioning to perform probability optimization to guide the arm-type robot 6 to the optimal measurement position, and then uses the binocular structured light device 5 to perform high-precision measurement, and finally uses the single-point ranging laser group 4 to correct the detection result, which can eliminate errors in the system, especially the arm-type robot 6, the binocular structured light device 5, etc., can achieve high-precision measurement data in online production, can be adapted to a wider measurement range, and has high flexibility, agility, speed and adaptability.
Claims
1. A relatively wide-area machine vision image precision measurement system, characterized in that: include: A compound monocular camera, including two relatively fixed monocular cameras, is used to roughly locate the object to be measured, one monocular camera is used to mark the grid of the object to be measured in the XY plane, and the other monocular camera is used to mark the grid of the object to be measured in the YZ plane; The arm-type robot is used to drive its end component to move to the designated area according to the coarse positioning information of the compound monocular camera; The binocular structured light device installed at the end of the arm robot is used to calibrate the coordinate values of the object to be measured; A single-point ranging laser group installed at the end of the arm-type robot includes more than three single-point ranging lasers, which are used to measure the distance to the calibration feature of the object to be measured; A controller, used for sending a driving signal of the arm-type robot according to the coarse positioning information of the compound monocular camera; A processor, used for correcting the coordinate value of the object to be measured according to the detection value of the single-point ranging laser group; The compound monocular camera and the fixed seat of the arm-type robot are kept in a relatively fixed arrangement, and the binocular structured light device and the single-point ranging laser group are kept in a relatively fixed arrangement; the controller and the processor are both connected with the compound monocular camera, the arm-type robot, the binocular structured light device, and the single-point ranging laser group by electrical signals; the calibration feature is one of a conical or square cone structure, the theoretical distance from the single-point ranging laser of the single-point ranging laser group to the calibration feature is equal, and the processor performs fitting according to the deviation of the detection value of the single-point ranging laser group against the position of the ranging point on the calibration feature.
2. A relatively wide-area machine vision image accurate measurement system according to claim 1, characterized in that: The compound monocular camera is a binocular camera or one of two monocular cameras fixedly connected by a fixed bracket.
3. A method for accurate measurement of relatively wide-area machine vision images, characterized in that: The measuring system of claim 1 further comprising the following steps: A. Use a composite monocular camera to project the object to be measured onto the XY and YZ plane coordinate systems respectively, divide the entire area into a three-dimensional space consisting of N1×N2 and N2×N3 boxes, and divide the area where the object to be measured is located; B. The controller sends a driving signal to guide the arm-type robot according to the area information detected by the compound monocular camera, driving the binocular structured light device and the single-point ranging laser group at the end of the robot to the corresponding position of the divided area of the object to be measured; C. Use binocular structured light device to accurately measure the object to be measured and obtain the coordinate value of the object to be measured; D. Use a single-point ranging laser group to measure the distance of the calibration feature of the object to be measured, and obtain the distance from each single-point ranging laser to the calibration feature of the object to be measured; E. The processor compares the distance values from each single-point ranging laser to the calibration feature of the object to be measured. If the deviation of the distance values is within the threshold range, the coordinate value of the object to be measured is corrected according to the detection value of the single-point ranging laser group; if the deviation of the distance values exceeds the threshold range, return to step B.
4. The method for accurate measurement of a relatively wide-area machine vision image according to claim 3, characterized in that: The step E also includes: E1. If the deviation of the distance value exceeds the threshold range three times in a row, an error is reported.
Citation Information
Patent Citations
Visual deviation rectifying mechanical arm based on binocular structured light and deviation rectifying method
CN111906767A
Structured light binocular vision detecting system
CN208795188U
Non-cooperative target abutting measurement method based on additional sighting distance
CN102914262A
