Pipeline diameter measurement method, device and equipment based on line laser and storage medium

The pipeline is scanned through a linear laser sensor, and the pipeline area and maximum diameter are automatically identified and the pipeline diameter is calculated, which solves the problems of high cost and complex operation in the prior art, and achieves high-precision and portable pipeline diameter measurement.

CN118913118APending Publication Date: 2024-11-08WUHAN DAOXIAOFEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411092874.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The existing laser-based pipe diameter measurement method is costly and complex in operation, making it difficult to promote.

Method used

The pipeline is scanned by a linear laser sensor, and the pipeline area point set is obtained by searching the distance information of the laser points in the data frame, determining the maximum diameter point set, and calculating the pipeline diameter using distance and angle information, simplifying the equipment and operation process.

Benefits of technology

High-precision, non-contact pipe diameter measurement is achieved, reducing equipment costs, improving measurement portability and accuracy, and reducing human operation errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118913118A_ABST
    Figure CN118913118A_ABST
Patent Text Reader

Abstract

The invention relates to a pipeline diameter measurement method, device and equipment based on line laser and a storage medium, and belongs to the technical field of machine vision and pipeline measurement. The pipeline diameter measuring method based on the line laser comprises the following steps: searching a data frame obtained by scanning a pipeline based on a line laser sensor and distance information carried by each laser point in the data frame to obtain a plurality of pipeline region point sets related to the pipeline; determining the pipeline area point set with the most laser points as a pipeline maximum diameter point set; and calculating the pipeline diameter based on the pipeline maximum diameter point set. The problems that in the prior art, cost is high, and operation is complex are effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine vision technology and pipeline measurement technology, and in particular to a pipeline diameter measurement method, device, equipment and storage medium based on line laser. Background Art

[0002] In the industrial field, pipelines are important equipment for fluid transmission, and the measurement of their diameter is crucial to ensure the safe operation of the pipeline system, prevent accidents, and perform daily maintenance and inspection. Although traditional pipeline diameter measurement methods, such as mechanical measurement, ultrasonic measurement, and optical measurement, can meet the measurement needs to a certain extent, each has certain limitations.

[0003] Mechanical measurement methods, such as the use of calipers, vernier calipers and other tools, require direct contact with the pipe surface for measurement. Although this method is intuitive and simple, there is a risk of damage to the pipe surface, and it is difficult to measure pipes that are difficult for measurement personnel to reach. The ultrasonic measurement method uses the reflection principle of ultrasonic waves between the inner and outer walls of the pipe to calculate the pipe diameter by measuring the propagation time of ultrasonic waves. Although this method can achieve non-contact measurement, the measurement accuracy is greatly affected by the pipe material, the state of the fluid inside the pipe, and the coupling state between the ultrasonic probe and the pipe surface, and the equipment cost is high. Optical measurement methods, such as the use of cameras, have the advantages of high precision and non-contact, but the equipment is complex and costly, and the surface finish and flatness of the pipe are required to be high. In recent years, with the rapid development of laser technology, line laser technology has gradually been applied in the measurement field due to its advantages of high precision and non-contact. The use of line laser technology to measure the pipe diameter has broad application prospects and potential technical advantages.

[0004] However, existing laser-based pipe diameter measurement methods often require the use of complex equipment or algorithms, which are costly and complex to operate. For example, multiple laser modules and ultrasonic modules are used in patent CN116202437A "A method for measuring the diameter of underground rainwater and sewage pipes", and the diameter is solved by fitting the pipe cylinder through the RANSAC algorithm. However, this method requires a large number of sensors, and the device and algorithm are relatively complex, making it difficult to promote. Summary of the invention

[0005] In view of this, it is necessary to provide a pipeline diameter measurement method, device, equipment and storage medium based on line laser to solve the problems of high cost and complex operation of the existing technology.

[0006] In order to solve the above problems, the present invention provides a pipeline diameter measurement method based on line laser, comprising: Searching the data frame obtained by scanning the pipeline based on the line laser sensor and the distance information carried by each laser point in the data frame to obtain a plurality of pipeline area point sets related to the pipeline, wherein the distance information includes: the distance between the laser point and the line laser sensor; The pipeline area point set with the most laser points is determined as the pipeline maximum diameter point set; The pipe diameter is calculated based on the maximum pipe diameter point set.

[0007] In a possible implementation, all laser points in the data frame, the pipeline area point set, and the pipeline maximum diameter point set are sorted in order from early to late according to the time sequence of scanning by the line laser sensor.

[0008] In a possible implementation, searching for a pipeline area point set related to the pipeline based on a data frame obtained by scanning the pipeline with a line laser sensor and distance information carried by each laser point in the data frame includes: Based on the distance information, each laser point in the data frame is divided into a left point, a continuous point and a right point, and a pipeline area point set related to the pipeline is searched in each data frame obtained by scanning the pipeline up and down with a line laser sensor, wherein the continuous point is a laser point of the line laser sensor scanning the hollow part of the pipeline, the left point is a laser point obtained by scanning the left side wall of the pipeline hollow, and the right point is a right side point obtained by scanning the right side wall of the pipeline hollow; A pipeline area point set is searched based on the left point, the continuous point and the right point.

[0009] In a possible implementation, dividing each laser point in the data frame into left points, continuous points, and right points based on the distance information includes: dividing laser points whose distance relative to the line laser sensor is greater than a preset distance threshold into continuous points; Classify the laser points whose distance relative to the line laser sensor is less than a preset distance threshold and which are ranked before the continuous points as left points; The laser points whose distance relative to the line laser sensor is greater than a preset distance threshold and which are ranked before the continuous points are classified as right points.

[0010] In a possible implementation, searching for a pipeline area point set based on left points, continuous points, and right points includes: Put all the continuous points that meet the preset conditions in a single data frame into the same point set as the pipeline area point set; The preset condition includes: the distance value of the continuous points is greater than the distance value of the left point and greater than the distance value of the right point.

[0011] In a possible implementation, the step of calculating the pipeline diameter based on the maximum pipeline diameter point set includes: Find two edge points from the maximum diameter point set of the pipeline; Calculate the pipe diameter based on the edge points; The two edge points include: the laser point that is ranked first in the pipeline maximum diameter point set and the laser point that is ranked last in the set.

[0012] In a possible implementation, each laser point in the data frame also carries angle information of the laser point relative to the line laser sensor; The pipe diameter is obtained by calculating based on the edge points, including: Substituting the distance value and the angle value of the edge point into the first formula to calculate the pipe diameter; Wherein, the first formula includes:

[0013] In the formula, c is the pipe diameter, a is the distance from the sensor to one of the edge points, b is the distance from the sensor to another edge point, C is the angle difference between two edge points.

[0014] The present invention provides a pipeline diameter measuring device based on line laser, comprising: A pipeline area search module is used to search for a pipeline area point set related to the pipeline based on a data frame obtained by scanning the pipeline with a line laser sensor and distance information carried by each laser point in the data frame; A pipeline maximum diameter search module is used to define the pipeline area point set containing the most continuous points as the pipeline maximum diameter point set; The pipeline diameter calculation module is used to calculate the pipeline diameter based on the maximum diameter point set of the pipeline.

[0015] The present invention also provides a device, comprising: Memory, used to store programs; A processor is coupled to the memory and is used to execute the program stored in the memory to implement the pipeline diameter measurement method based on line laser as described in any one of the above method items.

[0016] The present invention also provides a storage medium for storing a computer-readable program or instruction, which, when executed by a processor, can implement the pipeline diameter measurement method based on line laser as described in any one of the above-mentioned method items.

[0017] The beneficial effects of the present invention are as follows: the present invention provides a pipeline diameter measurement method based on line laser. Firstly, the line laser technology is used for measurement without contacting the pipeline surface. While avoiding the damage to the pipeline caused by traditional contact measurement, the portability of the measurement is improved and the measurement process is simplified. Secondly, in the process of pipeline edge detection, the present invention adopts an automatic detection algorithm based on distance value comparison. By comparing the distance values ​​scanned by the laser, the pipeline area can be automatically identified and the maximum diameter data of the pipeline can be determined. This method improves the accuracy and efficiency of measurement and reduces the errors caused by human operation. In addition, the present invention only uses a line laser sensor module when collecting data, which simplifies the operation process and saves a lot of equipment costs, thereby effectively solving the problems of high cost and complex operation of the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A method flow chart of an embodiment of a pipeline diameter measurement method based on line laser provided by the present invention; Figure 2 for Figure 1 A method flow chart of step S101 in an embodiment; Figure 3 for Figure 1 A method flow chart of an embodiment of step S103; Figure 4 A schematic structural diagram of an embodiment of a pipeline diameter measuring device based on a line laser provided by the present invention; Figure 5 A schematic structural diagram of an embodiment of a device provided by the present invention. DETAILED DESCRIPTION

[0019] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0020] In the description of the embodiments of the present invention, unless otherwise specified, "multiple" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" may mean: A exists alone, A and B exist at the same time, and B exists alone.

[0021] The descriptions of "first", "second", etc. involved in the embodiments of the present invention are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the technical features defined as "first" and "second" may explicitly or implicitly include at least one of the features.

[0022] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0023] In order to solve the above problems, Figure 1 As shown, the present invention provides a pipeline diameter measurement method based on line laser, comprising: S101, searching a data frame obtained by scanning a pipeline based on a line laser sensor and distance information carried by each laser point in the data frame to obtain a plurality of pipeline area point sets related to the pipeline; Specifically, the distance information includes: the distance between the laser point and the line laser sensor; In a possible implementation, all laser points in the data frame, the pipeline area point set, and the pipeline maximum diameter point set are sorted in order from early to late according to the time sequence of scanning by the line laser sensor.

[0024] It can be understood that in actual operation, assuming that a set of line laser distance data is obtained as 11155555111, since the distance information obtained when the line laser sensor detects the hollow part of the pipeline will be much greater than that when the well wall part is detected, it can be preliminarily determined that the laser dot array with a distance data of 55555 is the pipeline area.

[0025] S102, determining the pipeline area point set having the most laser points as the pipeline maximum diameter point set; S103. Calculate the pipeline diameter based on the maximum pipeline diameter point set.

[0026] Compared with the prior art, the present invention provides a pipeline diameter measurement method based on line laser. First, the line laser technology is used for measurement without contacting the pipeline surface. While avoiding the damage to the pipeline caused by traditional contact measurement, the portability of the measurement is improved and the measurement process is simplified. Secondly, in the pipeline edge detection process, the present invention adopts an automatic detection algorithm based on distance value comparison. By comparing the distance values ​​scanned by the laser, the pipeline area can be automatically identified and the maximum diameter data of the pipeline can be determined. This method improves the accuracy and efficiency of the measurement and reduces the errors caused by human operation. In addition, the present invention only uses a line laser sensor module when collecting data, which simplifies the operation process and saves a lot of equipment costs, thereby effectively solving the problems of high cost and complex operation of the prior art.

[0027] like Figure 2In a possible implementation, step S101 includes: S201, dividing each laser point in the data frame into left points, continuous points and right points based on distance information; Preferably, the continuous points are laser points of the line laser sensor scanning the hollow part of the pipeline, the left point is the laser point obtained by scanning the left well wall of the pipeline hollow, and the right point is the laser point obtained by scanning the right well wall of the pipeline hollow; In a possible implementation, step S201 includes: dividing laser points whose distance relative to the line laser sensor is greater than a preset distance threshold into continuous points; Classify the laser points whose distance relative to the line laser sensor is less than a preset distance threshold and which are ranked before the continuous points as left points; The laser points whose distance relative to the line laser sensor is greater than a preset distance threshold and which are ranked before the continuous points are classified as right points.

[0028] S202, searching for a pipeline area point set based on left points, continuous points, and right points.

[0029] In a possible implementation, step S202 includes: Put all the continuous points that meet the preset conditions in a single data frame into the same point set as the pipeline area point set; Preferably, the preset condition includes: the distance value of the continuous points is greater than the distance value of the left point and greater than the distance value of the right point.

[0030] like Figure 3 In a possible implementation, step S103 includes: S301, finding two edge points from the maximum diameter point set of the pipeline; Preferably, the two edge points include: the laser point that is first in the sequence of the maximum diameter points of the pipeline and the laser point that is last in the sequence.

[0031] S302, calculating the pipe diameter based on the edge points; In a possible implementation, step S302 includes: Substitute the distance value and angle value of the edge point into the first formula to calculate the pipe diameter; Among them, the first formula includes: (1) In formula (1), c is the pipe diameter, a is the distance from the sensor to one of the edge points, b is the distance from the sensor to another edge point, C is the angle difference between two edge points.

[0032] like Figure 4 The present invention also provides a pipeline diameter measuring device 40 based on line laser, comprising: The pipeline area search module 410 is used to search for a pipeline area point set related to the pipeline based on a data frame obtained by scanning the pipeline with a line laser sensor and distance information carried by each laser point in the data frame; A pipeline maximum diameter search module 420 is used to define a pipeline region point set containing the most continuous points as a pipeline maximum diameter point set; The pipeline diameter calculation module 430 is used to calculate the pipeline diameter based on the pipeline maximum diameter point set.

[0033] like Figure 5 As shown, the present invention also provides a device 50, comprising: A memory 510, used for storing programs; The processor 520 is coupled to the memory 510 and is used to execute the program stored in the memory 510 to implement the steps in the pipeline diameter measurement method based on line laser described in any one of the above embodiments.

[0034] Figure 5 Only some of the components of the device 50 are shown, but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0035] In some embodiments, the processor 520 may be a central processing unit (CPU), a microprocessor or other data processing chip, which is used to run the program code or process data stored in the memory 510, such as the line laser-based pipeline diameter measurement method of the present invention.

[0036] In some embodiments, the processor 520 may be a single server or a server group. The server group may be centralized or distributed. In some embodiments, the processor 520 may be local or remote. In some embodiments, the processor 520 may be implemented in a cloud platform. In one embodiment, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-cloud, etc., or any combination thereof.

[0037] In some embodiments, the memory 510 may be an internal storage unit of the device 50, such as a hard disk or memory of the device 50. In other embodiments, the memory 510 may also be an external storage device of the device 50, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the device 50.

[0038] Furthermore, the memory 510 may include both an internal storage unit of the device 50 and an external storage device. The memory 510 is used to store application software installed on the device 50 and various data.

[0039] In one embodiment, when the processor 520 executes the line laser based pipeline diameter measurement program in the memory 510, the following steps may be implemented: Searching for a pipeline area point set related to the pipeline based on a data frame obtained by scanning the pipeline with a line laser sensor and distance information carried by each laser point in the data frame; The pipeline area point set containing the most continuous points is defined as the pipeline maximum diameter point set; The pipe diameter is calculated based on the maximum pipe diameter point set.

[0040] Furthermore, the embodiment of the present invention does not specifically limit the type of the device 50 mentioned, and the device 50 may be a portable device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer, etc. Exemplary embodiments of portable devices include but are not limited to portable devices equipped with IOS, Android, Microsoft or other operating systems. The above-mentioned portable device may also be other portable devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, the device 50 may not be a portable device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).

[0041] The present invention also provides a storage medium for storing a computer-readable program or instruction, which, when executed by a processor, can implement the pipeline diameter measurement method based on line laser as described in any one of the above-mentioned method items.

[0042] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the computer program can be stored in a computer medium, wherein the computer medium is a disk, an optical disk, a read-only storage memory, or a random access storage memory, etc.

[0043] The above is a detailed introduction to the line laser-based pipeline diameter measurement method, device, equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A pipeline diameter measurement method based on line laser, characterized in that: include: Searching the data frame obtained by scanning the pipeline based on the line laser sensor and the distance information carried by each laser point in the data frame to obtain a plurality of pipeline area point sets related to the pipeline, wherein the distance information includes: the distance from the laser point to the line laser sensor; The pipeline area point set with the most laser points is determined as the pipeline maximum diameter point set; The pipe diameter is calculated based on the maximum pipe diameter point set.

2. The pipeline diameter measurement method based on line laser according to claim 1 is characterized in that: All laser points in the data frame, pipeline area point set and pipeline maximum diameter point set are arranged in sequence from early to late according to the time sequence of scanning by the line laser sensor.

3. The pipeline diameter measurement method based on line laser according to claim 1 is characterized in that: The method of searching for a pipeline area point set related to the pipeline based on a data frame obtained by scanning the pipeline with a line laser sensor and distance information carried by each laser point in the data frame includes: Based on the distance information, each laser point in the data frame is divided into a left point, a continuous point and a right point, wherein the continuous point is a laser point obtained by scanning the hollow part of the pipeline by the line laser sensor, the left point is a laser point obtained by scanning the well wall on the left side of the pipeline hollow, and the right point is a laser point obtained by scanning the well wall on the right side of the pipeline hollow; A pipeline area point set is searched based on the left point, the continuous point and the right point.

4. The pipeline diameter measurement method based on line laser according to claim 3 is characterized in that: The method of dividing each laser point in the data frame into left points, continuous points and right points based on the distance information includes: dividing laser points whose distance relative to the line laser sensor is greater than a preset distance threshold into continuous points; Classify the laser points whose distance relative to the line laser sensor is less than a preset distance threshold and which are ranked before the continuous points as left points; The laser points whose distance relative to the line laser sensor is greater than a preset distance threshold and which are ranked before the continuous points are classified as right points.

5. The pipeline diameter measurement method based on line laser according to claim 3 is characterized in that: The searching of the pipeline area point set based on the left point, the continuous point and the right point includes: Put all the continuous points that meet the preset conditions in a single data frame into the same point set as the pipeline area point set; The preset condition includes: the distance information of the continuous points is greater than the distance information of the left point and greater than the distance information of the right point.

6. The pipeline diameter measurement method based on line laser according to claim 2 is characterized in that: The pipeline diameter is calculated based on the maximum pipeline diameter point set, including: Find two edge points from the maximum diameter point set of the pipeline; Calculate the pipe diameter based on the edge points; The two edge points include: the laser point that is ranked first in the pipeline maximum diameter point set and the laser point that is ranked last in the set.

7. The pipeline diameter measurement method based on line laser according to claim 6 is characterized in that: Each laser point in the data frame also carries angle information of the laser point relative to the line laser sensor; The pipe diameter is obtained by calculating based on the edge points, including: Substituting the distance value and the angle value of the edge point into the first formula to calculate the pipe diameter; Wherein, the first formula includes: In the formula, c is the pipe diameter, a is the distance from the sensor to one of the edge points, b is the distance from the sensor to another edge point, C is the angle difference between two edge points.

8. A pipeline diameter measuring device based on line laser, characterized in that: include: A pipeline area search module is used to search for a pipeline area point set related to the pipeline based on a data frame obtained by scanning the pipeline with a line laser sensor and distance information carried by each laser point in the data frame; A pipeline maximum diameter search module is used to define the pipeline area point set containing the most continuous points as the pipeline maximum diameter point set; The pipeline diameter calculation module is used to calculate the pipeline diameter based on the maximum diameter point set of the pipeline.

9. A device, characterized in that: include: Memory, used to store programs; A processor is coupled to the memory and is used to execute the program stored in the memory to implement the pipeline diameter measurement method based on line laser as described in any one of claims 1 to 7.

10. A storage medium, characterized in that: Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the pipeline diameter measurement method based on line laser as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Pipeline diameter measuring instrument based on UWB

    CN122041790A