Pipeline deformation detection method, system, equipment and medium
By performing optimal circle fitting on the pipeline mark image, the problems of high pipeline deformation detection accuracy, efficiency and cost in the existing technology are solved, and high-precision, low-cost real-time detection is achieved.
Patent Information
- Application Number
- CN202410861431.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-25
AI Technical Summary
Existing pipeline deformation detection methods have low detection accuracy and efficiency, poor real-time performance, and high implementation costs.
By obtaining the pipeline standard circle information and the pipeline mark image to be detected, the point information is collected, the optimal circle is fitted, the fitting circle is obtained, and deformation detection is performed based on the difference between the fitting circle and the standard circle.
The detection accuracy and efficiency of pipeline deformation detection are improved, the implementation cost is reduced, and real-time detection is achieved.
Smart Images

Figure CN118836786A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of pipeline detection, and in particular to a pipeline deformation detection method, system, equipment and medium. Background Art
[0002] With the continuous development of society, pipelines used to transport various types of resource materials are becoming more and more common in all walks of life. Among them, pipeline deformation detection is one of the inspection items of pipeline health inspection, which has received people's attention.
[0003] At present, traditional pipeline deformation detection methods can be roughly divided into two categories. The first detection method is mainly based on a ruler to build a deformation measuring device corresponding to the target pipeline, and the target pipeline is deformed by the deformation measuring device. This type of detection method has low detection accuracy and efficiency, and its real-time performance is not satisfactory. The second detection method is mainly based on a three-dimensional reconstruction matching algorithm to analyze and identify the surface image of the target pipeline, so as to realize the deformation detection of the target pipeline. This type of detection method is technically difficult and has a high implementation cost.
[0004] Therefore, the problems existing in the prior art still need to be solved and optimized. Summary of the invention
[0005] The purpose of the present invention is to solve one of the technical problems existing in the related art to at least a certain extent.
[0006] To this end, an object of an embodiment of the present invention is to provide a pipeline deformation detection method, which can effectively improve the detection accuracy, detection efficiency and real-time performance of pipeline deformation detection and reduce the implementation cost of pipeline deformation detection.
[0007] Another object of an embodiment of the present application is to provide a pipeline deformation detection system.
[0008] In order to achieve the above technical objectives, the technical solutions adopted by the embodiments of the present application include:
[0009] In a first aspect, an embodiment of the present application provides a pipeline deformation detection method, comprising:
[0010] Obtain pipeline standard circle information and pipeline marker image to be detected;
[0011] Collecting point information of the pipeline marking image to obtain marking point information, wherein the marking point information is used to record corner point coordinate information and posture information of the pipeline marking;
[0012] Performing optimal circle fitting on the marking point information to obtain a pipeline fitting circle, wherein the sum of square errors between the fitting coordinate points in the pipeline fitting circle and the corresponding pixel points in the marking point information is minimal;
[0013] According to the pipeline fitting circle, deformation detection is performed on the pipeline standard circle information to obtain a pipeline deformation detection result.
[0014] In addition, the pipeline deformation detection method according to the above embodiment of the present application may also have the following additional technical features:
[0015] Further, in one embodiment of the present application, the collecting the point information of the pipeline marking image to obtain the marking point information includes:
[0016] Performing mark detection on the pipeline mark image to obtain corner point coordinate information corresponding to the pipeline mark;
[0017] According to the corner point coordinate information, the pose of the pipeline marking image is estimated to obtain the pose information corresponding to the pipeline marking;
[0018] The corner point coordinate information and the posture information are integrated to obtain the marking point information.
[0019] Further, in one embodiment of the present application, performing optimal circle fitting on the marking point information to obtain a pipeline fitting circle, wherein the sum of square errors between the fitting coordinate points in the pipeline fitting circle and the corresponding pixel points in the marking point information is minimal, comprises:
[0020] According to the corner point coordinate information, a plurality of pixel point coordinates are obtained, each pixel point coordinate corresponds to a pixel point of the pipeline mark;
[0021] According to the posture information, obtaining the mark center coordinates corresponding to the pipeline mark;
[0022] According to the center coordinates of the marker, all the pixel coordinates are screened for fitting circles to obtain the pipeline fitting circle.
[0023] Further, in one embodiment of the present application, the step of performing fitting circle screening on all the pixel point coordinates according to the marker center coordinates to obtain the pipeline fitting circle includes:
[0024] Performing phase coordinate system conversion on the marker center coordinates to obtain camera relative coordinates;
[0025] According to the camera relative coordinates, constructing a fitting circle for all the pixel point coordinates to obtain a plurality of pixel fitting circles;
[0026] All the pixel fitting circles are optimally screened to obtain the pipeline fitting circle.
[0027] Further, in one embodiment of the present application, the optimal screening of all the pixel fitting circles to obtain the pipeline fitting circle includes:
[0028] Constructing a fitting error function according to the pixel fitting circle and the corresponding pixel point coordinates;
[0029] The fitting error function is optimized to a minimum value to obtain a minimum error function, and the pixel fitting circle corresponding to the minimum error function is used as the pipeline fitting circle.
[0030] Furthermore, in the embodiment of the present application, the pipeline standard circle information is subjected to deformation detection according to the pipeline fitting circle to obtain the pipeline deformation detection result:
[0031] According to the pipeline fitting circle, three-dimensional error estimation is performed on the pipeline standard circle information to obtain three-dimensional error data;
[0032] The pipeline deformation detection result is generated according to the three-dimensional error data.
[0033] Further, in one embodiment of the present application, performing three-dimensional error estimation on the pipeline standard circle information according to the pipeline fitting circle to obtain three-dimensional error data includes:
[0034] Acquire the first fitting axis coordinates, the second fitting axis coordinates and the fitting circle radius corresponding to the pipeline fitting circle, and the first standard axis coordinates, the second standard axis coordinates and the standard circle radius in the pipeline standard circle information;
[0035] According to the first fitting axis coordinates, performing a difference comparison with the first standard axis coordinates to obtain a first axis difference;
[0036] According to the second fitting axis coordinates, performing a difference comparison on the second standard axis coordinates to obtain a second axis difference;
[0037] According to the fitted circle radius, performing a difference comparison with the standard circle radius to obtain a radius difference;
[0038] constructing the three-dimensional error data according to the first axis difference, the second axis difference and the radius difference;
[0039] Among them, the direction axes corresponding to the first fitting axis coordinate, the second fitting axis coordinate and the fitting circle radius are different; the direction axis is any one of a horizontal axis, a longitudinal axis or a vertical axis; the direction axis of the first fitting axis coordinate and the first standard axis coordinate are the same; the direction axis of the second fitting axis coordinate and the second standard axis coordinate are the same; the direction axis of the fitting circle radius and the standard circle radius are the same.
[0040] In a second aspect, an embodiment of the present application provides a pipeline deformation detection system, including:
[0041] An acquisition module is used to acquire pipeline standard circle information and pipeline marking images to be detected;
[0042] An acquisition module, used to acquire point information of the pipeline marking image to obtain marking point information, wherein the marking point information is used to record corner point coordinate information and posture information of the pipeline marking;
[0043] A fitting module, used for performing optimal circle fitting on the marking point information to obtain a pipeline fitting circle, wherein the sum of square errors between the fitting coordinate points in the pipeline fitting circle and the corresponding pixel points in the marking point information is minimal;
[0044] The detection module is used to perform deformation detection on the pipeline standard circle information according to the pipeline fitting circle to obtain a pipeline deformation detection result.
[0045] In a third aspect, an embodiment of the present application further provides an electronic device, including:
[0046] at least one processor;
[0047] at least one memory for storing at least one program;
[0048] When the at least one program is executed by the at least one processor, the at least one processor implements the method of the first aspect described above.
[0049] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a program executable by a processor, and the program executable by the processor is used to implement the method of the first aspect when executed by the processor.
[0050] The advantages and benefits of the present application will be partially given in the following description, and partially become apparent from the following description, or be understood through the practice of the present application:
[0051] The embodiments of the present application disclose a pipeline deformation detection method, system, device and medium, wherein the detection method obtains pipeline standard circle information and a pipeline marking image to be detected; collects point information of the pipeline marking image to obtain marking point information, and the marking point information is used to record the corner point coordinate information and posture information of the pipeline marking; performs optimal circle fitting on the marking point information to obtain a pipeline fitting circle, and the sum of square errors between the fitting coordinate points in the pipeline fitting circle and the corresponding pixel points in the marking point information is minimized; and performs deformation detection on the pipeline standard circle information according to the pipeline fitting circle to obtain a pipeline deformation detection result. The detection method performs optimal circle fitting on one or more marking point information, and can obtain the optimal fitting circle (i.e., the pipeline fitting circle) corresponding to the pipeline mark based on the idea of data fitting, and then performs deformation detection on the optimal fitting circle and the pipeline standard circle information, that is, the deformation result of the pipeline is obtained through the difference between the fitting circle and the standard circle of the pipeline. The technical implementation difficulty of the detection method is relatively low, and the detection efficiency of pipeline deformation detection can be effectively improved. While reducing the implementation cost, the pipeline deformation detection can also be performed in real time, and the real-time performance and detection accuracy of the pipeline deformation detection are both high. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the embodiments of the present application or the drawings of the related technical solutions in the prior art are introduced below. It should be understood that the drawings introduced below are only for the convenience of clearly expressing some embodiments of the technical solutions of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0053] Figure 1 A schematic diagram of a pipeline deformation detection method provided in an embodiment of the present application;
[0054] Figure 2 A schematic diagram of a pipeline marking image provided in an embodiment of the present application;
[0055] Figure 3 A schematic diagram of the structure of a pipeline deformation detection system provided in an embodiment of the present application;
[0056] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and are not to be construed as limitations on the present application. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way, and the execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0059] At present, traditional pipeline deformation detection methods can be roughly divided into two categories. The first detection method is mainly based on the construction of a deformation measurement device corresponding to the target pipeline based on a ruler, and the deformation of the target pipeline is detected through the deformation measurement device. This type of detection method intelligently detects the approximate offset of a certain position of the pipeline on the three-dimensional axis (horizontal axis x, longitudinal axis y and vertical axis z). The detection accuracy is low, and the relevant staff are required to use the deformation measurement device for deformation detection. The work intensity of the relevant staff is high, and the detection efficiency and real-time performance are not satisfactory; the second type of detection method is mainly based on the three-dimensional reconstruction matching algorithm, and the surface image of the target pipeline is analyzed and identified to realize the deformation detection of the target pipeline. This type of detection method has high accuracy requirements for the collected pipeline data, and the calculation of three-dimensional reconstruction matching is relatively complex. The technical implementation is difficult and the implementation cost is high.
[0060] In view of this, an embodiment of the present invention provides a pipeline deformation detection method. The detection method can obtain the optimal fitting circle (i.e., the pipeline fitting circle) corresponding to the pipeline mark based on the data fitting idea by performing optimal circle fitting on one or more marking point information, and then perform deformation detection on the optimal fitting circle and the pipeline standard circle information, that is, through the difference between the fitting circle and the standard circle of the pipeline, the deformation result of the pipeline is obtained. In the optimal circle fitting and deformation detection stages, the detection method does not have high requirements on the accuracy of the collected pipeline data, and the calculation process of the circle fitting and deformation detection stages is relatively simple. Therefore, the detection technology is relatively easy to implement, and can effectively improve the detection efficiency of pipeline deformation detection, reduce the implementation cost, and can also perform pipeline deformation detection in real time. The real-time performance and detection accuracy of pipeline deformation detection are both high.
[0061] Reference Figure 1 In an embodiment of the present application, a pipeline deformation detection method includes:
[0062] Step 110: Obtain pipeline standard circle information and pipeline marking image to be detected;
[0063] In an embodiment of the present application, for a pipeline to be inspected, its pipeline standard circle information may be the pipeline fitting circle of the pipeline to be inspected during several pipeline deformation inspections, specifically, the pipeline fitting circle of the pipeline to be inspected during the first pipeline deformation inspection. The present application example is for illustration only. In addition, the pipeline marking image may be a plurality of marking patterns pasted on the surface of the pipeline to be inspected. The marking pattern may specifically be a QR code, a barcode or other pattern. Then, based on a camera or a camera head, a pipeline image with the marking pattern is obtained with the marking pattern as the center. The pipeline image with the marking pattern is used as the pipeline marking image during this pipeline deformation inspection. Figure 2 , the subsequent examples of this application take a 3×3 QR code pattern as an example.
[0064] Step 120: collecting point information of the pipeline marking image to obtain marking point information, where the marking point information is used to record corner point coordinate information and posture information of the pipeline marking;
[0065] Furthermore, the step 120 of collecting the point information of the pipeline marking image to obtain the marking point information includes:
[0066] Step 121: perform mark detection on the pipeline mark image to obtain corner point coordinate information corresponding to the pipeline mark;
[0067] Step 122: performing posture estimation on the pipeline marking image according to the corner point coordinate information to obtain posture information corresponding to the pipeline marking;
[0068] Step 123: Integrate the corner point coordinate information and the posture information to obtain the marking point information
[0069] In the embodiment of the present application, the pipeline marker image contains 3×3 two-dimensional code patterns, each of which is a pipeline marker. For a certain pipeline marker in the pipeline marker image, the pipeline marker can be detected based on the ArUco module in OpenCV to obtain the corner point coordinates and pipeline marker number corresponding to the pipeline marker. The corner point coordinates and pipeline marker number can be integrated to obtain the corner point coordinate information corresponding to the pipeline marker. The same is true for the remaining pipeline markers.
[0070] It is understandable that after extracting the corner point coordinate information corresponding to a certain pipeline marker, the posture of the pipeline marker can be estimated based on the corner point coordinate information. Specifically, the translation vector and rotation vector of the pipeline marker can be calculated based on the PnP algorithm (Perspective-n-Point) in combination with the internal parameters of the camera / camera, and the obtained translation vector and rotation vector are used as the posture information of the pipeline marker, wherein the marking center point of each pipeline marker is recorded in the translation vector of the pipeline marker, and the same is true for the remaining pipeline markers, which will not be repeated in this application. For a certain pipeline marker, step 123 can be a simple integration of the corner point coordinate information and posture information belonging to the same pipeline marker to obtain the marking point information of the pipeline marker.
[0071] Step 130, performing optimal circle fitting on the marking point information to obtain a pipeline fitting circle, wherein the sum of square errors between the fitting coordinate points in the pipeline fitting circle and the corresponding pixel points in the marking point information is minimal;
[0072] Furthermore, the step 130 of performing optimal circle fitting on the marking point information to obtain a pipeline fitting circle, wherein the sum of square errors between the fitting coordinate points in the pipeline fitting circle and the corresponding pixel points in the marking point information is minimal, includes:
[0073] Step 131: acquiring a plurality of pixel coordinates according to the corner point coordinate information, each pixel coordinate corresponding to a pixel of the pipeline mark;
[0074] Step 132: acquiring the mark center coordinates corresponding to the pipeline mark according to the posture information;
[0075] In an embodiment of the present application, the optimal circle fitting is used to obtain the optimal fitting circle corresponding to the information of several marking points during the pipeline deformation detection process. Specifically, for a certain two-dimensional code pattern (i.e., pipeline marker), it is composed of several two-dimensional pixel points, so the coordinates of the corresponding pipeline marker pixel points can be extracted based on the corner point coordinate information to obtain several pixel point coordinates, wherein the number referred to by the several can be equal to the number of pixels of the pipeline marker, or can be less than the number of pixels of the pipeline marker. When the number referred to by the several is less than the number of pixels of the pipeline marker, it represents the coordinates of some pixels of the pipeline marker. It can be understood that for a certain pipeline marker, the marker center coordinates are used to represent the position vector coordinates at the center of the pipeline marker, which can be obtained through the translation vector in the posture information, and this application will not go into details here.
[0076] Step 133: According to the center coordinates of the marker, all the pixel coordinates are screened for fitting circles to obtain the pipeline fitting circle.
[0077] Furthermore, the step 133, screening all the pixel coordinates for fitting circles according to the center coordinates of the marker to obtain the pipeline fitting circle, includes:
[0078] A1. Convert the marker center coordinates into a phase coordinate system to obtain the camera relative coordinates;
[0079] A2. Constructing a fitting circle for all the pixel point coordinates according to the camera relative coordinates to obtain a plurality of pixel fitting circles;
[0080] In the embodiment of the present application, for a certain pipeline mark, the camera relative coordinates are used to represent the three-dimensional coordinates of the mark center point of the pipeline mark relative to the camera. Specifically, step A1 can be based on the vector distance formula, converting the position vector coordinates in vector form into the camera relative coordinates in three-dimensional coordinate form, thereby completing the phase coordinate system conversion.
[0081] It can be understood that for a certain pipeline mark, the construction of the fitting circle can be based on the least squares method, combining the values corresponding to the relative coordinates of the camera and the values corresponding to the coordinates of several pixel points of the pipeline mark to fit a circle and obtain the center and radius of the circle, thereby obtaining several pixel fitting circles corresponding to the pipeline mark. The same is true for the remaining pipeline marks, and this application will not go into details here.
[0082] A3. Optimally screening all the pixel fitting circles to obtain the pipeline fitting circle.
[0083] Furthermore, the step A3 of optimally screening all the pixel fitting circles to obtain the pipeline fitting circle includes:
[0084] A31, constructing a fitting error function according to the pixel fitting circle and the corresponding pixel point coordinates;
[0085] A32. Perform minimum value optimization on the fitting error function to obtain a minimum error function, and use the pixel fitting circle corresponding to the minimum error function as the pipeline fitting circle.
[0086] In the embodiment of the present application, the fitting error function is used to characterize the sum of square errors between the fitting coordinate points of the pixel fitting circle and the corresponding pixel points. For the pixel fitting circle of a certain pipeline mark, the expression form of the pixel fitting circle and the fitting error function can be:
[0087]
[0088] Where, ID is the pipeline marking number; E ID is the fitting error function corresponding to the pipeline mark; sum() is the summation function; The value of the target point i marked on the pipeline on the longitudinal axis y; b is the vertical axis of the target point i marked on the pipeline on the vertical axis z; ID and c ID The center coordinates of the circle fitting the pipeline marker pixel; r ID The radius of the circle that fits the pipe marker pixels.
[0089] It is understandable that the target point may be the center point or pixel point of the pipeline mark. The minimum value optimization in step A32 may be used to obtain the optimal pixel fitting circle corresponding to a pipeline mark, or may be used to obtain the optimal pixel fitting circle among all pipeline marks.
[0090] Specifically, when the minimum value optimization of step A32 is used to obtain the optimal pixel fitting circle corresponding to a certain pipeline mark, it can be based on the least squares method. When the fitting error function is minimized, the center coordinates and radius corresponding to the minimum fitting error function (i.e., the minimum error function) are found, and the pixel fitting circle composed of the corresponding center coordinates and radius is used as the pipeline fitting circle.
[0091] When the minimum value optimization of step A32 is used to obtain the optimal pixel fitting circle among all pipeline markers, the minimum fitting error functions corresponding to different pipeline markers can be compared on the basis of the minimum fitting error function corresponding to each pipeline marker, and the minimum fitting error function therein can be used as the minimum error function, and the pixel fitting circle corresponding to the minimum error function can be selected as the pipeline fitting circle; or, all fitting error functions of different pipeline markers can be compared, and the minimum fitting error function therein can be used as the minimum error function, and the pixel fitting circle corresponding to the minimum error function can be selected as the pipeline fitting circle. The examples in this application are for illustration only and do not impose any limitation on this application.
[0092] Step 140: Perform deformation detection on the pipeline standard circle information according to the pipeline fitting circle to obtain a pipeline deformation detection result.
[0093] Furthermore, in step 140, deformation detection is performed on the pipeline standard circle information according to the pipeline fitting circle to obtain a pipeline deformation detection result:
[0094] Step 141, performing three-dimensional error estimation on the pipeline standard circle information according to the pipeline fitting circle to obtain three-dimensional error data;
[0095] Furthermore, the step 141, performing three-dimensional error estimation on the pipeline standard circle information according to the pipeline fitting circle to obtain three-dimensional error data, includes:
[0096] B1. Acquire the first fitting axis coordinates, the second fitting axis coordinates and the fitting circle radius corresponding to the pipeline fitting circle, and the first standard axis coordinates, the second standard axis coordinates and the standard circle radius in the pipeline standard circle information;
[0097] B2. performing a difference comparison on the first standard axis coordinates according to the first fitting axis coordinates to obtain a first axis difference;
[0098] B3. performing a difference comparison on the second standard axis coordinates according to the second fitting axis coordinates to obtain a second axis difference;
[0099] B4. Compare the difference of the radius of the standard circle with the radius of the fitted circle to obtain a radius difference;
[0100] B5. constructing the three-dimensional error data according to the first axis difference, the second axis difference and the radius difference;
[0101] Among them, the direction axes corresponding to the first fitting axis coordinate, the second fitting axis coordinate and the fitting circle radius are different; the direction axis is any one of a horizontal axis, a longitudinal axis or a vertical axis; the direction axis of the first fitting axis coordinate and the first standard axis coordinate are the same; the direction axis of the second fitting axis coordinate and the second standard axis coordinate are the same; the direction axis of the fitting circle radius and the standard circle radius are the same.
[0102] In the embodiment of the present application, the collection coordinate system used to collect the marking point information has a horizontal axis extending downward from the coordinate origin, a vertical axis extending rightward from the coordinate origin, and a vertical axis extending outward from the coordinate origin. At this time, the first fitting axis coordinate corresponds to the coordinate value of the target point of the pipeline mark on the vertical axis, the second fitting axis coordinate corresponds to the coordinate value of the target point of the pipeline mark on the vertical axis, and the radius of the fitting circle corresponds to the coordinate value of the target point of the pipeline mark on the horizontal axis.
[0103] It can be understood that, for a pipeline to be detected, step B2 is used to obtain the offset of the pipeline to be detected on the longitudinal axis, which can be obtained by calculating the difference between the first fitting axis coordinate of the pipeline fitting circle and the first standard axis coordinate in the pipeline standard circle information, thereby obtaining the first axis difference; steps B3 and B4 are similar to the above steps, wherein step B3 is used to obtain the offset of the pipeline to be detected on the vertical axis, and step B4 is used to obtain the offset of the pipeline to be detected on the horizontal axis. After obtaining the first axis difference, the second axis difference and the radius difference, the first axis difference, the second axis difference and the radius difference can be constructed into three-dimensional error data in the form of three-dimensional coordinates.
[0104] It should be noted that, since the acquisition coordinate system corresponding to the marking point information can be flexibly changed according to the actual situation, it has an impact on the direction axis in the expression form of the pixel fitting circle and the fitting error function in the aforementioned step A3, so that the direction axis corresponding to the first fitting axis coordinate, the second fitting axis coordinate and the radius of the combined circle in the pipeline fitting circle will change. For example, when the horizontal axis of the acquisition coordinate system is from the coordinate origin to the right, the vertical axis is from the coordinate origin downward, and the vertical axis is from the coordinate origin outward, the first fitting axis coordinate corresponds to the coordinate value of the target point of the pipeline mark on the horizontal axis, the second fitting axis coordinate corresponds to the coordinate value of the target point of the pipeline mark on the vertical axis, and the radius of the fitting circle corresponds to the coordinate value of the target point of the pipeline mark on the vertical axis. The rest of the cases are similar and can be simply deduced by analogy. The examples in this application are only for illustration and do not impose any restrictions on this application.
[0105] Step 142: Generate the pipeline deformation detection result according to the three-dimensional error data.
[0106] In the embodiment of the present application, the number of the acquired pipeline fitting circles may be one or more. Specifically, when the number of the acquired pipeline fitting circles is one, the pipeline fitting circle may be the optimal pixel fitting circle in all pipeline marks, or the pipeline fitting circle may be the optimal pixel fitting circle in a certain pipeline mark. When the number of the acquired pipeline fitting circles is multiple, the pipeline fitting circle may be a set of the optimal pixel fitting circles in each pipeline mark.
[0107] Specifically, when the number of obtained pipe fitting circles is one, the number of corresponding three-dimensional error data obtained is one. At this time, the three-dimensional error data can be directly used as the pipe deformation detection result of the pipe to be detected; or, based on a preset three-dimensional deformation threshold, the three-dimensional error data can be compared, and it is determined whether the dimensional data on any direction axis in the three-dimensional error data is greater than or equal to the three-dimensional deformation threshold. If there is dimensional data on at least one direction axis that is greater than or equal to the three-dimensional deformation threshold, a pipe deformation detection result indicating that the pipe is unsafe can be generated, otherwise, a pipe deformation detection result indicating that the pipe is safe can be generated.
[0108] When the number of obtained pipeline fitting circles is multiple, the number of corresponding three-dimensional error data is multiple, and each three-dimensional error data corresponds to a pipeline fitting circle. At this time, the error mean of all three-dimensional error data can be used as the pipeline deformation detection result of the pipeline to be detected; or, based on a preset three-dimensional deformation threshold, the error mean of all three-dimensional error data can be compared, and it is determined whether the error data on any directional axis in the error mean is greater than or equal to the three-dimensional deformation threshold. If the error data on at least one directional axis dimension of the error mean is greater than or equal to the three-dimensional deformation threshold, a pipeline deformation detection result indicating that the pipeline is unsafe can be generated, otherwise, a pipeline deformation detection result indicating that the pipeline is safe can be generated.
[0109] A pipeline deformation detection system proposed according to an embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0110] Reference Figure 3 A pipeline deformation detection system proposed in an embodiment of the present application includes:
[0111] An acquisition module 101 is used to acquire pipeline standard circle information and a pipeline marking image to be detected;
[0112] The acquisition module 102 is used to acquire the point information of the pipeline marking image to obtain the marking point information, and the marking point information is used to record the corner point coordinate information and posture information of the pipeline marking;
[0113] A fitting module 103 is used to perform optimal circle fitting on the marking point information to obtain a pipeline fitting circle, wherein the sum of square errors between the fitting coordinate points in the pipeline fitting circle and the corresponding pixel points in the marking point information is minimal;
[0114] The detection module 104 is used to perform deformation detection on the pipeline standard circle information according to the pipeline fitting circle to obtain a pipeline deformation detection result.
[0115] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0116] Reference Figure 4 , the embodiment of the present application further provides an electronic device, including:
[0117] at least one processor 201;
[0118] At least one memory 202, used to store at least one program;
[0119] When the at least one program is executed by the at least one processor 201, the at least one processor 201 implements the above method embodiment.
[0120] Similarly, it can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0121] The embodiment of the present application further provides a computer-readable storage medium, in which a program executable by the processor 201 is stored. The program executable by the processor 201 is used to implement the above-mentioned method embodiment when executed by the processor 201.
[0122] Similarly, the contents of the above method embodiments are all applicable to the computer-readable storage medium embodiments. The functions specifically implemented by the computer-readable storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0123] In some optional embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the application is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. The optional embodiment is expected, wherein the order of various operations is changed and the sub-operation described as a part of a larger operation is performed independently.
[0124] In addition, although the present application is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present application. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional techniques of the engineer. Therefore, those skilled in the art can implement the present application set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present application, which is determined by the full scope of the attached claims and their equivalents.
[0125] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method of the embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0126] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0127] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0128] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0129] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0130] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
[0131] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the embodiments. Technical personnel familiar with the field can make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A pipeline deformation detection method, characterized in that: include: Obtain pipeline standard circle information and pipeline marker image to be detected; Collecting point information of the pipeline marking image to obtain marking point information, wherein the marking point information is used to record corner point coordinate information and posture information of the pipeline marking; Performing optimal circle fitting on the marking point information to obtain a pipeline fitting circle, wherein the sum of square errors between the fitting coordinate points in the pipeline fitting circle and the corresponding pixel points in the marking point information is minimal; According to the pipeline fitting circle, deformation detection is performed on the pipeline standard circle information to obtain a pipeline deformation detection result.
2. The pipeline deformation detection method according to claim 1, characterized in that: The step of collecting the point information of the pipeline marking image to obtain the marking point information includes: Performing mark detection on the pipeline mark image to obtain corner point coordinate information corresponding to the pipeline mark; According to the corner point coordinate information, the pose of the pipeline marking image is estimated to obtain the pose information corresponding to the pipeline marking; The corner point coordinate information and the posture information are integrated to obtain the marking point information.
3. The pipeline deformation detection method according to claim 1, characterized in that: The step of performing optimal circle fitting on the marking point information to obtain a pipeline fitting circle includes: According to the corner point coordinate information, a plurality of pixel point coordinates are obtained, each pixel point coordinate corresponds to a pixel point of the pipeline mark; According to the posture information, obtaining the mark center coordinates corresponding to the pipeline mark; According to the center coordinates of the marker, all the pixel coordinates are screened for fitting circles to obtain the pipeline fitting circle.
4. The pipeline deformation detection method according to claim 3, characterized in that: The step of performing fitting circle screening on all the pixel point coordinates according to the center coordinates of the marker to obtain the pipeline fitting circle includes: Performing phase coordinate system conversion on the marker center coordinates to obtain camera relative coordinates; According to the camera relative coordinates, constructing a fitting circle for all the pixel point coordinates to obtain a plurality of pixel fitting circles; All the pixel fitting circles are optimally screened to obtain the pipeline fitting circle.
5. The pipeline deformation detection method according to claim 4, characterized in that: The optimal screening of all the pixel fitting circles to obtain the pipeline fitting circle includes: Constructing a fitting error function according to the pixel fitting circle and the corresponding pixel point coordinates; The fitting error function is optimized to a minimum value to obtain a minimum error function, and the pixel fitting circle corresponding to the minimum error function is used as the pipeline fitting circle.
6. The pipeline deformation detection method according to claim 1, characterized in that: According to the pipeline fitting circle, the pipeline standard circle information is subjected to deformation detection to obtain the pipeline deformation detection result: According to the pipeline fitting circle, three-dimensional error estimation is performed on the pipeline standard circle information to obtain three-dimensional error data; The pipeline deformation detection result is generated according to the three-dimensional error data.
7. The pipeline deformation detection method according to claim 6, characterized in that: The step of performing three-dimensional error estimation on the pipeline standard circle information according to the pipeline fitting circle to obtain three-dimensional error data includes: Acquire the first fitting axis coordinates, the second fitting axis coordinates and the fitting circle radius corresponding to the pipeline fitting circle, and the first standard axis coordinates, the second standard axis coordinates and the standard circle radius in the pipeline standard circle information; According to the first fitting axis coordinates, performing a difference comparison with the first standard axis coordinates to obtain a first axis difference; According to the second fitting axis coordinates, performing a difference comparison on the second standard axis coordinates to obtain a second axis difference; According to the fitted circle radius, performing a difference comparison with the standard circle radius to obtain a radius difference; constructing the three-dimensional error data according to the first axis difference, the second axis difference and the radius difference; Among them, the direction axes corresponding to the first fitting axis coordinate, the second fitting axis coordinate and the fitting circle radius are different; the direction axis is any one of a horizontal axis, a longitudinal axis or a vertical axis; the direction axis of the first fitting axis coordinate and the first standard axis coordinate are the same; the direction axis of the second fitting axis coordinate and the second standard axis coordinate are the same; the direction axis of the fitting circle radius and the standard circle radius are the same.
8. A pipeline deformation detection system, characterized in that: include: An acquisition module is used to acquire pipeline standard circle information and pipeline marking images to be detected; An acquisition module, used to acquire point information of the pipeline marking image to obtain marking point information, wherein the marking point information is used to record corner point coordinate information and posture information of the pipeline marking; A fitting module, used for performing optimal circle fitting on the marking point information to obtain a pipeline fitting circle, wherein the sum of square errors between the fitting coordinate points in the pipeline fitting circle and the corresponding pixel points in the marking point information is minimal; The detection module is used to perform deformation detection on the pipeline standard circle information according to the pipeline fitting circle to obtain a pipeline deformation detection result.
9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The program executable by the processor is used to implement the method according to any one of claims 1 to 7 when executed by the processor.
Citation Information
Cited By
Method, system and equipment for detecting deformation of oil pipe of main oil pump of steam turbine and medium
CN121252677A
