Method, device, equipment and storage medium for determining welding posture of parts

By obtaining the target point cloud data and conversion matrix of the target part, the position of the part is quickly determined, which solves the problem of inefficiency in the existing technology and realizes efficient welding position determination.

CN115049729BActive Publication Date: 2024-11-01ZHEJIANG XITUMENG DIGITAL TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210511705.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-10
Publication Date
2024-11-01
Estimated Expiration
2042-05-10

AI Technical Summary

Technical Problem

In the prior art, the efficiency of obtaining the actual position of the parts is low, resulting in complex calculations and low efficiency during the welding process.

Method used

By obtaining the target point cloud data of the target part, determining the target bounding box and multiple target vertices, using the preset conversion matrix to quickly determine the position of the target part based on the coordinate conversion relationship between the reference vertex and the reference welding point, and then performing welding.

Benefits of technology

It improves the determination efficiency of parts welding poses, reduces the dependence on point cloud data matching, simplifies the calculation process, and improves welding efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115049729B_ABST
    Figure CN115049729B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for determining the welding posture of a part, which relates to the field of image processing technology and solves the problem of low efficiency in determining the actual posture of a part. The specific scheme includes: obtaining target point cloud data of a target part, wherein the target point cloud data includes a target welding point of the target part; determining a target bounding box of the target part according to the target point cloud data, and determining multiple target vertices of the target bounding box; determining a target posture of the target part according to multiple target vertices and multiple preset transformation matrices, wherein the transformation matrix is ​​used to indicate the coordinate transformation relationship between a reference vertex and a reference welding point, and the reference vertex is determined according to the reference point cloud data of the target part in a preset posture; welding the target part according to the target posture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method, device, equipment and storage medium for determining a welding posture of a part. Background Art

[0002] With the development of technology, automated factories gradually use machines to replace manual work for parts welding. Since the placement angles of parts are different during the actual welding process, it is necessary to determine the actual position of the parts before welding, and then weld the parts based on the determined actual position of the parts.

[0003] In the prior art, point cloud data of the part to be welded can be obtained, and the point cloud matching method is used to process the obtained point cloud data to obtain the actual position and posture of the part. However, the calculation of this method is relatively complex, resulting in low efficiency in determining the actual position and posture of the part. Summary of the invention

[0004] The present application provides a method, device, equipment and storage medium for determining the welding posture of a part, which solves the problem of low efficiency in determining the actual posture of a part.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect of an embodiment of the present application, a method for determining a welding posture of a part is provided, the method comprising:

[0007] Acquire target point cloud data of a target part, wherein the target point cloud data includes a target welding point of the target part;

[0008] Determine a target bounding box of the target part according to the target point cloud data, and determine a plurality of target vertices of the target bounding box;

[0009] Determining a target pose of a target part according to a plurality of target vertices and a plurality of preset transformation matrices, wherein the transformation matrix is ​​used to indicate a coordinate transformation relationship between a reference vertex and a reference welding point, wherein the reference vertex is determined according to reference point cloud data of the target part in a preset pose;

[0010] Weld the target parts according to the target posture.

[0011] In one embodiment, determining a target pose of a target part according to a plurality of target vertices and a plurality of preset transformation matrices includes:

[0012] Calculate the product of a first vector corresponding to a first vertex and each transformation matrix to obtain a plurality of first reference poses, where the first vertex is any vertex among the plurality of target vertices;

[0013] Calculate the product of the second vector corresponding to the second vertex and each transformation matrix to obtain multiple second reference poses, where the second vertex is any other vertex among the multiple target vertices except the first vertex;

[0014] A target pose is determined based on the plurality of first reference poses and the plurality of second reference poses.

[0015] In one embodiment, determining a target pose according to a plurality of first reference poses and a plurality of second reference poses includes:

[0016] Calculating the pose difference between each first reference pose and each second reference pose respectively, and determining the pose difference less than a preset threshold as the target pose difference;

[0017] The first reference posture or the second reference posture corresponding to the target posture difference is determined as the target posture.

[0018] In one embodiment, the method further comprises:

[0019] Obtain reference point cloud data of the target part;

[0020] Determine a reference bounding box of the target part according to the reference point cloud data, and determine a plurality of reference vertices of the reference bounding box;

[0021] According to each reference vertex and the reference welding point, a transformation matrix corresponding to each reference vertex is determined.

[0022] In one embodiment, obtaining target point cloud data of a target part includes:

[0023] Acquire a first image, the first image including a target part;

[0024] Inputting the first image into a preset image segmentation model to obtain a target image of the target part, where the target image is composed of a plurality of pixel points;

[0025] Determine the depth of field data of each pixel in the target image according to the first image;

[0026] According to the pixel coordinates and depth data of each pixel point, candidate point cloud data is obtained;

[0027] The target point cloud data is obtained according to the candidate point cloud data.

[0028] In one embodiment, obtaining target point cloud data according to reference point cloud data includes:

[0029] Taking the candidate point cloud data as the target point cloud data;

[0030] Alternatively, the color point cloud data is determined according to the candidate point cloud data and the pixel value of each pixel, and the color point cloud data is used as the target point cloud data.

[0031] In one embodiment, acquiring a first image includes:

[0032] Receiving a first image sent by a binocular camera, where the first image includes two images;

[0033] Determining depth of field data of each pixel point in the target image according to the first image includes:

[0034] Input the two images into a preset adaptive aggregation network model to obtain the depth data of each pixel in each of the two images;

[0035] The depth data of each pixel point in the target image is determined according to the coordinates of each pixel point in the target image and the depth data of the pixel point included in any one of the two images.

[0036] In one embodiment, candidate point cloud data is obtained according to the pixel coordinates and depth data of each pixel point, including:

[0037] Candidate point cloud data is determined based on the pixel coordinates of each pixel in the target image and a preset first mapping coefficient, as well as the depth of field data of each pixel in the target image and a preset second mapping coefficient, and the first mapping coefficient and the second mapping coefficient are used to indicate a mapping relationship between the first image and the spatial area corresponding to the first image.

[0038] In a second aspect of an embodiment of the present application, a device for determining a welding posture of a part is provided, the device comprising:

[0039] An acquisition module is used to acquire target point cloud data of a target part, wherein the target point cloud data includes target welding points of the target part;

[0040] A first determination module is used to determine a target bounding box of a target part according to the target point cloud data, and to determine a plurality of target vertices of the target bounding box;

[0041] The second determination module is used to determine the target posture of the target part based on multiple target vertices and multiple preset transformation matrices, and weld the target part according to the target posture; the transformation matrix is ​​used to indicate the coordinate transformation relationship between the reference vertex and the reference welding point, and the reference vertex is determined based on the reference point cloud data of the target part in the preset posture.

[0042] According to a third aspect of an embodiment of the present application, an electronic device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method for determining the welding posture of a part in the first aspect of the embodiment of the present application can be implemented.

[0043] According to a fourth aspect of an embodiment of the present application, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for determining the welding posture of a part in the first aspect of the embodiment of the present application can be implemented.

[0044] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0045] The method for determining the welding posture of a part provided in an embodiment of the present application obtains the target point cloud data of the target part, and determines the target bounding box of the target part and multiple target vertices of the target bounding box according to the target point cloud data, determines the target posture of the target part according to the multiple target vertices and multiple preset transformation matrices, and then welds the target part according to the target posture, wherein the transformation matrix indicates the coordinate transformation relationship between the reference vertex and the reference welding point, and the reference vertex is determined according to the reference point cloud data of the target part in a preset posture. The method for determining the welding posture of a part provided in an embodiment of the present application can obtain the target posture of the target part by using the target vertex and the transformation matrix determined in advance according to the coordinate transformation relationship between the reference vertex and the reference welding point, and can obtain the target posture of the target part without one-to-one matching according to the data of the target point cloud, thereby improving the efficiency of determining the target posture of the welding part. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A schematic diagram of the internal structure of an electronic device provided in an embodiment of the present application;

[0047] Figure 2 A flowchart of a method for determining a welding posture of a part provided in an embodiment of the present application;

[0048] Figure 3 A schematic diagram of a target point cloud generation process provided by an embodiment of the present application;

[0049] Figure 4 A structural diagram of a device for determining a welding posture of a part provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0051] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.

[0052] Additionally, the use of “based on” or “according to” is meant to be open and inclusive, as a process, step, calculation, or other action “based on” or “according to” one or more conditions or values ​​may, in practice, be based on additional conditions or beyond values.

[0053] With the development of technology, automated factories gradually use machines to replace manual work for parts welding. Since the placement angles of parts are different during the actual welding process, it is necessary to determine the actual position of the parts before welding, and then weld the parts based on the determined actual position of the parts.

[0054] In the prior art, point cloud data of the part to be welded can be obtained, and the point cloud matching method is used to process the obtained point cloud data to obtain the actual position and posture of the part. However, the calculation of this method is relatively complex, resulting in low efficiency in determining the actual position and posture of the part.

[0055] In order to solve the above problems, the embodiment of the present application provides a method for determining the welding posture of a part, by acquiring the target point cloud data of the target part, and determining the target bounding box of the target part and multiple target vertices of the target bounding box according to the target point cloud data, and determining the target posture of the target part according to the multiple target vertices and multiple preset transformation matrices, and then welding the target part according to the target posture, wherein the transformation matrix indicates the coordinate transformation relationship between the reference vertex and the reference welding point, and the reference vertex is determined according to the reference point cloud data of the target part in the preset posture. The method for determining the welding posture of a part provided in the embodiment of the present application can obtain the target posture of the target part by using the target vertex and the transformation matrix determined in advance according to the coordinate transformation relationship between the reference vertex and the reference welding point. The target posture of the target part can be obtained without one-to-one matching according to the data of the target point cloud, thereby improving the efficiency of determining the target posture of the welding part.

[0056] The executor of the method for determining the welding posture of parts provided in the embodiment of the present application may be an electronic device. Optionally, the electronic device may be a computer device, a terminal device, or a server. The terminal device may be various personal computers, laptops, smart phones, tablet computers, portable wearable devices, etc., and the present application does not make any specific limitation thereto.

[0057] Figure 1This is a schematic diagram of the internal structure of an electronic device provided in an embodiment of the present application. Figure 1 As shown, the electronic device includes a processor and a memory connected via a system bus. The processor is used to provide computing and control capabilities. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement the steps of a method for determining a welding posture of a part provided in each of the above embodiments. The internal memory provides a cache operating environment for the operating system and the computer program in the non-volatile storage medium.

[0058] Those skilled in the art will understand that Figure 1 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0059] Based on the above execution subject, the embodiment of the present application provides a method for determining the welding posture of a part. Figure 2 As shown, the method comprises the following steps:

[0060] Step 201: Obtain target point cloud data of a target part.

[0061] The target part includes welding points, so the target point cloud data of the target part includes point cloud data of the target welding points of the target part.

[0062] Step 202: determine a target bounding box of the target part according to the target point cloud data, and determine a plurality of target vertices of the target bounding box.

[0063] The bounding box may be a cuboid, which may be the minimum circumscribed cuboid of the point cloud data of the target part. Taking the case where the bounding box is the minimum circumscribed cuboid of the target point cloud data as an example, the target vertices are the 8 vertices of the cuboid.

[0064] Step 203: Determine a target pose of the target part according to multiple target vertices and multiple preset transformation matrices.

[0065] Among them, the transformation matrix is ​​used to indicate the coordinate transformation relationship between the reference vertex and the reference welding point, and the reference vertex is determined based on the reference point cloud data of the target part in a preset posture.

[0066] It should be noted that before determining the target pose of the target part, it is necessary to obtain a transformation matrix in advance, and then the target pose of the target part can be determined based on multiple target vertices actually obtained and multiple preset transformation matrices.

[0067] Specifically, the process of determining the transformation matrix can be: obtaining the reference point cloud data of the target part, and determining the reference bounding box of the target part based on the reference point cloud data, and determining multiple reference vertices of the reference bounding box, and finally, determining the transformation matrix corresponding to each reference vertex based on each reference vertex and the reference welding point.

[0068] The reference point cloud data and the target point cloud data are point cloud data of the target part in different postures or the same posture.

[0069] Step 204: welding the target parts according to the target posture.

[0070] In actual application, after obtaining the target posture of the target part, the target part can be welded according to the data of the target posture.

[0071] The method for determining the welding posture of a part provided in an embodiment of the present application obtains the target point cloud data of the target part, and determines the target bounding box of the target part and multiple target vertices of the target bounding box according to the target point cloud data, determines the target posture of the target part according to the multiple target vertices and multiple preset transformation matrices, and then welds the target part according to the target posture, wherein the transformation matrix indicates the coordinate transformation relationship between the reference vertex and the reference welding point, and the reference vertex is determined according to the reference point cloud data of the target part in a preset posture. The method for determining the welding posture of a part provided in an embodiment of the present application can obtain the target posture of the target part by using the target vertex and the transformation matrix determined in advance according to the coordinate transformation relationship between the reference vertex and the reference welding point, and can obtain the target posture of the target part without one-to-one matching according to the data of the target point cloud, thereby improving the efficiency of determining the target posture of the welding part.

[0072] In one embodiment, in step 203, the specific process of determining the target pose of the target part according to the multiple target vertices and the multiple preset transformation matrices may be:

[0073] The product of a first vector corresponding to a first vertex and each transformation matrix is ​​calculated to obtain a plurality of first reference poses, where the first vertex is any vertex among a plurality of target vertices; the product of a second vector corresponding to a second vertex and each transformation matrix is ​​calculated to obtain a plurality of second reference poses, where the second vertex is any vertex among the plurality of target vertices except the first vertex; and the target pose is determined according to the plurality of first reference poses and the plurality of second reference poses.

[0074] Among them, the first vector corresponding to the first vertex can be the coordinate data of the first vertex, and the second vector corresponding to the second vertex can be the coordinate data of the second vertex. The example coordinate data can be (x, y, z, a, b, c), wherein x, y, z refer to the projection data of the first vertex under the x-axis, y-axis and z-axis, and a, b, c refer to the offset angle data of the first vertex relative to the x-axis, y-axis and z-axis respectively.

[0075] Specifically, the process of determining the target posture according to the multiple first reference postures and the multiple second reference postures may be:

[0076] The posture difference between each first reference posture and each second reference posture is calculated respectively, and the posture difference less than a preset threshold is determined as the target posture difference, and the first reference posture or the second reference posture corresponding to the target posture difference is determined as the target posture.

[0077] In the actual execution process, since the target point cloud data and the reference point cloud data may be point cloud data of the target part in different postures, it is impossible to determine the correspondence between the vertices of the target bounding box and the vertices of the reference bounding box, and the correspondence between the target vertices and the transformation matrix. The target posture can be obtained based on the first product result between the first target vertex and the first transformation matrix corresponding to the first reference vertex, or it can be obtained based on the second product result between the second transformation matrix corresponding to the second target vertex and the second reference vertex, and the first product result and the second product result are the same, or the error between the first product result and the second product result is small. Therefore, in the actual process of determining the target posture, the coordinate data of one of the target vertices can be selected, and the product of the coordinate data and each transformation matrix can be calculated to obtain multiple first reference posture data. Then, the coordinate data of the second vertex in the target vertex can be selected, and the product of the coordinate data and each transformation matrix can be calculated to obtain multiple second reference posture data. Then, the posture difference between each first reference posture and each second reference posture is calculated respectively, and the posture difference less than the preset threshold is determined as the target posture difference, and the first reference posture or second reference posture corresponding to the target posture difference is determined as the target posture, so that the target posture of the target part can be obtained.

[0078] In one embodiment, target point cloud data of a target part is obtained, including: obtaining a first image, the first image including the target part, inputting the first image into a preset image segmentation model to obtain a target image of the target part, the target image consisting of a plurality of pixel points; determining depth data of each pixel point in the target image based on the first image, obtaining candidate point cloud data based on the pixel coordinates and depth data of each pixel point, and finally obtaining target point cloud data based on the candidate point cloud data.

[0079] It should be noted that the target point cloud data of the target object is obtained according to the coordinates of each pixel point in the target image and the depth of field data of each pixel point in the target image.

[0080] The target image is obtained by performing image recognition and segmentation on the first image in the area where the target part is located, which is taken by the binocular camera. The target image included in the first image can be obtained.

[0081] Specifically, the first image may be input into a trained image segmentation model to obtain a target image.

[0082] In one implementation, the candidate point cloud data may be used as the target point cloud data.

[0083] In another implementation, the color point cloud data may be determined based on the candidate point cloud data and the pixel value of each pixel, and the color point cloud data may be used as the target point cloud data.

[0084] The pixel value is the RGB value of the pixel in the target image. In the actual execution process, the color point cloud data is used as the target point cloud data to display the target part, which can better display the color and texture of the part surface and facilitate the welding of the part.

[0085] In one embodiment, acquiring a first image includes: receiving a first image sent by a binocular camera, where the first image includes two images, which can be represented as a left image and a right image.

[0086] At the same time, the depth of field data of each pixel point in the target image is determined according to the first image, including: inputting the two images into a preset adaptive aggregation network model (AANet) to obtain the depth of field data of each pixel point in each of the two images; determining the depth of field data of each pixel point in the target image according to the coordinates of each pixel point in the target image and the depth of field data of the pixel points included in any one of the two images.

[0087] The adaptive aggregation network model performs deep learning on binocular visual images and uses the deep learning network to learn binocular disparity, which can obtain the depth information of the object surface. The RGB image is fused with the corresponding depth information to integrate the real spatial structure of the object into the color and texture information to restore the real three-dimensional scene information of the object. The three-dimensional scene information is visualized by the display software as a three-dimensional structure of three-dimensional space points.

[0088] It should be noted that AANet includes two core modules, the intra-scale cost aggregation module and the inter-scale cost aggregation module. Same-scale aggregation (ISA) refers to the cost aggregation of cost values ​​of the same resolution only. Traditional local cost aggregation cannot handle discontinuous disparity, which easily causes the problem of coarse edges of object edges and fine structures. This method proposes to use sparse point-based feature representation to more efficiently perform cost aggregation. It uses a deformable convolution to improve cost aggregation and alleviate the problem of edge discontinuity. The cross-scale aggregation module (CSA) is used to aggregate features between cost values ​​of different scales. For textureless or weak texture areas, the coarse scale obtained by downsampling can extract more discriminative features, but for some detailed features, higher-resolution disparity prediction is required. Therefore, multi-scale aggregation is a commonly used aggregation method, which solves the problem of large textureless areas in a cross-channel form. AANet, which combines ISA and CSA, can obtain sharper and more detailed results in weak texture areas. Compared with the best stereo matching model currently available, AANet overcomes the shortcomings of high computational complexity of 3D convolution and large storage space. The depth acquisition method of this method can completely replace 3D convolution, effectively reducing the number of network parameters and memory.

[0089] like Figure 3 As shown, it is a schematic diagram of the target point cloud generation process provided by the embodiment of the present application. Specifically, according to the pixel coordinates and depth data of each pixel point, the process of obtaining the candidate point cloud data can be:

[0090] Candidate point cloud data is determined based on the pixel coordinates of each pixel in the target image and a preset first mapping coefficient, as well as the depth of field data of each pixel in the target image and a preset second mapping coefficient, and the first mapping coefficient and the second mapping coefficient are used to indicate a mapping relationship between the first image and the spatial area corresponding to the first image.

[0091] The first mapping coefficient and the specific value of the first mapping coefficient are determined according to the internal parameter setting in the binocular camera or other camera used to collect the first image.

[0092] It should be noted that obtaining the target image of the target part is equivalent to obtaining the coordinate data of each pixel in the target image. The depth data of each pixel in the target image can be obtained through the above-mentioned adaptive aggregation network model. Then, there is a first mapping coefficient between the coordinate data of the pixel and the coordinate data of the object position in the actual shooting area. At the same time, there is also a second mapping coefficient between the depth data of each pixel in the target image and the actual spatial distance. After obtaining each pixel in the target image and the depth data of each pixel in the target image, the x and y values ​​in the point cloud data of the target object can be obtained according to the coordinate data of each pixel and the first mapping coefficient. Then, the z value in the point cloud data can be obtained according to the depth data of each pixel and the second mapping coefficient, so that the target point cloud data (x, y, z) can be obtained.

[0093] The method for determining the welding posture of a part provided in an embodiment of the present application obtains the target point cloud data of the target part, and determines the target bounding box of the target part and multiple target vertices of the target bounding box according to the target point cloud data, determines the target posture of the target part according to the multiple target vertices and multiple preset transformation matrices, and then welds the target part according to the target posture, wherein the transformation matrix indicates the coordinate transformation relationship between the reference vertex and the reference welding point, and the reference vertex is determined according to the reference point cloud data of the target part in a preset posture. The method for determining the welding posture of a part provided in an embodiment of the present application can obtain the target posture of the target part by using the target vertex and the transformation matrix determined in advance according to the coordinate transformation relationship between the reference vertex and the reference welding point, and can obtain the target posture of the target part without one-to-one matching according to the data of the target point cloud, thereby improving the efficiency of determining the target posture of the welding part.

[0094] The whole system work is divided into two stages: offline model building and online actual welding posture calculation. First, three modeling processes are carried out in the offline model building stage. First, the binocular image acquisition of the welding parts by the binocular camera and the establishment of the adaptive aggregation network model. Second, the three-dimensional point cloud reconstruction of the parts. Third, the point cloud pose calculation of the welding parts based on the inherent relative pose invariance. Among them, in the actual welding posture calculation process, when the system receives the start work instruction, the binocular camera starts to collect welding parts pictures, and sends the collected data to the adaptive aggregation network model model to obtain the depth information of each pixel in the collected welding parts picture to form a depth map, and then the depth map and the left view are obtained by the three-dimensional point cloud reconstruction module to obtain the welding parts point cloud, and finally the target part point cloud is obtained by the inherent relative pose method of this application to obtain the welding part pose, and the final welding operation is completed.

[0095] like Figure 4 As shown, an embodiment of the present application provides a device for determining a welding posture of a part, the device comprising:

[0096] An acquisition module 11 is used to acquire target point cloud data of a target part, wherein the target point cloud data includes target welding points of the target part;

[0097] A first determination module 12 is used to determine a target bounding box of a target part according to the target point cloud data, and to determine a plurality of target vertices of the target bounding box;

[0098] The second determination module 13 is used to determine the target posture of the target part based on multiple target vertices and multiple preset transformation matrices, and weld the target part according to the target posture; the transformation matrix is ​​used to indicate the coordinate transformation relationship between the reference vertex and the reference welding point, and the reference vertex is determined based on the reference point cloud data of the target part in the preset posture.

[0099] In one embodiment, the second determining module 13 is specifically configured to:

[0100] Calculate the product of a first vector corresponding to a first vertex and each transformation matrix to obtain a plurality of first reference poses, where the first vertex is any vertex among the plurality of target vertices;

[0101] Calculate the product of the second vector corresponding to the second vertex and each transformation matrix to obtain multiple second reference poses, where the second vertex is any other vertex among the multiple target vertices except the first vertex;

[0102] A target pose is determined based on the plurality of first reference poses and the plurality of second reference poses.

[0103] In one embodiment, the second determining module 13 is specifically configured to:

[0104] Calculating the pose difference between each first reference pose and each second reference pose respectively, and determining the pose difference less than a preset threshold as the target pose difference;

[0105] The first reference posture or the second reference posture corresponding to the target posture difference is determined as the target posture.

[0106] In one embodiment, the acquisition module 11 is further used to acquire reference point cloud data of the target part;

[0107] The first determination module 12 is further used to determine a reference bounding box of the target part according to the reference point cloud data, and to determine a plurality of reference vertices of the reference bounding box;

[0108] The second determination module 13 determines the transformation matrix corresponding to each reference vertex according to each reference vertex and the reference welding point.

[0109] In one embodiment, the acquisition module 11 is specifically used to: acquire a first image, the first image includes a target part; input the first image into a preset image segmentation model to obtain a target image of the target part, the target image is composed of multiple pixels; determine the depth of field data of each pixel in the target image according to the first image; obtain candidate point cloud data according to the pixel coordinates and depth of field data of each pixel; obtain target point cloud data according to the candidate point cloud data.

[0110] In one embodiment, the acquisition module 11 is specifically used to: use the reference point cloud data as the target point cloud data;

[0111] Alternatively, the color point cloud data is determined according to the reference point cloud data and the pixel value of each pixel, and the color point cloud data is used as the target point cloud data.

[0112] In one embodiment, the acquisition module 11 is specifically used to: receive a first image sent by a binocular camera, where the first image includes two images;

[0113] Determining depth of field data of each pixel point in the target image according to the first image includes:

[0114] Input the two images into a preset adaptive aggregation network model to obtain the depth data of each pixel in each of the two images;

[0115] The depth data of each pixel point in the target image is determined according to the coordinates of each pixel point in the target image and the depth data of the pixel point included in any one of the two images.

[0116] In one embodiment, the acquisition module 11 is specifically used to determine candidate point cloud data based on the pixel coordinates of each pixel point in the target image and a preset first mapping coefficient, as well as the depth of field data of each pixel point in the target image and a preset second mapping coefficient, wherein the first mapping coefficient and the second mapping coefficient are used to indicate a mapping relationship between the first image and the spatial area corresponding to the first image.

[0117] The device for determining the welding posture of a part provided in an embodiment of the present application obtains the target point cloud data of the target part, determines the target bounding box of the target part and multiple target vertices of the target bounding box according to the target point cloud data, determines the target posture of the target part according to the multiple target vertices and multiple preset transformation matrices, and then welds the target part according to the target posture, wherein the transformation matrix indicates the coordinate transformation relationship between the reference vertex and the reference welding point, and the reference vertex is determined according to the reference point cloud data of the target part in the preset posture. The device for determining the welding posture of a part provided in an embodiment of the present application can obtain the target posture of the target part by using the target vertex and the transformation matrix determined in advance according to the coordinate transformation relationship between the reference vertex and the reference welding point, and can obtain the target posture of the target part without one-to-one matching according to the data of the target point cloud, thereby improving the efficiency of determining the target posture of the welding part.

[0118] The device for determining the welding posture of parts provided in this embodiment can execute the above method embodiments, and its implementation principles and technical effects are similar, which will not be elaborated here.

[0119] The specific definition of the device for determining the welding posture of a part can be found in the definition of the method for determining the welding posture of a part mentioned above, which will not be repeated here. Each module in the above-mentioned device for determining the welding posture of a part can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the server in the form of hardware, or can be stored in the memory in the server in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0120] In another embodiment of the present application, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the method for determining the welding posture of a part as in the embodiment of the present application are implemented.

[0121] In another embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for determining the welding posture of a part as in the embodiment of the present application are implemented.

[0122] In another embodiment of the present application, a computer program product is also provided, which includes computer instructions. When the computer instructions are run on a device for determining a part welding posture, the device for determining a part welding posture executes each step of the method for determining a part welding posture in the method flow shown in the above method embodiment.

[0123] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer execution instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more servers that can be integrated with a medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0124] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0125] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for determining a welding posture of a part, characterized in that: The method comprises: Acquire target point cloud data of a target part, wherein the target point cloud data includes a target welding point of the target part; Determine a target bounding box of the target part according to the target point cloud data, and determine a plurality of target vertices of the target bounding box; Determining a target pose of the target part according to the plurality of target vertices and a plurality of preset transformation matrices, wherein the transformation matrix is ​​used to indicate a coordinate transformation relationship between a reference vertex and a reference welding point, and the reference vertex is determined according to reference point cloud data of the target part in a preset pose; Welding the target part according to the target posture; Determining the target pose of the target part according to the plurality of target vertices and a plurality of preset transformation matrices includes: Calculate the product of a first vector corresponding to a first vertex and each transformation matrix to obtain a plurality of first reference poses, where the first vertex is any vertex among the plurality of target vertices; Calculate the product of a second vector corresponding to a second vertex and each transformation matrix to obtain a plurality of second reference poses, where the second vertex is any other vertex among the plurality of target vertices except the first vertex; Calculate the posture difference between each of the first reference postures and each of the second reference postures respectively, and The pose difference less than the preset threshold is determined as the target pose difference; The first reference posture or the second reference posture corresponding to the target posture difference is determined as the target posture.

2. The method according to claim 1, characterized in that The method further comprises: Acquire reference point cloud data of the target part; Determine a reference bounding box of the target part according to the reference point cloud data, and determine a plurality of reference vertices of the reference bounding box; According to each of the reference vertices and the reference welding point, the transformation matrix corresponding to each of the reference vertices is determined.

3. The method according to claim 1 or 2, characterized in that: The step of obtaining target point cloud data of a target part includes: Acquire a first image, wherein the first image includes the target part; Inputting the first image into a preset image segmentation model to obtain a target image of the target part, wherein the target image is composed of a plurality of pixel points; Determine the depth of field data of each pixel in the target image according to the first image; According to the pixel coordinates and depth data of each pixel point, candidate point cloud data is obtained; The target point cloud data is obtained according to the candidate point cloud data.

4. The method according to claim 3, characterized in that The step of obtaining the target point cloud data according to the reference point cloud data comprises: Using the candidate point cloud data as the target point cloud data; Alternatively, color point cloud data is determined according to the candidate point cloud data and the pixel value of each pixel, and the color point cloud data is used as the target point cloud data.

5. The method according to claim 3, characterized in that: The acquiring of the first image comprises: Receiving the first image sent by a binocular camera, where the first image includes two images; The determining the depth of field data of each pixel point in the target image according to the first image includes: Inputting the two images into a preset adaptive aggregation network model to obtain depth data of each pixel in each of the two images; The depth data of each pixel point in the target image is determined according to the coordinates of each pixel point in the target image and the depth data of the pixel point included in any one of the two images.

6. The method according to claim 5, characterized in that The candidate point cloud data is obtained according to the pixel coordinates and depth data of each pixel point, including: The candidate point cloud data is determined based on the pixel coordinates of each pixel in the target image and a preset first mapping coefficient, as well as the depth of field data of each pixel in the target image and a preset second mapping coefficient, wherein the first mapping coefficient and the second mapping coefficient are used to indicate a mapping relationship between the first image and a spatial area corresponding to the first image.

7. A device for determining the welding posture of a part, characterized in that: The device comprises: An acquisition module, used for acquiring target point cloud data of a target part, wherein the target point cloud data includes a target welding point of the target part; A first determination module is used to determine a target bounding box of the target part according to the target point cloud data, and determine a plurality of target vertices of the target bounding box; A second determination module is used to determine the target posture of the target part according to the plurality of target vertices and a plurality of preset transformation matrices, and to weld the target part according to the target posture; the transformation matrix is ​​used to indicate the coordinate transformation relationship between the reference vertex and the reference welding point, and the reference vertex is determined according to the reference point cloud data of the target part in the preset posture; The second determining module is specifically used for: Calculate the product of a first vector corresponding to a first vertex and each transformation matrix to obtain a plurality of first reference poses, where the first vertex is any vertex among the plurality of target vertices; Calculate the product of a second vector corresponding to a second vertex and each transformation matrix to obtain a plurality of second reference poses, where the second vertex is any other vertex among the plurality of target vertices except the first vertex; Calculate the posture difference between each of the first reference postures and each of the second reference postures respectively, and The pose difference less than the preset threshold is determined as the target pose difference; The first reference posture or the second reference posture corresponding to the target posture difference is determined as the target posture.

8. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method for determining the welding posture of a part according to any one of claims 1 to 6 is implemented.

9. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method for determining the welding posture of a part according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Line laser scanning-based sand blasting robot automatic path generation method

    CN105354880A

  • Self-transfer system of mechanical arm based on combination of single-lens camera and double-lens camera

    CN111267083A

  • Pose compensation method and system for grabbing equipment in nuclear industry and electronic device

    CN113246145A

  • Fuel tank welding mechanical arm self-adaptive correction method based on point voxel correlation field

    CN114055781A

  • Data acquisition method and device, computer equipment and storage medium

    CN114202640A