A positioning method suitable for welding seams in pipelines

By establishing a positioning coordinate system in the pipeline and using histogram comparison combined with the minimum frame selection method, the problem of difficult weld positioning in the pipeline in the existing technology is solved, efficient weld identification and positioning is achieved, and the workload is reduced , suitable for automated non-destructive testing.

CN115598131BActive Publication Date: 2024-10-18JIANGSU HUADIAN KUNSHAN THERMAL POWER CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211151991.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-21
Publication Date
2024-10-18
Estimated Expiration
2042-09-21

AI Technical Summary

Technical Problem

Existing technology makes it difficult to accurately locate welds in pipelines, resulting in a heavy workload for weld inspection, which requires high-altitude operations or ground excavation, and robot inspection requires accurate positioning to be effective.

Method used

By establishing the positioning coordinate system of the weld in the pipeline, manually obtain the weld image, establish a histogram, and compare it with the collected image, determine the weld position based on the minimum frame selection range, and improve the weld image recognition rate and speed.

Benefits of technology

It achieves accurate positioning of welds in pipelines, improves weld recognition rate and speed, reduces workload, avoids high-altitude or ground excavation operations, and provides basic conditions for automated non-destructive testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115598131B_ABST
    Figure CN115598131B_ABST
Patent Text Reader

Abstract

The present invention discloses a positioning method and system suitable for welds in pipelines, belonging to the technical field of pipeline weld detection. First, a positioning coordinate system of the weld in the pipeline is established, and the orientation representation method of the weld in the pipeline is determined; the width of the weld in the pipeline is determined; the weld image in the pipeline is manually acquired, and a weld image histogram is established after segmentation; then the image in the pipeline is remotely acquired, and a histogram of the image in the pipeline is established after segmentation, and compared with the established weld image histogram; if the similarity of the statistical data is less than a set value, the acquired image in the pipeline is not a weld image; if the similarity of the statistical data is not less than a set value, the acquired image in the pipeline is verified using the minimum frame selection range, and if it is determined to be a weld image, the coordinate value and orientation of the weld in the positioning coordinate system are marked to complete the positioning of the weld in the pipeline. The present invention is simple to operate, accurate in positioning, remotely controllable, and has a high weld image recognition rate and a fast recognition speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of pipeline weld detection, and in particular relates to a positioning method suitable for welds in pipelines. Background Art

[0002] The main pipelines of power plants and chemical plants usually work under high temperature and high pressure. The welds of the pipelines inevitably have various defects, which are easy to expand into harmful defects such as cracks, which may lead to serious accidents such as leakage and burst of the pipelines. These important pipelines are usually insulated pipelines with coating layers, and their layout is mainly high-altitude suspension or underground laying. The inspection of welds, especially the inspection of internal welds, has a large workload and requires the construction of scaffolding for high-altitude work or ground excavation.

[0003] The use of robots for inspection can better solve this series of problems and reduce the workload during maintenance. However, the use of robots for internal weld inspection must be able to accurately locate the weld position in the pipeline, so that the robot can remotely inspect the internal weld. Summary of the invention

[0004] In order to solve the defects existing in the above-mentioned prior art, the purpose of the present invention is to provide a positioning method suitable for welds in pipelines, which is easy to operate, accurate in positioning, can be remotely controlled, has a high weld image recognition rate and a fast recognition speed.

[0005] The present invention is achieved through the following technical solutions:

[0006] A method for positioning a weld in a pipeline, comprising:

[0007] S1: Establish the positioning coordinate system of the weld in the pipeline and determine the orientation representation method of the weld in the pipeline;

[0008] S2: Determine the width of the weld in the pipeline;

[0009] S3: manually obtain the weld image in the pipeline, segment it and establish the weld image histogram;

[0010] S4: remotely collect the image in the pipeline, establish the histogram of the image in the pipeline after segmentation, and compare it with the weld image histogram established in S3; if the similarity of the statistical data is less than the set value, the collected image in the pipeline is not a weld image; if the similarity of the statistical data is not less than the set value, go to S5;

[0011] S5: Using the width of the weld in the pipeline obtained in S2, determine the minimum selection range, and verify the image in the pipeline acquired in S4. If it is determined that the image in the pipeline acquired by S4 is a weld image, mark the coordinate value and orientation of the weld in the positioning coordinate system to complete the positioning of the weld in the pipeline.

[0012] Preferably, S1 specifically includes: establishing a uniaxial coordinate system according to the diameter, wall thickness and length of the pipeline, and determining the coordinate direction and the 0-degree position; coinciding the starting point of the crawling trolley with the coordinate origin and the 0-degree position; and characterizing the weld position in the pipeline by using coordinate values ​​and angle values.

[0013] Preferably, in S2, the width range of the weld in the pipeline is determined according to the pipeline diameter, wall thickness and welding process data.

[0014] Preferably, S3 specifically includes: manually driving the crawling trolley, using a camera to manually obtain a weld image, dividing the weld image into images of predetermined pixels, performing image grayscale processing to make the image grayscale value within the range of [min, max], and establishing a weld image histogram.

[0015] Preferably, S4 is specifically as follows: remotely controlling the crawling car to acquire the image inside the pipeline by using the network camera, dividing the image inside the pipeline into images of predetermined pixels, and graying the image so that the gray value of the image is within the range of [min, max], and establishing a histogram of the image inside the pipeline; comparing the histogram of the image inside the pipeline with the histogram of the weld image established in S3, if the grayscale statistics of the pixels in the two images are less than the set value, the acquired image inside the pipeline is not a weld image; if the similarity of the statistical data is not less than the set value, the image inside the pipeline acquired by the network camera is a weld image.

[0016] Further preferably, the weld image is segmented into images of predetermined pixels according to the diameter and wall thickness of the pipe.

[0017] Further preferably, when comparing the histogram of the image in the pipeline with the histogram of the weld image established by S3, the Otsu method is used to binarize the image, and the canny algorithm is used to obtain the weld boundary; if the similarity of the grayscale statistical data of the pixels in the histogram of the image in the pipeline and the histogram of the weld image established by S3 is less than a set value, the image obtained by the network camera is not a welding image, and the crawling car needs to be driven to continue moving to collect the image in the pipeline.

[0018] Preferably, S5 is specifically as follows: the width of the minimum frame selection is the width of the weld in the pipeline obtained by S2, and the length is the length value of the image segmentation; the center point of the minimum frame selection is moved to coincide with the center point of the boundary of the image in the pipeline, and the number of boundary pixels within the minimum frame selection range is counted. If 85% of the boundary pixel points are within the minimum frame selection range, the image in the pipeline is a weld image; otherwise, the minimum frame selection is rotated 90°, and pixel count is performed. If 85% of the boundary pixel points are within the minimum frame selection range, it is a weld image, and the positioning of the weld in the pipeline is completed; if 85% of the boundary pixel points are within the minimum frame selection range after rotation 3 times, the image is not a weld.

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

[0020] The method for locating welds in pipelines disclosed by the present invention adopts a combination of histogram and minimum frame selection to improve the recognition rate of weld images. The similarity of two images can be compared more accurately through the histogram, but if the images collected by the camera are directly compared, the amount of calculation is large, and the ratio of the pixels of the weld part image to the pixels of the entire image is relatively small, so the weld recognition rate is not high. The weld frame selection range in the image is manually determined according to the weld width, that is, the minimum frame selection is determined, which increases the proportion of the weld in the entire image, is conducive to the recognition of the weld in the selected range of the image, and thus the weld image recognition rate is greatly improved. At the same time, the use of the minimum frame selection greatly reduces the amount of calculation when comparing the similarity of images using the histogram, which is conducive to improving the running speed of image processing, and can efficiently determine the position of the weld in the pipeline, avoiding work such as scaffolding or excavation of the ground, and providing basic conditions for automated non-destructive testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a schematic diagram of the method flow of the present invention. DETAILED DESCRIPTION

[0022] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments, which are intended to explain the present invention rather than to limit it.

[0023] The positioning device used in the present invention includes an industrial control computer, a network switch, a network camera, a pan-tilt head, a controllable light source, a crawling car, and a power supply. The industrial control computer is connected to the network switch, and implements a weld positioning algorithm in the pipeline to display the weld position in the pipeline. The network switch is connected to the network camera, the pan-tilt head, the controllable light source, and the crawling car. The network camera and the pan-tilt head are installed on the crawling car. The crawling car travels in the pipeline and provides travel displacement data. The pan-tilt head controls the network camera, adjusts the shooting angle, etc. The controllable light source is installed on the crawling car to provide illumination for the camera.

[0024] like Figure 1 The method for positioning a weld in a pipeline of the present invention comprises the following steps:

[0025] Step 1: Establishment and orientation characterization of the weld positioning coordinate system in the pipeline. According to the diameter, wall thickness and length of the detected pipeline, a single-axis coordinate system is established to determine the coordinate direction and the 0-degree position. In order to simplify the calculation and facilitate understanding, the starting point of the crawler is coincident with the origin of the coordinates and the 0-degree position. The position of the weld in the pipeline is characterized by coordinate values ​​and angle values.

[0026] Step 2: Determine the width range of the weld in the pipeline and obtain the image histogram of the weld in the pipeline. According to the pipeline diameter and wall thickness, as well as the welding process data, the width of the weld in the pipeline is determined. Manually drive the crawler, use the camera to manually obtain the weld photo, segment the weld image, segment it into images of given pixels, perform image grayscale processing, make the image grayscale value within the range of [min, max], and establish the image histogram.

[0027] Step 3, identification of welds in pipelines and extraction of weld boundaries. Drive the crawler and use the network camera to obtain images in the pipeline; segment the image according to the diameter and wall thickness of the pipeline, and the size of the segmented image is consistent with the image segmentation method in step 2. Grayscale the image, and the grayscale value range is within [min, max] to establish an image histogram. Compare the established image histogram with the image histogram in step 2. If the grayscale statistics of the pixels in the two images are similar, the image obtained by the network camera is a weld image. The image is binarized using the Otsu method, and the weld boundary is obtained using the canny algorithm; if the drawing statistics of the pixels in the two images are significantly different, the image obtained by the network camera is not a welding image, and the crawler needs to be driven to continue moving so that the weld image appears in the camera.

[0028] Step 4, using the minimum selection range, determine the weld width, improve the weld recognition rate, and determine the weld image position. Compare the image histogram in step 3 with the image histogram in step 2. When the grayscale statistical data are similar, use the weld width determined in step 2 to determine the width of the selection box. The length of the selection box is the length value of the image segmentation. The box is the minimum selection, and its range is the minimum selection range. Move the center point of the minimum selection to coincide with the center point of the weld image boundary, and count the number of boundary pixels within the minimum selection range. If 85% of the boundary pixels are within the selection range, the image is a weld image; otherwise, rotate the selection box 90 degrees in turn, perform pixel counts, and if 85% is met, it is a weld image. After rotating the angle 3 times, that is, after meeting 360 degrees, it still cannot meet the pixel requirements, then the image is not a weld, and continue to drive the crawler to perform real-time weld image recognition.

[0029] The present invention will be further explained below with a specific embodiment:

[0030] A 2-meter-long straight seam steel pipe with a diameter of 1200mm and a thickness of 20mm is made of Q345R and is formed by double-sided welding inside and outside.

[0031] An industrial control computer, a network switch, a network camera, a pan / tilt head, a controllable light source, a crawling trolley and a power supply constitute a pipeline welding seam positioning device.

[0032] A single-axis coordinate system is established based on the diameter, thickness and length of the pipe, and the coordinate direction and 0-degree position are determined. The crawling trolley is placed at the origin of the coordinate system as the starting point of the trolley, and coincides with the 0-degree position.

[0033] According to the welding process data and pipeline parameters, the width of the weld in the pipeline is determined. The crawling car is manually driven, and the camera is used to obtain weld photos, which are processed to establish an image histogram. The crawling car is continued to be driven to process the images in the pipeline obtained by the network camera, establish an image histogram, and compare it with the manually obtained image histogram to determine whether the image obtained by the network camera is a weld image, and determine the weld boundary according to the canny algorithm. Finally, the minimum frame selection range is determined using the manually selected image histogram, and the center of the minimum frame selection is overlapped with the center point of the weld image boundary captured by the network camera. The number of boundary pixels in the minimum frame selection range is counted within a 360-degree range. If 85% is met, it is a weld image. If not, the car is driven to move forward and the next weld image recognition is performed in real time.

[0034] It should be noted that the above is only a part of the implementation of the present invention, and equivalent changes made to the system described in the present invention are all included in the protection scope of the present invention. Those skilled in the art of the present invention can replace the specific examples described in a similar manner, as long as they do not deviate from the structure of the present invention or exceed the scope defined by the claims, they all belong to the protection scope of the present invention.

Claims

1. A method for positioning a weld in a pipeline, characterized in that: include: S1: Establish the positioning coordinate system of the weld in the pipeline and determine the orientation representation method of the weld in the pipeline; S2: Determine the width of the weld in the pipeline; S3: manually obtain the weld image in the pipeline, segment it and establish the weld image histogram; S4: remotely collect the image in the pipeline, establish the histogram of the image in the pipeline after segmentation, and compare it with the weld image histogram established in S3; if the similarity of the statistical data is less than the set value, the collected image in the pipeline is not a weld image; if the similarity of the statistical data is not less than the set value, go to S5; S5: Using the width of the weld in the pipeline obtained in S2, determine the minimum selection range, and verify the image in the pipeline acquired in S4; if the image in the pipeline acquired in S4 is not a weld image, repeat S4; if the image in the pipeline acquired in S4 is a weld image, mark the coordinate value and orientation of the weld in the positioning coordinate system, and complete the positioning of the weld in the pipeline; S4 is specifically as follows: remotely controlling the crawling car to use the network camera to obtain the image in the pipeline, dividing the image in the pipeline into images of predetermined pixels, and graying the image so that the gray value of the image is within the range of [min, max], and establishing a histogram of the image in the pipeline; comparing the histogram of the image in the pipeline with the histogram of the weld image established in S3, if the grayscale statistics of the pixels in the two images are less than the set value, the collected image in the pipeline is not a weld image; if the similarity of the statistical data is not less than the set value, the image in the pipeline obtained by the network camera is a weld image; S5 is specifically as follows: the width of the minimum frame is the width of the weld in the pipeline obtained by S2, and the length is the length value of the image segmentation; the center point of the minimum frame is moved to coincide with the center point of the boundary of the image in the pipeline, and the number of boundary pixels within the minimum frame range is counted. If 85% of the boundary pixels are within the minimum frame range, the image in the pipeline is a weld image; otherwise, the minimum frame is rotated 90°, and pixel counts are performed. If 85% of the boundary pixels are within the minimum frame range, it is a weld image, and the positioning of the weld in the pipeline is completed; if after rotating 3 times, it is still not satisfied that 85% of the boundary pixels are within the minimum frame range, then the image is not a weld.

2. The method for positioning a weld in a pipeline according to claim 1, characterized in that: S1 is specifically as follows: according to the diameter, wall thickness and length of the pipeline, a single-axis coordinate system is established, and the coordinate direction and the 0-degree position are determined; the starting point of the crawling trolley is coincident with the coordinate origin and the 0-degree position; the position of the weld in the pipeline is characterized by coordinate values ​​and angle values.

3. The method for positioning a weld in a pipeline according to claim 1, characterized in that: In S2, the width range of the weld in the pipeline is determined based on the pipeline diameter, wall thickness and welding process data.

4. The method for positioning a weld in a pipeline according to claim 1, characterized in that: S3 specifically includes: manually driving the crawling car, using a camera to manually obtain a weld image, dividing the weld image into images of predetermined pixels, and graying the image so that the image gray value is within the range of [min, max], and establishing a weld image histogram.

5. The method for positioning a weld in a pipeline according to claim 1 or 4, characterized in that: The weld image is segmented into images of predetermined pixels according to the diameter and wall thickness of the pipe.

6. The method for positioning a weld in a pipeline according to claim 1, characterized in that: When comparing the histogram of the image inside the pipeline with the histogram of the weld image established by S3, the Otsu method is used to binarize the image, and the canny algorithm is used to obtain the weld boundary; if the similarity of the grayscale statistical data of the pixels in the histogram of the image inside the pipeline and the histogram of the weld image established by S3 is less than the set value, the image obtained by the network camera is not a welding image, and the crawling car is driven to continue moving to collect the image inside the pipeline.

Citation Information

Patent Citations

  • A multi-level-based endoscopic surgical instrument detection method

    CN109948655A