Oil and gas pipeline monitoring method, monitoring component and computer storage medium
By controlling the monitoring components to move in the oil and gas pipeline area and issue an alarm when the target object is detected, the data processing volume is reduced, and the problem of excessive data processing burden in the prior art is solved, and efficient pipeline monitoring is achieved.
Patent Information
- Application Number
- CN202110430032.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-21
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2041-04-21
AI Technical Summary
In the existing oil and gas pipeline monitoring methods, the video data collected by multiple cameras is large, resulting in excessive data processing burden.
By controlling the monitoring area of the monitoring component to move in the pipeline area with a predetermined trajectory, and stop moving when a target object appears in the monitoring area, an alarm message is issued when the stop time exceeds the target time, reducing the data processing amount.
The monitoring of larger pipeline areas is realized, the data processing volume is reduced, and the problem of excessive data volume when multiple cameras collect and analyze data is solved.
Smart Images

Figure CN115225852B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of oil and gas pipelines, and in particular to an oil and gas pipeline monitoring method, a monitoring component, and a computer storage medium. Background Art
[0002] The safety of oil and gas pipelines and their surrounding areas is of great importance, so they are monitored. The monitoring method is directly related to whether the pipeline can continue to operate safely.
[0003] In a current oil and gas pipeline monitoring method, multiple cameras are set up in the pipeline area to monitor different areas in the pipeline area, and the video data collected by these multiple cameras is analyzed to determine whether there are objects that may damage the pipeline. When there are objects that may damage the pipeline, an alarm is issued.
[0004] However, the above method analyzes the video data collected by multiple cameras, resulting in a large amount of data processing. Summary of the Invention
[0005] The present invention provides an oil and gas pipeline monitoring method, monitoring component, and computer storage medium. The technical solution is as follows:
[0006] According to a first aspect of the present application, a method for monitoring an oil and gas pipeline is provided, for use in monitoring a pipeline area by a monitoring component, the method comprising:
[0007] Controlling the monitoring area of the monitoring component so that the monitoring area of the monitoring component moves in the pipeline area along a predetermined trajectory;
[0008] When a target object exists in the monitoring area of the monitoring component, stopping moving the monitoring area of the monitoring component;
[0009] When the monitoring area of the monitoring component stops for a period exceeding the target period, an alarm message is issued.
[0010] Optionally, when a target object exists in the monitoring area of the monitoring component, before stopping the movement of the monitoring area of the monitoring component, the method includes:
[0011] Obtaining video data of the monitoring area currently collected by the monitoring component;
[0012] determining whether a data frame in the video data includes an image frame including the target object, the data frame including at least one image frame;
[0013] When the data frame includes an image frame including the target object, it is determined that the target object exists in the monitoring area of the monitoring component.
[0014] Optionally, determining whether a data frame in the video data includes an image frame including the target object includes:
[0015] performing image recognition on at least one image frame in each data frame in the video data;
[0016] When it is recognized that the target object exists in any one of the at least one image frame, it is determined that the data frame where the any one image frame is located is a data frame including the target object.
[0017] Optionally, the monitoring component includes a pan-tilt head and a camera mounted on the pan-tilt head, and controlling the monitoring area of the monitoring component so that the monitoring area of the monitoring component moves in the pipeline area along a predetermined trajectory includes:
[0018] The direction of the camera is adjusted by controlling the pan / tilt head so that the monitoring area of the monitoring component moves in the pipeline area along a predetermined trajectory.
[0019] Optionally, the monitoring component includes a track and a camera mounted on the track, and controlling the monitoring area of the monitoring component so that the monitoring area of the monitoring component moves in the pipeline area along a predetermined trajectory includes:
[0020] The camera is controlled to move on the track so that the monitoring area of the monitoring component moves in the pipeline area along a predetermined track.
[0021] Optionally, the target objects include construction machinery and people whose number is greater than the target number.
[0022] Optionally, when a target object exists in the monitoring area of the monitoring component, after stopping moving the monitoring area of the monitoring component, the method further includes:
[0023] When the target object does not exist in the monitoring area of the monitoring component, the monitoring area of the monitoring component continues to move.
[0024] According to another aspect of the present application, a monitoring assembly is provided for monitoring a pipeline area, the monitoring assembly comprising:
[0025] a control module, configured to control the monitoring area of the monitoring component so that the monitoring area of the monitoring component moves in the pipeline area along a predetermined trajectory;
[0026] A stopping module, configured to stop moving the monitoring area of the monitoring component when a target object exists in the monitoring area of the monitoring component;
[0027] The alarm module is used to issue an alarm message when the monitoring area of the monitoring component stops for a period of time exceeding a target value.
[0028] According to another aspect of the present application, a monitoring component is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the oil and gas pipeline monitoring method as described above.
[0029] According to another aspect of the present application, a computer storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the oil and gas pipeline monitoring method as described above.
[0030] According to another aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method provided in any of the above optional implementations.
[0031] The beneficial effects of the technical solutions provided in the embodiments of the present application include at least:
[0032] By controlling the monitoring area of the monitoring component to move within the pipeline along a predetermined trajectory, and stopping when a target object appears in the monitoring area, and issuing an alarm when the stopping duration exceeds the target duration, a larger pipeline area can be monitored by processing the images of the monitoring area obtained by a single monitoring component, with less data processing. This solves the problem of large data volumes caused by analyzing data collected by multiple cameras in related technologies, achieving the effect of reducing data processing volume. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. 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 any creative work.
[0034] Figure 1 is a schematic diagram of a predetermined trajectory of the oil and gas pipeline monitoring method provided in an embodiment of the present application;
[0035] Figure 2This is a flow chart of the oil and gas pipeline monitoring method provided by an embodiment of the present application;
[0036] Figure 3 This is a flow chart of the oil and gas pipeline monitoring method provided by an embodiment of the present application;
[0037] Figure 4 This is a schematic diagram of a monitoring component provided in an embodiment of the present application;
[0038] Figure 5 This is a schematic diagram of a server structure provided in an embodiment of the present application.
[0039] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0040] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0041] Figure 1 1 is a schematic diagram of a predetermined trajectory of an oil and gas pipeline monitoring method according to an embodiment of the present application, wherein the predetermined trajectory is a closed graphic trajectory 10, so that the monitoring device runs along the predetermined trajectory;
[0042] 1) A closed figure is a figure that is closed in its dimension.
[0043] 2) A closed trajectory is a closed trajectory that circumscribes a high-risk area within an oil or gas pipeline, as determined by technical personnel. The high-risk area is determined through a segmented survey and assessment of the pipeline and its surrounding areas, determined by local personnel based on their experience and final survey results.
[0044] Figure 2 This is a flow chart of an oil and gas pipeline monitoring method provided by an embodiment of the present application, which is used for monitoring a pipeline area by a monitoring component. The method may include the following steps:
[0045] Step 201: Control the monitoring area of the monitoring component so that the monitoring area of the monitoring component moves in the pipeline area along a predetermined trajectory.
[0046] Step 202: When a target object exists in the monitoring area of the monitoring component, the monitoring area of the monitoring component is stopped from moving.
[0047] Step 203: When the monitoring area of the monitoring component stops for a period exceeding the target period, an alarm message is issued.
[0048] In summary, the oil and gas pipeline monitoring method provided in the embodiments of the present application controls the monitoring area of the monitoring component to move within the pipeline area along a predetermined trajectory. When a target object appears in the monitoring area, the monitoring component stops moving. When the stopping duration exceeds a target duration, an alarm is issued. This allows the monitoring of a larger pipeline area to be monitored by processing images of the monitoring area acquired by a single monitoring component, with less data processing. This method solves the problem of large data volumes associated with analyzing data collected by multiple cameras in related technologies, thereby reducing the amount of data processing required.
[0049] Figure 3 This is a flow chart of another oil and gas pipeline monitoring method provided by an embodiment of the present application, which is used for monitoring a pipeline area by a monitoring component. The method may include the following steps:
[0050] Step 301: Control the monitoring area of the monitoring component so that the monitoring area of the monitoring component moves in the pipeline area along a predetermined trajectory.
[0051] The monitoring area of a monitoring component can refer to the area corresponding to the video data collected by the monitoring component. The predetermined trajectory can refer to the movement trajectory of the center of the monitoring area. The pipeline area can refer to a high-risk area within an area where pipelines are located. The monitoring component is placed on a higher, slidable bracket connected to a track. By controlling the monitoring component to slide on the track, the monitoring area of the monitoring component can be moved along the predetermined trajectory.
[0052] Depending on the structure of the monitoring component, step 301 may include multiple execution modes:
[0053] 1) The monitoring component includes a pan-tilt head and a camera mounted on the pan-tilt head. In this structure, step 301 may include:
[0054] The direction of the camera is adjusted by controlling the pan / tilt head so that the monitoring area of the monitoring component moves in the pipeline area along a predetermined trajectory.
[0055] A pan / tilt head (PTZ) is a device used to mount and secure a camera. Its swivel capability allows it to rotate the camera both vertically and horizontally. This allows for multi-directional surveillance.
[0056] 2) The monitoring assembly includes a track and a camera mounted on the track. In this structure, step 301 may include:
[0057] The track is a ring-shaped structure connected end to end in the pipeline area. The camera is connected to a sliding bracket installed on the track, and can move smoothly in the pipeline area through the sliding bracket to expand the monitoring range.
[0058] In the embodiments of the present application, the monitoring area of the monitoring assembly can be moved by at least one of the above methods. That is, the above two methods can be combined. For example, the monitoring assembly includes a track, a sliding bracket on the track, a pan / tilt head mounted on the sliding bracket, and a camera mounted on the pan / tilt head. The camera can rotate up and down, left and right as the pan / tilt head rotates, and simultaneously moves along the track with the sliding bracket.
[0059] The embodiments of the present application can be applied to a control device of a monitoring component. The control device can be integrated into the monitoring component, or can be a device (such as a server) that can establish a wired or wireless connection with the monitoring component.
[0060] Step 302: Obtain the video data of the monitoring area currently collected by the monitoring component.
[0061] When the monitoring area of the monitoring component moves in the pipeline area along a predetermined trajectory, video data of the monitoring area currently collected by the monitoring component can be obtained.
[0062] The control device of the monitoring component can quickly obtain the video data in the current monitoring area, wherein the video data is composed of multiple continuous video frames, wherein every n video frames constitute a data frame (n is greater than or equal to 1).
[0063] Obtain the video data of the monitoring area currently collected by the monitoring component. You can collect data on the monitoring video in the monitoring area within the current time segment (such as one minute). Collecting video data can obtain the current situation faster and better, making it easier to determine whether the pipeline area is safe.
[0064] Step 303: Perform image recognition on at least one image frame in each data frame in the video data.
[0065] The data frames in video data consist of multiple consecutive image frames. The specific number of frames can be determined based on the accuracy and speed requirements of the project. If accuracy is high, the number of frames can be fewer; conversely, if accuracy is low, the number of frames can be more. The number of frames is only one factor affecting image recognition accuracy and can be adjusted. It does not directly determine the accuracy of the data collected by the surveillance system.
[0066] The control device of the monitoring component can perform image recognition on at least one image frame in each data frame in the video data through a target detection algorithm.
[0067] Step 304 : When it is identified that a target object exists in any image frame of the at least one image frame, determine that the data frame where the any image frame is located is a data frame including the target object.
[0068] The data frame in the video data includes at least one image frame. The control device of the monitoring component can determine whether the data frame in which any image frame is located is a data frame including the target object by determining whether large or medium-sized construction machinery appears in any image frame in the data frame and whether the number of people is greater than the specified number (such as 3 people).
[0069] Large and medium-sized construction machinery include: earthwork and road construction machinery, pile-driving machinery, lifting machinery, horizontal transport machinery, vertical transport machinery, concrete and mortar machinery, processing machinery, pump machinery, welding machinery, power machinery, and underground engineering machinery. The large and medium-sized machinery mentioned here are merely examples and are not limited to these.
[0070] The monitoring scheme for determining whether there is an image frame including a target object in a data frame may include: after initialization is completed (the state of no target object in the image frame during initialization is marked as 0, that is, "no abnormality"), when the monitoring area of the monitoring component begins to move along the predetermined trajectory, when the control device of the monitoring component detects an abnormality, that is, the presence of large or medium-sized construction machinery and the number of people is greater than the target number (such as 3 people), then the abnormal image frame is marked as "1", otherwise it is marked as "0". Taking each data frame as an example containing 3 image frames, if there is an image frame marked as "1", the data frame where the image frame is located is also marked as "1". When all 3 video frames are marked as "0", the corresponding data frame can be marked as "0". In other words, as long as large or medium-sized construction machinery or the number of people is greater than 3 in any image frame detected in the data frame, the data frame will be marked as "1", that is, it is considered that there is an image frame containing the target object in the data frame in the video data. As shown in Table 1 below:
[0071] Table 1
[0072]
[0073] As shown in Table 1, each row represents a data frame, which includes three image frames. As shown in the third row of Table 1, when the first image frame is marked as "1" and the remaining two image frames are marked as "0", the data frame containing these three image frames is marked as "1".
[0074] Step 305: When there is an image frame in the data frame including the target object, it is determined that there is a target object in the monitoring area of the monitoring component.
[0075] That is, when a data frame containing a target object is detected in the acquired video data, it indicates that large or medium-sized construction machinery has appeared in the current monitoring area and the number of people exceeds the specified number, and the current monitoring area is in a dangerous state.
[0076] Step 306: When a target object exists in the monitoring area of the monitoring component, stop moving the monitoring area of the monitoring component.
[0077] That is, when the monitoring area detects the presence of large or medium-sized construction machinery and the number of people exceeds the target number, the monitoring area of the monitoring component will stop moving, and the monitoring component will focus on monitoring the monitoring area where the target object currently exists.
[0078] In one exemplary embodiment, after initialization is complete, as the monitoring area of the monitoring component moves along a predetermined trajectory, the data frames and image frames of the video data are marked according to the above scheme. If the previous data frame is marked as "0" and the current data frame is marked as "1", it indicates that the number of large or medium-sized construction machinery and people exceeds the specified number (such as 3 people). The monitoring area of the monitoring component can stop moving and focus on monitoring the monitoring area where the target object is currently located. If the target object is always present, the monitoring area can remain stationary.
[0079] In addition, this monitoring feedback mechanism can also be applied to other technical fields, and this application example does not limit it.
[0080] Step 307: When the monitoring area of the monitoring component stops for a period exceeding the target period, an alarm message is issued.
[0081] That is, in this monitoring area, when the number of large or medium-sized construction machinery and people exceeds the specified number (such as 3 people) and the stay time exceeds the target time (such as 5 minutes), an alarm information will be transmitted to the monitoring background to provide timely feedback on the emergency and facilitate timely handling by the staff.
[0082] In an exemplary embodiment, when the monitoring area of the monitoring component moves along a predetermined trajectory, the data frames and image frames of the video data are marked according to the above scheme. If two adjacent data frames are always marked as "1", it means that the target object has always existed, the monitoring area stops moving, and when the stop time exceeds 5 minutes, an alarm message is issued.
[0083] In addition, this monitoring feedback mechanism can also be applied to other technical fields, and this application example does not limit it.
[0084] Step 308: When there is no target object in the monitoring area of the monitoring component, continue to move the monitoring area of the monitoring component.
[0085] If the target object is not identified in the monitoring area in step 303, step 308 may be executed to continue moving the monitoring area of the monitoring component.
[0086] That is, when there are no large or medium-sized construction machinery and more than 3 people in the monitoring area, or when large and medium-sized construction machinery and more than 3 people appear in the monitoring area for a short time (no more than 5 minutes), it is considered safe in the monitoring area, and the monitoring area of the monitoring component moves according to the predetermined trajectory; and when large and medium-sized construction machinery and more than 3 people appear and stay for more than 5 minutes, an alarm message can be issued. After the staff receives the alarm message and processes it in time, the monitoring component can immediately resume cruising and continue to move the monitoring area of the monitoring component, achieving fixed-point monitoring - timeout alarm and immediate movement according to the predetermined trajectory after the abnormal target disappears, saving time and efficiency.
[0087] In an exemplary embodiment, when the monitoring area of the monitoring component moves along a predetermined trajectory, the data frames and image frames of the video data are marked according to the above scheme. If the previous data frame is marked as "1" and the current data frame is marked as "0", it indicates that the target object disappears and the monitoring area of the monitoring component continues to move; if two adjacent data frames are always marked as "0", it indicates that the target object has not appeared and the monitoring area of the monitoring component needs to keep moving along the predetermined trajectory.
[0088] In addition, such a monitoring component performs fixed-point monitoring after detecting an abnormal target - a timeout alarm and a monitoring solution in which the monitoring area immediately moves along a predetermined trajectory after the abnormal target disappears can also be applied to other technical fields, and this application example does not limit it.
[0089] In summary, the oil and gas pipeline monitoring method provided in the embodiments of the present application controls the monitoring area of the monitoring component to move within the pipeline area along a predetermined trajectory. When a target object appears in the monitoring area, the monitoring component stops moving. When the stopping duration exceeds a target duration, an alarm is issued. This allows the monitoring of a larger pipeline area to be monitored by processing images of the monitoring area acquired by a single monitoring component, with less data processing. This method solves the problem of large data volumes associated with analyzing data collected by multiple cameras in related technologies, thereby reducing the amount of data processing required.
[0090] Figure 4 4 is a schematic diagram of a monitoring component 400 provided in an embodiment of the present application, including a control module 410, a stop module 420, and an alarm module 430:
[0091] The control module 410 is used to control the monitoring area of the monitoring component. By controlling the monitoring area of the monitoring component, the monitoring area of the monitoring component moves in the pipeline area along a predetermined trajectory and resumes movement of the monitoring area of the monitoring component after the target object disappears, and continues to move in the pipeline area along the predetermined trajectory.
[0092] The stopping module 420 is used to stop the monitoring area of the mobile monitoring component when there is a large or medium-sized construction machine or the number of people is greater than 3 in the monitoring area of the monitoring component.
[0093] The alarm module 430 is used to issue an alarm message when the monitoring area of the monitoring component stops for more than 5 minutes.
[0094] In summary, the oil and gas pipeline monitoring method provided in the embodiments of the present application controls the monitoring area of the monitoring component to move within the pipeline area along a predetermined trajectory. When a target object appears in the monitoring area, the monitoring component stops moving. When the stopping duration exceeds a target duration, an alarm is issued. This allows the monitoring of a larger pipeline area to be monitored by processing images of the monitoring area acquired by a single monitoring component, with less data processing. This method solves the problem of large data volumes associated with analyzing data collected by multiple cameras in related technologies, thereby reducing the amount of data processing required.
[0095] Figure 5 Schematic diagram of the structure of a server provided in an embodiment of the application. Server 500 includes a central processing unit (CPU) 501, a system memory 504 including a random access memory (RAM) 502 and a read-only memory (ROM) 503, and a system bus 505 connecting the system memory 504 and the CPU 501. Server 500 also includes a basic input / output system (I / O system) 506 that facilitates information transmission between various components within the computer, and a mass storage device 507 for storing an operating system 513, application programs 514, and other program modules 515.
[0096] The basic input / output system 506 includes a display 508 for displaying information and an input device 509, such as a mouse and keyboard, for user input. Both the display 508 and the input device 509 are connected to the central processing unit 501 via an input / output controller 510 connected to the system bus 505. The basic input / output system 506 may also include an input / output controller 510 for receiving and processing input from a variety of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input / output controller 510 also provides output to a display screen, printer, or other types of output devices.
[0097] The mass storage device 507 is connected to the central processing unit 501 via a mass storage controller (not shown) connected to the system bus 505. The mass storage device 507 and its associated computer-readable media provide non-volatile storage for the server 500. In other words, the mass storage device 507 may include a computer-readable medium (not shown) such as a hard disk or a Compact Disc Read-Only Memory (CD-ROM) drive.
[0098] Without loss of generality, computer-readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory or other solid-state storage media, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, tape cassettes, magnetic tape, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media are not limited to the above-mentioned ones. The above-mentioned system memory 504 and mass storage device 507 can be collectively referred to as memory.
[0099] According to various embodiments of the present application, the server 500 may also be connected to a remote computer on a network such as the Internet for operation. That is, the server 500 may be connected to the network 512 via the network interface unit 511 connected to the system bus 505, or the network interface unit 511 may be used to connect to other types of networks or remote computer systems (not shown).
[0100] The memory also includes one or more programs. The one or more programs are stored in the memory. The central processing unit 504 implements the above-mentioned oil and gas pipeline monitoring method by executing the one or more programs.
[0101] In addition, an embodiment of the present application also provides a computer storage medium, which stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the oil and gas pipeline monitoring method required above.
[0102] In addition, embodiments of the present application further provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method provided in any of the aforementioned optional implementations.
[0103] In this application, the term "at least one of A and B" simply describes an association relationship between associated objects, indicating that three possible relationships exist. For example, "at least one of A and B" can mean: A exists alone, A and B exist simultaneously, and B exists alone. Similarly, "at least one of A, B, and C" means that seven possible relationships exist, indicating: A exists alone, B exists alone, C exists alone, A and B exist simultaneously, A and C exist simultaneously, C and B exist simultaneously, and A, B, and C exist simultaneously. Similarly, "at least one of A, B, C, and D" means that fifteen possible relationships exist, indicating: A exists alone, B exists alone, C exists alone, D exists alone, A and B exist simultaneously, A and C exist simultaneously, A and D exist simultaneously, C and B exist simultaneously, D and B exist simultaneously, C and D exist simultaneously, C and D exist simultaneously, A, B, and C exist simultaneously, A, B, and D exist simultaneously, A, C, and D exist simultaneously, B, C, and D exist simultaneously, and A, B, C, and D exist simultaneously.
[0104] In this application, the term "plurality" refers to two or more than two, unless clearly defined otherwise.
[0105] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0106] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0107] Those skilled in the art will understand that all or part of the steps of implementing the above embodiments may be accomplished by hardware, or by programs instructing related hardware to accomplish the steps. The programs may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk, or an optical disk, etc.
[0108] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A method for monitoring an oil and gas pipeline, characterized in that: For use in monitoring a pipeline area using a monitoring component, the method comprises: Controlling the monitoring area of the monitoring component so that the monitoring area of the monitoring component moves in the pipeline area along a predetermined trajectory; Obtaining video data of the monitoring area currently collected by the monitoring component; Determining whether a data frame in the video data includes an image frame including a target object, the data frame including at least one image frame, and the target object including a construction machine and a number of people greater than a target number; When the data frame includes an image frame including the target object, determining that the target object exists in the monitoring area of the monitoring component, wherein the data frame is marked as 1 when the data frame includes an image frame including the target object, otherwise, the data frame is marked as 0; If two adjacent data frames are always marked as 1, stop moving the monitoring area of the monitoring component; When the monitoring area of the monitoring component stops for a period exceeding a target period, an alarm message is issued; If the previous data frame is marked as 1 and the current data frame is marked as 0, the monitoring area of the monitoring component continues to move; if the two adjacent data frames are always marked as 0, the monitoring area of the monitoring component is controlled to move along the predetermined trajectory.
2. The method according to claim 1, characterized in that Determining whether a data frame in the video data includes an image frame including the target object comprises: performing image recognition on at least one image frame in each data frame in the video data; When it is recognized that the target object exists in any one of the at least one image frame, it is determined that the data frame where the any one image frame is located is a data frame including the target object.
3. The method according to claim 1, characterized in that The monitoring component includes a pan-tilt platform and a camera mounted on the pan-tilt platform, and controlling the monitoring area of the monitoring component so that the monitoring area of the monitoring component moves in the pipeline area along a predetermined trajectory includes: The direction of the camera is adjusted by controlling the pan / tilt head so that the monitoring area of the monitoring component moves in the pipeline area along a predetermined trajectory.
4. The method according to claim 1, wherein The monitoring assembly includes a track and a camera mounted on the track, and controlling the monitoring area of the monitoring assembly so that the monitoring area of the monitoring assembly moves in the pipeline area along a predetermined trajectory includes: The camera is controlled to move on the track so that the monitoring area of the monitoring component moves in the pipeline area along a predetermined track.
5. A monitoring component, characterized in that: Used to monitor pipeline areas, the monitoring components include: a control module, configured to control the monitoring area of the monitoring component so that the monitoring area of the monitoring component moves in the pipeline area along a predetermined trajectory; a stop module, configured to stop moving the monitoring area of the monitoring component if two adjacent data frames are always marked as 1; An alarm module is used to issue an alarm message when the monitoring area of the monitoring component stops for a period of time exceeding a target value; The monitoring component is further used to: obtain video data of the monitoring area currently collected by the monitoring component; Determining whether a data frame in the video data includes an image frame including a target object, the data frame including at least one image frame, and the target object including a construction machine and a number of people greater than a target number; When the data frame includes an image frame including the target object, determining that the target object exists in the monitoring area of the monitoring component, wherein the data frame is marked as 1 when the data frame includes an image frame including the target object, otherwise, the data frame is marked as 0; If the previous data frame is marked as 1 and the current data frame is marked as 0, the monitoring area of the monitoring component continues to move; if the two adjacent data frames are always marked as 0, the monitoring area of the monitoring component is controlled to move along the predetermined trajectory.
6. A monitoring component, characterized in that: The monitoring component includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the oil and gas pipeline monitoring method as described in any one of claims 1 to 4.
7. A computer storage medium, characterized in that The computer storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the oil and gas pipeline monitoring method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Monitoring method and device, electronic equipment and storage medium
CN112382032A
Unmanned aerial vehicle inspection method and device and unmanned aerial vehicle
CN112585554A