A target object detection method and guided grasping method

Through robot hand-eye calibration and lidar technology, it is possible to accurately detect and capture small targets in complex scenes, solve the problem of potential safety hazards for electric workers during live work, and improve the accuracy and safety of automated extraction.

CN113808201BActive Publication Date: 2024-09-06YIJIAHE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110900383.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-06
Publication Date
2024-09-06
Estimated Expiration
2041-08-06

AI Technical Summary

Technical Problem

The lack of a vision-guided grasping solution for small targets in complex scenarios causes electric workers to face the threat of high-voltage electricity during live operations, posing safety risks, and it is difficult to achieve accurate automated extraction with existing technology.

Method used

By hand-eye calibration of the robot, combined with image segmentation and ToF lidar technology, the target object can be accurately detected and grasped. A template matching algorithm is used to calculate the outline, pose and center of the target object, and the robotic arm is used for precise grasping.

Benefits of technology

With low hardware costs, it achieves precise automated extraction of small targets, protects the safety of electric workers, improves work accuracy and safety, and can be applied to other industrial automation fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113808201B
    Figure CN113808201B
Patent Text Reader

Abstract

The present invention discloses a target object detection method and a guided grasping method, the target object detection method comprises: step (1): jointly calibrating a camera and a laser sensor, and calibrating a robot by hand and eye; step (2): the robot respectively collects an image and a laser point cloud of the target object, and obtains the target object by segmenting the image through an image segmentation model, and obtains the corresponding point cloud model of the target object in space by screening from the laser point cloud in combination with step (1); step (3): using a template matching algorithm to calculate the contour, posture and center of the point cloud model obtained in step (2), that is, detecting and obtaining the target object. The present invention uses a deep camera system to perform high-precision modeling on the target object, realizes accurate recognition of irregular targets and guided grasping, so that the live working robot can accurately identify and grasp the target object in the operation process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial automation, and in particular to a target object detection method in complex scenes, as well as a system calibration, posture estimation and robot arm grasping method. Background Art

[0002] In the field of live working, electric workers need to replace objects such as lightning arresters, porcelain bottles, nuts, power lines, etc. Workers will face the threat of 10kV high voltage electricity, which is prone to accidents. At present, there is no visual guidance grasping solution for small targets in complex scenes on the market. The present invention is aimed at such scenes. By calibrating the robot by hand and eye, it gives full play to the advantages of images in object detection, recognition and segmentation and the precise ranging ability of ToF laser radar in three-dimensional space, so that the live working robot can accurately identify and grasp the target object in the operation process. With low hardware cost, it can achieve more accurate automatic extraction of the lower target, replace manual labor with robots, protect the safety of electric workers in dangerous environments, and improve working conditions. In addition, this method can also be applied to other industries, such as sorting, assembly, feeding, welding and other industrial automation fields, especially the field of small target recognition in dangerous and complex scenes, to improve the accuracy and safety of existing work.

[0003] Currently, there is no vision-guided grasping solution for small objects in complex scenes on the market. Summary of the invention

[0004] Purpose of the invention: Aiming at the above-mentioned scenario, the present invention proposes a target object detection method and a guided grasping method, which uses robots to replace manual labor, can protect the safety of power workers in dangerous environments and improve working conditions.

[0005] Technical solution: A target object detection method, comprising:

[0006] Step (1): Jointly calibrate the camera and laser sensor, and calibrate the hand and eye of the robot;

[0007] Step (2): The robot collects the image and laser point cloud of the target object respectively, segments the image using the image segmentation model to obtain the target object, and combines step (1) to filter from the laser point cloud to obtain the corresponding point cloud model of the target object in space;

[0008] Step (3): Use the template matching algorithm to calculate the contour, posture and center of the point cloud model obtained in step (2), that is, detect the target object.

[0009] In step (1), the hand-eye calibration of the robot is specifically performed as follows:

[0010] 1) Obtain the rotation and translation relationship between the camera and the end of the robotic arm based on the camera installation parameters;

[0011] 2) Fix the end of the robot arm and obtain its position and posture, and collect the laser point cloud of the calibration tooling through the laser radar;

[0012] 3) Extract the calibration points of the calibration fixture for calibration. By solving a PnP problem, obtain the rotation and translation relationship between the laser radar coordinate system and the calibration fixture, and record the end position of the robot arm at this time;

[0013] 4) Repeat steps 2) to 3) to obtain the rotational and translational relationships between multiple sets of LiDAR coordinate systems and the calibration fixtures, as well as the corresponding robot end poses. Use the classic two-step method in the Tsai-Lenz paper to solve the conversion relationship between the robot end pose and the LiDAR pose.

[0014] The calibration tool is a calibration plate movably mounted at the end of the robotic arm.

[0015] A plurality of circular holes are provided on the calibration plate as calibration points.

[0016] A grid or a chessboard is arranged on the calibration plate, and the corresponding calibration points are grid spots or chessboard corners.

[0017] In the step (2), the corresponding point cloud model of the target object in space is obtained by screening from the laser point cloud:

[0018] 1) According to step (1), the point in the laser point cloud is transformed into the image coordinate system, and it is determined whether it is a point on the target object; wherein, it is determined whether the point is located in the image mask obtained by image segmentation. If it is in the mask area, it means that the point is a point on the target object;

[0019] 2) All points in the laser point cloud located on the target object are stored in a new point set to obtain a point cloud model of the target object.

[0020] In step (3), the template matching algorithm is used to calculate the contour, posture and center of the point cloud model obtained in step (2):

[0021] 1) Establish a standard point cloud template library: Scan each actual object to obtain the corresponding laser point cloud and stitch it to obtain the point cloud template and its corresponding size and contour features, and store the corresponding point cloud template and its corresponding features to form a standard point cloud template library;

[0022] 2) Project the intensity values ​​of the collected laser point cloud of the target object onto three orthogonal views in 3D space to obtain three target grayscale images; at the same time, obtain the point cloud module of the corresponding object from the standard point cloud template library, and project its intensity values ​​onto three orthogonal views in 3D space to obtain three standard grayscale images;

[0023] 3) Generate BRIEF key point descriptor feature point pairs in the three target grayscale images and three standard grayscale images respectively, and transform them to the laser point cloud of the target object to obtain point pair mappings between three sets of target point clouds and standard point cloud templates;

[0024] 4) Use the RANSAC algorithm for matching to obtain the contour and pose of the target object.

[0025] It also includes an exact matching step: using the obtained contour and posture of the target object as initial values, using the ICP algorithm to optimize the matching results, and generating the final exact matching contour, posture and center of the target object.

[0026] The RANSAC algorithm is specifically:

[0027] 41) Randomly select four pairs of feature points on the target point cloud to construct a minimum envelope sphere, denoted as model M, where the minimum envelope sphere contains all the feature point pairs transformed from the three standard grayscale images; find the centroid of the minimum envelope sphere, and calculate the average distance from the centroid to the feature points in the envelope sphere as the matching error threshold;

[0028] 42) Calculate the projection error between all points in the target point cloud and the model M. If the projection error between a certain point and the model M is less than the matching error threshold, add the point to the envelope sphere to obtain the inner point set;

[0029] 43) If the number of inliers in the current inlier set is greater than the number of inliers in the previous optimal inlier set, the current inlier set is updated to the optimal inlier set, and the number of iterations is updated at the same time;

[0030] 44) Repeat 41), 42) and 43). If the number of iterations is greater than K, stop the iteration and obtain the optimal internal point set, and then obtain the matching features of the target point cloud.

[0031] A guided crawling method comprises the steps of:

[0032] (1) Using the aforementioned target object detection method to obtain the contour, posture and center of the target object;

[0033] (2) According to the conversion relationship between the end-arm posture and the lidar posture obtained by the hand-eye calibration in step (1), the contour and posture of the target object are converted to the robotic arm coordinate system;

[0034] (3) The size of the gripper opening at the end of the robot arm is calculated by the contour of the target object, the center of the gripper at the end of the robot arm is controlled to move to the optimal position through the center point of the target object, and the orientation of the gripper opening at the end of the robot arm is calculated by the position and posture of the target object;

[0035] (4) Perform motion planning according to step (3) and control the robot arm to move to the target position to achieve grasping.

[0036] Beneficial effects: The present invention fully utilizes the advantages of images in object detection, recognition and segmentation and the precise ranging capability of LiDAR in three-dimensional space by calibrating the robot by hand and eye. In the system, a depth camera system is used to model the target object with high precision, thereby realizing accurate 3D vision-guided grasping of irregular small targets, so that the live working robot can accurately identify and grasp the target object in the operation process. With low hardware cost, it can realize more accurate automatic extraction of the target, replace manual labor with robots, protect the safety of power workers in dangerous environments, and improve working conditions. In addition, this method can also be applied to other industries, such as sorting, assembly, feeding, welding and other industrial automation fields, especially the field of small target recognition in dangerous and complex scenes, to improve the accuracy and safety of existing work. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a flow chart of the target object detection method of the present invention.

[0038] Figure 2 This is a flow chart of the joint calibration of the camera and laser sensor of the present invention.

[0039] Figure 3 It is a schematic diagram of the hand-eye calibration tooling of the present invention.

[0040] Figure 4 This is a point cloud processing flow chart of the present invention.

[0041] Figure 5 It is a flow chart of the robot arm motion planning of the present invention. DETAILED DESCRIPTION

[0042] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments.

[0043] Figure 1 FIG. 1 is a flow chart of the target object detection method of the present invention. Figure 1 As shown, the target object detection method of the present invention comprises the steps of:

[0044] (1) Jointly calibrate the camera and laser sensor;

[0045] Figure 2 This is a flow chart of the joint calibration of the camera and the laser sensor of the present invention, as shown in Figure 2 As shown, the present invention calibrates the camera and the laser sensor together as follows:

[0046] (11) Before calibration, ensure that the positions of the camera and laser radar are fixed. During the calibration process, after checking that the peripheral connections are fault-free, a calibration plate of fixed specifications is fixed at the end of the robotic arm. Then, the camera and laser radar are used to collect images and laser point clouds respectively, and the images are converted into grayscale images with a fixed pixel value range, and the intensity information of the laser point cloud is converted into a grayscale image with a fixed pixel value range;

[0047] (12) Extract the grid spots or checkerboard corner points on the calibration plate for calibration, and obtain the rotation and translation relationship between the camera coordinate system and the lidar coordinate system;

[0048] (13) The points in the laser point cloud are transformed into the image coordinate system according to the transformation relationship between the camera coordinate system and the laser radar coordinate system obtained in step (12) and the imaging principle of the camera, and the rationality of the difference range is checked based on the error between the coordinates of the points in the laser point cloud transformed into the image coordinate system and the coordinates of the corresponding points in the image coordinate system; the error is defined as the difference between the coordinates of the points in the laser point cloud transformed into the image coordinate system and the corresponding points in the image coordinate system. x Direction or y The pixel difference in the direction, if the two are x Direction or y If the pixel difference in the direction is not greater than 1 pixel, it is considered that the calibration is within the error range; otherwise, recalibration is required;

[0049] In the calibration result, the joint calibration result of the camera and lidar is saved in the form of homogeneous coordinates and saved in the specified path for use by other subsequent modules;

[0050] (2) Performing hand-eye calibration on the robot; the hand-eye calibration of the robot of the present invention is specifically as follows:

[0051] (21) Before calibration, ensure that the positions of the camera and lidar are fixed, and obtain the rotational and translational relationship between the camera and the end of the robotic arm based on the camera installation parameters;

[0052] (22) During the calibration process, after checking that the peripheral connection is fault-free, first fix the end of the robot arm position, read the coordinate information of each robot arm joint, and then collect the laser point cloud of the calibration tooling through the laser radar after the robot arm stops and stabilizes, and convert the depth information of the laser point cloud into a grayscale image with a fixed pixel value range;

[0053] (23) Extract the calibration points of the calibration fixture for calibration, solve a PnP problem, obtain the rotation and translation relationship between the laser radar coordinate system and the calibration fixture, and record the end position of the robot arm at this time;

[0054] (24) Repeat steps (22) to (23) to obtain the rotational translation relationship between multiple sets of laser radar coordinate systems and the calibration tooling and the corresponding robot end pose, and use the classic two-step method of the Tsai-Lenz paper to solve the conversion relationship between the robot end pose and the laser radar pose;

[0055] The calibration result represents the external parameters of the combined system of the manipulator and the lidar in the form of rotation and translation vectors. After the calibration is completed, the calibration result is saved in a file under the specified path or in the runtime environment for use by other subsequent modules.

[0056] like Figure 3 As shown, the calibration tool of the present invention is a calibration plate movably mounted at the end of a robotic arm, on which a plurality of circular holes are opened, or a grid or a chessboard is set, and the corresponding calibration points are circular holes, grid spots or chessboard corners.

[0057] (3) In the working scene, the robot acquires images and laser point clouds through the camera and laser radar respectively, segments the image to obtain the target object according to the preset image segmentation model, and combines step (1) to obtain the corresponding point cloud model of the segmented target object in space;

[0058] (31) When the robot arrives at the work area, it acquires images and laser point clouds through the camera and lidar, respectively, and imports a trained deep neural network model that can be used for image segmentation from the specified path as an image segmentation model to segment the image and obtain the target object mask. The segmented target object mask is saved in the specified path of the system;

[0059] (32) According to step (1), the point in the laser point cloud is transformed into the image coordinate system, and it is determined whether the point is a point on the target object; specifically, it is determined whether the point is located in the image mask obtained by image segmentation. If the point is in the mask area, it means that the point is a point on the target object;

[0060] (33) All points in the laser point cloud located on the target object are stored in a new point set to obtain a point cloud model of the target object.

[0061] (4) According to the point cloud model corresponding to the target object obtained in step (3), the outline size, object center and position of the point cloud model are calculated;

[0062] In order to speed up the matching process and take into account the reliability and stability requirements of the industry for target capture, a template matching method combining 2D images and 3D point clouds is used:

[0063] (41) The process of establishing a standard point cloud template library is as follows: first, the actual object (such as a porcelain bottle, a lightning arrester, a nut, etc.) is scanned using a laser radar, and then the scanned laser point cloud is denoised, and then the denoised laser point cloud is spliced, and the size, contour and rotation axis features of the spliced ​​point cloud template are calculated. Finally, the point cloud template and its corresponding features are stored in the point cloud library to form a standard point cloud template library;

[0064] (42) De-noising the laser point cloud acquired in step (3), and projecting the intensity values ​​of the laser point cloud onto three orthogonal views in the 3D space to obtain three target grayscale images; at the same time, obtaining a point cloud template of the corresponding object from a standard point cloud template library, and projecting its intensity values ​​onto three orthogonal views in the 3D space to obtain three standard grayscale images;

[0065] (43) Obtaining feature points of the three target grayscale images obtained in step (42) through a feature point detection algorithm, and generating BRIEF key point descriptor feature point pairs in the three target grayscale images based on the feature points; similarly, generating BRIEF key point descriptor feature point pairs in the three standard grayscale images;

[0066] (44) According to steps (1) and (2), the feature point pairs of the three target grayscale images and the three standard grayscale images are transformed to the laser point cloud acquired in step (3), and a 2D-3D mapping relationship is constructed to obtain a mapping relationship between the feature point pairs of the three target grayscale images and the feature point pairs of their corresponding standard grayscale images, that is, a point pair mapping between the three sets of target point clouds and the standard point cloud template;

[0067] (45) According to the point pair mapping between the three groups of target point clouds and the standard point cloud template obtained in step (44), a rough matching is performed using the RANSAC algorithm to obtain three pairs of feature points on the target point cloud as point cloud features, and the rough matching contour and pose of the target object are obtained; wherein the number of iterations K is the number of feature point pairs;

[0068] Among them, the RANSAC algorithm is used for rough matching as follows:

[0069] 1) Randomly select four pairs of feature points on the target point cloud to construct a minimum envelope sphere, denoted as model M; the minimum envelope sphere contains all the feature point pairs transformed from the three standard grayscale images;

[0070] 2) Find the centroid of the minimum envelope sphere, and calculate the average distance from the centroid to the feature points in the envelope sphere as the matching error threshold; calculate the projection error between all points in the target point cloud and the model M. If the projection error between a certain point and the model M is less than the matching error threshold, add the point to the envelope sphere to obtain the inner point set;

[0071] 3) If the number of inliers in the current inlier set is greater than the number of inliers in the previous optimal inlier set, the current inlier set is updated to the optimal inlier set, and the number of iterations is updated at the same time;

[0072] 4) Repeat 1), 2), and 3). If the number of iterations is greater than K, stop the iteration and obtain the optimal internal point set, and then obtain the matching features of the target point cloud;

[0073] (46) After the rough matching is completed, the contour and posture of the target object obtained in step (45) are used as initial values, and the ICP algorithm is used to further optimize the matching results to generate the contour, posture, rotation axis and center point of the target object that is finally accurately matched;

[0074] After the calculation is completed, the rotation axis and point cloud pose are represented in the form of rotation and translation vectors, and the object contour is represented in the form of an envelope. The above results are saved in a file under the specified path or in the runtime environment for use by subsequent other modules.

[0075] The present invention also provides a guided grasping method, wherein the robot obtains the contour and posture of the target object and its rotation axis according to the aforementioned method, and according to the conversion relationship between the posture of the end of the robot arm obtained by the hand-eye calibration in step (2) and the posture of the laser radar, the contour and posture of the target object are converted to the robot arm coordinate system, and the size of the opening of the gripper at the end of the robot arm is calculated by the contour information of the target object, the center of the gripper at the end of the robot arm is controlled to move to the optimal position according to the center point information of the target object, and the direction of the gripper opening at the end of the robot arm is calculated according to the posture information of the target object; and motion planning is performed accordingly to control the robot arm to move to the target posture to achieve grasping.

[0076] The hardware system used in the present invention is composed of an industrial computer, an industrial-grade gigabit switch, a robotic arm, a color camera, and a ToF laser radar. The system of the present invention communicates through a TCP / IP network through an industrial-grade gigabit switch to connect the Giga E transmission interface of the color camera and the ToF laser radar, completing data transmission between the color camera, the ToF laser radar, and the industrial computer.

[0077] The preferred embodiments of the present invention are described in detail above, but the present invention is not limited to the specific details in the above embodiments. Within the technical concept of the present invention, various equivalent transformations (such as quantity, shape, position, etc.) can be made to the technical scheme of the present invention, and these equivalent transformations all belong to the protection scope of the present invention.

Claims

1. A target object detection method, characterized in that: include: Step (1): Jointly calibrate the camera and laser sensor, and calibrate the hand and eye of the robot; Step (2): The robot collects the image and laser point cloud of the target object respectively, segments the image using the image segmentation model to obtain the target object, and combines step (1) to filter from the laser point cloud to obtain the corresponding point cloud model of the target object in space; Step (3): Use the template matching algorithm to calculate the contour, posture and center of the point cloud model obtained in step (2), that is, detect the target object; Specifically: 1) Establish a standard point cloud template library: Scan each actual object to obtain the corresponding laser point cloud and stitch it to obtain the point cloud template and its corresponding size and contour features, and store the corresponding point cloud template and its corresponding features to form a standard point cloud template library; 2) Project the intensity values ​​of the collected laser point cloud of the target object onto three orthogonal views in 3D space to obtain three target grayscale images; at the same time, obtain the point cloud template of the corresponding object from the standard point cloud template library, and project its intensity values ​​onto three orthogonal views in 3D space to obtain three standard grayscale images; 3) Generate BRIEF key point descriptor feature point pairs in the three target grayscale images and three standard grayscale images respectively, and transform them to the laser point cloud of the target object to obtain point pair mappings between three sets of target point clouds and standard point cloud templates; 4) Use the RANSAC algorithm for matching to obtain the contour and pose of the target object.

2. The target object detection method according to claim 1, characterized in that: In step (1), the hand-eye calibration of the robot is specifically performed as follows: 1) Obtain the rotation and translation relationship between the camera and the end of the robotic arm based on the camera installation parameters; 2) Fix the end of the robot arm and obtain its position and posture, and collect the laser point cloud of the calibration tooling through the laser radar; 3) Extract the calibration points of the calibration fixture for calibration. By solving a PnP problem, obtain the rotation and translation relationship between the laser radar coordinate system and the calibration fixture, and record the end position of the robot arm at this time; 4) Repeat steps 2) to 3) to obtain the rotational and translational relationships between multiple sets of LiDAR coordinate systems and the calibration fixtures, as well as the corresponding robot end poses. Use the classic two-step method in the Tsai-Lenz paper to solve the conversion relationship between the robot end pose and the LiDAR pose.

3. The target object detection method according to claim 2, characterized in that: The calibration tool is a calibration plate movably mounted at the end of the robotic arm.

4. The target object detection method according to claim 3, characterized in that: A plurality of circular holes are provided on the calibration plate as calibration points.

5. The target object detection method according to claim 3, characterized in that: A grid or a chessboard is arranged on the calibration plate, and the corresponding calibration points are grid spots or chessboard corners.

6. The target object detection method according to claim 1, characterized in that: In the step (2), the corresponding point cloud model of the target object in space is obtained by screening from the laser point cloud: 1) According to step (1), the point in the laser point cloud is transformed into the image coordinate system, and it is determined whether it is a point on the target object; wherein, it is determined whether the point is located in the image mask obtained by image segmentation. If it is in the mask area, it means that the point is a point on the target object; 2) All points in the laser point cloud located on the target object are stored in a new point set to obtain a point cloud model of the target object.

7. The target object detection method according to claim 1, characterized in that: It also includes an exact matching step: using the obtained contour and posture of the target object as initial values, using the ICP algorithm to optimize the matching results, and generating the final exact matching contour, posture and center of the target object.

8. The target object detection method according to claim 1, characterized in that: The RANSAC algorithm is specifically: 41) Randomly select four pairs of feature points on the target point cloud to construct a minimum envelope sphere, denoted as model M, where the minimum envelope sphere contains all the feature point pairs transformed from the three standard grayscale images; find the centroid of the minimum envelope sphere, and calculate the average distance from the centroid to the feature points in the envelope sphere as the matching error threshold; 42) Calculate the projection error between all points in the target point cloud and the model M. If the projection error between a certain point and the model M is less than the matching error threshold, add the point to the envelope sphere to obtain the inner point set; 43) If the number of inliers in the current inlier set is greater than the number of inliers in the previous optimal inlier set, the current inlier set is updated to the optimal inlier set, and the number of iterations is updated at the same time; 44) Repeat 41), 42) and 43). If the number of iterations is greater than K, stop the iteration and obtain the optimal internal point set, and then obtain the matching features of the target point cloud.

9. A guided grasping method using the target object detection method according to any one of claims 1 to 8, characterized in that: Includes steps: (1) Using the target object detection method described in any one of claims 1 to 8 to obtain the contour, posture and center of the target object; (2) According to the conversion relationship between the end-arm posture and the lidar posture obtained by the hand-eye calibration in step (1), the contour and posture of the target object are converted to the robotic arm coordinate system; (3) The size of the gripper opening at the end of the robot arm is calculated by the contour of the target object, the center of the gripper at the end of the robot arm is controlled to move to the optimal position through the center point of the target object, and the orientation of the gripper opening at the end of the robot arm is calculated by the position and posture of the target object; (4) Perform motion planning according to step (3) and control the robot arm to move to the target position to achieve grasping.