Search

CN-117034156-B - Three-dimensional pipe part identification method, equipment and medium

CN117034156BCN 117034156 BCN117034156 BCN 117034156BCN-117034156-B

Abstract

The application discloses a three-dimensional pipe part identification method, equipment and medium, wherein the method comprises the steps of acquiring topological structure information of a target pipe part based on a target file, identifying the part direction of the target pipe part based on the topological structure information, projecting the target pipe part based on the part direction to acquire equidistant discrete points of the outer contour of the target pipe part, and comparing the equidistant discrete points with preset outer contour characteristics to determine the basic pipe shape of the target pipe part. The pipe type can be automatically identified after a customer opens a file by identifying the hollow direction of the pipe, then projecting and identifying the type of the pipe part according to the projection outline, so that a system is convenient to automatically provide a corresponding cutting configuration method and subsequent operation for the corresponding pipe, and the production efficiency is improved.

Inventors

  • LIU YANWEI
  • YU FEI

Assignees

  • 济南邦德激光股份有限公司

Dates

Publication Date
20260508
Application Date
20230823

Claims (7)

  1. 1. The three-dimensional pipe part identification method is characterized by comprising the following steps of: based on the target file, obtaining topological structure information of the target pipe part; Identifying a part direction of the target pipe part based on the topology information; Projecting the target pipe part based on the part direction to obtain equidistant discrete points of the outer contour of the target pipe part; Comparing the equidistant discrete points with preset outer contour features to determine the basic tube shape of the target tube part; based on the topological structure information, identifying the part direction of the target pipe part specifically comprises the following steps: Determining first bounding box information of the target pipe part based on the topology structure information; determining a first bounding box maximum value of the target pipe part based on the first bounding box information; determining a part midpoint of the target pipe part, and a first plane, a second plane and a third plane which pass through the part midpoint, wherein the first plane, the second plane and the third plane are square planes with side lengths being maximum values of the first bounding box; Respectively carrying out Boolean intersection operation on the first plane, the second plane and the third plane and the target pipe part to obtain a fourth plane, a fifth plane and a sixth plane; Acquiring second bounding box information of the fourth plane, the fifth plane and the sixth plane, and determining the direction of the part based on the second bounding box information; The determining the direction of the part based on the second bounding box information specifically includes: Determining a first direction length, a second direction length and a third direction length corresponding to a fourth plane bounding box based on the second bounding box information; Taking the minimum non-zero value in the first direction length, the second direction length and the third direction length as a first minimum length value corresponding to the fourth plane bounding box; determining a second minimum length value corresponding to the fifth plane bounding box and a third minimum length value corresponding to the sixth plane bounding box; Determining the part orientation based on the first minimum length value, the second minimum length value, and the third minimum length value; The determining the part direction based on the first minimum length value, the second minimum length value and the third minimum length value specifically includes: determining a maximum value and a minimum value of the first minimum length value, the second minimum length value and the third minimum length value; When the number of the maximum values is one, determining the direction of the part based on the minimum length value corresponding to the maximum value; when the number of the maximum values is two, acquiring the midpoints of the bounding boxes of the first bounding box, and determining a normal vector plane perpendicular to the minimum values; Performing Boolean intersection operation on the normal vector plane and the target pipe part, and determining the maximum value of a bounding box of the obtained result; and determining the direction of the part based on the coordinate direction corresponding to the maximum value of the bounding box.
  2. 2. The method according to claim 1, wherein the obtaining topology information of the target pipe part based on the target file specifically includes: Analyzing a target file through opencascade to obtain topological structure information of a target pipe part in the target file; the target file is a file in iges format or step format.
  3. 3. The method of claim 1, wherein prior to comparing the equidistant discrete points to the predetermined outer contour features, the method further comprises: based on the profile characteristics of different types of pipes, respectively determining corresponding outer profile characteristics; and storing the outer contour features into an outer contour feature library.
  4. 4. The method of claim 1, wherein the topology information includes position information, direction information, and shared object information of the target tubular part.
  5. 5. The method of claim 1, wherein the base pipe comprises at least one of a round pipe, a rectangular pipe, an oval pipe, a racetrack pipe, a D-shaped pipe, a polygonal pipe, a triangular pipe, a trapezoidal pipe, a right angle, a rounded angle, a C-shaped steel, an i-shaped steel, a T-shaped steel, a profiled pipe.
  6. 6. A three-dimensional pipe part identification apparatus, comprising: And a memory communicatively coupled to the at least one processor, wherein, The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method of any one of claims 1-5.
  7. 7. A non-transitory computer storage medium storing computer-executable instructions configured to perform the steps of the method of any one of claims 1-5.

Description

Three-dimensional pipe part identification method, equipment and medium Technical Field The application relates to the field of part identification, in particular to a three-dimensional pipe part identification method, equipment and medium. Background The traditional part identification method is image identification, the identification object is a picture, the identification type is a two-dimensional plane image, for a three-dimensional tube cut part iges/step file, the image identification method cannot identify the file type and the basic three-dimensional part type in the file, and the image identification cannot acquire the outline information, projection information and the like of the three-dimensional part. With the development of industry, the rapid and accurate identification of parts becomes one of the key technologies in automatic part processing. Disclosure of Invention In order to solve the problems, the application provides a three-dimensional pipe part identification method, equipment and medium, wherein the method comprises the following steps: the method comprises the steps of obtaining topological structure information of a target pipe part based on a target file, identifying the part direction of the target pipe part based on the topological structure information, projecting the target pipe part based on the part direction to obtain equidistant discrete points of the outer contour of the target pipe part, and comparing the equidistant discrete points with preset outer contour characteristics to determine the basic pipe shape of the target pipe part. In one example, the method for identifying the part direction of the target pipe part based on the topological structure information specifically comprises the steps of determining first bounding box information of the target pipe part based on the topological structure information, determining a first bounding box maximum value of the target pipe part based on the first bounding box information, determining a part midpoint of the target pipe part, and first, second and third planes passing through the part midpoint, wherein the first, second and third planes are square planes with side lengths being the first bounding box maximum value, performing Boolean intersection operation on the first, second and third planes and the target pipe part respectively to obtain fourth, fifth and sixth planes, obtaining second bounding box information of the fourth, fifth and sixth planes, and determining the part direction based on the second bounding box information. In one example, the determining the part direction based on the second bounding box information specifically includes determining a first direction length, a second direction length, and a third direction length corresponding to a fourth planar bounding box based on the second bounding box information, regarding a minimum non-zero value of the first direction length, the second direction length, and the third direction length as a first minimum length value corresponding to the fourth planar bounding box, determining a second minimum length value corresponding to the fifth planar bounding box, and a third minimum length value corresponding to the sixth planar bounding box, and determining the part direction based on the first minimum length value, the second minimum length value, and the third minimum length value. In one example, the determining the part direction based on the first minimum length value, the second minimum length value and the third minimum length value specifically includes determining maximum values and minimum values of the first minimum length value, the second minimum length value and the third minimum length value, determining the part direction based on the minimum length value corresponding to the maximum value when the number of the maximum values is one, obtaining a bounding box midpoint of the first bounding box and determining a normal vector plane perpendicular to the minimum value when the number of the maximum values is two, performing boolean intersection operation on the normal vector plane and the target pipe part, determining a resulting bounding box maximum value, and determining the part direction based on the coordinate direction corresponding to the bounding box maximum value. In one example, the obtaining the topology structure information of the target pipe part based on the target file specifically includes analyzing the target file through opencascade to obtain the topology structure information of the target pipe part in the target file, where the target file is a iges format file or a step format file. In one example, before comparing the equidistant discrete points with preset outer contour features, the method further comprises the steps of respectively determining corresponding outer contour features based on the contour features of different types of pipes, and storing the outer contour features into an outer contour feature library. In one ex