Full-circle measurement system and method for internal threads of oil pipes based on mirror structured light
The construction of a three-dimensional rotation measurement model through mirror structured light technology solves the problem of insufficient accuracy in the existing internal thread measurement technology, achieving high-precision reconstruction of the full circumferential morphology of the internal thread of the oil pipe and accurate measurement of the thread geometric parameters.
Patent Information
- Application Number
- CN202311779111.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-12-22
AI Technical Summary
The existing internal thread measurement technology lacks theoretical research, resulting in insufficient theory, authenticity and reliability of high-precision measurement. It is difficult to accurately reproduce the full circumferential morphology of the internal thread, which affects the quality inspection results of the internal thread of the oil pipe.
A full-circumference measurement system for the internal threads of oil pipes based on mirror-structured light is used. Through plane reflection prisms, line lasers, lenses, industrial cameras and rotating electronic control platforms, a three-dimensional rotation measurement model of mirror-structured light is constructed to realize the full-circumferential morphology of internal threads of oil pipes. High-precision reconstruction.
It achieves high-precision splicing and accurate reproduction of the entire circumference of the internal thread, improves the integrated calculation of measurement of thread geometric parameters, and improves the theoretical basis and reliability of measurement.
Smart Images

Figure CN117450953B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of oil and gas equipment detection, and in particular relates to a full-circumference measurement system and a measurement method for an oil pipe internal thread based on mirror structured light. Background Art
[0002] As key equipment for oil and gas transportation, oil pipes are widely used in the transportation of various liquids and gases in oilfield wells (such as oil, natural gas, mud, etc.), and therefore play an irreplaceable role in the production process of oil and gas field enterprises. However, affected by the harsh working conditions such as complex load impacts in the well and corrosion of mud chemical media, oil pipes are prone to failures such as disengagement, slippage, thread breakage, and sticking, which directly affect the normal production of oil and gas field enterprises, and in severe cases, cause equipment losses and damage to the ecosystem.
[0003] The internal thread is the basic structure of the oil pipe connection and is also the part of the oil pipe that is most susceptible to damage. In order to ensure the safe production of oil and gas field enterprises, it is necessary to conduct a comprehensive inspection of the internal thread morphology of the oil pipe and measure its thread geometric parameters with high precision to achieve refined diagnosis and healthy operation and maintenance of the oil pipe. In other words, comprehensive quality inspection of the internal thread of the oil pipe has become indispensable.
[0004] Among them, technicians in this field have made many technical attempts. For example, patent CN104567722B "A method for detecting internal threads" invented by Xie Zhimei and others of Chengdu Shiwei Internet of Things Technology Co., Ltd. invented a method for detecting internal threads using a reflector-assisted line laser vision system. This method installs the camera and the line laser on the same side of the upper end of the internal thread pipe mouth, and inserts two parallel reflectors into the internal thread, so that the camera can collect the laser image projected on the surface of the internal thread, and finally achieves full-circle measurement through the rotation of the threaded part. In addition, patent CN112815866A "An internal thread detector based on laser profile scanning and its detection method" invented by Jiang Yueqiu and others of Shenyang Ligong University proposed a method for detecting internal threads using a laser profile scanner and a reflector, in which the laser emitted by the laser profile scanner is projected onto the internal thread through an optical reflector, and then the motor drives the measurement system to rotate 360° to complete the full-circle data collection and detection of the internal thread.
[0005] However, after further research, the inventors found that the above-mentioned existing internal thread measurement technology focuses more on the study of system or tooling structure details, and lacks theoretical research on visual measurement models. As a result, the theoretical, authenticity and reliability of high-precision measurement of internal threads are insufficient, and it is difficult to splice with high precision and accurately reproduce the full circumferential morphology of the internal threads, which affects the comprehensive quality inspection results of the internal threads of the oil pipe, and needs to be solved urgently. Summary of the invention
[0006] The present invention provides a full-circle measurement system and method for the internal thread of an oil pipe based on mirror structured light. In response to the demand for full-circle detection of the internal thread of an oil pipe, the scheme proposes a three-dimensional rotation measurement theory of mirror structured light, derives the corresponding three-dimensional rotation measurement model, accurately constructs the conversion relationship between the pixel information of the sequence image and the actual contour of the internal thread, and then achieves high-precision reconstruction of the full-circle morphology of the internal thread of the oil pipe through the constructed full-circle measurement system. The internal thread measurement method provided by the present invention has a simple calculation process, a complete measurement theory, and strong innovation. It can accurately and quickly reproduce the full-circle morphology of the internal thread, and realize comprehensive quality inspection of the internal thread and efficient measurement of multi-parameter integration.
[0007] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0008] The present invention provides a full-circle measurement system for internal threads of oil pipes based on mirror structured light, comprising: a plane reflection prism, a line laser, a lens, an industrial camera, a rotating electric control platform, a support, a linear electric control guide rail and a fixture;
[0009] Wherein, the rotating electric control platform is fixedly mounted on the linear electric control guide rail through the support member;
[0010] A rotating disk and an extension arm are provided on the rotating electric control platform; a lens and an industrial camera are installed on the rotating disk and rotate with the rotating disk; a line laser is fixed on the extension arm through a clamp, and a plane reflection prism is fixed on the extension arm in the forward direction of the line laser projected by the line laser.
[0011] Preferably, the fixture is used to fix and adjust the advancing direction of the line laser projected by the line laser to be coaxial with the rotation axis of the system.
[0012] Preferably, the plane reflecting prism is used to bifurcate and reflect the light path of the line laser projected by the line laser and the imaging of the industrial camera through the reflecting surface and vertically transfer it to the two sides of the inside of the oil pipe to be measured.
[0013] On the other hand, the present invention provides a method for measuring the entire circumference of an internal thread of an oil pipe based on mirror structured light, comprising the following steps:
[0014] Step 1: construct a mirror structured light three-dimensional rotation coordinate transformation model; wherein the mirror structured light is formed by the optical path transmitted between the plane reflection prism, the line laser, the lens, and the industrial camera in the oil pipe internal thread full-circumference measurement system based on mirror structured light provided by the present invention;
[0015] Step 2: Derive the mirror structured light three-dimensional rotation measurement model;
[0016] Step 3: Based on the mirror structured light three-dimensional rotation measurement model obtained in step 2 and combined with the system rotation angle, the three-dimensional point cloud of the entire circumference of the internal thread of the oil pipe is reconstructed; the three-dimensional point cloud of the entire circumference of the internal thread of the oil pipe can be used to calculate the thread parameters of each thread section of the internal thread of the oil pipe.
[0017] Preferably, the step 1 can be specifically described as:
[0018] Take the focus center of the industrial camera as the origin O C , establish the camera coordinate system with the optical axis as the Z axis O C -X C Y C Z C ;
[0019] The intersection of the optical axis of the industrial camera and the plane where the line laser projected by the line laser is located O R As the origin, the rotation axis of the oil pipe to be measured is the Z axis, and a point cloud rotation coordinate system is established; and during the rotation process, the point cloud rotation coordinate system of each position is converted into a point cloud rotation coordinate system cluster O i -X R Y R Z R ; Where i represents the point cloud rotation coordinate system with different rotation angles;
[0020] Take a certain point of the rotating axis of the oil pipe to be measured as the origin O G , taking the rotation axis of the oil pipe to be measured as the Z axis, establish the global point cloud coordinate system O G -X G Y G Z G ; The global point cloud coordinate system O G -X G Y G Z G Used as a reference for splicing and rebuilding internal threads of oil pipes;
[0021] According to the camera coordinate system O C -X CY C Z C The corresponding rotation angle The point cloud rotation coordinate system at O θ -X R Y R Z R The positional relationship between them is used to establish the coordinate transformation relationship expression between the two coordinate systems:
[0022] Formula (1);
[0023] In formula (1), , is the rotation matrix and translation matrix between the two coordinate systems; and Respective spatial points in the camera coordinate system O C -X C Y C Z C And point cloud rotation coordinate system O θ -X R Y R Z R The coordinates below.
[0024] Preferably, the step 2 can be specifically described as:
[0025] Derived camera coordinate system O C -X C Y C Z C 3D measurement model of single cross-section profile of internal thread of oil pipe;
[0026] The camera coordinate system O C -X C Y C Z C The three-dimensional measurement model of the single-section profile of the inner thread of the lower oil pipe is combined with the mirror structured light three-dimensional rotation coordinate transformation model to construct a mirror structured light three-dimensional rotation measurement model.
[0027] Preferably, the camera coordinate system is derived O C -X C Y C Z C The specific process of the 3D measurement model of the single-section profile of the internal thread of the lower oil pipe can be described as follows:
[0028] Assume the derived camera coordinate system O C -X C Y C Z C Any plane below and rays The vector expressions are:
[0029] Formula (2);
[0030] Formula (3);
[0031] In formulas (2) and (3), for The normal vector of for Any point on for The direction vector of for Up a little bit, is a real number, then and Intersection Point ,satisfy:
[0032] Formula (4);
[0033] Based on the above line-plane intersection points, the line laser plane projected by the line laser is solved to satisfy:
[0034] Formula (5);
[0035] In formula (5), , , The camera coordinate system O C -X C Y C Z CThe three-dimensional components of the normal vector of the laser plane, is the distance component of the laser plane;
[0036] The camera coordinate system O C -X C Y C Z C Any point on the lower laser plane and the plane normal vector are recorded as: and ; Let pixel The points mapped on the surface of the calibration plate are ;by and the optical center of industrial cameras Constructing the ray equation , then the corresponding direction vector satisfies: ; Among them, the camera coordinate system O C -X C Y C Z C The optical center of the industrial camera is ;
[0037] By solving and The intersection of The virtual image point of the internal thread profile in the corresponding plane reflecting prism Coordinates; where contour points It can be expressed as:
[0038] Formula (6);
[0039] Among them, for the solution point , introduce the homography transformation matrix of the industrial camera imaging model :First solve the world coordinate system Coordinates , and then through the industrial camera external parameter matrix ,conduct and The conversion between , thus solving ;
[0040] Based on the above derivation process, the camera coordinate system is established O C -X C Y C ZC Pixels of the thread image below To the virtual image point in the plane reflecting prism The solution link satisfies:
[0041] Formula (7);
[0042] In formula (7), is the internal parameter matrix of the industrial camera, is the image scale factor;
[0043] Introducing the Specular Reflection Model , restore the virtual image point in the mirror to the specific real image point of the internal thread; where, In the formula It refers to the unit normal vector of the reflecting surface of the plane reflecting prism, satisfying ; is the camera origin O C The distance to the reflecting surface of the flat reflecting prism;
[0044] In summary, the three-dimensional measurement model of the single-section profile of the internal thread of the oil pipe can be derived, which satisfies: Formula (8).
[0045] Preferably, the mirror structured light three-dimensional rotation measurement model is constructed to satisfy:
[0046] Formula (9);
[0047] In formula (9), is the global point cloud coordinate system O G -X G Y G Z G The coordinates below.
[0048] The present invention provides a full-circle measurement system and measurement method for internal threads of oil pipes based on mirror structured light. The full-circle measurement system for internal threads of oil pipes based on mirror structured light includes structural units such as a plane reflection prism, a line laser, a lens, an industrial camera, a rotating electric control platform, a support, a linear electric control guide rail, and a fixture; the full-circle measurement method for internal threads of oil pipes based on mirror structured light includes the following steps: step 1: constructing a three-dimensional rotation coordinate conversion model of mirror structured light; step 2: deriving a three-dimensional rotation measurement model of mirror structured light; step 3: based on the three-dimensional rotation measurement model of mirror structured light obtained in step 2, combined with the rotation angle of the system, realizing the reconstruction of the three-dimensional point cloud of the full circumference of the internal threads of the oil pipe, etc. Compared with the prior art, the present invention having the above structural features and step features has at least the following beneficial effects: the technical solution provided by the present invention realizes the accurate splicing of the axial cross-section profile of the internal threads of the oil pipe reconstructed by the measurement system each time by constructing a three-dimensional rotation coordinate conversion model of mirror structured light; on this basis, a complete three-dimensional rotation measurement model of mirror structured light is derived, realizing the high-precision restoration of the full circumference morphology of the internal threads of the oil pipe from the two-dimensional image sequence. Compared with the existing internal thread measurement methods, it has a more comprehensive theoretical basis, and realizes high-precision splicing and accurate reproduction of the full-circle morphology of the internal thread and integrated calculation of thread geometric parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the following drawings:
[0050] Figure 1 A schematic diagram of the structure of the full-circle measurement system for internal threads of oil pipes based on mirror structured light provided by the present invention;
[0051] Figure 2 for Figure 1 The mirror structured light three-dimensional rotation coordinate transformation model diagram corresponding to the full-circle measurement system of the internal thread of the oil pipe shown;
[0052] Figure 3 Relying on Figure 4 The full-circle reconstruction result and partial magnified image of the internal thread of the oil pipe formed by the full-circle measurement method of the internal thread of the oil pipe shown;
[0053] Figure 4 A schematic flow chart of the method for full-circumference measurement of internal threads of oil pipes based on mirror structured light provided by the present invention.
[0054] Reference numerals:
[0055] 1. Plane reflection prism; 2. Line laser; 3. Lens; 4. Industrial camera; 5. Rotating electric control platform; 6. Support; 7. Linear electric control guide; 8. Fixture; 9. Internal thread of oil pipe; 10. System rotation axis; 11. Global point cloud coordinate system O G -X G Y G Z G ; 12. Camera coordinate system O C -X C Y C Z C ; 13. Point cloud rotation coordinate system cluster O i -X R Y R Z R ; 14. Laser plane. DETAILED DESCRIPTION
[0056] The present invention provides a full-circle measurement system and method for the internal thread of an oil pipe based on mirror structured light. In response to the demand for full-circle detection of the internal thread of an oil pipe, the scheme proposes a three-dimensional rotation measurement theory of mirror structured light, derives the corresponding three-dimensional rotation measurement model, accurately constructs the conversion relationship between the pixel information of the sequence image and the actual contour of the internal thread, and then achieves high-precision reconstruction of the full-circle morphology of the internal thread of the oil pipe through the constructed full-circle measurement system. The internal thread measurement method provided by the present invention has a simple calculation process, a complete measurement theory, and strong innovation. It can accurately and quickly reproduce the full-circle morphology of the internal thread, and realize comprehensive quality inspection of the internal thread and efficient measurement of multi-parameter integration.
[0057] Specifically, the structural features of the oil pipe internal thread full-circle measurement system based on mirror structured light provided by the present invention are explained as follows:
[0058] like Figure 1 As shown, it includes: a plane reflection prism 1, a line laser 2, a lens 3, an industrial camera 4, a rotating electric control platform 5, a support 6, a linear electric control guide rail 7 and a fixture 8. Specifically, the rotating electric control platform 5 is fixedly mounted on the linear electric control guide rail 7 through the support 6. A rotating disk and an extension arm are provided on the rotating electric control platform 5. Among them, the lens 3 and the industrial camera 4 are installed on the rotating disk and rotate with the rotating disk. The line laser 2 is fixed on the extension arm through the fixture 8, and the plane reflection prism 1 is fixedly set on the extension arm in the forward direction of the line laser projected by the line laser 2.
[0059] Further, such as Figure 2 As shown, Figure 2 for Figure 1 The mirror structured light three-dimensional rotation coordinate transformation model diagram corresponding to the full-circle measurement system of the internal thread of the oil pipe based on the mirror structured light is shown. In this process, the coordinate system established on the focus center of the industrial camera 4 is specifically marked as the camera coordinate system O C -X C Y C Z C , which is the reference of the point cloud reconstructed by the imaging of each angle of the visual system, rotates with the industrial camera 4 during the rotation of the visual system. The coordinate system established as the origin is recorded as the global point cloud coordinate system, and all point cloud rotation coordinate systems constitute the point cloud rotation coordinate system cluster O i - X R Y R Z R Finally, a global point cloud coordinate system is established at another fixed point on the system rotation axis 10 O G -X G Y G Z G , which is used as a reference for the full circumference reconstruction of the internal threads of the oil pipe and is always fixed to the internal threads of the oil pipe.
[0060] In addition, as a preferred embodiment of the present invention, the fixture 8 is used to fix and adjust the advancing direction of the line laser projected by the line laser 2 to be coaxial with the system rotation axis 10. And the plane reflection prism 1 is used to bifurcate and reflect the light path of the line laser projected by the line laser 2 and the imaging of the industrial camera 4 through the reflection surface and vertically transfer it to the two sides of the inside of the oil pipe to be measured.
[0061] Based on the above structural features, the full-circumference measurement method of the internal thread of the oil pipe based on mirror structured light provided by the present invention is further explained as follows.
[0062] Specifically, the present invention provides a method for measuring the full circumference of the internal thread of an oil pipe based on mirror structured light. It is worth noting that the results of the full circumference reconstruction of the internal thread of an oil pipe (2-7 / 8 inches commonly used in oil fields) and the partial magnified image formed by the full circumference measurement method of the internal thread of an oil pipe provided by the present invention can be specifically referred to as follows Figure 3 shown.
[0063] The full circumference measurement method of the internal thread of the oil pipe is as follows Figure 4 As shown, the specific steps include:
[0064] Step 1: Construct a mirror structured light three-dimensional rotation coordinate transformation model.
[0065] It is worth noting that before proceeding to step one, the mirror structured light rotation measurement system needs to be built first. In this specific embodiment, in order to ensure the high measurement accuracy and high-speed imaging of the mirror structured light rotation measurement system, an industrial camera with a resolution of 1024×960 pixels and a frame rate of 240 frames is selected; and it is equipped with a 15mm fixed-focus lens. Then, a 40×40mm plane reflection prism and a 432nm blue light laser that can more easily highlight the internal thread profile are selected. In addition, a rotating electronic control platform with a 42 series two-phase high-precision stepper motor is selected, and the object to be measured is selected to use the 2-7 / 8-inch specification oil pipe internal thread 9 commonly used in oil fields. The remaining system components are precision-machined parts.
[0066] After the mirror structured light rotation measurement system is built, the mirror structured light three-dimensional rotation coordinate transformation model is further constructed.
[0067] Among them, step one can be specifically described as:
[0068] Take the focus center of the industrial camera as the origin O C , establish the camera coordinate system with the optical axis as the Z axis O C -X C Y C Z C .
[0069] The intersection of the optical axis of the industrial camera and the plane where the line laser projected by the line laser is located O R As the origin, the rotation axis of the oil pipe to be measured is the Z axis, and a point cloud rotation coordinate system is established; and during the rotation process, the point cloud rotation coordinate system of each position is converted into a point cloud rotation coordinate system cluster O i -X R Y R Z R ; Where i represents the point cloud rotation coordinate system with different rotation angles.
[0070] Take a certain point of the rotating axis of the oil pipe to be measured as the origin O G, taking the rotation axis of the oil pipe to be measured as the Z axis, establish the global point cloud coordinate system O G -X G Y G Z G ; The global point cloud coordinate system O G -X G Y G Z G Used as a reference for splicing and rebuilding internal threads of tubing.
[0071] According to the camera coordinate system O C -X C Y C Z C The corresponding rotation angle The point cloud rotates the coordinate system O θ -X R Y R Z R The positional relationship between them is used to establish the coordinate transformation relationship expression between the two coordinate systems:
[0072] Formula (1);
[0073] In formula (1), , is the rotation matrix and translation matrix between the two coordinate systems; and Respective spatial points in the camera coordinate system O C -X C Y C Z C And point cloud rotation coordinate system O θ -X R Y R Z R The coordinates below.
[0074] Substituting the system structure parameters used in the above specific embodiments into equation (1), the camera coordinate system can be calculated asO C -X C Y C Z C The corresponding rotation angle Rotate the coordinate system of the point cloud O θ -X R Y R Z R The conversion relationship between them, that is, formula (1) is specifically: .
[0075] It is worth noting that each point cloud rotates the coordinate system O θ -X R Y R Z R With the global point cloud coordinate system O G -X G Y G Z G There is only a rotation angle around the Z axis. and a fixed translation distance in the Z direction .
[0076] In order to ensure the tightness of the reconstruction of the full-circle morphology of the internal thread of the oil pipe, the rotation step angle is further set. 1°, , then the global point cloud coordinate system O G -X G Y G Z G And point cloud rotation coordinate system O θ -X R Y R Z R The conversion matrix between .
[0077] After completing step 1, further proceed to step 2. Step 2: Derive the mirror structured light three-dimensional rotation measurement model.
[0078] Specifically, step 2 can be described in the following two parts:
[0079] Derived camera coordinate system O C -X C Y C Z C 3D measurement model of single cross-section profile of internal thread of oil pipe;
[0080] The camera coordinate system O C -X C Y C Z C The three-dimensional measurement model of the single-section profile of the inner thread of the lower oil pipe is combined with the mirror structured light three-dimensional rotation coordinate transformation model to construct a mirror structured light three-dimensional rotation measurement model.
[0081] Among them, the camera coordinate system is derived O C -X C Y C Z C The specific process of the 3D measurement model of the single-section profile of the internal thread of the lower oil pipe can be described as follows:
[0082] Assume the derived camera coordinate system O C -X C Y C Z C Any plane below and rays The vector expressions are:
[0083] Formula (2);
[0084] Formula (3);
[0085] In formulas (2) and (3), for The normal vector of for Any point on for The direction vector of for Up a little bit, is a real number, then and Intersection Point ,satisfy: Formula (4);
[0086] Based on the above line-plane intersection points, the line laser plane projected by the line laser is solved to satisfy:
[0087] Formula (5);
[0088] In formula (5), , , The camera coordinate system O C -X C Y C Z C The three-dimensional components of the normal vector of the laser plane, is the distance component of the laser plane;
[0089] The camera coordinate system O C -X C Y C Z C Any point on the lower laser plane and the plane normal vector are recorded as: and ; Let pixel The points mapped on the surface of the calibration plate are ;by and the optical center of industrial cameras Constructing the ray equation , then the corresponding direction vector satisfies: ; Among them, the camera coordinate system O C -X C Y C Z C The optical center of the industrial camera is ;
[0090] By solving and The intersection of The virtual image point of the internal thread profile in the corresponding plane reflecting prism Coordinates; where contour points It can be expressed as:
[0091] Formula (6);
[0092] Among them, for the solution point , introduce the homography transformation matrix of the industrial camera imaging model :First solve the world coordinate system Coordinates , and then through the industrial camera external parameter matrix ,conduct and The conversion between , thus solving ;
[0093] Based on the above derivation process, the camera coordinate system is established O C -X C Y C Z C Pixels of the thread image below To the virtual image point in the plane reflecting prism The solution link satisfies:
[0094] Formula (7);
[0095] In formula (7), is the internal parameter matrix of the industrial camera, is the image scale factor;
[0096] Introducing the Specular Reflection Model , the virtual image point in the mirror (i.e., the virtual image point ) is restored to the specific real image point of the internal thread (the real image point can be expressed as: );in, In the formula It refers to the unit normal vector of the reflecting surface of the plane reflecting prism, satisfying ; is the camera origin O C The distance to the reflecting surface of the flat reflecting prism;
[0097] In summary, the three-dimensional measurement model of the single-section profile of the internal thread of the oil pipe can be derived, which satisfies: Formula (8).
[0098] The mirror structured light three-dimensional rotation measurement model is constructed to meet the following requirements:
[0099] Formula (9);
[0100] In formula (9), is the global point cloud coordinate system O G -X G Y G Z G The coordinates below.
[0101] It should be noted that according to the relative position relationship between the built coordinate systems and the various parts of the system, the laser plane is calibrated in the camera coordinate system. O C -X C Y C Z C The parameters below are calculated as , , , , then we can deduce , , .
[0102] Then, using the traditional camera calibration method, the homography transformation matrix is obtained to satisfy: ;
[0103] The camera extrinsic matrix satisfies: ;
[0104] And the camera extrinsic matrix satisfies: Thus, the conversion relationship between the pixel coordinates and the virtual image space points of the inner thread of the oil pipe in the plane reflection prism can be established to accurately solve the virtual image points of the inner thread of the oil pipe. .
[0105] According to the relative position relationship between the plane reflection prism and the industrial camera, the direction vector of the plane reflection prism can be further calculated as: , , and further determine the specular reflection model to satisfy:
[0106] .
[0107] After completing step two, proceed to step three.
[0108] Step 3: Based on the mirror structured light 3D rotation measurement model obtained in step 2, combined with the system rotation angle, the 3D point cloud of the entire circumference of the internal thread of the oil pipe is reconstructed. The 3D point cloud of the entire circumference of the internal thread of the oil pipe can be used to calculate the thread parameters of each thread section of the internal thread of the oil pipe.
[0109] It should be pointed out that by using the mirror structured light 3D rotation measurement model and the above model parameters, the 3D information of the laser profile of the axial cross-section line of the internal thread of the oil pipe can be accurately solved, and the 3D point cloud reconstruction of the full circumference of the internal thread of the oil pipe can be realized in 1° step. Based on the full circumference 3D point cloud of the internal thread of the oil pipe, the comprehensive quality evaluation of the full circumference morphology of the internal thread of the oil pipe can be further realized (that is, a comprehensive quality inspection of the internal thread of the oil pipe can be realized). Figure 3 As shown, Figure 3 The three-dimensional point cloud of the entire circumference of the internal thread of the oil pipe shows no obvious deformation, local damage (tooth peak collapse and tooth valley cracking), thread discontinuity and other defects in the thread.
[0110] On this basis, any cross section can be selected to calculate the internal thread parameters. According to the definition of internal thread parameters in the national standard, the cross-section point cloud of the internal thread of the oil pipe when the system rotation angle is 37° is selected for geometric parameter calculation. The pitch, taper and tooth height are calculated to be 25.417mm, 61.264mm / m and 1.410mm respectively. It can be determined that the internal thread of the oil pipe is qualified.
[0111] The present invention provides a full-circle measurement system and measurement method for internal threads of oil pipes based on mirror structured light. The full-circle measurement system for internal threads of oil pipes based on mirror structured light includes structural units such as a plane reflection prism, a line laser, a lens, an industrial camera, a rotating electric control platform, a support, a linear electric control guide rail, and a fixture; the full-circle measurement method for internal threads of oil pipes based on mirror structured light includes the following steps: step 1: constructing a three-dimensional rotation coordinate conversion model of mirror structured light; step 2: deriving a three-dimensional rotation measurement model of mirror structured light; step 3: based on the three-dimensional rotation measurement model of mirror structured light obtained in step 2, combined with the rotation angle of the system, realizing the reconstruction of the three-dimensional point cloud of the full circumference of the internal threads of the oil pipe, etc. Compared with the prior art, the present invention having the above structural features and step features has at least the following beneficial effects: the technical solution provided by the present invention realizes the accurate splicing of the axial cross-section profile of the internal threads of the oil pipe reconstructed by the measurement system each time by constructing a three-dimensional rotation coordinate conversion model of mirror structured light; on this basis, a complete three-dimensional rotation measurement model of mirror structured light is derived, realizing the high-precision restoration of the full circumference morphology of the internal threads of the oil pipe from the two-dimensional image sequence. Compared with the existing internal thread measurement methods, it has a more comprehensive theoretical basis, and realizes high-precision splicing and accurate reproduction of the full-circle morphology of the internal thread and integrated calculation of thread geometric parameters.
[0112] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A full-circle measurement method for internal threads of oil pipes based on mirror structured light, characterized in that: The steps include: Step 1: Construct a mirror structured light three-dimensional rotation coordinate conversion model; wherein the mirror structured light is formed by the optical path transmitted between the plane reflection prism, the line laser, the lens, and the industrial camera in the full-circumference measurement system of the internal thread of the oil pipe based on the mirror structured light; the full-circumference measurement system of the internal thread of the oil pipe based on the mirror structured light includes: a plane reflection prism, a line laser, a lens, an industrial camera, a rotating electric control platform, a support, a linear electric control guide rail, and a fixture; Wherein, the rotating electric control platform is fixedly mounted on the linear electric control guide rail through the support member; A rotating disk and an extension arm are provided on the rotating electric control platform; the lens and the industrial camera are installed on the rotating disk and rotate with the rotating disk; the line laser is fixed on the extension arm through a clamp, and the plane reflection prism is fixed on the extension arm in the forward direction of the line laser projected by the line laser; The fixture is used to fix and adjust the advancing direction of the line laser projected by the line laser to be coaxial with the rotation axis of the system; The plane reflection prism is used to bifurcate and reflect the line laser projected by the line laser and the light path of the industrial camera imaging through the reflection surface and vertically transfer it to the two sides of the inside of the oil pipe to be measured; The step 1 can be specifically described as: Take the focus center of the industrial camera as the origin O C , establish the camera coordinate system with the optical axis as the Z axis O C -X C Y C Z C ; The intersection of the optical axis of the industrial camera and the plane where the line laser projected by the line laser is located O R As the origin, the rotation axis of the oil pipe to be measured is the Z axis, and a point cloud rotation coordinate system is established; and during the rotation process, the point cloud rotation coordinate system of each position is converted into a point cloud rotation coordinate system cluster O i -X R Y R Z R ; Where i represents the point cloud rotation coordinate system with different rotation angles; Take a certain point of the rotating axis of the oil pipe to be measured as the origin O G , taking the rotation axis of the oil pipe to be measured as the Z axis, establish the global point cloud coordinate system O G -X G Y G Z G ; The global point cloud coordinate system O G -X G Y G Z G Used as a reference for splicing and rebuilding internal threads of oil pipes; Among them, each point cloud rotates the coordinate system O θ -X R Y R Z R With the global point cloud coordinate system O G -X G Y G Z G There is only a rotation angle around the Z axis. and a fixed translation distance in the Z direction ; According to the camera coordinate system O C -X C Y C Z C The corresponding rotation angle The point cloud rotation coordinate system at O θ -X R Y R Z R The positional relationship between them is used to establish the coordinate transformation relationship expression between the two coordinate systems: Formula (1); In formula (1), , is the rotation matrix and translation matrix between the two coordinate systems; and Respective spatial points in the camera coordinate system O C -X C Y C Z C And point cloud rotation coordinate system O θ -X R Y R Z R The coordinates below; Step 2: Derive the mirror structured light three-dimensional rotation measurement model; The step 2 can be specifically described as: Derived camera coordinate system O C -X C Y C Z C 3D measurement model of single cross-section profile of internal thread of oil pipe; The camera coordinate system O C -X C Y C Z C The 3D measurement model of the single cross-section profile of the internal thread of the lower oil pipe is combined with the 3D rotation coordinate transformation model of the mirror structured light to construct the 3D rotation measurement model of the mirror structured light. Step 3: Based on the mirror structured light three-dimensional rotation measurement model obtained in step 2 and combined with the system rotation angle, the three-dimensional point cloud of the entire circumference of the internal thread of the oil pipe is reconstructed; the three-dimensional point cloud of the entire circumference of the internal thread of the oil pipe can be used to calculate the thread parameters of each thread section of the internal thread of the oil pipe.
2. The method for full-circle measurement of internal threads of oil pipes based on mirror structured light according to claim 1 is characterized in that: The construction obtains a mirror structured light three-dimensional rotation measurement model that satisfies: Formula (9); In formula (9), is the global point cloud coordinate system O G -X G Y G Z G The coordinates below.
