Oil pumping pipe inner wall defect detection device and method
Through the inner wall defect detection device of the pumping pipe and pixel recognition technology, the inner wall defects of the pumping pipe can be detected quickly and accurately, solving the problems of cumbersome and difficult to carry detection methods in the existing technology, and improving downhole operation efficiency and oil well production.
Patent Information
- Application Number
- CN202410264838.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-08
- Publication Date
- 2025-09-09
AI Technical Summary
Existing pumping pipe inspection methods are cumbersome to operate, the equipment is not easy to carry, and it is impossible to quickly and accurately detect inner wall defects on-site, resulting in low downhole operation efficiency and insufficient oil well production.
A device for detecting defects on the inner wall of a pumping pipe is used. A camera captures an image of the inner wall contour line, pixel recognition technology is used to draw the contour line and obtain the coordinates of the center of the circle, calculate the position and size of the defect, and combine vision and image recognition technology to determine whether the pumping pipe needs to be replaced.
It realizes fast and accurate detection of inner wall defects of pumping pipes, improves downhole operation efficiency and oil well production, and reduces the waste of wear-free pumping pipes.
Smart Images

Figure CN120609845A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a device and method for detecting defects on the inner wall of an oil pumping pipe, belonging to the technical field of detection engineering. Background Art
[0002] During downhole operations, pumping tubing is a crucial tool for ensuring normal well production, completing well maintenance and overhauls, reservoir transformation, and oil testing in oilfield exploration and development. Nondestructive testing of pumping tubing prior to downhole operation is essential to ensure efficient downhole operations and well production. Due to the complex operating environment, pumping tubing often suffers from axial wear. Oilfields often regularly replace pumping tubing to prevent accidents and interruptions to production, but this inevitably results in the waste of a significant portion of unworn pumping tubing. Therefore, rapid and accurate inspection of the inner wall of pumping tubing for defects is crucial for improving the quality and efficiency of well repair operations. Currently, the main methods used include ultrasonic testing, eddy current testing, penetrant testing, magnetic flux leakage testing, industrial CT, X-ray testing, and magnetic particle testing. These methods suffer from cumbersome operation, limited equipment portability, and limitations in on-site testing conditions. Summary of the Invention
[0003] In order to solve the technical problems existing in the prior art, the present invention provides a device and method for detecting defects on the inner wall of a pumping pipe. By performing pixel recognition on an image of the inner wall of the pumping pipe, the inner wall contour line is drawn, and the coordinates of the center of the circle are obtained to obtain the defect position and defect size, so as to facilitate the judgment of whether the pumping pipe needs to be replaced, thereby ensuring the efficiency of downhole operations and the output of the oil well.
[0004] The technical solution adopted by the present invention is a method for detecting defects on the inner wall of a pumping pipe, specifically:
[0005] Step 1: Connect the traction rope to the detection device, turn on the laser switch, connect the camera to a laptop or mobile phone via a data cable, place the detection device in the oil pipe, and use the traction rope to pull the detection device to slide in the oil pipe. As the detection device moves in the oil pipe, the software controls the camera to automatically capture the contour line image of the oil pipe inner wall;
[0006] Step 2: Perform visual inspection or image recognition inspection on each captured image to obtain the defect location of the inner wall of the oil pumping pipe.
[0007] Furthermore, the visual inspection is specifically to display the inner wall contour of the oil extraction pipe captured by the camera on the screen of a laptop or mobile phone through software, so that the user can intuitively see the defects of the inner wall of the oil extraction pipe.
[0008] Furthermore, the image recognition inspection specifically includes the following:
[0009] S1, parses and processes the captured image, reads the pixel coordinates of the contour line, processes the pixel coordinate data, and draws the precise contour line;
[0010] S2, find the coordinates of the circle center and draw the standard inner diameter line and the standard outer diameter line;
[0011] S3, calculating the maximum distance between each pixel point beyond the standard inner diameter line and the center coordinate, and obtaining the pixel size data of the inner wall defect of the pumping pipe. According to the corresponding conversion relationship between the pixel distance and the actual distance, the actual defect size can be calculated.
[0012] Furthermore, in the S1, the captured image is analyzed and processed, and the contour line pixel coordinates are read. Specifically, when a specific wavelength of light is converted into a computer image through a camera, the RGB value of the contour line pixel is obviously different from the RGB value characteristics of the pixels at other positions, so that the computer can significantly identify the contour line, and then read the contour line pixel coordinates, that is, the R, G, and B values of the image contour area are identified point by point, and the coordinates of the pixel points whose R, G, and B values meet the value requirements are recorded to form the original contour coordinate data.
[0013] Furthermore, the pixel coordinate data is processed in S1 to draw an accurate contour line specifically as follows: in order of the vertical coordinate from small to large, the horizontal coordinate values of the pixel points with the same vertical coordinate are compared in turn, and the minimum value, maximum value, difference between the maximum value and the minimum value, and the average value of the maximum value and the minimum value of the horizontal coordinate are obtained respectively, and the other coordinates are deleted from the pixel coordinate record; in the same way, the original contour coordinate data are compared in order of the horizontal coordinate from small to large, the vertical coordinate values of the pixel points with the same horizontal coordinate are compared in turn, and the minimum value, maximum value, difference between the maximum value and the minimum value, and the average value of the maximum value and the minimum value of the vertical coordinate are obtained respectively, and the other coordinates are deleted from the pixel coordinate record; the coordinates processed twice are merged into a new coordinate data, the same coordinate data are removed, new contour coordinate data are formed, and the new contour coordinate data is used to draw the contour curve.
[0014] Furthermore, the coordinates of the center of the circle are obtained in S2, and the standard inner diameter line and the standard outer diameter line are drawn specifically as follows: cluster calculations are performed on the average values of the maximum and minimum values of the horizontal coordinates and the average values of the maximum and minimum values of the vertical coordinates, respectively, to obtain the horizontal coordinate value and the vertical coordinate value of the center of the circle, and the standard inner diameter line and the standard outer diameter line are drawn according to the radius values converted into pixel coordinates according to the measured standard inner diameter and outer diameter dimensions of the oil pumping pipe.
[0015] Furthermore, the specific wavelength in S1 is within the range of 380 to 780 nm.
[0016] The technical solution adopted by the present invention is a device for detecting defects on the inner wall of an oil pumping pipe, comprising a data connection plug, a data cable, a camera, a laser, an elastic straightening steel wire, an elastic straightening connecting steel wire and a traction piece. The data connection plug and the data cable are electrically connected. The elastic straightening steel wire is arranged on the side wall of the camera shell. The two ends of the elastic straightening connecting steel wire are respectively arranged on the side walls of the camera and the laser. The camera head of the camera is arranged opposite to the laser. The outer shell of the laser is covered with a steel sleeve with screw holes. The traction piece passes through the screw holes and is fastened by nuts. The data cable is connected to the camera for data transmission.
[0017] Furthermore, the outer diameter of the steel sleeve is 0.1-1 mm smaller than the inner diameter of the oil extraction pipe, and its function is to scrape off impurities such as oil attached to the inside of the oil extraction pipe to prevent the laser and lens from being contaminated by oil.
[0018] Furthermore, the outer diameter of the elastic straightening steel wire and the elastic straightening connecting steel wire should be 0.5 mm larger than the inner diameter of the oil pumping pipe to ensure the straightening effect of the camera and the laser.
[0019] The present invention discloses a device and method for detecting defects on the inner wall of a pumping pipe. Compared with the prior art, the device can perform pixel recognition on an image of the inner wall of the pumping pipe, draw the inner wall contour line, and calculate the coordinates of the center of the circle to obtain the defect position and defect size, so as to facilitate the judgment of whether the pumping pipe needs to be replaced, thereby ensuring the efficiency of downhole operations and the output of the oil well. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0021] Figure 1 The figure shows a schematic diagram of a photograph of the inner wall of the oil pumping pipe captured by a camera;
[0022] Figure 2 The figure shows the schematic diagram of the inner wall contour line identification of the oil pumping pipe;
[0023] Figure 3 The figure shows the schematic diagram of the inner wall contour line drawing of the oil pumping pipe;
[0024] Figure 4 The figure shows a schematic diagram of finding the center of the circle on the inner wall of the pumping pipe;
[0025] Figure 5 The figure shows the schematic diagram of drawing the standard inner diameter line and the standard outer diameter line and calculating the actual defect size;
[0026] Figure 6 The figure shows a schematic structural diagram of a device for detecting defects on the inner wall of a pumping pipe;
[0027] Figure 7 Shown Figure 6 Schematic diagram of the structure of the steel sleeve and laser.
[0028] As shown in the figure:
[0029] 1. Data connection plug; 2. Data cable; 3. Camera; 4. Laser; 5. Elastic straightening wire; 6. Elastic straightening connecting wire; 7. Pulling piece; 8. Nut; 9. Steel sleeve; 31. Camera; 41. Housing; 42. Laser diode; 43. Mainboard; 44. Battery compartment; 45. Switch. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is in no way intended to limit the present invention and its application or use. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0031] In order to further understand the content of the present invention, this technical solution is further described below in conjunction with specific implementation methods.
[0032] Example 1:
[0033] like Figure 6 and 7 As shown, a device for detecting defects on the inner wall of an oil pumping pipe includes a data connection plug 1, a data line 2, a camera 3, a laser 4, an elastic straightening wire 5, an elastic straightening connecting wire 6 and a traction member 7. The data connection plug 1 and the data line 2 are electrically connected. The elastic straightening wire 5 is arranged on the side wall of the shell of the camera 3. The two ends of the elastic straightening connecting wire 6 are respectively connected to the side walls of the camera 3 and the laser 4. The laser 4 mainly includes a shell 41, a laser diode 42, a main board 43, a battery compartment body 44 and a switch 45. The shell 41 is provided with a laser diode 42, a main board 43 and a battery compartment body 44. The battery compartment body 44 is provided with a switch 45. The laser diode 42, the main board 43, the switch 45 and the battery compartment body 44 are electrically connected. The camera head 31 of the camera 3 and the laser diode 42 of the laser 4 are arranged opposite to each other. The traction member 7 has threads at both ends. The shell 41 of the laser 4 is covered with a steel sleeve 9 and the steel sleeve 9 has screw holes. The traction member 7 passes through the screw holes and is fastened by a nut 8. The data line 2 is connected to the camera 3 for data transmission.
[0034] The elastic straightening wire 5 is U-shaped. The maximum outer diameters of the elastic straightening wire 5 and the elastic straightening connecting wire 6 should be 0.5 mm larger than the inner diameter of the oil pumping pipe. The elastic straightening wire 5 and the elastic straightening connecting wire 6 can move in the oil pumping pipe and ensure the straightening effect on the camera 3 and the laser 4 to avoid blurring due to shaking.
[0035] Furthermore, the maximum diameter of the steel sleeve 9 is 0.1-1 mm smaller than the inner wall size of the oil extraction pipe. Its function is to scrape off impurities such as oil attached to the inside of the oil extraction pipe and prevent the laser 4 and the lens from being contaminated by oil.
[0036] like Figures 1 to 5 As shown, this embodiment provides a method for detecting defects on the inner wall of a pumping pipe, specifically:
[0037] Step 1: Connect the traction rope to the detection device, turn on the switch 45 of the laser 4, connect the camera 3 to a laptop or mobile phone via the data cable 2, place the detection device into the oil pipe, and use the traction rope to pull the detection device to slide within the oil pipe. The outer diameter of the elastic straightening wire 5 and the elastic straightening connecting wire 6 are used to ensure the position and angle of the camera 3 and laser 4. When the detection device moves within the oil pipe, the laser 4 will emit 360 degrees of light after being powered on. The optical property that the position change of the laser 4 does not affect the shape of the inner wall being measured forms a clear light contour line consistent with the shape of the inner wall being measured. The software controls the camera 3 to automatically capture the contour line image of the oil pipe inner wall.
[0038] Step 2: Perform visual inspection or image recognition inspection on each captured image to obtain the defect location of the inner wall of the oil pumping pipe.
[0039] The visual inspection is specifically to display the inner wall contour of the oil pumping pipe captured by the camera 3 on the laptop or mobile phone screen through software, such as Figure 1 As shown, users can intuitively see the defects of the inner wall of the oil pumping pipe.
[0040] The image recognition inspection specifically includes the following:
[0041] S1, analyzes and processes the captured image, identifies the R, G, and B values of each pixel in the image contour area, records the coordinates of the pixel points whose R, G, and B values meet the value requirements, forms the original contour coordinate data, processes the pixel coordinate data, and draws the precise contour line; specifically, when the specific wavelength light is converted into a computer image through the camera 3, the RGB value of the contour line pixel is obviously different from the RGB value characteristics of the pixels in other positions, so that the computer can significantly identify the contour line and then read the contour line pixel coordinates. The specific wavelength is within the range of 380 to 780 nm to ensure the shooting effect; the horizontal coordinate values of the pixel points with the same vertical coordinate are compared in order from small to large, and the minimum value, maximum value, difference between maximum value and minimum value, and average value of maximum value and minimum value of the horizontal coordinate are obtained respectively, and the other coordinates are deleted from the pixel coordinate record; the same method is used to compare the vertical coordinate values of the pixel points with the same horizontal coordinate in order from small to large of the horizontal coordinate, and the minimum value, maximum value, difference between maximum value and minimum value, and average value of maximum value and minimum value of the vertical coordinate are obtained respectively, and the other coordinates are deleted from the pixel coordinate record; the coordinates processed twice are merged into a new coordinate data, and the same coordinate data are removed to form new contour coordinate data, such as Figure 3 As shown, the new contour coordinate data is used to draw the contour curve.
[0042] S2, obtain the coordinates of the center of the circle, draw the standard inner diameter line and the standard outer diameter line; perform cluster calculation on the average of the maximum and minimum values of the horizontal coordinate, and the average of the maximum and minimum values of the vertical coordinate, and obtain the horizontal coordinate value and vertical coordinate value of the center of the circle, respectively, see Figure 4 , according to the radius value converted into pixel coordinates of the measured standard inner diameter and outer diameter of the oil pumping pipe, draw the standard inner diameter line and standard outer diameter line, such as Figure 5 The standard inner diameter of the oil pumping pipe shown is 62 mm, and the standard outer diameter of the oil pumping pipe is 73 mm.
[0043] S3, calculate the maximum distance between each pixel point beyond the standard inner diameter line and the center coordinate, and compare it with the original distance to obtain the pixel size data of the inner wall defect of the oil pipe. According to the corresponding conversion relationship between pixel distance and actual distance, the actual defect size can be calculated, such as Figure 5 The maximum missing diameter of the oil extraction pipe shown is 67.97mm and needs to be replaced to meet the needs of the site.
[0044] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A device for detecting defects on the inner wall of a pumping pipe, characterized in that: The invention comprises a data connection plug (1), a data line (2), a camera (3), a laser (4), an elastic straightening steel wire (5), an elastic straightening connecting steel wire (6) and a traction member (7). The data connection plug (1) and the data line (2) are electrically connected. The elastic straightening steel wire (5) is arranged on the side wall of the housing of the camera (3). The two ends of the elastic straightening connecting steel wire (6) are respectively connected to the side walls of the camera (3) and the laser (4). The camera head (31) of the camera (3) is arranged opposite to the laser (4). The housing (41) of the laser (4) is covered with a steel sleeve (9). The steel sleeve (9) has a screw hole. The traction member (7) passes through the screw hole and is fastened by a nut (8). The data line (2) is connected to the camera (3) for data transmission.
2. The device for detecting inner wall defects of a pumping pipe according to claim 1, characterized in that: The outer diameter of the steel sleeve (9) is 0.1 to 1 mm smaller than the inner diameter of the oil pumping pipe.
3. The device for detecting inner wall defects of a pumping pipe according to claim 1, characterized in that: The maximum outer diameters of the elastic straightening steel wire (5) and the elastic straightening connecting steel wire (6) should both be 0.5 mm greater than the inner diameter of the oil pumping pipe.
4. A detection method using the apparatus for detecting defects on the inner wall of a pumping pipe according to claim 1, characterized in that: Step 1: Connect the traction rope to the detection device, turn on the switch (45) of the laser (4), connect the camera (3) to the laptop or mobile phone via the data cable (2), put the detection device into the oil pumping pipe, pull the detection device to slide in the oil pumping pipe by the traction rope, and when the detection device moves in the oil pumping pipe, the software controls the camera (3) to automatically capture the contour line image of the inner wall of the oil pumping pipe; Step 2: Perform visual inspection or image recognition inspection on each captured image to obtain the defect location of the inner wall of the oil pumping pipe.
5. The detection method according to claim 4, characterized in that The visual inspection is specifically to display the inner wall contour of the oil extraction pipe captured by the camera (3) on the screen of a laptop or mobile phone through software, so that the user can intuitively see the defects of the inner wall of the oil extraction pipe.
6. The detection method according to claim 4, characterized in that Image recognition inspections specifically include the following: S1, parses and processes the captured image, reads the pixel coordinates of the contour line, processes the pixel coordinate data, and draws the precise contour line; S2, find the coordinates of the circle center and draw the standard inner diameter line and the standard outer diameter line; S3, calculating the maximum distance between each pixel point beyond the standard inner diameter line and the center coordinate, and obtaining the pixel size data of the inner wall defect of the pumping pipe. According to the corresponding conversion relationship between the pixel distance and the actual distance, the actual defect size can be calculated.
7. The detection method according to claim 6, characterized in that In S1, the captured image is analyzed and processed, and the pixel coordinates of the contour line are read. Specifically, when the light of a specific wavelength is converted into a computer image through a camera (3), the RGB value of the contour line pixel is obviously different from the RGB value characteristics of the pixels at other positions, so that the computer can significantly identify the contour line, and then read the pixel coordinates of the contour line, that is, the R, G, B values of the pixels in the contour line area of the image are identified point by point, and the coordinates of the pixel points whose R, G, B values meet the value requirements are recorded to form the original contour coordinate data.
8. The detection method according to claim 7, characterized in that In S1, the pixel coordinate data is processed to draw an accurate contour line as follows: the horizontal coordinate values of the pixel points with the same vertical coordinate are compared in order from small to large, and the minimum value, maximum value, difference between the maximum value and the minimum value, and average value of the maximum value and the minimum value of the horizontal coordinate are obtained respectively, and the other coordinates are deleted from the pixel coordinate record; and the original contour coordinate data are compared in order from small to large with the vertical coordinate values of the pixel points with the same horizontal coordinate, and the minimum value, maximum value, difference between the maximum value and the minimum value, and average value of the maximum value and the minimum value of the vertical coordinate are obtained respectively, and the other coordinates are deleted from the pixel coordinate record; the coordinates processed twice are merged into a new coordinate data, the same coordinate data are removed, new contour coordinate data is formed, and the new contour coordinate data is used to draw the contour curve.
9. The detection method according to claim 8, characterized in that In S2, the coordinates of the circle center are obtained, and the standard inner diameter line and the standard outer diameter line are drawn as follows: cluster calculations are performed on the average values of the maximum and minimum values of the horizontal coordinates and the average values of the maximum and minimum values of the vertical coordinates, respectively, to obtain the horizontal coordinate value and the vertical coordinate value of the circle center, and the standard inner diameter line and the standard outer diameter line are drawn according to the radius values converted into pixel coordinates according to the measured standard inner diameter and outer diameter dimensions of the oil pumping pipe.
10. The detection method according to claim 7, characterized in that: The specific wavelength in S1 is in the range of 380 to 780 nm.