A three-dimensional pipe part recognition method, device and medium

By acquiring the topological structure information and identification direction of three-dimensional pipe parts, and performing projection and feature comparison, the problem of the inability to identify three-dimensional pipe parts in traditional methods is solved, and efficient production with automatic identification and cutting configuration is achieved.

CN117034156BActive Publication Date: 2026-05-08JINAN BODOR LASER CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JINAN BODOR LASER CO LTD
Filing Date
2023-08-23
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Traditional part recognition methods cannot identify the file type of three-dimensional pipe parts or obtain their outer contour information, resulting in low recognition efficiency.

Method used

By acquiring the topological information of the target pipe component, identifying the component orientation, and projecting it to obtain equidistant discrete points on the outer contour, the pipe type is determined by comparing it with preset outer contour features.

Benefits of technology

It enables automatic identification of three-dimensional tubular parts, improves production efficiency, facilitates the system to provide cutting configuration methods, and enhances processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117034156B_ABST
    Figure CN117034156B_ABST
Patent Text Reader

Abstract

The application discloses a three-dimensional pipe part identification method, equipment and medium, wherein the method comprises the following steps: obtaining the 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 features to determine the basic pipe type of the target pipe part. The hollow direction of the pipe can be identified, then the projection is performed, and the pipe part type is identified according to the projected outer contour, so that the pipe type can be automatically identified after the customer opens the file, the system can automatically provide the corresponding cutting configuration method and subsequent operation for the corresponding pipe, and the production efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of parts identification, specifically to a method, device, and medium for identifying three-dimensional pipe parts. Background Technology

[0002] Traditional part recognition methods are image recognition, which recognizes images and two-dimensional planar images. For three-dimensional tube cut parts iges / step files, image recognition methods cannot identify the file type or the basic three-dimensional part type in the file. Furthermore, image recognition cannot obtain information such as the outer contour and projection information of the three-dimensional part.

[0003] With the development of industry, the rapid and accurate identification of parts has become one of the key technologies in the automated processing of parts. Summary of the Invention

[0004] To address the aforementioned problems, this application proposes a method, device, and medium for identifying three-dimensional pipe parts, wherein the method includes:

[0005] Based on the target file, the topological structure information of the target pipe part is obtained; based on the topological structure information, the part orientation of the target pipe part is identified; based on the part orientation, the target pipe part is projected to obtain equidistant discrete points of the outer contour of the target pipe part; the equidistant discrete points are compared with preset outer contour features to determine the basic pipe shape of the target pipe part.

[0006] In one example, identifying the part orientation of the target pipe part based on the topology information specifically includes: determining the first bounding box information of the target pipe part based on the topology information; determining the maximum value of the first bounding box of the target pipe part based on the first bounding box information; determining the midpoint of the target pipe part, and a first plane, a second plane, and a third plane passing through the midpoint; the first plane, the second plane, and the third plane are square planes with a side length equal to the maximum value of the first bounding box; performing Boolean intersection operations between the first plane, the second plane, and the third plane and the target pipe part respectively to obtain a fourth plane, a fifth plane, and a sixth plane; obtaining the second bounding box information of the fourth plane, the fifth plane, and the sixth plane, and determining the part orientation based on the second bounding box information.

[0007] In one example, determining the part orientation based on the second bounding box information specifically includes: determining the first direction length, the second direction length, and the third direction length corresponding to the fourth planar bounding box based on the second bounding box information; taking the smallest non-zero value among the first direction length, the second direction length, and the third direction length as the first minimum length value corresponding to the fourth planar bounding box; determining the second minimum length value corresponding to the fifth planar bounding box and the third minimum length value corresponding to the sixth planar bounding box; and determining the part orientation based on the first minimum length value, the second minimum length value, and the third minimum length value.

[0008] In one example, determining the part orientation based on the first minimum length value, the second minimum length value, and the third minimum length value specifically includes: determining the maximum and minimum values ​​among the first minimum length value, the second minimum length value, and the third minimum length value; when the number of maximum values ​​is one, determining the part orientation based on the minimum length value corresponding to the maximum value; when the number of maximum values ​​is two, obtaining the midpoint of the bounding box of the first bounding box and determining the normal vector plane perpendicular to the minimum value; performing a Boolean intersection operation between the normal vector plane and the target pipe part, and determining the maximum bounding box value of the result; and determining the part orientation based on the coordinate direction corresponding to the maximum bounding box value.

[0009] In one example, obtaining the topology information of the target pipe component based on the target file specifically includes: parsing the target file using OpenCascade to obtain the topology information of the target pipe component in the target file; the target file is an IGES or STEP file.

[0010] In one example, before comparing the equidistant discrete points with the preset outer contour features, the method further includes: determining the corresponding outer contour features based on the contour characteristics of different types of pipes; and storing the outer contour features in an outer contour feature library.

[0011] In one example, the topology information includes the location information, orientation information, and shared object information of the target pipe component.

[0012] In one example, the tube includes at least one of the following: round tube, rectangular tube, elliptical tube, runway tube, D-shaped steel tube, polygonal tube, triangular tube, trapezoidal tube, right angle steel, rounded angle steel, C-shaped steel, I-beam, T-shaped steel, and special-shaped tube.

[0013] This application also provides a three-dimensional pipe component recognition device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform: obtaining topological structure information of a target pipe component based on a target file; identifying the component orientation of the target pipe component based on the topological structure information; projecting the target pipe component based on the component orientation to obtain equidistant discrete points of the outer contour of the target pipe component; and comparing the equidistant discrete points with preset outer contour features to determine the basic pipe shape of the target pipe component.

[0014] This application also provides a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to: obtain topological information of a target pipe component based on a target file; identify the component orientation of the target pipe component based on the topological information; project the target pipe component based on the component orientation to obtain equidistant discrete points of the outer contour of the target pipe component; and compare the equidistant discrete points with preset outer contour features to determine the basic pipe shape of the target pipe component.

[0015] The method proposed in this application can bring the following benefits: it can identify the hollow direction of the pipe, then project it, and identify the type of pipe part based on the outer contour of the projection. This allows the system to automatically identify the pipe type after the customer opens the file, making it convenient for the system to automatically provide the corresponding cutting configuration method and subsequent operations for the corresponding pipe, thereby improving production efficiency. Attached Figure Description

[0016] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0017] Figure 1 This is a flowchart illustrating a three-dimensional pipe component identification method according to an embodiment of this application;

[0018] Figure 2 This is a schematic diagram illustrating a three-dimensional pipe component identification method according to an embodiment of this application.

[0019] Figure 3 This is a schematic diagram of the structure of a three-dimensional pipe parts identification device in an embodiment of this application. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0021] The technical solutions provided by the various embodiments of this application are described in detail below with reference to the accompanying drawings.

[0022] Figure 1 This diagram illustrates a flowchart of a three-dimensional pipe component identification method provided in one or more embodiments of this specification. The method can be applied to the identification of different types of pipe components, such as round pipes, rectangular pipes, elliptical pipes, racetrack pipes, D-shaped steel pipes, polygonal pipes, triangular pipes, trapezoidal pipes, right-angle steel, rounded-corner steel, C-shaped steel, I-beams, and T-shaped steel. The process can be executed by computing equipment in the relevant field, and certain input parameters or intermediate results in the process can be manually adjusted to help improve accuracy.

[0023] The analysis method involved in the embodiments of this application can be implemented by a terminal device or a server, and this application does not impose any special limitations on it. For ease of understanding and description, the following embodiments are all described in detail using a server as an example.

[0024] It should be noted that the server can be a single device or a system composed of multiple devices, i.e., a distributed server. This application does not make any specific limitations in this regard.

[0025] like Figure 1 As shown in the figure, this application provides a method for identifying three-dimensional pipe parts, including:

[0026] S101: Based on the target file, obtain the topology information of the target pipe component.

[0027] First, the topological structure information of the target pipe parts is obtained through the geometric data exchange file of the target pipe parts.

[0028] In one embodiment, when obtaining topology information, the target file can be parsed using OpenCascade to obtain the topology information of the target pipe component in the target file. Here, the target file is in IGES or STEP format.

[0029] In one embodiment, the topology information includes the location information, orientation information, and shared object information of the target pipe component.

[0030] S102: Based on the topological information, identify the orientation of the target pipe component.

[0031] After obtaining the topological information of the target tubular component, it is necessary to identify its orientation. Since most 3D tubular components are hollow, the direction of the hollow structure is defined as the component orientation.

[0032] In one embodiment, when identifying the orientation of a part, the first bounding box information of the target pipe part is first determined based on topological information. This first bounding box information refers to the bounding box information of the target pipe part, which describes the bounding box in three-dimensional space. The bounding box is parallel to the coordinate axis system. The bounding box is defined by six boundaries (Xmin, Xmax, Ymin, Ymax, Zmin, Zmax). Then, based on the first bounding box information, the maximum value of the first bounding box of the target pipe part is determined. This maximum value refers to the maximum value of the pipe part's bounding box along the x, y, and z axes, which is the maximum value of Zmax-Zmin, Ymax-Ymin, and Xmax-Xmin. Next, the midpoint of the target pipe part, and the first, second, and third planes passing through the midpoint are determined. These first, second, and third planes are square planes with side lengths equal to the maximum value of the first bounding box; specifically, they are square planes with side length maxValue perpendicular to the x, y, and z axes. Then, Boolean intersection operations are performed between the first, second, and third planes and the target tubular part to obtain the fourth, fifth, and sixth planes. Next, bounding box calculations are performed on the fourth, fifth, and sixth planes to obtain the second bounding box information for these three planes, and the part orientation is determined based on this second bounding box information.

[0033] Furthermore, when determining the part orientation based on the second bounding box information, it is necessary to determine the first, second, and third direction lengths corresponding to the fourth planar bounding box, i.e., the x-axis, y-axis, and z-axis lengths corresponding to the fourth planar bounding box. Then, the smallest non-zero value among these three lengths is taken as the first minimum length value corresponding to the fourth planar bounding box. The same method is then used to determine the second minimum length value corresponding to the fifth planar bounding box and the third minimum length value corresponding to the sixth planar bounding box. Thus, the part orientation can be determined based on these three minimum length values.

[0034] Furthermore, when determining the part orientation based on the first, second, and third minimum length values, it is necessary to determine the maximum and minimum values ​​among these three minimum length values; that is, to sort the minimum length values ​​in order of magnitude. When there is only one maximum value, the part orientation is determined based on the minimum length value corresponding to that maximum value. Specifically, if the minimum length value corresponding to the maximum value is the first minimum length value, then the x-axis direction is the pipe orientation. If the minimum length value corresponding to the maximum value is the second minimum length value, then the y-axis direction is the pipe orientation. If the minimum length value corresponding to the maximum value is the third minimum length value, then the z-axis direction is the pipe orientation. When there are two maximum values, that is, two minimum length values ​​are equal and larger than the other minimum length value, it is necessary to obtain the midpoint of the first bounding box and determine the normal vector plane perpendicular to the plane corresponding to the minimum value. If the first minimum length value is the minimum, then a plane perpendicular to the normal vector of the fourth plane is determined with the focal point as the center point of the plane. A Boolean intersection operation is then performed between this normal vector plane and the target pipe part, and the maximum value of the bounding box of the result is determined. Based on the coordinate direction corresponding to the maximum value of the bounding box, the orientation of the part is determined. In other words, the case with two maximum values ​​is transformed into the case with only one maximum value through another Boolean intersection operation with the target pipe part.

[0035] S103: Based on the part orientation, project the target pipe part to obtain equidistant discrete points of the outer contour of the target pipe part.

[0036] Once the orientation of the part is determined, the outer contour information of the three-dimensional pipe can be obtained by projecting the orientation of the part, and the equidistant discrete points of the outer contour can be obtained.

[0037] S104: Compare the equidistant discrete points with the preset outer contour features to determine the basic pipe shape of the target pipe part.

[0038] like Figure 2 As shown, different pipes have different outer contours and different outer contour features. Therefore, the pipe type of pipe parts can be determined by the outer contour features. For example, the outer contour of a circular pipe projection has a circular equation formula, the projection of an elliptical pipe has an elliptical equation formula, and the projection of an I-beam has the characteristics that the leftmost and rightmost midpoints of the bounding box are on its projection, and the uppermost and lowermost midpoints are equidistant from the two side flanges.

[0039] In one embodiment, before comparing equidistant discrete points with preset outer contour features, it is necessary to determine the corresponding outer contour features based on the contour characteristics of different types of pipes, and store the outer contour features in an outer contour feature library. When comparing outer contour features, the outer contour features can be directly retrieved from the outer contour feature library for use.

[0040] like Figure 3 As shown in the figure, this application embodiment also provides a three-dimensional pipe component identification device, including:

[0041] At least one processor; and,

[0042] A memory communicatively connected to the at least one processor; wherein,

[0043] The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to:

[0044] Based on the target file, the topological structure information of the target pipe part is obtained; based on the topological structure information, the part orientation of the target pipe part is identified; based on the part orientation, the target pipe part is projected to obtain equidistant discrete points of the outer contour of the target pipe part; the equidistant discrete points are compared with preset outer contour features to determine the basic pipe shape of the target pipe part.

[0045] This application embodiment also provides a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured as follows:

[0046] Based on the target file, the topological structure information of the target pipe part is obtained; based on the topological structure information, the part orientation of the target pipe part is identified; based on the part orientation, the target pipe part is projected to obtain equidistant discrete points of the outer contour of the target pipe part; the equidistant discrete points are compared with preset outer contour features to determine the basic pipe shape of the target pipe part.

[0047] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device and medium embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the description of the method embodiments.

[0048] The devices and media provided in this application are one-to-one with the methods. Therefore, the devices and media also have similar beneficial technical effects as their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0049] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0050] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0051] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0052] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0053] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0054] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0055] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0056] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0057] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method for identifying three-dimensional pipe parts, characterized in that, include: Based on the target file, obtain the topological structure information of the target pipe component; Based on the topological information, the orientation of the target tubular component is identified; Based on the orientation of the part, the target pipe part is projected to obtain equidistant discrete points on the outer contour of the target pipe part; The equidistant discrete points are compared with the preset outer contour features to determine the basic pipe shape of the target pipe part; The step of identifying the part orientation of the target pipe part based on the topological information specifically includes: Based on the topological information, the first bounding box information of the target pipe component is determined; Based on the first bounding box information, determine the maximum value of the first bounding box of the target pipe component; Determine the midpoint of the target tubular component, and a first plane, a second plane, and a third plane passing through the midpoint of the component; the first plane, the second plane, and the third plane are square planes with a side length equal to the maximum value of the first bounding box; The first plane, the second plane, and the third plane are respectively subjected to Boolean intersection operations with the target pipe part to obtain the fourth plane, the fifth plane, and the sixth plane; Obtain the second bounding box information of the fourth plane, the fifth plane, and the sixth plane, and determine the orientation of the part based on the second bounding box information; Determining the part orientation based on the second bounding box information specifically includes: Based on the second bounding box information, determine the first direction length, the second direction length, and the third direction length corresponding to the fourth planar bounding box; The smallest non-zero value among the first direction length, the second direction length, and the third direction length is taken as the first minimum length value corresponding to the fourth planar bounding box; Determine the second minimum length value corresponding to the fifth planar bounding box, and the third minimum length value corresponding to the sixth planar bounding box; The orientation of the part is determined based on the first minimum length value, the second minimum length value, and the third minimum length value; Determining the orientation of the part based on the first minimum length value, the second minimum length value, and the third minimum length value specifically includes: Determine the maximum and minimum values ​​among the first minimum length value, the second minimum length value, and the third minimum length value; When the number of maximum values ​​is one, the orientation of the part is determined based on the minimum length value corresponding to the maximum value; When the number of maximum values ​​is two, obtain the midpoint of the first bounding box and determine the normal vector plane perpendicular to the minimum value; Perform a Boolean intersection operation between the normal vector plane and the target pipe part, and determine the maximum value of the bounding box of the result; The orientation of the part is determined based on the coordinate direction corresponding to the maximum value of the bounding box.

2. The method according to claim 1, characterized in that, The process of obtaining the topological structure information of the target pipe component based on the target file specifically includes: The target file is parsed using opencascade to obtain the topological structure information of the target pipe component in the target file; The target file is a file in iges or step format.

3. The method according to claim 1, characterized in that, Before comparing the equidistant discrete points with the preset outer contour features, the method further includes: Based on the contour characteristics of different types of pipes, the corresponding outer contour features are determined respectively; The outer contour features are stored in the outer contour feature library.

4. The method according to claim 1, characterized in that, The topology information includes the location information, orientation information, and shared object information of the target pipe component.

5. The method according to claim 1, characterized in that, The basic pipe types include at least one of the following: round pipe, rectangular pipe, elliptical pipe, racetrack pipe, D-shaped steel pipe, polygonal pipe, triangular pipe, trapezoidal pipe, right angle steel, rounded angle steel, C-shaped steel, I-beam, T-shaped steel, and special-shaped pipe.

6. A three-dimensional pipe component identification device, characterized in that, include: At least one processor; And, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to perform the steps of the method as described in any one of claims 1-5.

7. A non-volatile computer storage medium storing computer-executable instructions, characterized in that, The computer-executable instructions are configured to perform the steps of the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Method and device for analyzing and importing three-dimensional pipe tool path, processor and computer readable storage medium thereof

    CN114329666A

  • Pipe type identification method

    CN116563842A