Pose estimation method for calculating bone far point based on object surface

By calculating the pose estimation method of the far point of the skeleton based on the object surface, the problem in the existing technology that it is difficult to balance the recognition speed and accuracy when the occlusion rate is high is solved, and efficient pose estimation under high occlusion rate is achieved.

CN118628684APending Publication Date: 2024-09-10SHENYANG UNIVERSITY OF TECHNOLOGY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410799712.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing pose estimation methods cannot take into account both recognition accuracy and recognition speed when the occlusion rate is high.

Method used

The pose estimation method is used to calculate the far points of bones based on the surface of the object. The three-dimensional point cloud model of the object is obtained for meshing, hierarchical division, bone point extraction and curvature calculation, and the point pair feature template is matched to determine the pose.

Benefits of technology

In the case of high occlusion rate, the recognition speed is improved while maintaining a high recognition accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628684A
    Figure CN118628684A
Patent Text Reader

Abstract

The invention relates to the technical field of machine vision, and provides a pose estimation method for calculating a bone far point based on an object surface, which comprises the following steps of: gridding a three-dimensional point cloud model to obtain a three-dimensional grid set; dividing the hierarchy of each grid in the three-dimensional grid set to obtain a hierarchical grid model; acquiring skeleton points of each layer of grids in the hierarchical network model to obtain model skeletons; bone far points in all directions of the three-dimensional point cloud model are obtained, all the bone far points serve as the circle centers and are connected with all the bone points in the model bone, the three-dimensional point cloud model is cut with the distance between the bone far points and the bone points as the radius, and a bone far point model is obtained; calculating the curvature of each point cloud in each local model, and extracting a plurality of first points with relatively high curvature value ranking as a feature point set of each local model; and point pair feature template matching is performed on each local model to determine the pose, so that the recognition accuracy is relatively high, and the recognition speed is relatively high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine vision technology, and in particular to a method for estimating the position and posture of a skeleton far point based on the surface of an object. Background Art

[0002] The booming intelligent industry represented by robotics technology has become an important symbol of technological innovation in the current era. As a key technology for industrial production through measurement, machine vision has derived many application fields, among which the use of optical instruments to measure object features and poses and to achieve object pose estimation has become a hot topic in the field of vision in actual production.

[0003] The pose estimation method in the related art has the technical problem of not being able to balance recognition accuracy and recognition speed when the occlusion rate is high. For example, the EPPF algorithm has good recognition accuracy but slow recognition speed; and the Halcon algorithm has a higher recognition speed than the EPPF algorithm but low recognition accuracy.

[0004] Therefore, how to provide a new pose estimation method that can improve the recognition speed while ensuring high recognition accuracy under high occlusion rates has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The purpose of the present invention is to provide a method for posture estimation based on calculating the far point of the skeleton on the surface of an object, so as to solve the problem that the posture estimation method in the prior art cannot take into account both recognition accuracy and recognition speed when the occlusion rate is high.

[0006] In order to achieve the above-mentioned purpose, the present invention provides a method for estimating the posture of a skeleton based on the surface of an object. The method comprises the following steps: obtaining a three-dimensional point cloud model of the object; meshing the three-dimensional point cloud model to obtain a three-dimensional grid set including a plurality of grids; dividing the levels of each grid in the three-dimensional grid set to obtain a hierarchical grid model; obtaining the skeleton points of each layer of the grid in the hierarchical network model to obtain a model skeleton; obtaining the skeleton far points in each direction of the three-dimensional point cloud model, connecting each skeleton far point with each skeleton point in the model skeleton with each skeleton far point as the center of the circle, cutting the three-dimensional point cloud model with the distance between the skeleton far points as the radius to obtain a skeleton far point model including a plurality of local models; calculating the curvature of each point cloud in each local model, extracting the first several points with a higher curvature value ranking as the feature point set of each local model; performing point-to-feature template matching on each local model to determine the posture.

[0007] Furthermore, the method for meshing the three-dimensional point cloud model specifically includes: performing three-dimensional mesh segmentation on the object point cloud model, dividing each mesh into a number of blocks according to the XYZ direction, each block is a cube, and taking equal lengths for segmentation, the segmentation length is L; determining the number of three-dimensional small cubes according to the XYZ length of the model point cloud, which is expressed as follows:

[0008]

[0009] Voxel(p)=voxel[X][Y][Z]

[0010] Among them, x p ,y p ,z p Indicates the coordinate values ​​of a point P in the point cloud in the X, Y, and Z directions;

[0011] min x ,min y ,min z Respectively represent the minimum coordinate values ​​of the point cloud in the X, Y, and Z directions;

[0012] L voxel Represents the side length of the three-dimensional grid. All three-dimensional grids are cubes with equal side lengths.

[0013] INT: indicates the rounding function, which converts the calculation result into the maximum integer not greater than this value;

[0014] X, Y, Z represent the indices of the voxels corresponding to point P in the X, Y, and Z directions;

[0015] Voxel(p) represents the voxel where point P is located;

[0016] voxel[X][Y][Z] represents the voxel at index [X][Y][Z] in the 3D voxel grid.

[0017] Furthermore, the pose estimation method also includes the following steps: after gridding the model, the coordinates of the point clouds in each grid are merged with the normal vectors, wherein the center of the grid is uniformly taken as the grid coordinate regardless of the number of point clouds in the grid, and the normal vector of the grid is taken as the arithmetic mean of the normal vectors of all point clouds in the grid.

[0018] Furthermore, the method for dividing the levels of each grid in the three-dimensional grid set specifically includes: in the three-dimensional grid set, all grids with more than one point cloud in the grid become first-level grids, all non-first-level grids become zero-level grids, and all zero-level grids adjacent to the first-level grids are traversed to become first-level neighborhood grids. Among all first-level neighborhood grids, those without first-level grid normal vectors become second-level grids, and all grids pointed by first-level grids are -1-level grids. Once they become -1-level grids, they will no longer participate in the traversal. The coordinates of the second-level grids are also the coordinate center, and the normal vector is the average of the normal vectors of all adjacent first-level grids. After finding all the second-level grids adjacent to the first-level grids, find all the zero-level grids adjacent to the second-level grids to confirm the third-level grids, and continue in this way until there are no zero-level grids inside the hierarchical grid model.

[0019] Furthermore, the method for obtaining the skeleton points of each layer of the grid in the hierarchical network model specifically includes: taking the innermost grid as the center, performing calculations with the second inner layer according to certain rules, finding the points of each second inner layer that are farther away from the innermost layer, traversing all second inner layer points, calculating the distances to all the closest points in the innermost layer, sorting them, taking the farthest point as the second inner layer skeleton point a, making a sphere with the skeleton point a as the center and r as the radius, excluding all points in the sphere from participating in the next round of calculations, continuing to calculate the point farthest from the innermost point as the skeleton point b among the remaining second inner layer points, excluding the second inner layer points with b as the center and r as the radius, and continuing to search for skeleton points until all remaining points are less than a certain threshold ζ, then the found a, b... points are the second inner layer skeleton points, and in this way, the corresponding skeleton points are found in each layer from the second inner layer to the outside, and the skeleton points of each layer are linked nearest according to the hierarchy to obtain the model skeleton.

[0020] Furthermore, the method for obtaining the skeletal far points in various directions of the three-dimensional point cloud model specifically includes: the skeletal far point refers to the point in the three-dimensional point cloud model, which starts from the center point of the point cloud model and reaches the end direction of the three-dimensional point cloud model through the neighborhood walking rule and cost calculation. The skeletal far point is the point farthest from the center point of the model and has the highest cost, and turning back is not allowed on the path.

[0021] Furthermore, the method of performing point-pair feature template matching on each local model to determine the posture specifically includes: performing PPF model training according to the multiple local models cut out, and storing the point-pair feature calculation results in a hash table respectively; performing preprocessing in the scene matching stage, selecting points with higher curvature through point cloud curvature competition before sampling the scene model, and then performing PPF matching; in the training stage, first downsampling the model, and after sampling, performing point-pair feature calculation on all point pairs of all sampling points, and storing all point-pair features in a hash table; in the matching stage, downsampling the scene, and after downsampling, performing point-pair feature calculation on all point pairs, finding corresponding values ​​for all point-pair features in the scene in the training hash table, and then calculating the final posture of the object based on generalized Hough transform voting, posture clustering, and ICP.

[0022] The technical solution of the present invention solves the problem of balancing recognition accuracy and recognition speed. The three-dimensional point cloud model of the object is first divided into multiple local models, and then local matching of each local model is performed. In the case of a high occlusion rate, the recognition speed can be improved while ensuring a high recognition accuracy.

[0023] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0025] Figure 1 A flow chart of a method for estimating the position and posture of a skeleton far point based on the object surface provided by an optional embodiment of the present invention;

[0026] Figure 2 An object collapses inwards to obtain a level diagram for an optional embodiment of the present invention;

[0027] Figure 3 A diagram of the skeleton and far point feature generation process provided by an optional embodiment of the present invention; wherein (a) is a hierarchical mesh model; (c) is a model skeleton; (b) is an intermediate state between (a) and (c); (d) is a skeleton far point model;

[0028] Figure 4 A schematic diagram of an improved point pair feature algorithm based on bone distal cutting provided in an optional embodiment of the present invention;

[0029] Figure 5 A point pair feature definition diagram provided for an optional embodiment of the present invention;

[0030] Figure 6 A schematic diagram of point-to-point feature calculation optimization provided by an optional embodiment of the present invention;

[0031] Figure 7 A schematic diagram of neighborhood walking rules and cost calculation principles in a three-dimensional point cloud model provided in an optional embodiment of the present invention. DETAILED DESCRIPTION

[0032] 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 embodiments of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention. Unless otherwise specified, the technical means used in the embodiments are conventional means well known to those skilled in the art.

[0033] The object pose estimation system usually includes visual measurement, point cloud generation, point cloud segmentation, model building, template matching and other technologies. The present invention patent belongs to a method of workpiece assembly in the field of machine vision. In particular, the present invention patent involves target measurement, point cloud generation, internal filling, skeleton extraction, feature extraction, pose estimation and other methods.

[0034] Existing technical solutions include the patent with publication number CN107038753B. According to the description of the patent, the technologies used in 3D reconstruction include visual measurement, camera pose relationship, feature matching, image stitching, etc. It performs visual measurement of the object to be measured at different angles, calculates the camera pose relationship, and realizes 3D object reconstruction through the pose relationship and the features of the captured image. Although it also bypasses the hand-eye calibration link and is technically simpler, its application range is limited. If the features of the object to be measured are not obvious, the reconstruction will most likely fail.

[0035] The present invention designs a method for estimating the posture of the skeleton far point based on the calculation of the object surface; the method first grids the model, determines the internal grid level of the model according to the relationship between the grid model and the grid, determines the model skeleton according to the grid level relationship, and then cuts and screens the model according to the distal end of the skeleton, combines the curvature features to obtain a partial model with more feature retention, and then performs point-to-feature template matching on the partial model to determine the posture.

[0036] The present invention designs a skeleton far point feature extraction method based on point cloud, extracts the features of an object according to the combination of far point and curvature, and quickly estimates the object's posture according to the features. The method is simpler to operate, faster and more accurate.

[0037] This invention patent introduces a method for object pose estimation based on extracting object features from the far point of the skeleton combined with curvature. The method mainly consists of 6 steps:

[0038] Step 1: Segment the object point cloud model into 3D grids, and divide each grid into several blocks according to the XYZ direction. Each block is a cube, and the segmentation length is L. Then determine the number of 3D small cubes according to the XYZ length of the model point cloud;

[0039] Step 2: After meshing the model, merge the coordinates and normal vectors of the point clouds in each mesh. Regardless of the number of point clouds in the mesh, the center of the mesh is taken as the mesh coordinate, and the normal vector of the mesh is taken as the arithmetic average of the normal vectors of all the point clouds in the mesh.

[0040] Step 3: Determine the internal mesh level of the model based on the mesh model and mesh relationship. In this 3D mesh set, all meshes with more than one point cloud are called first-level meshes, and all non-first-level meshes are called zero-level meshes. Traverse all zero-level meshes adjacent to the first-level mesh to become first-level neighborhood meshes. Among all first-level neighborhood meshes, those without a first-level mesh normal vector pointing to them become second-level meshes.

[0041] Step 4: Generate the workpiece skeleton model according to the grid level, link each layer of skeleton points according to the level to get the model skeleton, take the skeleton of the outermost layers of the model as the center of the circle, and use R as the radius to cut the original model point cloud to get the skeleton far point model.

[0042] Step 5: Take the far point of the skeleton according to the skeleton model and extract the object features in combination with the curvature. Perform PPF model training according to the 6 parts cut out, and store the point pair feature calculation results in the hash table. Preprocessing is also performed in the scene matching stage. Before sampling the scene model, the points with higher curvature are selected through the point cloud curvature match, and then PPF matching is performed;

[0043] Step 6: Perform object template matching based on the extracted features. For a reference point (sr) in the scene, pair it with other points (si) in the scene, calculate the metric function (F), search the hash table, find the reference point (mr) in the model, and other points (mi) in the model, and perform the transformation.

[0044] The six basic steps are detailed below:

[0045] Step 1: Before downsampling the model, extract the local features of the model, retain most of the more characteristic parts of the model, and remove the parts with fewer features. Generally, the end parts of objects have obvious features, so we use a method to calculate the end of the object's skeleton to find the end of the object. The skeleton algorithm is introduced below. First, a model is divided into three-dimensional grids, and each grid is divided into several blocks according to the XYZ direction. Each block is a cube, and the equal length is taken for segmentation, and the segmentation length is L. Then the number of three-dimensional small cubes is determined according to the XYZ length of the model point cloud, as shown below:

[0046]

[0047] Voxel(p)=voxel[X][Y][Z]

[0048] x p ,y p ,z p Indicates the coordinate values ​​of a point P in the point cloud in the X, Y, and Z directions.

[0049] min x ,min y ,min z Respectively represent the minimum coordinate values ​​of the point cloud in the X, Y, and Z directions.

[0050] L voxel Represents the side length of a three-dimensional grid (voxel). All three-dimensional grids (voxels) are cubes with equal side lengths.

[0051] INT: represents the rounding function, which converts the calculation result into the maximum integer not greater than this value.

[0052] X, Y, Z: represents the index of the voxel corresponding to point P in the X, Y, and Z directions.

[0053] Voxel(p) represents the voxel where point P is located.

[0054] voxel[X][Y][Z] represents the voxel at index [X][Y][Z] in the 3D voxel grid.

[0055] Step 2: After meshing the model, merge the coordinates and normal vectors of the point clouds in each mesh. Regardless of the number of point clouds in the mesh, the center of the mesh is taken as the mesh coordinate, and the normal vector of the mesh is taken as the average value of the normal vectors of all the point clouds in the mesh.

[0056] Step 3: In this three-dimensional grid set, all grids with more than one point cloud are called first-level grids, and all non-first-level grids are called zero-level grids. All zero-level grids adjacent to the first-level grids are traversed to become first-level neighborhood grids. Among all first-level neighborhood grids, those without first-level grid normal vectors are called second-level grids, and all grids pointed by first-level grids are -1-level grids. If they become -1-level grids, they will never participate in the traversal. The coordinates of the second-level grids are also the coordinate center, and the normal vector is the average of the normal vectors of all adjacent first-level grids. After finding all the second-level grids adjacent to the first-level grids, find all the zero-level grids adjacent to the second-level grids to confirm the third-level grids, and continue in this way until there are no zero-level grids in the model.

[0057] Step 4: When there is no zero-level grid inside the first-level grid, the model will be filled with grids layer by layer. Starting from the innermost grid as the center, a certain rule calculation is performed with the second inner layer to find the point (grid center coordinate) farthest from the innermost layer in each second inner layer. All the second inner layer points are traversed, and the distances to all the closest points in the innermost layer are calculated and sorted. The farthest point is taken as the second inner layer skeleton point a. A sphere is made with the skeleton point a as the center and r as the radius. All points in the sphere are excluded and no longer participate in the next round of calculation. The point farthest from the innermost point is the bone point b in the next innermost point, and the point with b as the center and r as the radius is excluded. The bone points are continued to be found until all the remaining points are less than a certain threshold value ζ. Then the points a, b... found are the second innermost bone points. In this way, the corresponding bone points are found in each layer from the second innermost layer to the outside. The bone points of each layer are linked to the nearest layer according to the level to obtain the model skeleton. The bones of the outermost layers of the model are taken as the center of the circle and R is the radius to cut the original model point cloud to obtain the skeleton far point model.

[0058] Step 5: Take the distant points of the skeleton according to the skeleton model and extract the workpiece features in combination with the curvature. The point cloud curvature is an important indicator that represents the shape change of the object surface in three-dimensional space. In point cloud processing, curvature is usually used to describe the curvature or curvature of the area around each point on the point cloud.

[0059] The calculation of point cloud curvature usually involves the neighborhood of each point in the point cloud. The calculation of point cloud curvature has important applications in 3D shape analysis, object recognition, and computer vision. It can provide important information about the shape and structure of the object surface, which helps to identify objects of different shapes or detect specific features of the surface;

[0060] Step 6: Model the model and calculate the physical center point of the model (temporarily set the average XYZ coordinates of all points). Here we are discussing whether the center falls within the model. Fill the volume of the model and convert the space wrapped by the surface model into a solid three-dimensional model. Take the center point of the solid three-dimensional model and walk in 6, 18 or 26 neighborhoods to get the end. Here, the 6 neighborhoods are only the southeast, northwest, top and bottom of point p, the 18 neighborhoods plus the midpoint of the edge, and the 26 neighborhoods plus the 8 corner points. If it is a 6-neighborhood walk, then the cost of walking to NEWSTB is 1, the cost of walking to a black point is 2, and the cost of walking to a white point is 3. If it is a 26-neighborhood walk, the cost of walking to newstb is 1, the cost of walking to a black point can be 1 or sprt(2), and the cost of walking to a white point can be 1 or sprt(3). These are all set by our algorithm. After taking a step, you are not allowed to go back. For example, if p goes to t, then the new point p can only move to the upper half of the Rubik's Cube, and cannot go back to the lower half. Then find the maximum cost point with different directions for all model ends from the center point. The ball range is taken for all cost points, and the points within the range are the model.

[0061] The workpiece template is matched according to the extracted features, and the spatial relationship between the features near each skeleton point and the overall model is established. The true pose of the overall object is obtained by multiplying the successfully matched pose near the skeleton point by the inverse matrix of the feature-to-whole relationship.

[0062] like Figure 1 As shown, this embodiment provides a method for posture estimation based on calculating the far point of the skeleton on the surface of an object. This method proposes an improved algorithm based on PPF to address its shortcomings. The algorithm first grids the model, determines the internal grid level of the model according to the relationship between the grid model and the grid, determines the model skeleton according to the grid hierarchy relationship, and then cuts and filters the model according to the far end of the skeleton to obtain a partial model with more feature retention, and then performs point-to-feature template matching on the partial model.

[0063] Modeling the model and calculating the physical center point of the model (temporarily setting the average value of the XYZ coordinates of all points) mainly discusses whether the center falls within the model. Based on the improvement of the PPF algorithm, the PPF algorithm is an algorithm of "overall modeling, local matching", which mainly uses generalized Hough transform and voting clustering for pose estimation. First, the point pair feature F(p1, p2) is introduced. This is the most basic element of the algorithm, which is used to describe the relative relationship between two directed points. The point pair feature is defined as follows:

[0064] F(p1,p2)=F(f1,f2,f3,f4)=F(|d 2 ,∠(n1,d),∠(n2,d),∠(n1,n2))

[0065] like Figure 5 As shown,

[0066] d: This is the modulus of the distance between two points p1 and p2. It can be expressed as |d|, that is, |d|=|p2-p1|, which is the first component f1 in the point pair feature.

[0067] n1 and n2: These are the normal vectors at points p1 and p2. These normal vectors are usually pre-computed and describe the local geometry of the points.

[0068] ∠(a,b) represents the angle between two vectors a and b. This angle ranges from [0,π]. For point pair features, we need to calculate three different angles.

[0069] ∠(n1,d) is the angle between the normal vector n1 and the vector d, denoted as f2.

[0070] ∠(n2,d) is the angle between the normal vector n2 and the vector d, denoted as f3.

[0071] ∠(n1,n2) The angle between the two normal vectors n1 and n2 is denoted as f4.

[0072] This method is mainly divided into two stages. The steps are:

[0073] S10. Segment the object point cloud and calculate the normal vector. First, segment a model into three-dimensional grids, and divide each grid into several blocks according to the XYZ direction. Each block is a cube, and the segmentation is performed with equal lengths, and the segmentation length is L. Then determine the number of three-dimensional small cubes according to the XYZ length of the model point cloud;

[0074] S20. Determine a first-level grid according to the number of point clouds in the grid. In this three-dimensional grid set, all grids containing more than one point cloud are considered first-level grids.

[0075] S30. Search for grids of all levels inward according to the collapse algorithm. All non-level 1 grids become zero-level grids, and all zero-level grids adjacent to the level 1 grid are traversed to become level 1 neighborhood grids. Among all level 1 neighborhood grids, those without a level 1 grid normal vector pointing to them become level 2 grids.

[0076] S40. Generate skeletons based on network relationships and find distal features. Link each layer of skeleton points according to the level to obtain the model skeleton, take the skeletons of the outermost layers of the model as the center of the circle, and use R as the radius to cut the original model point cloud to obtain the skeleton distal point model;

[0077] S50. Estimate the pose of the object based on the distal feature pose and transform it. Take the skeleton far point according to the skeleton model and extract the object features in combination with the curvature. Perform PPF model training on the six parts cut out respectively, and store the point pair feature calculation results in the hash table respectively. Preprocessing is also performed in the scene matching stage. Before sampling the scene model, the points with higher curvature are selected through the point cloud curvature match, and then PPF matching is performed;

[0078] The principle is as follows: model training phase and scene matching phase. In the training phase, the model is first downsampled, and the sampling distance is generally 0.05 times the model diameter. After sampling, all point pairs of all sampling points are calculated for point pair features, and all point pair features are stored in a hash table.

[0079] In the matching stage, the scene is also downsampled. After downsampling, point pair features are calculated for all point pairs. The corresponding values ​​of all point pair features in the scene are found in the training hash table. Then, the final pose of the object is calculated based on generalized Hough transform voting, pose clustering and ICP.

[0080] It should be noted that, in this embodiment, Figure 6 As shown in the figure, in order to improve the efficiency of the algorithm, some improvements are made when calculating the angle (α) describing the object's posture. Normally, the angle is calculated after sr and mr coincide and their normal vectors coincide. In this way, each match has to be recalculated, which is troublesome. The angle (α) of the object's posture is divided into two parts. One part is the angle of the model part (αm), which can be calculated offline in advance, stored, and used directly when needed; the other part is the angle of the scene part (αs), which only needs to be calculated once online, stored, and called directly when used later.

[0081] The present invention has a higher accuracy, especially in the case of high occlusion rate, and the time consumption is greatly reduced compared with algorithms with similar accuracy. This is further described in conjunction with the following embodiments.

[0082] like Figure 2 As shown, in this three-dimensional grid set, all grids with more than one point cloud in the grid become first-level grids, and all non-first-level grids become zero-level grids. All zero-level grids adjacent to the first-level grids are traversed to become first-level neighborhood grids. Among all first-level neighborhood grids, those without first-level grid normal vectors become second-level grids, and all grids pointed by first-level grids are -1-level grids. If they become -1-level grids, they will never participate in traversal. The coordinates of the second-level grid are also the coordinate center, and the normal vector is the average of the normal vectors of all adjacent first-level grids. After finding all the second-level grids adjacent to the first-level grids, find all the zero-level grids adjacent to the second-level grids to confirm the third-level grids, and continue in this way until there are no zero-level grids in the model.

[0083] In step S20, the following steps are included:

[0084] S21. When there is no zero-level grid inside the first-level grid, the model will be filled with layers of grids. Blue represents the outermost grid, and red represents the innermost grid. Starting from the innermost grid as the center, a certain rule of calculation is performed with the second inner layer to find each point in the second inner layer that is farthest from the innermost side (grid center coordinates). All the second inner layer points are traversed, and the distances to all the closest points in the innermost layer are calculated and sorted. The farthest point is taken as the second inner layer skeleton point a. A sphere is made with the skeleton point a as the center and r as the radius. All points in the sphere are excluded and no longer participate in the next round of calculation.

[0085] Search for all levels of grids inward according to the collapse algorithm. Select a possible state according to the weight or randomly, and assign the selected state to the cell. Update the possible states of adjacent cells according to the adjacency rule of the selected state. Delete the states that are incompatible with the selected state.

[0086] S22. Continue to calculate the point farthest from the innermost point among the remaining sub-inner layer points as the bone point b, exclude the sub-inner layer points with b as the center and r as the radius, and continue to search for bone points until all remaining points are less than a certain threshold ζ, then the found a, b... points are the sub-inner layer bone points, and then find the corresponding bone points in each layer from the sub-inner layer to the outside, link each layer of bone points according to the level, and get the model skeleton, take the bones of the outermost layers of the model as the center of the circle, and R as the radius to cut the original model point cloud; the specific inward search process:

[0087] Global perspective: Initialize the entire grid so that all cells have all possible states.

[0088] Select Boundaries: First select cells at the grid boundary for state collapse and propagation. This creates deterministic patterns on the outer layer of the grid.

[0089] Step by step inward: After the state of the boundary unit is determined, the undetermined unit closer to the boundary is selected to continue state collapse and propagation. This step is carried out layer by layer inward, gradually reducing the area of ​​undetermined state.

[0090] Central Convergence: Eventually, the central part of the grid will be the region where the final state is determined. Each step in this process follows the process of selection, state collapse, propagation constraints, and conflict detection described above.

[0091] like Figure 3As shown in the figure, the workpiece features are extracted by taking the distant points of the skeleton according to the skeleton model and then combining the curvature. The point cloud curvature refers to an important indicator that represents the change in the surface shape of an object in three-dimensional space. In point cloud processing, curvature is usually used to describe the degree of curvature or the size of the curvature of the area around each point on the point cloud. The calculation of point cloud curvature usually involves the neighborhood of each point in the point cloud. The calculation of point cloud curvature has important applications in three-dimensional shape analysis, object recognition, and computer vision. It can provide important information about the surface shape and structure of an object, which helps to identify objects of different shapes or detect specific features of the surface.

[0092] In step S40, the following steps are included:

[0093] S41. Model the model and calculate the physical center point of the model (temporarily set the average value of the XYZ coordinates of all points). The center discussed here is within the model. If it is outside the model, such as the moon type, additional intervention is required;

[0094] S42. Volume completion of the model, converting the space wrapped by the surface model into a solid three-dimensional model set; surface model wrapping: converting the space wrapped by the point cloud surface model into a solid three-dimensional model. Using voxelization technology, the model is divided into small cubes (voxels) to generate a solid model. Volume completion:

[0095] Ensure that the space within all voxels is filled with the model, eliminate the gaps within the model, and form a continuous solid 3D model collection.

[0096] S43. Take the end of the 6-neighborhood, 18-neighborhood or 26-neighborhood grids based on the center point of the solid three-dimensional model. ;

[0097] like Figure 7 As shown, the 6 neighborhoods here are only the southeast, northwest, top and bottom of point p, the 18 neighborhoods plus the midpoint of the corner, and the 26 neighborhoods plus the 8 corner endpoints. If it is a 6-neighborhood walk, then the cost of walking to NEWSTB is 1, the cost of walking to the black point is 2, and the cost of walking to the white point is 3. If it is a 26-neighborhood walk, the cost of walking to NEWSTB is 1, the cost of walking to the black point can be 1 or sprt(2), and the cost of walking to the white point can be 1 or sprt(3). These are all set by our algorithm. After taking a step, you are not allowed to go back. For example, if p goes to t, then the new point p can only move to the upper half of the Rubik's Cube, and cannot go back to the lower half. Then find the maximum cost point with different directions at the end of all models from the center point.

[0098] S44. The cost setting can be adjusted according to the specific application to ensure that the end points are found more effectively during the traversal process. For all cost points, a spherical range is taken, and the points within the range are the model. End point spherical range setting: Select an appropriate radius R to ensure that the spherical range contains enough point cloud data to reflect the characteristics of the end points. The radius size can be adjusted according to the model size and feature complexity. Extract the point cloud data within the spherical range, analyze its curvature, normal vector, density and other features, and identify the feature information of the workpiece.

[0099] like Figure 4 As shown in the figure, the scene is also downsampled in the matching stage. After downsampling, point pair features are calculated for all point pairs, and the corresponding values ​​of all point pair features in the scene are found in the training hash table. Then, the final pose of the object is calculated based on generalized Hough transform voting, pose clustering and ICP.

[0100] In step S50, the following steps are included:

[0101] S51. Sampling: Feature point pairs. x1-x4 represents the four-dimensional vector F mentioned above, with a step length of △, rounded down. This creates a corresponding relationship from "index" to "F", and we can integrate a large number of Fs into some intervals (point pairs in the same interval have similar features). Length step: 0.05 times the model diameter (the model diameter can be obtained by calculating the bounding box related operations), angle step: π / 15;

[0102] At this point, the feature training of a point pair is completed.

[0103] S52. Scene PPF calculation. For scene point clouds, the number is definitely much larger than that of model point clouds. We randomly select one-fifth of the points in the scene as reference points. For each reference point, we calculate the point pair feature F between it and all other scene points. ;

[0104] S53. Local matching: For a pair of point pairs in the scene, calculate its PPF: Fs, and use it as an index to search the hash table of the model. If the search is successful, some point pairs in the model with similar features are obtained. Taking a point pair in the model that matches a scene point pair as an example, the model point pair and the scene point pair need to be unified into the same coordinate system.

[0105] However, the decision of a pair of points is often extremely unreliable. We need to perform the above operation on all point pairs to obtain a large number of different (mr, α), and then vote. The (mr, α) with the highest number of votes can determine the true pose and use it to solve the pose.

[0106] S54. For a scene reference point sr, its scene point pair PPF feature may be able to find the corresponding model point pair. After finding it, sr is matched with mr to get a rotation angle α. Once we have mr and α, we can calculate the pose.

[0107] Now, we create a two-dimensional matrix: the horizontal axis is α, the vertical axis is mr. For a scene reference point sr, it has a large number of point pairs to find the PPF, thereby finding the corresponding mr and mi in the hash table, and at the same time getting an α. Then we cast a vote on the created two-dimensional matrix. We perform this operation on all the point pairs of this scene reference point sr, and finally get a voting table.

[0108] S54. Cluster poses: The scene reference points select one-fifth of the number of points in the scene. For each sr, there is a voting table, and a pose can be calculated. Now we need to cluster to get the most accurate results. We put similar poses together as a class (these poses do not exceed a given threshold in rotation and translation). This class has a score (score = the sum of the votes of all poses in the class in the previous stage). For the class with the highest score, we average the poses in the class and identify them as the final pose.

[0109] Pose calculation: According to the relationship between the cut model and the complete model, if the pose matched by the cut model is Pose, the pose of the entire model needs to be corrected.

[0110] In this application, the skeleton far point refers to the point in the 3D model that starts from the center point of the model and reaches the end direction of the model through the specified neighborhood walking rules and cost calculation. These points are usually the farthest from the center point of the model and the most costly points, and turning back is not allowed on the path.

[0111] Link each layer of bone points according to the level to get the model skeleton. Take the bones of the outermost layers of the model as the center of the circle and R as the radius to cut the original model point cloud. The specific method to get the skeleton far point model is as follows:

[0112] First, we divide the original point cloud model into the innermost layer, the second innermost layer, and the outermost layer. According to the skeleton far point rule defined in this application, starting from the center point of the innermost layer, we find a group of skeleton far points a in the innermost layer. With the center point as the center and each skeleton far point in the innermost layer as the radius r, we make a sphere, exclude all points in the sphere, and no longer participate in the search process of the skeleton far points of the second innermost layer. Among the remaining second inner layer points, we continue to calculate the points farthest from the innermost points as another group of skeleton points b according to the skeleton far point rule we specified, exclude b as the center of the circle, and the points farthest from the innermost point as the second inner layer points with a radius of r, and continue to search for skeleton points. In the search process of the outermost layer, the previous process will be repeated, because the further out, the fewer points will be excluded in each layer, so the meaning of the outermost layers of bones as the center of the circle is that in the search process of the outermost layer, you may go through several skeleton point search processes, and each search process will generate a radius R.

[0113] For example: For example, in the process of searching for the outermost layer of skeleton points, we have gone through a total of 3 searches based on the skeleton point rules, namely the first search for the outermost layer, the second search for the outermost layer, and the third search for the outermost layer. In these three searches, there are different sets of skeleton points found, so three radii R1, R2, and R3 will be generated. These three radii are obtained by taking the point farthest from the innermost point as the radius. Until all the remaining points in the outermost layer are found to be less than a certain threshold ζ, each layer of skeleton points is linked to the nearest layer according to the level to obtain the model skeleton, such as Figure 3 (c) as shown.

[0114] Taking the skeleton far points defined in this application as an example, 6 skeleton far points are found. Based on the outermost skeleton far points as the center of the circle, the model skeleton is found inside and connected with the skeleton far points in the skeleton model. That is, the 6 skeleton far points and the model skeleton are connected. Figure 3 (c) The points are connected, and the original model point cloud is cut with the connection point between each bone point in the bone model and the six bone far points as the radius R, and the bone far point model is obtained as follows Figure 3 (d) as shown.

[0115] In the illustrated embodiment of the present application, the outermost bone far point found indicates the total number of parts to be segmented, and then how to define the segmentation range:

[0116] 1Head: Cut out the head area with the head bone point as the center of the circle.

[0117] 2 Left forelimb: With the bone point of the left forelimb as the center of the circle, cut out the left forelimb area.

[0118] 3 Right forelimb: With the bone point of the right forelimb as the center of the circle, cut out the right forelimb area.

[0119] 4 Left hind limb: With the bone point of the left hind limb as the center of the circle, cut out the left hind limb area.

[0120] 5 Right hind limb: With the bone point of the right hind limb as the center of the circle, cut out the right hind limb area.

[0121] 6 Tail: Cut out the tail area with the tail bone point as the center of the circle.

[0122] The maximum radius R of the above areas will not exceed the maximum distance between the outermost bone point 123456 and the center point of the model. That is, the radius R of the connection point between each bone far point in the bone model c and 123456 will not exceed the distance between the outermost bone point 123456 and the center point of the model.

[0123] This application combines the skeleton far point with curvature. The skeleton far point represents the farthest point of the model in different directions. These points provide geometric structure information of the model. Curvature is a measure of the degree of curvature of the point cloud surface. Higher curvature values ​​usually appear at the edges, corners or places where the surface changes greatly. Curvature is used to extract feature points because these points have important recognition in the shape matching and recognition process.

[0124] The specific steps for extracting object features are as follows:

[0125] Determine the far point of the skeleton: Starting from the center point of the model, determine the far point of the skeleton in each direction through neighborhood walking and cost calculation.

[0126] Calculate curvature: Calculate curvature of the model point cloud and identify points with high curvature. These points are usually located at the edges, corners, or areas with drastic surface changes of the model.

[0127] Combining the far points of the skeleton and curvature: Use the far points of the skeleton as the initial segmentation points, and then extract the points with higher curvature as feature points in each segmentation area.

[0128] The steps for calculating curvature are as follows:

[0129] Select neighborhood: For each point in the model (P i ) selects its neighborhood point set N(P i ) usually uses a fixed k search or a nearest neighbor search to determine the neighborhood.

[0130] Calculate the covariance matrix: Use the neighborhood point set N(P i ) Calculate the covariance matrix C

[0131]

[0132] is the centroid of the neighborhood point set.

[0133] Eigenvalue decomposition:

[0134] Perform eigenvalue decomposition on the covariance matrix to obtain eigenvalues ​​λ1, λ2, λ3 (where λ1≤λ2≤λ3)

[0135] Calculate curvature: Use surface curvature:

[0136]

[0137] The higher the curvature value, the more the points are located in areas where the surface changes dramatically.

[0138] Combining bone far point and curvature

[0139] Example process:

[0140] Suppose there is a model segmentation area, such as the head area:

[0141] Initial segmentation:

[0142] With the head bone point as the center and the radius R as the center, the point cloud of the head area is obtained.

[0143] Curvature calculation:

[0144] The curvature is calculated for all points in the head area to obtain the curvature value of each point.

[0145] Feature extraction:

[0146] The points in the head area are sorted by curvature value, and the first several points with higher curvature are extracted as feature points.

[0147] Combination features:

[0148] Combine the head feature points with the feature points of other segmented areas to form a complete model feature point set.

[0149] Unordered crawling has become a hot topic nowadays. Among them, the PPF algorithm used in unordered crawling is an algorithm with a good evaluation nowadays. However, the failure rate of matching the PPF algorithm will increase under high occlusion conditions. The present invention proposes an improved algorithm based on PPF to address its shortcomings. The algorithm first grids the model, determines the internal grid level of the model according to the relationship between the grid model and the grid, determines the model skeleton according to the grid hierarchy relationship, and then cuts and screens the model according to the distal end of the skeleton to obtain a partial model with more feature retention, and then performs point-to-feature template matching on the partial model.

[0150] The algorithm of this application is an improvement on the PPF algorithm. The PPF algorithm is an algorithm of "overall modeling, local matching". It mainly uses generalized Hough transform and voting clustering to perform pose estimation. First, the point pair feature F(p1, p2) is introduced. This is the most basic element of the algorithm. It is used to describe the relative relationship between two directed points. The point pair feature is defined as follows:

[0151] F(p1,p2)=F(f1,f2,f3,f4)=F(|d 2 ,∠(n1,d),∠(n2,d),∠(n1,n2))

[0152] like Figure 5 As shown,

[0153] d: This is the modulus of the distance between two points p1 and p2. It can be expressed as |d|, that is, |d|=|p2-p1|, which is the first component f1 in the point pair feature.

[0154] n1 and n2: These are the normal vectors at points p1 and p2. These normal vectors are usually pre-computed and describe the local geometry of the points.

[0155] ∠(a,b) represents the angle between two vectors a and b. This angle ranges from [0,π]. For point pair features, we need to calculate three different angles.

[0156] ∠(n1,d) is the angle between the normal vector n1 and the vector d, denoted as f2.

[0157] ∠(n2,d) is the angle between the normal vector n2 and the vector d, denoted as f3.

[0158] ∠(n1,n2) The angle between the two normal vectors n1 and n2 is denoted as f4.

[0159] The method provided in this application is mainly divided into two stages, the model training stage and the scene matching stage. In the training stage, the model is first downsampled, and the sampling distance is generally 0.05 times the model diameter. After sampling, all point pairs of all sampling points are calculated for point pair features, and all point pair features are stored in a hash table.

[0160] In the matching stage, the scene is also downsampled. After downsampling, point pair features are calculated for all point pairs. The corresponding values ​​of all point pair features in the scene are found in the training hash table. Then, the final pose of the object is calculated based on generalized Hough transform voting, pose clustering and ICP.

[0161] This application has made two improvements to PPF. First, in the offline training stage, we extract local features of the model before downsampling the model, retain most of the more characteristic parts of the model, and remove the parts with fewer features. Generally, the end features of an object or workpiece are obvious, so we use a method to calculate the end of the object's skeleton to find the end of the object. The skeleton algorithm is introduced below. First, a model is divided into three-dimensional grids, and each grid is divided into several blocks according to the XYZ direction. Each block is a cube, and equal lengths are taken for segmentation, and the segmentation length is L. Then the number of three-dimensional small cubes is determined according to the XYZ length of the model point cloud, as shown below:

[0162]

[0163] Voxel(p)=voxel[X][Y][Z]

[0164] x p ,y p ,z p Indicates the coordinate values ​​of a point P in the point cloud in the X, Y, and Z directions.

[0165] min x ,min y ,min z Respectively represent the minimum coordinate values ​​of the point cloud in the X, Y, and Z directions.

[0166] L voxel Represents the side length of a three-dimensional grid (voxel). All three-dimensional grids (voxels) are cubes with equal side lengths.

[0167] INT: represents the rounding function, which converts the calculation result into the maximum integer not greater than this value.

[0168] X, Y, Z: represents the index of the voxel corresponding to point P in the X, Y, and Z directions.

[0169] Voxel(p) represents the voxel where point P is located.

[0170] voxel[X][Y][Z] represents the voxel at index [X][Y][Z] in the 3D voxel grid.

[0171] After the model is meshed, the coordinates and normal vectors of the point clouds in each mesh are merged. Regardless of the number of point clouds in the mesh, the center of the mesh is uniformly taken as the mesh coordinate, and the normal vector of the mesh is taken as the average value of the normal vectors of all point clouds in the mesh.

[0172] In this three-dimensional grid set, all grids with more than one point cloud in their memory become first-level grids, and all non-first-level grids become zero-level grids. All zero-level grids adjacent to the first-level grids are traversed to become first-level neighborhood grids. Among all first-level neighborhood grids, those without first-level grid normal vectors become second-level grids, and all grids pointed to by first-level grids are -1-level grids. Once they become -1-level grids, they will never participate in the traversal. The coordinates of the second-level grids are also the coordinate center, and the normal vector is the average of the normal vectors of all adjacent first-level grids. After finding all the second-level grids adjacent to the first-level grids, find all the zero-level grids adjacent to the second-level grids to confirm the third-level grids, and continue in this way until there are no zero-level grids inside the model. The process is as follows: Figure 2 As shown;

[0173] When there is no zero-level grid inside the first-level grid, the model will be filled with layers of grids, such as Figure 3 As shown in (a), blue represents the outermost grid, and red represents the innermost grid. Starting from the innermost grid as the center, a certain rule is calculated with the second inner layer to find the point (grid center coordinate) that is farthest from the innermost layer in each second inner layer. All second inner layer points are traversed to calculate the distance to all the closest points in the innermost layer, and sort them. The farthest point is taken as the second inner layer skeleton point a. A sphere is made with the skeleton point a as the center and r as the radius. All points in the sphere are excluded and no longer participate in the next round of calculation. Among the remaining second inner layer points, the point farthest from the innermost point is the skeleton point b. The second inner layer point with b as the center and r as the radius is excluded, and the skeleton point is continued to be found until all the remaining points are less than a certain threshold ζ. Then the found a, b... points are the second inner layer skeleton points. In this way, the corresponding skeleton points are found in each layer from the second inner layer to the outside, such as Figure 3 As shown in (b), each layer of bone points is linked according to the level to get the model skeleton. The bones of the outermost layers of the model are taken as the center of the circle and R is the radius to cut the original model point cloud to get the skeleton far point model as shown in Figure 3 As shown in (d), the herbivorous dinosaur is cut into six parts: head, two forelimbs, two hind limbs, and tail.

[0174] PPF model training is performed separately according to the 6 parts cut out, and the point pair feature calculation results are stored in the hash table respectively.

[0175] Preprocessing is also performed in the scene matching stage. Through observation, it is found that the models cut out from the distal end of the bone have a unified feature, that is, the point cloud curvature varies greatly. Therefore, before sampling the scene model, points with higher curvature are selected through the point cloud curvature match, and then PPF matching is performed.

[0176] First, according to the relationship between the cut model and the complete model, the relationship between the two is:

[0177] Pcut*SubPose1=Pint

[0178] Pcut=Pint*SubPose1-1

[0179] Therefore, if the pose matched by the cut model is Pose, the pose of the entire model needs to be corrected to:

[0180] Pose*SubPose1-1

[0181] The dataset used in this application is the UWA dataset for experiments, and the recognition recall rate and average recall rate are used to evaluate the performance of each algorithm. The recall rate refers to the number of objects for which the algorithm correctly calculates the pose of the same object divided by the total number of objects, and the average recall rate is the ratio of all recognized objects to all objects:

[0182] MR=∑P / ∑T,

[0183] Among them, P is the correctly identified object, and T is the total number of all objects involved in the calculation in the scene.

[0184] The present invention proposes a point-to-point feature pose estimation method based on obtaining the end part model by cutting the end of the skeleton of a complete model, explains in detail the skeleton calculation method and the end search method, and performs training and pose estimation on the model obtained by this method. The algorithm can be used for real-time pose estimation of objects with high occlusion rate.

[0185] The beneficial technical effects of the present invention include at least:

[0186] Under high occlusion rate conditions, the time consumption of the present invention is greatly reduced compared to algorithms with similar accuracy.

[0187] The present invention proposes a method for filling the interior based on the step-by-step collapse of the point cloud on the surface of an object.

[0188] The present invention proposes an algorithm for calculating the skeleton of an object by filling the object step by step.

[0189] The invention proposes a method for automatically extracting object features by combining skeleton far points with curvature features.

[0190] The present invention proposes a method for estimating the position and posture of an object through skeleton far-point features.

[0191] The present invention proposes a method for filling the interior of an object by gradually collapsing a point cloud on the surface of the object, and proposes an algorithm for calculating the skeleton of the object by gradually filling the object.

[0192] The invention proposes a method for automatically extracting object features by combining skeleton far points with curvature features.

[0193] The present invention proposes a method for estimating the position and posture of an object through skeleton far-point features.

[0194] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

[0195] Unless otherwise defined, the technical terms or scientific terms used in the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one", "one" or "the" do not indicate quantity restrictions, but indicate that there is at least one. Similar words such as "include" or "comprise" mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Similar words such as "connect" or "connected" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

Claims

1. A method for estimating the position and posture of a skeleton based on the surface of an object, characterized in that: The posture estimation method comprises the following steps: Obtain a 3D point cloud model of an object; Meshing the three-dimensional point cloud model to obtain a three-dimensional mesh set including a plurality of meshes; Dividing the levels of each grid in the three-dimensional grid set to obtain a hierarchical grid model; Obtaining the skeleton points of each layer of mesh in the hierarchical network model to obtain the model skeleton; Obtaining the skeleton far points in various directions of the three-dimensional point cloud model, connecting each skeleton far point with each skeleton point in the model skeleton with each skeleton far point as the center of the circle, cutting the three-dimensional point cloud model with the distance between the skeleton far point and the skeleton point as the radius, and obtaining a skeleton far point model including multiple local models; The curvature of each point cloud in each local model is calculated, and the first several points with higher curvature values ​​are extracted as the feature point set of each local model; Perform point-to-point feature template matching on each local model to determine the position and posture.

2. The method for estimating the position and posture of a skeleton based on the object surface according to claim 1, characterized in that: The method for meshing the three-dimensional point cloud model specifically includes: The object point cloud model is segmented into 3D grids, and each grid is divided into several blocks according to the XYZ direction. Each block is a cube, and the segmentation is performed with equal length, and the segmentation length is L; the number of 3D small cubes is determined according to the XYZ length of the model point cloud, which is expressed as follows: Voxel(p)=voxel[X][Y][Z] Among them, x p ,y p ,z p Indicates the coordinate values ​​of a point P in the point cloud in the X, Y, and Z directions; min x ,min y ,min z Respectively represent the minimum coordinate values ​​of the point cloud in the X, Y, and Z directions; L voxel Represents the side length of the three-dimensional grid. All three-dimensional grids are cubes with equal side lengths. INT: indicates the rounding function, which converts the calculation result into the maximum integer not greater than this value; X, Y, Z represent the indices of the voxels corresponding to point P in the X, Y, and Z directions; Voxel(p) represents the voxel where point P is located; voxel[X][Y][Z] represents the voxel at index [X][Y][Z] in the 3D voxel grid.

3. The method for estimating the position and posture of a skeleton based on the object surface according to claim 1, characterized in that: The posture estimation method also includes the following steps: After the model is meshed, the coordinates and normal vectors of the point clouds in each mesh are merged. Regardless of the number of point clouds in the mesh, the center of the mesh is uniformly taken as the mesh coordinate, and the normal vector of the mesh is taken as the arithmetic mean of the normal vectors of all point clouds in the mesh.

4. The method for estimating the position and posture of a skeleton based on the object surface according to claim 1, characterized in that: The method for dividing the levels of each grid in the three-dimensional grid set specifically includes: In the three-dimensional grid set, all grids containing more than one point cloud become first-level grids, and all non-first-level grids become zero-level grids. All zero-level grids adjacent to the first-level grids are traversed to become first-level neighborhood grids. Among all first-level neighborhood grids, those without first-level grid normal vectors become second-level grids, and all grids pointed to by first-level grids are -1-level grids. Once they become -1-level grids, they will no longer participate in the traversal. The coordinates of the second-level grid are also the coordinate center, and the normal vector is the average of the normal vectors of all adjacent first-level grids. After finding out all the second-level grids adjacent to the first-level grids, find all the zero-level grids adjacent to the second-level grids to confirm the third-level grids, and so on, until there are no zero-level grids inside the hierarchical grid model.

5. The method for estimating the position and posture of a skeleton based on the object surface according to claim 1, characterized in that: The method for obtaining the skeleton points of each layer of mesh in the hierarchical network model specifically includes: With the innermost grid as the center, a certain rule is calculated with the second inner layer to find the point in each second inner layer that is farthest from the innermost layer. All second inner layer points are traversed to calculate the distance to all the closest points in the innermost layer, and sort them. The farthest point is taken as the second inner layer skeleton point a. A sphere is made with the skeleton point a as the center and r as the radius. All points in the sphere are excluded and no longer participate in the next round of calculation. Among the remaining second inner layer points, the point farthest from the innermost point is the skeleton point b. The second inner layer points with b as the center and r as the radius are excluded, and the search for skeleton points continues until all the remaining points are less than a certain threshold ζ. The found a, b... points are the second inner layer skeleton points. In this way, the corresponding skeleton points are found in each layer from the second inner layer to the outside, and the skeleton points of each layer are linked nearest according to the level to obtain the model skeleton.

6. The method for estimating the position and posture of a skeleton based on the object surface according to claim 1, characterized in that: The method for obtaining the skeleton far points in various directions of the three-dimensional point cloud model specifically includes: A skeleton far point refers to a point in a three-dimensional point cloud model that starts from the center point of the point cloud model and reaches the end direction of the three-dimensional point cloud model through neighborhood walking rules and cost calculation. The skeleton far point is the point farthest from the center point of the model and has the highest cost, and turning back is not allowed on the path.

7. The method for estimating the position and posture of a skeleton based on the object surface according to claim 1, characterized in that: The method of performing point-to-feature template matching on each local model to determine the position and posture specifically includes: PPF model training is performed separately according to the multiple local models cut out, and the point pair feature calculation results are stored in the hash table respectively; preprocessing is performed in the scene matching stage, and points with higher curvature are selected through point cloud curvature competition before scene model sampling, and then PPF matching is performed; In the training phase, the model is first downsampled, and then all point pairs of all sampling points are calculated for point pair features, and all point pair features are stored in a hash table; In the matching stage, the scene is downsampled, and then the point pair features are calculated for all point pairs. The corresponding values ​​of all point pair features in the scene are found in the training hash table, and then the final pose of the object is calculated based on generalized Hough transform voting, pose clustering and ICP.

Citation Information

Cited By

  • Data processing method and device, equipment and storage medium

    CN119167193A