Monitoring method, device and equipment

By constructing a false alarm database and a multi-flow model, the problem of high false alarm rate in the perimeter intrusion alarm system is solved, more accurate target detection is achieved and the false alarm rate is reduced, and the system's generalization and alarm accuracy are improved.

CN118736478APending Publication Date: 2024-10-01HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD

Patent Information

Application Number
CN202310583926.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-30
Filing Date
2023-05-22
Publication Date
2024-10-01

Smart Images

  • Figure CN118736478A_ABST
    Figure CN118736478A_ABST
Patent Text Reader

Abstract

The invention discloses a monitoring method, device and equipment, and relates to the technical field of image processing, and the method comprises the steps: obtaining video data, carrying out the detection of the video data, and generating corresponding alarm information under the condition of detecting that a target object is recorded in the video data; a false alarm database is called, feature matching is carried out on a target object in the video data, the false alarm database comprises a plurality of feature data, and each feature data represents an object feature corresponding to the error alarm; and changing the state of the alarm information when the feature data which is the same as or similar to the features of the target object exists in the false alarm database. Therefore, after the alarm information is generated for the monitoring video, false alarm judgment can be carried out on the features of the target object recorded in the video, so that the probability of false alarms, especially repeated false alarms, is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 30, 2023, with application number 202310330826.3 and application name “A monitoring method, device and equipment”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of image processing technology, and in particular to a monitoring method, device and equipment. Background Art

[0003] Perimeter intrusion alarm systems are widely used in the security field. The system uses video, radar, and optical fiber to determine whether there are foreign objects, pedestrians, animals, and other targets invading the designated defense zone, and then automatically generates an alarm and pushes it to the user, thereby improving the efficiency of surveillance and reducing the manual burden. Since video information is richer, it is convenient for manual confirmation, has low cost, and is easy to deploy, and the protection scene usually contains video information, the current intrusion alarm system is often mainly based on video images.

[0004] When an intrusion alarm system analyzes video images, it can usually issue an alarm for intruders in the video images based on a motion detection algorithm. However, due to the influence of factors such as lighting, weather, and imaging noise, the video images can easily cause the alarm system to generate many false alarms. In addition, the system will repeatedly issue alarms for similar false alarm scenarios, resulting in a high rate of repeated false alarms. Summary of the invention

[0005] Embodiments of the present application provide a monitoring method, apparatus, computing device, computer storage medium, and computer program product, which can reduce the false alarm rate of intrusion alarms in video surveillance scenarios.

[0006] In a first aspect, an embodiment of the present application provides a monitoring method, the method comprising: acquiring video data; detecting the video data to generate corresponding alarm information when a target object is detected to be recorded in the video data; calling a false alarm database to perform feature matching on the target object in the video data, the false alarm database comprising a number of feature data, each feature data representing an object feature corresponding to the false alarm; and changing the state of the alarm information when feature data identical or similar to the target object feature exists in the false alarm database.

[0007] In the present embodiment, video data can be acquired and detected by a computing device or a camera, etc. Taking a computing device as an example, if the computing device identifies a target object (which can be a person, an animal, or a foreign object such as a rockfall identified from an image) from the video data, an alarm message is generated, and then before sending or displaying the alarm message, the target object can be first feature matched with a false alarm database. If the data in the false alarm database is similar to the target object feature, it indicates that the alarm message triggered by the target object may be a false alarm, thereby adjusting the state of the alarm message, such as adjusting the alarm message from a waiting state to a stop sending state, or adjusting the alarm message from an emergency alarm to different alarm level states such as a secondary alarm, an uncertain alarm, etc. In this way, after the alarm message is generated for the surveillance video, a false alarm judgment can be performed on the feature of the target object recorded in the video, thereby reducing the probability of false alarms, especially repeated false alarms.

[0008] In some possible implementations, after generating the corresponding alarm information, the method also includes: obtaining a false alarm instruction from the user, the false alarm instruction being used to indicate that the alarm information is a false alarm; in response to the false alarm instruction, extracting corresponding feature data from video data having a target object; and storing the feature data of the target object in a false alarm database.

[0009] In this way, the feature data corresponding to the false alarms can be automatically collected through user feedback, and the accumulation of feature data in the false alarm database can help to gradually reduce the false alarm rate over time.

[0010] In some possible implementations, the method further includes: classifying and identifying feature data in a false alarm database by a false alarm classifier to obtain an object type corresponding to each feature data in the false alarm database; and deleting the feature data from the false alarm database when the object type corresponding to any feature data in the false alarm database is determined to be correctly identified.

[0011] In this way, through iterative training of the false alarm classifier, the recognition ability of the false alarm classifier for those samples in the false alarm database that were once false alarms is improved, and the samples that can be recognized by the false alarm classifier and stored in the false alarm database are deleted from the false alarm database, preventing the accumulation of excessive data volume and increasing unnecessary data processing burden, and avoiding wasting storage resources.

[0012] In some possible implementations, video data includes an image sequence, and the image sequence includes multiple frames of images arranged in a time sequence; the video data is detected to generate corresponding alarm information when a target object is detected to be recorded in the video data, including: according to the image sequence, corresponding multi-stream data is obtained, and the multi-stream data includes the foreground of each frame image and / or the trajectory superimposed data corresponding to the foreground; according to the image sequence and the multi-stream data, target detection and tracking are performed to obtain corresponding detection results, and the detection results include the category of the target object in the image sequence and / or the motion trajectory of the target object; if the detection result meets the monitoring alarm condition, the corresponding alarm information is generated.

[0013] In this way, by fusing multiple image information through multi-stream input data, we can eliminate the interference caused by lighting, weather, imaging noise, etc. that may exist in the antigen image or foreground image, obtain more accurate target detection results, and reduce algorithm false alarms in subsequent image processing and alarm processes.

[0014] In some possible implementations, when the detection results meet the monitoring alarm conditions, corresponding alarm information is generated, including: calling a trajectory line type library to perform a similarity matching calculation on the motion trajectory of the target object, wherein the trajectory line type library includes a plurality of trajectory line types, and each trajectory line type belongs to the line type set by the monitoring alarm conditions; if a trajectory line type that is identical or similar to the motion trajectory of the target object is matched from the trajectory line type library, corresponding alarm information is generated.

[0015] In this implementation, because the categories of intrusion objects (i.e., target objects) in the security area are relatively fixed in some scenarios, and the movement trajectories of some specific categories of intrusion objects entering the security area also have certain regularities, it is possible to preset a variety of trajectory line types that can trigger alarms (such as vertical line types, parabolic lines, rockfall curves, etc.) to match the movement trajectory of the current target object. When the movement trajectory is similar to the preset trajectory line type, a monitoring alarm is triggered, thereby improving the recall rate of specific objects, thereby helping to improve the accuracy of the alarm.

[0016] In some possible implementations, corresponding multi-stream data is obtained according to an image sequence, including: calling a modeled background, performing pixel difference calculations with each frame image in the image sequence, and determining a foreground in each frame image that is different from the modeled background; and superimposing the foreground of each frame image into the same frame image according to a corresponding time sequence to obtain corresponding trajectory superposition data.

[0017] In some possible implementations, target detection and tracking are performed based on image sequences and multi-stream data to obtain corresponding detection results, including: aggregating image sequences and multi-stream data for target detection to determine a target image with a target object in the image sequence; performing tracking detection on the target image to obtain a motion trajectory of the target object; and classifying and detecting the target object in the target image to determine the category of the target object.

[0018] In some possible implementations, the image sequence and multi-stream data are aggregated for target detection to determine a target image with a target object in the image sequence, including: in a multi-stream model, performing separate convolution operations on the image sequence and the multi-stream data, respectively, to obtain feature maps corresponding to the image sequence and the multi-stream data; through a backbone network in the multi-stream model, performing feature extraction and recognition on the feature maps corresponding to the image sequence and the multi-stream data, respectively, to obtain a target image corresponding to the image sequence, wherein the target image is marked with location information of the target object.

[0019] In a second aspect, an embodiment of the present application provides a monitoring device, which includes: an acquisition module for acquiring video data; a detection module for detecting the video data to generate corresponding alarm information when a target object is detected to be recorded in the video data; an alarm module for calling a false alarm database to perform feature matching on the target object in the video data, the false alarm database including a number of feature data, each feature data representing an object feature corresponding to the false alarm; the alarm module is also used to change the state of the alarm information when feature data that is the same as or similar to the target object feature exists in the false alarm database.

[0020] In some possible implementations, the alarm module is specifically used to: obtain a false alarm instruction from the user, the false alarm instruction is used to indicate that the alarm information is a false alarm; in response to the false alarm instruction, extract corresponding feature data from video data having a target object; and store the feature data of the target object in a false alarm database.

[0021] In some possible implementations, the alarm module is specifically used to: classify and identify the feature data in the false alarm database through a false alarm classifier to obtain the object type corresponding to each feature data in the false alarm database; when the object type corresponding to any feature data in the false alarm database is determined to be correctly identified, delete the feature data from the false alarm database.

[0022] In some possible implementations, the video data includes an image sequence, and the image sequence includes multiple frames of images arranged in time sequence; the detection module is specifically used to: obtain corresponding multi-stream data based on the image sequence, and the multi-stream data includes the foreground of each frame image and / or trajectory overlay data corresponding to the foreground; perform target detection and tracking based on the image sequence and the multi-stream data to obtain corresponding detection results, and the detection results include the category of the target object in the image sequence and / or the motion trajectory of the target object; the alarm module is specifically used to: generate corresponding alarm information if the detection result meets the monitoring alarm condition.

[0023] In some possible implementations, the alarm module is specifically used to: call a trajectory line type library to perform a similarity matching calculation on the motion trajectory of the target object, wherein the trajectory line type library includes a plurality of trajectory line types, and each trajectory line type belongs to a line type set in a monitoring alarm condition; if a trajectory line type that is identical or similar to the motion trajectory of the target object is matched from the trajectory line type library, a corresponding alarm information is generated.

[0024] In some possible implementations, the detection module is specifically used to: call the modeled background, perform pixel difference calculations with each frame image in the image sequence, and determine the foreground in each frame image that is different from the modeled background; superimpose the foreground of each frame image into the same frame image according to the corresponding time sequence to obtain corresponding trajectory superposition data.

[0025] In some possible implementations, the detection module is specifically used to: aggregate image sequences and multi-stream data for target detection, and determine a target image with a target object in the image sequence; perform tracking detection on the target image to obtain a motion trajectory of the target object; and perform classification detection on the target object in the target image to determine the category of the target object.

[0026] In some possible implementations, the detection module is specifically used to: in a multi-stream model, perform separate convolution operations on the image sequence and the multi-stream data, respectively, to obtain feature maps corresponding to the image sequence and the multi-stream data; through a backbone network in the multi-stream model, perform feature extraction and recognition on the feature maps corresponding to the image sequence and the multi-stream data, respectively, to obtain a target image corresponding to the image sequence, wherein the target image is marked with location information of the target object.

[0027] In a third aspect, an embodiment of the present application provides a computing device cluster, comprising at least one computing device, each computing device comprising a processor and a memory; the processor of at least one computing device is used to execute instructions stored in the memory of at least one computing device, so that the computing device cluster executes the method described in the first aspect or any possible implementation of the first aspect.

[0028] In a fourth aspect, an embodiment of the present application provides a computer program product comprising instructions, characterized in that when the instructions are executed by a computing device cluster, the computing device cluster executes the method described in the first aspect or any possible implementation of the first aspect.

[0029] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that it includes computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method described in the first aspect or any possible implementation of the first aspect.

[0030] In the sixth aspect, the present application provides a chip, characterized in that it includes at least one processor and an interface; at least one processor obtains program instructions or data through the interface; at least one processor is used to execute program line instructions to implement the method described in the first aspect or any possible implementation method of the first aspect.

[0031] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 This is a schematic diagram of an application scenario of perimeter intrusion detection provided by an embodiment of the present application;

[0033] Figure 2 It is a structural diagram of a multi-stream module provided in an embodiment of the present application;

[0034] Figure 3 is a schematic diagram of an image processing provided by an embodiment of the present application;

[0035] Figure 4 It is a flow chart of a monitoring method provided in an embodiment of the present application;

[0036] Figure 5 is a flow chart of a monitoring method in a specific embodiment of the present application;

[0037] Figure 6 is a flow chart of a monitoring method in a specific embodiment of the present application;

[0038] Figure 7 is a flow chart of a monitoring method in a specific embodiment of the present application;

[0039] Figure 8 is a structural schematic diagram of a monitoring device provided in an embodiment of the present application;

[0040] Fig. 9 It is a structural schematic diagram of a monitoring device provided by a specific embodiment of the present application;

[0041] Fig.10 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;

[0042] Fig.11 It is a structural diagram of a device cluster provided in an embodiment of the present application;

[0043] Fig.12 It is a structural diagram of a device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The term "and / or" in this article is a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The symbol " / " in this article indicates that the associated objects are in an or relationship, for example, A / B means A or B.

[0045] The terms "first" and "second" in the specification and claims herein are used to distinguish different objects rather than to describe a specific order of the objects. For example, a first response message and a second response message are used to distinguish different response messages rather than to describe a specific order of the response messages.

[0046] In the embodiments of the present application, 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 the embodiments of the present 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.

[0047] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two. For example, multiple processing units refer to two or more processing units, etc.; multiple elements refer to two or more elements, etc.

[0048] To facilitate understanding of the technical solution of this application, some technical terms involved in this article are explained below.

[0049] Computer vision (CV) refers to the use of cameras and computers to replace the human eye to detect, track and measure targets, and further perform graphic processing so that the computer processing becomes an image that is more suitable for human eye observation or transmission to instrument detection.

[0050] Object detection (OD) is a computer vision technique used to locate object instances of certain categories (such as humans, animals, cars, or buildings) in images or videos.

[0051] Object tracking (OT) refers to establishing the position relationship of the object to be tracked in a continuous video sequence to obtain the complete motion trajectory of the object.

[0052] Motion detection refers to the process of identifying objects with spatial position changes in image sequences or videos as foregrounds, which is used to locate moving targets.

[0053] Generalization,The definition of generalization refers to the ability of a model to apply to new data and make accurate predictions after training. Generalization is an important indicator to measure model performance. If the model performs well on the training data but performs poorly on new data, it means that the model is overfitting and has poor generalization.

[0054] RGB (red green blue) refers to the color mode of the three primary colors of red, green and blue, and is a color standard in the industry.

[0055] The multi-stream model refers to the video object detection model that adds more inputs, such as the original image, motion foreground image, trajectory image, etc.

[0056] Convolutional neural network (CONV), a type of feedforward neural network with deep structure and convolutional calculation, is one of the representative algorithms of deep learning. Convolutional neural network has the ability of representation learning and can classify input information in a translation-invariant manner according to its hierarchical structure, so it is also called "translation-invariant artificial neural network".

[0057] Self-attention network (transformer), a network configuration, is a mechanism that aligns internal experience and external sensations to increase the observation precision of some areas.

[0058] The backbone network is the basic feature extractor for the object detection task, which is used to extract features from an image as input and output the predicted box position and confidence of the corresponding input image. Most backbone networks used for object detection are neural networks for classification tasks, which can be connected to the last fully connected layer to output the category of the object in the predicted box.

[0059] The Kalman filter is essentially a predictive positioning algorithm that can use the correlation between the speed and position of the tracked object to infer the speed residual from the position residual, so that the position and speed of the next state can be predicted using the position information.

[0060] IoU (intersection over union) is the ratio of the intersection and union of the predicted bounding box (representing the location of the target) and the real bounding box. The larger the value, the closer the predicted bounding box is to the real bounding box.

[0061] RoI (region of interest), region of interest. In machine vision and image processing, the area to be processed is outlined in the image to be processed in the form of a box, circle, ellipse, irregular polygon, etc., which is called the region of interest.

[0062] A classifier is a classification model that can map data records in a database to one of the given categories, so that it can be applied to data prediction.

[0063] In the related art, some perimeter intrusion alarm schemes realize foreign body detection by motion detection of video images. Specifically, the system outputs the input image as a binary image of the foreground moving object, then analyzes all connected domains in the foreground image, represents the position and size parameters of each connected domain with block data, and completes the block detection. Next, the detected blocks are tracked to detect the target in the image. Then the classifier is used to classify the target, and the multi-frame results are fused to determine the object category of the target. Finally, the target behavior is judged based on the classification category, and the conditions are set using information such as speed, stay time, and number of entries. If the conditions are met, an alarm is pushed. The disadvantage of this scheme is that it obtains the foreground image by comparing the difference between image frames, and the subsequent detection processing is based on the foreground image. Affected by weather and light, the foreground image obtained by image comparison is prone to introduce large errors, resulting in a high false alarm rate of foreign body intrusion. Moreover, this detection scheme cannot complete the detection of static objects, which has an adverse effect on the overall recall of the perimeter intrusion alarm system using this detection scheme.

[0064] In other solutions, video target detection based on deep learning can also be used. It mainly trains deep learning models through a large amount of labeled data, and uses models such as convolutional neural networks and self-attention networks to predict the location of abnormal objects in video images to achieve alarms. This type of method can effectively suppress false alarms through learning from a large number of samples, and has a high recall rate in trained scenarios. However, since intrusion data usually needs to be manually constructed and collected, and the acquisition cost is high, this type of solution has the problem of weak generalization. After the algorithm is trained in a specific scenario, it may still fail in other similar scenarios, affecting the scope of application of the system.

[0065] Moreover, when applying deep learning target detection technology to the perimeter intrusion alarm system, there is a problem that when the system completes the push of alarm information, after being confirmed as a false alarm by personnel, the system will repeat the alarm for similar scenarios, which will affect the system user experience and consume human resources.

[0066] In order to solve the problem of high repeated false alarm rate and weak general applicability of perimeter intrusion alarm, the embodiment of the present application provides a monitoring method, which mainly builds a false alarm database to store the object features corresponding to the false alarm. When the target object is identified from the video and the alarm is triggered, the target object is first matched with the false alarm database for features to determine whether the current target object has triggered a false alarm. If so, the alarm level is changed, thereby helping to reduce the repeated false alarm rate. In addition, identifying false alarms through feature comparison has a better effect in similar scenes, which is conducive to improving generalization.

[0067] To facilitate understanding of the solutions of the embodiments of the present application, at least one application scenario of the embodiments of the present application is first introduced below.

[0068] For example, Figure 1 A schematic diagram showing an application scenario of an embodiment of the present application is shown. Figure 1 As shown, multiple cameras 10 can be set in the tested area (such as railway line 40, power plant and other security areas, and the railway line 40 is taken as an example in this example), and the camera 10 monitors and collects the video of the railway line 40 in real time, and uploads the video to the computing device (such as a cloud server, a physical server, etc., but not limited to this) 20. A perimeter intrusion alarm system is deployed on the computing device 20, which can extract images from the received videos, perform multi-data stream target detection and target tracking on these images, determine whether there is an intrusion object (i.e., target) in the image and the motion trajectory of the intrusion object, and can also perform a series of image processing such as trajectory matching on the motion trajectory, accurately detect the category of the intrusion object, such as human, animal, foreign object (such as falling rocks), etc., as well as the length of time and number of times the intrusion object stays in the railway line 40 area, whether its motion trajectory belongs to a specific trajectory that triggers an alarm, etc.

[0069] For example, Figure 1As shown in , the computing device 20 processes the video uploaded by the camera 10 through a series of image processing, and detects that a person 50 throws a stone 60 at the railway line 40. Then the person 50 and the stone 60 can be regarded as intrusion objects. When the computing device 20 determines that the current intrusion object includes a stone, the movement trajectory of the stone is a parabola, and other detection results meet the preset alarm triggering conditions, an alarm message corresponding to the video will be generated. After determining that the intrusion object corresponding to the alarm message has not triggered a false alarm, the alarm message can be sent to the corresponding terminal device (such as a mobile phone, a personal computer, etc., but not limited to this) 30 for display, so that the security personnel can understand the alarm situation.

[0070] In addition, the video captured by the camera 10 can also be transmitted directly or through the computing device 10 to the terminal device 30 for display. In this way, when the security personnel check the alarm information, they can determine the corresponding segment of the intruder recorded in the current video, and after watching the segment, determine whether the alarm information is a false alarm, and take timely response measures when the alarm is determined to be correct, etc.

[0071] Next, a multi-stream model provided in an embodiment of the present application is introduced. The multi-stream model can be deployed on a computing device such as a physical host, a cloud server, or a container to perform multi-stream object detection processing on an image to obtain a more accurate object detection result. As a specific example, the computing device can be Figure 1 The computing device 20 shown in FIG. 1 is also used as an example for explanation below.

[0072] For example, Figure 2 FIG. 1 shows a schematic diagram of a multi-stream model provided in an embodiment of the present application. Figure 2 As shown, the multi-stream model 200 may include a data processing module 210, a plurality of convolution modules 220, and a backbone network 230, wherein:

[0073] The data processing module 210 is used to obtain an image sequence (ie, a plurality of frames of images arranged in chronological order), perform motion detection, and obtain the foreground of each frame of the image in the image sequence and the superimposed flow of the foreground.

[0074] For example, the data processing module 210 may pre-model the image background corresponding to the image sequence, referring to Figure 2 As shown, after the image sequence P1 is input into the data processing module 210, the data processing module 210 can use the modeling background to perform pixel difference calculations with each frame image P0 in the image sequence P1, so as to determine the motion foreground (i.e., foreground image) in each frame image P0 that is different from the modeling background. The data stream formed by the motion foreground of each frame image P0 is also called the foreground stream P2. After the foreground images of each frame image P0 are superimposed on an image in time sequence, the superimposed image can be called the trajectory superposition stream P3 of the motion foreground.

[0075] For example, in a scenario where a railway surveillance video is processed, the data processing module 210 may use an image recording a scene presented by the railway within a certain period of time as a modeling background. After decoding n consecutive frames of images from the real-time surveillance video of the railway, pixel differences are calculated between the n frames of images and the modeling background of the railway, and the motion foreground of each frame of the n frames of images that is different from the modeling background of the railway is determined, for example Figure 3 In (3a), a frame of RGB original image located in the middle of the n-frame image is shown, and (3b) is a foreground image obtained from the frame of RGB original image. After the motion foreground images of the n-frame image are superimposed in time sequence, the following can be obtained: Figure 3 The trajectory overlay diagram (i.e., trajectory overlay flow) shown in (3c) above.

[0076] In this example, after processing the input image sequence P1, the data processing module 210 can output multiple data streams such as the RGB original image, foreground stream P2 and trajectory overlay stream P3 of the image sequence P1, and each data stream enters the corresponding convolution module 220 for separate convolution processing.

[0077] Exemplarily, the convolution module 220 is a functional module for performing convolution operations, and the convolution module 220 includes multiple convolution kernels, which can extract specific information from the input image. In the convolution module 220, the edge information (i.e., feature map) in the image can be determined by performing convolution operations on each pixel of each frame of the input image using the convolution kernel. In this example, after the RGB original image of the image sequence P1, the foreground stream P2, and the trajectory superposition stream P3 are convoluted by their respective corresponding convolution modules 220, the feature maps corresponding to these data streams can be obtained and summarized and input into the backbone network 230.

[0078] As a specific example, in order to avoid the multi-stream model from over-relying on a certain data stream during the training and inference stages and reducing the data processing accuracy of the multi-stream model, in this example, Figure 2 As shown, the multi-stream model can configure the feature maps of the foreground stream P2 and the trajectory superposition stream P3 with corresponding random parameters α and β to adjust the data ratio of the feature maps of the three data streams of the RGB original image of the image sequence P1, the foreground stream P2 and the trajectory superposition stream P3, and then summarize and input them into the backbone network 230. It can be understood that the ratio of the feature maps of the three data streams is adjusted by the random parameters α and β in both the training and inference stages of the multi-stream model 200.

[0079] Exemplarily, the backbone network 230 is a neural network for performing image feature extraction, and may adopt a deep residual network (ResNet), a MobileNet network, an AmoebaNet network, etc., but is not limited thereto. The backbone network 230 can extract and predict features of all input feature maps, and then output the location of the target object in these feature maps (i.e., the location of the prediction box) and its confidence, i.e., the detection result P4.

[0080] Exemplarily, the multi-stream model 200 may be iteratively trained first, and after the training is completed, it may be deployed to the computing device 20 for multi-data stream target detection of video images. In a specific example, the process of training the multi-stream model 200 may include: collecting video data (i.e., image sequences, the same below) of foreign object intrusion on different railway lines 40 for corresponding annotation, and collecting a large amount of video data of normal railway lines 40 (without foreign object intrusion), using these two parts of data to input into the multi-stream model 200 for model iterative training, until the training reaches a preset condition (such as reaching the number of iterations, or the model loss reaches a preset loss threshold), and the training ends. After training, the multi-stream model 200 can be deployed to the computing device 20 to receive real-time video data for target detection. Since the multi-stream model 200 in this embodiment can perform feature extraction and fusion calculation of multiple data streams on the image sequence, it can not only greatly avoid the adverse effects of weather, lighting, imaging noise, etc. when relying solely on the foreground stream for target detection, so that the target detection accuracy is high, but also based on the rich data stream extraction and fusion recognition capabilities, the trained multi-stream model 200 can be migrated to different scenes (such as railway line intrusion object monitoring in different scenes such as mountainous areas and plains, or highway intrusion object monitoring in different scenes such as mountainous areas, plains, and cross-sea), and the generalization ability is strong. In addition, each data stream in the multi-stream model 200 is extracted separately through the convolution module 220, which will not increase the computing overhead too much, which is conducive to reducing costs.

[0081] In some possible implementations, the multi-stream model 200 in this embodiment can be applied to perimeter foreign body intrusion detection, and can also be used in video analysis tasks with strict speed requirements, such as real-time video behavior classification. The motion foreground map and trajectory overlay map do not need to be trained, and can assist the model in unsupervised video segmentation tasks.

[0082] Based on the above description, a monitoring method provided in an embodiment of the present application is introduced below.

[0083] For example, Figure 4 The flowchart of a monitoring method provided by an embodiment of the present application is shown. The method can be executed on any device, equipment, platform or computing cluster with computing and processing capabilities, but is not limited thereto. Figure 4 As shown, the method may include:

[0084] S410, a computing device acquires video data, where the video data includes an image sequence, and the image sequence includes a plurality of frames of images arranged in time sequence.

[0085] In this embodiment, the computing device can collect video data (video clips or image sequences) of the security area (i.e., the monitored area) through a device with image and video acquisition capabilities such as a camera. As an example, the video of the monitored area can be collected, and after decoding the video, n (n>1, n is a positive integer) frames of images with a time sequence can be extracted. For example, for a monitoring video with a frame rate of 30f / s (frames per second), ≤30 frames of images can be extracted from a 1s video clip, and a corresponding image sequence is formed in chronological order. In this way, through subsequent processing of n frames of images, it is possible to identify whether there are foreign objects, pedestrians, animals, etc. that have entered the monitored area in the image. It can be understood that the computing device can be Figure 1 The computing device 20 shown in FIG. 1 may be Figure 1 The camera 10 shown in FIG. 1 is also used as an example in the following description.

[0086] Exemplarily, the image obtained from the video may be an RGB image or a grayscale image.

[0087] S420: Detect the video data to generate corresponding alarm information when it is detected that the target object is recorded in the video data.

[0088] In this embodiment, the computing device 20 can determine whether the image sequence contains a target object and the type of the target object by performing image processing such as target detection, target tracking, and target classification on each frame of the video data. Exemplarily, the target object can be a person, an animal, or a foreign object such as a falling rock. When the computing device 20 determines that there is a target object in the image sequence, an alarm is triggered and an alarm message is generated. The alarm message can be a combination of text, images, symbols, etc., but is not limited thereto.

[0089] S430, calling a false alarm database to perform feature matching on a target object in the video data, wherein the false alarm database includes a plurality of feature data, each of which represents an object feature corresponding to a false alarm.

[0090] In this embodiment, the computing device 20 can construct a false alarm database, which includes a number of feature data, each of which represents an object feature corresponding to a false alarm (also referred to as a false alarm in this article). As an example, the feature data in the false alarm database can be collected manually, or it can be generated by automatically extracting object features from user feedback when historical alarm information is a false alarm by the computing device 20.

[0091] Exemplarily, before the computing device 20 sends or displays the alarm information, the target object corresponding to the current alarm information is first feature matched with the false alarm database, for example, similarity is calculated one by one between the feature data in the false alarm database and the target object features, but it is not limited thereto.

[0092] S440, when feature data identical or similar to the target object feature exists in the false alarm database, the state of the alarm information is changed.

[0093] In this embodiment, if there is feature data in the false alarm database that is the same or similar to the feature of the target object, it indicates that the target object may have triggered a false alarm, so the state of the current alarm information can be changed, such as adjusting the alarm information from the waiting state to the stop sending state, or adjusting the alarm information from the emergency alarm to a different alarm level state such as a secondary alarm, an uncertain alarm, etc. In this way, after the alarm information is generated for the surveillance video, the false alarm determination can be performed on the features of the target object recorded in the video, thereby reducing the probability of false alarms, especially repeated false alarms.

[0094] A monitoring method provided by a specific embodiment of the present application is introduced below.

[0095] For example, Figure 5 The flowchart of a monitoring method provided by an embodiment of the present application is shown. The method can be executed on any device, equipment, platform or computing cluster with computing and processing capabilities, but is not limited thereto. Figure 5 As shown, the method may include:

[0096] S510, a computing device acquires video data, where the video data includes an image sequence, and the image sequence includes a plurality of frames of images arranged in time sequence.

[0097] In the step, the specific execution process of S510 can refer to the description of S410 in the above example, which will not be repeated here.

[0098] S520: The computing device determines multi-stream data from the image sequence, where the multi-stream data includes a foreground and / or trajectory overlay data corresponding to the foreground.

[0099] In this embodiment, the computing device 20 can obtain the foreground in each frame by performing motion detection on each frame of the image sequence. As an example, the computing device 20 can pre-establish a background image of the current scene (e.g., a railway line in a mountainous area), and obtain a foreground image of each frame of the image that is different from the background image by performing pixel difference calculation on each frame of the image sequence and the background image. Figure 3 By performing motion detection on a frame of image shown in (3a), we can get Figure 3The moving foreground image shown in (3b).

[0100] Next, the computing device 20 superimposes the foreground of each frame image according to the corresponding time sequence, and superimposes each foreground image into one frame image to obtain the corresponding trajectory superposition data (i.e., trajectory superposition image). Figure 3 The foreground image of a frame of image shown in (3b) is superimposed with the foreground of multiple frames of image before and after the frame of image, and the result is Figure 3 A frame trajectory overlay is shown in (3c).

[0101] Exemplarily, the S520 may specifically include:

[0102] S521, calling the modeled background, and performing pixel difference calculation with each frame image in the image sequence, to determine the foreground in each frame image that is different from the modeled background.

[0103] In this step, when the computing device 20 performs motion detection on the image sequence, the motion foreground of each image can be obtained by comparing the pixel differences of the images.

[0104] Exemplarily, the computing device 20 may model an image background based on the scene presented in the monitored area over a long period of time (e.g., 3 hours, a day, a week, etc.), that is, use at least one image recording the long-term scene as the modeling background, and dynamically update the modeling background regularly.

[0105] Next, after acquiring n frames of images of the monitored area, the computing device 20 calculates the pixel difference between each frame of the image and the modeled background, thereby determining the pixel area in each frame of the image whose pixel difference with the modeled background reaches a preset difference threshold, which is the motion foreground of the image (i.e., foreground image). The data stream formed by the motion foreground of each frame of the image can be called the motion foreground stream, which represents the motion information of the current frame (the latest frame in the n frames of the image). For example, Figure 6 As shown in (6a), the computing device 20 calculates the pixel difference of the image sequence P1 (including n frames of image 601) in step 1, and can obtain a set of foreground image sequences (i.e., foreground streams) P2 (including n frames of foreground image 602) shown in (6b). In this example, the computing device 20 can recognize different scenes (such as railway lines in mountainous areas, plains, etc.) or static objects by modeling background pixel difference calculation, thereby reducing algorithm false alarms and improving the detection recall of intrusion objects.

[0106] As a specific example, computing device 20 may deploy Figure 2The multi-stream model 200 shown uses the data processing module 210 in the multi-stream model 200 to execute the step S521. For example, the image sequence P1 is input into the data processing module 210, and the corresponding foreground stream P2 is obtained by pixel difference calculation for subsequent target recognition.

[0107] S522, the computing device superimposes the foreground of each frame image into the same frame image according to the corresponding time sequence to obtain corresponding trajectory superposition data.

[0108] In this step, the multiple frames of the image sequence have a time sequence, so the computing device 20 can superimpose the motion foreground of each frame image according to the corresponding time sequence, so as to merge the motion foreground of multiple frames into the same frame image, and form the object motion trajectory (trajectory graph), which can be called a trajectory superposition flow in this example. For example, Figure 6 As shown in (6b) and (6c), the computing device 20 superimposes the foreground images 602 of each frame in the foreground image sequence P2 into a frame image 603 through step 2 to obtain a trajectory superposition flow.

[0109] In some examples, in the process of superimposing the motion foreground to obtain the trajectory superposition flow, the computing device 20 can attenuate the motion foreground of n frames of images according to the chronological order, thereby reducing the influence of images whose shooting time is far from the current time. For example, a sequence of n frames of images is obtained from a 2s video clip shot from 8:15 to 8:17 on the same day. When the computing device 20 superimposes the motion foreground of the n frames of images, it can configure the motion foreground of the m (m<n) frames of images close to 8:15 with a smaller coefficient (such as <0.1) for attenuation, and configure the motion foreground of the remaining images close to 8:17 with a larger coefficient (such as 0.8 to 1). The motion foreground of each image is weighted by its own coefficient and then superimposed in time sequence to avoid the earlier images from introducing large errors into real-time monitoring recognition and alarm.

[0110] As a specific example, computing device 20 may Figure 2 The data processing module 210 in the multi-stream model 200 shown executes the step S522, for example, after obtaining the foreground stream P2 of the image sequence P1, performs foreground superposition based on the foreground stream P2 to obtain the corresponding trajectory superposition stream P3.

[0111] S530: The computing device aggregates the image sequence and the multi-stream data to perform target detection and tracking to obtain a corresponding detection result, where the detection result includes a category of the target object in the image sequence and / or a motion trajectory of the target object.

[0112] In this embodiment, the computing device 20 uses the image sequence (original image) together with its foreground stream and trajectory overlay stream as input data, and performs multi-data stream target detection and tracking in the multi-stream model 200. In this way, the computing device 20 fuses a variety of image information through multi-stream input data to eliminate interference caused by lighting, weather, imaging noise, etc. that may exist in the original image or foreground image, thereby obtaining more accurate target detection results and reducing algorithm false alarms in subsequent image processing and alarm processes.

[0113] Exemplarily, when the computing device 20 executes S530, the following steps may be included:

[0114] S531, summarizing the image sequence and the multi-stream data to perform target detection, and determining a target image having a target object in the image sequence.

[0115] In this step, the process of reasoning based on the image sequence (original image) and its foreground data stream and trajectory overlay stream through the deployed multi-stream model 200 in the computing device 20 may specifically include: the data processing module 210 extracts features through the convolution module 220 based on the image sequence (original image) P1, foreground stream P2, and trajectory overlay stream P3 output by the image sequence P1, and obtains feature maps P11, P12, and P13 corresponding to each data stream. After the feature maps P11, P12, and P13 are weighted by the random parameters α and β in the multi-stream model 200, they are aggregated into the backbone network 230 for feature extraction and recognition, and the target image and its confidence level marked with the location of the target object are output. Among them, the target object is the object inferred and identified from multiple data streams, which may be a person, an animal, or a foreign object such as a fallen rock, and there may be multiple target objects. For example Figure 6 As shown in (6d), the computing device 20 performs target detection based on multiple data streams through step 3 to obtain a target image 604, in which the target image 604 is annotated with information such as the bounding boxes of the two target objects A and B, a person and a thrown object.

[0116] It can be understood that the target image may include multiple frames of images, for example, k frames of images among n frames of images, where k≤n.

[0117] S532: The computing device tracks and detects the target image to obtain a motion trajectory of the target object.

[0118] In this embodiment, the positions of each target object are recorded in the multiple frames of target images output from the multi-stream model 200. Based on this, the computing device 20 can perform target tracking detection of adjacent frames on all target images to obtain the motion trajectory of each target object. As specific examples, target tracking can use a Kalman filter, a probability-based, Bayesian particle filter algorithm, or a hidden Markov model and mean shift algorithm, which are not listed here one by one.

[0119] Exemplarily, when the computing device 20 executes S532, the following steps may be specifically included:

[0120] For any adjacent frames, the Kalman filter is first used to predict the position, size, speed and other states of each target object in the target image of the previous frame, and the prediction results of each target object in the next frame are obtained. Then, the Hungarian algorithm is used to calculate the intersection-over-union (IOU) between the prediction result and the bounding box of each target object in the next target image of the adjacent frame, so as to match the matching relationship of each target object in the adjacent frames, and according to the matching relationship, a unique identifier is assigned to each tracked target object, and its state is updated to obtain the motion trajectory of each target object.

[0121] For example, see Figure 6 As shown in (6e), the target image 604 has k frames, and each frame has two target objects A and B, which are a stone and a person throwing the stone. Figure 6 In step 5, based on the bounding box S11 of target object A and the bounding box S21 of target object B in the target image of the first frame, the positions Y11 and Y12 of target objects A and B in the second frame are estimated through the Kalman filter. Then, the positions Y11 and Y12 are matched with the bounding boxes S12 and S22 of target objects A and B in the actual target image of the second frame, respectively, to determine the actual positions of target objects A and B in the second frame, and finally the following can be obtained: Figure 6 The trajectory diagram 6051 of target object A, the trajectory diagram 6052 of target object B, etc. are shown in (6f).

[0122] S533, classify and detect the target object in the target image to determine the category of the target object.

[0123] In this step, a classifier can be used to extract features and perform classification detection on the area where the target object is located in the target image to obtain the category of the target object. As an example, the classifier can be a support vector machine (SVM), a Softmax multi-classifier, a neighbor (KNN, k-nearest neighbor) classifier, etc., but is not limited to this.

[0124] In this example, the computing device 20 inputs the target image into the classifier, performs a ROI operation on the area where the target object is located in the target image, extracts features of the target object for classification, and obtains the object category to which the target object belongs and its confidence level. By way of example and not limitation, the object category may include humans, animals, foreign objects, or categories that do not belong to any category.

[0125] In this embodiment, in addition to obtaining the category of the target object and its confidence, and the motion trajectory through S531 to S533, the duration of the target object's stay can be determined by calculating the timestamp of the target image, the speed of the target image can be calculated, and the size of the target object can be determined based on the bounding box of the target object, etc. These can all be used as detection results, such as Figure 6 The detection result 607 shown in (6g) can be used to determine whether to trigger an alarm.

[0126] S540: If the detection result reaches the monitoring alarm condition, a corresponding alarm message is generated.

[0127] In this step, monitoring alarm conditions are preset on the computing device 20. When one or more of the target object category and its confidence, the target object's motion trajectory, dwell time, speed, size, etc., reaches the monitoring alarm condition, an alarm can be triggered and an alarm message is generated and sent to the user terminal 30.

[0128] For example, when the monitoring alarm conditions are set: the categories that trigger the alarm include stones and animals, the speed threshold range for triggering the alarm is ≥1m / s, the dwell time is ≥2s, the motion trajectory includes parabolic and vertical types, etc., then when the detection result characterizes that the current target object category is stone, the speed is 1m / s, the dwell time is 3s, and the trajectory is parabolic, that is, the detection result meets the monitoring alarm conditions, the computing device 20 triggers an alarm.

[0129] In this embodiment, because the categories of intrusion objects (i.e., target objects) in the security area are relatively fixed in some scenarios, and the movement trajectories of some specific categories of intrusion objects entering the security area also have certain regularities, for example, intrusion objects on a railway line may include people, thrown objects, etc., wherein the movement trajectory of a person may be a point or a curve on the side of the railway line, and the movement trajectory of a thrown object may be a parabola, etc. Therefore, in this embodiment, in addition to triggering an alarm according to the object category, it is also possible to preset a variety of trajectory line types that can trigger alarms (such as vertical line types, parabolic types, rockfall curve types, etc.) to match the movement trajectory of the current target object. When the movement trajectory is similar to the preset trajectory line type, a monitoring alarm is triggered, thereby improving the recall rate of specific objects, thereby helping to improve the accuracy of the alarm.

[0130] Exemplarily, when the computing device 20 executes S540, the following steps may be specifically included:

[0131] S541, calling a trajectory line type library to perform similarity matching calculation on the motion trajectory of the target object, the trajectory line type library including a variety of trajectory line types;

[0132] S542: If a trajectory line type that is identical or similar to the motion trajectory of the target object is matched from the trajectory line type library, corresponding warning information is generated.

[0133] In this example, the computing device 20 may have a preset trajectory library, which includes a variety of trajectory types, each of which may be used to characterize the motion curves of some specific intrusion objects, such as Figure 6 The trajectory line type library 606 shown in (6h) includes line types such as rockfall curves, parabolas, and vertical lines. Then the computing device 20 compares the motion trajectory of each target object determined from the target image with each preset trajectory line type, and calculates the similarity. If the similarity between the motion trajectory of the target object and a preset trajectory line type is within the preset similarity threshold, it can be considered that the current target object is an intrusion object that can trigger an alarm, thereby generating corresponding alarm information. On the contrary, if the similarity between the motion trajectory of the target object and each preset motion curve is lower than the similarity threshold, no alarm information may be generated. For example Figure 6 As shown in (6g) and (6h), through step 8, the trajectory line library 606 is called to match the trajectory diagrams 6051 and 6052, and it can be determined that the motion trajectory in the trajectory diagram 6051 is similar to the parabola in the trajectory line library 606, and the trajectory diagram 605 can trigger an alarm accordingly.

[0134] In this way, even if the object is blocked after entering the defense zone, for example, the second half of the parabolic motion trajectory W1 formed by throwing a stone recorded in the surveillance video is blocked, the trajectory can be matched based on the first half of the motion trajectory W1 and the preset motion curves of multiple object types, and the parabolic curve D1 whose similarity with the motion trajectory W1 is within the preset threshold range can be matched, thereby triggering an alarm message, and displaying the motion trajectory and the matching effect (such as a comparison picture of the motion trajectory W1 and the parabolic curve D1) on the computing device 20 or the user terminal 30.

[0135] As a specific example, a trajectory configuration function (such as trajectory editing and trajectory type definition functions) can be provided on a user interface (the interface can be displayed by the computing device 20 or by a management terminal of the computing device 20 (such as the user terminal 10), but is not limited thereto), so that relevant personnel can configure different motion type curves for the computing device 20, such as parabolas, straight falls, hillside rolls, and other types of curves, and define the target object categories corresponding to these curve types. After the computing device 20 subsequently determines the motion trajectory of the target object, it can call these configured curve types to determine whether to trigger an alarm, or perform target object type matching and identification, etc.

[0136] In this embodiment, the alarm is triggered by trajectory matching, and no training is required. Only the motion curve type needs to be configured to match the motion trajectory of the target object to complete the recall of the specific target. In addition, for the case where the target object falls to the ground or is blocked, the preset trajectory that matches the visible period of the target object can be determined based on the motion curve matching, thereby triggering an alarm, thereby improving the alarm capability for target objects with specific trajectories (such as parabolas, landing lines, rolling curves, etc.) and reducing the missed alarm rate.

[0137] In addition, step S540 may further include S543, generating corresponding warning information according to the category of the target object.

[0138] In this step, when the target object category and its confidence, residence time, speed, size, etc. reach the threshold set by the preset monitoring alarm conditions, an alarm can also be triggered to ensure the reliability of the alarm.

[0139] In some possible implementations, the above-mentioned classification identification and trajectory matching can be performed on the target object respectively, and the alarm level of the classification identification and trajectory matching can be set. For example, when the results of classification identification or trajectory matching indicate that the target object has invaded, a lower level of alarm information is generated; when the results of classification identification and trajectory matching both indicate that the target object has invaded, a higher level of alarm information is generated to improve the accuracy of target object identification and reduce the false alarm rate.

[0140] In some possible implementations, after generating the warning information and displaying it on the user terminal, the method may further include:

[0141] S550, the computing device obtains a false alarm instruction from the user, where the false alarm instruction is used to indicate that the alarm information is a false alarm.

[0142] In this step, relevant personnel can view the monitoring alarm information of the current video from the user interface displayed on the user terminal 30, and the user interface provides a false alarm feedback interface. If the personnel finds that the current monitoring alarm information is incorrect through the video clip, such as the target object category represented in the alarm information is incorrect, then the false alarm feedback interface (such as button controls, sound input interfaces, gesture input interfaces, etc., but not limited to these) can be used to input a false alarm indication corresponding to the current alarm information and feedback it to the computing device 20.

[0143] S560: In response to the false alarm instruction, the computing device extracts corresponding feature data from the image having the target object and stores the data in a false alarm database.

[0144] In this embodiment, when the computing device 20 receives a false alarm indication from the user, it can extract features from the area where the target object is located in the target image, obtain a set of characteristic vectors of the target object, and store them in the false alarm database for subsequent call to verify whether the alarm information is a false alarm. In this way, the feature data corresponding to the false alarm can be automatically collected through user feedback, and the accumulation of feature data in the false alarm database can help to gradually reduce the false alarm rate.

[0145] In some implementations, before the alarm information is generated but not sent to the user terminal 30, such as Figure 7 As shown, the method may further include:

[0146] S570, after generating the alarm information, the computing device calls the false alarm database to perform feature matching on the target object in the video data.

[0147] In this step, the following may be specifically included:

[0148] S571, extracting corresponding feature data from the image having the target object;

[0149] S572, calling a false alarm database to perform matching calculation on the feature data of the target object;

[0150] S573: If feature data identical to or similar to the feature data of the target object is matched from the false alarm database, the state of the alarm information is changed.

[0151] In this example, after setting up the false alarm database, after being generated to the warning information, can be before sending to the user terminal 30, first extract the feature of the target object in the target image corresponding to the warning information, obtain the feature vector and compare it with the corresponding false alarm database, determine whether there is the vector identical with the current feature vector in the false alarm database, if there is, then indicate that the target object warning information corresponding to the current feature vector may be a false alarm, can reduce its early warning level, only for prompting. Otherwise, if there is no data identical with the current feature vector in the false alarm database, then characterize that the target object warning information corresponding to the current feature vector has not been judged to be a false alarm before, can be sent to the user terminal for warning. Like this, avoid warning again to the target object that has been wrongly reported, effectively reduce the probability of repeated false alarms. Along with the running time of system becoming longer, the false alarm rate of the same scene is gradually reduced.

[0152] S580: The computing device updates and iterates according to the feature data in the false alarm database to delete the identifiable feature data in the false alarm database.

[0153] In this step, when the data in the false alarm database accumulates to a certain amount, all the feature vectors in the false alarm database can be used as samples, summarized together with the normal samples (i.e., samples that can be identified) input from the outside, and input into a false alarm classifier for iterative training. When the number of iterations reaches a preset number or the loss of the false alarm classifier reaches an expected threshold, the iteration is stopped.

[0154] Next, the feature data in the false alarm database is classified and identified by a false alarm classifier to obtain the object type corresponding to each feature data in the false alarm database. Then, when the object type corresponding to any feature data in the false alarm database is determined to be correctly identified, the feature data is deleted from the false alarm database.

[0155] In this way, through iterative training of the false alarm classifier, the recognition ability of the false alarm classifier for those samples in the false alarm database that were once false alarms is improved, and the samples that can be recognized by the false alarm classifier and stored in the false alarm database are deleted from the false alarm database, preventing the accumulation of excessive data volume and increasing unnecessary data processing burden, and avoiding wasting storage resources.

[0156] It can be understood that the false alarm classifier and the classifier used in the above step S533 can belong to the same type of classifier, and the classifier used in the above step S533 can be iteratively trained similar to the false alarm classifier in step S580 to improve the recognition ability of the target object.

[0157] In some possible implementations, the above steps S510 to S580 may also be executed by a smart camera 10 with computing and processing capabilities, and the smart camera 10 is connected to the user terminal 30 via network communication.

[0158] Based on the above description, a monitoring device provided in an embodiment of the present application is introduced below.

[0159] For example, Figure 8 FIG. 1 is a schematic diagram of a monitoring device provided in an embodiment of the present application. Figure 8 As shown, the device 800 can be deployed on a camera, a computing device (such as a physical server, a cloud server, a container, etc.), and the device 800 includes:

[0160] An acquisition module 810 is used to acquire video data, where the video data includes an image sequence, and the image sequence includes multiple frames of images arranged in time sequence;

[0161] The detection module 820 is used to detect the video data, so as to generate corresponding alarm information when a target object is detected in the video data;

[0162] The alarm module 830 is used to call the false alarm database to perform feature matching on the target object in the video data. The false alarm database includes a number of feature data, each of which represents the object feature corresponding to the false alarm. In addition, the alarm module 830 is also used to change the state of the alarm information when there is feature data in the false alarm database that is the same as or similar to the target object feature.

[0163] In one achievable manner, reference Fig. 9 As shown, the acquisition module 810 can acquire the video data collected by the camera. As an example, the detection module 820 can specifically include a target detection module 821 and a target tracking module 822, wherein the target detection module 821 can be used to aggregate the image sequence and multi-stream data for target detection, and determine the target image with the target object in the image sequence, and the target tracking module 822 can be used to track and detect the target image to obtain the motion trajectory of the target object. The alarm module 830 can specifically match the motion trajectory of the target object and determine the object category of the target object, so as to determine whether to trigger a monitoring alarm based on the category or trajectory matching result.

[0164] As a specific example, Fig. 9 As shown, the target detection module 821 can be implemented as a multi-stream model, for example Figure 2 The multi-stream model 200 shown in FIG. In addition, as a specific example, Fig. 9 As shown, the alarm module 830 may include a classifier 831 and a trajectory matching module 832. The classifier 831 may be used to extract features and classify the target object in the target image, obtain the category of the target object and its confidence, and trigger an alarm when the confidence reaches a certain threshold. The trajectory matching module 832 may be used to call a trajectory line type library, perform similarity matching calculation on the motion trajectory, and trigger an alarm if a trajectory line type that is the same or similar to the motion trajectory of the target object is matched from the trajectory line type library.

[0165] In this example, the user terminal 30 may include a video display module 31, an alarm display module 32 and a false alarm feedback module 33, wherein the video display module 31 can display the video from the camera 10 or the monitoring device 800, the alarm display module 32 can display the alarm information from the monitoring device 800, and the false alarm feedback module 33 can trigger a false alarm instruction to the alarm module 830 of the monitoring device 800 when the user compares the video and the alarm information and determines that the alarm information is a false alarm.

[0166] As a specific example, the alarm module 830 may also include modules such as a false alarm database 833 and a false alarm classifier 834, and the false alarm database 843 stores the feature vector of the target object whose alarm information is a false alarm. The false alarm classifier 834 is used for updating iteration according to the feature data in the false alarm database, to delete the feature data that can be identified in the false alarm database. It is understandable that the false alarm classifier 834 and the classifier 831 may belong to the classifier of the same type, and the classifier 831 may carry out iterative training similar to the false alarm classifier 834, to improve the recognition capability to the target object.

[0167] In this embodiment, the acquisition module 810, the detection module 820, and the alarm module 830 can all be implemented by software, or can be implemented by hardware. Exemplarily, the implementation of the acquisition module 810 is described below by taking the acquisition module 810 as an example. Similarly, the implementation of the detection module 820 and the alarm module 830 can refer to the implementation of the acquisition module 810.

[0168] As an example of a software functional unit, the acquisition module 810 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above-mentioned computing instance may be one or more. For example, the acquisition module 810 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region (region) or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including a data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.

[0169] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.

[0170] As an example of a hardware functional unit, the acquisition module 810 may include at least one computing device, such as a server, etc. Alternatively, the acquisition module 810 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0171] The multiple computing devices included in the acquisition module 810 can be distributed in the same region or in different regions. The multiple computing devices included in the acquisition module 810 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the acquisition module 810 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0172] It should be noted that, in other embodiments, the acquisition module 810 can be used to execute any step in the monitoring method, the detection module 820 can be used to execute any step in the monitoring method, and the alarm module 830 can be used to execute any step in the monitoring method. The steps that the acquisition module 810, the detection module 820 and the alarm module 830 are responsible for implementing can be specified as needed. The full functions of the monitoring device can be realized by respectively implementing different steps in the monitoring method through the acquisition module 810, the detection module 820 and the alarm module 830.

[0173] The present application also provides a computing device 100. Fig.10 As shown, the computing device 100 includes: a bus 102, a processor 104, a memory 106, and a communication interface 108. The processor 104, the memory 106, and the communication interface 108 communicate with each other through the bus 102. The computing device 100 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 100.

[0174] The bus 102 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 The bus 104 is represented by only one line, but does not mean that there is only one bus or one type of bus. The bus 104 may include a path for transmitting information between various components of the computing device 100 (eg, the memory 106, the processor 104, and the communication interface 108).

[0175] The processor 104 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0176] The memory 106 may include a volatile memory, such as a random access memory (RAM). The processor 104 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0177] The memory 106 stores executable program codes, and the processor 104 executes the executable program codes to respectively implement the functions of the acquisition module 810, the detection module 820, and the alarm module 830, thereby implementing the monitoring method. That is, the memory 106 stores instructions for executing the monitoring method.

[0178] The communication interface 103 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 100 and other devices or a communication network.

[0179] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.

[0180] like Fig.11 As shown, the computing device cluster includes at least one computing device 100. The memory 106 in one or more computing devices 100 in the computing device cluster may store the same instructions for executing the monitoring method.

[0181] In some possible implementations, the memory 106 of one or more computing devices 100 in the computing device cluster may also store partial instructions for executing the monitoring method. In other words, the combination of one or more computing devices 100 may jointly execute instructions for executing the monitoring method.

[0182] It should be noted that the memory 106 in different computing devices 100 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the monitoring device. That is, the instructions stored in the memory 106 in different computing devices 100 can implement the functions of one or more modules in the acquisition module 810, the detection module 820 and the alarm module 830.

[0183] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.12 A possible implementation is shown. Fig.12 As shown, two computing devices 100A and 100B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 106 in the computing device 100A stores instructions for executing the functions of the acquisition module 810. At the same time, the memory 106 in the computing device 100B stores instructions for executing the functions of the detection module 820 and the alarm module 830.

[0184] Fig.12 The connection method between the computing device clusters shown may be based on the consideration that the monitoring method provided in the present application requires a large amount of data storage and image processing, and therefore it is considered that the functions implemented by the detection module 820 and the alarm module 830 are handed over to the computing device 100B for execution.

[0185] It should be understood that Fig.12The functions of the computing device 100A shown in FIG. 1 may also be completed by multiple computing devices 100. Similarly, the functions of the computing device 100B may also be completed by multiple computing devices 100.

[0186] The present application embodiment also provides another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similar to that of Fig.11 and Fig.12 The connection mode of the computing device cluster is different in that the memory 106 in one or more computing devices 100 in the computing device cluster may store the same instructions for executing the monitoring method.

[0187] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes a monitoring method or a monitoring method.

[0188] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct a computing device to execute a monitoring method, or instructs a computing device to execute a monitoring method.

[0189] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.

Claims

1. A monitoring method, characterized in that: The method comprises: Get video data; Detecting the video data to generate corresponding alarm information when detecting that a target object is recorded in the video data; Calling a false alarm database to perform feature matching on a target object in the video data, wherein the false alarm database includes a plurality of feature data, each of which represents an object feature corresponding to a false alarm; When feature data identical to or similar to the feature of the target object exists in the false alarm database, the state of the alarm information is changed.

2. The method according to claim 1, characterized in that After generating the corresponding alarm information, the method further includes: Obtaining a false alarm instruction from a user, where the false alarm instruction is used to indicate that the alarm information is a false alarm; In response to the false alarm instruction, extracting corresponding feature data from the video data having the target object; The feature data of the target object is stored in the false alarm database.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: Classify and identify the feature data in the false alarm database by a false alarm classifier to obtain the object type corresponding to each feature data in the false alarm database; When the object type corresponding to any feature data in the false alarm database is determined to be correctly identified, the feature data is deleted from the false alarm database.

4. The method according to any one of claims 1 to 3, characterized in that: The video data includes an image sequence, and the image sequence includes a plurality of frames of images arranged in time sequence; The detecting the video data to generate corresponding alarm information when a target object is detected in the video data includes: According to the image sequence, corresponding multi-stream data is acquired, wherein the multi-stream data includes the foreground of each frame of the image and / or trajectory superposition data corresponding to the foreground; Performing target detection and tracking according to the image sequence and the multi-stream data to obtain corresponding detection results, wherein the detection results include the category of the target object in the image sequence and / or the motion trajectory of the target object; If the detection result meets the monitoring alarm condition, a corresponding alarm message is generated.

5. The method according to claim 4, characterized in that When the detection result reaches the monitoring alarm condition, generating corresponding alarm information includes: Calling a trajectory line type library to perform similarity matching calculation on the motion trajectory of the target object, wherein the trajectory line type library includes a plurality of trajectory line types, each of which belongs to the line type set by the monitoring alarm condition; If a trajectory line type that is identical or similar to the motion trajectory of the target object is matched from the trajectory line type library, corresponding warning information is generated.

6. The method according to claim 4 or 5, characterized in that: The step of acquiring corresponding multi-stream data according to the image sequence includes: Calling the modeled background, performing pixel difference calculations with each frame image in the image sequence, and determining a foreground in each frame image that is different from the modeled background; The foreground of each frame image is superimposed on the same frame image according to the corresponding time sequence to obtain the corresponding trajectory superposition data.

7. The method according to any one of claims 4 to 6, characterized in that: The performing target detection and tracking according to the image sequence and the multi-stream data to obtain corresponding detection results includes: Aggregating the image sequence and the multi-stream data to perform target detection, and determining a target image having the target object in the image sequence; Tracking and detecting the target image to obtain a motion trajectory of the target object; The target object in the target image is classified and detected to determine the category of the target object.

8. The method according to claim 7, characterized in that Aggregating the image sequence and the multi-stream data to perform target detection, and determining a target image having the target object in the image sequence, comprises: In the multi-stream model, a separate convolution operation is performed on the image sequence and the multi-stream data to obtain feature maps corresponding to the image sequence and the multi-stream data respectively; Through the backbone network in the multi-stream model, feature extraction and recognition are performed on the feature maps corresponding to the image sequence and the multi-stream data to obtain the target image corresponding to the image sequence, wherein the target image is marked with the location information of the target object.

9. A monitoring device, characterized in that: The device comprises: An acquisition module, used for acquiring video data; A detection module, configured to detect the video data, so as to generate corresponding alarm information when a target object is detected in the video data; An alarm module is used to call a false alarm database to perform feature matching on a target object in the video data, wherein the false alarm database includes a plurality of feature data, each of which represents an object feature corresponding to a false alarm; The alarm module is further configured to change the state of the alarm information when feature data identical or similar to the feature of the target object exists in the false alarm database.

10. The device according to claim 9, characterized in that The alarm module is specifically used for: Obtaining a false alarm instruction from a user, where the false alarm instruction is used to indicate that the alarm information is a false alarm; In response to the false alarm instruction, extracting corresponding feature data from the video data having the target object; The feature data of the target object is stored in the false alarm database.

11. The device according to claim 9 or 10, characterized in that The alarm module is specifically used for: Classify and identify the feature data in the false alarm database by a false alarm classifier to obtain the object type corresponding to each feature data in the false alarm database; When the object type corresponding to any feature data in the false alarm database is determined to be correctly identified, the feature data is deleted from the false alarm database.

12. The device according to any one of claims 9 to 11, characterized in that: The video data includes an image sequence, and the image sequence includes a plurality of frames of images arranged in time sequence; The detection module is specifically used for: According to the image sequence, corresponding multi-stream data is acquired, wherein the multi-stream data includes the foreground of each frame of the image and / or trajectory superposition data corresponding to the foreground; Performing target detection and tracking according to the image sequence and the multi-stream data to obtain corresponding detection results, wherein the detection results include the category of the target object in the image sequence and / or the motion trajectory of the target object; The alarm module is specifically used to generate corresponding alarm information if the detection result reaches the monitoring alarm condition.

13. The device according to claim 12, characterized in that The alarm module is specifically used for: Calling a trajectory line type library to perform similarity matching calculation on the motion trajectory of the target object, wherein the trajectory line type library includes a plurality of trajectory line types, each of which belongs to the line type set by the monitoring alarm condition; If a trajectory line type that is identical or similar to the motion trajectory of the target object is matched from the trajectory line type library, corresponding warning information is generated.

14. The device according to any one of claims 12-13, characterized in that: The detection module is specifically used for: Calling the modeled background, performing pixel difference calculations with each frame image in the image sequence, and determining a foreground in each frame image that is different from the modeled background; The foreground of each frame image is superimposed on the same frame image according to the corresponding time sequence to obtain the corresponding trajectory superposition data.

15. The device according to any one of claims 12 to 14, characterized in that: The detection module is specifically used for: Aggregating the image sequence and the multi-stream data to perform target detection, and determining a target image having the target object in the image sequence; Tracking and detecting the target image to obtain a motion trajectory of the target object; The target object in the target image is classified and detected to determine the category of the target object.

16. The device according to claim 15, characterized in that The detection module is specifically used for: In the multi-stream model, a separate convolution operation is performed on the image sequence and the multi-stream data to obtain feature maps corresponding to the image sequence and the multi-stream data respectively; Through the backbone network in the multi-stream model, feature extraction and recognition are performed on the feature maps corresponding to the image sequence and the multi-stream data to obtain the target image corresponding to the image sequence, wherein the target image is marked with the location information of the target object.

17. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to claims 1-8.

18. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster is caused to execute the method according to claims 1 to 8.

19. A computer-readable storage medium, characterized in that: The method comprises computer program instructions, and when the computer program instructions are executed by a computing device cluster, the computing device cluster performs the method according to claims 1-8.

Citation Information

Patent Citations

  • Target object monitoring method, device and system

    CN109919009A

  • False alarm removing and early warning method and system for monitoring video multi-target detection

    CN112861673A

Cited By

  • Alarm information processing method, device and system, and alarm information auxiliary processing method, device and system

    CN120640083A

  • Video monitoring method and system

    CN121619409A