Pipeline detection method and device, electronic equipment and storage medium
By setting graphic codes on the pipeline and using electronic equipment to identify and detect, the problems of missed inspection and missed inspection in long pipeline detection are solved, and more comprehensive and accurate inspection is achieved, ensuring the safety of the pipeline.
Patent Information
- Application Number
- CN202410927840.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-11-15
AI Technical Summary
The prior art is prone to mis-checking or missed inspections in long pipeline inspections, resulting in pipeline safety problems and incomplete and accurate inspections.
By setting the graphic code on the pipeline, using electronic devices to collect and identify the graphic code, determining the pipe components to be detected, and obtaining the detection image through the camera, comparing the matching with the standard image, judging the leakage situation, output matching error information or sending repairs Instructions to ensure the comprehensiveness and accuracy of detection.
It effectively avoids mis-checking or missed inspection of pipeline components, improves the comprehensiveness and accuracy of inspection, and ensures the safety of pipelines.
Smart Images

Figure CN118959896A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of pipeline safety technology, and in particular to a pipeline detection method, device, electronic equipment and storage medium. Background Art
[0002] Oilfield refers to a specific area where crude oil is produced. Oilfields generally produce oilfield gas, which is generally transported to the destination through oil pipeline systems, such as liquefied petroleum gas storage and distribution stations. The oil pipeline system is a pipeline system used to transport crude oil and crude oil products. It is mainly composed of oil pipelines, oil stations and other auxiliary related equipment. It is one of the main equipment in the crude oil storage and transportation industry and the most important transportation equipment for crude oil and crude oil products. Compared with railway and road oil transportation, which are also land transportation methods, pipeline oil transportation has the characteristics of large transportation volume, good airtightness, low cost and high safety factor.
[0003] Currently, for the inspection of long pipelines, inspectors usually inspect each pipeline component based on experience and drawings. Once the inspectors make omissions, it may cause problems with pipeline safety. Summary of the invention
[0004] The embodiments of the present application disclose a pipeline detection method, device, electronic device and storage medium, which can avoid false detection or missed detection of pipeline components and improve the comprehensiveness and accuracy of pipeline detection.
[0005] The present application embodiment discloses a pipeline detection method, which is applied to electronic equipment, and the method includes:
[0006] In response to the pipeline determination operation, an image to be identified including a target graphic code is collected by a camera; the target graphic code is one of a plurality of graphic codes set on the pipeline, and the pipeline includes a plurality of pipeline components;
[0007] Identify the target graphic code contained in the image to be identified, and determine one or more pipeline components to be detected corresponding to the target graphic code;
[0008] Acquire a target detection image captured by the camera;
[0009] The first component to be detected contained in the target detection image is detected. If the first component to be detected matches the target pipeline component, the leakage of the target pipeline component is detected according to the target detection image. The target pipeline component is one of the one or more pipeline components to be detected corresponding to the target graphic code.
[0010] In one embodiment, the detecting a first component to be detected contained in the target detection image, and if the first component to be detected matches a target pipeline component, detecting a leakage condition of the target pipeline component according to the target detection image includes:
[0011] Acquire a standard image corresponding to the target pipeline component;
[0012] Comparing the target detection image with the standard image to determine the image similarity between the target detection image and the standard image;
[0013] If the image similarity is greater than a similarity threshold, the leakage condition of the target pipeline component is detected according to the target detection image.
[0014] In one embodiment, the method further comprises:
[0015] If the first component to be detected does not match the target pipeline component, matching error information is output, and the matching error information is used to prompt that the first component to be detected included in the target detection image is wrong.
[0016] In one embodiment, the method further comprises:
[0017] If the leakage condition indicates that the target pipeline component has a leakage, a maintenance instruction corresponding to the target pipeline component is sent to the server, so that the server determines the target pipeline component as the pipeline component to be repaired corresponding to the target graphic code.
[0018] In one embodiment, the step of identifying the target graphic code contained in the image to be identified and determining one or more pipeline components to be detected corresponding to the target graphic code includes:
[0019] Identify the target graphic code contained in the image to be identified, and send the identification result and the user identity corresponding to the electronic device to the server, so that when the server determines that the user identity is a pipeline inspection personnel, the server sends one or more pipeline components to be inspected corresponding to the target graphic code to the electronic device according to the identification result;
[0020] One or more pipeline components to be detected corresponding to the target graphic code sent by the server are received.
[0021] In one embodiment, the method further comprises:
[0022] Identify the target graphic code contained in the image to be identified, and send the identification result and the user identity corresponding to the electronic device to the server, so that when the server determines that the user identity is a pipeline maintenance personnel, the server sends one or more pipeline components to be repaired corresponding to the target graphic code to the electronic device according to the identification result, or sends pipeline safety information to the electronic device;
[0023] One or more pipeline components to be repaired or the pipeline safety information corresponding to the target graphic code sent by the server is received, and the pipeline safety information is used to prompt that the target graphic code does not correspond to the pipeline component to be repaired.
[0024] In one embodiment, after identifying the target graphic code contained in the image to be identified and determining one or more pipeline components to be detected corresponding to the target graphic code, the method further includes:
[0025] In the case where there are multiple pipeline components to be detected, obtaining detection priorities respectively corresponding to the multiple pipeline components to be detected;
[0026] Determine the pipeline component corresponding to the highest detection priority as the target pipeline component;
[0027] Image acquisition information is output, where the image acquisition information is used to prompt image acquisition of the target pipeline component.
[0028] The present application embodiment discloses a pipeline detection device applied to an electronic device, the device comprising:
[0029] An image acquisition module, configured to acquire an image to be identified including a target graphic code through a camera in response to a pipeline determination operation; the target graphic code is one of a plurality of graphic codes set on the pipeline, and the pipeline includes a plurality of pipeline components;
[0030] A component determination module, used to identify the target graphic code contained in the image to be identified, and determine one or more pipeline components to be detected corresponding to the target graphic code;
[0031] An image acquisition module, used to acquire the target detection image collected by the camera;
[0032] A leakage detection module is used to detect a first component to be detected contained in the target detection image. If the first component to be detected matches a target pipeline component, the leakage of the target pipeline component is detected according to the target detection image. The target pipeline component is one of the one or more pipeline components to be detected corresponding to the target graphic code.
[0033] In one embodiment, the leakage detection module is further used to obtain a standard image corresponding to the target pipeline component; compare the target detection image with the standard image to determine the image similarity between the target detection image and the standard image; if the image similarity is greater than a similarity threshold, detect the leakage of the target pipeline component based on the target detection image.
[0034] In one embodiment, the pipeline detection device may further include an information output module for outputting matching error information if the first component to be detected does not match the target pipeline component, wherein the matching error information is used to indicate that the first component to be detected included in the target detection image is wrong.
[0035] In one embodiment, the pipeline detection device may further include an instruction sending module, which is used to send a maintenance instruction corresponding to the target pipeline component to the server if the leakage condition indicates that the target pipeline component has a leakage, so that the server determines the target pipeline component as the pipeline component to be repaired corresponding to the target graphic code.
[0036] In one embodiment, the component determination module is further used to identify the target graphic code contained in the image to be identified, and send the identification result and the user identity corresponding to the electronic device to the server, so that when the server determines that the user identity is a pipeline inspection personnel, the server sends one or more pipeline components to be inspected corresponding to the target graphic code to the electronic device according to the identification result; and receives the one or more pipeline components to be inspected corresponding to the target graphic code sent by the server.
[0037] In one embodiment, the component determination module is further used to identify the target graphic code contained in the image to be identified, and send the identification result and the user identity corresponding to the electronic device to the server, so that when the server determines that the user identity is a pipeline maintenance personnel, the server sends one or more pipeline components to be repaired corresponding to the target graphic code to the electronic device according to the identification result, or sends pipeline safety information to the electronic device; when the server receives one or more pipeline components to be repaired corresponding to the target graphic code or the pipeline safety information sent by the server, the pipeline safety information is used to prompt that the target graphic code does not correspond to the pipeline component to be repaired.
[0038] In one embodiment, the pipeline detection device may further include a priority determination module, which is used to obtain the detection priorities corresponding to the multiple pipeline components to be detected when there are multiple pipeline components to be detected; determine the pipeline component corresponding to the highest detection priority as the target pipeline component; and the information output module is also used to output image acquisition information, and the image acquisition information is used to prompt image acquisition of the target pipeline component.
[0039] The present application discloses an electronic device, including:
[0040] A memory storing executable program code;
[0041] a processor coupled to the memory;
[0042] The processor calls the executable program code stored in the memory to execute the method described in any one of the above embodiments.
[0043] An embodiment of the present application discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the processor executes the method described in any one of the above embodiments.
[0044] Through the pipeline detection method, device, electronic device and storage medium disclosed in the embodiment of the present application, the electronic device can respond to the pipeline determination operation, collect the image to be identified containing the target graphic code through the camera, the target graphic code is one of the multiple graphic codes set on the pipeline, the pipeline can include multiple pipeline components, the electronic device can identify the target graphic code contained in the image to be identified, determine the one or more pipeline components to be detected corresponding to the target graphic code, and then obtain the target detection image collected by the camera, so that the first component to be detected contained in the target detection image can be detected, if the first component to be detected matches one of the one or more pipeline components to be detected corresponding to the target graphic code, then the leakage of the target pipeline component is detected according to the target detection image. Through this embodiment, setting the graphic code on the pipeline can attract the attention of the pipeline detection personnel, and the pipeline detection personnel can determine one or more pipeline components to be detected by scanning the graphic code, thereby avoiding the pipeline detection personnel from missing the pipeline components to be detected, and by detecting whether the first component to be detected in the target detection image matches the target pipeline component, it can also avoid the pipeline detection personnel from detecting the wrong pipeline component, thereby improving the comprehensiveness and accuracy of pipeline detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 It is a schematic diagram of an application scenario of a pipeline detection method disclosed in an embodiment of the present application;
[0047] Figure 2 It is a flow chart of a pipeline detection method disclosed in an embodiment of the present application;
[0048] Figure 3 It is a flow chart of another pipeline detection method disclosed in an embodiment of the present application;
[0049] Figure 4 It is a flow chart of another pipeline detection method disclosed in an embodiment of the present application;
[0050] Figure 5 It is a flow chart of a method for pipeline maintenance by electronic equipment disclosed in an embodiment of the present application;
[0051] Figure 6 It is a modular schematic diagram of a pipeline detection device disclosed in an embodiment of the present application;
[0052] Figure 7 It is a structural block diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0054] It should be noted that the terms "including" and "having" in the embodiments of the present application and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0055] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first component to be detected may be referred to as a second component to be detected, and similarly, a second component to be detected may be referred to as a first component to be detected. Both the first component to be detected and the second component to be detected are components to be detected, but they are not the same component to be detected.
[0056] The embodiments of the present application disclose a pipeline detection method, device, electronic device and storage medium, which can avoid false detection or missed detection of pipeline components and improve the comprehensiveness and accuracy of pipeline detection.
[0057] The following is a detailed description with reference to the accompanying drawings.
[0058] like Figure 1 As shown, Figure 1 1 is a schematic diagram of an application scenario of a pipeline detection method disclosed in an embodiment of the present application. The application scenario may include an electronic device 110 and a pipeline 120. The electronic device 110 may include but is not limited to a mobile phone, a tablet computer, a wearable device, a laptop computer, a PC (Personal Computer), etc. The electronic device 110 may include one or more function controls, which may be virtual buttons or physical buttons. The electronic device 110 may detect a touch operation on a target function control, which may be a function control for triggering a camera to acquire an image. The target function control may respond to the touch operation, control the camera to acquire an image, and recognize or detect the image acquired by the camera. The camera may be a part of the electronic device 110 or a separate device.
[0059] A plurality of graphic codes 121 may be provided on the pipe 120, and the graphic codes 121 may include a QR code, a barcode, etc. Optionally, the graphic codes 121 may be pasted or etched on the pipe 120, or the pipe 120 may be provided with a display screen, and the graphic codes 121 may be displayed on the display screen, or the graphic codes 121 may not be on the pipe 120, but in the surrounding area of the pipe 120, and there is no limitation to this. The pipe 120 may include a plurality of pipe components, and the pipe 120 may be composed of a plurality of pipe components spliced together, for example, Figure 1 As shown, the pipeline 120 can be composed of a straight pipe 122, a three-way pipe 123, and a T-shaped joint pipe 124. The straight pipe 122, the three-way pipe 123, and the T-shaped joint pipe 124 are all pipeline components, and the specific pipeline structure is not limited in the embodiment of the present application.
[0060] Optionally, multiple graphic codes 121 may be respectively set in each pipeline area included in the pipeline 120, and each pipeline area may correspond to one or more pipeline components to be detected, which may be pre-set and refer to pipeline components with a high possibility of pipeline leakage in the pipeline area. By setting a graphic code 121 in each pipeline area, pipeline inspection personnel can scan the graphic code 121 set in each pipeline area through the camera of the electronic device 110 to obtain one or more pipeline components to be detected corresponding to the graphic code 121, that is, one or more pipeline components to be detected existing in the pipeline area corresponding to the graphic code 121.
[0061] In one embodiment, the touch operation for the target function control may include a pipeline determination operation, a leakage detection operation, etc. The electronic device 110 may respond to the pipeline determination operation and collect an image to be identified containing a target graphic code through a camera, and then identify the target graphic code contained in the image to be identified, and determine one or more pipeline components to be detected corresponding to the target graphic code. The electronic device may also obtain a target detection image collected by the camera, and in response to the leakage detection operation, detect the first component to be detected contained in the target detection image. If the first component to be detected matches the target pipeline component, the leakage of the target pipeline component is detected according to the target detection image, and the target pipeline component is one of the one or more pipeline components to be detected corresponding to the target graphic code.
[0062] like Figure 2 As shown, Figure 2 : is a flow chart of a pipeline detection method disclosed in an embodiment of the present application. The pipeline detection method can be applied to the electronic device in the above embodiment. The pipeline detection method may include the following steps:
[0063] Step 210 , in response to the pipeline determination operation, an image to be identified containing a target graphic code is captured by a camera.
[0064] During the process of pipeline inspection by pipeline inspectors, pipeline inspectors can move along with the pipeline. It is understandable that according to the multiple pipeline components contained in the pipeline, the pipeline can be pre-divided into multiple pipeline areas, each pipeline area can include one or more pipeline components to be inspected, and each pipeline area can be provided with a graphic code, which can include component information of the one or more pipeline components to be inspected. The component information is used to indicate each pipeline component to be inspected. For example, the component information may include the pipeline number of the pipeline to be inspected, the location information of the pipeline to be inspected, etc. When the pipeline inspector reaches a pipeline area, the pipeline inspector can aim the camera of the electronic device at the target graphic code corresponding to the pipeline area and trigger the pipeline determination operation. Optionally, the pipeline determination operation may include but is not limited to any one of touch operation, gesture operation, voice operation, etc., without limitation. The electronic device can respond to the detected pipeline determination operation and collect the image to be identified containing the target graphic code through the camera.
[0065] Step 220: Identify the target graphic code contained in the image to be identified, and determine one or more pipeline components to be detected corresponding to the target graphic code.
[0066] The electronic device can process the image area corresponding to the target graphic code contained in the image to be identified, identify the processed image area, determine the component information of one or more pipeline components to be detected corresponding to the target graphic code according to the identified graphic code information, and determine the target information of each pipeline component to be detected according to the component information of one or more pipeline components to be detected. It can be understood that the amount of information that a graphic code can contain is usually not too large. Therefore, the electronic device can only obtain the component information of the pipeline component to be detected by scanning the target graphic code. The component information can be used to characterize the identity of the pipeline component to be detected, and then determine the target information of the pipeline component from the database according to the component information of the pipeline component to be detected. The target information can be used to guide and help pipeline inspection personnel find pipeline components. The target information can include but is not limited to pipeline component images, pipeline component detection methods, directions and distances between pipeline components and target graphic codes, etc., without limitation.
[0067] Optionally, the electronic device may also store the target information of multiple pipeline components contained in the pipeline locally, and the electronic device may identify the target graphic code contained in the image to be identified, and obtain the component information of the pipeline component to be detected, thereby finding the target information of one or more pipeline components to be detected corresponding to the target graphic code locally. Implementing this embodiment can speed up the determination of the pipeline component to be detected.
[0068] Optionally, if the electronic device fails to recognize the graphic code, or one or more pipeline components to be detected corresponding to the target graphic code cannot be determined based on the recognized graphic code information, a recognition error message may be output, and the recognition error message is used to prompt the pipeline inspection personnel that the image to be recognized is wrong, so that the pipeline inspection personnel can re-aim the camera of the electronic device at the target graphic code and trigger the pipeline determination operation to re-recognize the target graphic code to obtain one or more pipeline components to be detected corresponding to the target graphic code set in the pipeline area. The embodiment of the present application does not limit the image recognition algorithm of the electronic device.
[0069] As an optional implementation, the electronic device can identify the target graphic code contained in the image to be identified, and send the identification result and the user identity corresponding to the electronic device to the server, so that when the server determines that the user identity is a pipeline inspection personnel, the server sends one or more pipeline components to be inspected corresponding to the target graphic code to the electronic device according to the identification result, so that the electronic device can receive the one or more pipeline components to be inspected corresponding to the target graphic code sent by the server.
[0070] Among them, the electronic device can obtain the recognition result and server information corresponding to the target graphic code, and the recognition result can include information of the pipeline area, such as the recognition result can include information such as the pipeline area number and the pipeline area location. The electronic device can establish a connection with the server according to the server information, and send the recognition result and the user identity corresponding to the electronic device to the server corresponding to the target graphic code. The server can first verify the user identity corresponding to the electronic device. In the case where the user identity is a pipeline inspection personnel, the component information of the pipeline components contained in the pipeline area can be obtained from the database according to the recognition result, and the target information of one or more pipeline components to be inspected corresponding to the target graphic code can be determined, and then the target information of one or more pipeline components to be inspected corresponding to the target graphic code can be sent to the electronic device. The implementation of this embodiment can reduce the occupation of the local storage space of the electronic device, and facilitate the management of the pipeline components to be inspected corresponding to the target graphic code, such as adding or deleting the pipeline components to be inspected corresponding to the target graphic code, thereby improving the flexibility of pipeline inspection.
[0071] Step 230: Acquire the target detection image captured by the camera.
[0072] After determining one or more pipeline components to be detected corresponding to the pipeline area, the pipeline inspection personnel have learned the pipeline components to be detected, so they can collect images of each pipeline component to be detected through the camera. Among them, the electronic device can detect the image acquisition operation of the pipeline inspection personnel, and the target detection image corresponding to the pipeline component to be detected collected by the camera. Optionally, the electronic device can execute step 240 every time the camera collects a frame of the target image to be detected, or it can save one or more frames of target detection images collected by the camera locally, and when a leak detection operation is detected, obtain the target detection image selected by the pipeline inspection personnel from the local of the electronic device, and execute step 240.
[0073] Step 240 , detect the first component to be detected contained in the target detection image. If the first component to be detected matches the target pipeline component, detect the leakage of the target pipeline component according to the target detection image.
[0074] Optionally, when the electronic device detects a leakage detection operation, it can perform pipeline component identification on the target detection image to detect a first component to be detected contained in the target detection image, and then determine whether the first component to be detected matches a target pipeline component. The target pipeline component is one of one or more pipeline components to be detected corresponding to the target graphic code. Optionally, the target pipeline component can be a specified pipeline component or an arbitrary pipeline component, which can be set according to actual conditions.
[0075] If the first component to be detected matches the target pipeline component, it means that the first component to be detected is the pipeline component to be detected currently, and the electronic device can detect the leakage of the target pipeline component (i.e., the first component to be detected) according to the target detection image. The leakage may include gas leakage and / or liquid leakage of the target pipeline component.
[0076] If the first component to be detected does not match the target pipeline component, it means that the first component to be detected is not the pipeline component to be detected currently. The electronic device can output matching error information, and the matching error information is used to characterize that the first component to be detected contained in the target detection image is wrong, so that the pipeline inspection personnel re-shoot the target detection image or re-select the target detection image from the local electronic device. The electronic device executes steps 230-240 again according to the new target detection image, thereby ensuring the accuracy of pipeline component detection.
[0077] In an embodiment of the present application, the electronic device can respond to the pipeline determination operation, collect an image to be identified containing a target graphic code through a camera, the target graphic code is one of multiple graphic codes set on the pipeline, and the pipeline can include multiple pipeline components. The electronic device can identify the target graphic code contained in the image to be identified, determine one or more pipeline components to be detected corresponding to the target graphic code, and then obtain the target detection image collected by the camera, so that the first component to be detected contained in the target detection image can be detected. If the first component to be detected matches one of the one or more pipeline components to be detected corresponding to the target graphic code, the leakage of the target pipeline component is detected according to the target detection image. Through this embodiment, setting a graphic code on the pipeline can attract the attention of pipeline inspection personnel. The pipeline inspection personnel can determine one or more pipeline components to be detected by scanning the graphic code, thereby avoiding the pipeline inspection personnel from missing the pipeline components to be detected. Moreover, by detecting whether the first component to be detected in the target detection image matches the target pipeline component, it can also avoid the pipeline inspection personnel from detecting the wrong pipeline component, thereby improving the comprehensiveness and accuracy of pipeline inspection.
[0078] like Figure 3 As shown, Figure 3 : is a flow chart of another pipeline detection method disclosed in an embodiment of the present application. The pipeline detection method can be applied to the electronic device in the above embodiment. The pipeline detection method may include the following steps:
[0079] Step 310, in response to the pipeline determination operation, the image to be identified containing the target graphic code is captured by a camera.
[0080] Step 320, recognize the target graphic code contained in the image to be recognized, and send the recognition result and the user identity corresponding to the electronic device to the server corresponding to the target graphic code, so that when the server determines that the user identity is a pipeline inspection personnel, the server sends one or more pipeline components to be inspected corresponding to the target graphic code to the electronic device according to the recognition result.
[0081] Step 330: receiving one or more pipeline components to be inspected corresponding to the target graphic code sent by the server.
[0082] Step 340: Acquire the target detection image captured by the camera.
[0083] Step 350: Acquire a standard image corresponding to the target pipeline component.
[0084] Optionally, the electronic device may send an image acquisition instruction corresponding to the target pipeline component to the server. The server may determine the standard image corresponding to the target pipeline component from the database according to the received image acquisition instruction, and send the standard image corresponding to the target pipeline component to the electronic device, and the electronic device may receive the standard image corresponding to the target pipeline component. Optionally, in step 320, when the server determines that the user is a pipeline inspection personnel, it may also determine the standard images corresponding to one or more pipeline components to be inspected, and send the one or more pipeline components to be inspected corresponding to the target graphic code and the standard images corresponding to each pipeline component to be inspected to the electronic device, and the electronic device may determine the standard image corresponding to the target pipeline component from the standard images corresponding to the one or more pipeline components to be inspected.
[0085] Step 360 , comparing the target detection image with the standard image to determine the image similarity between the target detection image and the standard image.
[0086] The electronic device can compare the target detection image with the standard image based on the image similarity recognition algorithm to obtain the image similarity between the target detection image and the standard image. The image similarity recognition algorithm includes but is not limited to a histogram-based similarity recognition algorithm, a feature point-based similarity recognition algorithm, a deep learning-based similarity recognition algorithm, etc.
[0087] Optionally, the electronic device may perform image segmentation based on the first component to be detected in the target detection image to obtain a first image area corresponding to the first component to be detected, and perform image segmentation based on the target pipe component in the standard image to obtain a second image area corresponding to the target pipe component, thereby performing image similarity comparison between the first image area and the second image to obtain image similarity between the target detection image and the standard image. The first image area may refer to a rectangular area containing the first component to be detected, and the second image area may refer to a rectangular area containing the target pipe component. If the first image area and the second image area are of different sizes, the electronic device may reduce or enlarge the first image area so that the first image area and the second image area have the same size, and then perform image similarity comparison between the first image area and the second image. Implementing this embodiment can improve the accuracy of image similarity.
[0088] Step 370: If the image similarity is greater than the similarity threshold, the leakage of the target pipeline component is detected according to the target detection image.
[0089] Among them, the similarity threshold can be pre-set. When the image similarity is greater than the similarity threshold, it means that the first component to be detected contained in the target detection image is the target pipeline component. It should be understood that even if the pipeline component leaks, the appearance characteristics of the pipeline component (such as the shape of the pipeline component) usually do not change. Therefore, the electronic device can detect the leakage of the target pipeline component based on the target detection image.
[0090] Optionally, in order to further improve the accuracy of the target detection image, the electronic device may also output a standard image corresponding to the target pipeline component and inquiry information, where the inquiry information is used to inquire the pipeline inspection personnel whether the first component to be inspected is the same as the target pipeline component. When the electronic device detects a confirmation operation indicating that the first component to be inspected is the same as the target pipeline component, the leakage of the target pipeline component is detected based on the target detection image.
[0091] Step 380: If the image similarity is not greater than the similarity threshold, a matching error message is output.
[0092] When the image similarity is not greater than the similarity threshold, it means that the first component to be detected contained in the target detection image is not the target pipeline component, so the electronic device can output matching error information, which is used to prompt that the first component to be detected contained in the target detection image is wrong.
[0093] In an embodiment of the present application, the electronic device can also obtain a standard image corresponding to the target pipeline component, and compare the target detection image with the standard image to determine the image similarity between the target detection image and the standard image. When the image similarity is greater than a similarity threshold, the electronic device can detect leakage of the target pipeline component based on the target detection image. Through this embodiment, the accuracy of the target detection image is guaranteed, thereby improving the accuracy of leakage detection of the target pipeline component.
[0094] like Figure 4 As shown, Figure 4 is a flow chart of another pipeline detection method disclosed in an embodiment of the present application. The pipeline detection method can be applied to the electronic device in the above embodiment. The pipeline detection method may include the following steps:
[0095] Step 410, in response to the pipeline determination operation, an image to be identified containing a target graphic code is captured by a camera.
[0096] Step 420 , identifying the target graphic code contained in the image to be identified, and determining one or more pipeline components to be detected corresponding to the target graphic code.
[0097] Step 430: When there are multiple pipeline components to be detected, the detection priorities corresponding to the multiple pipeline components to be detected are obtained.
[0098] Optionally, the electronic device may send a priority acquisition instruction corresponding to multiple pipeline components to be detected to the server. The server may determine the detection priorities corresponding to the multiple pipeline components to be detected from the database according to the received priority acquisition instruction, and send the detection priorities corresponding to the multiple pipeline components to be detected to the electronic device, and the electronic device may receive the detection priorities corresponding to the multiple pipeline components to be detected. Optionally, when the server determines that the user is a pipeline inspection personnel, it may also determine the detection priorities corresponding to the multiple pipeline components to be detected, and send the multiple pipeline components to be detected corresponding to the target graphic code and the detection priorities corresponding to each pipeline component to be detected to the electronic device.
[0099] As an optional implementation, the electronic device can obtain priority information corresponding to multiple pipeline components to be detected from the server, and analyze the detection priority corresponding to each component to be detected based on the priority information corresponding to the multiple pipeline components to be detected. The priority information may include one or more of the risk level, frequency of use, historical data, and operating environment. For any pipeline component to be detected, the electronic device can obtain the priority score corresponding to each item of priority information, and perform weighted calculation based on the weight corresponding to each item of priority information and the priority score to obtain the detection priority corresponding to the pipeline component to be detected. By implementing this implementation, the accuracy of the detection priority can be improved through real-time calculation of the electronic device.
[0100] Step 440: Determine the pipeline component corresponding to the highest detection priority as the target pipeline component.
[0101] The electronic device may sort the multiple pipeline components to be detected in descending order of detection priority, and take the first pipeline component as the target pipeline component. Optionally, when the electronic device determines that the first pipeline component has been detected, the electronic device may take the second pipeline component as the target pipeline component, and so on, until the last pipeline component is taken as the target pipeline component.
[0102] Step 450: output image acquisition information, where the image acquisition information is used to prompt image acquisition of the target pipeline component.
[0103] The image acquisition information may include, but is not limited to, location information of the target pipeline component, a standard image of the target pipeline component, image acquisition requirements, etc.
[0104] Step 460: Acquire the target detection image captured by the camera.
[0105] Step 470, detect the first component to be detected contained in the target detection image. If the first component to be detected matches the target pipeline component, detect the leakage of the target pipeline component according to the target detection image. The target pipeline component is one of the one or more pipeline components to be detected corresponding to the target graphic code.
[0106] As an optional implementation, when it is determined that there is a gas leak, the leak situation may include a gas leak speed, and the electronic device may detect the gas leak speed of the target pipeline component according to the target detection image. The target detection image may include a first infrared image and a second infrared image, and the first infrared image and the second infrared image are collected at different times and at the same location. For example, the first infrared image and the second infrared image may be adjacent frame images. The electronic device may analyze the first infrared image to determine the leaking gas image area in the first infrared image and the gas concentration information corresponding to the leaking gas image area. The gas concentration information may characterize the integral of the gas concentration of the leaking gas image area in the image collection direction. The electronic device may also determine the optical flow field corresponding to the leaking gas image area according to the first infrared image and the second infrared image, and then determine the gas leakage speed corresponding to the leaking gas image area according to the optical flow field corresponding to the leaking gas image area and the gas concentration information. Through this implementation, the electronic device may analyze the gas concentration information, the gas leakage speed and other information by analyzing the infrared image, thereby improving the comprehensiveness of the gas leakage detection. The gas leakage speed may be determined by analyzing the infrared image, and the gas leakage speed may be detected in most scenarios, thereby improving the applicability of the gas leakage detection.
[0107] Step 480, determine whether there are pipeline components to be detected. If there are pipeline components to be detected, re-execute step 440. If there are no pipeline components to be detected, it means that the last pipeline component to be detected has been detected, and step 490 can be executed.
[0108] Step 490: Output the detection completion information, wherein the detection completion information is used to remind the pipeline inspection personnel that all pipeline components have been inspected.
[0109] In an embodiment of the present application, the electronic device can also obtain the detection priorities corresponding to the multiple pipeline components to be detected, and determine the pipeline component corresponding to the highest priority as the target pipeline component when determining that the target graphic code corresponds to multiple pipeline components to be detected, and output image acquisition information to prompt the pipeline inspection personnel to perform image acquisition on the target pipeline component. The pipeline inspection personnel only needs to inspect each pipeline component to be inspected in turn according to the preset priority order and the image acquisition information, thereby providing convenience for pipeline leakage detection.
[0110] like Figure 5 As shown, Figure 5 : is a flow chart of a method for repairing a pipeline by using an electronic device disclosed in an embodiment of the present application. The method can be applied to the electronic device in the above embodiment. The method may include the following steps:
[0111] Step 510, in response to the pipeline determination operation, an image to be identified containing a target graphic code is captured by a camera.
[0112] Step 520, recognize the target graphic code contained in the image to be recognized, and send the recognition result and the user identity corresponding to the electronic device to the server, so that when the server determines that the user identity is a pipeline maintenance personnel, the server sends one or more pipeline components to be repaired corresponding to the target graphic code to the electronic device according to the recognition result, or sends pipeline safety information to the electronic device.
[0113] It should be understood that in the above embodiment, after the electronic device detects the leakage of the target pipeline component based on the target detection image, in order to facilitate pipeline maintenance, as an optional implementation method, if the leakage condition indicates that the target pipeline component has a leakage, the electronic device can send a maintenance instruction corresponding to the target pipeline component to the server, so that the server determines the target pipeline component as the pipeline component to be repaired corresponding to the target graphic code.
[0114] Therefore, after the pipeline maintenance personnel scans the target graphic code, the server can send one or more pipeline components to be repaired corresponding to the target graphic code to the electronic device according to the recognition result when the user is determined to be a pipeline maintenance personnel. The one or more pipeline components to be repaired can be determined by the maintenance instruction sent to the server by the electronic device corresponding to the pipeline inspection personnel. If the target graphic code does not correspond to the pipeline component to be repaired, the server can send pipeline safety information to the electronic device.
[0115] Step 530: receiving one or more pipeline components to be repaired corresponding to the target graphic code sent by the server.
[0116] When the electronic device receives one or more pipeline components to be repaired corresponding to the target graphic code sent by the server, it can output the repair information corresponding to each pipeline component to be repaired, so that the pipeline maintenance personnel can repair each pipeline component to be repaired.
[0117] Step 540: receiving the pipeline safety information sent by the server, where the pipeline safety information is used to indicate that the target graphic code does not correspond to the pipeline component to be repaired.
[0118] In an embodiment of the present application, when the server determines that the user is a pipeline maintenance personnel, the server can send one or more pipeline components to be repaired corresponding to the target graphic code to the electronic device, or send pipeline safety information to the electronic device according to the recognition result, so that the pipeline maintenance personnel can also perform pipeline maintenance by scanning the graphic code, thereby reducing the difficulty of pipeline maintenance and improving the efficiency of pipeline maintenance. In addition, the graphic code can be used for multiple purposes, reducing the difficulty and cost of maintaining the graphic code.
[0119] like Figure 6 As shown, Figure 6 6 is a modular schematic diagram of a pipeline detection device disclosed in an embodiment of the present application. The pipeline detection device 600 may include an image acquisition module 610, a component determination module 620, an image acquisition module 630, and a leakage detection module 640, wherein:
[0120] The image acquisition module 610 is used to acquire an image to be identified including a target graphic code through a camera in response to the pipeline determination operation; the target graphic code is one of a plurality of graphic codes set on the pipeline, and the pipeline includes a plurality of pipeline components;
[0121] A component determination module 620 is used to identify the target graphic code contained in the image to be identified, and determine one or more pipeline components to be detected corresponding to the target graphic code;
[0122] An image acquisition module 630 is used to acquire a target detection image collected by a camera;
[0123] The leakage detection module 640 is used to detect the first component to be detected contained in the target detection image. If the first component to be detected matches the target pipeline component, the leakage of the target pipeline component is detected according to the target detection image. The target pipeline component is one of the one or more pipeline components to be detected corresponding to the target graphic code.
[0124] In one embodiment, the leakage detection module 640 is also used to obtain a standard image corresponding to the target pipeline component; compare the target detection image with the standard image to determine the image similarity between the target detection image and the standard image; if the image similarity is greater than a similarity threshold, the leakage of the target pipeline component is detected based on the target detection image.
[0125] In one embodiment, the pipeline detection device 600 may further include an information output module for outputting matching error information if the first component to be detected does not match the target pipeline component, and the matching error information is used to indicate that the first component to be detected included in the target detection image is wrong.
[0126] In one embodiment, the pipeline detection device 600 may further include an instruction sending module, which is used to send a maintenance instruction corresponding to the target pipeline component to the server if the leakage condition indicates that the target pipeline component has a leak, so that the server determines the target pipeline component as the pipeline component to be repaired corresponding to the target graphic code. In addition, the instruction sending module can also be used to send any instruction in the above embodiments to the server.
[0127] In one embodiment, the component determination module 620 is further used to identify the target graphic code contained in the image to be identified, and send the identification result and the user identity corresponding to the electronic device to the server, so that when the server determines that the user identity is a pipeline inspection personnel, the server sends one or more pipeline components to be inspected corresponding to the target graphic code to the electronic device according to the identification result; and receives the one or more pipeline components to be inspected corresponding to the target graphic code sent by the server.
[0128] In one embodiment, the component determination module 620 is further used to identify the target graphic code contained in the image to be identified, and send the identification result and the user identity corresponding to the electronic device to the server, so that when the server determines that the user identity is a pipeline maintenance personnel, the server sends one or more pipeline components to be repaired corresponding to the target graphic code to the electronic device according to the identification result, or sends pipeline safety information to the electronic device; when the server receives one or more pipeline components to be repaired or pipeline safety information corresponding to the target graphic code sent by the server, the pipeline safety information is used to prompt that the target graphic code does not correspond to the pipeline component to be repaired.
[0129] In one embodiment, the pipeline detection device 600 may also include a priority determination module, which is used to obtain the detection priorities corresponding to the multiple pipeline components to be detected when there are multiple pipeline components to be detected; determine the pipeline component corresponding to the highest detection priority as the target pipeline component; and the information output module is also used to output image acquisition information, and the image acquisition information is used to prompt image acquisition of the target pipeline component.
[0130] In an embodiment of the present application, the electronic device can respond to the pipeline determination operation, collect an image to be identified containing a target graphic code through a camera, the target graphic code is one of multiple graphic codes set on the pipeline, and the pipeline can include multiple pipeline components. The electronic device can identify the target graphic code contained in the image to be identified, determine one or more pipeline components to be detected corresponding to the target graphic code, and then obtain the target detection image collected by the camera, so that the first component to be detected contained in the target detection image can be detected. If the first component to be detected matches one of the one or more pipeline components to be detected corresponding to the target graphic code, the leakage of the target pipeline component is detected according to the target detection image. Through this embodiment, setting a graphic code on the pipeline can attract the attention of pipeline inspection personnel. The pipeline inspection personnel can determine one or more pipeline components to be detected by scanning the graphic code, thereby avoiding the pipeline inspection personnel from missing the pipeline components to be detected. Moreover, by detecting whether the first component to be detected in the target detection image matches the target pipeline component, it can also avoid the pipeline inspection personnel from detecting the wrong pipeline component, thereby improving the comprehensiveness and accuracy of pipeline inspection.
[0131] like Figure 7 As shown, in one embodiment, an electronic device is provided, which may include:
[0132] A memory 710 storing executable program codes;
[0133] a processor 720 coupled to the memory 710;
[0134] The processor 720 calls the executable program code stored in the memory 710 to implement the pipeline detection method provided in the above embodiments.
[0135] The memory 710 may include a random access memory (RAM) or a read-only memory (ROM). The memory 710 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 710 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the electronic device during use, etc.
[0136] The processor 720 may include one or more processing cores. The processor 720 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 710, and calling data stored in the memory 710. Optionally, the processor 720 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 720 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 720, but may be implemented separately through a communication chip.
[0137] It is understandable that the electronic device may include more or fewer structural elements than those in the above structural block diagram, for example, a power module, physical buttons, a WiFi (Wireless Fidelity) module, a speaker, a Bluetooth module, a sensor, etc., and no limitation is made here.
[0138] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the methods described in the above embodiments.
[0139] In addition, an embodiment of the present application further discloses a computer program product. When the computer program product is run on a computer, the computer can execute all or part of the steps in any one of the pipeline detection methods described in the above embodiments.
[0140] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0141] The above is a detailed introduction to a pipeline detection method, device, electronic device and storage medium disclosed in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for a person skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A pipeline detection method, It is characterized in that Applied to electronic equipment, the method comprises: In response to the pipeline determination operation, an image to be identified including a target graphic code is collected by a camera; the target graphic code is one of a plurality of graphic codes set on the pipeline, and the pipeline includes a plurality of pipeline components; Identify the target graphic code contained in the image to be identified, and determine one or more pipeline components to be detected corresponding to the target graphic code; Acquire a target detection image captured by the camera; The first component to be detected contained in the target detection image is detected. If the first component to be detected matches the target pipeline component, the leakage of the target pipeline component is detected according to the target detection image. The target pipeline component is one of the one or more pipeline components to be detected corresponding to the target graphic code.
2. The method according to claim 1, It is characterized in that The detecting the first component to be detected contained in the target detection image, and if the first component to be detected matches the target pipeline component, detecting the leakage of the target pipeline component according to the target detection image, includes: Acquire a standard image corresponding to the target pipeline component; Comparing the target detection image with the standard image to determine the image similarity between the target detection image and the standard image; If the image similarity is greater than a similarity threshold, the leakage condition of the target pipeline component is detected according to the target detection image.
3. The method according to claim 1, It is characterized in that The method further comprises: If the first component to be detected does not match the target pipeline component, matching error information is output, and the matching error information is used to prompt that the first component to be detected included in the target detection image is wrong.
4. The method according to claim 1, It is characterized in that The method further comprises: If the leakage condition indicates that the target pipeline component has a leakage, a maintenance instruction corresponding to the target pipeline component is sent to the server, so that the server determines the target pipeline component as the pipeline component to be repaired corresponding to the target graphic code.
5. The method according to claim 1, It is characterized in that The step of identifying the target graphic code contained in the image to be identified and determining one or more pipeline components to be detected corresponding to the target graphic code includes: Identify the target graphic code contained in the image to be identified, and send the identification result and the user identity corresponding to the electronic device to the server, so that when the server determines that the user identity is a pipeline inspection personnel, the server sends one or more pipeline components to be inspected corresponding to the target graphic code to the electronic device according to the identification result; One or more pipeline components to be detected corresponding to the target graphic code sent by the server are received.
6. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: Identify the target graphic code contained in the image to be identified, and send the identification result and the user identity corresponding to the electronic device to the server, so that when the server determines that the user identity is a pipeline maintenance personnel, the server sends one or more pipeline components to be repaired corresponding to the target graphic code to the electronic device according to the identification result, or sends pipeline safety information to the electronic device; One or more pipeline components to be repaired or the pipeline safety information corresponding to the target graphic code sent by the server is received, and the pipeline safety information is used to prompt that the target graphic code does not correspond to the pipeline component to be repaired.
7. The method according to any one of claims 1 to 5, It is characterized in that After identifying the target graphic code contained in the image to be identified and determining one or more pipeline components to be detected corresponding to the target graphic code, the method further includes: In the case where there are multiple pipeline components to be detected, obtaining detection priorities respectively corresponding to the multiple pipeline components to be detected; Determine the pipeline component corresponding to the highest detection priority as the target pipeline component; Image acquisition information is output, where the image acquisition information is used to prompt image acquisition of the target pipeline component.
8. A pipeline detection device, It is characterized in that Applied to electronic equipment, the device comprises: An image acquisition module, configured to acquire an image to be identified including a target graphic code through a camera in response to a pipeline determination operation; the target graphic code is one of a plurality of graphic codes set on the pipeline, and the pipeline includes a plurality of pipeline components; A component determination module, used to identify the target graphic code contained in the image to be identified, and determine one or more pipeline components to be detected corresponding to the target graphic code; An image acquisition module, used to acquire the target detection image collected by the camera; A leakage detection module is used to detect a first component to be detected contained in the target detection image. If the first component to be detected matches a target pipeline component, the leakage of the target pipeline component is detected according to the target detection image. The target pipeline component is one of the one or more pipeline components to be detected corresponding to the target graphic code.
9. An electronic device, It is characterized in that include: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the method according to any one of claims 1 to 7.
10. A computer storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Intelligent infrared thermal imaging device and inspection method for power grid device on-line inspection
CN107063467A
Security check and hidden danger management system and method
CN108010155A
Method and device for formulating inspection plan of inspection robot and storage medium
CN114003034A
Oil pipeline inspection method and device, vehicle-mounted terminal and storage medium
CN118110935A
Automated Gas Detection and Reporting System
US20170328522A1
