A method for unmarked assembly state recognition based on product depth image point cloud

By collecting depth image point clouds on the assembly and constructing shape distribution vector descriptors, the cosine similarity algorithm is used to identify the assembly status, which solves the problems of relying on significant local features and high time complexity in the existing technology, and achieves fast and accurate Assembly status recognition adapts to diversified production needs.

CN114842221BActive Publication Date: 2024-09-03NORTHWESTERN POLYTECHNICAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210351646.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-02
Publication Date
2024-09-03
Estimated Expiration
2042-04-02

AI Technical Summary

Technical Problem

Existing assembly state recognition methods rely on obvious local features on the assembly, have poor recognition effects, and high time complexity, making it difficult to meet the production model that quickly responds to the diverse needs of customers.

Method used

An unlabeled assembly state recognition method based on product depth image point cloud is adopted. By collecting point cloud data of the assembly at different viewing angles, a shape distribution vector descriptor is constructed, and the cosine similarity algorithm is used for identification, avoiding the need for significant structural features. dependence, improving recognition speed and efficiency.

Benefits of technology

It achieves efficient identification of assembly status without significant structural features, improves the efficiency of assembly work, reduces errors, and adapts to flexible production needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114842221B
    Figure CN114842221B
Patent Text Reader

Abstract

In order to solve the technical problems that the existing assembly state recognition methods must rely on obvious local features on the assembly to achieve better recognition and have high time complexity, the present invention proposes an unmarked assembly state recognition method based on product depth image point cloud. First, the projection point cloud of each assembly state of the product digital model at different viewing angles is obtained in a virtual scene, and the shape vector descriptor is constructed for the projection point cloud of the digital model using the shape vector. Secondly, the depth image point cloud of the assembly state of the assembled product is obtained in the actual assembly scene through a depth camera, and the shape vector descriptor is constructed for the assembled product point cloud using the shape vector. Finally, the cosine similarity method is used to calculate the similarity between the two descriptors, and the recognition of the unmarked assembly state is completed based on the similarity calculation result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for identifying an assembly state without marking by utilizing a product depth image point cloud collected at an assembly site. Background Art

[0002] The production mode of the manufacturing industry will change from mass production to a production mode that quickly responds to the diverse needs of customers. Under the new production mode, products will be customized according to customer needs and have the characteristics of flexibility and variability. Products from different batches may differ greatly. Traditional mass assembly methods are difficult to meet the flexible and changeable requirements of products. In this case, it is also difficult to complete the assembly task by relying solely on assemblers. The emergence of augmented assembly has solved this type of problem well. Augmented assembly refers to the use of technologies such as mixed reality by assemblers to carry out assembly work during the actual assembly process. When assemblers use equipment with VR, AR and other technologies to perform assembly operations, they can obtain information on the current assembly status of the product being assembled, and use the interaction of virtual and real information to compare it with the digital model information in the database. Based on the comparison results and combined with the assembly instructions, information such as parts, process equipment and assembly operations required for the next assembly operation can be obtained. At present, some methods for assembly state recognition have emerged:

[0003] The patent document with publication number CN113111741A discloses a method for assembly state recognition based on three-dimensional feature points. The method extracts feature points based on the local structural features of the assembly, compares the feature points between the digital model and the product under assembly, realizes point cloud registration and similarity calculation, and then completes the product assembly state recognition. Since this method requires the extraction of local features as the basis for matching, when there are no significant local features on the assembly, the recognition effect is poor; in addition, it is also necessary to register the point cloud of the product under assembly with the digital model, which is time-consuming and cumbersome.

[0004] The document "Liu Ran. Research on the method of pose estimation and state detection of base parts in AR-assisted assembly [D]. Shanghai Jiaotong University, 2018.002514." proposes to use RGB camera to collect part pose for part recognition and assembly state detection to achieve AR-assisted product assembly. However, the accuracy and speed of this method for weak texture part pose judgment need to be improved, and manual calibration is required in offline data collection, which is inefficient and prone to errors. Summary of the invention

[0005] In order to solve the technical problems that the existing assembly state recognition methods must rely on obvious local features on the assembly for better recognition and have high time complexity, the present invention proposes an unmarked assembly state recognition method based on product depth image point cloud, which utilizes the depth images of the assembled product collected at different viewing angles and adopts the global descriptor shape distribution vector as a three-dimensional descriptor to recognize the assembly state. It does not require the assembly to have significant structural features and has a good response speed. It does not require manual calibration, which can speed up the assemblers' familiarity with the operating procedures, improve the efficiency of assembly work, and reduce omissions.

[0006] The inventive concept of the present invention is:

[0007] First, the projection point cloud of each assembly state of the product digital model at different viewing angles is obtained in the virtual scene, and the shape vector descriptor is constructed from the projection point cloud of the digital model using the shape vector. Secondly, the depth image point cloud of the assembly state of the assembled product is obtained in the actual assembly scene through the depth camera, and the shape vector descriptor is constructed from the point cloud of the assembled product using the shape vector. Finally, the cosine similarity method is used to calculate the similarity between the two descriptors, and the recognition of the unmarked assembly state is completed based on the similarity calculation results.

[0008] The technical solution of the present invention is:

[0009] A method for identifying assembly states without markings based on product depth image point cloud, characterized in that it comprises the following steps:

[0010] Step 1: Obtain a point cloud data set of the digital model of each assembly state of the assembly at different viewing angles;

[0011] Step 2: Obtain the shape distribution vector S corresponding to the point cloud data set of the digital model of each assembly state of the assembly at different viewing angles model ;

[0012] Step 3: Obtain the point cloud data P of the current assembly state of the product in the actual assembly scene product ;

[0013] Step 4: Obtain the point cloud data P of the current assembly state of the product in the actual assembly scene product The corresponding shape distribution vector S product ;

[0014] Step 5: Shape distribution vector S obtained based on step 2 model And the shape distribution vector S obtained in step 4 product , the cosine similarity algorithm is used to calculate the assembly status of the product to be identified.

[0015] Furthermore, step 1 is specifically as follows:

[0016] 1.1) Establish assembly status The circumscribed regular polyhedron of the digital model makes the vertices of the outer contour of the digital model located at or close to the surface of the regular polyhedron; j represents the jth assembly state of the assembly; 1≤j≤m;

[0017] 1.2) Segmenting the regular polyhedron established in 1.1), that is, based on the regular polyhedron, evenly segmenting each face constituting the regular polyhedron into a plurality of triangles / polygons;

[0018] 1.3) Take photos of the digital model using the center points of each triangle / polygon obtained after segmentation as the shooting angle to obtain the assembly status A collection of point cloud data of the external shape of the digital model from the perspective of the center point of each triangle / polygon P modelf Indicates the assembly state captured from the fth viewing angle Point cloud data set of digital models;

[0019] 1.4) Using the above methods 1.1)-1.3), obtain the external shape point cloud data sets of the remaining assembly states under different viewing angles.

[0020] Furthermore, in step 1.1), the more complex the digital model is, the more faces the regular polyhedron has.

[0021] Furthermore, step 2 is specifically as follows:

[0022] 2.1) Assembly status of the assembly The point cloud data set P taken from the z-th perspective of the digital model modelz Perform k random samplings, select any two sampling points for each random sampling, and calculate the distance between the two sampling points; k is selected according to the complexity of the digital model; 1≤z≤f;

[0023] 2.2) Based on the k distance values ​​obtained by random sampling in step 2.1), an equidistant histogram with b intervals is established to represent the distribution of these k distance values. The height h of each interval represents the frequency of the distance value in this interval. The group distance d is shown in formula (2):

[0024]

[0025] Where:

[0026] l oumax Indicates the maximum value among the sampling results;

[0027] l oumin Indicates the minimum value among the sampling results;

[0028] b is the number of intervals of the equidistant histogram. The larger the value of b, the more accurate the recognition, but the more complicated the calculation. It is selected according to actual needs;

[0029] The height h of the histogram should satisfy formula (3):

[0030]

[0031] Where:

[0032] b i Indicates the frequency of the distance value falling into the i-th interval;

[0033] h i represents the frequency of the i-th interval;

[0034] k is the number of random sampling;

[0035] 2.3) Based on the isometric histogram established in step 2.2), the assembly state P of the assembly is constructed. j part The point cloud data set P taken from the z-th perspective of the digital model modelz The corresponding s-dimensional shape distribution vector S modelz , the shape distribution vector S modelz The value of each dimension of corresponds to the height h of the histogram interval, as shown in formula (4):

[0036]

[0037] Where:

[0038] s i Represents the shape distribution vector S modelz The i-th component of ;

[0039] h i Represents the height of the i-th interval of the histogram interval;

[0040] 2.4) Using the above 2.1)-2.3) methods, obtain the assembly state P of the assembly j part The shape distribution vector corresponding to the point cloud data set of the digital model taken at other different viewing angles;

[0041] 2.5) Sampling the above 2.1)-2.4) methods, obtain the shape distribution vectors corresponding to the point cloud data sets of the digital models of the remaining assembly states of the assembly taken at different viewing angles, thereby obtaining the shape distribution vectors S of the digital models of the assembly at each assembly state and each viewing angle model .

[0042] Furthermore, in step 2.2), b=1024; k≥1024 2 .

[0043] Furthermore, in step 2.2), the distance between two sampling points is calculated using the D2 Euclidean distance function.

[0044] Furthermore, the step 3 is specifically as follows:

[0045] 3.1) Use a depth camera to shoot the product under assembly in the assembly scene, obtain the three-dimensional point cloud data of the current assembly state of the product under assembly, and perform rasterization processing on it to obtain the point cloud data P of the current assembly state of the product under assembly in the actual assembly scene after rasterization processing m , m means that the product under assembly is currently in the mth assembly state;

[0046] 3.2) Point cloud data P of the current assembly state of the product being assembled m Perform rotation and translation transformation processing so that the point cloud data of the product under assembly is located at the center of the assembly horizontal plane, and obtain the point cloud data P of the current assembly state of the product under assembly after rotation and translation transformation processing. Regular ;

[0047] 3.3) Point cloud data P Regular Perform background filtering to filter out the background part in the assembly scene and obtain the point cloud data P of the current assembly state of the product after filtering. product .

[0048] Furthermore, in step 3.3), the points satisfying the following formula (5) are selected from the point cloud data P Regular Medium filtration;

[0049]

[0050] Where:

[0051] point e Represents the product point cloud set P Regular The e-th point in

[0052] point e1 Represents the x-axis coordinate of the e-th point;

[0053] point e2 Represents the y-axis coordinate of the e-th point;

[0054] r is the filtering radius, which is selected based on the geometric relationship and the size of the actual product being installed.

[0055] Furthermore, the step 4 adopts the same method as step 2 to obtain the point cloud data P of the product in the current assembly state. product The corresponding shape distribution vector S product .

[0056] Further, step 5 is specifically as follows: 5.1) the point cloud data P obtained in step 4 is product The corresponding shape vector S product The shape distribution vector S of the digital model of the assembly under each assembly state and each viewing angle obtained in step 2 model Compare them one by one and calculate the cosine value;

[0057] 5.2) Sort the cosine values ​​obtained in step 5.1), and the assembly state corresponding to the digital model shape distribution vector with the largest cosine value is the current assembly state of the product being assembled.

[0058] Compared with the prior art, the present invention has the following beneficial effects:

[0059] The present invention first establishes the circumscribed regular polyhedron of each assembly state of the product digital model, and obtains the projection point cloud data of the digital model under different viewing angles through the center point of the segmented surface. At the same time, the point cloud data of the assembled product in the assembly scene is obtained through a depth camera, and then the point cloud data is described using a shape vector descriptor, and each set of point cloud data is represented as a high-dimensional shape vector. Finally, the cosine similarity algorithm is used to calculate the similarity between the assembly state of the assembled product to be identified and the assembly state of the digital model, thereby completing the assembly state recognition. Since the point cloud data of the assembled product is collected by a depth camera and described using a global shape vector descriptor, the present invention avoids the problem of low recognition rate caused by the lack of significant structural features of the assembly, and has a good response speed. To a certain extent, it can complete the recognition of different assembly states of the product, thereby improving the efficiency in actual assembly work, and the time complexity is low. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 It is a flow chart of the method for identifying assembly status without marking of the present invention.

[0061] Figure 2 These are the four groups of samples selected in the embodiment of the present invention and the assembly states they contain.

[0062] Figure 3 It is a schematic diagram of a regular icosahedron circumscribed by the digital model in the present invention.

[0063] Figure 4 It is a schematic diagram of the expansion of the circumscribed regular icosahedron of the digital model in the present invention after segmentation.

[0064] Figure 5 It is the projection point cloud of the digital model of Model2 Stats12 in the embodiment of the present invention at some different viewing angles.

[0065] Figure 6 It is a partial shape distribution histogram corresponding to the digital model projection point cloud of Model2 Stats12 in the embodiment of the present invention.

[0066] Figure 7 It is the data after the point cloud of the assembly scene where the product is installed is rasterized in the embodiment of the present invention.

[0067] Figure 8 It is the product point cloud data of Model2 Stats12 after background filtering in the embodiment of the present invention.

[0068] Fig. 9 It is a partial shape distribution histogram corresponding to the point cloud data of Model2 Stats12 of the installed product in the embodiment of the present invention.

[0069] Fig.10 It is the identification result of each assembly state of the selected sample in the embodiment of the present invention. DETAILED DESCRIPTION

[0070] The present invention will be further described below in conjunction with the accompanying drawings.

[0071] like Figure 1 As shown, the method for identifying assembly status without marking based on product depth image point cloud proposed by the present invention comprises the following steps:

[0072] Step 1: Obtain a point cloud data set of the digital model of each assembly state of the assembly at different perspectives.

[0073] The assembly is Represents the first assembly state of the assembly, represents the mth assembly state of the assembly, where m is the total number of parts in the assembly, which means that the assembly has a total of m assembly states, and a new assembly state is obtained each time a part is assembled; for assembly P part Each assembly state (j is 1, 2, ..., m respectively) are used to establish circumscribed regular polyhedrons for the digital models, and each face of each circumscribed regular polyhedron is evenly divided into multiple triangles / polygons. The center point of each triangle / polygon obtained after division is used as the shooting perspective to virtually shoot the corresponding digital model, and obtain the projection point cloud set of the digital model of each assembly state of the assembly at different perspectives. The specific method is as follows:

[0074] 1.1) Establish assembly status The circumscribed regular polyhedron of the digital model makes the vertices of the outer contour of the digital model located at or close to the surface of the regular polyhedron; j represents the jth assembly state of the assembly; 1≤j≤m;

[0075] 1.2) The regular polyhedron established in 1.1) is segmented, that is, based on the regular polyhedron, each face of the regular polyhedron is evenly segmented into a triangles / polygons; through the segmentation process, the number of faces of the regular polyhedron becomes a times the original number, so the shooting angle also changes accordingly;

[0076] 1.3) Take pictures of the digital model using the center points of each triangle / polygon obtained after segmentation as the shooting angle (the center line of the shooting angle passes through the center points of each triangle / polygon and is parallel to the normal vector of the plane where it is located) to obtain the assembly status A collection of point cloud data of the external shape of the digital model from the perspective of the center point of each triangle / polygon P modelf Indicates the assembly state captured from the fth viewing angle Point cloud data set of digital models;

[0077] 1.4) Using the above methods 1.1)-1.3), obtain the external shape point cloud data sets of the remaining assembly states under different viewing angles.

[0078] In the above steps, the more complex the digital model is, the more faces the regular polyhedron has; the more faces the regular polyhedron has, the higher the recognition rate is; the number of faces of the circumscribed regular polyhedrons of the digital models of different assembly states of the same assembly can be the same or different.

[0079] Step 2: Obtain the shape distribution vector S corresponding to the point cloud data set of the digital model of each assembly state of the assembly at different viewing angles model .

[0080] 2.1) Assembly status of the assembly The point cloud data set P of the digital model taken at the zth (1≤z≤f) viewing angle modelz Perform k random samplings, select any two sampling points for each random sampling, and calculate the distance between the two sampling points; k is selected according to the complexity of the digital model, preferably greater than or equal to 1024 2 Second-rate;

[0081] 2.2) Based on the k distance values ​​obtained by random sampling in step 2.1), an equidistant histogram with b intervals is established to represent the distribution of these k distance values. The height h of each interval represents the frequency of the distance value in this interval. The group distance d is shown in formula (2):

[0082]

[0083] Where:

[0084] l oumax Indicates the maximum value among the sampling results;

[0085] l oumin Indicates the minimum value among the sampling results;

[0086] b is the number of intervals of the equidistant histogram. The larger the value of b, the more accurate the subsequent recognition, but the more complicated the calculation. It is preferably 1024;

[0087] The height h of the histogram should satisfy formula (3):

[0088]

[0089] Where:

[0090] b i Indicates the frequency of the distance value falling into the i-th interval;

[0091] h i represents the frequency of the i-th interval;

[0092] k is the number of random samplings.

[0093] 2.3) Construct the assembly state of the assembly based on the isometric histogram established in step 2.2) The point cloud data set P taken from the z-th perspective of the digital model modelz The corresponding s-dimensional (s=b) shape distribution vector S modelz , the shape distribution vector S modelz The value of each dimension of corresponds to the height h of the histogram interval, as shown in formula (4):

[0094]

[0095] Where:

[0096] s i Represents the shape distribution vector S modelz The i-th component of ;

[0097] h i Represents the height of the i-th interval of the histogram interval;

[0098] 2.4) Using the above 2.1)-2.3) methods, obtain the assembly state P of the assembly j part The shape distribution vector corresponding to the point cloud data set of the digital model taken at other different viewing angles;

[0099] 2.5) Sampling the above 2.1)-2.4) methods, obtain the shape distribution vectors corresponding to the point cloud data sets of the digital models of the remaining assembly states of the assembly taken at different viewing angles, thereby obtaining the shape distribution vectors S of the digital models of the assembly at each assembly state and each viewing angle model .

[0100] Step 3: Obtain the point cloud data P of the current assembly state of the product in the actual assembly scene product

[0101] 3.1) Use a depth camera to shoot the product under assembly in the assembly scene, obtain the three-dimensional point cloud data of the current assembly state of the product under assembly, and perform rasterization processing on it to obtain the point cloud data P of the current assembly state of the product under assembly in the actual assembly scene after rasterization processing m , m means that the product under assembly is currently in the mth assembly state;

[0102] 3.2) Point cloud data P of the current assembly state of the product being assembled m Perform rotation and translation transformation processing so that the point cloud data of the product under assembly is located at the center of the assembly horizontal plane, and obtain the point cloud data P of the current assembly state of the product under assembly after rotation and translation transformation processing. Regular ;

[0103] 3.3) According to the geometric relationship and the size of the actual product being installed, set the filter radius r and filter the point cloud data P Regular Perform background filtering to filter out the background part in the assembly scene and obtain the point cloud data P of the current assembly state of the product after filtering. product ; Among them, the background filtering condition is shown in formula (5), that is, the points that satisfy formula (5) are removed from the point cloud data P Regular Medium filtration;

[0104]

[0105] Where:

[0106] point e Represents the product point cloud set P Regular The e-th point in

[0107] point e1 Represents the x-axis coordinate of the e-th point;

[0108] point e2 Represents the y-axis coordinate of the e-th point.

[0109] Step 4: Obtain the point cloud data P of the current assembly state of the product in the actual assembly scene product The corresponding shape distribution vector.

[0110] 4.1) Point cloud data P product Perform q random samplings, select any two sampling points for each random sampling, and calculate the distance between the two sampling points; q is selected according to the complexity of the digital model, preferably greater than or equal to 1024 2 Second-rate;

[0111] 4.2) Based on the q distance values ​​obtained by q random samplings in step 4.1), an equidistant histogram with b intervals is established to represent the distribution of these q distance values. The height h of each interval represents the frequency of the distance value in this interval.

[0112] 4.3) Based on the isometric histogram established in step 4.2), construct the point cloud data P of the product in the current assembly state product The corresponding s-dimensional (s=b) shape distribution vector S product , the shape distribution vector S product The value of each dimension of corresponds to the height h of each interval of the equidistant histogram.

[0113] Step 5: Identify the current assembly status of the product

[0114] 5.1) The point cloud data P obtained in step 4 in the current assembly state of the product product Corresponding shape vector S product The shape distribution vector S of the digital model of the assembly under each assembly state and each viewing angle obtained in step 2 model Compare them one by one and calculate the cosine value; the cosine value of the angle between two vectors, cosθ, is calculated according to formula (6):

[0115]

[0116] 5.2) Sort the cosine values ​​obtained in step 5.1), and the assembly state corresponding to the digital model shape distribution vector with the largest cosine value is the current assembly state of the assembled product, thereby realizing the identification of the current assembly state.

[0117] Example:

[0118] like Figure 2 As shown, this embodiment selects 4 groups of samples, a total of 26 groups of assembly states, to illustrate the unmarked assembly state recognition method of the present invention. The specific method is:

[0119] Step 1: Obtain a point cloud data set of the digital model of each assembly state of the assembly at different perspectives.

[0120] 1.1) Establish the circumscribed regular icosahedron of the digital model of the jth assembly state of the samples Model1~4 respectively, so that the vertices of the outer contour of the digital model are located at or close to the face of the regular polyhedron; 1≤j≤m; Taking the digital model of Model 1Status5 as an example, the circumscribed regular icosahedron of the established digital model is as follows Figure 3 As shown;

[0121] 1.2) The icosahedron created in step 1.1) is segmented, that is, based on the icosahedron, each equilateral triangle constituting the icosahedron is segmented into four equilateral triangles of the same size; through the segmentation process, the number of faces of the icosahedron is increased from 20 to 80, so the projection angle of view is also increased to 80. The unfolded diagram of the segmented icosahedron is as follows: Figure 4 As shown;

[0122] 1.3) Take the center of the 80 triangles obtained after segmentation as the shooting angle to shoot the corresponding digital model. The center line of the shooting angle passes through the center of the triangle and is parallel to the normal vector of the plane where it is located. The external shape point cloud data of the j-th digital model Model1 to 4 in the current assembly state under 80 different viewing angles is obtained. The point cloud data of the digital model Model2 Stats12 under some viewing angles is as follows Figure 5 shown.

[0123] 1.4) Using the methods of 1.1)-1.3), the external shape point cloud data of the remaining assembly states of sample Model 1 to 4 at 80 different viewing angles are obtained, thereby obtaining the external shape point cloud data of each assembly state of sample Model 1 to 4 at 80 different viewing angles.

[0124] Step 2: Obtain a point cloud data set of the digital model of each assembly state of the assembly at different perspectives.

[0125] 2.1) The point cloud data set P of the digital model of the j-th assembly state of the sample Model 1~4 taken at the z-th (1≤z≤80) viewing angle modelz 1024 2 Random sampling, each random sampling selects any two sampling points (x1, x2, x3) and (x′1, x′2, x′3), and uses the D2 Euclidean distance function to calculate the distance l between the two sampling points ou :

[0126]

[0127] 2.2) Based on step 2.1) 1024 2 1024 random samples and calculations 2 distance values, create an equidistant histogram with 1024 intervals to represent these 1024 2 The distribution of distance values, the height h of each interval represents the frequency of the distance value in this interval, and the group distance d is shown in formula (8):

[0128]

[0129] Where:

[0130] l oumax Indicates the maximum distance in the sampling results;

[0131] l oumin Indicates the minimum distance value in the sampling results.

[0132] The height h of the histogram should satisfy equation (9).

[0133]

[0134] Where:

[0135] b i Indicates the frequency of the calculation result falling into the i-th interval;

[0136] h i represents the frequency of the ith interval.

[0137] The isometric histograms corresponding to the point cloud data under some viewing angles of the digital model Model2 Stats12 are as follows Figure 6 shown.

[0138] 2.3) Based on the isometric histogram established in step 2.2), the shape distribution vector S corresponding to the point cloud data set of the digital model of the j-th assembly state of sample Model 1 to 4 photographed at the z-th viewing angle is constructed respectively. model , the shape distribution vector S model is a 1024-dimensional vector, and the value of each dimension is the height h of the corresponding histogram interval, as shown in formula (10):

[0139]

[0140] Where:

[0141] s i represents the i-th component of the shape distribution vector;

[0142] h i Represents the height of the i-th interval of the histogram interval;

[0143] 2.4) Using the method of steps 2.1) to 2.3) above, respectively obtain the shape distribution vectors corresponding to the point cloud data sets of the digital models of the j-th assembly state of the samples Model 1 to 4 taken at the remaining 79 different viewing angles;

[0144] 2.5) Sampling the above 2.1)-2.4) methods, respectively obtain the shape distribution vectors corresponding to the point cloud data sets of the digital models of the remaining assembly states of the sample Model 1 to 4 taken at 80 different viewing angles, thereby obtaining the shape distribution vectors S of the digital models of the sample Model 1 to 4 in each assembly state and each viewing angle. model.

[0145] Step 3: Obtain the point cloud data P of the current assembly state of the assembled product corresponding to the sample Models 1 to 4 in the actual assembly scene product

[0146] 3.1) Use a depth camera to shoot the product under assembly in the assembly scene, obtain the three-dimensional point cloud data of the current assembly state of the product under assembly and perform rasterization processing to obtain the processed point cloud set P of the current assembly state of the product under assembly, such as Figure 7 shown.

[0147] 3.2) Rotate and translate the point cloud set P of the product under assembly so that the point cloud set of the product under assembly is located at the center of the assembly horizontal plane, and obtain the processed point cloud set P of the current assembly state of the product under assembly Regular .

[0148] 3.3) According to the geometric relationship and the size of the actual product being installed, the filter radius r = 300mm is set, and the point cloud P of the current assembly state of the product being installed is Regular Perform background filtering to filter out the background part in the assembly scene and obtain the filtered product point cloud P product ,like Figure 8 As shown. Among them, the condition of background filtering is shown in formula (11), that is, the points that satisfy formula (11) are filtered out.

[0149]

[0150] Where:

[0151] point e Represents the product point cloud set P Regular The e-th point in

[0152] point e1 Represents the x-axis coordinate of the e-th point;

[0153] point e2 Represents the y-axis coordinate of the e-th point.

[0154] Step 4: Obtain the point cloud data P of the current assembly state of the product in the actual assembly scene corresponding to the sample Models 1 to 4 product The corresponding shape distribution vector.

[0155] 4.1) Point cloud data P product 1024 2 Random sampling, each time randomly selecting any two points in the point cloud, and using the D2 Euclidean distance function to calculate the distance between the two sampling points (the same principle as step 2.1);

[0156] 4.2) Based on the calculation results of step 4.1), establish an equidistant histogram with 1024 intervals to represent the distribution of the calculation results. The height h of each interval represents the frequency of the calculation result in this interval (the same principle as step 2.2)); the partial shape distribution histogram corresponding to the point cloud data of Model2 Stats12 of the installed product is as follows Fig. 9 shown.

[0157] 4.3) Based on the isometric histogram established in step 4.2), a point cloud data P is constructed under the current assembly state of the product Model 1 to 4. product The corresponding shape distribution vector S product , the shape distribution vector S product It has 1024 dimensions, and the value of each dimension is the height h of the corresponding histogram interval (the same principle as step 2.3);

[0158] Step 5: Identify the current assembly status of the product

[0159] 5.1) The point cloud data P of the current assembly state of the assembled product Model 1-4 obtained in step 4 is product Corresponding shape vector S product The digital model shape distribution vector S of Model 1 to 4 at 80 viewing angles in each assembly state obtained in step 2 model Compare them one by one and calculate the cosine value;

[0160] 5.2) Sort the cosine values ​​obtained in step 5.1), and the assembly state corresponding to the digital model shape distribution vector with the largest cosine value is the current assembly state of the assembled product, so as to realize the recognition of the current assembly state; the recognition results of each assembly state of the four groups of samples Model1~4 are as follows: Fig.10 shown.

Claims

1. A method for identifying assembly states without markings based on product depth image point cloud, characterized in that: The following steps are involved: Step 1: Obtain a point cloud data set of the digital model of each assembly state of the assembly at different viewing angles; Step 2: Obtain the shape distribution vector S corresponding to the point cloud data set of the digital model of each assembly state of the assembly at different viewing angles model ; 2.1) Assembly status of the assembly The point cloud data set P taken from the z-th perspective of the digital model modelz Perform k random samplings, select any two sampling points for each random sampling, and calculate the distance between the two sampling points; k is selected according to the complexity of the digital model; 1≤z≤f; 2.2) Based on the k distance values ​​obtained by random sampling in step 2.1), an equidistant histogram with b intervals is established to represent the distribution of these k distance values. The height h of each interval represents the frequency of the distance value in this interval. Then the group distance d is: Where: l oumax Indicates the maximum value among the sampling results; l oumin Indicates the minimum value among the sampling results; b is the number of intervals of the equidistant histogram. The larger the value of b, the more accurate the recognition, but the more complicated the calculation. It is selected according to actual needs; The height h of the histogram should satisfy the following formula: Where: b i Indicates the frequency of the distance value falling into the i-th interval; h i represents the frequency of the i-th interval; k is the number of random sampling; 2.3) Construct the assembly state of the assembly based on the isometric histogram established in step 2.2) The point cloud data set P taken from the z-th perspective of the digital model modelz The corresponding s-dimensional shape distribution vector S modelz , the shape distribution vector S modelz The value of each dimension of corresponds to the height h of the histogram interval, as shown in the following formula: Where: s i Represents the shape distribution vector S modelz The i-th component of ; h i Represents the height of the i-th interval of the histogram interval; 2.4) Using the above 2.1)-2.3) methods, obtain the assembly state P of the assembly j part The shape distribution vector corresponding to the point cloud data set of the digital model taken at other different viewing angles; 2.5) Sampling the above 2.1)-2.4) methods, obtain the shape distribution vectors corresponding to the point cloud data sets of the digital models of the remaining assembly states of the assembly taken at different viewing angles, so as to obtain the shape distribution vectors S of the digital models of the assembly at each assembly state and each viewing angle model ; Step 3: Obtain the point cloud data P of the current assembly state of the product in the actual assembly scene product ; Step 4: Use the same method as step 2 to obtain the point cloud data P of the current assembly state of the product in the actual assembly scene product The corresponding shape distribution vector S product ; Step 5: Shape distribution vector S obtained based on step 2 model And the shape distribution vector S obtained in step 4 product , the cosine similarity algorithm is used to calculate the assembly status of the product to be identified.

2. The method for identifying assembly states without markings based on product depth image point cloud according to claim 1, characterized in that: Step 1 is as follows: 1.1) Establish assembly status The circumscribed regular polyhedron of the digital model makes the vertices of the outer contour of the digital model located at or close to the surface of the regular polyhedron; j represents the jth assembly state of the assembly; 1≤j≤m; 1.2) Segmenting the regular polyhedron established in 1.1), that is, based on the regular polyhedron, evenly segmenting each face constituting the regular polyhedron into a plurality of triangles / polygons; 1.3) Take photos of the digital model using the center points of each triangle / polygon obtained after segmentation as the shooting angle to obtain the assembly status A collection of point cloud data of the external shape of the digital model from the perspective of the center point of each triangle / polygon P modelf Indicates the assembly state captured from the fth viewing angle Point cloud data set of digital models; 1.4) Using the above methods 1.1)-1.3), obtain the external shape point cloud data sets of the remaining assembly states under different viewing angles.

3. The method for identifying assembly states without markings based on product depth image point cloud according to claim 2, characterized in that: In step 1.1), the more complex the digital model is, the more faces the regular polyhedron has.

4. The method for identifying assembly states without markings based on product depth image point cloud according to claim 1, characterized in that: b=1024;k≥1024 in step 2.2) 2 .

5. The method for identifying assembly states without markings based on product depth image point cloud according to claim 1, characterized in that: In step 2.2), the distance between two sampling points is calculated using the D2 Euclidean distance function.

6. The method for identifying assembly states without markings based on product depth image point cloud according to claim 1, characterized in that: The step 3 is specifically as follows: 3.1) Use a depth camera to shoot the product under assembly in the assembly scene, obtain the three-dimensional point cloud data of the current assembly state of the product under assembly, and perform rasterization processing on it to obtain the point cloud data P of the current assembly state of the product under assembly in the actual assembly scene after rasterization processing m , m means that the product under assembly is currently in the mth assembly state; 3.2) Point cloud data P of the current assembly state of the product being assembled m Perform rotation and translation transformation processing so that the point cloud data of the product under assembly is located at the center of the assembly horizontal plane, and obtain the point cloud data P of the current assembly state of the product under assembly after rotation and translation transformation processing. Regular ; 3.3) Point cloud data P Regular Perform background filtering to filter out the background part in the assembly scene and obtain the point cloud data P of the current assembly state of the product after filtering. product .

7. The method for identifying assembly states without markings based on product depth image point cloud according to claim 6, characterized in that: In step 3.3), the points satisfying the following equation are extracted from the point cloud data P Regular Medium filtration; Where: point e Represents the product point cloud set P Regular The e-th point in point e1 Represents the x-axis coordinate of the e-th point; point e2 Represents the y-axis coordinate of the e-th point; r is the filtering radius, which is selected based on the geometric relationship and the size of the actual product being installed.

8. The method for identifying assembly status without marking based on product depth image point cloud according to any one of claims 1 to 7, characterized in that: Step 5 is as follows: 5.1) The point cloud data P obtained in step 4 product The corresponding shape vector S product The shape distribution vector S of the digital model of the assembly under each assembly state and each viewing angle obtained in step 2 model Compare them one by one and calculate the cosine value; 5.2) Sort the cosine values ​​obtained in step 5.1), and the assembly state corresponding to the digital model shape distribution vector with the largest cosine value is the current assembly state of the product being assembled.