Image completion method, computer and computer-readable storage medium

By constructing and compensating the contour point cloud clusters in the three-dimensional scene, and using the neural network model to restore the complete image of the translucent object, the problem of inaccurate recognition of translucent objects in robot grasping is solved and the accuracy of grasping prediction is improved.

CN117611498BActive Publication Date: 2024-08-23SHENZHEN TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311579818.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-22
Publication Date
2024-08-23
Estimated Expiration
2043-11-22

AI Technical Summary

Technical Problem

It is difficult for existing technology to accurately identify and complete images of translucent objects, resulting in reduced accuracy of robot grasping operations.

Method used

By obtaining the original image in the three-dimensional scene to be completed, the contour point cloud cluster of the object is constructed, and the pre-trained neural network model is used to compensate the depth parameters to restore the complete point cloud image of the translucent object.

Benefits of technology

It improves the accuracy of semi-transparent object recognition and grasp prediction, and solves the problem that transparent or blocked parts cannot be captured in images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117611498B
    Figure CN117611498B
Patent Text Reader

Abstract

The present invention discloses an image completion method, a computer and a computer-readable storage medium, wherein the image completion method comprises: obtaining an original image of an object to be grasped in a three-dimensional scene to be completed; wherein the object to be grasped includes a light-transmitting part and an opaque part along the central axis direction; constructing a contour point cloud cluster of the object to be grasped based on the original image; wherein the contour point cloud cluster at least includes point cloud data of the opaque part of the object to be grasped; inputting the contour point cloud cluster into a pre-trained neural network model to obtain a complete point cloud image; wherein the complete point cloud image includes point cloud data of the light-transmitting part and point cloud data of the opaque part of the object to be grasped. The present invention improves the accuracy of recognizing the light-transmitting object in the image by constructing the contour of the object to be grasped and completing and restoring the complete contour of the object through a neural network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to an image completion method, a computer and a computer-readable storage medium. Background Art

[0002] At present, robots play an important role in the field of automation. With the development of automation, the application of robots is becoming more and more extensive. Machine vision, as the "eyes" of robots, guides robots to achieve intelligent grasping. As a common way for robots to operate objects, object grasping is widely used in many fields such as manufacturing, medical treatment, agriculture, education, and services. In actual operation, object grasping is often a combination of object detection, pose estimation, and grasping prediction. Therefore, how to understand the characteristics of the object to be grasped to obtain a good grasping result is an enduring problem in the field of robotics.

[0003] Many objects in our daily lives have properties that are difficult to observe, such as bottles. Most common bottles in daily life are "translucent": part of the surface is transparent, and the rest is blocked by opaque labels. Because of transparency, part of the surface of translucent objects is usually difficult to observe. Under the camera's shooting, the shape of translucent objects is often incomplete, and generating grasping predictions for the robot gripper based on incomplete shapes will produce a large number of meaningless or infeasible results, affecting the accuracy of the robot's grasping operation.

[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, an object of the present invention is to provide an image completion method, a computer and a computer-readable storage medium, aiming to solve the problem that the images of translucent objects obtained in the prior art are incomplete, affecting the accuracy of object shape recognition, and further reducing the accuracy of robot grasping operations.

[0006] The technical solution of the present invention is as follows:

[0007] A method for image completion, comprising:

[0008] Acquire an original image of an object to be grasped in a three-dimensional scene to be completed; wherein the object to be grasped includes a light-transmitting portion and a light-impermeable portion along a central axis direction;

[0009] Constructing a contour point cloud cluster of the object to be grasped according to the original image; wherein the contour point cloud cluster at least includes point cloud data of the opaque part of the object to be grasped;

[0010] The contour point cloud cluster is input into a pre-trained neural network model to obtain a complete point cloud image; wherein the complete point cloud image includes point cloud data of the light-transmitting part and point cloud data of the opaque part of the object to be grasped.

[0011] In the image completion method, the original image includes a point cloud image; and the step of constructing a point cloud cluster of the contour of the object to be grasped based on the original image specifically includes:

[0012] Denoising the point cloud image to obtain multiple surface point cloud clusters;

[0013] Determine the central axis of each of the surface point cloud clusters, select a number of the surface point cloud clusters with the same central axis, and obtain a collection of point cloud clusters of a single object;

[0014] Construct a contour point cloud cluster according to the point cloud cluster collection.

[0015] In the image completion method, the step of inputting the contour point cloud cluster into a pre-trained neural network model to obtain a complete point cloud image specifically includes:

[0016] Converting the coordinates of the contour point cloud cluster into the coordinate system of the neural network model to obtain a converted point cloud cluster at the origin of the coordinates;

[0017] Determine the central axis of the converted point cloud cluster, and construct a symmetrical surface point cloud cluster according to the central axis of the converted point cloud cluster, and combine the converted point cloud cluster and the symmetrical surface point cloud cluster to obtain an input point cloud cluster; wherein the symmetrical surface point cloud cluster and the converted point cloud cluster are symmetrical about the central axis of the converted point cloud cluster;

[0018] The input point cloud cluster is input into a pre-trained neural network model to obtain a complete point cloud image.

[0019] In the image completion method, the step of inputting the input point cloud cluster into a pre-trained neural network model to obtain a complete point cloud image specifically includes:

[0020] Adding a preset data enhancement point cloud cluster to the input point cloud cluster to construct a latent code of the object to be completed; wherein the data enhancement point cloud cluster includes point cloud data of a number of Gaussian noise points generated at a distance from the input point cloud cluster and point cloud data of a number of Gaussian noise points generated at the origin of the coordinate system, the SDF value of the Gaussian noise points generated at a distance from the input point cloud cluster is set to 1; the SDF value of the Gaussian noise points generated at the origin of the coordinate system is set to -1; the latent code is an invisible expression of the surface information of the object to be completed;

[0021] The latent code is input into a pre-trained neural network model to obtain a complete point cloud image.

[0022] In the image completion method, the neural network model is trained by the following steps:

[0023] Obtaining an original image of an object, performing manual completion based on the original image, and substituting the image into a coordinate system to obtain a label point cloud cluster; wherein the object includes a transparent part and an opaque part;

[0024] At the same time, the original image is input into an initial neural network model to obtain a predicted point cloud cluster; wherein the initial neural network model includes one or more 3D models in the ShapeNet data set;

[0025] According to the comparison between the predicted point cloud cluster and the label point cloud cluster, the parameters of the neural network model are updated to obtain a trained neural network model.

[0026] In the image completion method, the point cloud image is taken by a binocular camera.

[0027] In the image completion method, the original image includes a plurality of 2D images taken at multiple angles around the object to be grasped; the step of constructing a contour point cloud cluster based on the point cloud cluster collection specifically includes:

[0028] Inputting the plurality of 2D images into the NeRF model to obtain a contour image of the object to be grasped;

[0029] Constructing a repair point cloud cluster of the object to be grasped according to the contour image;

[0030] The repaired point cloud cluster and the point cloud cluster collection are combined to construct a contour point cloud cluster.

[0031] The image completion method, wherein after the step of inputting the contour point cloud cluster into a pre-trained neural network model to obtain a complete point cloud image, further comprises:

[0032] Converting the coordinates of the complete point cloud image into the coordinate system of the three-dimensional scene to be completed to obtain a complete point cloud cluster;

[0033] The complete point cloud cluster of each object to be grasped is added to the three-dimensional scene to be completed to obtain a completed three-dimensional scene image.

[0034] The present application also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of any of the above methods when executing the computer program.

[0035] The present application also discloses a computer-readable storage medium on which a computer program is stored, wherein the computer program implements any of the method steps described above when being processed and executed.

[0036] Compared with the prior art, the embodiments of the present invention have the following advantages:

[0037] The image completion method disclosed in the present invention is based on the original image obtained in the three-dimensional scene to be completed, and uses the geometry of the translucent object to preliminarily construct the outline of the object. The bounding box of the object is determined by inferring the detection results and estimating the posture through the shape characteristics of the object to be grasped, and the outline point cloud cluster of the object to be grasped is established; then the depth parameter compensation of the object's outline point cloud cluster is performed through a pre-trained neural network model to restore the complete point cloud image of the translucent object. The problem that the image cannot capture the transparent part or the blocked part of the translucent object is solved, and the object image in the three-dimensional scene is completed with high accuracy, which is conducive to improving the accuracy of identifying translucent objects in the image. When applied to robot grasping work, it can improve the prediction accuracy of the grasping point of the translucent object in the working scene. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0039] Figure 1 is a flow chart of the image completion method of the present invention;

[0040] Figure 2 A flowchart for completing the three-dimensional scene in the present invention;

[0041] Figure 3 is a geometric diagram of an observation point cloud of a single object in the present invention;

[0042] Figure 4 The result diagram of target detection and posture estimation using different methods in the present invention;

[0043] Figure 5 The middle (a) figure is the 3D shape image of the object reconstructed by the latent code after input data enhancement; Figure 5 (b) is the 3D shape image of the object reconstructed by the latent code without data enhancement;

[0044] Figure 6 Figure 2. Grasp prediction results for five objects placed in two reconstructed scenes. DETAILED DESCRIPTION

[0045] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0046] In the prior art, robots need to complete the grasping action in the following order: first capture the image in the scene, then predict the grasping path, and then execute the grasping operation. However, it is often difficult to capture the accurate shape of translucent objects in the scene. For example, when a translucent bottle is photographed with a depth camera, its surface information is seriously missing, which appears as a fragmented point cloud. With the prevalence of deep learning, the prior art has emerged to learn the information of transparent objects in the scene from diverse and large amounts of data to complete the image, but there are still many limitations, such as generalization in real scenes.

[0047] The following describes an image completion method, a computer, and a computer-readable storage medium according to an embodiment of the present application with reference to the accompanying drawings. In view of the problem of inaccurate robot grasping prediction in the related art mentioned in the above background technology, the present application provides an image completion method, which can improve the accuracy of robot grasping prediction by completing the shape of a translucent object to perform three-dimensional scene reconstruction.

[0048] Please also see Figure 1-Figure 6 The present application provides some embodiments of an image completion method, a computer, and a computer-readable storage medium, which detects translucent objects and estimates their pose based on a geometric method, and then belongs to a pre-trained automatic decoder for three-dimensional scene reconstruction.

[0049] See also Figure 1 In one embodiment of the present invention, an image completion method is disclosed, which includes:

[0050] S100, obtaining an original image of an object to be grasped in a three-dimensional scene to be completed; wherein the object to be grasped includes a light-transmitting portion and a light-impermeable portion along a central axis direction;

[0051] S200, constructing a contour point cloud cluster of the object to be grasped according to the original image; wherein the contour point cloud cluster at least includes point cloud data of an opaque part of the object to be grasped;

[0052] S300, inputting the contour point cloud cluster into a pre-trained neural network model to obtain a complete point cloud image; wherein the complete point cloud image includes point cloud data of the light-transmitting part and point cloud data of the opaque part of the object to be grasped.

[0053] The image completion method disclosed in this embodiment can be applied to a scene where several objects (including at least one translucent object to be grasped and other obstructions) are placed, and the grasping prediction of the object to be grasped is output to the robot arm. Figure 2 As shown in Figure (a), based on the original image obtained in the 3D scene to be completed, after clustering segmentation, target detection and posture estimation, the geometry of the semi-transparent object is used to preliminarily construct the outline of the object, and the shape features of the object to be grasped are used to infer the detection results and the estimated posture to determine the bounding box of the object; then Figure 2 As shown in Figure (b), the shape point cloud data of the object to be grasped, i.e., the contour point cloud cluster, is input into an autoencoder equipped with a pre-trained neural network model after data enhancement, and the depth parameter compensation is performed on the contour point cloud cluster of the object to be grasped to restore the complete point cloud image of the translucent object. This solves the problem that the image cannot capture the transparent part or the blocked part of the translucent object, and the object image in the three-dimensional scene is completed with high accuracy, which is conducive to improving the accuracy of identifying translucent objects in the image. When applied to robot grasping work, it can improve the prediction accuracy of the grasping points of translucent objects in the working scene.

[0054] Specifically, as an implementation of this embodiment, it is disclosed that the original image includes a point cloud image; the step S200 specifically includes:

[0055] S211, denoising the point cloud image to obtain multiple surface point cloud clusters;

[0056] S212, determining the central axis of each of the curved point cloud clusters, screening a number of the curved point cloud clusters having the same central axis, and obtaining a collection of point cloud clusters of a single object;

[0057] S213: constructing a contour point cloud cluster according to the point cloud cluster collection.

[0058] The original image disclosed in this embodiment includes a point cloud image, which can be obtained by shooting with a binocular camera. In actual operation, the binocular camera shoots the object to be grasped in the three-dimensional scene from a bird's-eye view. The binocular camera can form a point cloud image of the object, which has more parameter information than a 2D image, can more accurately express the shape of the object, and improve the accuracy of the grasping prediction.

[0059] Since similar objects have similar shapes, for translucent objects with a central axis, such as bottles, cups, etc. Therefore, after acquiring the original image, a single translucent object can be detected based on geometry and its position and posture in the three-dimensional scene can be estimated. For a priori complete shapes of existing translucent objects, such as the real surface model of bottles or cups, similar shape expressions can be reconstructed from incomplete observation data. In addition, in actual operations, stacked objects can also cause occlusion, causing the point cloud of the object to be discontinuous in space, so panoramic reconstruction is required on the original image.

[0060] Specifically, through a fixed binocular camera, we can obtain a scene point cloud of a desktop with several objects placed on it. The several objects may include several translucent objects and other objects that serve as obstructions. Among them, the translucent objects are our grabbing targets. When shooting, the desktop plane φ is perpendicular to the z-axis of the camera coordinate system, and the desktop is downward in the positive direction of the z-axis (because the camera looks down at the desktop). Through z-direction straight-through filtering from the initial scene point cloud PC scene Filter out desktop points PC desktop , the remaining point cloud PC items Contains all objects on the desktop.

[0061] For PC items Use region growing clustering method for segmentation. As a method based on similarity and proximity principles, region growing clustering extracts points from point cloud PC. items A seed point is randomly selected from the cluster, and the similarity between the neighbor and it is calculated. The threshold is used to determine whether the neighbor point is added to the cluster and becomes a new seed point. This process is iterated until no new seed points can be obtained in the region. The curvature difference and normal vector angle between neighboring points are used as the similarity evaluation criteria, and the minimum number of points for each cluster is set, which is conducive to removing PC items After clustering and segmentation, the point cloud PC items Divided into N point cloud clusters Each point cloud cluster The partial observation point cloud of a single translucent object is often composed of at least two parts. For example, the bottle body and the bottleneck of a translucent wine bottle are isolated from each other, and the connecting part is missing due to transparency. Some of the clusters are point clouds of the bottle body or bottleneck. So far, the denoising effect is achieved and multiple surface point cloud clusters are screened out.

[0062] Furthermore, after screening out multiple surface point cloud clusters, the problem of identifying the object to be grasped can be described as matching point cloud clusters The clusters belong to the same object.

[0063] like Figure 3 As shown, Figure 3 The lower right corner indicates the direction of the camera coordinates. No matter which part of the cluster is, it can be fitted into a cylinder. The direction of the central axis of the cylinder is very valuable pose information. Therefore, point cloud C is obtained by fitting the side edges. i The main axis direction of the cylinder is known to be perpendicular to the z-axis, which can be expressed as φ:z = z φ From the point cloud C i Select point P ci-zmin [x p ,y p , z ci-zmin ], where z ci-zmin Representing point cloud C i The minimum value in the z-axis direction. Since the positive direction of the z-axis is downward, we know that P ci-zmin The distance from the desktop plane φ is d Pφ =z φ -z ci-zmin ;P ci-zmin Point cloud C i The point farthest from the desktop plane φ, that is, P ci-zmin It is the highest point of the desktop plane in reality.

[0064] Set a small value σ and take a point z∈[z ci-zmin , z ci-zmin +σ] constitutes the point set C i-edge . Take the point set C i-edge The minimum rectangular bounding box of the bounding box is obtained by taking the major axis l of the bounding box. i-edge The direction vector [x i-edge ,y i-edge , z i-edge ], you can see l i-edge Approximate the side edge of the cylinder. Fit the main axis l of the cylinder parallel to the table plane φ i-edge , get the principal axis l after fitting i-axis , its direction vector can be expressed as [x i-edge ,y i-edge , 0]. Compare point cloud clusters The main axis of different clusters i-axis The direction of the point cloud clusters is similar to that of the two clusters in the direction of the point cloud. Filter and combine into new point cloud clusters That is, the contour point cloud cluster; where M is the number of objects in the three-dimensional scene, PC bottle-j It is the outline point cloud of a single object.

[0065] In general, using the geometric shape features of the object to be grasped to preliminarily construct the object contour is conducive to accurately distinguishing the point cloud clusters of each object photographed from the cluttered scene, thereby establishing a point cloud cluster of the shape of each object, facilitating the subsequent completion of the shape image of the complete object, avoiding identifying one object as multiple objects, or connecting multiple objects into one object, and improving the accuracy of three-dimensional scene reconstruction.

[0066] Specifically, as another implementation of this embodiment, it is disclosed that the original image includes multiple 2D images shot at multiple angles around the object to be grasped; the step S213 specifically includes:

[0067] S2131, inputting the plurality of 2D images into the NeRF model to obtain a contour image of the object to be grasped;

[0068] S2132, constructing a repair point cloud cluster of the object to be grasped according to the contour image;

[0069] S2133: Construct a contour point cloud cluster by combining the repaired point cloud cluster and the point cloud cluster collection.

[0070] In this embodiment, the NeRF model in the related technology is used to shoot the object to be grasped from multiple angles, and the three-dimensional outline of the object, that is, the outline image, is generated through multiple 2D images. However, the outline image repaired by the NeRF model is relatively rough, so the repaired point cloud cluster constructed after the outline image is rendered and converted is not fine enough and can only be used as a supplement to the point cloud cluster collection. The repaired point cloud cluster and the point cloud cluster collection are combined together to generate a contour point cloud cluster, and the data of the obtained contour point cloud cluster is highly accurate. Then, it is brought into the pre-trained neural network model, which can also restore the shape image of the translucent object with high precision, so as to improve the rationality of the grasping prediction.

[0071] Specifically, as another implementation of this embodiment, step S300 is disclosed to specifically include:

[0072] S310, converting the coordinates of the contour point cloud cluster into the coordinate system of the neural network model to obtain a converted point cloud cluster at the coordinate origin;

[0073] S320, determining the central axis of the converted point cloud cluster, and constructing a symmetrical surface point cloud cluster according to the central axis of the converted point cloud cluster, and combining the converted point cloud cluster and the symmetrical surface point cloud cluster to obtain an input point cloud cluster; wherein the symmetrical surface point cloud cluster and the converted point cloud cluster are symmetrical about the central axis of the converted point cloud cluster;

[0074] S330, inputting the input point cloud cluster into a pre-trained neural network model to obtain a complete point cloud image.

[0075] In this embodiment, an automatic decoder from DeepSDF is pre-trained to complete the contour point cloud cluster. The coordinates in are generated in the 3D scene to be completed, and in the neural network model, the object needs to be placed at the origin of the coordinates for completion. Therefore, in order to facilitate the reconstruction of the complete point cloud image of the object after completion, it is necessary to clarify the initial position of the object to be grasped. The details are as follows:

[0076] Building a Point Cloud PC bottle-j The minimum rectangular bounding box of j-bb ,y j-bb , z j-bb ] Take the point cloud PC bottle-j The minimum z coordinate in pcj-zmin , and let the center of the minimum rectangular bounding box be [x j-bb ,y j-bb , (z pcj-zmin +z φ ) / 2]. It can be obtained by point cloud PC bottle-j The direction of the cluster is equivalent to the main axis l of the object to be grasped bottle-j , through the main axis l bottle-j The direction vector of can estimate the pose of the object to be grasped. Then, the contour point cloud cluster The coordinates of the point are converted into the coordinates at the origin to obtain a converted point cloud cluster for subsequent input into the neural network model for optimization.

[0077] In addition, during the actual shooting, the original image is shot from above, so the captured image can only cover less than 180° of the object surface. That is to say, the point cloud clusters are concentrated on the upper side of the object, and there is no shape expression for the lower side of the object. At least half of the object to be grasped is not in the contour point cloud cluster. In addition, the contour point cloud cluster itself is composed of multiple isolated clusters. Therefore, compared with the real complete model, the contour point cloud cluster still loses a lot of surface information.

[0078] Using the rotational symmetry brought by the geometric shape of the object to be grasped, the contour point cloud cluster on the upper side of the object has been obtained. Under the condition of , taking the midline axis of the object to be grasped as the symmetry axis, a symmetrical surface point cloud cluster can be constructed, that is, the shape expression of the other side; as the expression of the approximate outline of the other side of the object, the conversion point cloud cluster and the symmetrical surface point cloud cluster are combined to obtain a more accurate shape expression of the object to be grasped. The combination of this pair of symmetrical bodies has a more "closed" shape, which helps to express a more "balanced" surface. When input into the neural network model, it is easier to distinguish the inside and outside of the object, thereby improving the accuracy of the final completed image.

[0079] Specifically, as another implementation of this embodiment, step S330 is disclosed to specifically include:

[0080] S331, adding a preset data enhancement point cloud cluster to the input point cloud cluster to construct a latent code of the object to be completed; wherein the data enhancement point cloud cluster includes point cloud data of a number of Gaussian noise points generated at a distance from the input point cloud cluster and point cloud data of a number of Gaussian noise points generated at the origin of the coordinate system, the SDF value of the Gaussian noise points generated at a distance from the input point cloud cluster is set to 1; the SDF value of the Gaussian noise points generated at the origin of the coordinate system is set to -1; the latent code is an invisible expression of the surface information of the object to be completed;

[0081] S333, inputting the latent code into a pre-trained neural network model to obtain a complete point cloud image.

[0082] The input point cloud cluster disclosed in this embodiment is converted from the point cloud cluster of the object to be grasped, which includes several discontinuous point cloud clusters. Therefore, when completing in the neural network model, it is possible that the inside and outside of the object cannot be recognized, which will affect the final completed point cloud image.

[0083] In order to reduce misjudgment, a data-enhanced point cloud cluster is added to the input point cloud cluster. The characteristics of the DeepSDF model are used to express the shape of the object using the spatial positions of a large number of points and the SDF values ​​of these points. The SDF value describes the minimum relative distance between a point in space and the surface of the object. SDF(·)=0 can be regarded as an invisible expression of the surface of the object. In other words, the SDF value of the surface of the object is 0, the SDF value of the center of the object is -1, and the SDF value of the position far away from the origin of the coordinate is 1; the Gaussian noise points generated at a distance from the origin of the coordinate are obviously located outside the object, so the SDF value is set to 1; the Gaussian noise points generated at the origin of the coordinate are obviously located inside the object, and the SDF value is set to -1. Finally, adding the data-enhanced point cloud cluster to the input point cloud cluster can enable the neural network model to more accurately judge the inside and outside of the object and avoid generating an erroneous model. Inputting the combined latent code into the neural network model can obtain a complete point cloud image with high accuracy, which is conducive to accurately judging the shape of the object and improving the accuracy of the grasping prediction.

[0084] In this embodiment, the known point cloud PC bottle-j The center of the minimum rectangular bounding box [x j-bb ,y j-bb , (z pcj-zmin +z φ ) / 2] and the main axis l bottle-j Under the premise of the direction vector, the point cloud PC is transformed by translating and rotating in the coordinate system. bottle-jMove to the origin of the camera coordinate system, make the main axis direction consistent with the y-axis, and process the point cloud PC bottle-j Set as right Normalization is performed; wherein the following relationship is satisfied:

[0085]

[0086] in, is the normalized point cloud, K×3 represents There are K points in and for The maximum and minimum values ​​along the y-axis.

[0087] Then Get symmetrical point cloud about y axis Get the input point cloud cluster. Finally set and The SDF value of these points is 0. Adding data-enhanced point cloud clusters to construct latent codes helps the neural network model better understand the "inside" and "outside" of the object and avoid the double-layer situation in the reconstruction result.

[0088] Specifically, as another implementation of this embodiment, it is disclosed that the neural network model is trained by the following steps:

[0089] A100, obtaining an original image of an object, performing manual completion based on the original image, and substituting the image into a coordinate system to obtain a label point cloud cluster; wherein the object includes a transparent part and an opaque part;

[0090] A200, simultaneously inputting the original image into an initial neural network model to obtain a predicted point cloud cluster; wherein the initial neural network model includes one or more 3D models in the ShapeNet data set;

[0091] A300. According to the comparison between the predicted point cloud cluster and the label point cloud cluster, the parameters of the neural network model are updated to obtain a trained neural network model.

[0092] The neural network model disclosed in this embodiment uses some real translucent object models as training data sets, such as bottles or wine glasses. Specifically, one or more 3D models in the ShapeNet data set are selected as training data to construct an initial neural network model. After obtaining the original image of the object, the labeled point cloud cluster can be manually completed according to the model of the object, which is a complete and accurate shape expression; at the same time, the original image is input into the initial neural network model, and the parameters of the neural network model are continuously updated by comparing the output predicted point cloud cluster and the labeled point cloud cluster, and finally the neural network model is trained to obtain the difference between the predicted point cloud cluster and the labeled point cloud cluster within a reasonable threshold range.

[0093] For example Figure 2 As shown in Figure (C), as another implementation of this embodiment, after the step S300, the following is further included:

[0094] S400, converting the coordinates of the complete point cloud image into the coordinate system of the three-dimensional scene to be completed, to obtain a complete point cloud cluster;

[0095] S500: Add the complete point cloud cluster of each object to be grasped to the three-dimensional scene to be completed, to obtain a completed three-dimensional scene image.

[0096] In this embodiment, the latent code is constructed and input into the pre-trained neural network model to obtain a complete point cloud. Then use the complete point cloud Replace the initial 3D scene PC to be completed scene Initial point cloud PC bottle-j , get the completed 3D scene after panoramic reconstruction Then, through the model derived from GraspNet-1billion Predict grasping postures in the process and deploy the obtained reasonable grasping predictions to the robot system.

[0097] The GraspNet-1billion model provides a large-scale grasping posture detection dataset, and the model it provides is suitable for scenes with cluttered objects.

[0098] Specifically, the recommended gripper posture obtained by the grasp prediction model is expressed in the camera coordinate system as in is the rotation matrix of the gripper, is the position of the gripper. Furthermore, the gripper posture needs to be converted to the world coordinate system where the robot is located so that the robot system can plan the motion path. The gripper posture in the world coordinate system The acquisition is as follows:

[0099]

[0100]

[0101] in, is the camera's extrinsic matrix, is the offset from the camera to the robot base.

[0102] In summary, in order to realize the grasping of translucent objects, the architecture proposed in the embodiment of this application breaks down the task into three parts: (1) detecting translucent objects in a cluttered 3D scene to be completed and estimating their pose; (2) reconstructing the 3D complete shape of the translucent object based on a partial observation point cloud; (3) placing the completed 3D complete shape into the 3D scene to realize panoramic reconstruction and improve the accuracy of grasping prediction. Another implementation method of this embodiment discloses experiments on these three parts to prove the effectiveness of the methods of each part:

[0103] (1) Identify translucent objects and estimate their pose

[0104] The method of first performing 2D image segmentation and then mapping the result to a 3D point cloud is compared with the method of end-to-end pose estimation network on cluttered scenes. Figure 4 As shown, the recognition results of the three methods are compared, among which method one is the image completion method disclosed in this embodiment; method two is a method of first performing 2D image segmentation and then mapping the result to a 3D point cloud; method three is an end-to-end pose estimation network method. It can be seen that the end-to-end pose estimation network is completely unable to recognize objects in cluttered scenes. It can be seen that the generalization ability of the network trained for specific objects on a specific data set is poor; the method of using 2D image segmentation and then mapping the result to a 3D point cloud can recognize different targets, but it is ineffective for cluttered scenes with occlusions; the image completion method disclosed in this embodiment can correctly identify different target objects in two different scenes, and is not affected by occlusions. It can be seen that for translucent bottles with fewer shape details, a quick and effective recognition method is disclosed in this embodiment.

[0105] (2) Reconstruct the complete 3D shape of the translucent object based on the partial observation point cloud

[0106] In the process of constructing the latent code, the image completion method disclosed in this application mainly performs two types of data enhancement: one is to make the point cloud observed on one side of the object rotationally symmetric. The input after symmetric processing has more robust object surface shape information, which can obviously construct a more "closed" input object shape; the second is to add Gaussian noise points far away from the object surface (SDF=1) and close to the object center (SDF=-1) according to the definition of the SDF value.

[0107] The latent code directly constructed from the target observation point cloud and the latent code after data enhancement are used as input respectively, and the 3D shape of the object is reconstructed using the automatic decoder in the middle of training. The relatively small number of iterations of the automatic decoder in the middle of training means that the network is slightly overfitted. The results are shown in Figure 5 As shown, Figure 5 (a) shows the 3D shape of the object reconstructed by the latent code after data enhancement; Figure 5 Figure (b) shows the 3D shape of the object reconstructed by the latent code without data enhancement. It can be seen that the reconstruction result of the latent code with array enhancement has a better shape than that of the input without enhancement, which shows that symmetry helps to stabilize the reconstruction process.

[0108] In addition, the difference between data enhancement and non-enhancement in this application is also reflected in the fact that there are a large number of "inside points" wrapped by the surface in the reconstructed shape of the latent code without enhancement, which means that it is difficult for the decoder to distinguish the "inside" and "outside" of the target object during reconstruction. This phenomenon does not exist after enhancement, indicating that the addition of extreme position noise helps the neural network model understand whether the position relationship of the spatial point relative to the surface of the object is inside or outside.

[0109] (3) Place the completed 3D shape into the 3D scene to achieve panoramic reconstruction and improve the accuracy of grasp prediction.

[0110] Compare the capture predictions of the scene with and without panoramic reconstruction, and visualize the results as follows Figure 6 As shown, Figure 6 Figures (a) and (b) are respectively the grasp prediction results of five objects placed in two reconstructed scenes, where both object 3 and object 5 are partially occluded. It can be seen that the results in two different scenes are similar: first, the unreconstructed incomplete shape will mislead the grasp prediction and generate some labels that are impossible to achieve in reality; second, the lack of potential graspable parts of the target causes some labels in the unreconstructed scene to be generated on irrelevant objects such as occluders. Therefore, in comparison, the results of the panoramic reconstruction scene achieved by the image completion method disclosed in this embodiment can achieve more reasonable grasp prediction.

[0111] In addition, the probability of rationality of grasp predictions for different target objects in different scenes is statistically analyzed. This probability can be understood as the feasibility of the generated grasp prediction in reality and the judgment of whether the prediction is targeted. The results are shown in Table 1.

[0112] Table 1 Probability of feasible crawl prediction

[0113]

[0114] Combination Figure 6From Table 1, it can be found that the overall rationality probability of the grasp prediction is improved due to the use of the image completion method disclosed in this embodiment for 3D shape reconstruction, and this improvement is more significant for occluded objects (object 3 and object 5).

[0115] As another embodiment of the present application, a computer device is disclosed, including a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of any of the above methods when executing the computer program.

[0116] As another embodiment of the present application, a computer-readable storage medium is disclosed, on which a computer program is stored, wherein the computer program implements any of the method steps described above when being processed and executed.

[0117] In summary, the present application discloses an image completion method, which includes: S100, obtaining an original image of an object to be grasped in a three-dimensional scene to be completed; wherein the object to be grasped includes a transparent part and an opaque part along the central axis direction; S200, constructing the contour of the object to be grasped based on the original image, and obtaining a contour point cloud cluster; wherein the contour point cloud cluster at least includes the point cloud data of the opaque part of the object to be grasped; S300, inputting the contour point cloud cluster into a pre-trained neural network model to obtain a complete point cloud image; wherein the complete point cloud image includes the point cloud data of the transparent part and the point cloud data of the opaque part of the object to be grasped. The image completion method disclosed in this embodiment is based on the original image obtained in the three-dimensional scene to be completed, and the geometry of the translucent object is used to preliminarily construct the contour of the object, and the bounding box of the object is determined by reasoning the detection result and the estimated posture of the shape feature of the object to be grasped; and then the depth parameter compensation of the contour of the object is performed through the pre-trained neural network model to restore the complete image of the translucent object. In general, the image completion method disclosed in this embodiment performs panoramic reconstruction of the three-dimensional scene, enhances the usability of grasping prediction, and solves the problem of inaccurate grasping prediction of semi-transparent objects in robot grasping work.

[0118] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.

[0119] It should be noted that the present invention takes the image completion method in robot grasping work as an example to introduce the specific structure and working principle of the present invention, but the application of the present invention is not limited to the image completion method in robot grasping work, and can also be generalized to other similar usage scenarios.

[0120] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

[0121] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. An image completion method, characterized in that: include: Acquire an original image of an object to be grasped in a three-dimensional scene to be completed; wherein the object to be grasped includes a light-transmitting portion and a light-impermeable portion along a central axis direction; Constructing a contour point cloud cluster of the object to be grasped according to the original image; wherein the contour point cloud cluster at least includes point cloud data of the opaque part of the object to be grasped; Inputting the outline point cloud cluster into a pre-trained neural network model to obtain a complete point cloud image; wherein the complete point cloud image includes point cloud data of a light-transmitting part and point cloud data of an opaque part of the object to be grasped; The step of inputting the contour point cloud cluster into a pre-trained neural network model to obtain a complete point cloud image specifically includes: Converting the coordinates of the contour point cloud cluster into the coordinate system of the neural network model to obtain a converted point cloud cluster at the origin of the coordinates; Determine the central axis of the converted point cloud cluster, and construct a symmetrical surface point cloud cluster according to the central axis of the converted point cloud cluster, and combine the converted point cloud cluster and the symmetrical surface point cloud cluster to obtain an input point cloud cluster; wherein the symmetrical surface point cloud cluster and the converted point cloud cluster are symmetrical about the central axis of the converted point cloud cluster; Adding a preset data enhancement point cloud cluster to the input point cloud cluster to construct a latent code of the object to be completed; wherein the data enhancement point cloud cluster includes point cloud data of a number of Gaussian noise points generated at a distance from the input point cloud cluster and point cloud data of a number of Gaussian noise points generated at the origin of the coordinate system, the SDF value of the Gaussian noise points generated at a distance from the input point cloud cluster is set to 1; the SDF value of the Gaussian noise points generated at the origin of the coordinate system is set to -1; the latent code is an invisible expression of the surface information of the object to be completed; The latent code is input into a pre-trained neural network model to obtain a complete point cloud image.

2. The image completion method according to claim 1, characterized in that: The original image includes a point cloud image; the step of constructing the contour point cloud cluster of the object to be grasped based on the original image specifically includes: Denoising the point cloud image to obtain multiple surface point cloud clusters; Determine the central axis of each of the surface point cloud clusters, select a number of the surface point cloud clusters with the same central axis, and obtain a collection of point cloud clusters of a single object; Construct a contour point cloud cluster according to the point cloud cluster collection.

3. The image completion method according to claim 2, characterized in that: The neural network model is trained by the following steps: Obtaining an original image of an object, performing manual completion based on the original image, and substituting the image into a coordinate system to obtain a label point cloud cluster; wherein the object includes a transparent part and an opaque part; At the same time, the original image is input into an initial neural network model to obtain a predicted point cloud cluster; wherein the initial neural network model includes one or more 3D models in the ShapeNet data set; According to the comparison between the predicted point cloud cluster and the label point cloud cluster, the parameters of the neural network model are updated to obtain a trained neural network model.

4. The image completion method according to claim 2, characterized in that: The point cloud image is taken by a binocular camera.

5. The image completion method according to claim 2, characterized in that: The original image includes a plurality of 2D images taken at multiple angles around the object to be grasped; the step of constructing a contour point cloud cluster based on the point cloud cluster collection specifically includes: Inputting the plurality of 2D images into the NeRF model to obtain a contour image of the object to be grasped; Constructing a repair point cloud cluster of the object to be grasped according to the contour image; The repaired point cloud cluster and the point cloud cluster collection are combined to construct a contour point cloud cluster.

6. The image completion method according to claim 1, characterized in that: After the step of inputting the contour point cloud cluster into a pre-trained neural network model to obtain a complete point cloud image, the method further includes: Converting the coordinates of the complete point cloud image into the coordinate system of the three-dimensional scene to be completed to obtain a complete point cloud cluster; The complete point cloud cluster of each object to be grasped is added to the three-dimensional scene to be completed to obtain a completed three-dimensional scene image.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is processed and executed, the method steps described in any one of claims 1 to 6 are implemented.