A method for correcting video image distortion caused by eccentricity of downhole imaging instrument

Through the three-dimensional grid processing and model matching methods, the video image distortion problem caused by eccentricity of the downhole imaging instrument is solved, the image correction and better observation angle are achieved, and the accuracy of oil and gas well sleeve defect detection is improved.

CN113653484BInactive Publication Date: 2024-12-03CHINA NAT PETROLEUM CORP CHUANQING DRILLING ENG CO LTD CHANGQING DOWNHOLE TECH CO
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202110987866.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-26
Publication Date
2024-12-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Due to gravity and other reasons, the cameras and columns of the underground imaging instruments are often different in the center, resulting in eccentricity of the wellbore images captured, affecting the accuracy of the detection results.

Method used

Through three-dimensional grid processing and model matching, the correction coordinates of the eccentric image are calculated, the image correction is performed using the visual detection device, the eccentric three-dimensional model is drawn, and the image features are matched to obtain the corrected image.

Benefits of technology

The eccentric correction of downhole video images is achieved, better observation angle and subsequent processing results are obtained, and the accuracy of oil and gas well sleeve defect detection is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113653484B_ABST
    Figure CN113653484B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for correcting video image distortion caused by eccentricity of a downhole imaging instrument, comprising: step 1: shooting a video with a camera of a visualization detection device in a casing string to perform visualization detection of the casing string; step 2: performing three-dimensional grid processing on the target pipe string; step 3: when the camera is coaxial with the pipe string, the center Ot of the pipe string coincides with the center Op of the camera in the xy plane coordinates, the coordinate point is (0, 0), and the image of the target pipe section is a concentric circular ring; step 4: when the camera is coaxial with the pipe string but not concentric, the center Op of the camera in the xy plane coordinates is (opx, opy), and the image of the target pipe section is an eccentric circular ring; step 5: performing eccentric image correction processing according to the models of step 3 and step 4. The technical effect of the invention is that the eccentric image can be corrected to obtain a better observation angle and perform subsequent processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of pipe column eccentricity image correction, and in particular to a method for correcting video image distortion caused by eccentricity of a downhole imaging instrument. Background Art

[0002] The oil and gas well visualization detection device is a method for correcting video image distortion caused by the eccentricity of a downhole imaging instrument, which can be used to detect casing defects that are visually visible on the casing surface. Usually, the test result only provides a video image. However, due to gravity and other reasons, the camera and the pipe string of the visualization detection device are often not concentric in the wellbore, so the wellbore image captured is eccentric. The present invention provides a method for correcting video image distortion caused by the eccentricity of a downhole imaging instrument, which can correct the eccentric image to obtain a better observation angle and perform subsequent processing. Summary of the invention

[0003] The object of the present invention is to provide a method for correcting video image distortion caused by eccentricity of a downhole imaging instrument, so as to achieve the technical effect proposed in the above-mentioned background technology.

[0004] To achieve the above-mentioned purpose, the invention provides the following technical solution: a method for correcting video image distortion caused by eccentricity of a downhole imaging instrument, specifically comprising the following steps:

[0005] Step 1: Use a camera of a visual inspection device to shoot a video in the casing string to perform visual inspection of the casing string, and set the distance between the target pipe section with a length of L and the camera to D, and the diameter of the pipe string to Od;

[0006] Step 2: Perform three-dimensional grid processing on the target string. The coordinates of all points on the grid are expressed as a matrix g (x, y, z). The x-axis and y-axis are circumferential directions, and the z-axis is the axial direction. The calculation formula of the point coordinates is as follows:

[0007] z=D+dL,

[0008] x=Od / 2*cos(θ),

[0009] y = Od / 2*sin(θ);

[0010] Step 3: When the camera and the pipe are coaxial, the center of the pipe Ot coincides with the center of the camera Op in the xy plane coordinates, the coordinate point is (0, 0), the image of the target pipe section is a concentric ring, and the coordinates of the grid point in the image coordinate system are:

[0011] R = K*Od / 2 / z,

[0012] x=R*cos(θ)+W / 2,

[0013] y=-R*sin(θ)+H / 2;

[0014] Step 4: When the camera and the pipe are coaxial but not concentric, the coordinates of the camera center Op in the xy plane are (opx, opy), the image of the target pipe section is an eccentric ring, and the coordinates of the grid points in the image coordinate system are:

[0015] x=R*cos(θ)+W / 2+xoffset,

[0016] y=-R*sin(θ)+H / 2+yoffset;

[0017] Step 5: Perform eccentric image correction processing according to the models of step 3 and step 4. Use the eccentric image actually captured by the visualization detection device, image width W, height H, center coordinates O (H / 2, W / 2), draw an eccentric three-dimensional model on the image, perform model matching, and obtain the radius rc of the area to be corrected through model matching according to the characteristics of the string image. In the image coordinate system, the center coordinates are (H / 2+oty, W / 2+otx), the camera center coordinates are (H / 2+opy, W / 2+opx), the correction image size is 2rc*2rc, the image center coordinates are (rc, rc), and the distance between the point (x, y) and the image center (rc, rc) in the circular area of ​​the correction image

[0018] r=sqrt((x-rc)^2+(y-rc)^2);

[0019] Calculation of the offset of the circle with radius r in the original image relative to the center (H / 2, W / 2) of the original image

[0020] ox=opx-(opx-otx)*r / rc,

[0021] oy=opy-(opy-oty)*r / rc,

[0022] The coordinates (x1, y1) of the pixel with coordinates (x, y) in the corrected image in the original image are calculated by the following formula:

[0023] x1=x-rc+W / 2+ox,

[0024] y1=y-rc+H / 2+oy,

[0025] Carry out coordinate scanning, complete the calculation and filling of all points, and then you can get the corrected image.

[0026] Preferably, the value range of z in step 2 is (D, D+L); dL is the axial division, the unit is mm; θ is the radial division, the value range is (0, 2π), the unit is radian.

[0027] Preferably, K in step 3 is a camera coefficient, a constant.

[0028] Preferably, in step 4, xoffset=opx*K / z, Yoffset=-opy*K / z, wherein K is a camera coefficient, a constant.

[0029] Compared with the prior art, the beneficial effect of the invention is that the tubing eccentricity image correction method based on spatial three-dimensional model projection transformation can perform eccentricity correction of downhole images obtained by visualization detection of casing damage defects in oil and gas wells to obtain a better observation angle and perform subsequent processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 Schematic diagram of the position of the pipe string and the camera;

[0031] Figure 2 This is a schematic diagram of the principle when the camera and the pipe column are coaxial;

[0032] Figure 3 It is a schematic diagram of the grid point model when the camera and the pipe string are coaxial;

[0033] Figure 4 This is a schematic diagram of the principle when the camera is coaxial with the pipe column but not concentric;

[0034] Figure 5 It is a schematic diagram of the grid point model when the camera is coaxial but not concentric with the pipe string;

[0035] Figure 6 This is a schematic diagram of an eccentric image actually captured using a visual detection device;

[0036] Figure 7 It is a schematic diagram of an eccentric three-dimensional model of an eccentric image and model matching;

[0037] Figure 8 This is a schematic diagram of the comparison before and after eccentricity correction;

[0038] Fig. 9 A schematic diagram of an azimuth rotation correction image obtained by using a correction image;

[0039] Fig.10 Schematic diagram of the plane unfolded image and three-dimensional surface image obtained using the corrected image. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] like Figures 1 to 10 As shown, the present invention provides a technical solution: a method for correcting video image distortion caused by eccentricity of a downhole imaging instrument, specifically comprising the following steps:

[0042] Step 1: Use a camera of a visual inspection device to shoot a video in the casing string to perform visual inspection of the casing string, and set the distance between the target pipe section with a length of L and the camera to D, and the diameter of the pipe string to Od;

[0043] Step 2: Perform three-dimensional grid processing on the target string. The coordinates of all points on the grid are expressed as a matrix g (x, y, z). The x-axis and y-axis are circumferential directions, and the z-axis is the axial direction. The calculation formula of the point coordinates is as follows:

[0044] z=D+dL,

[0045] x=Od / 2*cos(θ),

[0046] y = Od / 2*sin(θ);

[0047] Step 3: When the camera and the pipe are coaxial, the center of the pipe Ot coincides with the center of the camera Op in the xy plane coordinates, the coordinate point is (0, 0), the image of the target pipe section is a concentric ring, and the coordinates of the grid point in the image coordinate system are:

[0048] R=K*Od / 2 / z,

[0049] x=R*cos(θ)+W / 2,

[0050] y=-R*sin(θ)+H / 2;

[0051] Step 4: When the camera and the pipe are coaxial but not concentric, the coordinates of the camera center Op in the xy plane are (opx, opy), the image of the target pipe section is an eccentric ring, and the coordinates of the grid points in the image coordinate system are:

[0052] x=R*cos(θ)+W / 2+xoffset,

[0053] y=-R*sin(θ)+H / 2+yoffset;

[0054] Step 5: Perform eccentric image correction processing according to the models of step 3 and step 4. Use the eccentric image actually captured by the visualization detection device, image width W, height H, center coordinates O (H / 2, W / 2), draw an eccentric three-dimensional model on the image, perform model matching, and obtain the radius rc of the area to be corrected through model matching according to the characteristics of the string image. In the image coordinate system, the center coordinates are (H / 2+oty, W / 2+otx), the camera center coordinates are (H / 2+opy, W / 2+opx), the correction image size is 2rc*2rc, the image center coordinates are (rc, rc), and the distance between the point (x, y) and the image center (rc, rc) in the circular area of ​​the correction image

[0055] r=sqrt((x-rc)^2+(y-rc)^2);

[0056] Calculation of the offset of the circle with radius r in the original image relative to the center (H / 2, W / 2) of the original image

[0057] ox=opx-(opx-otx)*r / rc,

[0058] oy=opy-(opy-oty)*r / rc,

[0059] The coordinates (x1, y1) of the pixel with coordinates (x, y) in the corrected image in the original image are calculated by the following formula:

[0060] x1=x-rc+W / 2+ox,

[0061] y1=y-rc+H / 2+oy,

[0062] Carry out coordinate scanning, complete the calculation and filling of all points, and then you can get the corrected image.

[0063] In this embodiment, the value range of z in step 2 is (D, D+L); dL is the axial division, the unit is mm; θ is the radial division, the value range is (0, 2π), the unit is radian.

[0064] In this embodiment, K in step three is a camera coefficient, a constant.

[0065] In this embodiment, in step 4, xoffset=opx*K / z, Yoffset=-opy*K / z, where K is a camera coefficient, a constant.

[0066] The beneficial effect of the invention is that the method for correcting video image distortion caused by eccentricity of a downhole imaging instrument can perform eccentricity correction of downhole images obtained by visualization detection of casing damage defects in oil and gas wells to obtain a better observation angle and perform subsequent processing.

[0067] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for correcting video image distortion caused by eccentricity of a downhole imaging instrument, characterized in that: The specific steps include: Step 1: Use a camera of a visual inspection device to shoot a video in the casing string to perform visual inspection of the casing string, and set the distance between the target pipe section with a length of L and the camera to D, and the diameter of the pipe string to Od; Step 2: Perform three-dimensional grid processing on the target string. The coordinates of all points on the grid are expressed as a matrix g (x, y, z). The x-axis and y-axis are circumferential directions, and the z-axis is the axial direction. The calculation formula of the point coordinates is as follows: z=D+dL, x=Od / 2*cos(θ), y = Od / 2*sin(θ); Among them, the value range of z is (D, D+L); dL is the axial indexing, the unit is mm; θ is the radial indexing, the value range is (0, 2π), the unit is radian; Step 3: When the camera and the pipe are coaxial, the center of the pipe Ot coincides with the center of the camera Op in the xy plane coordinates, the coordinate point is (0, 0), the image of the target pipe section is a concentric ring, and the coordinates of the grid point in the image coordinate system are: R=K*Od / 2 / z, x=R*cos(θ)+W / 2, y=-R*sin(θ)+H / 2; Where K is the camera coefficient, a constant; Step 4: When the camera and the pipe are coaxial but not concentric, the coordinates of the camera center Op in the xy plane are (opx, opy), the image of the target pipe section is an eccentric ring, and the coordinates of the grid points in the image coordinate system are: x=R*cos(θ)+W / 2+xoffset, y=-R*sin(θ)+H / 2+yoffset; Step 5: Perform eccentric image correction processing according to the models of step 3 and step 4. Use the eccentric image actually captured by the visualization detection device, image width W, height H, center coordinates O (H / 2, W / 2), draw an eccentric three-dimensional model on the image, perform model matching, and obtain the radius rc of the area to be corrected through model matching according to the characteristics of the string image. In the image coordinate system, the center coordinates are (H / 2+oty, W / 2+otx), the camera center coordinates are (H / 2+opy, W / 2+opx), and the corrected image size is 2rc*2rc, the image center coordinates are (rc, rc), and the distance between the point (x, y) and the image center (rc, rc) in the circular area of ​​the corrected image is: r=sqrt((x-rc)^2+(y-rc)^2); Calculation of the offset of the circle with radius r in the original image relative to the center (H / 2, W / 2) of the original image ox=opx-(opx-otx)*r / rc, oy=opy-(opy-oty)*r / rc, The coordinates (x1, y1) of the pixel with coordinates (x, y) in the corrected image in the original image are calculated by the following formula: x1=x-rc+W / 2+ox, y1=y-rc+H / 2+oy, Among them, xoffset = opx*K / z, Yoffset = -opy*K / z, where K is the camera coefficient, a constant; Carry out coordinate scanning, complete the calculation and filling of all points, and then you can get the corrected image.

Citation Information

Patent Citations

  • Automatic non-destructive testing method for internal wall of binocular vision pipeline

    CN102135236A

  • Directional boring device and method for calibrating same

    CN109790740A

  • Method for carrying out eccentricity correction and expansion transformation on visual detection video in pipe

    CN110378884A

  • Distorted image correction device and method

    JP2011054008A

  • Pipe Damage Assessment System and Method

    US20160252481A1