Cableway Intrusion Incident Analysis and Early Warning Methods
By using UAV surveillance video data and depth information image sets in the cableway environment, combined with FlowNet-2 and YOLOv5 models, to identify and predict the boundary boxes of intruders, the problem of identifying diverse intruders in the dynamic environment of the cableway is solved, and the Efficient and accurate early warning effect.
Patent Information
- Application Number
- CN202411031664.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-30
AI Technical Summary
In the dynamic environment of the ropeway, it is difficult for existing technologies to accurately identify diverse intruding objects and provide timely warnings, especially due to the complexity of the environment and the existence of new types of objects that do not appear in the training set, resulting in reduced recognition accuracy and costly annotation. Dataset collection challenges.
By obtaining UAV surveillance video data and parameters, using image coordinate superposition to obtain depth information image sets, combined with the FlowNet-2 model and YOLOv5 model, analyze and identify the bounding boxes of cableways and intruders, predict the bounding boxes of intruders, and calculate static obstacles , dynamic intrusion early warning score to achieve dynamic intrusion early warning for cableways and bridge boxes.
Efficient and accurate identification and early warning of ropeway intrusions are achieved in diverse environments, reducing the need for annotated data sets and improving the flexibility and accuracy of identification.
Smart Images

Figure CN118552885B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image recognition, and in particular to a cableway intrusion event analysis and early warning method. Background Art
[0002] In recent years, with the widespread application of aerial ropeway technology in the fields of freight and passenger transportation, in actual application environments, ropeway monitoring systems play an important role in monitoring and identifying intrusion objects in order to respond to sudden intrusion incidents in a timely manner. However, a key and challenging task is the accurate identification of intrusion objects. The ropeway environment is complex and changeable, and the types of intrusion objects may include wild animals, flying man-made objects, or potential malicious vandals. These objects vary in shape, size, color, and material, which makes it difficult for a single recognition model to cover all situations.
[0003] Existing supervised learning-based image recognition technology can achieve high accuracy when identifying known types of objects in a scene, but it is difficult to extract object types that do not exist in the training dataset. This is because supervised learning algorithms usually require a large amount of labeled data to train the model so that it can identify various intrusion objects. However, collecting a large-scale labeled dataset covering all possible intrusion objects is a time-consuming and costly task, and there are always new types of objects that do not appear in the training set in the actual environment.
[0004] In response to the above problems, how to accurately identify diverse intruding objects in the dynamic environment of the cableway and issue timely warning prompts is a problem that this application needs to solve. Summary of the invention
[0005] The main purpose of the present invention is to provide a cableway intrusion event analysis and early warning method to solve the problem of how to accurately identify various intrusion objects in the dynamic environment of the cableway and make timely early warning prompts, so as to achieve the effect of efficient and accurate identification and early warning of cableway intrusion objects in a variety of environments.
[0006] In order to achieve the above-mentioned purpose, the present invention provides a cableway intrusion event analysis and early warning method, which is used to achieve the effect of efficiently and accurately identifying and early warning cableway intrusion objects in a variety of environments.
[0007] The present invention provides a cableway intrusion event analysis and early warning method, comprising:
[0008] Acquire the monitoring video data and the parameters of the drone, and acquire an image set by superimposing the image coordinates onto the monitoring video data, wherein the image set is used to indicate an image sequence of depth information of the cableway and the bridge box, and the drone parameters include: a pose matrix and a camera intrinsic parameter matrix, and the image coordinates are used to indicate the coordinates of the center of the cableway sampling point under the projection of the drone;
[0009] According to the image set, the detection parameters and the intruder boundary box are obtained by analyzing and identifying the cableway boundary box and the intruder boundary box of the line segment between two adjacent points of the cableway, wherein the intruder boundary box is used to indicate the position and size of the intruder in the image set, and the detection parameters are used to indicate the depth information of the point on the cableway;
[0010] According to the intruder boundary box, the FlowNet-2 model predicts that the intruder boundary box at the time point is The corresponding predicted intruder bounding box when
[0011] According to the detection parameters and the predicted intruder boundary box, a cableway static obstacle warning score, a cableway dynamic intrusion warning score and a bridge box dynamic intrusion warning score are obtained by calculation.
[0012] Optionally, the acquiring of the monitoring video data and the parameters of the drone, by superimposing image coordinates onto the monitoring video data to acquire an image set, includes:
[0013] According to the pose matrix and the camera intrinsic parameter matrix, the image coordinates are obtained by calculation, and the image coordinates are superimposed on the monitoring video data to obtain a superimposed monitoring image;
[0014] Segmenting the superimposed monitoring image to obtain the actual marking point of the cableway at the center of the cableway sampling point;
[0015] According to the pose matrix and the camera intrinsic parameter matrix, the bridge box is identified by a YOLOv5 model to obtain a bounding box of an actual position of the bridge box on the cableway;
[0016] The actual marking point and the actual position boundary box of the bridge box are marked on the superimposed monitoring image to obtain the image set.
[0017] Optionally, acquiring the detection parameters and the intruder bounding box by analyzing and identifying the ropeway bounding box and the intruder bounding box of the line segment between two adjacent points of the ropeway according to the image set includes:
[0018] According to the image set, two adjacent points on the cableway are acquired, and the cableway boundary box of the two adjacent points is obtained, and the cableway boundary box is divided into N small areas, wherein N is set according to actual specific needs;
[0019] According to the two adjacent points and the small area, depth information of each pixel in the small area is acquired to obtain the detection parameter;
[0020] Through the YOLOv5 model and the FlowNet-2 model, potential intruders and suspicious dynamic intruders in the image set are identified to obtain the intruder boundary box.
[0021] Optionally, acquiring the depth information of each pixel in the small area according to the two adjacent points and the small area to obtain the detection parameter includes:
[0022] Get the depth information of the two adjacent points and set the depth information to , the detection parameters are , the detection parameter is obtained by a calculation formula, wherein the calculation formula is:
[0023] It is an adjustable cableway obstacle warning parameter.
[0024] Optionally, identifying potential intruders and suspicious dynamic intruders in the image set by using a YOLOv5 model and a FlowNet-2 model to obtain an intruder boundary box includes:
[0025] Using the YOLOv5 model and the FlowNet-2 model, potential intruders and suspicious areas in the image set are identified, and the potential intruder boundary box and the suspicious dynamic intruder boundary box are determined;
[0026] An intruder boundary box is obtained according to the potential intruder boundary box and the suspicious dynamic intruder boundary box.
[0027] Optionally, the obtaining, by calculation according to the detection parameters and the predicted intruder boundary box, a cableway static obstacle warning score, a cableway dynamic intrusion warning score, and a bridge box dynamic intrusion warning score comprises:
[0028] According to the N small areas The value is used to calculate the warning score of static intruders;
[0029] By calculating the relative position relationship between the predicted intruder boundary box and the cableway, a dynamic intrusion warning score of the cableway is obtained;
[0030] The volume of the intersection is obtained by finding the intersection of the predicted intruder boundary box and the actual position boundary box of the bridge box, and the volume of the intersection is obtained by calculating the volume and the , obtain the bridge box dynamic intrusion warning score.
[0031] Optionally, the obtaining the cableway dynamic intrusion warning score by calculating the relative position relationship between the predicted intruder boundary box and the cableway includes:
[0032] Obtaining a center point of a boundary box of the predicted intruder boundary box, and measuring a distance from the center point of the boundary box to the two adjacent points;
[0033] According to the and the center point of the boundary box, and obtain the cableway dynamic intrusion warning score by calculation.
[0034] The present application provides a cableway intrusion event analysis and early warning method, which obtains an image set with depth information by superimposing the coordinates of the center of the cableway sampling point under the projection of a drone onto the monitoring video data, and analyzes and identifies the cableway boundary box and the boundary box of the intruder in the image set. The intruder prediction boundary box at different time points is predicted using the FlowNet-2 model based on the cableway boundary box and the boundary box of the intruder. The cableway static obstacle warning score, the cableway dynamic intrusion warning score and the bridge box dynamic intrusion warning score are calculated based on the intruder prediction boundary box. The method solves the problem of how to accurately identify a variety of intruding objects in a dynamic cableway environment and make timely early warning prompts, thereby achieving the effect of efficiently and accurately identifying and warning cableway intruders in a variety of environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The drawings constituting a part of the present application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0036] Figure 1 Schematic diagram of the process of cableway intrusion event analysis and early warning method provided for this application Figure 1 ;
[0037] Figure 2 Schematic diagram of the process of cableway intrusion event analysis and early warning method provided for this application Figure 2 ;
[0038] Figure 3 Schematic diagram of the process of cableway intrusion event analysis and early warning method provided for this application Figure 3 .
[0039] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0041] The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein.
[0042] In the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0043] In recent years, with the widespread application of aerial ropeway technology in the fields of freight and passenger transportation, in actual application environments, ropeway monitoring systems play an important role in monitoring and identifying intrusion objects in order to respond to sudden intrusion incidents in a timely manner. In actual application environments, the first key and challenging task is to accurately identify intrusion objects. For example, the ropeway environment is complex and changeable, and the types of intrusion objects may include wild animals, flying man-made objects, or potential malicious vandals. The shapes, sizes, colors and materials of these objects vary, making it difficult for a single recognition model to cover all situations. Although existing image recognition technologies based on supervised learning can achieve high accuracy in identifying objects of known types in the scene, it is difficult to extract object types that do not exist in the training dataset. However, collecting large-scale annotated datasets covering all possible intrusion objects is a time-consuming and costly task, and in actual environments there are always new types of objects that do not appear in the training set.
[0044] At the same time, the complexity of large outdoor scenes is also an issue that cannot be ignored. Large outdoor scenes usually have a vast natural background and diverse environmental elements, such as trees, vegetation, terrain changes, etc. However, the presence of large-scale vegetation will introduce a large amount of high-frequency noise signals in the image and video background, and under the influence of factors such as wind, these high-frequency signals will produce unpredictable movements, thereby introducing a large amount of dynamic interference in the image, which may conceal the real intrusion event or cause false alarms, and changes in lighting conditions and weather will further complicate the situation. In addition, object extraction in dynamic scenes is also a major challenge for the rapid analysis and early warning of cableway intrusion events. In such scenes, in addition to the environmental noise mentioned above, the movement of the cableway, bridge box and monitoring equipment itself will also affect image stability. These factors make it extremely difficult to accurately extract and track objects from continuous video streams. When the monitoring drone is performing a mission, the continuous changes in its flight trajectory, speed and posture will also cause dynamic changes in the captured image, thereby increasing the difficulty of image stabilization and target tracking, especially in the case of long-distance or high-speed movement. The motion blur and vibration of the drone will have a negative impact on image clarity and the accuracy of target detection.
[0045] Existing supervised learning-based image recognition technology can achieve high accuracy when identifying known types of objects in a scene, but it is difficult to extract object types that do not exist in the training dataset. This is because supervised learning algorithms usually require a large amount of labeled data to train the model so that it can identify various intrusion objects. However, collecting a large-scale labeled dataset covering all possible intrusion objects is a time-consuming and costly task, and there are always new types of objects that do not appear in the training set in the actual environment.
[0046] In response to the above problems, how to accurately identify diverse intruding objects in the dynamic environment of the cableway and issue timely warning prompts is a problem that this application needs to solve.
[0047] The present application provides a cableway intrusion event analysis and early warning method, which obtains an image set with depth information by superimposing the coordinates of the center of the cableway sampling point under the projection of a drone onto the monitoring video data, and obtains the intruder data information by analyzing and identifying the cableway boundary box and the intruder boundary box in the image set. The intruder prediction boundary box of the intruder at different time points is predicted using the FlowNet-2 model based on the intruder data information, and the cableway static obstacle warning score, the cableway dynamic intrusion warning score and the bridge box dynamic intrusion warning score are obtained by calculation based on the intruder prediction boundary box. The method solves the problem of how to accurately identify a variety of intrusion objects in a dynamic cableway environment and make timely early warning prompts, thereby achieving the effect of efficient and accurate identification and early warning of cableway intruders in a variety of environments.
[0048] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0049] Figure 1 Schematic diagram of the process of cableway intrusion event analysis and early warning method provided for this application Figure 1 , the execution subject of this embodiment is the early warning system, such as Figure 1 As shown, the cableway intrusion event analysis and early warning method provided in this embodiment includes:
[0050] S101: Acquire monitoring video data and parameters of the drone, and acquire an image set by superimposing image coordinates onto the monitoring video data.
[0051] The image set is used to indicate the image sequence of the depth information of the cableway and the bridge box, and the drone parameters include: posture matrix And the camera intrinsic matrix , the image coordinates are used to indicate the coordinates of the cableway sampling point center under the UAV projection. Pose matrix And the camera intrinsic matrix Used to indicate the flight status information of the drone when it completes the shooting mission; posture matrix Obtained through the drone's gyroscope interface, the camera's internal parameter matrix Obtained directly from the parameters of the drone manufacturer, monitoring video data can be obtained in real time through video streaming to improve the efficiency of data transmission.
[0052] The method of superimposing image coordinates onto surveillance video data and obtaining an image set can be performed by the following steps:
[0053] Step 1: When the general terrain of the scene and the cableway structure are known, we record the coordinate points along each cableway at a certain step length. Through physical analysis, the possible movement range of each coordinate point is calculated when the cableway produces regular oscillations under the action of wind and other factors, and the movement range is simplified to is the expected spherical Gaussian distribution, record It is the center of the cableway sampling point.
[0054] Step 2: Use the following formula to calculate the image coordinates of the point under the drone projection;
[0055]
[0056] in, express The projection position of the point in the camera optical center coordinate system, and To represent the image coordinate points, , , Used to indicate the center of the cableway sampling point .
[0057] Step 3: According to the image coordinate points obtained in step 2 ( ) is overlaid onto surveillance video data through ArcGIS;
[0058] Step 4: Perform real-time image segmentation on the surveillance video data, according to the image coordinate points obtained in step 3 ( ), find the nearest cableway separation pixel , generate the actual marking point of the cableway sampling point ;
[0059] Step 5: Use the YOLOv5 model to identify the bridge box object and obtain the actual position bounding box of the bridge box on the cableway ;
[0060] Step 6: The actual marking points obtained in step 4 and the actual position bounding box of the bridge box in step 5 The image set is obtained by overlaying it onto the surveillance video data through ArcGIS.
[0061] Those skilled in the art will appreciate that, from the obtained image set, we can obtain the following information: the cropped original image and its depth information; the actual cableway sampling points and their position probability distribution obtained by matching the pre-prepared data with the image; (Since each sampling point is represented as an isotropic Gaussian distribution, the corresponding will also be projected and merged in the same way The bridge box on the cableway .
[0062] S102: According to the image set, a detection parameter and an intruder boundary box are obtained by analyzing and identifying a cableway boundary box and an intruder boundary box of a line segment between two adjacent points of the cableway.
[0063] The detection parameter is used to indicate the depth information of the point on the cableway. The intruder boundary box is used to indicate the position and size of the intruder in the image set.
[0064] The analysis and identification can be performed through the YOLOv5 model or the FastestDet model. The specific analysis and identification method is determined according to actual needs and is not limited here.
[0065] The way to obtain the detection parameters is: for the image set containing depth information, we sample every two adjacent cableway points on the cableway The bounding box corresponding to the formed line segment separates the image into Then, the following detections are performed on each small area in parallel: (1) Reconstruct the cableway model based on the 3D data; The depth of the small area is normalized to , and set the depth of the model's projection point on the small area to 1; (2) perform a convolution blur operation on the image to perform preliminary noise reduction; (3) calculate the depth corresponding to each pixel in the small area. , marked as detection parameters, detection parameters are used express, The value of can be obtained using the following formula:
[0066]
[0067] like Mark the segment as having an obstacle. for The mean of It is an adjustable cableway obstacle warning parameter.
[0068] The way to obtain the intruder bounding box is: For known intruder recognition, we use the YOLOv5 model to identify the image set For unknown dynamic object recognition, we use the FlowNet-2 model to classify the potential intruder bounding box on the image set. Perform optical flow estimation, and obtain the standard optical flow offset based on the position change of the drone within the time window and the depth information in the image. , for all conditions that satisfy of the region ( Parameter, the smaller the system is, the more sensitive it is to abnormal actions, but it also has a higher false alarm rate). We mark it as a suspicious dynamic object and obtain a suspicious dynamic object bounding box; the intruder bounding box includes the above-mentioned potential intruder bounding box and the suspicious dynamic object bounding box.
[0069] S103: According to the intruder bounding box, the predicted intruder bounding box corresponding to the intruder bounding box at the time point Δt is predicted through the FlowNet-2 model.
[0070] Among them, regarding the method of predicting the intruder boundary box corresponding to the predicted intruder boundary box at the time point Δt, the motion vector of the intruder boundary box obtained in step S102 can be estimated through the FlowNet-2 model. For the time range required for early warning, we sample the future time with exponential coordinates, such as our early warning time range is , then we will respectively Motion estimation is performed at the time point, and for each time point, the corresponding position is estimated according to the motion vector, so as to obtain the predicted intruder boundary box;
[0071] It can be understood that by predicting the corresponding predicted intruder boundary box at the time point Δt, the movement trajectory of the intruder within the warning time range can be predicted, so as to timely judge the distance between the intruder and the cableway and bridge box, which is one of the important means to make a timely warning.
[0072] S104: According to the detection parameters and the predicted intruder boundary box, the cableway static obstacle warning score, the cableway dynamic intrusion warning score and the bridge box dynamic intrusion warning score are obtained by calculation.
[0073] Among them, the cableway static obstacle warning score is =k , where k is a real number greater than zero, and k is a parameter designed according to actual needs; As described in step S102 The mean of
[0074] The method for obtaining the cableway dynamic intrusion warning score is as follows: for each estimated in step S103 above, The predicted intruder bounding box in , we calculate as follows:
[0075] (1) Given a predicted intruder bounding box Any point in , we can find The two most recent calculate To Segment Projection point and get arrive Distance ;
[0076] (2) Based on In line segment The position on the data is linearly interpolated to obtain the new distribution of the Gaussian distribution corresponding to the two points. ;
[0077] (3) According to the new distribution Distance Solve the corresponding Gaussian density function value ;
[0078] (4) The final score of the cableway dynamic intrusion warning score is ,in, Yes The two most recent The number of the point, is a commonly used expression in calculus, for example In ; In actual situations, we should use discrete sampling with a fixed step size to replace the integral term in the formula. g is a monotonically increasing function designed according to actual needs, for example, it can be g(x)=x;
[0079] The method for obtaining the bridge box dynamic intrusion warning score is: according to the actual position boundary box of the bridge box obtained in step S101 Intersect with the predicted intruder bounding box obtained in step S103, and set the volume of the intersecting part to be , then the final bridge box dynamic intrusion warning score is ,in, A monotonically increasing function designed according to actual needs, for example, g(x)=x;
[0080] It can be understood that for the above three scores, we map different score segments to different warning levels, so as to timely warn of cableway intrusion incidents through the cableway static obstacle warning score, the cableway dynamic intrusion warning score and the bridge box dynamic intrusion warning score.
[0081] The cableway intrusion event analysis and early warning method provided in the embodiment of the present application obtains an image set with depth information by superimposing the coordinates of the cableway sampling point center under the projection of the drone onto the monitoring video data, and analyzes and identifies the cableway boundary box and the boundary box of the intruder in the image set. The intruder prediction boundary box at different time points is predicted using the FlowNet-2 model based on the cableway boundary box and the boundary box of the intruder. The cableway static obstacle warning score, the cableway dynamic intrusion warning score and the bridge box dynamic intrusion warning score are obtained by calculation based on the intruder prediction boundary box. The method solves the problem of how to accurately identify diverse intrusion objects in a dynamic cableway environment and make timely early warning prompts, thereby achieving the effect of efficiently and accurately identifying and warning cableway intruders in diverse environments.
[0082] Figure 2 Schematic diagram of the process of cableway intrusion event analysis and early warning method provided for this application Figure 2 ,like Figure 2 As shown, in this embodiment Figure 1 Based on the embodiment, the cableway intrusion event analysis and early warning method is described in detail, such as Figure 2 As shown, the cableway intrusion event analysis and early warning method provided in this embodiment includes:
[0083] S201: Obtain the image coordinates by calculation according to the pose matrix and the camera intrinsic parameter matrix, and superimpose the image coordinates on the monitoring video data to obtain a superimposed monitoring image.
[0084] Among them, the pose matrix And the camera intrinsic matrix Used to indicate the flight status information of the drone when it completes the shooting mission, the pose matrix Obtained through the drone's gyroscope interface, the camera's internal parameter matrix Obtained directly from the drone manufacturer's parameters, the image coordinates represent the center point of the cableway sampling point Coordinates under drone projection.
[0085] The coordinate points of the image coordinates are calculated using the following formula ( ):
[0086]
[0087] in, express The projection position of the point in the camera optical center coordinate system, and To represent the image coordinate points, , , Used to indicate the center of the cableway sampling point ;
[0088] The image coordinates can be superimposed on the monitoring video data by using ArcGIS to superimpose the image coordinates on the monitoring video data, thereby obtaining the superimposed monitoring image.
[0089] S202: Segment and overlay the monitored images to obtain the actual marking point of the cableway at the center of the cableway sampling point.
[0090] Here, an image segmentation technique is used, and an optional tool such as SAM is used to segment the superimposed monitoring image, and the coordinate points of the image coordinates obtained in step S201 ( ), find the nearest cableway separation pixel , generate the actual marking point of the cableway sampling point .
[0091] S203: According to the pose matrix and the camera intrinsic parameter matrix, the bridge box is identified through the YOLOv5 model to obtain the actual position boundary box of the bridge box on the cableway.
[0092] Among them, the bridge box object is identified through the YOLOv5 model, and the actual position boundary box of the bridge box on the cableway is obtained. .
[0093] The YOLOv5 model is used to detect the bridge boxes on the cableway and common intrusion objects, such as birds, unknown drones, humans, etc. The following process can be adopted to achieve efficient training of corresponding recognition: collect a large number of pictures of cableway scenes, and use offline semantic segmentation models (such as SegmentAnything) to perform automatic batch segmentation at the pixel level.
[0094] Among the automatically segmented images, multiple pictures (about 5) were selected, and the segmented areas of these pictures were manually annotated to mark which parts were bridge boxes and which parts were content that might become intrusions.
[0095] Based on the manual annotation results, the program automatically creates a mapping table from divided areas to annotations, and generates a data set based on the batch processed images.
[0096] The generated dataset is mixed with the corresponding common YOLO recognition dataset (such as those containing people and animals) to generate a new dataset, and YOLOv5 is trained on it.
[0097] S204: Mark the actual marking points and the actual position boundary box of the bridge box on the superimposed monitoring image to obtain an image set.
[0098] The actual marking point of the cableway obtained in step S202 is And the actual position boundary box of the bridge box in step S203 The image set is obtained by overlaying it onto the surveillance video data with optional ArcGIS.
[0099] S205: According to the image set, two adjacent points on the cableway are obtained, and the cableway boundary box of the two adjacent points is obtained, and the cableway boundary box is divided into N small areas.
[0100] Among them, for the image set containing depth information, we sample every two adjacent cableway sampling points on the cableway The bounding boxes corresponding to the formed line segments divide the image into N small areas. The image can be divided by using image segmentation technology, and optional tools such as SAM.
[0101] S206: Obtain depth information of two adjacent points, set the depth information to d, the detection parameter to s, and obtain the detection parameter through a calculation formula.
[0102] The method of obtaining the detection parameters is as follows: for the image set containing depth information, we sample every two adjacent cableway sampling points on the cableway. The bounding box corresponding to the formed line segment separates the image into Then, the following detections are performed on each small area in parallel: (1) Reconstruct the cableway model based on the 3D data; The depth of the small area is normalized to , and set the depth of the model's projection point on the small area to 1; (2) perform a convolution blur operation on the image to perform preliminary noise reduction; (3) calculate the depth corresponding to each pixel in the small area. , marked as detection parameters, detection parameters are used express, The value of can be obtained using the following formula:
[0103]
[0104] like Mark the segment as having an obstacle. for The mean of It is an adjustable cableway obstacle warning parameter.
[0105] S207: Using the YOLOv5 model and the FlowNet-2 model, potential intruders and suspicious areas in the image set are identified, and a potential intruder boundary box and a suspicious dynamic intruder boundary box are determined.
[0106] S208: Obtain an intruder boundary box according to the potential intruder boundary box and the suspicious dynamic intruder boundary box.
[0107] Among them, for the recognition of known intruders, we use the YOLOv5 model to identify the image set The potential intruder bounding box on the image is determined to thereby determine the potential intruder bounding box;
[0108] For unknown dynamic object recognition, we use the FlowNet-2 model to classify the image set Perform optical flow estimation, and obtain the standard optical flow offset based on the position change of the drone within the time window and the depth information in the image. , for all conditions that satisfy of the region ( The smaller the parameter, the more sensitive the system is to abnormal actions, but it also has a higher false alarm rate). We mark it as a suspicious dynamic object and determine the boundary box of the suspicious dynamic object.
[0109] According to the above method, the potential intruder boundary box and the suspicious dynamic intruder boundary box are determined, and the data is integrated to obtain the intruder boundary box.
[0110] S209: According to the intruder boundary box, the predicted intruder boundary box corresponding to the intruder boundary box at the time point Δt is predicted through the FlowNet-2 model.
[0111] S210: According to the detection parameters and the predicted intruder boundary box, the cableway static obstacle warning score, the cableway dynamic intrusion warning score and the bridge box dynamic intrusion warning score are obtained by calculation.
[0112] Among them, steps S209-S210 are similar to steps S103-S104 and will not be repeated here.
[0113] The cableway intrusion event analysis and early warning method provided in the embodiment of the present application obtains an image set with depth information by superimposing the coordinates of the center of the cableway sampling point under the projection of the drone onto the monitoring video data, and analyzes and identifies the cableway boundary box and the boundary box of the intruder in the image set through the trained YOLOv5. The predicted boundary boxes of the intruder at different time points are predicted using the FlowNet-2 model according to the boundary boxes of the cableway and the intruder. The static obstacle warning score of the cableway, the dynamic intrusion warning score of the cableway and the dynamic intrusion warning score of the bridge box are calculated according to the predicted boundary boxes of the intruder. The method solves the problem of how to accurately identify diverse intrusion objects in a dynamic cableway environment and make early warning prompts in a timely manner, and achieves the effect of efficient and accurate identification and early warning of cableway intruders in diverse environments.
[0114] Figure 3 Schematic diagram of the process of cableway intrusion event analysis and early warning method provided for this application Figure 3 , this embodiment is in Figure 2 Based on the embodiment, the static obstacle warning score of the cableway, the dynamic intrusion warning score of the cableway and the dynamic intrusion warning score of the bridge box are calculated according to the detection parameters and the predicted intruder boundary box. Figure 3 As shown, the cableway intrusion event analysis and early warning method provided in this embodiment includes:
[0115] S301: Obtaining a warning score of a static intruder through calculation according to the values of the N small areas.
[0116] Among them, the cableway static obstacle warning score is =k , where k is a real number greater than zero, and k is a parameter designed according to actual needs; For steps Figure 2 The detection parameters described in the examples The mean value is calculated as follows: first sum the values of the N small regions and then divide by N;
[0117] S302: Obtain the center point of the boundary box of the predicted intruder boundary box, and measure the distance from the center point of the boundary box to the two adjacent points.
[0118] S303: Obtaining a cableway dynamic intrusion warning score through calculation according to the Δt and the center point of the boundary box.
[0119] Among them, the method of obtaining the cableway dynamic intrusion warning score is: for the above Figure 2 Each of the estimated values in step S209 of the embodiment The predicted intruder bounding box in , we calculate as follows:
[0120] (1) Given a predicted intruder bounding box The center point of , we can find The two most recent calculate To Segment Projection point and get arrive Distance ;
[0121] (2) Based on In line segment The position on the data is linearly interpolated to obtain the new distribution of the Gaussian distribution corresponding to the two points. ;
[0122] (3) According to the new distribution Distance Solve the corresponding Gaussian density function value ;
[0123] (4) The final score of the cableway dynamic intrusion warning score is ,in, Yes The two most recent The number of the point, is a commonly used expression in calculus, for example In ; In actual situations, we should use discrete sampling with a fixed step size to replace the integral term in the formula. A monotonically increasing function designed according to actual needs, for example, g(x)=x;
[0124] S304: Obtain the volume of the intersection by finding the intersection of the predicted intruder boundary box and the actual position boundary box of the bridge box, and obtain the dynamic intrusion warning score of the bridge box by calculating the volume and the Δt.
[0125] The method for obtaining the dynamic intrusion warning score of the bridge box is to find the intersection of the predicted intruder boundary box and the actual position boundary box of the bridge box, and set the volume of the intersection to be , then the final bridge box dynamic intrusion warning score is ,in, It is a monotonically increasing function designed according to actual needs, for example, it may be g(x)=x.
[0126] The cableway intrusion event analysis and early warning method provided in the embodiment of the present application obtains an image set with depth information by superimposing the coordinates of the center of the cableway sampling point under the projection of the drone onto the monitoring video data, and analyzes and identifies the cableway boundary box and the boundary box of the intruder in the image set. The intruder prediction boundary box at different time points is predicted using the FlowNet-2 model according to the cableway boundary box and the boundary box of the intruder. The cableway static obstacle warning score, the cableway dynamic intrusion warning score and the bridge box dynamic intrusion warning score are obtained by calculation according to the center point of the intruder prediction boundary box. The method solves the problem of how to accurately identify diverse intrusion objects in a dynamic cableway environment and make timely early warning prompts, thereby achieving the effect of efficiently and accurately identifying and warning cableway intruders in diverse environments.
[0127] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0128] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.
[0129] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.
[0130] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A cableway intrusion event analysis and early warning method, It is characterized in that Applied to an early warning system, the method comprises: Acquire the monitoring video data and the parameters of the drone, and acquire an image set by superimposing the image coordinates onto the monitoring video data, wherein the image set is used to indicate an image sequence of depth information of the cableway and the bridge box, and the drone parameters include: a pose matrix and a camera intrinsic parameter matrix, and the image coordinates are used to indicate the coordinates of the sampling point center of the cableway under the projection of the drone; According to the image set, a detection parameter and an intruder bounding box are obtained by analyzing and identifying a ropeway bounding box and an intruder bounding box of a line segment between two adjacent points of the ropeway, wherein the intruder bounding box is used to indicate the position and size of the intruder in the image set, and the detection parameter is used to indicate the depth information of a point on the ropeway; According to the intruder boundary box, the FlowNet-2 model predicts that the intruder boundary box at the time point is The corresponding predicted intruder bounding box when According to the detection parameters and the predicted intruder boundary box, a cableway static obstacle warning score, a cableway dynamic intrusion warning score and a bridge box dynamic intrusion warning score are obtained by calculation.
2. The method according to claim 1, It is characterized in that The step of obtaining the monitoring video data and the parameters of the drone, and obtaining an image set by superimposing image coordinates onto the monitoring video data, includes: According to the pose matrix and the camera intrinsic parameter matrix, the image coordinates are obtained by calculation, and the image coordinates are superimposed on the monitoring video data to obtain a superimposed monitoring image; Segmenting the superimposed monitoring image to obtain the actual marking point of the cableway at the center of the cableway sampling point; According to the pose matrix and the camera intrinsic parameter matrix, the bridge box is identified by a YOLOv5 model to obtain a bounding box of an actual position of the bridge box on the cableway; The actual marking point and the actual position boundary box of the bridge box are marked on the superimposed monitoring image to obtain the image set.
3. The method according to claim 2, wherein the detection parameters and the intruder boundary box are obtained by analyzing and identifying the cableway boundary box and the intruder boundary box of the line segment between two adjacent points of the cableway according to the image set, include: According to the image set, two adjacent points on the cableway are acquired, and the cableway boundary box of the two adjacent points is obtained, and the cableway boundary box is divided into N small areas; According to the two adjacent points and the small area, depth information of each pixel in the small area is acquired to obtain the detection parameter; Through the YOLOv5 model and the FlowNet-2 model, potential intruders and suspicious dynamic intruders in the image set are identified to obtain the intruder boundary box.
4. The method according to claim 3, wherein the depth information of each pixel in the small area is obtained according to the two adjacent points and the small area to obtain the detection parameter. include: Get the depth information of the two adjacent points and set the depth information to , the detection parameters are , the detection parameter is obtained by a calculation formula, wherein the calculation formula is: It is an adjustable cableway obstacle warning parameter.
5. The method according to claim 3, wherein the YOLOv5 model and the FlowNet-2 model are used to identify potential intruders and suspicious dynamic intruders in the image set to obtain an intruder boundary box, include: Using the YOLOv5 model and the FlowNet-2 model, potential intruders and suspicious areas in the image set are identified, and the potential intruder boundary box and the suspicious dynamic intruder boundary box are determined; An intruder boundary box is obtained according to the potential intruder boundary box and the suspicious dynamic intruder boundary box.
6. The method according to claim 4, wherein the static obstacle warning score of the cableway, the dynamic intrusion warning score of the cableway and the dynamic intrusion warning score of the bridge box are obtained by calculation according to the detection parameters and the predicted intruder boundary box. include: According to the N small areas The value is used to calculate the warning score of static intruders; By calculating the relative position relationship between the predicted intruder boundary box and the cableway, a dynamic intrusion warning score of the cableway is obtained; The volume of the intersection is obtained by finding the intersection of the predicted intruder boundary box and the actual position boundary box of the bridge box, and the volume of the intersection is obtained by calculating the volume and the , obtain the bridge box dynamic intrusion warning score.
7. The method according to claim 6, wherein the relative position relationship between the predicted intruder boundary box and the cableway is calculated to obtain a cableway dynamic intrusion warning score. include: Obtaining a center point of a boundary box of the predicted intruder boundary box, and measuring a distance from the center point of the boundary box to the two adjacent points; According to the and the center point of the boundary box, and obtain the cableway dynamic intrusion warning score by calculation.
