Method, apparatus, storage medium and processor for identifying pipeline safety risks

By deploying image acquisition equipment and object detection models on the pipeline, identifying the location and behavior of engineering vehicles, the problem of quickly and accurately identifying pipeline safety risks is solved, ensuring the safe operation and service life of the pipeline.

CN114898277BActive Publication Date: 2025-07-11PIPECHINA SOUTH CHINA CO +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210652502.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-07
Publication Date
2025-07-11
Estimated Expiration
2042-06-07

AI Technical Summary

Technical Problem

It is difficult to quickly and accurately identify pipeline safety risks, especially due to potential threats caused by third-party construction, which may lead to the occurrence of safety accidents.

Method used

By obtaining pipeline images and using the target detection model to identify the position of the engineering vehicle, we determine whether the vehicle is within the preset warning range of the pipeline, and determine the safety risk level based on the vehicle's movement trajectory and operating behavior, and issue corresponding alarm prompts.

Benefits of technology

It realizes the rapid and accurate identification of pipeline safety risks, avoids safety accidents caused by engineering vehicles staying or operating within the warning range, and improves the service life and safe operation of pipelines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114898277B_ABST
    Figure CN114898277B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a method, device, processor, and storage medium for identifying pipeline safety risks. The method includes: obtaining a first pipeline image at the current time point; inputting the first pipeline image into a target detection model to determine a first center point of the engineering vehicle in the first pipeline image; determining that the engineering vehicle is located within a preset warning range of the pipeline when the first distance between the first center point and the pipeline center line is less than or equal to a preset threshold; obtaining a second pipeline image at the previous time point and determining a second center point of the engineering vehicle in the second pipeline image; determining the second distance from the second center point to the center line when the first center point and the second center point are in different positions; determining that the engineering vehicle is located within the preset warning range of the pipeline and determining that there is a safety risk in the pipeline when the second distance is less than or equal to the preset threshold, which can timely identify safety risks, ensure the safe operation of the pipeline, and improve the service life of the pipeline.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of pipeline safety risk supervision, and particularly relates to a method, device, storage medium, and processor for identifying pipeline safety risks. Background Art

[0002] With the continuous progress of industry, the pipeline transportation industry has also developed rapidly. As an essential part of pipeline transportation, pipelines play a very important role in water supply, drainage, long-distance transportation of oil and gas, and agricultural irrigation. At present, the safety threats to pipelines are becoming increasingly severe, especially the increase in pipeline safety risks caused by third-party construction.

[0003] Since most of the substances transported through pipelines are flammable, explosive, and other dangerous substances, once damaged by third-party construction, serious safety accidents will occur. If the third-party construction unit fails to report in advance and conducts construction in the pipeline area without knowledge, the pipeline management unit where the pipeline is located cannot control it in time, and the possibility of pipeline safety accidents will further increase. Summary of the Invention

[0004] The purpose of the embodiments of this application is to provide a method, device, storage medium, and processor for identifying pipeline safety risks.

[0005] To achieve the above purpose, the first aspect of this application provides a method for identifying pipeline safety risks, including:

[0006] Obtain a first pipeline image at the current time point, where the first pipeline image includes the center line of the pipeline;

[0007] Input the first pipeline image into a target detection model to determine the first center point of the engineering vehicle in the first pipeline image;

[0008] When the first distance between the first center point and the center line is less than or equal to a preset threshold, determine that the engineering vehicle is within the preset warning range of the pipeline;

[0009] Obtain a second pipeline image at the previous time point and determine the second center point of the engineering vehicle in the second pipeline image;

[0010] When the first center point and the second center point are in different positions, determine the second distance from the second center point to the center line;

[0011] When the second distance is less than or equal to the preset threshold, determine that the engineering vehicle is within the preset warning range of the pipeline and determine that there is a safety risk for the pipeline.

[0012] In an embodiment of the present application, when the second distance is less than a preset threshold, it is determined that the engineering vehicle is within the preset warning range of the pipeline, and it is determined that there is a safety risk for the pipeline, including: when the second distance is less than or equal to the preset threshold and the second distance is greater than the first distance, it is determined that the engineering vehicle is moving in a direction closer to the center line, it is determined that the engineering vehicle is within the preset warning range of the pipeline, and it is determined that there is a safety risk for the pipeline; when the second distance is less than or equal to the preset threshold and the second distance is less than the first distance, it is determined that the engineering vehicle is moving in a direction away from the center line, it is determined that the engineering vehicle is within the preset warning range of the pipeline, and it is determined that there is no safety risk for the pipeline.

[0013] In an embodiment of the present application, the first pipeline image is obtained from the collected video data. The method further includes: when the first center point and the second center point are at the same position, determining whether there is an operation behavior of the execution component of the engineering vehicle according to the video data; when it is determined that there is an operation behavior of the execution component, determining that the engineering vehicle is operating within the preset warning range, and determining that there is a safety risk for the pipeline.

[0014] In an embodiment of the present application, the method further includes: when it is determined that there is no operation behavior of the execution component, determining that the engineering vehicle is not operating within the preset warning range, and determining that there is no safety risk for the pipeline.

[0015] In an embodiment of the present application, the second pipeline image includes the center line of the pipeline. The method further includes: when it is determined that there is an operation behavior of the execution component, determining that the engineering vehicle is operating within the preset warning range, determining that there is a safety risk for the pipeline, and the risk level is the first level, and sending an alarm prompt corresponding to the first level; and / or when the second distance is less than or equal to the preset threshold and the image acquisition interval duration between the second pipeline image and the first pipeline image is greater than the preset time difference, determining that the engineering vehicle has a lingering behavior within the preset warning range, determining that there is a safety risk for the pipeline, and the risk level is the second level, and sending an alarm prompt corresponding to the second level.

[0016] In an embodiment of the present application, the number of the second pipeline images is multiple. The method further includes: obtaining multiple second pipeline images before the current time point, and respectively determining the second center point of the engineering vehicle in each second pipeline image; sorting the second center points in chronological order, and sequentially determining the second distance between the second center point and the center line; when the second distance decreases in sequence and the second distance is greater than the first distance, determining that the engineering vehicle is moving in a direction closer to the center line, and determining that there is a safety risk for the pipeline.

[0017] In an embodiment of the present application, the method further includes: when the second distances do not decrease in sequence, determining a third center point of the engineering vehicle in a second pipeline image whose image acquisition interval duration from the first pipeline image is greater than a preset time difference; determining a third distance between the third center point and the center line; when the third distance is less than the first distance, determining that the engineering vehicle is moving away from the center line, and determining that there is no safety risk for the pipeline; when the third distance is greater than the first distance, determining that the engineering vehicle is moving towards the center line, and determining that there is a safety risk for the pipeline.

[0018] A second aspect of the present application provides a processor configured to execute the above method for identifying pipeline safety risks.

[0019] A third aspect of the present application provides a device for identifying pipeline safety risks, including: an image acquisition device for acquiring video data; and the above processor.

[0020] A fourth aspect of the present application provides a machine-readable storage medium, on which instructions are stored, and when the instructions are executed by a processor, the processor is configured to execute the above method for identifying pipeline safety risks.

[0021] Through the above technical solutions, it is possible to quickly and accurately identify the position of the engineering vehicle in the pipeline image, and timely identify the safety risks existing in the pipeline, avoiding pipeline safety accidents caused by the engineering vehicle staying within the preset warning range of the pipeline. While ensuring the safe operation of the pipeline, it also further improves the service life of the pipeline.

[0022] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The drawings are used to provide a further understanding of the embodiments of the present application, and constitute a part of the specification. Together with the following specific implementation, they are used to explain the embodiments of the present application, but do not constitute a limitation to the embodiments of the present application. In the drawings:

[0024] Figure 1 Schematically shows a flowchart of a method for identifying pipeline safety risks according to an embodiment of the present application;

[0025] Figure 2 Schematically shows a flowchart of a method for identifying pipeline safety risks according to another embodiment of the present application;

[0026] Figure 3 Schematically shows a structural block diagram of a device for identifying pipeline safety risks according to an embodiment of the present application;

[0027] Figure 4 Schematically shows the internal structure diagram of a computer device according to an embodiment of the present application. Detailed implementation manners

[0028] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It should be understood that the specific implementation manners described herein are only for explaining and illustrating the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of the present application.

[0029] Figure 1 Schematically shows a flowchart of a method for identifying pipeline safety risks according to an embodiment of the present application. As Figure 1 shown, in an embodiment of the present application, a method for identifying pipeline safety risks is provided, including the following steps:

[0030] Step 101: Obtain a first pipeline image at the current time point, where the first pipeline image includes the center line of the pipeline.

[0031] Step 102: Input the first pipeline image into a target detection model to determine the first center point of the engineering vehicle in the first pipeline image.

[0032] Step 103: In the case where the first distance between the first center point and the center line is less than or equal to a preset threshold, determine that the engineering vehicle is within the preset warning range of the pipeline.

[0033] Step 104: Obtain a second pipeline image at the previous time point and determine the second center point of the engineering vehicle in the second pipeline image.

[0034] Step 105: In the case where the first center point and the second center point are in different positions, determine the second distance from the second center point to the center line.

[0035] Step 106: In the case where the second distance is less than or equal to the preset threshold, determine that the engineering vehicle is within the preset warning range of the pipeline and determine that there is a safety risk in the pipeline.

[0036] The pipeline may refer to a device for transporting gas, liquid, or fluid with solid particles. The pipeline may include gas pipelines, fuel pipelines, pure water pipelines, and oxygen pipelines, etc. Pipeline safety risks may include manufacturing and construction defects, pipeline corrosion, pipeline process misoperations, third-party construction, and pipeline occupation, etc.

[0037] Before identifying pipeline safety risks, image acquisition devices can be deployed in the area where the pipeline is located. The image acquisition devices can be devices with image acquisition functions such as cameras, video cameras, cameras, recorders, etc. Among them, the cameras can be fixed cameras, mobile cameras, and intelligent cameras, etc. For example, in order to be able to obtain a large number of pipeline images in real time, intelligent cameras can be used. After capturing video data, the intelligent cameras can promptly transmit each frame of pipeline image contained in the captured video data to the processor through wireless transmission or wired transmission. Further, the image acquisition devices can be installed along the pipeline. Multiple image acquisition devices can be deployed along the pipeline. By adjusting the acquisition perspectives of each image acquisition device, the acquisition range of the image acquisition device can cover the area where the pipeline is located. Among them, the area where the pipeline is located can refer to the area formed by radiating a preset distance from the pipeline centerline to both sides of the pipeline.

[0038] After the image acquisition devices are deployed in the area where the pipeline is located, the processor can obtain the first pipeline image at the current time point collected by the image acquisition devices. Among them, the first pipeline image can be obtained from the video data collected by the image acquisition devices. The first pipeline image can refer to each frame of pipeline image included in the video data. The centerline of the pipeline can be included in the first pipeline image. After obtaining the first pipeline image, the processor can input the first pipeline image into the target detection model. In the case where an engineering vehicle is included in the first pipeline image, the processor can determine the first center point of the engineering vehicle in the first pipeline image through the target detection model. Among them, the target detection model can refer to the target detection model of the YOLO series. Specifically, it can be the YOLOv5 model. The engineering vehicle can refer to a vehicle that can threaten pipeline safety. For example, the engineering vehicle can include excavation machinery, earthmoving and hauling machinery, rock drilling machinery, etc.

[0039] Before inputting the first pipeline image into the target detection model, the target detection model can be trained first. To train the target detection model, first, a large number of vehicle images can be collected. Then, for every four vehicle images, the four images are respectively flipped, scaled, color gamut changed, and position adjusted to combine the four vehicle images to complete the Mosaic data augmentation of the collected vehicle images, thereby improving the robustness of the target detection model and the detection rate of vehicles. Further, the vehicle images after data augmentation can be input into the target detection model to output the vehicle position, that is, the center point, in the vehicle pictures through the target detection model. To improve the training effect of the model, various training strategies can be adopted during the training process. For example, training strategies such as stochastic gradient descent optimization, cosine learning rate, and selection of the Backbone network can be adopted.

[0040] When determining the first center point of the construction vehicle in the first pipeline image, the processor can determine the first distance between the first center point and the center line of the pipeline in the first pipeline image. When the first distance is less than or equal to a preset threshold, the processor can determine that the construction vehicle is within the preset warning range of the pipeline. Among them, the preset threshold can be 5 meters or 10 meters. If the construction vehicle is within the preset warning range of the pipeline at this time, the processor can obtain the second pipeline image at the previous time point and determine the second center point of the construction vehicle in the second pipeline image. Then, the processor can determine the positions of the first center point and the second center point of the construction vehicle. When the first center point and the second center point are in different positions, that is, the construction vehicle has moved. Further, in order to determine whether the construction vehicle has been in the area where the pipeline is located from the previous time point to the current time point, the processor can determine the second distance from the second center point to the center line of the pipeline. When the second distance is less than or equal to the preset threshold, the processor can determine that the construction vehicle was within the preset warning range of the pipeline at the previous time point and can determine that there is a safety risk with the pipeline. That is, there may be a risk that the pipeline is damaged by the construction of the construction vehicle.

[0041] Through the above technical solution, it is possible to quickly and accurately identify the position of the construction vehicle in the pipeline image, and to timely identify the safety risks existing in the pipeline, avoiding safety accidents of the pipeline caused by the construction vehicle staying within the preset warning range of the pipeline. While ensuring the safe operation of pipeline transportation, it also further improves the service life of the pipeline.

[0042] In one embodiment, when the second distance is less than the preset threshold, determining that the construction vehicle is within the preset warning range of the pipeline and determining that there is a safety risk with the pipeline includes: when the second distance is less than or equal to the preset threshold and the second distance is greater than the first distance, determining that the construction vehicle is moving in the direction of approaching the center line, determining that the construction vehicle is within the preset warning range of the pipeline, and determining that there is a safety risk with the pipeline; when the second distance is less than or equal to the preset threshold and the second distance is less than the first distance, determining that the construction vehicle is moving in the direction away from the center line, determining that the construction vehicle is within the preset warning range of the pipeline, and determining that there is no safety risk with the pipeline.

[0043] When the second distance from the second center point of the engineering vehicle to the center line of the pipeline is less than or equal to a preset threshold and the second distance is greater than the first distance, the processor may determine that the engineering vehicle was within the preset warning range of the pipeline at the previous time point and may determine that the engineering vehicle is moving in a direction closer to the center line of the pipeline. At this time, the processor may determine that there is a safety risk for the pipeline. When the second distance from the second center point of the engineering vehicle to the center line of the pipeline is less than or equal to a preset threshold and the second distance is less than the first distance, the processor may determine that the engineering vehicle was within the preset warning range of the pipeline at the previous time point and may determine that the engineering vehicle is moving in a direction away from the center line. At this time, the processor may determine that there is no safety risk for the pipeline.

[0044] In one embodiment, the first pipeline image is obtained based on the acquired video data. The method further includes: when the first center point and the second center point are in the same position, determining whether there is an operation behavior of the execution component of the engineering vehicle according to the video data; when it is determined that there is an operation behavior of the execution component, determining that the engineering vehicle is operating within the preset warning range and determining that there is a safety risk for the pipeline.

[0045] Among them, the first pipeline image may be obtained based on the acquired video data. After determining the first center point of the engineering vehicle according to the first pipeline image and determining the second center point of the engineering vehicle according to the second pipeline image, the processor may determine whether the engineering vehicle has moved during the time period from the previous time point to the next time point. If the first center point and the second center point of the engineering vehicle are in the same position, the engineering vehicle may not have moved during the time period from the previous time point to the next time point. At this time, the processor may determine whether there is an operation behavior of the execution component of the engineering vehicle according to the video data acquired by the image acquisition device. Among them, the execution component may refer to the component of the construction machinery that performs the operation behavior. For example, if the engineering vehicle is an excavating machine, the corresponding execution component may be the bucket included in the excavating machine. The bucket may be a backhoe bucket or a front shovel bucket. When it is determined that there is an operation behavior of the execution component of the engineering vehicle, the processor may determine that the engineering vehicle is operating within the preset warning range and may determine that there is a safety risk for the pipeline.

[0046] In one embodiment, the method further includes: when it is determined that there is no operation behavior of the execution component, determining that the engineering vehicle is not operating within the preset warning range and determining that there is no safety risk for the pipeline.

[0047] If the first center point and the second center point of the engineering vehicle are at the same position, the engineering vehicle may not have moved during the time period from the previous time point to the next time point. At this time, the processor can determine whether there is an operation behavior of the execution component of the engineering vehicle according to the video data collected by the image acquisition device. In the case of determining that there is no operation behavior of the execution component, the processor can determine that the engineering vehicle is not operating within the preset warning range and can determine that there is no safety risk to the pipeline.

[0048] In one embodiment, the second pipeline image includes the center line of the pipeline. The method further includes: in the case of determining that there is an operation behavior of the execution component, determining that the engineering vehicle is operating within the preset warning range, determining that there is a safety risk to the pipeline, and the risk level is the first level, and issuing an alarm prompt corresponding to the first level; and / or in the case where the second distance is less than or equal to the preset threshold and the image acquisition interval duration between the second pipeline image and the first pipeline image is greater than the preset time difference, determining that the engineering vehicle has a staying behavior within the preset warning range, determining that there is a safety risk to the pipeline, and the risk level is the second level, and issuing an alarm prompt corresponding to the second level.

[0049] Among them, the second pipeline image may include the center line of the pipeline. In the case of determining that there is an operation behavior of the execution component of the engineering vehicle, the processor can determine that the engineering vehicle is operating within the preset warning range and can determine that there is a safety risk to the pipeline. At this time, the processor can determine that the risk level of the pipeline is the first level and can issue an alarm prompt corresponding to the first level. Among them, the alarm prompt can be sent by email, text message, and mobile application. After the user receives the alarm prompt, the engineering vehicle within the preset warning range of the pipeline can be controlled in a timely manner.

[0050] In the case where the second distance from the second center point of the engineering vehicle to the center line of the pipeline is less than or equal to the preset threshold and the image acquisition interval duration between the second pipeline image and the first pipeline image is greater than the preset time difference, the processor can determine that the engineering vehicle has a staying behavior within the warning range. That is, the moving duration of the engineering vehicle within the preset warning range exceeds the preset time difference. Among them, the preset time difference can be set in advance according to the actual situation. For example, it can be 3 minutes or 5 minutes. In the case of determining that the engineering vehicle has a staying behavior within the preset warning range, the processor can determine that there is a safety risk to the pipeline. At this time, the processor can determine the risk level of the pipeline as the second level and can issue an alarm prompt corresponding to the second level.

[0051] In one embodiment, the number of second pipeline images is multiple, and the method further includes: obtaining a plurality of second pipeline images before the current time point, and respectively determining second center points of the construction vehicle in each of the second pipeline images; sorting the second center points in chronological order, and sequentially determining second distances between the second center points and the center line; in the case where the second distances decrease sequentially and the second distances are greater than the first distance, determining that the construction vehicle is moving in a direction close to the center line, and determining that there is a safety risk for the pipeline.

[0052] Wherein, the number of second pipeline images may include multiple. The processor may obtain a plurality of second pipeline images before the current time point, and may respectively determine second center points of the construction vehicle in each of the second pipeline images. Then, the processor may sort the second center points of the construction vehicle in chronological order, and may sequentially determine second distances between the second center points of the construction vehicle and the center line of the pipeline. In the case where the second distances decrease sequentially and the second distances are greater than the first distance, the processor may determine that the construction vehicle is moving in a direction close to the center line of the pipeline. At this time, the processor may determine that there is a safety risk for the pipeline.

[0053] For example, before the current time point may include the second pipeline image B3 corresponding to the moment t - 3, the second pipeline image B2 corresponding to the moment t - 2, and the second pipeline image B1 corresponding to the moment t - 1. Wherein, the distance between the second center point of the construction vehicle in the second pipeline image B3 and the center line of the pipeline is d3, the distance between the second center point of the construction vehicle in the second pipeline image B2 and the center line of the pipeline is d2, and the distance between the second center point of the construction vehicle in the second pipeline image B1 and the center line of the pipeline is d1. And the distance between the first center point of the construction vehicle in the first pipeline image corresponding to the current time point t and the center line of the pipeline is d0. If d3 > d2 > d1 and d1 > d0, then the processor may determine that the construction vehicle is moving in a direction close to the center line of the pipeline.

[0054] In one embodiment, the method further includes: in the case where the second distances are not decreasing sequentially, determining third center points of the construction vehicle in second pipeline images whose image acquisition interval duration from the first pipeline image is greater than a preset time difference; determining third distances between the third center points and the center line; in the case where the third distances are less than the first distance, determining that the construction vehicle is moving in a direction away from the center line, and determining that there is no safety risk for the pipeline; in the case where the third distances are greater than the first distance, determining that the construction vehicle is moving in a direction close to the center line, and determining that there is a safety risk for the pipeline.

[0055] When the second distance between the second central point of the engineering vehicle and the center line of the pipeline does not decrease successively, the processor may determine a third central point of the engineering vehicle in a second pipeline image whose image acquisition interval duration from the first pipeline image is greater than a preset time difference. Then, the processor may determine a third distance between the third central point of the engineering vehicle and the center line of the pipeline. When the third distance is less than the first distance, the processor may determine that the engineering vehicle is moving away from the center line. At this time, the processor may determine that there is no safety risk for the pipeline. When the third distance of the engineering vehicle is greater than the first distance, the processor may determine that the engineering vehicle is moving towards the center point of the pipeline. At this time, the processor may determine that there is a safety risk for the pipeline.

[0056] In one embodiment, as Figure 2 shown, a flowchart of another method for identifying pipeline safety risks is provided.

[0057] The processor may obtain a monitoring screen. The monitoring screen may be video data collected by an image acquisition device. Then the processor may input the pipeline image at the current time point in the monitoring screen into a target detection model to detect large vehicles in the pipeline image through the target detection model. If a large vehicle is included in the pipeline image, the processor may determine the central point of the large vehicle in the pipeline image at the current time point through the target detection model. Then, the processor may determine the distance from the central point of the large vehicle to the center line of the pipeline. Based on the distance, it can be determined whether there is a large vehicle within the preset warning range of the pipeline. Specifically, when the distance from the central point of the large vehicle to the center line of the pipeline is greater than a preset threshold, the processor may determine that there is no large vehicle within the preset warning range of the pipeline. At this time, the processor may obtain the monitoring screen again.

[0058] When the distance from the center point of a large vehicle to the center line of a pipeline is less than or equal to a preset threshold, the processor can determine that there is a large vehicle within the preset warning range of the pipeline. Then, the processor can match the pipeline image at the previous time point in the monitoring screen and determine the center point of the large vehicle in the pipeline image at the previous time point. When determining the center point of the large vehicle in the pipeline image at the previous time point, the processor can analyze the trajectory of the large vehicle. Specifically, the processor can determine the trajectory of the large vehicle based on the position of the center point of the large vehicle in the pipeline image at the previous time point and the center point of the large vehicle in the pipeline image at the current time point. Based on the trajectory of the large vehicle, it can be determined whether the large vehicle has a lingering behavior within the preset warning range of the pipeline, and it can be determined whether the large vehicle is constructing within the preset warning range of the pipeline. If the large vehicle does not have a lingering behavior or a construction behavior within the preset warning range of the pipeline, the processor can obtain the monitoring screen again. If the large vehicle has a lingering behavior or a construction behavior within the preset warning range of the pipeline, the processor can determine that there is a safety risk in the pipeline. When determining that there is a safety risk in the pipeline, the processor can send an alarm prompt and the position information of the large vehicle to prompt the user to control the large vehicle located within the preset warning range, thereby avoiding safety accidents of the pipeline.

[0059] Through the above technical solution, it is possible to quickly and accurately identify the position of the engineering vehicle in the pipeline image, timely identify the safety risks existing in the pipeline, avoid affecting the normal operation of the pipeline due to the engineering vehicle staying in the preset warning range of the pipeline for a long time, and also avoid safety accidents of the pipeline caused by the engineering vehicle operating within the preset warning range. While ensuring the safe operation of the pipeline, it also further improves the service life of the pipeline.

[0060] Figure 1-2 It is a schematic flowchart of a method for identifying pipeline safety risks in an embodiment. It should be understood that although Figure 1-2 the steps in the flowchart are shown in sequence according to the indication of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, Figure 1-2 at least a part of the steps in

[0061] In an embodiment, as Figure 3As shown, a device for identifying pipeline safety risks is provided, including an image acquisition device 301 for acquiring video data, and a processor 302. Among them, the video data may include each frame of pipeline image.

[0062] An embodiment of the present application provides a storage medium, on which a program is stored, and when the program is executed by a processor, the method for identifying pipeline safety risks described above is implemented.

[0063] An embodiment of the present application provides a processor, and the processor is used to run a program. When the program runs, the method for identifying pipeline safety risks described above is executed.

[0064] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as Figure 4 shown. The computer device includes a processor A01, a network interface A02, a memory (not shown in the figure), and a database (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02, and a database (not shown in the figure). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The database of the computer device is used to store data such as pipeline images. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program B02 is executed by the processor A01, a method for identifying pipeline safety risks is implemented.

[0065] Those skilled in the art can understand that Figure 4 the structure shown in

[0066] An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored on the memory and executable on the processor. When the processor executes the program, the following steps are implemented: obtaining a first pipeline image at the current time point, where the first pipeline image includes the center line of the pipeline; inputting the first pipeline image into a target detection model to determine a first center point of the engineering vehicle in the first pipeline image; when the first distance between the first center point and the center line is less than or equal to a preset threshold, determining that the engineering vehicle is within a preset warning range of the pipeline; obtaining a second pipeline image at the previous time point and determining a second center point of the engineering vehicle in the second pipeline image; when the first center point and the second center point are in different positions, determining a second distance from the second center point to the center line; when the second distance is less than or equal to the preset threshold, determining that the engineering vehicle is within a preset warning range of the pipeline and determining that there is a safety risk for the pipeline.

[0067] In one embodiment, when the second distance is less than the preset threshold, determining that the engineering vehicle is within a preset warning range of the pipeline and determining that there is a safety risk for the pipeline includes: when the second distance is less than or equal to the preset threshold and the second distance is greater than the first distance, determining that the engineering vehicle is moving in a direction closer to the center line, determining that the engineering vehicle is within a preset warning range of the pipeline, and determining that there is a safety risk for the pipeline; when the second distance is less than or equal to the preset threshold and the second distance is less than the first distance, determining that the engineering vehicle is moving in a direction away from the center line, determining that the engineering vehicle is within a preset warning range of the pipeline, and determining that there is no safety risk for the pipeline.

[0068] In one embodiment, the first pipeline image is obtained from the collected video data. The method further includes: when the first center point and the second center point are in the same position, judging whether there is an operation behavior of the execution component of the engineering vehicle according to the video data; when it is determined that there is an operation behavior of the execution component, determining that the engineering vehicle is operating within a preset warning range and determining that there is a safety risk for the pipeline.

[0069] In one embodiment, the method further includes: when it is determined that there is no operation behavior of the execution component, determining that the engineering vehicle is not operating within a preset warning range and determining that there is no safety risk for the pipeline.

[0070] In one embodiment, the second pipeline image includes the center line of the pipeline, and the method further includes: when it is determined that the execution component has an operation behavior, determining that the engineering vehicle is operating within a preset early warning range, determining that the pipeline has a safety risk, and the risk level is the first level, and issuing an alarm prompt corresponding to the first level; and / or when the second distance is less than or equal to a preset threshold and the image acquisition interval duration between the second pipeline image and the first pipeline image is greater than a preset time difference, determining that the engineering vehicle has a lingering behavior within the preset early warning range, determining that the pipeline has a safety risk, and the risk level is the second level, and issuing an alarm prompt corresponding to the second level.

[0071] In one embodiment, the number of the second pipeline images is multiple, and the method further includes: acquiring a plurality of second pipeline images before the current time point, and respectively determining the second center points of the engineering vehicle in each second pipeline image; sorting the second center points in chronological order, and sequentially determining the second distances between the second center points and the center line; when the second distances decrease in sequence and the second distance is greater than the first distance, determining that the engineering vehicle is moving in a direction close to the center line, and determining that the pipeline has a safety risk.

[0072] In one embodiment, the method further includes: when the second distances do not decrease in sequence, determining the third center point of the engineering vehicle in the second pipeline image whose image acquisition interval duration from the first pipeline image is greater than the preset time difference; determining the third distance between the third center point and the center line; when the third distance is less than the first distance, determining that the engineering vehicle is moving in a direction away from the center line, and determining that the pipeline has no safety risk; when the third distance is greater than the first distance, determining that the engineering vehicle is moving in a direction close to the center line, and determining that the pipeline has a safety risk.

[0073] The present application also provides a computer program product, which when executed on a data processing device, is adapted to execute a program initialized with the following method steps: acquiring a first pipeline image at the current time point, where the first pipeline image includes the center line of the pipeline; inputting the first pipeline image into a target detection model to determine the first center point of the engineering vehicle in the first pipeline image; when the first distance between the first center point and the center line is less than or equal to a preset threshold, determining that the engineering vehicle is located within the preset early warning range of the pipeline; acquiring a second pipeline image at the previous time point, and determining the second center point of the engineering vehicle in the second pipeline image; when the first center point and the second center point are in different positions, determining the second distance from the second center point to the center line; when the second distance is less than or equal to a preset threshold, determining that the engineering vehicle is located within the preset early warning range of the pipeline, and determining that the pipeline has a safety risk.

[0074] In one embodiment, when the second distance is less than a preset threshold, it is determined that the engineering vehicle is within the preset early warning range of the pipeline, and determining that the pipeline has a safety risk includes: when the second distance is less than or equal to the preset threshold and the second distance is greater than the first distance, it is determined that the engineering vehicle is moving in the direction of approaching the center line, it is determined that the engineering vehicle is within the preset early warning range of the pipeline, and it is determined that the pipeline has a safety risk; when the second distance is less than or equal to the preset threshold and the second distance is less than the first distance, it is determined that the engineering vehicle is moving in the direction away from the center line, it is determined that the engineering vehicle is within the preset early warning range of the pipeline, and it is determined that the pipeline has no safety risk.

[0075] In one embodiment, the first pipeline image is obtained from the collected video data, and the method further includes: when the first center point and the second center point are in the same position, determining whether there is an operation behavior of the execution component of the engineering vehicle according to the video data; when it is determined that there is an operation behavior of the execution component, it is determined that the engineering vehicle is operating within the preset early warning range, and it is determined that the pipeline has a safety risk.

[0076] In one embodiment, the method further includes: when it is determined that there is no operation behavior of the execution component, it is determined that the engineering vehicle is not operating within the preset early warning range, and it is determined that the pipeline has no safety risk.

[0077] In one embodiment, the second pipeline image includes the center line of the pipeline, and the method further includes: when it is determined that there is an operation behavior of the execution component, it is determined that the engineering vehicle is operating within the preset early warning range, it is determined that the pipeline has a safety risk, and the risk level is the first level, and an alarm prompt corresponding to the first level is issued; and / or when the second distance is less than or equal to the preset threshold and the image acquisition interval duration between the second pipeline image and the first pipeline image is greater than the preset time difference, it is determined that the engineering vehicle has a lingering behavior within the preset early warning range, it is determined that the pipeline has a safety risk, and the risk level is the second level, and an alarm prompt corresponding to the second level is issued.

[0078] In one embodiment, the number of the second pipeline images is multiple, and the method further includes: obtaining multiple second pipeline images before the current time point, and respectively determining the second center point of the engineering vehicle in each second pipeline image; sorting the second center points in chronological order, and sequentially determining the second distance between the second center point and the center line; when the second distance decreases in sequence and the second distance is greater than the first distance, it is determined that the engineering vehicle is moving in the direction of approaching the center line, and it is determined that the pipeline has a safety risk.

[0079] In one embodiment, the method further includes: when the second distances do not decrease sequentially, determining a third center point of the engineering vehicle in a second pipeline image whose image acquisition interval duration from the first pipeline image is greater than a preset time difference; determining a third distance between the third center point and the center line; when the third distance is less than the first distance, determining that the engineering vehicle is moving away from the center line and determining that there is no safety risk for the pipeline; when the third distance is greater than the first distance, determining that the engineering vehicle is moving towards the center line and determining that there is a safety risk for the pipeline.

[0080] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0081] The present application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate means for realizing the functions specified in Figure 1 one or more of the processes or multiple processes and / or blocks Figure 1 one or more of the blocks.

[0082] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means realizes the functions specified in Figure 1 one or more of the processes or multiple processes and / or blocks Figure 1 one or more of the blocks.

[0083] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide means for realizing the functions specified in Figure 1 one or more of the processes or multiple processes and / or blocks Figure 1The steps for the functions specified in one or more boxes.

[0084] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0085] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0086] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0087] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0088] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for identifying pipeline safety risks, characterized in that, The method includes: Obtain a first pipeline image at the current time point, where the first pipeline image includes the center line of the pipeline; Input the first pipeline image into a target detection model to determine a first center point of the construction vehicle in the first pipeline image; When the first distance between the first center point and the center line is less than or equal to a preset threshold, determine that the construction vehicle is within a preset warning range of the pipeline; Obtain a second pipeline image at the previous time point and determine a second center point of the construction vehicle in the second pipeline image; When the first center point and the second center point are in different positions, determine a second distance from the second center point to the center line; When the second distance is less than or equal to the preset threshold, determine that the construction vehicle is within the preset warning range of the pipeline and determine that there is a safety risk for the pipeline; Wherein, when the second distance is less than the preset threshold, determining that the construction vehicle is within the preset warning range of the pipeline and determining that there is a safety risk for the pipeline includes: When the second distance is less than or equal to the preset threshold and the second distance is greater than the first distance, determine that the construction vehicle is moving in a direction close to the center line, determine that the construction vehicle is within the preset warning range of the pipeline, and determine that there is a safety risk for the pipeline; When the second distance is less than or equal to the preset threshold and the second distance is less than the first distance, determine that the construction vehicle is moving in a direction away from the center line, determine that the construction vehicle is within the preset warning range of the pipeline, and determine that there is no safety risk for the pipeline; Wherein, the first pipeline image is obtained from the collected video data. When the first center point and the second center point are in the same position, determine whether there is an operation behavior of the execution component of the construction vehicle according to the video data; When it is determined that the execution component has an operation behavior, determine that the construction vehicle is operating within the preset warning range and determine that there is a safety risk for the pipeline; When it is determined that the execution component does not have an operation behavior, determine that the construction vehicle is not operating within the preset warning range and determine that there is no safety risk for the pipeline.

2. The method for identifying pipeline safety risks according to claim 1, wherein The second pipeline image includes the center line of the pipeline, and the method further includes: When it is determined that the execution component has an operation behavior, determine that the construction vehicle is operating within the preset warning range, determine that there is a safety risk for the pipeline, and the risk level is the first level, and issue an alarm prompt corresponding to the first level; and / or When the second distance is less than or equal to the preset threshold and the image acquisition interval duration between the second pipeline image and the first pipeline image is greater than a preset time difference, determine that the construction vehicle has a staying behavior within the preset warning range, determine that there is a safety risk for the pipeline, and the risk level is the second level, and issue an alarm prompt corresponding to the second level.

3. The method for identifying pipeline safety risks according to claim 1, wherein The number of the second pipeline images is multiple, and the method further includes: Obtaining a plurality of second pipeline images before the current time point, and respectively determining second center points of the engineering vehicle in each of the second pipeline images; Sorting the second center points in chronological order, and successively determining second distances between the second center points and the center line; When the second distances decrease successively and the second distances are greater than the first distance, determining that the engineering vehicle is moving in a direction close to the center line, and determining that there is a safety risk for the pipeline.

4. The method for identifying pipeline safety risks according to claim 3, wherein, The method further includes: When the second distances do not decrease successively, determining third center points of the engineering vehicle in the second pipeline images whose image acquisition interval duration from the first pipeline image is greater than a preset time difference; Determining third distances between the third center points and the center line; When the third distances are less than the first distance, determining that the engineering vehicle is moving in a direction away from the center line, and determining that there is no safety risk for the pipeline; When the third distances are greater than the first distance, determining that the engineering vehicle is moving in a direction close to the center line, and determining that there is a safety risk for the pipeline.

5. A processor, characterized in that, Configured to execute the method for identifying pipeline safety risks according to any one of claims 1 to 4.

6. A device for identifying pipeline safety risks, characterized in that, The apparatus includes: An image acquisition device for acquiring video data; and A processor according to claim 5.

7. A machine-readable storage medium having instructions stored thereon, characterized in that, When executed by the processor, the instruction causes the processor to be configured to execute the method for identifying pipeline safety risks according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Alarming system for safety of ultralimit construction operation of railway ballast cleaning vehicle

    CN103264713A

  • Engineering vehicle obstacle avoidance control method and device and mechanical equipment

    CN113268055A