Object pose recognition method and grabbing method in disordered stacking scene

By combining two-dimensional and three-dimensional data, the adaptive weighted principal component analysis method is used to identify object poses in disordered stacking scenes, which solves the identification problem of traditional vision systems in complex scenes and improves the success rate and success rate of robotic arm grabbing. efficiency.

CN118799403AInactive Publication Date: 2024-10-18泉州职业技术大学

Patent Information

Application Number
CN202411290863.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In disordered stacking scenarios, it is difficult for traditional vision systems to accurately identify and locate target objects, resulting in a high failure rate for robotic arms to grasp.

Method used

Combining the 2D scene image and the 3D scene connected point cloud, through supervoxel clustering, key point extraction, coarse registration and precise registration, the normal-based adaptive weighted principal component analysis method is used to obtain the pose of the target object. information and captured by robotic arms.

Benefits of technology

It improves the accuracy of target object pose recognition and grasping success rate, reduces the computational complexity of traditional registration algorithms, and achieves faster and more accurate point cloud registration effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799403A_ABST
    Figure CN118799403A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computer vision, and provides an object pose recognition method and a grabbing method in a disordered stacking scene, and the method combines a two-dimensional scene image with a three-dimensional scene communication point cloud, adds reference information for determining pose information of a target object, and facilitates the accurate determination of the pose information of the target object. According to the method, uniform sampling is introduced in the precise registration stage, the point cloud data volume can be reduced, the precise registration efficiency is improved, and the precise registration precision is improved. By using the normal-based adaptive weighted principal component analysis method, the calculation complexity of the traditional registration algorithm can be reduced, the calculation precision of the point cloud principal direction can be improved, and a faster and more accurate point cloud registration effect can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to an object posture recognition method and a grasping method in a disordered stacking scene. Background Art

[0002] With the improvement of automation, the requirements for computer vision systems in many fields such as robot navigation, industrial parts inspection and grasping are getting higher and higher. In the disordered stacking scenario, robotic arm grasping technology is developing rapidly.

[0003] In existing methods, due to the complex shapes, random arrangements and mutual occlusion of objects, it is difficult for traditional vision systems to accurately identify and locate target objects, resulting in a high grasping failure rate.

[0004] Therefore, there is an urgent need to provide an object pose recognition method in disordered stacking scenes. Summary of the invention

[0005] The present invention provides an object posture recognition method and a grasping method in a disordered stacking scene, so as to solve the defects existing in the prior art.

[0006] The present invention provides a method for recognizing object posture in a disordered stacking scene, comprising: Obtain scene images and scene connected point clouds in disordered stacking scenes; Performing target detection on the scene image to obtain a target object region in the scene image, and extracting edge information of the target object in the target object region; Based on the edge information, supervoxel clustering is performed on the scene connected point cloud to obtain a target point cloud of the target object; Extracting target key points in the target point cloud, and coarsely registering the target point cloud with the template point cloud based on the target key points and the template key points in the template point cloud; The target point cloud is uniformly sampled to determine the sampling point cloud, and based on the normal-based adaptive weighted principal component analysis method, the sampling point cloud is applied to accurately align the rough alignment result to obtain the position and posture information of the target object.

[0007] According to a method for object posture recognition in a disordered stacking scene provided by the present invention, the normal-based adaptive weighted principal component analysis method applies the sampling point cloud to accurately align the rough registration result to obtain the posture information of the target object, including: Determining a weighting coefficient based on the similarity of the normal vector between each sampling point in the sampling point cloud and a neighboring point of the sampling point; Based on the weighting coefficients, a weighted covariance matrix of the sampling point cloud is determined, and eigenvalue decomposition is performed on the weighted covariance matrix to obtain an eigenvector of the weighted covariance matrix; Determining a weighted main direction matrix of the sampling point cloud based on an eigenvector of the weighted covariance matrix and an eigenvector of the covariance matrix of the sampling point cloud; Based on the weighted main direction matrix, the coarse registration result is iteratively optimized to obtain the posture information.

[0008] According to a method for object posture recognition in a disordered stacking scene provided by the present invention, supervoxel clustering is performed on the scene connected point cloud based on the edge information to obtain a target point cloud of the target object, including: Constructing an energy function based on the spatial distance and characteristic attribute distance between each target point in the scene connected point cloud and its corresponding supervoxel center; Using the edge information as a constraint condition, solving the energy function to obtain supervoxels in the scene connected point cloud; Based on the concave-convex criterion, the supervoxels are merged to obtain the target point cloud.

[0009] According to a method for object posture recognition in a disordered stacking scene provided by the present invention, extracting edge information of the target object in the target object area includes: Extracting multi-dimensional features of the target object area; Based on the multi-dimensional features, an adaptive threshold is calculated, and based on the adaptive threshold, a threshold segmentation is performed on the target object region to obtain a binary image; Based on the binarized image, the edge information is extracted.

[0010] According to a method for recognizing object posture in a disordered stacking scene provided by the present invention, the calculating of the adaptive threshold based on the multi-dimensional features includes: The response values ​​of the multi-dimensional features of each pixel in the target object area are weighted and summed to obtain the adaptive threshold corresponding to each pixel.

[0011] According to a method for object posture recognition in a disordered stacking scene provided by the present invention, performing target detection on the scene image to obtain a target object area in the scene image includes: Performing brightness enhancement on the scene image to obtain an enhanced image; Convert the enhanced image to the HSV color space, and perform dilation and erosion operations and binarization operations on the enhanced image in the HSV color space to obtain the minimum circumscribed rectangle of the target object; The target object area is determined based on the minimum circumscribed rectangle.

[0012] The present invention also provides a method for grasping objects in a disordered stacking scenario, comprising: Based on the object posture recognition method in the disordered stacking scene provided in the above embodiments, determine the posture information of the target object in the scene image in the disordered stacking scene; Based on the position information, the robotic arm is controlled to grasp the target object.

[0013] According to a method for recognizing the posture of an object in a disordered stacking scenario provided by the present invention, based on the posture information, controlling the robot arm to grasp the target object comprises: Calculate the total number of points in the scene connected point cloud and the number of color block points in different target point clouds, and calculate the average vertical axis height of the different target point clouds; Based on the total number of points and the number of color block points, calculate the density weight scores of the different target point clouds, and based on the average vertical axis height and the highest height in the scene connected point cloud, calculate the height weight score; Determining completeness scores of the different target point clouds based on the density weight score and the height weight score; Based on the completeness score, the grasping priority of the target object corresponding to the different target point clouds is determined, and based on the grasping priority and the posture information, the robotic arm is controlled to grasp the target object.

[0014] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements a method for recognizing an object posture in a disordered stacking scenario, or a method for grasping an object in a disordered stacking scenario as described above.

[0015] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for recognizing the posture of an object in an unordered stacking scene or the method for grasping an object in an unordered stacking scene as described above is implemented.

[0016] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements the object posture recognition method in a disordered stacking scene or the object grasping method in a disordered stacking scene as described in any of the above.

[0017] Compared with the prior art, the present invention has the following beneficial effects: The object posture recognition method and grasping method in the disordered stacking scene provided by the present invention combine the two-dimensional scene image with the three-dimensional scene connected point cloud, increase the reference information for determining the posture information of the target object, and facilitate the accurate determination of the posture information of the target object. In the precise registration stage, the method introduces uniform sampling, which can streamline the amount of point cloud data, improve the efficiency of precise registration, and enhance the precision of precise registration. By using the adaptive weighted principal component analysis method based on normals, the computational complexity of the traditional registration algorithm can be reduced, the computational accuracy of the main direction of the point cloud can be improved, and a faster and more accurate point cloud registration effect can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on the drawings in the following description without paying any creative work.

[0019] Figure 1 It is a flow chart of the object posture recognition method in the disordered stacking scene provided by the present invention; Figure 2 It is a schematic diagram of a rough registration result obtained by the ISS key point extraction process of the target point cloud and the template point cloud in the object posture recognition method in the disordered stacking scene provided by the present invention; Figure 3 It is a schematic diagram of the process of extracting edge information of a target object in the object posture recognition method in a disordered stacking scene provided by the present invention; Figure 4 It is a schematic diagram of a process for determining the minimum circumscribed rectangle of a target object in a method for recognizing an object posture in a disordered stacking scene provided by the present invention; Figure 5 This is one of the flow charts of the object grabbing method in the disordered stacking scenario provided by the present invention; Figure 6 Schematic diagram of the completeness score of each target point cloud in an unobstructed scene of the present invention; Figure 7 It is a schematic diagram of the completeness score of each target point cloud in a two-layer occlusion scene of the present invention; Figure 8 It is a schematic diagram of the completeness score of each target point cloud in the three-layer occlusion scene of the present invention; Fig. 9 This is the second flow chart of the object grabbing method in the disordered stacking scenario provided by the present invention; Fig.10 It is a structural schematic diagram of an object posture recognition device in a disordered stacking scenario provided by the present invention; Fig.11It is a schematic diagram of the structure of the object grasping robot in the disordered stacking scenario provided by the present invention; Fig.12 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0021] Because traditional visual systems are difficult to accurately identify and locate target objects in scenes where objects are complex in shape, randomly arranged, and mutually blocked, an object position recognition method in a disordered stacking scene is provided in an embodiment of the present invention.

[0022] Figure 1 FIG. 1 is a flow chart of a method for recognizing object posture in a disordered stacking scenario provided in an embodiment of the present invention. Figure 1 As shown, the method includes: S11, obtaining a scene image and a scene connected point cloud in a disordered stacking scene; S12, performing target detection on the scene image to obtain a target object region in the scene image, and extracting edge information of the target object in the target object region; S13, performing supervoxel clustering on the connected point cloud based on the edge information to obtain a target point cloud of the target object; S14, extracting target key points in the target point cloud, and performing coarse registration between the target point cloud and the template point cloud based on the target key points and the template key points in the template point cloud; S15, uniformly sampling the target point cloud to determine the sampling point cloud, and applying the sampling point cloud based on the normal adaptive weighted principal component analysis method to perform precise registration on the rough registration result to obtain the position and posture information of the target object.

[0023] Specifically, the object posture recognition method in the disordered stacking scene provided in the embodiment of the present invention is executed by an object posture recognition device in the disordered stacking scene. The device can be configured in a computer, and the computer can be a local computer or a cloud computer. The local computer can be a computer, a tablet, etc., which is not specifically limited here.

[0024] First, step S11 is performed to obtain a scene image and a scene connected point cloud in a disordered stacking scene. The disordered stacking scene may include multiple target objects, and the scene image and the scene connected point cloud can be acquired by a depth camera and transmitted to the object posture recognition device. It can be understood that the scene image can be a color image. The depth camera can be RealSense D435 or other models, which are not specifically limited here.

[0025] Then, step S12 is performed, and a target detection algorithm can be used to perform target detection on the scene image to obtain a target object region in the scene image, and the target object region can be a region surrounded by the minimum circumscribed rectangle of the target object. Here, the target object region in the scene image can include multiple target object regions, and each target object region corresponds to a target object.

[0026] Afterwards, an edge extraction algorithm may be used to extract edge information of the target object in each target object region. The edge information may include edge pixel points of the target object.

[0027] Then, step S13 is performed to determine the target point cloud of the target object by using the edge information and the scene connected point cloud. The target point cloud may be the overall point cloud of all target objects in the scene connected point cloud.

[0028] Since the coordinate systems used by the scene connected point cloud and the scene image are different, the point cloud coordinate system used by the scene connected point cloud is the local coordinate system of the depth camera, and the coordinate system used by the scene image is the pixel coordinate system. Therefore, we first construct a transformation matrix through calibration to transform the scene connected point cloud from the point cloud coordinate system to a specified two-dimensional coordinate system consistent with the pixel coordinate system, and complete the alignment of the point cloud coordinate system and the pixel coordinate system.

[0029] After that, the supervoxel clustering segmentation algorithm based on Locally Convex Connected Patches (LCCP) can be used to perform supervoxel clustering on the scene connected point cloud with edge information as a constraint to determine the target point cloud. Each target object corresponds to a target point cloud. Here, the constraint of edge information can prevent the supervoxel clustering from exceeding the boundary of the target object.

[0030] Thereafter, step S14 is executed to extract target key points in the target point cloud by using an internal shape descriptor (ISS)-based feature detection algorithm, thereby reducing the computational complexity during registration and improving the accuracy and efficiency of registration.

[0031] The calculation process of extracting target key points may include: (1) Calculate any point in the target point cloud Centered on The neighborhood points within the neighborhood of the radius are Distance point The distance is used as the weight. The calculation formula is:

[0032] (2) Based on the point With neighboring points Building a weighted covariance matrix :

[0033] (3) Calculate the covariance matrix of the target point cloud and calculate its eigenvalues. The three eigenvalues ​​are recorded in descending order as , , , if the relationship between the eigenvalues ​​satisfies the following formula, then the point The key points for the target are:

[0034] in, and are the first threshold and the second threshold respectively. The first threshold With the second threshold The specific value of can be adjusted according to the test results, for example, the first threshold The value can be 0.65, the second threshold The value can be 0.5.

[0035] (4) Repeat steps (1) to (3) to detect each point in the target point cloud and complete the extraction of all target key points in the target point cloud.

[0036] The target point cloud and the template point cloud are roughly registered by using the target key points and the template key points in the template point cloud. The template point cloud can be obtained by obtaining the target point cloud model of the target object surface through a depth camera and selecting it in combination with the three-dimensional Hough voting algorithm. The template key points in the template point cloud can be extracted in the same way as the target key points, that is, the template key points in the template point cloud can be extracted by using the ISS feature detection algorithm.

[0037] When performing rough registration, the Sample Consensus Initial Alignment (SAC-IA) algorithm can be used. The detailed steps may include: Firstly, the target key points are compared with the template key points using the scale-invariant feature transform (SIFT) algorithm and the normal aligned radial feature (NARF) algorithm.

[0038] Then, the point feature histograms (PFH) algorithm and the fast point feature histograms (FPFH) algorithm are used to describe the characteristics of the target key points and the template key points, and the matching feature point pairs between the target key points and the template key points are calculated by similarity; After that, the SAC-IA algorithm is used to screen the feature point pairs, remove the erroneous points, and estimate the transformation parameters between the target point cloud and the template point cloud to complete the initial registration of the target point cloud and the template point cloud, that is, the rough registration. Among them, the transformation parameters may include the rotation matrix and the translation vector. The rough registration result includes the initial transformation parameters between the target point cloud and the template point cloud, which are used for the subsequent precise registration. Figure 2 , which is a schematic diagram of the rough registration result obtained by the ISS key point extraction process between the target point cloud and the template point cloud.

[0039] Finally, step S15 is executed to uniformly sample the target point cloud and determine the sampled point cloud. Compared with the downsampling process, the amount of point cloud data can be reduced, the efficiency of precise registration can be improved, and the precision of precise registration can be improved. When searching for corresponding points, a KD-Tree can be established to speed up the search for corresponding points in turn, further improving the precision of precise registration.

[0040] By using the normal-based adaptive weighted principal component analysis method (NW-PCA) and applying the sampling point cloud, the rough registration results are accurately registered to obtain the position and pose information of the target object, which can solve the problem of decreased registration accuracy and improve the registration efficiency.

[0041] The object posture recognition method in the disordered stacking scene provided in the embodiment of the present invention first obtains the scene image and the scene connected point cloud in the disordered stacking scene; then performs target detection on the scene image to obtain the target object area in the scene image, and extracts the edge information of the target object in the target object area; thereafter, based on the edge information, supervoxel clustering is performed on the connected point cloud to determine the target point cloud of the target object; thereafter, the target key points in the target point cloud are extracted, and the target point cloud and the template point cloud are roughly aligned based on the target key points and the template key points in the template point cloud; finally, the target point cloud is uniformly sampled to determine the sampling point cloud, and based on the adaptive weighted principal component analysis method of the normal, the sampling point cloud is applied to accurately align the rough alignment result to obtain the posture information of the target object. The method combines the two-dimensional scene image with the three-dimensional scene connected point cloud, adds reference information for determining the posture information of the target object, and facilitates the accurate determination of the posture information of the target object. In the precise alignment stage, the method introduces uniform sampling, which can simplify the point cloud data volume, improve the precise alignment efficiency, and improve the precise alignment accuracy. Using the normal-based adaptive weighted principal component analysis method, the computational complexity of the traditional registration algorithm can be reduced, the calculation accuracy of the main direction of the point cloud can be improved, and a faster and more accurate point cloud registration effect can be achieved.

[0042] On the basis of the above embodiment, the normal-based adaptive weighted principal component analysis method applies the sampling point cloud to accurately align the rough alignment result to obtain the pose information of the target object, including: Determining a weighting coefficient based on the similarity of the normal vector between each sampling point in the sampling point cloud and a neighboring point of the sampling point; Based on the weighting coefficients, a weighted covariance matrix of the sampling point cloud is determined, and eigenvalue decomposition is performed on the weighted covariance matrix to obtain an eigenvector of the weighted covariance matrix; Determining a weighted main direction matrix of the sampling point cloud based on an eigenvector of the weighted covariance matrix and an eigenvector of the covariance matrix of the sampling point cloud; Based on the weighted main direction matrix, the coarse registration result is iteratively optimized to obtain the posture information.

[0043] Specifically, in the embodiment of the present invention, in the process of accurate registration, the weighting coefficient is first determined by using the similarity of the normal vector between each sampling point in the sampling point cloud and the neighborhood point of the sampling point. The neighborhood point of the sampling point can be obtained by KD-Tree search, and the number of the neighborhood points of the sampling point can be k. The similarity of the normal vector can be calculated by the absolute value dot product of the normal vector. The larger the absolute value dot product, the more similar the normal vector is.

[0044] Similarity of normal vectors It can be expressed as: ; in, and Represent the normal vectors of the i-th sampling point and its j-th neighboring point, respectively. and The sizes of represent the sizes of the normal vectors of the i-th sampling point and its j-th neighboring point. When it is close to 1, it means that the directions of the two normal vectors are very similar, which means that the surfaces represented by the two normal vectors have similar directions near their respective sampling points. When it is close to 0, it means that there is a significant difference in the directions between the two normal vectors.

[0045] The similarity between the normal vector of the sampling point and each of its neighboring points is used as a weighting coefficient , and then sum the weighted coefficients of all neighboring points of the sampling point to get the weighted coefficient of the sampling point: ; in, Represents the weighting coefficient between the i-th sampling point and its j-th neighboring point.

[0046] Then, the weighted covariance matrix of the sampling point cloud is determined by using the weighted coefficients. The weighted covariance matrix is ​​determined in the same manner as the covariance matrix of the sampling point cloud, except that the weighted coefficients are considered when determining the weighted covariance matrix.

[0047] Covariance matrix of the sampled point cloud It can be expressed as: ; in, Used to measure the linear correlation between the j-axis coordinate and the k-axis coordinate of each sampling point. , .

[0048] by For example, there are: ; Where n is the number of sampling points in the sampling point cloud. is the horizontal coordinate of the i-th sampling point, is the ordinate of the i-th sampling point, is the coordinate mean of each sampling point on the x-axis, is the coordinate mean of each sampling point on the y-axis.

[0049] By changing the covariance matrix By performing eigenvalue decomposition, we can obtain the eigenvector matrix V and the eigenvalue matrix D, that is, ; The eigenvalue matrix D is composed of eigenvalues, and the eigenvector matrix V is composed of eigenvectors. The eigenvalue represents the covariance matrix Variance in the direction of the eigenvector, which represents the covariance matrix The main axis direction.

[0050] By transforming the matrix of the sampled point cloud Multiply the eigenvector matrix , we can get the main direction matrix of the point cloud after dimensionality reduction : .

[0051] Similarly, by performing eigenvalue decomposition on the weighted covariance matrix, the eigenvector of the weighted covariance matrix can be obtained.

[0052] The weighted principal direction matrix of the sampling point cloud can be determined by using the eigenvector of the weighted covariance matrix and the eigenvector of the covariance matrix of the sampling point cloud. For example, the eigenvector of the weighted covariance matrix can be multiplied with the eigenvector of the covariance matrix of the sampling point cloud to obtain the weighted principal direction matrix.

[0053] The weighted main direction matrix is ​​used to extract key points and iteratively optimize the rough registration results to obtain the pose information.

[0054] During the iterative optimization process, the sum function of the transformed distances can be calculated: ; Among them, f0 is the sum function of the transformed distance, and are the rotation matrix and translation vector that minimize the sum of the transformation distances. is the i-th point in the scene connected point cloud, is the i-th point in the template point cloud.

[0055] and This is the pose information obtained by iterative optimization. and Applied to the scene connected point cloud to compute a transformed and accurately registered point cloud.

[0056] It can be understood that in the normal-based adaptive weighted principal component analysis method in the embodiment of the present invention, the adaptability is reflected in the following three aspects: First, in terms of local characteristics, the weighting coefficient is calculated based on the neighborhood information of the sampling point. The weighting coefficient of each sampling point is adaptively calculated based on the normal vector similarity of its neighborhood points, which can flexibly reflect the local geometric structure of the sampling point.

[0057] Secondly, in terms of normal vector similarity, it uses the absolute value dot product as a similarity metric, which can effectively measure the directionality of the normal vector. The closer the absolute value dot product is to 1, the more similar the normal vectors are and the greater the weight; conversely, the closer the absolute value dot product is to 0, the greater the difference between the normal vectors and the smaller the weight.

[0058] Finally, weighted principal component analysis: In the principal component analysis (PCA) process, adaptive weighting coefficients are used to make points with similar normal vectors in the point cloud have a greater impact on the PCA results. In this way, while maintaining the overall structure, more attention can be paid to local geometric characteristics, improving the robustness and accuracy of PCA.

[0059] On the basis of the above embodiment, the supervoxel clustering of the scene connected point cloud based on the edge information to obtain the target point cloud of the target object includes: Constructing an energy function based on the spatial distance and characteristic attribute distance between each target point in the scene connected point cloud and its corresponding supervoxel center; Using the edge information as a constraint condition, solving the energy function to obtain supervoxels in the scene connected point cloud; Based on the concave-convex criterion, the supervoxels are merged to obtain the target point cloud.

[0060] Specifically, when supervoxel clustering is performed on the scene connected point cloud, the LCCP supervoxel clustering segmentation algorithm based on smoothness features can be used.

[0061] Set the scene to connect the point cloud The i-th target point in is , and its corresponding supervoxel center is , the generation of supervoxels can be achieved by minimizing the energy function so that the target point The corresponding supervoxel center This is achieved by reaching the closest point in spatial position and feature attributes. Here, the target point can be every point in the scene connected point cloud.

[0062] The energy function can be constructed by the spatial distance and characteristic attribute distance between each target point in the scene connected point cloud and its corresponding supervoxel center. The energy function can include a geometric distance term determined by the spatial distance and a smoothness characteristic term determined by the characteristic attribute distance.

[0063] That is: ; in, is the geometric distance term, is the smoothness characteristic term, is a weight parameter that balances the two terms, It is a feature attribute, including color, texture, normal vector, gradient and other features.

[0064] set up , and Represented as target points The components of the normal vector of each coordinate axis in three-dimensional space, , and Represented as the center point of the supervoxel The components of the normal vector of each coordinate axis in three-dimensional space, then: .

[0065] After the supervoxels are generated, they are merged using the concave-convex criterion. and , if they meet the convex-concave criteria, they are merged. and They are and The surface normal of For connection and The vector of the center, then the concave-convex criterion is defined as: .

[0066] Then, the target point cloud is obtained through local convexity and concavity growth from bottom to top.

[0067] In the embodiment of the present invention, by minimizing the smoothness feature term, the target point and supervoxel center More similar in feature space, making supervoxels more consistent in feature attributes.

[0068] The existing edge extraction algorithms are difficult to accurately extract the edges of target objects, which affects the subsequent point cloud segmentation and target positioning.

[0069] Based on this, on the basis of the above embodiment, extracting edge information of the target object in the target object area includes: Extracting multi-dimensional features of the target object area; Based on the multi-dimensional features, an adaptive threshold is calculated, and based on the adaptive threshold, a threshold segmentation is performed on the target object region to obtain a binary image; Based on the binarized image, the edge information is extracted.

[0070] Specifically, Figure 3As shown, when extracting the edge information of the target object, the multi-dimensional features of the target object area can be extracted first. The multi-dimensional features may include color features, texture features, and gradient features. Among them, the color features can be obtained through the color histogram of the target object area, such as dividing the target object area into several color bins and counting the number of pixels in each bin.

[0071] Texture features can be obtained through local binary patterns (LBP), and gradient features can be calculated by the Sobel operator using convolution kernels in the horizontal and vertical directions.

[0072] After that, the adaptive threshold is calculated using multi-dimensional features. For example, the color feature, gradient feature and texture feature can be fused by a feature fusion method, that is, the response values ​​of different features are linearly weighted and summed to obtain the adaptive threshold corresponding to each pixel. Here, considering that the gradient and color of the target object in the disordered scene are greatly different in the target object area, the weights of the gradient and color features are higher.

[0073] It is understandable that the "adaptive" in the adaptive threshold is reflected in: (1) Weight determination: Each feature has different weights in different scenarios, thus achieving adaptability.

[0074] (2) Local calculation: After feature fusion, the adaptive threshold is calculated based on the local neighborhood rather than a global fixed value, which can adapt to changes in different areas of the image.

[0075] (3) Dynamic adjustment: By dynamically adjusting the weights, the threshold of each pixel can be adaptively changed according to the degree of clutter in the stacking of the target objects.

[0076] After that, the target object area is segmented by using the adaptive threshold to obtain a binary image. Here, the grayscale value of each pixel in the target object area can be compared with the adaptive threshold. If the grayscale value of a pixel is higher than or equal to the adaptive threshold, the pixel value of the pixel is set to 255, which is white. If the grayscale value of a pixel is lower than the adaptive threshold, the pixel value of the pixel is set to 0, which is black.

[0077] The binary image can be represented as: ; in, is the pixel point in the binary image The pixel value at is the pixel point in the target object area The gray value at the target object area is T, which is the adaptive threshold. The weighted sum of multi-dimensional features.

[0078] Finally, the edge extraction algorithm can be used to extract the edge information in the binary image. Since the multi-dimensional features are used to calculate the adaptive threshold, the edge extraction algorithm can be called an edge extraction algorithm based on multi-feature fusion.

[0079] In the embodiment of the present invention, the adaptive threshold is calculated using the multi-dimensional features of the target object area, and binarization processing is performed, and then the edge extraction is performed on the binary image, which can accurately extract the edge information of the target object and facilitate subsequent point cloud segmentation and target positioning.

[0080] Since existing image target detection algorithms perform poorly in environments with uneven brightness, it is difficult to accurately obtain the bounding rectangle of the target object, which affects the accuracy and success rate of grasping.

[0081] Based on this, on the basis of the above embodiment, the step of performing target detection on the scene image to obtain a target object region in the scene image includes: Performing brightness enhancement on the scene image to obtain an enhanced image; Convert the enhanced image to the HSV color space, and perform dilation and erosion operations and binarization operations on the enhanced image in the HSV color space to obtain the minimum circumscribed rectangle of the target object; The target object area is determined based on the minimum circumscribed rectangle.

[0082] Specifically, Figure 4 As shown, in the embodiment of the present invention, when determining the target object area, the camera response model can be first fitted by an image enhancement algorithm, and the scene image can be adaptively brightness enhanced to obtain an enhanced image with uniform brightness.

[0083] Afterwards, the enhanced image can be converted to the HSV color space, and the dilation and erosion operations and binarization operations can be performed on the enhanced image in the HSV color space to obtain the minimum bounding rectangle of the target object and complete the target detection.

[0084] Finally, the minimum bounding rectangle of the target object can be used to determine the target object area through image cropping. The target object area is the area enclosed by the minimum bounding rectangle.

[0085] like Figure 5 Based on the above embodiments, an embodiment of the present invention further provides a method for grasping objects in a disordered stacking scenario, including: S21, based on the object posture recognition method in the disordered stacking scene provided in the above embodiments, determining the posture information of the target object in the scene image in the disordered stacking scene; S22: Based on the posture information, control the robot arm to grasp the target object.

[0086] Specifically, the object grasping method in the disordered stacking scene provided in the embodiment of the present invention is performed by an object grasping robot in the disordered stacking scene. The object grasping robot can be equipped with a depth camera, which can be used to collect scene connected point clouds and scene images.

[0087] First, step S21 is executed to determine the pose information of the target object in the scene image in the disordered stacking scene using the object pose recognition method in the disordered stacking scene provided in the above embodiments.

[0088] Then, step S22 is executed to control the robot arm to grasp the target object using the position information of the target object. Here, if there are multiple target objects, each target object can be grasped in turn according to the grasping priority. The grasping priority of each target object can be given in advance, or it can be determined according to the completeness score of the target point cloud of each target object.

[0089] The object grasping method in the disordered stacking scene provided in the embodiment of the present invention first determines the pose information of the target object in the scene image in the disordered stacking scene based on the object pose recognition method in the disordered stacking scene provided in the above embodiments; then controls the robot arm to grasp the target object based on the pose information. Since the method adopts the object pose recognition method provided in the above embodiments to determine the pose information of the target object, the success rate of grasping can be greatly improved.

[0090] On the basis of the above embodiment, the step of controlling the robot arm to grasp the target object based on the posture information includes: Calculate the total number of points in the scene connected point cloud and the number of color block points in different target point clouds, and calculate the average vertical axis height of the different target point clouds; Based on the total number of points and the number of color block points, calculate the density weight scores of the different target point clouds, and based on the average vertical axis height and the highest height in the scene connected point cloud, calculate the height weight score; Determining completeness scores of the different target point clouds based on the density weight score and the height weight score; Based on the completeness score, the grasping priority of the target object corresponding to the different target point clouds is determined, and based on the grasping priority and the posture information, the robotic arm is controlled to grasp the target object.

[0091] Specifically, when controlling the robot arm to grasp the target object, first calculate the total number of points N in the scene connected point cloud and the number of color block points in the i-th target point cloud , and calculate the average vertical axis height of the i-th target point cloud .

[0092] After that, the density weight score of the i-th target point cloud is calculated using the total number of points N and the number of color block points in the i-th target point cloud , that is: ; Use the average vertical axis height of the i-th target point cloud And the highest height in the scene connected point cloud , calculate the height weight score , that is: .

[0093] After that, the density weight score of the i-th target point cloud is used And the height weight score , the completeness score of the i-th target point cloud can be determined by weighted summation Among them, the density weight fraction and the height weight score The weights can be set as needed, such as the density weight score The weight can be 0.4, the height weight fraction The weight can be 0.6, that is: .

[0094] Figure 6 This is a schematic diagram of the completeness score of each target point cloud in an unobstructed scene. Figure 7 This is a schematic diagram of the completeness score of each target point cloud in a two-layer occlusion scene. Figure 8 Schematic diagram of the completeness score of each target point cloud in a three-layer occlusion scene.

[0095] Finally, the completeness score of each target point cloud is used , can be rated by completeness The order from high to low is used as the grabbing priority order from high to low for the target objects corresponding to each target point cloud.

[0096] By using the grasping priority and posture information of the target object, the robotic arm can be controlled to grasp the target object.

[0097] In the embodiment of the present invention, since the grabbing priority of each target object is introduced, the grabbing efficiency of the target object can be improved.

[0098] In summary, if Fig. 9 FIG. 1 is a complete flow chart of a method for grasping an object in a disordered stacking scenario provided in an embodiment of the present invention, the method comprising: Place the target object on the table and wait for it to be grasped; Scan the target object with a depth camera to obtain a scene image and a scene connected point cloud respectively; Performing target detection on the scene image to obtain the target object region in the scene image, and extracting the edge information of the target object in the target object region; The scene connected point cloud is denoised, and the point cloud coordinate system is aligned with the pixel coordinate system. Based on the LCCP supervoxel clustering segmentation algorithm, the scene connected point cloud is clustered with edge information as a constraint to determine the target point cloud. Using 3D Hough voting algorithm, determine the template point cloud; Based on the SAC-IA algorithm extracted from key points, the target point cloud and the template point cloud are roughly registered to obtain the rough registration result; Based on the NW-PCA algorithm, the rough registration results are precisely registered to obtain the position and pose information of the target object; The robot arm is controlled through the position and posture information of the target object to grasp the target object according to the grasping priority of the target object.

[0099] The object posture recognition method in the disordered stacking scenario provided in the embodiment of the present invention can not only improve the grasping success rate and efficiency of the robotic arm in the disordered stacking scenario, but also verify its effectiveness and reliability in different complex environments through experiments. It can be widely used in industrial automation, logistics sorting, intelligent manufacturing and other fields, and further promote the development of automation technology.

[0100] like Fig.10 As shown, based on the above embodiment, an object posture recognition device in a disordered stacking scene is provided in an embodiment of the present invention, including: An acquisition module 101 is used to acquire a scene image and a scene connected point cloud in a disordered stacking scene; A first processing module 102 is used to perform target detection on the scene image, obtain a target object region in the scene image, and extract edge information of the target object in the target object region; A second processing module 103 is used to perform supervoxel clustering on the scene connected point cloud based on the edge information to obtain a target point cloud of the target object; A coarse registration module 104 is used to extract target key points in the target point cloud, and to coarsely register the target point cloud with the template point cloud based on the target key points and the template key points in the template point cloud; The precise registration module 105 is used to uniformly sample the target point cloud, determine the sampled point cloud, and apply the sampled point cloud to perform precise registration on the rough registration result based on the normal adaptive weighted principal component analysis method to obtain the position and posture information of the target object.

[0101] Based on the above embodiment, the precise registration module is specifically used for: Determining a weighting coefficient based on the similarity of the normal vector between each sampling point in the sampling point cloud and a neighboring point of the sampling point; Based on the weighting coefficients, a weighted covariance matrix of the sampling point cloud is determined, and eigenvalue decomposition is performed on the weighted covariance matrix to obtain an eigenvector of the weighted covariance matrix; Determining a weighted main direction matrix of the sampling point cloud based on an eigenvector of the weighted covariance matrix and an eigenvector of the covariance matrix of the sampling point cloud; Based on the weighted main direction matrix, the coarse registration result is iteratively optimized to obtain the posture information.

[0102] Based on the above embodiment, the second processing module is specifically used for: Constructing an energy function based on the spatial distance and characteristic attribute distance between each target point in the scene connected point cloud and its corresponding supervoxel center; Using the edge information as a constraint condition, solving the energy function to obtain supervoxels in the scene connected point cloud; Based on the concave-convex criterion, the supervoxels are merged to obtain the target point cloud.

[0103] Based on the above embodiment, the first processing module is specifically used to: Extracting multi-dimensional features of the target object area; Based on the multi-dimensional features, an adaptive threshold is calculated, and based on the adaptive threshold, a threshold segmentation is performed on the target object region to obtain a binary image; Based on the binarized image, the edge information is extracted.

[0104] Based on the above embodiment, the first processing module is further specifically used for: The response values ​​of the multi-dimensional features of each pixel in the target object area are weighted and summed to obtain the adaptive threshold corresponding to each pixel.

[0105] Based on the above embodiment, the first processing module is further specifically used for: Performing brightness enhancement on the scene image to obtain an enhanced image; Convert the enhanced image to the HSV color space, and perform dilation and erosion operations and binarization operations on the enhanced image in the HSV color space to obtain the minimum circumscribed rectangle of the target object; The target object area is determined based on the minimum circumscribed rectangle.

[0106] Specifically, the functions of each module in the object posture recognition in the disordered stacking scenario provided in the embodiment of the present invention correspond one-to-one to the operation process of each step in the above-mentioned method embodiment, and the effects achieved are also consistent. Please refer to the above-mentioned embodiment for details, and no further details will be given in the embodiment of the present invention.

[0107] like Fig.11 As shown, based on the above embodiment, an embodiment of the present invention further provides an object grasping robot in a disordered stacking scenario, including: A posture determination module 111 is used to determine the posture information of the target object in the scene image in the disordered stacking scene based on the object posture recognition method in the disordered stacking scene provided in the above embodiments; The grasping module 112 is used to control the robot arm to grasp the target object based on the posture information.

[0108] Based on the above embodiment, the grabbing module is specifically used for: Calculate the total number of points in the scene connected point cloud and the number of color block points in different target point clouds, and calculate the average vertical axis height of the different target point clouds; Based on the total number of points and the number of color block points, calculate the density weight scores of the different target point clouds, and based on the average vertical axis height and the highest height in the scene connected point cloud, calculate the height weight score; Determining completeness scores of the different target point clouds based on the density weight score and the height weight score; Based on the completeness score, the grasping priority of the target object corresponding to the different target point clouds is determined, and based on the grasping priority and the posture information, the robotic arm is controlled to grasp the target object.

[0109] Specifically, the functions of each module in the object grasping robot in the disordered stacking scenario provided in the embodiment of the present invention correspond one-to-one to the operating procedures of each step in the above-mentioned method embodiment, and the effects achieved are also consistent. Please refer to the above-mentioned embodiment for details, and no further details will be given in the embodiment of the present invention.

[0110] Fig.12 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.12As shown, the electronic device may include: a processor 121, a communication interface 122, a memory 123 and a communication bus 124, wherein the processor 121, the communication interface 122 and the memory 123 communicate with each other through the communication bus 124. The processor 121 may call the logic instructions in the memory 123 to execute the object posture recognition method in the disordered stacking scene or the object grasping method in the disordered stacking scene provided in the above embodiments.

[0111] In addition, the logic instructions in the above-mentioned memory 123 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0112] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the object posture recognition method in the disordered stacking scene or the object grasping method in the disordered stacking scene provided in the above-mentioned embodiments.

[0113] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the object posture recognition method in the disordered stacking scene, or the object grasping method in the disordered stacking scene provided in the above-mentioned embodiments.

[0114] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0115] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0116] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for object posture recognition in a disordered stacking scene, characterized in that: include: Obtain scene images and scene connected point clouds in disordered stacking scenes; Performing target detection on the scene image to obtain a target object region in the scene image, and extracting edge information of the target object in the target object region; Based on the edge information, supervoxel clustering is performed on the scene connected point cloud to obtain a target point cloud of the target object; Extracting target key points in the target point cloud, and coarsely registering the target point cloud with the template point cloud based on the target key points and the template key points in the template point cloud; The target point cloud is uniformly sampled to determine the sampling point cloud, and based on the normal-based adaptive weighted principal component analysis method, the sampling point cloud is applied to accurately align the rough alignment result to obtain the position and posture information of the target object.

2. The object posture recognition method in a disordered stacking scene according to claim 1 is characterized in that: The normal-based adaptive weighted principal component analysis method applies the sampling point cloud to accurately align the rough alignment result to obtain the position and posture information of the target object, including: Determining a weighting coefficient based on the similarity of the normal vector between each sampling point in the sampling point cloud and a neighboring point of the sampling point; Based on the weighting coefficients, a weighted covariance matrix of the sampling point cloud is determined, and eigenvalue decomposition is performed on the weighted covariance matrix to obtain an eigenvector of the weighted covariance matrix; Determining a weighted main direction matrix of the sampling point cloud based on an eigenvector of the weighted covariance matrix and an eigenvector of the covariance matrix of the sampling point cloud; Based on the weighted main direction matrix, the coarse registration result is iteratively optimized to obtain the posture information.

3. The object posture recognition method in a disordered stacking scene according to claim 1 is characterized in that: The step of performing supervoxel clustering on the scene connected point cloud based on the edge information to obtain a target point cloud of the target object includes: Constructing an energy function based on the spatial distance and characteristic attribute distance between each target point in the scene connected point cloud and its corresponding supervoxel center; Using the edge information as a constraint condition, solving the energy function to obtain supervoxels in the scene connected point cloud; Based on the concave-convex criterion, the supervoxels are merged to obtain the target point cloud.

4. The object posture recognition method in a disordered stacking scene according to claim 1, characterized in that: The extracting edge information of the target object in the target object area includes: Extracting multi-dimensional features of the target object area; Based on the multi-dimensional features, an adaptive threshold is calculated, and based on the adaptive threshold, a threshold segmentation is performed on the target object region to obtain a binary image; Based on the binarized image, the edge information is extracted.

5. The method for object posture recognition in a disordered stacking scene according to claim 4, characterized in that: The step of calculating the adaptive threshold based on the multi-dimensional features includes: The response values ​​of the multi-dimensional features of each pixel in the target object area are weighted and summed to obtain the adaptive threshold corresponding to each pixel.

6. The method for object position recognition in a disordered stacking scene according to any one of claims 1 to 5, characterized in that: The performing target detection on the scene image to obtain a target object region in the scene image includes: Performing brightness enhancement on the scene image to obtain an enhanced image; Convert the enhanced image to the HSV color space, and perform dilation and erosion operations and binarization operations on the enhanced image in the HSV color space to obtain the minimum circumscribed rectangle of the target object; The target object area is determined based on the minimum circumscribed rectangle.

7. A method for grasping objects in a disordered stacking scene, characterized in that: include: Determine the pose information of the target object in the scene image in the disordered stacking scene based on the object pose recognition method in the disordered stacking scene according to any one of claims 1 to 6; Based on the position information, the robotic arm is controlled to grasp the target object.

8. The object grabbing method in a disordered stacking scene according to claim 7, characterized in that: The step of controlling the robot arm to grasp the target object based on the posture information includes: Calculate the total number of points in the scene connected point cloud and the number of color block points in different target point clouds, and calculate the average vertical axis height of the different target point clouds; Based on the total number of points and the number of color block points, calculate the density weight scores of the different target point clouds, and based on the average vertical axis height and the highest height in the scene connected point cloud, calculate the height weight score; Determining completeness scores of the different target point clouds based on the density weight score and the height weight score; Based on the completeness score, the grasping priority of the target object corresponding to the different target point clouds is determined, and based on the grasping priority and the posture information, the robotic arm is controlled to grasp the target object.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, it implements the object posture recognition method in the disordered stacking scene as described in any one of claims 1-6, or the object grasping method in the disordered stacking scene as described in any one of claims 7-8.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for recognizing an object posture in a disordered stacking scene as described in any one of claims 1 to 6, or the method for grasping an object in a disordered stacking scene as described in any one of claims 7 to 8 is implemented.

Citation Information

Patent Citations

  • Robot out-of-order target sorting method based on 3D visual clustering and matching

    CN111091062A

  • Method for identifying and positioning tunnel arch surface re-spraying area through anchoring and shotcreting robot

    CN115830042A

  • Airborne laser radar point cloud data registration method and device

    CN117197206A

  • Multi-attitude bolt size measurement method based on three-dimensional point cloud

    CN117372498A

  • Target object position and pose recognition method and device, target object operation method and system, and computer readable medium

    WO2024152235A1

Cited By

  • Spatial pose recognition method and system for disorderly stacked tire skins

    CN119904529A

  • Gripping point pose calculation method based on target detection model and application thereof

    CN120894543A

  • Control method of feeding robot based on multi-modal large model

    CN121179437A