WO2020221031A1 - Behavior thermodynamic diagram generation and alarm method and apparatus, electronic device and storage medium - Google Patents

Behavior thermodynamic diagram generation and alarm method and apparatus, electronic device and storage medium Download PDF

Info

Publication number
WO2020221031A1
WO2020221031A1 PCT/CN2020/085423 CN2020085423W WO2020221031A1 WO 2020221031 A1 WO2020221031 A1 WO 2020221031A1 CN 2020085423 W CN2020085423 W CN 2020085423W WO 2020221031 A1 WO2020221031 A1 WO 2020221031A1
Authority
WO
WIPO (PCT)
Prior art keywords
behavior
sub
designated
target
area
Prior art date
Application number
PCT/CN2020/085423
Other languages
French (fr)
Chinese (zh)
Inventor
赵飞
Original Assignee
杭州海康威视数字技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2020221031A1 publication Critical patent/WO2020221031A1/en

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B17/00Fire alarms; Alarms responsive to explosion
    • G08B17/12Actuation by presence of radiation or particles, e.g. of infrared radiation or of ions
    • G08B17/125Actuation by presence of radiation or particles, e.g. of infrared radiation or of ions by using a video camera to detect fire or smoke
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B17/00Fire alarms; Alarms responsive to explosion
    • G08B17/12Actuation by presence of radiation or particles, e.g. of infrared radiation or of ions
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/02Alarms for ensuring the safety of persons

Definitions

  • This application relates to the field of image processing technology, in particular to methods, devices, electronic equipment, and storage media for generating and warning behavioral heat maps.
  • the purpose of the embodiments of the present application is to provide a method, device, electronic device, and storage medium for generating and alarming behavioral heat map to realize intuitive monitoring of a large area.
  • the specific technical solutions are as follows:
  • an embodiment of the present application provides an alarm method, and the method includes:
  • the behavior heat map represents the frequency of occurrence of a specified behavior in each sub-region of the area to be counted
  • triggering an alarm for the sub-area meeting the preset alarm condition includes:
  • the sub-regions of the behavior heat map include thermal colors, and the thermal colors represent the frequency of occurrence of a specified behavior in the sub-region, and the higher the frequency of occurrence of the specified behavior in the sub-region, the The higher the heating value of the thermal color of the area;
  • the triggering an alarm for the sub-area meeting the preset alarm condition when the sub-area of the behavior heat map meets the preset alarm condition includes:
  • an alarm for the sub-area to be alarmed is triggered.
  • the sub-regions of the behavior heat map include thermal colors
  • the designated behaviors are multiple designated behaviors, and different designated behaviors correspond to different thermal colors
  • the depth of the thermal color corresponds to the thermal color.
  • the frequency of occurrence of the specified behavior is positively correlated, and each of the thermal colors corresponds to the corresponding alarm linkage;
  • the triggering an alarm for the sub-area meeting the preset alarm condition when the sub-area of the behavior heat map meets the preset alarm condition includes:
  • the alarm method in the embodiment of the present application further includes:
  • the display instruction display the image data in the sub-region to be displayed, wherein the image data in the sub-region to be displayed is a video stream of the monitoring area in the sub-region to be displayed.
  • an embodiment of the present application provides a method for generating a behavioral heat map, which is applied to a back-end device, and the method includes:
  • a behavior heat map of the designated behavior in the region to be counted is generated.
  • the obtaining the behavior analysis result of each designated target in the image data of each preset monitoring area includes:
  • the pixel area sequence of each designated target is analyzed, and the behavior analysis result of each designated target is obtained.
  • the pixel region sequence of each designated target is the pixel region sequence of each sampled designated target
  • the computer vision technology is used to track and detect the designated target in each of the image data, and extract the A sequence of pixel areas, including:
  • target behavior sequence extraction is performed on each of the image data to obtain the pixel area sequence of each designated target of the sample.
  • one of the sub-regions includes at least one of the preset monitoring regions, and the determining the frequency of occurrence of the designated behavior in each sub-region of the region to be counted according to the behavior analysis result of each designated target includes:
  • the behavior analysis result of each designated target, and the preset monitoring area where each designated target is located the frequency of occurrence of the designated behavior in each of the sub-regions of the area to be counted is determined.
  • the method further includes:
  • the determining the frequency of occurrence of the designated behavior in each sub-region of the area to be counted according to the behavior analysis result of each designated target includes:
  • the frequency of occurrence of the designated behavior in each sub-region of the area to be counted is determined.
  • the acquiring the actual position of each of the designated targets in the preset monitoring area includes:
  • the actual position of each designated target in the preset monitoring area is determined.
  • the determining the frequency of occurrence of the specified behavior in each subregion of the area to be counted according to the actual location of each specified target and the behavior analysis result of each specified target includes:
  • each designated target classify each designated target to obtain multiple behavior lists, wherein the behavior types of the designated targets in the same behavior list are the same;
  • the frequency of occurrence of the designated behavior in each sub-region of the area to be counted is determined.
  • the method before the determining the frequency of occurrence of the designated behavior in each subregion of the area to be counted according to the behavior analysis result of each designated target, the method further includes:
  • each sub-area in the area to be counted is determined.
  • the designated behavior has a plurality of designated behaviors
  • the generating a behavior heat map of the designated behavior of the region to be counted according to the frequency of occurrence of the designated behavior in each of the sub-regions includes:
  • the thermal color corresponding to each designated behavior in the subregion is displayed on the map of the subregion, where any The intensity of the thermal color is positively related to the frequency of occurrence of the specified behavior corresponding to the thermal color.
  • the behavior analysis result of each designated target is a list of designated targets that trigger each designated behavior; the obtaining the behavior analysis result of each designated target in the image data of each preset monitoring area includes:
  • an embodiment of the present application provides a method for sending a behavior list, which is applied to a front-end smart device, and the method includes:
  • each designated target classify each designated target to obtain multiple behavior lists, wherein the behavior type of each designated target in the same behavior list is the same;
  • the behavior analysis result of each designated target is the behavior analysis result of each sampled designated target.
  • the image data is analyzed by computer vision technology to obtain the behavior analysis result of each designated target in the image data, include:
  • an embodiment of the present application provides an alarm device, which includes:
  • the heat map display module is used to display the behavior heat map of the area to be counted, wherein the behavior heat map represents the frequency of occurrence of a specified behavior in each sub-region of the area to be counted;
  • the alarm triggering module is used to trigger an alarm for the sub-area meeting the preset alarm condition when the sub-area of the behavior heat map meets the preset alarm condition.
  • the alarm trigger module includes:
  • a frequency comparison sub-module for comparing the frequency of occurrence of a specified behavior in each sub-region of the behavior heat map with a preset frequency threshold
  • the sub-area alarm sub-module is used for triggering an alarm for the target sub-area for the target sub-area whose frequency of occurrence of the specified behavior is greater than the preset frequency threshold.
  • the sub-regions of the behavior heat map include thermal colors, and the thermal colors represent the frequency of occurrence of a specified behavior in the sub-region, and the higher the frequency of occurrence of the specified behavior in the sub-region, the The higher the heating value of the thermal color of the area;
  • the alarm trigger module includes:
  • the thermal value comparison sub-module is used to compare the thermal value of the thermal color of each of the sub-regions with the preset thermal value
  • the triggering alarm sub-module is used for triggering an alarm for the sub-area to be alarmed whose heating value is greater than the preset heating threshold.
  • the sub-regions of the behavior heat map include thermal colors
  • the designated behaviors are multiple designated behaviors, and different designated behaviors correspond to different thermal colors
  • the depth of the thermal color corresponds to the thermal color.
  • the frequency of occurrence of the specified behavior is positively correlated, and each of the thermal colors corresponds to the corresponding alarm linkage;
  • the alarm trigger module is specifically used for:
  • the alarm device in the embodiment of the present application further includes:
  • the display instruction receiving module is used to obtain the user's display instruction for the sub-area to be displayed
  • the image data display module is configured to display the image data in the sub-region to be displayed according to the display instruction, wherein the image data in the sub-region to be displayed is the monitoring in the sub-region to be displayed The video stream of the region.
  • an embodiment of the present application provides an apparatus for generating a behavioral heat map, which is applied to a back-end device, and the apparatus includes:
  • the analysis result obtaining module is used to obtain the behavior analysis result of each designated target in the image data of each preset monitoring area, wherein the preset monitoring area is the area in the area to be counted;
  • the sub-region frequency statistics module is used to determine the frequency of occurrence of the designated behavior in each sub-region of the region to be counted according to the behavior analysis result of each designated target, wherein the sub-region and the preset monitoring region exist Intersection
  • the behavior heat map generating module is configured to generate a behavior heat map of the designated behavior of the region to be counted according to the frequency of occurrence of the designated behavior in each of the sub-regions.
  • the analysis result obtaining module includes:
  • Image data acquisition sub-module for acquiring image data of each preset monitoring area
  • the behavior analysis sub-module, the behavior analysis sub-module includes:
  • An area sequence determination unit configured to track and detect the designated targets in each of the image data using computer vision technology, and extract the pixel region sequence of each of the designated targets;
  • the area sequence analysis unit is used to analyze the pixel area sequence of each designated target to obtain the behavior analysis result of each designated target.
  • the pixel region sequence of each designated target is a pixel region sequence of each sample designated target
  • the region sequence determining unit includes:
  • the position determination subunit is used to determine each designated target in each of the image data and the position of each designated target through a preset target detection algorithm and a preset target tracking algorithm;
  • the coefficient sampling subunit is used to sample each designated target in each of the image data by using a preset target sampling algorithm to obtain each sampled designated target;
  • the region intercepting and determining subunit is used to perform target behavior sequence extraction on each of the image data according to the position of the designated target of each sample to obtain the pixel region sequence of each designated target of the sample.
  • one of the sub-regions includes at least one of the preset monitoring regions, and the sub-region frequency statistics module includes:
  • An inclusion relationship determination sub-module for obtaining the inclusion relationship between each of the sub-regions and each of the preset monitoring regions
  • the behavior frequency statistics sub-module is used to determine the occurrence of a designated behavior in each of the sub-regions of the area to be counted according to the inclusion relationship, the behavior analysis result of each of the designated targets, and the preset monitoring area where each designated target is The frequency.
  • the device for generating a behavioral heat map in this embodiment of the present application further includes:
  • An actual position acquisition module configured to acquire the actual position of each designated target in the preset monitoring area
  • the sub-region frequency statistics module is specifically configured to determine the frequency of occurrence of the designated behavior in each sub-region of the region to be counted according to the actual location of each designated target and the behavior analysis result of each designated target.
  • the actual location acquisition module includes:
  • An image position acquisition sub-module configured to determine the position of each designated target in the image data according to the pixel area sequence of each designated target
  • the actual position mapping sub-module is used to determine the actual position of each designated target in the preset monitoring area according to the position of each designated target in the image data.
  • the sub-region frequency statistics module includes:
  • the designated target classification sub-module is used to classify each designated target according to the behavior analysis result of each designated target to obtain multiple behavior lists, wherein the behavior types of the designated targets in the same behavior list are the same;
  • the target list determination sub-module is used to determine the target behavior list corresponding to the specified behavior
  • the frequency determination sub-module is used to determine the frequency of occurrence of the specified behavior in each sub-region of the area to be counted according to the actual position of each designated target in the target behavior list.
  • the device for generating a behavioral heat map in this embodiment of the present application further includes:
  • a setting instruction acquisition module configured to acquire a granularity setting instruction input by a user, wherein the granularity setting instruction represents the size attribute of the sub-region;
  • the sub-region setting module is used to determine each sub-region in the area to be counted according to the granularity setting instruction.
  • the specified behavior has multiple specified behaviors
  • the behavior heat map generating module includes:
  • the multi-frequency statistics sub-module is used to obtain an electronic map of the area to be counted, and obtain the frequency of occurrence of each designated behavior in each sub-area;
  • the thermal color corresponding sub-module is used to determine the thermal color corresponding to each specified behavior
  • the map coloring sub-module is used for any sub-area in the electronic map, according to the frequency of occurrence of each specified behavior in the sub-area, display the corresponding to each specified behavior in the sub-area on the map of the sub-area Thermal color, where the intensity of any thermal color is positively related to the frequency of occurrence of the specified behavior corresponding to the thermal color.
  • the behavior analysis result of each designated target is a list of designated targets that trigger each designated behavior; the analysis result obtaining module includes:
  • the behavior list receiving sub-module is configured to receive the behavior list sent by each smart device, wherein the behavior list includes the identification of the designated target, and the behavior types of the designated targets in the same behavior list are the same;
  • the behavior list assembling sub-module is used to assemble each of the behavior lists to obtain the designated target lists that trigger each designated behavior.
  • an embodiment of the present application provides a behavior list sending device, which is applied to a front-end smart device, and the device includes:
  • the image data acquisition module is used to acquire the image data of the preset monitoring area
  • the target behavior analysis module is used to analyze the image data through computer vision technology to obtain the behavior analysis result of each designated target in the image data;
  • the designated target classification module is configured to classify each designated target according to the behavior analysis result of each designated target to obtain multiple behavior lists, wherein the behavior types of the designated targets in the same behavior list are the same;
  • the behavior list sending module is used to send each of the behavior lists.
  • the behavior analysis result of each designated target is the behavior analysis result of each sampled designated target
  • the target behavior analysis module includes:
  • the target position determination sub-module is used to determine each designated target in the image data and the position of each designated target through a preset target detection algorithm and a preset target tracking algorithm;
  • the designated target sampling sub-module is used to sample each designated target in the image data by using a preset target sampling algorithm to obtain each sampling designated target;
  • the pixel region interception sub-module is configured to extract the target behavior sequence of the image data according to the position of each of the sampled designated targets to obtain the pixel region sequence of each of the sampled designated targets;
  • the target behavior analysis sub-module is used to analyze the pixel area sequence of each of the sampling designated targets to obtain the behavior analysis result of each of the sampling designated targets.
  • an embodiment of the present application provides an electronic device, including a processor and a memory;
  • the memory is used to store computer programs
  • the processor is configured to implement the alarm method described in any one of the first aspects when executing the program stored in the memory.
  • an embodiment of the present application provides an electronic device, including a processor and a memory;
  • the memory is used to store computer programs
  • the processor is configured to implement the method for generating a behavioral heat map according to any one of the second aspects when executing the program stored in the memory.
  • an embodiment of the present application provides an electronic device including a processor and a memory
  • the memory is used to store computer programs
  • the processor is configured to implement the behavior list sending method of any one of the foregoing third aspects when executing the program stored in the memory.
  • an embodiment of the present application provides a computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any of the foregoing aspects of the first aspect is implemented. 1. The alarm method described.
  • an embodiment of the present application provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and the computer program implements the above-mentioned second aspect when executed by a processor. Any of the described behavioral heat map generation methods.
  • an embodiment of the present application provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the foregoing third aspect is implemented Any of the aforementioned behavior list sending methods.
  • the behavioral heat map generation and alarm method, device, electronic equipment and storage medium provided in the embodiments of the application obtain the behavior analysis results of each designated target in the image data of each preset monitoring area, where the preset monitoring area is the area to be counted According to the behavior analysis results of each designated target, determine the frequency of the specified behavior in each sub-area of the area to be counted. Among them, the sub-area and the preset monitoring area overlap; according to the frequency of the specified behavior in each sub-area , To generate the behavior heat map of the specified behavior of the area to be counted.
  • FIG. 1a is a first schematic diagram of a method for generating a behavioral heat map according to an embodiment of this application
  • FIG. 1b is a second schematic diagram of a method for generating a behavioral heat map according to an embodiment of the application
  • FIG. 2 is a third schematic diagram of a method for generating a behavioral heat map according to an embodiment of the application
  • FIG. 3 is a schematic diagram of an alarm method according to an embodiment of the application.
  • FIG. 4 is a schematic diagram of a deep learning algorithm training process according to an embodiment of the application.
  • FIG. 5 is a fourth schematic diagram of a method for generating a behavioral heat map according to an embodiment of the application.
  • FIG. 6 is a schematic diagram of a method for sending a behavior list according to an embodiment of the application.
  • FIG. 7 is a schematic diagram of an apparatus for generating a behavioral heat map according to an embodiment of the application.
  • FIG. 8 is a schematic diagram of an apparatus for sending a behavior list according to an embodiment of this application.
  • FIG. 9 is a schematic diagram of an electronic device according to an embodiment of the application.
  • an embodiment of the present application provides a method for generating a behavioral heat map. See FIG. 1a, which is applied to a back-end device. The method includes:
  • S101 Obtain a behavior analysis result of each designated target in the image data of each preset monitoring area, where the foregoing preset monitoring area is an area in the area to be counted.
  • the method for generating a behavioral heat map in the embodiment of the present application is applied to a back-end device, so it can be executed by a back-end device.
  • the back-end device may be a server, a personal computer, or a hard disk video recorder.
  • the image data in the embodiments of the present application may be a video stream, and in some application scenarios that only include target recognition, it may also be a single-frame video frame.
  • the preset monitoring area is the monitoring area designated by the user in the area to be counted.
  • the back-end equipment can directly obtain the behavior analysis results of each designated target in each image data through smart cameras installed in each preset monitoring area. Among them, the smart camera analyzes the image data collected by itself through computer vision technology, obtains the behavior analysis result of each designated target in the image data collected by itself, and sends it to the back-end device.
  • the smart camera can send the behavior analysis results of each specified target through a behavior list.
  • the smart camera establishes a behavior list for each behavior type, and the smart camera will trigger the designation of the specified behavior type
  • the identification of the target is added to the corresponding behavior list.
  • obtaining the behavior analysis result of each designated target in the image data of each preset monitoring area includes: receiving a behavior list sent by each smart device, wherein the behavior list includes the identification of the designated target, and the behavior list is in the same behavior list.
  • the behavior types of the designated targets are the same; the above-mentioned behavior lists are assembled, and the designated target lists that trigger each designated behavior are respectively obtained, wherein the behavior analysis results of the above-mentioned designated targets are expressed in the form of the designated target list that triggers each designated behavior.
  • the back-end device can summarize the analysis results of the image data of multiple preset monitoring areas, and allocate the computing resources to the front-end smart device, reducing the processing pressure of the back-end device and improving flexibility.
  • the smart device here may be a smart camera or a hard disk video recorder, etc.
  • the image data analysis process is executed by a back-end device. See FIG. 1b.
  • the above-mentioned acquiring behavior analysis results of each designated target in the image data of each preset monitoring area includes:
  • the back-end device receives the image data of each preset monitoring area sent by each camera.
  • S1012 Analyze each of the above-mentioned image data through computer vision technology to obtain a behavior analysis result of the designated target in each of the above-mentioned image data.
  • the back-end equipment uses computer vision technology to obtain the behavior analysis results of the specified targets in each image data.
  • the designated target is the target that the user wants to pay attention to, which can be a person, a vehicle, or an animal, etc., which can be set according to actual requirements.
  • the computer vision technology is a pre-trained deep learning algorithm, and the back-end device uses the deep learning algorithm to analyze the image data to obtain the behavior analysis result of the specified target in the image data.
  • the process of the pre-trained deep learning algorithm can be shown in Figure 4, including: determining the behavior type of interest, calibrating the behavior type of the specified target in each image data containing the specified target, obtaining sample image data, and inputting the sample image data Train in the deep learning algorithm, and get the pre-trained deep learning algorithm after convergence.
  • the foregoing analysis of each of the foregoing image data by computer vision technology to obtain the behavior analysis result of the specified target in each of the foregoing image data includes:
  • Step 1 Using computer vision technology, the designated targets in each of the above-mentioned image data are respectively tracked and detected, and the pixel region sequence of each of the above-mentioned designated targets is extracted.
  • Computer vision technology can include target detection algorithms and target tracking algorithms.
  • the back-end equipment recognizes the specified targets in each image data through the target detection algorithm, and tracks the specified targets through the target tracking algorithm to obtain each specified target According to the position in the image data, the pixel region sequence of each designated target is extracted according to the position of each designated target in the image data.
  • the pixel area sequence of the designated target may be sampled.
  • the computer vision technology is used to track and detect the designated targets in each of the above-mentioned image data, and extract the pixel region sequence of each of the above-mentioned designated targets, including:
  • Step A Determine each designated target and the position of each designated target in each of the aforementioned image data by using a preset target detection algorithm and a preset target tracking algorithm.
  • the back-end equipment recognizes the designated targets in each image data through target detection and calculation, and tracks the designated targets through the target tracking algorithm, so as to obtain the position of each designated target in the image data.
  • a unique ID can be set for each designated target.
  • Target detection algorithms can include pedestrian target detection, such as HOG (Histogram of Oriented Gradient), DPM (Deformable Parts Models), FRCNN (Faster Regions with Convolutional Neural Networks, faster based on partitions) Convolutional Neural Network), YOLO (You Only Look Once), SSD (Single Shot Multibox Detector), the target tracking algorithm can be a multi-target tracking algorithm method.
  • Step B sampling each designated target in each of the above-mentioned image data through a preset target sampling algorithm to obtain each sampling designated target.
  • the back-end equipment also performs target sampling on each designated target, thereby reducing the processing pressure of the back-end equipment.
  • the back-end equipment can sample the specified target through any relevant sampling algorithm. For example, target sparse sampling of specified targets in each image data.
  • Target sparse sampling methods include but are not limited to target uniform sampling, point uniform sampling, point weight sampling, and sampling based on the number of regional targets, etc., which can be obtained by sampling A designated target with an appropriate target scale, that is, sampling designated targets.
  • Step C Perform target behavior sequence extraction on each of the above-mentioned image data according to the position of the designated target of each of the above-mentioned samples to obtain the pixel region sequence of each designated target of the above-mentioned sample.
  • step A the location of each designated target is determined, and each sampling designated target is a target in each designated target, so the position of each sampling designated target is known.
  • the back-end device extracts the target behavior sequence of each image data according to the position of each sample designated target, and performs image interception from the image data according to a certain structure, such as Tubelet, to obtain the pixel area sequence of each sample designated target. By sampling the pixel area sequence of the designated target instead of the pixel area sequence of each designated target.
  • the pixel area sequence of each designated target is sampled, and the sparse sampling is completed according to the density of the target. While preserving the distribution characteristics of the designated target under different preset monitoring regions, it reduces the data of behavior type recognition processing. The quantity has improved the practicability of the overall scheme.
  • Step 2 Analyze the pixel area sequence of each of the above-mentioned designated targets to obtain the behavior analysis result of each of the above-mentioned designated targets.
  • Analyze the pixel region sequence of each specified target using the image sequence behavior recognition framework, for example, LSTM (Long Short-Term Memory), dual stream network, C3D (3D ConvNets, deep 3-dimensional convolutional network) P3D (Pseudo-3D Residual Networks), ArtNet, PointNet, PointSIFT, etc., combine the classification neural network to extract the sequence behavior feature, and obtain the behavior analysis result of the pixel area sequence of each specified target.
  • LSTM Long Short-Term Memory
  • C3D 3D ConvNets, deep 3-dimensional convolutional network
  • P3D Pseudo-3D Residual Networks
  • ArtNet PointNet
  • PointSIFT PointSIFT
  • classification neural networks include, but are not limited to, Residual Neural Network 18 (Residual Neural Network 18), Residual Neural Network 50 (Residual Neural Network 50), Residual Neural Network 101 (Residual Neural Network 101), Resnet 152 (Residual Neural Network 152, Residual Neural Network 152), Inception-v1, VGG (Visual Geometry Group Network, Visual Geometry Group Network), etc.
  • the behavior analysis result includes behavior category and confidence.
  • S102 Determine the frequency of occurrence of the designated behavior in each sub-region of the area to be counted according to the behavior analysis result of each of the above-mentioned designated targets, where the above-mentioned sub-region and the above-mentioned preset monitoring area have an intersection;
  • the area to be counted can be a preset area or a user-designated area.
  • the above method further includes: acquiring a region to be counted selection instruction input by the user; and determining the region to be counted according to the above-mentioned region to be counted selection instruction.
  • the selection command of the area to be counted represents the range of the area to be counted.
  • Each sub-region of the area to be counted may be predetermined, for example, a plurality of area intervals are divided according to the area size in advance, and the size and division method of the sub-regions are set for each area interval.
  • the sub-areas are divided in advance, and multiple sub-areas are divided in advance according to different granularities, for example, roads, floors, communities, urban areas, cities, or provinces. According to the pre-divided sub-areas, determine the sub-areas included in the area to be counted.
  • the above method further includes:
  • Step 1 Obtain a granularity setting instruction input by a user, wherein the granularity setting instruction represents the size attribute of the sub-region.
  • the granularity setting instruction represents the size of the sub-region.
  • the granularity setting instruction represents the sub-region as a road, a floor, a district, an urban area, a city, or a province.
  • Step 2 Determine each sub-areas in the area to be counted according to the above-mentioned granularity setting instruction. For example, when the sub-area characterized by the granularity setting instruction is a cell, each sub-area is determined to be a cell; when the sub-area characterized by the granularity setting instruction is a street, it is determined that each sub-area is a street.
  • the behavior analysis results of different granularities can be summarized, and the regional behavior can be visually displayed in different colors and color shades in combination with the electronic map, which is intuitive and easy to use.
  • the specified behavior can be a preset behavior type or a behavior type selected by the user in real time.
  • the above method further includes: acquiring a specified behavior selection instruction input by a user, wherein the specified behavior selection instruction represents a behavior type of the specified behavior; and the specified behavior is determined according to the specified behavior selection instruction.
  • the back-end equipment determines the sub-region where each designated target belongs according to the preset monitoring area to which each designated target belongs; according to the behavior analysis results of each designated target, separately counts the frequency of occurrence of the designated behavior in each sub-region.
  • the size of the preset monitoring area is smaller than the size of the sub-area.
  • the sub-area includes the preset monitoring area, and the determination is determined based on the behavior analysis result of each of the specified targets. The frequency of occurrence of the specified behavior in each sub-areas of the area to be counted, including:
  • Step 1 Obtain the inclusion relationship between each of the aforementioned sub-areas and each of the aforementioned preset monitoring areas.
  • the preset monitoring areas included in each sub-area are respectively determined.
  • Step 2 Determine the frequency of occurrence of the specified behavior in each of the sub-regions of the area to be counted according to the inclusion relationship, the behavior analysis result of each of the specified targets, and the preset monitoring area where each of the specified targets is located.
  • the image data is a video image of the preset monitoring area, and the specified target in any image data is the specified target in the preset monitoring area corresponding to the image data. If the subarea includes a preset monitoring area, the designated target in the preset monitoring area is the designated target in the subarea. According to the behavior analysis results of each designated target, count the frequency of occurrence of designated behaviors in each sub-region.
  • the above method further includes: classifying the designated targets according to the behavior analysis results of the designated targets to obtain multiple behavior lists, where , The behavior type of each specified target in the same behavior list is the same. According to the behavior analysis results of the specified target, each specified target of the same behavior type is divided into a behavior list. In addition to recording the corresponding behavior type and the identification of the specified target, the behavior list can also record the location of the specified target, and specify the target. The location of can be the image data/preset monitoring area to which the specified target belongs, or the location of the specified target is the actual coordinates of the specified target, etc.
  • S103 Generate a behavior heat map of the designated behavior in the region to be counted according to the frequency of occurrence of the designated behavior in each subregion.
  • the back-end device colors each sub-areas of the area to be counted in the electronic map according to the frequency of occurrence of the designated behavior in each sub-areas, so as to obtain a behavior heat map of the designated behavior in the area to be counted.
  • cool and warm colors can be used to indicate the frequency of occurrence of the specified behavior in the sub-region. For example, the higher the frequency of the specified behavior in the sub-region, the closer the color of the sub-region to the warm color; The lower the frequency of the specified behavior, the closer the color of the sub-region is to the cool color.
  • the user may wish to monitor multiple types of behaviors.
  • the above-mentioned designated behaviors are multiple designated behaviors.
  • the above-mentioned designated behaviors are generated according to the frequency of occurrence of the designated behaviors in each of the above-mentioned sub-regions.
  • the behavior heat map of the specified behavior in the above-mentioned area to be counted includes:
  • Step 1 Obtain an electronic map of the area to be counted, and obtain the frequency of occurrence of each designated behavior in each of the sub-areas.
  • Step two determine the thermal color corresponding to each of the above specified behaviors.
  • the designated behavior includes a variety of designated behaviors, and different thermal colors can be set for different designated behaviors.
  • the thermal color corresponding to each specified behavior can be randomly determined or specified by the user, which will not be repeated here.
  • Step 3 For any sub-area in the above electronic map, according to the frequency of occurrence of each specified behavior in the sub-area, the thermal color corresponding to each specified behavior in the sub-area is displayed on the map of the sub-area, where any The intensity of a thermal color is positively related to the frequency of occurrence of the specified behavior corresponding to the thermal color.
  • the thermal color of the specified behavior contained in the sub-region is displayed in the electronic map position of the sub-region. And the higher the frequency of the specified behavior in the sub-region, the darker the thermal color corresponding to the specified behavior.
  • the behavioral heat map can be zoomed in or out, and the frequency statistics data can be updated according to the scale of the electronic map.
  • the user can select the image data in the sub-area from the electronic map for video preview to observe the actual situation more realistically.
  • the above method further includes obtaining an image display instruction for the designated preset monitoring area; and displaying the image data of the designated preset monitoring area according to the image display instruction. For example, the user can click the designated preset monitoring area in the sub-area through the mouse or touch screen, and the back-end device displays the image data of the designated preset monitoring area after detecting the click instruction for the designated preset monitoring area.
  • the frequency of occurrence of designated behaviors in each sub-region in the region to be counted is counted by image data, and then a behavior heat map of the region to be counted is generated, which can realize intuitive monitoring of a large area.
  • the above method further includes:
  • the actual location of the designated target can be reported by a front-end smart device such as a smart camera, or it can be determined by a back-end device based on image data.
  • the foregoing obtaining the actual position of each of the specified targets in the preset monitoring area includes:
  • S201 Determine the position of each designated target in the image data according to the pixel area sequence of each designated target.
  • the pixel area of the specified target can be the pixel area selected by the target frame of the specified target.
  • the position sequence of the specified target in the above image data is determined.
  • it can be a sequence of position coordinates (multiple consecutive time series). Coordinate areas).
  • S202 Determine the actual position of each designated target in the preset monitoring area according to the position of each designated target in the image data.
  • the position of the designated target in the image data is converted into the actual position of the designated target in the preset monitoring area, and the actual position can be the global positioning system coordinates or a custom area coordinate.
  • the actual location of each designated target may be sent to the back-end device by a front-end device such as a smart camera, and the back-end device may directly obtain the actual location of each designated target.
  • a front-end device such as a smart camera
  • the above determination of the frequency of occurrence of the designated behavior in each sub-region of the area to be counted based on the behavior analysis results of each of the above designated targets includes:
  • the frequency of occurrence of designated behaviors in each subregion of the area to be counted is determined.
  • the actual location of each designated target by determining the actual location of each designated target, it can be applied to the case where the sub-region does not contain the complete preset monitoring area, and it can even be applied to the case where the sub-area is smaller than the preset monitoring area, which can be applied to behavior
  • a scene with a small granularity of the heat map that is, a scene with a small sub-area, theoretically the smallest sub-area can be a coordinate point, which can greatly increase the monitoring accuracy of the behavioral heat map.
  • the designated behaviors in each subregion of the region to be counted are determined based on the actual position of each designated target and the behavior analysis result of each designated target. Frequency of occurrence, including:
  • S1021 According to the behavior analysis result of each of the specified targets, classify each of the specified targets to obtain multiple behavior lists, wherein the behavior types of the specified targets in the same behavior list are the same.
  • each designated target of the same behavior type is divided into a behavior list.
  • the behavior type of the behavior list the identification of each specified target included in the behavior list, and the actual position of each specified target included in the behavior list are recorded in the behavior list.
  • S1022 Determine a target behavior list corresponding to the specified behavior.
  • S1023 Determine the frequency of occurrence of the specified behavior in each subregion of the area to be counted according to the actual position of each designated target in the target behavior list.
  • the frequency of occurrence of the designated target in each subregion is determined.
  • the embodiment of the present application also provides an alarm method. Referring to FIG. 3, the method includes:
  • the alarm method in the embodiment of the present application may be executed by a back-end device.
  • the back-end device may be a server, a personal computer, or a hard disk video recorder.
  • the behavioral heatmap can be obtained by any of the above-mentioned methods for generating the behavioral heatmap, and will not be repeated here.
  • the preset alarm condition can be set according to the actual situation, for example, the specified behavior frequency is greater than the preset frequency threshold, or the heat value of the heat color is greater than the preset heat preset value.
  • triggering an alarm for the sub-regions that meet the preset alarm condition includes: comparing each sub-region of the above-mentioned behavior heat map respectively The frequency of occurrence of the specified behavior and the size of the preset frequency threshold; for the target subregion where the frequency of occurrence of the specified behavior is greater than the preset frequency threshold, an alarm for the target subregion is triggered.
  • the sub-regions of the above-mentioned behavior heat map include thermal colors, and the above-mentioned thermal colors represent the frequency of occurrence of the specified behavior in the above-mentioned sub-region, and the higher the frequency of occurrence of the specified behavior in the above-mentioned sub-region, the above-mentioned sub-region The higher the thermal value of the thermal color of the area; when the above-mentioned sub-regions of the above-mentioned behavioral heat map meet the preset alarm conditions, the alarm for the sub-regions meeting the preset alarm conditions is triggered, including: comparing the thermal colors of the above-mentioned sub-regions respectively The heating power value of and the preset heating power preset value; for the sub-area to be alarmed whose heating power value is greater than the preset heating threshold value, an alarm for the sub-area to be alarmed is triggered.
  • the method for generating a behavioral heat map of the embodiment of the present application may be specifically as shown in FIG. 5.
  • the user can set the behavior category of interest, and the back-end device monitors the frequency of each specified behavior in the area to be counted in real time. Once the specified behavior category's thermal power increases significantly and reaches the preset thermal threshold, it can actively trigger the early warning linkage. Users can take the initiative to view live video or live examples of the behavior category, and respond in time according to the situation.
  • the alarm method in the embodiments of the present application can be widely used in various fields. Examples are as follows:
  • an alert is triggered and the live video is pushed
  • give the manager a short video of the on-site behavior. If you check that it is a fire in the shopping mall, you can quickly send a fire alarm to support; when the heat of the behavior of people falling to the ground or fighting with people in a certain area suddenly rises and reaches the upper threshold, the manager actually checks and finds In the event of a violent terrorist incident at the railway station, staff can be quickly sent to support.
  • the behavior types of people queuing, people staying, people dragging suitcases can be preset.
  • the manager checks the pushed live video or short video and finds the train If a large number of passengers are found in a square at a station, transportation resources or evacuation personnel can be quickly dispatched to evacuate the crowd.
  • the linkage strategy is triggered to alert the teaching administrator.
  • the teaching manager checked the pushed video or short behavioral video and found that some classrooms had a low teaching atmosphere, and they could understand the teaching work in time and improve the quality of teaching.
  • the linkage strategy will be triggered to alert the pasture manager .
  • the herd After checking the pushed live video or short video by the ranch manager, it is found that the herd is suspected of being poisoned or epidemic, and the disease control and hygiene work can be carried out quickly.
  • the embodiments of this application it is possible to easily perform multi-functional combined use based on the statistical results of the behavior list of the designated monitoring area, including viewing the distribution characteristics of a single/any multiple behaviors, and viewing the behavior distribution characteristics of a single area/any multiple areas.
  • the interactive operation is simple.
  • the behavioral heat map is used for behavior preview and scheduling, which is convenient for users to quickly pay attention to the on-site situation, facilitate evidence collection, and quickly make system scheduling, which improves the level of intelligence.
  • the sub-regions of the above-mentioned behavior heat map include thermal colors, and the above-mentioned designated behaviors have multiple designated behaviors, and different designated behaviors correspond to different thermal colors.
  • the intensity of the aforementioned thermal color is positively correlated with the frequency of occurrence of the specified behavior corresponding to the aforementioned thermal color, and each of the aforementioned thermal colors corresponds to a corresponding alarm linkage;
  • triggering an alarm for the sub-area meeting the preset alarm condition includes:
  • Step 1 For each thermal color in each of the above-mentioned sub-regions, compare the depth of the thermal color with the size of the preset degree preset value corresponding to the thermal color.
  • Step 2 For the target thermal color whose depth is greater than the preset degree, trigger an alarm linkage for the sub-region where the target thermal color is located and corresponding to the target thermal color.
  • a preset degree threshold is set for each thermal color in advance, and the preset degree threshold for different thermal colors may be the same or different, and set according to actual needs.
  • Different alarm linkages can be set for the thermal colors of different sub-regions, or the same alarm linkage can be set, which can be set according to actual needs.
  • the back-end device analyzes the thermal colors of each sub-region respectively, and compares the intensity of the thermal color with the preset degree corresponding to the thermal color for any thermal color. When the depth of the thermal color is greater than the preset degree threshold corresponding to the thermal color, an alarm linkage for the sub-region where the thermal color is located and corresponding to the thermal color is executed.
  • the detection and alarm of multiple specified behaviors can be simultaneously realized based on the behavior heat map, which can meet various needs of users.
  • the alarm method in the embodiment of the present application further includes:
  • Step 1 Obtain the user's display instruction for the sub-region to be displayed.
  • Step 2 According to the display instruction, display the image data in the sub-region to be displayed, wherein the image data in the sub-region to be displayed is the video stream of the monitoring area in the sub-region to be displayed.
  • the image data is the video stream of each monitoring area collected by the monitoring equipment, and the user can display the image data in the sub-area to be displayed through display instructions.
  • the sub-region to be displayed includes multiple image data, and a preview window of each image data may be generated first for the user to choose to display.
  • the display of the image data of the actual monitoring scene is realized, which can help the user to fully understand the actual situation and meet the various needs of the user.
  • the embodiment of the present application also provides a method for sending a behavior list. See FIG. 6, which is applied to a front-end smart device.
  • the method includes:
  • S601 Acquire image data of a preset monitoring area.
  • the behavior list sending method of the embodiment of the present application is applied to a front-end smart device, and therefore can be implemented by a front-end smart device.
  • the front-end smart device may be a smart camera or a hard disk video recorder.
  • the smart camera can directly collect the image data of the preset monitoring area to obtain the image data of the preset monitoring area.
  • the hard disk video recorder can obtain the image data of the preset monitoring area through the connected camera.
  • S602 Analyze the above-mentioned image data through computer vision technology to obtain a behavior analysis result of each designated target in the above-mentioned image data.
  • the front-end intelligent equipment recognizes the designated target in the image data through target detection and calculation, and tracks each designated target through the target tracking algorithm, so as to obtain the position of each designated target in the image data, according to the designated target in the image data Perform behavior recognition on each designated target and obtain the behavior analysis result of each designated target.
  • S603 According to the behavior analysis result of each of the specified targets, classify each of the specified targets to obtain multiple behavior lists, wherein the behavior types of the specified targets in the same behavior list are the same.
  • each specified target of the same behavior type is divided into a behavior list.
  • the behavior list can also record the location of the specified target, and specify the target.
  • the location of can be the image data/preset monitoring area to which the specified target belongs, or the location of the specified target is the actual coordinates of the specified target, etc.
  • the smart camera or hard disk video recorder sends each behavior list to the server so that the server generates a behavior heat map according to the behavior list.
  • the generation process of the behavior heat map is the same as the above-mentioned behavior heat map generation method, and will not be repeated here.
  • the behavior analysis result of each designated target is the behavior analysis result of each sampled designated target.
  • the foregoing image data is analyzed through computer vision technology to obtain the behavior analysis result of each designated target in the image data, including:
  • Step 1 Determine each designated target in the image data and the position of each designated target through a preset target detection algorithm and a preset target tracking algorithm.
  • the designated target in the image data is recognized, and the designated target is tracked through the target tracking algorithm, so as to obtain the position of each designated target in the image data.
  • the target detection algorithm may include pedestrian target detection, for example, HOG, DPM, FRCNN, YOLO, SSD, and the target tracking algorithm may be a multi-target tracking algorithm method.
  • the second step is to sample each designated target in the above-mentioned image data by using a preset target sampling algorithm to obtain each sampled designated target.
  • Target sampling for each specified target for example, target sparse sampling of the specified target in each image data.
  • Target sparse sampling methods include but are not limited to target uniform sampling, point uniform sampling, point weighted sampling, and area-based target quantity Sampling, etc., through sampling, an appropriate amount of designated targets of target scale can be obtained, that is, sampling designated targets.
  • Step 3 Perform target behavior sequence extraction on the image data according to the position of the designated target of each sample to obtain the pixel region sequence of the designated target of each sample.
  • step one the position of each designated target is determined, and each sampling designated target is a target in each designated target, so the position of each sampling designated target is known.
  • the front-end smart device extracts the target behavior sequence of each image data according to the location of the designated target for each sample, and performs image interception from the image data according to a certain structure, such as Tubelet, etc., to obtain the pixel area sequence of the designated target for each sample.
  • Step 4 Analyze the pixel area sequence of each of the above-mentioned sampled designated targets to obtain the behavior analysis result of each of the above-mentioned sampled designated targets.
  • the classification neural network includes but is not limited to Resnet18, Resnet50, Resnet101, Resnet152, Inception-v1, VGG, etc.
  • the behavior analysis result includes behavior category and confidence.
  • the embodiment of the application provides an alarm device, which includes:
  • the heat map display module is used to display the behavior heat map of the area to be counted, wherein the behavior heat map represents the frequency of the specified behavior in each sub-region of the area to be counted;
  • the alarm trigger module is used to trigger an alarm for the sub-area meeting the preset alarm condition when the sub-area of the above-mentioned behavioral heat map meets the preset alarm condition.
  • the above alarm trigger module includes:
  • the frequency comparison sub-module is used to compare the frequency of the specified behavior in each sub-region of the behavior heat map with the preset frequency threshold;
  • the sub-area alarm sub-module is used to trigger an alarm for the target sub-area for the target sub-area whose frequency of occurrence of the specified behavior is greater than the preset frequency threshold.
  • the sub-regions of the behavior heat map include thermal colors, and the thermal colors represent the frequency of occurrence of the specified behaviors in the sub-regions, and the higher the frequency of the specified behaviors in the sub-regions, the lower the thermal color of the sub-regions. The higher the heating value;
  • the above alarm trigger module includes:
  • the thermal value comparison sub-module is used to compare the thermal value of the thermal color of each of the above sub-regions with the preset thermal pre-value;
  • the triggering alarm sub-module is used for triggering an alarm for the above-mentioned sub-area to be alarmed for the sub-area to be alarmed whose heating value is greater than the above-mentioned preset thermal threshold value.
  • the sub-regions of the above-mentioned behavior heat map include thermal colors
  • the above-mentioned designated behaviors are multiple designated behaviors
  • different designated behaviors correspond to different thermal colors.
  • the depth of the above-mentioned thermal color corresponds to the designated behavior corresponding to the above-mentioned thermal color.
  • the frequency is positively correlated, and each of the above thermal colors corresponds to the corresponding alarm linkage;
  • the above alarm trigger module is specifically used for:
  • the alarm device in the embodiment of the present application further includes:
  • the display instruction receiving module is used to obtain the user's display instruction for the sub-area to be displayed
  • the image data display module is used to display the image data in the sub-area to be displayed according to the display instruction, wherein the image data in the sub-area to be displayed is the video stream of the monitoring area in the sub-area to be displayed .
  • the embodiment of the present application also provides a device for generating a behavioral heat map. See FIG. 7, which is applied to a back-end device.
  • the device includes:
  • the analysis result obtaining module 701 is configured to obtain the behavior analysis result of each designated target in the image data of each preset monitoring area, where the foregoing preset monitoring area is an area to be counted;
  • the sub-region frequency statistics module 702 is configured to determine the frequency of occurrence of the designated behavior in each sub-region of the area to be counted according to the behavior analysis result of each of the above-mentioned designated targets, wherein the above-mentioned sub-region and the above-mentioned preset monitoring area have an intersection;
  • the behavior heat map generating module 703 is configured to generate the behavior heat map of the designated behavior in the region to be counted according to the frequency of occurrence of the designated behavior in each of the above sub-regions.
  • the aforementioned analysis result obtaining module 701 includes:
  • Image data acquisition sub-module for acquiring image data of each preset monitoring area
  • the behavior analysis sub-module is used to analyze each of the above-mentioned image data through computer vision technology to obtain the behavior analysis result of the designated target in each of the above-mentioned image data.
  • the above behavior analysis sub-module includes:
  • the region sequence determination unit is used to track and detect the designated targets in each of the above-mentioned image data by computer vision technology, and extract the pixel region sequence of each of the above-mentioned designated targets;
  • the area sequence analysis unit is used to analyze the pixel area sequence of each of the designated targets to obtain the behavior analysis results of each of the designated targets.
  • the pixel region sequence of each designated target is a pixel region sequence of each sample designated target
  • the above-mentioned region sequence determining unit includes:
  • the position determination subunit is used to determine each designated target in each of the aforementioned image data and the position of each aforementioned designated target through a preset target detection algorithm and a preset target tracking algorithm;
  • the coefficient sampling subunit is used to sample each designated target in each of the above-mentioned image data by using a preset target sampling algorithm to obtain each sampled designated target;
  • the region intercepting and determining subunit is used to extract the target behavior sequence of each of the above-mentioned image data according to the position of each of the above-mentioned sample-designated targets to obtain the pixel region sequence of each of the above-mentioned sample-designated targets.
  • the above-mentioned behavioral heat map generating device further includes:
  • the actual position acquisition module is used to acquire the actual position of each of the above-mentioned designated targets in the above-mentioned preset monitoring area;
  • the sub-region frequency statistics module is specifically configured to determine the frequency of occurrence of the designated behavior in each sub-region of the region to be counted based on the actual location of each designated target and the behavior analysis result of each designated target.
  • the aforementioned actual location acquisition module includes:
  • the image position acquisition sub-module is used to determine the position of each designated target in the image data according to the pixel area sequence of each designated target;
  • the actual location mapping sub-module is used to determine the actual location of each specified target in the preset monitoring area according to the location of each specified target in the image data.
  • the aforementioned sub-region frequency statistics module 702 includes:
  • the designated target classification sub-module is used to classify the designated targets according to the behavior analysis results of the designated targets to obtain multiple behavior lists, wherein the behavior types of the designated targets in the same behavior list are the same;
  • the target list determination sub-module is used to determine the target behavior list corresponding to the specified behavior
  • the frequency determination sub-module is used to determine the frequency of occurrence of the above-mentioned designated behavior in each sub-region of the area to be counted according to the actual position of each designated target in the above-mentioned target behavior list.
  • the above-mentioned behavioral heat map generating device further includes:
  • a setting instruction acquisition module configured to acquire a granularity setting instruction input by a user, wherein the granularity setting instruction represents the size attribute of the sub-region;
  • the sub-region setting module is used to determine each sub-region in the area to be counted according to the above-mentioned granularity setting instruction.
  • the aforementioned sub-area includes the aforementioned preset monitoring area
  • the aforementioned sub-area frequency statistics module 702 includes:
  • An inclusion relationship determination sub-module for acquiring the inclusion relationship between each of the aforementioned sub-areas and each of the aforementioned preset monitoring areas;
  • the behavior frequency statistics sub-module is used to determine the frequency of occurrence of the specified behavior in each of the above sub-regions of the area to be counted according to the above inclusion relationship, the behavior analysis result of each of the above specified targets, and the preset monitoring area where each of the specified targets is located.
  • the above-mentioned designated behaviors are multiple designated behaviors
  • the above-mentioned behavior heat map generating module 703 includes:
  • the multi-frequency statistics sub-module is used to obtain the electronic map of the above-mentioned area to be counted, and obtain the frequency of occurrence of each designated behavior in each of the above-mentioned sub-regions;
  • the thermal color corresponding sub-module is used to determine the thermal color corresponding to each of the above specified behaviors
  • the map coloring sub-module is used for any sub-area in the above electronic map, according to the frequency of occurrence of each specified behavior in the sub-area, and display the thermal color corresponding to each specified behavior in the sub-area on the map of the sub-area , Where the intensity of any thermal color is positively related to the frequency of occurrence of the specified behavior corresponding to the thermal color.
  • the above-mentioned behavioral heat map generating device further includes:
  • the linkage strategy module is used to execute the linkage strategy of the specified behavior corresponding to the thermal color meeting the preset linkage rule when the thermal color of the specified monitoring area of the behavior heat map meets the preset linkage rule.
  • the behavior analysis result of each designated target mentioned above is a list of designated targets that trigger each designated behavior; the above analysis result obtaining module includes:
  • the behavior list receiving sub-module is used to receive the behavior list sent by each smart device, wherein the above behavior list includes the identification of the designated target, and the behavior types of the designated targets in the same behavior list are the same;
  • the behavior list assembly sub-module is used to assemble each of the above-mentioned behavior lists to obtain the designated target lists that trigger each designated behavior.
  • An embodiment of the present application also provides an apparatus for sending a behavior list. See FIG. 8, which is applied to a front-end smart device.
  • the apparatus includes:
  • the image data acquisition module 801 is used to acquire image data of a preset monitoring area
  • the target behavior analysis module 802 is used to analyze the above-mentioned image data through computer vision technology to obtain the behavior analysis result of each specified target in the above-mentioned image data;
  • the designated target classification module 803 is configured to classify the designated targets according to the behavior analysis results of the designated targets to obtain multiple behavior lists, wherein the behavior types of the designated targets in the same behavior list are the same;
  • the behavior list sending module 804 is configured to send each of the above-mentioned behavior lists.
  • the behavior analysis result of each designated target is the behavior analysis result of each sampled designated target.
  • the aforementioned target behavior analysis module 802 includes:
  • the target position determination sub-module is used to determine each designated target in the image data and the position of each designated target through a preset target detection algorithm and a preset target tracking algorithm;
  • the designated target sampling sub-module is used to sample each designated target in the above-mentioned image data by using a preset target sampling algorithm to obtain each sampling designated target;
  • the pixel region interception sub-module is used to extract the target behavior sequence of the image data according to the position of the designated target of each of the above samples to obtain the pixel region sequence of each designated target of the sample;
  • the target behavior analysis sub-module is used to analyze the pixel area sequence of each of the above-mentioned sampling designated targets to obtain the behavior analysis results of each of the above-mentioned sampling designated targets.
  • the embodiment of the present application also provides an electronic device, including: a processor and a memory;
  • the aforementioned memory is used to store computer programs
  • the above-mentioned processor When the above-mentioned processor is used to execute the computer program stored in the above-mentioned memory, it realizes any one of the above-mentioned behavioral heat map generating methods.
  • the electronic device of the embodiment of the present application further includes a communication interface 902 and a communication bus 904.
  • the processor 901, the communication interface 902, and the memory 903 communicate with each other through the communication bus 904.
  • the electronic device may be a server or a hard disk video recorder.
  • the embodiment of the present application also provides an electronic device, including: a processor and a memory;
  • the aforementioned memory is used to store computer programs
  • the electronic device can be a smart camera or a hard disk video recorder.
  • the embodiment of the present application also provides an electronic device, including: a processor and a memory;
  • the aforementioned memory is used to store computer programs
  • the processor is used to execute any of the above alarm methods when executing the computer program stored in the memory.
  • the communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
  • the communication interface is used for communication between the aforementioned electronic device and other devices.
  • the memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage.
  • NVM non-Volatile Memory
  • the memory may also be at least one storage device located far away from the foregoing processor.
  • the above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processing, DSP), a dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • CPU central processing unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • An embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any one of the above-mentioned behavioral heat map generation methods is implemented.
  • An embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any one of the foregoing behavior list sending methods is implemented.
  • An embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the foregoing alarm methods is implemented.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Alarm Systems (AREA)

Abstract

A behavior thermodynamic diagram generation and alarm method and apparatus, an electronic device and a storage medium. Said method comprises: acquiring a behavior analysis result of each designated target in image data of each pre-set monitored region, the pre-set monitored region being a region in a region to be counted; according to the behavior analysis result of each designated target, determining the frequency of the designated behavior occurring in each sub-region of the region to be counted, there being an intersection between the sub-region and the pre-set monitored region; and according to the frequency of the designated behavior occurring in each sub-region, generating a behavior thermodynamic diagram of the designated behavior in the region to be counted. The behavior thermodynamic diagram generation method in the embodiments of the present application counts, by means of image data, the frequency of a designated behavior occurring in each sub-region of a region to be counted, and then generates a behavior thermodynamic diagram of the region to be counted, thereby realizing intuitive monitoring of a large-area region.

Description

行为热力图生成及报警方法、装置、电子设备及存储介质Behavior heat map generation and alarm method, device, electronic equipment and storage medium
本申请要求于2019年04月28日提交中国专利局、申请号为201910351634.4发明名称为“行为热力图生成及报警方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on April 28, 2019 with the application number 201910351634.4 and the invention titled "Methods, devices, electronic equipment, and storage media for generating and alarming behavioral heat maps", and its entire contents Incorporated in this application by reference.
技术领域Technical field
本申请涉及图像处理技术领域,特别是涉及行为热力图生成及报警方法、装置、电子设备及存储介质。This application relates to the field of image processing technology, in particular to methods, devices, electronic equipment, and storage media for generating and warning behavioral heat maps.
背景技术Background technique
随着计算机视觉技术的发展,通过图像数据自动识别指定目标成为可能。相关的图像识别技术中,均是通过计算机视觉技术,例如卷积神经网络等,对图像数据进行分析,从而确定图像数据中的目标是否存在指定的行为。然而,上述方法仅是针对单路图像数据中是否出现指定行为进行识别,不方便对大面积区域进行直观的监测。With the development of computer vision technology, it has become possible to automatically identify designated targets through image data. In related image recognition technologies, computer vision technologies, such as convolutional neural networks, are used to analyze image data to determine whether a target in the image data has a specified behavior. However, the above method only recognizes whether a specified behavior occurs in the single-channel image data, and it is inconvenient to visually monitor a large area.
发明内容Summary of the invention
本申请实施例的目的在于提供一种行为热力图生成及报警方法、装置、电子设备及存储介质,以实现对大面积区域进行直观的监测。具体技术方案如下:The purpose of the embodiments of the present application is to provide a method, device, electronic device, and storage medium for generating and alarming behavioral heat map to realize intuitive monitoring of a large area. The specific technical solutions are as follows:
第一方面,本申请实施例提供了一种报警方法,所述方法包括:In the first aspect, an embodiment of the present application provides an alarm method, and the method includes:
展示待统计区域的行为热力图,其中,所述行为热力图表征指定行为在所述待统计区域的各子区域中发生的频次;Displaying the behavior heat map of the area to be counted, wherein the behavior heat map represents the frequency of occurrence of a specified behavior in each sub-region of the area to be counted;
在所述行为热力图的子区域满足预设报警条件时,触发针对满足预设报警条件的子区域的报警。When the sub-area of the behavior heat map meets the preset alarm condition, an alarm for the sub-area meeting the preset alarm condition is triggered.
可选的,所述在所述行为热力图中的子区域满足预设报警条件时,触发针对满足预设报警条件的子区域的报警,包括:Optionally, when the sub-area in the behavioral heat map meets a preset alarm condition, triggering an alarm for the sub-area meeting the preset alarm condition includes:
分别比较所述行为热力图各子区域中指定行为发生的频次与预设频次阈值的大小;Respectively comparing the frequency of occurrence of the specified behavior in each sub-region of the behavior heat map with the magnitude of the preset frequency threshold;
针对指定行为发生的频次大于所述预设频次阈值的目标子区域,触发针 对所述目标子区域的报警。For the target sub-area whose frequency of occurrence of the specified behavior is greater than the preset frequency threshold, trigger an alarm for the target sub-area.
可选的,所述行为热力图的子区域中包括热力颜色,所述热力颜色表征所述子区域中指定行为发生的频次,且所述子区域中指定行为发生的频次越高,所述子区域的热力颜色的热力值越高;Optionally, the sub-regions of the behavior heat map include thermal colors, and the thermal colors represent the frequency of occurrence of a specified behavior in the sub-region, and the higher the frequency of occurrence of the specified behavior in the sub-region, the The higher the heating value of the thermal color of the area;
所述在所述行为热力图的子区域满足预设报警条件时,触发针对满足预设报警条件的子区域的报警,包括:The triggering an alarm for the sub-area meeting the preset alarm condition when the sub-area of the behavior heat map meets the preset alarm condition includes:
分别比较各所述子区域的热力颜色的热力值与预设热力预值的大小;Respectively comparing the thermal value of the thermal color of each of the sub-regions with the preset thermal pre-value;
针对热力值大于所述预设热力阈值的待报警子区域,触发针对所述待报警子区域的报警。For the sub-area to be alarmed with a heating value greater than the preset heating threshold, an alarm for the sub-area to be alarmed is triggered.
可选的,所述行为热力图的子区域中包括热力颜色,所述指定行为多个指定行为,不同的指定行为对应不同的热力颜色,所述热力颜色的深浅程度与所述热力颜色对应的指定行为发生的频次正相关,各所述热力颜色分别对应相应的报警联动;Optionally, the sub-regions of the behavior heat map include thermal colors, the designated behaviors are multiple designated behaviors, and different designated behaviors correspond to different thermal colors, and the depth of the thermal color corresponds to the thermal color. The frequency of occurrence of the specified behavior is positively correlated, and each of the thermal colors corresponds to the corresponding alarm linkage;
所述在所述行为热力图的子区域满足预设报警条件时,触发针对满足预设报警条件的子区域的报警,包括:The triggering an alarm for the sub-area meeting the preset alarm condition when the sub-area of the behavior heat map meets the preset alarm condition includes:
针对各所述子区域中的各热力颜色,比较该热力颜色的深浅程度与该热力颜色对应的预设程度预值的大小;For each thermal color in each of the sub-regions, comparing the depth of the thermal color with the size of the preset degree preset value corresponding to the thermal color;
针对深浅程度大于预设程度预值的目标热力颜色,触发针对所述目标热力颜色所在的子区域、且与所述目标热力颜色对应的报警联动。For the target thermal color whose depth is greater than the preset degree preset value, trigger an alarm linkage for the sub-region where the target thermal color is located and corresponding to the target thermal color.
可选的,本申请实施例的报警方法还包括:Optionally, the alarm method in the embodiment of the present application further includes:
获取用户针对待展示的子区域的展示指令;Obtain the user's display instructions for the sub-areas to be displayed;
按照所述展示指令,展示所述待展示的子区域中的图像数据,其中,所述待展示的子区域中的图像数据为所述待展示的子区域中的监控区域的视频流。According to the display instruction, display the image data in the sub-region to be displayed, wherein the image data in the sub-region to be displayed is a video stream of the monitoring area in the sub-region to be displayed.
第二方面,本申请实施例提供了一种行为热力图生成方法,应用于后端设备,所述方法包括:In the second aspect, an embodiment of the present application provides a method for generating a behavioral heat map, which is applied to a back-end device, and the method includes:
获取各预设监控区域的图像数据中各指定目标的行为分析结果,其中,所述预设监控区域为待统计区域中的区域;Acquiring the behavior analysis result of each designated target in the image data of each preset monitoring area, where the preset monitoring area is an area in the area to be counted;
根据各所述指定目标的行为分析结果,确定所述待统计区域的各子区域中指定行为发生的频次,其中,所述子区域与所述预设监控区域存在交集;Determine the frequency of occurrence of the specified behavior in each sub-region of the area to be counted according to the behavior analysis result of each designated target, wherein the sub-region and the preset monitoring area have an intersection;
按照各所述子区域中指定行为发生的频次,生成所述待统计区域的指定行为的行为热力图。According to the frequency of occurrence of the designated behavior in each of the sub-regions, a behavior heat map of the designated behavior in the region to be counted is generated.
可选的,所述获取各预设监控区域的图像数据中各指定目标的行为分析结果,包括:Optionally, the obtaining the behavior analysis result of each designated target in the image data of each preset monitoring area includes:
获取各预设监控区域的图像数据;Obtain image data of each preset monitoring area;
通过计算机视觉技术,分别对各所述图像数据中的指定目标进行跟踪检测,提取各所述指定目标的像素区域序列;Using computer vision technology to track and detect the designated targets in each of the image data, and extract the pixel area sequence of each designated target;
对各所述指定目标的像素区域序列进行分析,得到各所述指定目标的行为分析结果。The pixel area sequence of each designated target is analyzed, and the behavior analysis result of each designated target is obtained.
可选的,各指定目标的像素区域序列为各采样指定目标的像素区域序列,所述通过计算机视觉技术,分别对各所述图像数据中的指定目标进行跟踪检测,提取各所述指定目标的像素区域序列,包括:Optionally, the pixel region sequence of each designated target is the pixel region sequence of each sampled designated target, and the computer vision technology is used to track and detect the designated target in each of the image data, and extract the A sequence of pixel areas, including:
通过预设目标检测算法及预设目标跟踪算法,确定各所述图像数据中的各指定目标及各所述指定目标的位置;Determine each designated target in each of the image data and the position of each designated target through a preset target detection algorithm and a preset target tracking algorithm;
通过预设目标采样算法,对各所述图像数据中的各指定目标进行采样,得到各采样指定目标;Sampling each designated target in each of the image data by a preset target sampling algorithm to obtain each sampling designated target;
按照各所述采样指定目标的位置,对各所述图像数据进行目标行为序列抽取,得到各所述采样指定目标的像素区域序列。According to the position of the designated target of each sample, target behavior sequence extraction is performed on each of the image data to obtain the pixel area sequence of each designated target of the sample.
可选的,一个所述子区域至少包括一个所述预设监控区域,所述根据各所述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次,包括:Optionally, one of the sub-regions includes at least one of the preset monitoring regions, and the determining the frequency of occurrence of the designated behavior in each sub-region of the region to be counted according to the behavior analysis result of each designated target includes:
获取各所述子区域与各所述预设监控区域的包含关系;Acquiring the inclusion relationship between each of the sub-regions and each of the preset monitoring regions;
按照所述包含关系、各所述指定目标的行为分析结果及各所述指定目标所在的预设监控区域,确定待统计区域的各所述子区域中指定行为发生的频次。According to the inclusion relationship, the behavior analysis result of each designated target, and the preset monitoring area where each designated target is located, the frequency of occurrence of the designated behavior in each of the sub-regions of the area to be counted is determined.
可选的,在所述获取各预设监控区域的图像数据中各指定目标的行为分析结果之后,所述方法还包括:Optionally, after obtaining the behavior analysis result of each designated target in the image data of each preset monitoring area, the method further includes:
获取各所述指定目标在所述预设监控区域中的实际位置;Acquiring the actual position of each designated target in the preset monitoring area;
所述根据各所述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次,包括:The determining the frequency of occurrence of the designated behavior in each sub-region of the area to be counted according to the behavior analysis result of each designated target includes:
根据各所述指定目标的实际位置及各所述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次。According to the actual location of each designated target and the behavior analysis result of each designated target, the frequency of occurrence of the designated behavior in each sub-region of the area to be counted is determined.
可选的,所述获取各所述指定目标在所述预设监控区域中的实际位置,包括:Optionally, the acquiring the actual position of each of the designated targets in the preset monitoring area includes:
根据各所述指定目标的像素区域序列,确定各所述指定目标在所述图像数据中的位置;Determine the position of each designated target in the image data according to the pixel area sequence of each designated target;
按照各所述指定目标在所述图像数据中的位置,确定各所述指定目标在所述预设监控区域中的实际位置。According to the position of each designated target in the image data, the actual position of each designated target in the preset monitoring area is determined.
可选的,所述根据各所述指定目标的实际位置及各所述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次,包括:Optionally, the determining the frequency of occurrence of the specified behavior in each subregion of the area to be counted according to the actual location of each specified target and the behavior analysis result of each specified target includes:
根据各所述指定目标的行为分析结果,将各所述指定目标进行分类,得到多个行为列表,其中,同一行为列表中各指定目标的行为类型相同;According to the behavior analysis result of each designated target, classify each designated target to obtain multiple behavior lists, wherein the behavior types of the designated targets in the same behavior list are the same;
确定指定行为对应的目标行为列表;Determine the target behavior list corresponding to the specified behavior;
根据所述目标行为列表中各指定目标的实际位置,确定待统计区域的各子区域中所述指定行为发生的频次。According to the actual position of each designated target in the target behavior list, the frequency of occurrence of the designated behavior in each sub-region of the area to be counted is determined.
可选的,在所述根据各所述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次之前,所述方法还包括:Optionally, before the determining the frequency of occurrence of the designated behavior in each subregion of the area to be counted according to the behavior analysis result of each designated target, the method further includes:
获取用户输入的粒度设定指令,其中,所述粒度设定指令表征子区域的大小属性;Acquiring a granularity setting instruction input by a user, wherein the granularity setting instruction represents the size attribute of the sub-region;
按照所述粒度设定指令,确定待统计区域中各子区域。According to the granularity setting instruction, each sub-area in the area to be counted is determined.
可选的,所述指定行为多个指定行为,所述按照各所述子区域中指定行为发生的频次,生成所述待统计区域的指定行为的行为热力图,包括:Optionally, the designated behavior has a plurality of designated behaviors, and the generating a behavior heat map of the designated behavior of the region to be counted according to the frequency of occurrence of the designated behavior in each of the sub-regions includes:
获取所述待统计区域的电子地图,获取各所述子区域中各指定行为发生的频次;Acquiring an electronic map of the area to be counted, and acquiring the frequency of occurrence of each designated behavior in each of the sub-regions;
确定各所述指定行为对应的热力颜色;Determine the thermal color corresponding to each specified behavior;
针对所述电子地图中的任一子区域,按照该子区域中各所述指定行为发生的频次,在该子区域的地图中显示该子区域中各指定行为对应的热力颜色,其中,任一热力颜色的深浅程度与该热力颜色对应的指定行为发生的频次正相关。For any subregion in the electronic map, according to the frequency of occurrence of each designated behavior in the subregion, the thermal color corresponding to each designated behavior in the subregion is displayed on the map of the subregion, where any The intensity of the thermal color is positively related to the frequency of occurrence of the specified behavior corresponding to the thermal color.
可选的,所述各指定目标的行为分析结果为触发各指定行为的指定目标 名单;所述获取各预设监控区域的图像数据中各指定目标的行为分析结果,包括:Optionally, the behavior analysis result of each designated target is a list of designated targets that trigger each designated behavior; the obtaining the behavior analysis result of each designated target in the image data of each preset monitoring area includes:
接收各前端智能设备发送的各行为列表,其中,所述行为列表中包括指定目标的标识,且同一所述行为列表中各指定目标的行为类型相同;Receiving each behavior list sent by each front-end smart device, where the behavior list includes the identification of the designated target, and the behavior types of the designated targets in the same behavior list are the same;
组装各所述行为列表,分别得到触发各指定行为的指定目标名单。Assemble each of the behavior lists, and obtain the designated target lists that trigger each designated behavior.
第三方面,本申请实施例提供了一种行为列表发送方法,应用于前端智能设备,所述方法包括:In the third aspect, an embodiment of the present application provides a method for sending a behavior list, which is applied to a front-end smart device, and the method includes:
获取预设监控区域的图像数据;Obtain image data of the preset monitoring area;
通过计算机视觉技术,对所述图像数据进行分析,得到所述图像数据中各指定目标的行为分析结果;Analyze the image data by computer vision technology to obtain the behavior analysis result of each designated target in the image data;
按照各所述指定目标的行为分析结果,将各所述指定目标进行分类,得到多个行为列表,其中,同一所述行为列表中各指定目标的行为类型相同;According to the behavior analysis result of each designated target, classify each designated target to obtain multiple behavior lists, wherein the behavior type of each designated target in the same behavior list is the same;
发送各所述行为列表。Send a list of each of the described actions.
可选的,各指定目标的行为分析结果为各采样指定目标的行为分析结果,所述通过计算机视觉技术,对所述图像数据进行分析,得到所述图像数据中各指定目标的行为分析结果,包括:Optionally, the behavior analysis result of each designated target is the behavior analysis result of each sampled designated target. The image data is analyzed by computer vision technology to obtain the behavior analysis result of each designated target in the image data, include:
通过预设目标检测算法及预设目标跟踪算法,确定所述图像数据中的各指定目标及各所述指定目标的位置;Determine each designated target and the position of each designated target in the image data by using a preset target detection algorithm and a preset target tracking algorithm;
通过预设目标采样算法,对所述图像数据中的各指定目标进行采样,得到各采样指定目标;Sampling each designated target in the image data by using a preset target sampling algorithm to obtain each sampling designated target;
按照各所述采样指定目标的位置,对所述图像数据进行目标行为序列抽取,得到各所述采样指定目标的像素区域序列;Performing target behavior sequence extraction on the image data according to the positions of the designated targets of each sample to obtain a sequence of pixel regions of the designated targets of each sample;
对各所述采样指定目标的像素区域序列进行分析,得到各所述采样指定目标的行为分析结果。Analyze the pixel area sequence of each of the sampled designated targets to obtain the behavior analysis result of each of the sampled designated targets.
第四方面,本申请实施例提供了一种报警装置,所述装置包括:In a fourth aspect, an embodiment of the present application provides an alarm device, which includes:
热力图展示模块,用于展示待统计区域的行为热力图,其中,所述行为热力图表征指定行为在所述待统计区域的各子区域中发生的频次;The heat map display module is used to display the behavior heat map of the area to be counted, wherein the behavior heat map represents the frequency of occurrence of a specified behavior in each sub-region of the area to be counted;
报警触发模块,用于在所述行为热力图的子区域满足预设报警条件时,触发针对满足预设报警条件的子区域的报警。The alarm triggering module is used to trigger an alarm for the sub-area meeting the preset alarm condition when the sub-area of the behavior heat map meets the preset alarm condition.
可选的,所述报警触发模块,包括:Optionally, the alarm trigger module includes:
频次比较子模块,用于分别比较所述行为热力图各子区域中指定行为发生的频次与预设频次阈值的大小;A frequency comparison sub-module for comparing the frequency of occurrence of a specified behavior in each sub-region of the behavior heat map with a preset frequency threshold;
子区域报警子模块,用于针对指定行为发生的频次大于所述预设频次阈值的目标子区域,触发针对所述目标子区域的报警。The sub-area alarm sub-module is used for triggering an alarm for the target sub-area for the target sub-area whose frequency of occurrence of the specified behavior is greater than the preset frequency threshold.
可选的,所述行为热力图的子区域中包括热力颜色,所述热力颜色表征所述子区域中指定行为发生的频次,且所述子区域中指定行为发生的频次越高,所述子区域的热力颜色的热力值越高;Optionally, the sub-regions of the behavior heat map include thermal colors, and the thermal colors represent the frequency of occurrence of a specified behavior in the sub-region, and the higher the frequency of occurrence of the specified behavior in the sub-region, the The higher the heating value of the thermal color of the area;
所述报警触发模块,包括:The alarm trigger module includes:
热力值比较子模块,用于分别比较各所述子区域的热力颜色的热力值与预设热力预值的大小;The thermal value comparison sub-module is used to compare the thermal value of the thermal color of each of the sub-regions with the preset thermal value;
触发报警子模块,用于针对热力值大于所述预设热力阈值的待报警子区域,触发针对所述待报警子区域的报警。The triggering alarm sub-module is used for triggering an alarm for the sub-area to be alarmed whose heating value is greater than the preset heating threshold.
可选的,所述行为热力图的子区域中包括热力颜色,所述指定行为多个指定行为,不同的指定行为对应不同的热力颜色,所述热力颜色的深浅程度与所述热力颜色对应的指定行为发生的频次正相关,各所述热力颜色分别对应相应的报警联动;Optionally, the sub-regions of the behavior heat map include thermal colors, the designated behaviors are multiple designated behaviors, and different designated behaviors correspond to different thermal colors, and the depth of the thermal color corresponds to the thermal color. The frequency of occurrence of the specified behavior is positively correlated, and each of the thermal colors corresponds to the corresponding alarm linkage;
所述报警触发模块,具体用于:The alarm trigger module is specifically used for:
针对各所述子区域中的各热力颜色,比较该热力颜色的深浅程度与该热力颜色对应的预设程度预值的大小;For each thermal color in each of the sub-regions, comparing the depth of the thermal color with the size of the preset degree preset value corresponding to the thermal color;
针对深浅程度大于预设程度预值的目标热力颜色,触发针对所述目标热力颜色所在的子区域、且与所述目标热力颜色对应的报警联动。For the target thermal color whose depth is greater than the preset degree preset value, trigger an alarm linkage for the sub-region where the target thermal color is located and corresponding to the target thermal color.
可选的,本申请实施例的报警装置还包括:Optionally, the alarm device in the embodiment of the present application further includes:
展示指令接收模块,用于获取用户针对待展示的子区域的展示指令;The display instruction receiving module is used to obtain the user's display instruction for the sub-area to be displayed;
图像数据展示模块,用于按照所述展示指令,展示所述待展示的子区域中的图像数据,其中,所述待展示的子区域中的图像数据为所述待展示的子区域中的监控区域的视频流。The image data display module is configured to display the image data in the sub-region to be displayed according to the display instruction, wherein the image data in the sub-region to be displayed is the monitoring in the sub-region to be displayed The video stream of the region.
第五方面,本申请实施例提供了一种行为热力图生成装置,应用于后端设备,所述装置包括:In a fifth aspect, an embodiment of the present application provides an apparatus for generating a behavioral heat map, which is applied to a back-end device, and the apparatus includes:
分析结果获取模块,用于获取各预设监控区域的图像数据中各指定目标的行为分析结果,其中,所述预设监控区域为待统计区域中的区域;The analysis result obtaining module is used to obtain the behavior analysis result of each designated target in the image data of each preset monitoring area, wherein the preset monitoring area is the area in the area to be counted;
子区域频次统计模块,用于根据各所述指定目标的行为分析结果,确定所述待统计区域的各子区域中指定行为发生的频次,其中,所述子区域与所述预设监控区域存在交集;The sub-region frequency statistics module is used to determine the frequency of occurrence of the designated behavior in each sub-region of the region to be counted according to the behavior analysis result of each designated target, wherein the sub-region and the preset monitoring region exist Intersection
行为热力图生成模块,用于按照各所述子区域中指定行为发生的频次,生成所述待统计区域的指定行为的行为热力图。The behavior heat map generating module is configured to generate a behavior heat map of the designated behavior of the region to be counted according to the frequency of occurrence of the designated behavior in each of the sub-regions.
可选的,所述分析结果获取模块,包括:Optionally, the analysis result obtaining module includes:
图像数据获取子模块,用于获取各预设监控区域的图像数据;Image data acquisition sub-module for acquiring image data of each preset monitoring area;
行为分析子模块,所述行为分析子模块,包括:The behavior analysis sub-module, the behavior analysis sub-module includes:
区域序列确定单元,用于通过计算机视觉技术,分别对各所述图像数据中的指定目标进行跟踪检测,提取各所述指定目标的像素区域序列;An area sequence determination unit, configured to track and detect the designated targets in each of the image data using computer vision technology, and extract the pixel region sequence of each of the designated targets;
区域序列分析单元,用于对各所述指定目标的像素区域序列进行分析,得到各所述指定目标的行为分析结果。The area sequence analysis unit is used to analyze the pixel area sequence of each designated target to obtain the behavior analysis result of each designated target.
可选的,各指定目标的像素区域序列为各采样指定目标的像素区域序列,所述区域序列确定单元,包括:Optionally, the pixel region sequence of each designated target is a pixel region sequence of each sample designated target, and the region sequence determining unit includes:
位置确定子单元,用于通过预设目标检测算法及预设目标跟踪算法,确定各所述图像数据中的各指定目标及各所述指定目标的位置;The position determination subunit is used to determine each designated target in each of the image data and the position of each designated target through a preset target detection algorithm and a preset target tracking algorithm;
系数采样子单元,用于通过预设目标采样算法,对各所述图像数据中的各指定目标进行采样,得到各采样指定目标;The coefficient sampling subunit is used to sample each designated target in each of the image data by using a preset target sampling algorithm to obtain each sampled designated target;
区域截取确定子单元,用于按照各所述采样指定目标的位置,对各所述图像数据进行目标行为序列抽取,得到各所述采样指定目标的像素区域序列。The region intercepting and determining subunit is used to perform target behavior sequence extraction on each of the image data according to the position of the designated target of each sample to obtain the pixel region sequence of each designated target of the sample.
可选的,一个所述子区域至少包括一个所述预设监控区域,所述子区域频次统计模块,包括:Optionally, one of the sub-regions includes at least one of the preset monitoring regions, and the sub-region frequency statistics module includes:
包含关系确定子模块,用于获取各所述子区域与各所述预设监控区域的包含关系;An inclusion relationship determination sub-module for obtaining the inclusion relationship between each of the sub-regions and each of the preset monitoring regions;
行为频次统计子模块,用于按照所述包含关系、各所述指定目标的行为分析结果及各所述指定目标所在的预设监控区域,确定待统计区域的各所述子区域中指定行为发生的频次。The behavior frequency statistics sub-module is used to determine the occurrence of a designated behavior in each of the sub-regions of the area to be counted according to the inclusion relationship, the behavior analysis result of each of the designated targets, and the preset monitoring area where each designated target is The frequency.
可选的,本申请实施例的行为热力图生成装置还包括:Optionally, the device for generating a behavioral heat map in this embodiment of the present application further includes:
实际位置获取模块,用于获取各所述指定目标在所述预设监控区域中的实际位置;An actual position acquisition module, configured to acquire the actual position of each designated target in the preset monitoring area;
所述子区域频次统计模块,具体用于:根据各所述指定目标的实际位置及各所述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次。The sub-region frequency statistics module is specifically configured to determine the frequency of occurrence of the designated behavior in each sub-region of the region to be counted according to the actual location of each designated target and the behavior analysis result of each designated target.
可选的,所述实际位置获取模块,包括:Optionally, the actual location acquisition module includes:
图像位置获取子模块,用于根据各所述指定目标的像素区域序列,确定各所述指定目标在所述图像数据中的位置;An image position acquisition sub-module, configured to determine the position of each designated target in the image data according to the pixel area sequence of each designated target;
实际位置映射子模块,用于按照各所述指定目标在所述图像数据中的位置,确定各所述指定目标在所述预设监控区域中的实际位置。The actual position mapping sub-module is used to determine the actual position of each designated target in the preset monitoring area according to the position of each designated target in the image data.
可选的,所述子区域频次统计模块,包括:Optionally, the sub-region frequency statistics module includes:
指定目标分类子模块,用于根据各所述指定目标的行为分析结果,将各所述指定目标进行分类,得到多个行为列表,其中,同一行为列表中各指定目标的行为类型相同;The designated target classification sub-module is used to classify each designated target according to the behavior analysis result of each designated target to obtain multiple behavior lists, wherein the behavior types of the designated targets in the same behavior list are the same;
目标列表确定子模块,用于确定指定行为对应的目标行为列表;The target list determination sub-module is used to determine the target behavior list corresponding to the specified behavior;
频次确定子模块,用于根据所述目标行为列表中各指定目标的实际位置,确定待统计区域的各子区域中所述指定行为发生的频次。The frequency determination sub-module is used to determine the frequency of occurrence of the specified behavior in each sub-region of the area to be counted according to the actual position of each designated target in the target behavior list.
可选的,本申请实施例的行为热力图生成装置还包括:Optionally, the device for generating a behavioral heat map in this embodiment of the present application further includes:
设定指令获取模块,用于获取用户输入的粒度设定指令,其中,所述粒度设定指令表征子区域的大小属性;A setting instruction acquisition module, configured to acquire a granularity setting instruction input by a user, wherein the granularity setting instruction represents the size attribute of the sub-region;
子区域设定模块,用于按照所述粒度设定指令,确定待统计区域中各子区域。The sub-region setting module is used to determine each sub-region in the area to be counted according to the granularity setting instruction.
可选的,所述指定行为多个指定行为,所述行为热力图生成模块,包括:Optionally, the specified behavior has multiple specified behaviors, and the behavior heat map generating module includes:
多频次统计子模块,用于获取所述待统计区域的电子地图,获取各所述子区域中各指定行为发生的频次;The multi-frequency statistics sub-module is used to obtain an electronic map of the area to be counted, and obtain the frequency of occurrence of each designated behavior in each sub-area;
热力颜色对应子模块,用于确定各所述指定行为对应的热力颜色;The thermal color corresponding sub-module is used to determine the thermal color corresponding to each specified behavior;
地图着色子模块,用于针对所述电子地图中的任一子区域,按照该子区域中各所述指定行为发生的频次,在该子区域的地图中显示该子区域中各指定行为对应的热力颜色,其中,任一热力颜色的深浅程度与该热力颜色对应的指定行为发生的频次正相关。The map coloring sub-module is used for any sub-area in the electronic map, according to the frequency of occurrence of each specified behavior in the sub-area, display the corresponding to each specified behavior in the sub-area on the map of the sub-area Thermal color, where the intensity of any thermal color is positively related to the frequency of occurrence of the specified behavior corresponding to the thermal color.
可选的,所述各指定目标的行为分析结果为触发各指定行为的指定目标名单;所述分析结果获取模块,包括:Optionally, the behavior analysis result of each designated target is a list of designated targets that trigger each designated behavior; the analysis result obtaining module includes:
行为列表接收子模块,用于接收各智能设备发送的行为列表,其中,所述行为列表中包括指定目标的标识,且同一行为列表中各指定目标的行为类型相同;The behavior list receiving sub-module is configured to receive the behavior list sent by each smart device, wherein the behavior list includes the identification of the designated target, and the behavior types of the designated targets in the same behavior list are the same;
行为列表组装子模块,用于组装各所述行为列表,分别得到触发各指定行为的指定目标名单。The behavior list assembling sub-module is used to assemble each of the behavior lists to obtain the designated target lists that trigger each designated behavior.
第六方面,本申请实施例提供了一种行为列表发送装置,应用于前端智能设备,所述装置包括:In a sixth aspect, an embodiment of the present application provides a behavior list sending device, which is applied to a front-end smart device, and the device includes:
图像数据获取模块,用于获取预设监控区域的图像数据;The image data acquisition module is used to acquire the image data of the preset monitoring area;
目标行为分析模块,用于通过计算机视觉技术,对所述图像数据进行分析,得到所述图像数据中各指定目标的行为分析结果;The target behavior analysis module is used to analyze the image data through computer vision technology to obtain the behavior analysis result of each designated target in the image data;
指定目标分类模块,用于按照各所述指定目标的行为分析结果,将各所述指定目标进行分类,得到多个行为列表,其中,同一所述行为列表中各指定目标的行为类型相同;The designated target classification module is configured to classify each designated target according to the behavior analysis result of each designated target to obtain multiple behavior lists, wherein the behavior types of the designated targets in the same behavior list are the same;
行为列表发送模块,用于发送各所述行为列表。The behavior list sending module is used to send each of the behavior lists.
可选的,各指定目标的行为分析结果为各采样指定目标的行为分析结果,所述目标行为分析模块,包括:Optionally, the behavior analysis result of each designated target is the behavior analysis result of each sampled designated target, and the target behavior analysis module includes:
目标位置确定子模块,用于通过预设目标检测算法及预设目标跟踪算法,确定所述图像数据中的各指定目标及各所述指定目标的位置;The target position determination sub-module is used to determine each designated target in the image data and the position of each designated target through a preset target detection algorithm and a preset target tracking algorithm;
指定目标采样子模块,用于通过预设目标采样算法,对所述图像数据中的各指定目标进行采样,得到各采样指定目标;The designated target sampling sub-module is used to sample each designated target in the image data by using a preset target sampling algorithm to obtain each sampling designated target;
像素区域截取子模块,用于按照各所述采样指定目标的位置,对所述图像数据进行目标行为序列抽取,得到各所述采样指定目标的像素区域序列;The pixel region interception sub-module is configured to extract the target behavior sequence of the image data according to the position of each of the sampled designated targets to obtain the pixel region sequence of each of the sampled designated targets;
目标行为分析子模块,用于对各所述采样指定目标的像素区域序列进行分析,得到各所述采样指定目标的行为分析结果。The target behavior analysis sub-module is used to analyze the pixel area sequence of each of the sampling designated targets to obtain the behavior analysis result of each of the sampling designated targets.
第七方面,本申请实施例提供了一种电子设备,包括处理器及存储器;In a seventh aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
所述存储器,用于存放计算机程序;The memory is used to store computer programs;
所述处理器,用于执行所述存储器上所存放的程序时,实现上述第一方面任一所述的报警方法。The processor is configured to implement the alarm method described in any one of the first aspects when executing the program stored in the memory.
第八方面,本申请实施例提供了一种电子设备,包括处理器及存储器;In an eighth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
所述存储器,用于存放计算机程序;The memory is used to store computer programs;
所述处理器,用于执行所述存储器上所存放的程序时,实现上述第二方面任一所述的行为热力图生成方法。The processor is configured to implement the method for generating a behavioral heat map according to any one of the second aspects when executing the program stored in the memory.
第九方面,本申请实施例提供了一种电子设备,包括处理器及存储器;In a ninth aspect, an embodiment of the present application provides an electronic device including a processor and a memory;
所述存储器,用于存放计算机程序;The memory is used to store computer programs;
所述处理器,用于执行所述存储器上所存放的程序时,实现上述第三方面任一所述的行为列表发送方法。The processor is configured to implement the behavior list sending method of any one of the foregoing third aspects when executing the program stored in the memory.
第十方面,本申请实施例提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面任一所述的报警方法。In a tenth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any of the foregoing aspects of the first aspect is implemented. 1. The alarm method described.
第十一方面,本申请实施例提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述第二方面任一所述的行为热力图生成方法。In an eleventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and the computer program implements the above-mentioned second aspect when executed by a processor. Any of the described behavioral heat map generation methods.
第十二方面,本申请实施例提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述第三方面任一所述的行为列表发送方法。In a twelfth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the foregoing third aspect is implemented Any of the aforementioned behavior list sending methods.
本申请实施例提供的行为热力图生成及报警方法、装置、电子设备及存储介质,获取各预设监控区域的图像数据中各指定目标的行为分析结果,其中,预设监控区域为待统计区域中的区域;根据各指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次,其中,子区域与预设监控区域存在交集;按照各子区域中指定行为发生的频次,生成待统计区域的指定行为的行为热力图。通过图像数据统计待统计区域中各子区域指定行为的发生频次,进而生成待统计区域的行为热力图,可以实现对大面积区域进行直观的监测。当然,实施本申请的任一产品或方法并不一定需要同时达到以上所述的所有优点。The behavioral heat map generation and alarm method, device, electronic equipment and storage medium provided in the embodiments of the application obtain the behavior analysis results of each designated target in the image data of each preset monitoring area, where the preset monitoring area is the area to be counted According to the behavior analysis results of each designated target, determine the frequency of the specified behavior in each sub-area of the area to be counted. Among them, the sub-area and the preset monitoring area overlap; according to the frequency of the specified behavior in each sub-area , To generate the behavior heat map of the specified behavior of the area to be counted. The frequency of occurrence of designated behaviors in each sub-region in the area to be counted is counted by the image data, and the behavior heat map of the area to be counted is generated, which can realize the intuitive monitoring of a large area. Of course, implementing any product or method of the present application does not necessarily need to achieve all the advantages described above at the same time.
附图说明Description of the drawings
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present application and the technical solutions of the prior art more clearly, the following briefly introduces the drawings needed in the embodiments and the prior art. Obviously, the drawings in the following description are only the present For some of the embodiments of the application, for those of ordinary skill in the art, other drawings can be obtained from these drawings without creative work.
图1a为本申请实施例的行为热力图生成方法的第一种示意图;FIG. 1a is a first schematic diagram of a method for generating a behavioral heat map according to an embodiment of this application;
图1b为本申请实施例的行为热力图生成方法的第二种示意图;FIG. 1b is a second schematic diagram of a method for generating a behavioral heat map according to an embodiment of the application;
图2为本申请实施例的行为热力图生成方法的第三种示意图;FIG. 2 is a third schematic diagram of a method for generating a behavioral heat map according to an embodiment of the application;
图3为本申请实施例的报警方法的一种示意图;FIG. 3 is a schematic diagram of an alarm method according to an embodiment of the application;
图4为本申请实施例的深度学习算法训练过程的一种示意图;FIG. 4 is a schematic diagram of a deep learning algorithm training process according to an embodiment of the application;
图5为本申请实施例的行为热力图生成方法的第四种示意图;FIG. 5 is a fourth schematic diagram of a method for generating a behavioral heat map according to an embodiment of the application;
图6为本申请实施例的行为列表发送方法的一种示意图;FIG. 6 is a schematic diagram of a method for sending a behavior list according to an embodiment of the application;
图7为本申请实施例的行为热力图生成装置的一种示意图;FIG. 7 is a schematic diagram of an apparatus for generating a behavioral heat map according to an embodiment of the application;
图8为本申请实施例的行为列表发送装置的一种示意图;FIG. 8 is a schematic diagram of an apparatus for sending a behavior list according to an embodiment of this application;
图9为本申请实施例的电子设备的一种示意图。FIG. 9 is a schematic diagram of an electronic device according to an embodiment of the application.
具体实施方式Detailed ways
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions, and advantages of the present application clearer, the following further describes the present application in detail with reference to the drawings and embodiments. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of this application.
为了方便用户对大面积区域进行直观的监测,本申请实施例提供了一种行为热力图生成方法,参见图1a,应用于后端设备,该方法包括:In order to facilitate the user to visually monitor a large area, an embodiment of the present application provides a method for generating a behavioral heat map. See FIG. 1a, which is applied to a back-end device. The method includes:
S101,获取各预设监控区域的图像数据中各指定目标的行为分析结果,其中,上述预设监控区域为待统计区域中的区域。S101: Obtain a behavior analysis result of each designated target in the image data of each preset monitoring area, where the foregoing preset monitoring area is an area in the area to be counted.
本申请实施例的行为热力图生成方法应用于后端设备,因此可以通过后端设备执行,具体的,该后端设备可以为服务器、个人电脑或硬盘录像机等。本申请实施例中的图像数据可以为视频流,在一些仅包含目标识别的应用场景中,也可以为单帧视频帧。The method for generating a behavioral heat map in the embodiment of the present application is applied to a back-end device, so it can be executed by a back-end device. Specifically, the back-end device may be a server, a personal computer, or a hard disk video recorder. The image data in the embodiments of the present application may be a video stream, and in some application scenarios that only include target recognition, it may also be a single-frame video frame.
预设监控区域为待统计区域中用户指定的监控区域。后端设备可以通过安装在各预设监控区域的智能摄像机,直接获取各图像数据中各指定目标的行为分析结果。其中,智能摄像机通过计算机视觉技术,对自身采集的图像数据进行分析,得到自身采集的图像数据中各指定目标的行为分析结果,并发送给后端设备。The preset monitoring area is the monitoring area designated by the user in the area to be counted. The back-end equipment can directly obtain the behavior analysis results of each designated target in each image data through smart cameras installed in each preset monitoring area. Among them, the smart camera analyzes the image data collected by itself through computer vision technology, obtains the behavior analysis result of each designated target in the image data collected by itself, and sends it to the back-end device.
可选的,智能摄像机可以通过行为列表的方式发送各指定目标的行为分 析结果,针对任一智能摄像机,该智能摄像机针对每种行为类型建立一个行为列表,该智能摄像机将触发指定行为类型的指定目标的标识添加到相应的行为列表中。相应的,上述获取各预设监控区域的图像数据中各指定目标的行为分析结果,包括:接收各智能设备发送的行为列表,其中,上述行为列表中包括指定目标的标识,且同一行为列表中各指定目标的行为类型相同;组装各上述行为列表,分别得到触发各指定行为的指定目标名单,其中,上述各指定目标的行为分析结果以触发各指定行为的指定目标名单的方式表示。后端设备通过组装各智能设备发送的行为列表,可以汇总多个预设监控区域的图像数据的分析结果,将计算资源分摊到前端智能设备,减少后端设备的处理压力,提升了灵活性。具体的,此处的智能设备可以为智能摄像机或硬盘录像机等。Optionally, the smart camera can send the behavior analysis results of each specified target through a behavior list. For any smart camera, the smart camera establishes a behavior list for each behavior type, and the smart camera will trigger the designation of the specified behavior type The identification of the target is added to the corresponding behavior list. Correspondingly, obtaining the behavior analysis result of each designated target in the image data of each preset monitoring area includes: receiving a behavior list sent by each smart device, wherein the behavior list includes the identification of the designated target, and the behavior list is in the same behavior list. The behavior types of the designated targets are the same; the above-mentioned behavior lists are assembled, and the designated target lists that trigger each designated behavior are respectively obtained, wherein the behavior analysis results of the above-mentioned designated targets are expressed in the form of the designated target list that triggers each designated behavior. By assembling the behavior list sent by each smart device, the back-end device can summarize the analysis results of the image data of multiple preset monitoring areas, and allocate the computing resources to the front-end smart device, reducing the processing pressure of the back-end device and improving flexibility. Specifically, the smart device here may be a smart camera or a hard disk video recorder, etc.
在一种可能的实施方式中,图像数据分析过程由后端设备执行,参见图1b,上述获取各预设监控区域的图像数据中各指定目标的行为分析结果,包括:In a possible implementation manner, the image data analysis process is executed by a back-end device. See FIG. 1b. The above-mentioned acquiring behavior analysis results of each designated target in the image data of each preset monitoring area includes:
S1011,获取各预设监控区域的图像数据。S1011: Obtain image data of each preset monitoring area.
后端设备接收各摄像机发送的各预设监控区域的图像数据。The back-end device receives the image data of each preset monitoring area sent by each camera.
S1012,通过计算机视觉技术,对各上述图像数据进行分析,得到各上述图像数据中指定目标的行为分析结果。S1012: Analyze each of the above-mentioned image data through computer vision technology to obtain a behavior analysis result of the designated target in each of the above-mentioned image data.
后端设备通过计算机视觉技术,得到各图像数据中指定目标的行为分析结果。指定目标为用户希望关注的目标,可以为人、车辆或动物等,具体可以根据实际要求进行设定。在一种可能的实施方式中,计算机视觉技术为预先训练的深度学习算法,后端设备利用深度学习算法对图像数据进行分析,得到图像数据中指定目标的行为分析结果。预先训练的深度学习算法的过程可以如图4所示包括:确定感兴趣的行为类型,对包含指定目标的各图像数据中指定目标的行为类型进行标定,得到样本图像数据,将样本图像数据输入到深度学习算法中进行训练,收敛后得到预先训练的深度学习算法。The back-end equipment uses computer vision technology to obtain the behavior analysis results of the specified targets in each image data. The designated target is the target that the user wants to pay attention to, which can be a person, a vehicle, or an animal, etc., which can be set according to actual requirements. In a possible implementation manner, the computer vision technology is a pre-trained deep learning algorithm, and the back-end device uses the deep learning algorithm to analyze the image data to obtain the behavior analysis result of the specified target in the image data. The process of the pre-trained deep learning algorithm can be shown in Figure 4, including: determining the behavior type of interest, calibrating the behavior type of the specified target in each image data containing the specified target, obtaining sample image data, and inputting the sample image data Train in the deep learning algorithm, and get the pre-trained deep learning algorithm after convergence.
可选的,上述通过计算机视觉技术,对各上述图像数据进行分析,得到各上述图像数据中指定目标的行为分析结果,包括:Optionally, the foregoing analysis of each of the foregoing image data by computer vision technology to obtain the behavior analysis result of the specified target in each of the foregoing image data includes:
步骤一,通过计算机视觉技术,分别对各上述图像数据中的指定目标进行跟踪检测,提取各上述指定目标的像素区域序列。Step 1: Using computer vision technology, the designated targets in each of the above-mentioned image data are respectively tracked and detected, and the pixel region sequence of each of the above-mentioned designated targets is extracted.
计算机视觉技术可以包括目标检测算法及目标跟踪算法,后端设备通过目标检测算,分别对各图像数据中的指定目标进行识别,并通过目标跟踪算 法,对指定目标进行跟踪,从而得到各指定目标在图像数据中的位置,进而按照各指定目标在图像数据中的位置,提取各指定目标的像素区域序列。Computer vision technology can include target detection algorithms and target tracking algorithms. The back-end equipment recognizes the specified targets in each image data through the target detection algorithm, and tracks the specified targets through the target tracking algorithm to obtain each specified target According to the position in the image data, the pixel region sequence of each designated target is extracted according to the position of each designated target in the image data.
在一种可能的实施方式中,为了减少后端设备的处理压力,可以对指定目标的像素区域序列代进行采样。上述通过计算机视觉技术,分别对各上述图像数据中的指定目标进行跟踪检测,提取各上述指定目标的像素区域序列,包括:In a possible implementation manner, in order to reduce the processing pressure of the back-end device, the pixel area sequence of the designated target may be sampled. In the foregoing, the computer vision technology is used to track and detect the designated targets in each of the above-mentioned image data, and extract the pixel region sequence of each of the above-mentioned designated targets, including:
步骤A,通过预设目标检测算法及预设目标跟踪算法,确定各上述图像数据中的各指定目标及各上述指定目标的位置。Step A: Determine each designated target and the position of each designated target in each of the aforementioned image data by using a preset target detection algorithm and a preset target tracking algorithm.
后端设备通过目标检测算,分别对各图像数据中的指定目标进行识别,并通过目标跟踪算法,对指定目标进行跟踪,从而得到各指定目标在图像数据中的位置,在一种可能的实施方式中,为了有效区分各指定目标,可以针对每个指定目标设置一个唯一的ID。目标检测算法可以包括行人目标检测,例如,HOG(Histogram of Oriented Gradient,方向梯度直方图)、DPM(Deformable Parts Models,可变型部件模型)、FRCNN(Faster Regions with Convolutional Neural Networks,更快的基于分区的卷积神经网络)、YOLO(You Only Look Once,你只看一次)、SSD(Single Shot Multibox Detector,单点多盒探测器),目标跟踪算法可以为多目标跟踪算法方法。The back-end equipment recognizes the designated targets in each image data through target detection and calculation, and tracks the designated targets through the target tracking algorithm, so as to obtain the position of each designated target in the image data. In a possible implementation In the method, in order to effectively distinguish the designated targets, a unique ID can be set for each designated target. Target detection algorithms can include pedestrian target detection, such as HOG (Histogram of Oriented Gradient), DPM (Deformable Parts Models), FRCNN (Faster Regions with Convolutional Neural Networks, faster based on partitions) Convolutional Neural Network), YOLO (You Only Look Once), SSD (Single Shot Multibox Detector), the target tracking algorithm can be a multi-target tracking algorithm method.
步骤B,通过预设目标采样算法,对各上述图像数据中的各指定目标进行采样,得到各采样指定目标。Step B, sampling each designated target in each of the above-mentioned image data through a preset target sampling algorithm to obtain each sampling designated target.
后端设备还对各指定目标进行目标采样,从而减少后端设备的处理压力。后端设备可以通过任意相关的采样算法对指定目标进行采样。例如,对各图像数据中的指定目标进行目标稀疏采样,目标稀疏采样方法包含但不限于目标均匀采样、点位均匀采样、点位带权采样及基于区域目标数量的采样等,通过采样可以获取目标规模适量的指定目标,即采样指定目标。The back-end equipment also performs target sampling on each designated target, thereby reducing the processing pressure of the back-end equipment. The back-end equipment can sample the specified target through any relevant sampling algorithm. For example, target sparse sampling of specified targets in each image data. Target sparse sampling methods include but are not limited to target uniform sampling, point uniform sampling, point weight sampling, and sampling based on the number of regional targets, etc., which can be obtained by sampling A designated target with an appropriate target scale, that is, sampling designated targets.
步骤C,按照各上述采样指定目标的位置,对各上述图像数据进行目标行为序列抽取,得到各上述采样指定目标的像素区域序列。Step C: Perform target behavior sequence extraction on each of the above-mentioned image data according to the position of the designated target of each of the above-mentioned samples to obtain the pixel region sequence of each designated target of the above-mentioned sample.
在步骤A中确定了各指定目标的位置,各采样指定目标均为各指定目标中的目标,因此各采样指定目标的位置已知。后端设备按照各采样指定目标的位置,对各图像数据进行目标行为序列抽取,按照一定结构,例如,Tubelet等,从图像数据中进行图像截取,得到各采样指定目标的像素区域序列。通过采样指定目标的像素区域序列代替各指定目标的像素区域序列。In step A, the location of each designated target is determined, and each sampling designated target is a target in each designated target, so the position of each sampling designated target is known. The back-end device extracts the target behavior sequence of each image data according to the position of each sample designated target, and performs image interception from the image data according to a certain structure, such as Tubelet, to obtain the pixel area sequence of each sample designated target. By sampling the pixel area sequence of the designated target instead of the pixel area sequence of each designated target.
在本申请实施例中,对各指定目标的像素区域序列进行采样,根据目标 密集程度,完成稀疏采样,在保留不同预设监控区域下指定目标分布特性的同时,降低了行为类型识别处理的数据量,提升了整体方案的实用性。In the embodiment of this application, the pixel area sequence of each designated target is sampled, and the sparse sampling is completed according to the density of the target. While preserving the distribution characteristics of the designated target under different preset monitoring regions, it reduces the data of behavior type recognition processing. The quantity has improved the practicability of the overall scheme.
步骤二,对各上述指定目标的像素区域序列进行分析,得到各上述指定目标的行为分析结果。Step 2: Analyze the pixel area sequence of each of the above-mentioned designated targets to obtain the behavior analysis result of each of the above-mentioned designated targets.
针对各指定目标的像素区域序列进行分析,使用图像序列行为识别框架,例如,LSTM(Long Short-Term Memory,长短期记忆网络)、双流网络、C3D(3D ConvNets,深度3维卷积网络)、P3D(Pseudo-3D Residual Networks,伪三维残差网络)、ArtNet、PointNet、PointSIFT等,结合分类神经网络进行序列行为特征提取,得到各指定目标的像素区域序列的行为分析结果。其中,分类神经网络包含但不限于Resnet18(Residual Neural Network 18,残差神经网络18)、Resnet50(Residual Neural Network50,残差神经网络50)、Resnet101(Residual Neural Network101,残差神经网络101)、Resnet152(Residual Neural Network152,残差神经网络152)、Inception-v1、VGG(Visual Geometry Group Network,视觉几何组网络)等。在一种可能的实施方式中,行为分析结果包括行为类别和置信度。Analyze the pixel region sequence of each specified target, using the image sequence behavior recognition framework, for example, LSTM (Long Short-Term Memory), dual stream network, C3D (3D ConvNets, deep 3-dimensional convolutional network) P3D (Pseudo-3D Residual Networks), ArtNet, PointNet, PointSIFT, etc., combine the classification neural network to extract the sequence behavior feature, and obtain the behavior analysis result of the pixel area sequence of each specified target. Among them, classification neural networks include, but are not limited to, Residual Neural Network 18 (Residual Neural Network 18), Residual Neural Network 50 (Residual Neural Network 50), Residual Neural Network 101 (Residual Neural Network 101), Resnet 152 (Residual Neural Network 152, Residual Neural Network 152), Inception-v1, VGG (Visual Geometry Group Network, Visual Geometry Group Network), etc. In a possible implementation manner, the behavior analysis result includes behavior category and confidence.
S102,根据各上述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次,其中,上述子区域与上述预设监控区域存在交集;S102: Determine the frequency of occurrence of the designated behavior in each sub-region of the area to be counted according to the behavior analysis result of each of the above-mentioned designated targets, where the above-mentioned sub-region and the above-mentioned preset monitoring area have an intersection;
待统计区域可以为预先设定的区域,也可以为用户指定的区域。在一种可能的实施方式中,在S102之前,上述方法还包括:获取用户输入的待统计区域选取指令;按照上述待统计区域选取指令,确定待统计区域。待统计区域选取指令表征待统计区域的范围。待统计区域的各子区域可以为预先确定的,例如,预先按照面积大小划分多个面积区间,针对每个面积区间设定子区域的大小及划分方法。按照待统计区域的大小确定待统计区域所属的面积区间,按照待统计区域所属的面积区间对应的子区域的大小及划分方法,确定待统计区域中的各子区域。当然,也可以设定固定的子区域大小及划分方法,针对待统计区域,根据固定子区域大小及划分方法,确定待统计区域的各子区域。The area to be counted can be a preset area or a user-designated area. In a possible implementation manner, before S102, the above method further includes: acquiring a region to be counted selection instruction input by the user; and determining the region to be counted according to the above-mentioned region to be counted selection instruction. The selection command of the area to be counted represents the range of the area to be counted. Each sub-region of the area to be counted may be predetermined, for example, a plurality of area intervals are divided according to the area size in advance, and the size and division method of the sub-regions are set for each area interval. Determine the area interval to which the area to be counted belongs according to the size of the area to be counted, and determine each sub-area in the area to be counted according to the size and division method of the sub-areas corresponding to the area interval to which the area to be counted belongs. Of course, a fixed sub-region size and division method can also be set. For the region to be counted, each sub-region of the region to be counted is determined according to the fixed sub-region size and division method.
在一种可能的实施方式中,子区域是提前划分好的,预先按照不同的粒度,例如,道路、楼层、小区、城区、城市或省区等,划分多个子区域。根据预先划分好的子区域,确定待统计区域包括的子区域。In a possible implementation manner, the sub-areas are divided in advance, and multiple sub-areas are divided in advance according to different granularities, for example, roads, floors, communities, urban areas, cities, or provinces. According to the pre-divided sub-areas, determine the sub-areas included in the area to be counted.
在一种可能的实施方式中,还可以按照用户需求选择不同的粒度。可选的,在上述根据各上述指定目标的行为分析结果,确定待统计区域的各子区 域中指定行为发生的频次之前,上述方法还包括:In a possible implementation manner, different granularities can also be selected according to user requirements. Optionally, before determining the frequency of occurrence of the designated behavior in each sub-region of the area to be counted based on the behavior analysis result of each designated target, the above method further includes:
步骤一,获取用户输入的粒度设定指令,其中,上述粒度设定指令表征子区域的大小属性。粒度设定指令表征子区域的大小,例如,粒度设定指令表征子区域为道路、楼层、小区、城区、城市或省区等。Step 1: Obtain a granularity setting instruction input by a user, wherein the granularity setting instruction represents the size attribute of the sub-region. The granularity setting instruction represents the size of the sub-region. For example, the granularity setting instruction represents the sub-region as a road, a floor, a district, an urban area, a city, or a province.
步骤二,按照上述粒度设定指令,确定待统计区域中各子区域。例如,在粒度设定指令表征子区域为小区时,确定各子区域为小区;在粒度设定指令表征子区域为街道时,确定各子区域为街道。Step 2: Determine each sub-areas in the area to be counted according to the above-mentioned granularity setting instruction. For example, when the sub-area characterized by the granularity setting instruction is a cell, each sub-area is determined to be a cell; when the sub-area characterized by the granularity setting instruction is a street, it is determined that each sub-area is a street.
通过粒度设定,可以汇总不同粒度的行为分析结果,能够直观结合电子地图以不同颜色和颜色深浅对区域行为进行可视化显示,直观且易于使用。Through the granularity setting, the behavior analysis results of different granularities can be summarized, and the regional behavior can be visually displayed in different colors and color shades in combination with the electronic map, which is intuitive and easy to use.
指定行为可以是预先设定的行为类型,也可以为用户实时选取的行为类型。在一种可能的实施方式中,上述方法还包括:获取用户输入的指定行为选取指令,其中,指定行为选取指令表征指定行为的行为类型;按照指定行为选取指令,确定指定行为。The specified behavior can be a preset behavior type or a behavior type selected by the user in real time. In a possible implementation manner, the above method further includes: acquiring a specified behavior selection instruction input by a user, wherein the specified behavior selection instruction represents a behavior type of the specified behavior; and the specified behavior is determined according to the specified behavior selection instruction.
后端设备按照各指定目标所属的预设监控区域,确定各指定目标所在的子区域;按照各指定目标的行为分析结果,分别统计各子区域中指定行为发生的频次。在通常情况下,预设监控区域的大小是小于子区域的大小的,在一种可能的实施方式中,上述子区域包括上述预设监控区域,上述根据各上述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次,包括:The back-end equipment determines the sub-region where each designated target belongs according to the preset monitoring area to which each designated target belongs; according to the behavior analysis results of each designated target, separately counts the frequency of occurrence of the designated behavior in each sub-region. Under normal circumstances, the size of the preset monitoring area is smaller than the size of the sub-area. In a possible implementation, the sub-area includes the preset monitoring area, and the determination is determined based on the behavior analysis result of each of the specified targets. The frequency of occurrence of the specified behavior in each sub-areas of the area to be counted, including:
步骤一,获取各上述子区域与各上述预设监控区域的包含关系。Step 1: Obtain the inclusion relationship between each of the aforementioned sub-areas and each of the aforementioned preset monitoring areas.
根据各子区域的位置及各预设监控区域的位置,分别确定各子区域包括的预设监控区域。According to the location of each sub-area and the location of each preset monitoring area, the preset monitoring areas included in each sub-area are respectively determined.
步骤二,按照上述包含关系、各上述指定目标的行为分析结果及各上述指定目标所在的预设监控区域,确定待统计区域的各上述子区域中指定行为发生的频次。Step 2: Determine the frequency of occurrence of the specified behavior in each of the sub-regions of the area to be counted according to the inclusion relationship, the behavior analysis result of each of the specified targets, and the preset monitoring area where each of the specified targets is located.
图像数据为预设监控区域的视频图像,任一图像数据中的指定目标,为该图像数据对应的预设监控区域中的指定目标。若子区域包括一预设监控区域,则该一预设监控区域中的指定目标为该子区域中的指定目标。按照各指定目标的行为分析结果,分别统计各子区域中指定行为发生的频次。The image data is a video image of the preset monitoring area, and the specified target in any image data is the specified target in the preset monitoring area corresponding to the image data. If the subarea includes a preset monitoring area, the designated target in the preset monitoring area is the designated target in the subarea. According to the behavior analysis results of each designated target, count the frequency of occurrence of designated behaviors in each sub-region.
为了方便指定目标的行为分析结果的统计,在一种可能的实施方式中,上述方法还包括:根据各上述指定目标的行为分析结果,将各上述指定目标 进行分类,得到多个行为列表,其中,同一行为列表中各指定目标的行为类型相同。根据指定目标的行为分析结果,将同一行为类型的各指定目标划分到一个行为列表中,行为列表除了记录对应的行为类型及包含的指定目标的标识外,还可以记录指定目标的位置,指定目标的位置可以是指定目标所属的图像数据/预设监控区域,或指定目标的位置为指定目标的实际坐标等。In order to facilitate the statistics of the behavior analysis results of the designated targets, in a possible implementation manner, the above method further includes: classifying the designated targets according to the behavior analysis results of the designated targets to obtain multiple behavior lists, where , The behavior type of each specified target in the same behavior list is the same. According to the behavior analysis results of the specified target, each specified target of the same behavior type is divided into a behavior list. In addition to recording the corresponding behavior type and the identification of the specified target, the behavior list can also record the location of the specified target, and specify the target. The location of can be the image data/preset monitoring area to which the specified target belongs, or the location of the specified target is the actual coordinates of the specified target, etc.
S103,按照各上述子区域中指定行为发生的频次,生成上述待统计区域的指定行为的行为热力图。S103: Generate a behavior heat map of the designated behavior in the region to be counted according to the frequency of occurrence of the designated behavior in each subregion.
后端设备按照各子区域中指定行为发生的频次,在电子地图中,对待统计区域各子区域进行着色,从而得到待统计区域的指定行为的行为热力图。在一种可能的实施方式中,可以用冷暖色表示子区域中指定行为发生的频次,例如,子区域中指定行为发生的频次越高,该子区域的颜色越趋近于暖色;子区域中指定行为发生的频次越低,该子区域的颜色越趋近于冷色。The back-end device colors each sub-areas of the area to be counted in the electronic map according to the frequency of occurrence of the designated behavior in each sub-areas, so as to obtain a behavior heat map of the designated behavior in the area to be counted. In a possible implementation, cool and warm colors can be used to indicate the frequency of occurrence of the specified behavior in the sub-region. For example, the higher the frequency of the specified behavior in the sub-region, the closer the color of the sub-region to the warm color; The lower the frequency of the specified behavior, the closer the color of the sub-region is to the cool color.
在实际应用的过程中,用户可能希望对多种行为类型进行监测,在一种可能的实施方式中,上述指定行为为多个指定行为,上述按照各上述子区域中指定行为发生的频次,生成上述待统计区域的指定行为的行为热力图,包括:In the actual application process, the user may wish to monitor multiple types of behaviors. In a possible implementation manner, the above-mentioned designated behaviors are multiple designated behaviors. The above-mentioned designated behaviors are generated according to the frequency of occurrence of the designated behaviors in each of the above-mentioned sub-regions. The behavior heat map of the specified behavior in the above-mentioned area to be counted includes:
步骤一,获取上述待统计区域的电子地图,获取各上述子区域中各指定行为发生的频次。Step 1: Obtain an electronic map of the area to be counted, and obtain the frequency of occurrence of each designated behavior in each of the sub-areas.
步骤二,确定各上述指定行为对应的热力颜色。Step two, determine the thermal color corresponding to each of the above specified behaviors.
指定行为包括多种指定行为,可以针对不同的指定行为设定不同的热力颜色。各指定行为对应的热力颜色可以为随机确定的,也可以为用户指定的,此处不再赘述。The designated behavior includes a variety of designated behaviors, and different thermal colors can be set for different designated behaviors. The thermal color corresponding to each specified behavior can be randomly determined or specified by the user, which will not be repeated here.
步骤三,针对上述电子地图中的任一子区域,按照该子区域中各上述指定行为发生的频次,在该子区域的地图中显示该子区域中各指定行为对应的热力颜色,其中,任一热力颜色的深浅程度与该热力颜色对应的指定行为发生的频次正相关。Step 3: For any sub-area in the above electronic map, according to the frequency of occurrence of each specified behavior in the sub-area, the thermal color corresponding to each specified behavior in the sub-area is displayed on the map of the sub-area, where any The intensity of a thermal color is positively related to the frequency of occurrence of the specified behavior corresponding to the thermal color.
针对任一子区域,在该子区域的电子地图位置显示该子区域包含的指定行为的热力颜色。且该子区域中指定行为的频次越高,该指定行为对应的热力颜色的深浅程度越深。For any sub-region, the thermal color of the specified behavior contained in the sub-region is displayed in the electronic map position of the sub-region. And the higher the frequency of the specified behavior in the sub-region, the darker the thermal color corresponding to the specified behavior.
使用电子地图作为基底、使用颜色深浅表示指定行为频次的高低、使用不同颜色表示不同行为类型,在电子地图中的各子区域位置分别显示相应的热力颜色,得到待统计区域的行为热力图。在一种可能的实施方式中,行为 热力图可以进行放大或缩小,根据电子地图比例尺更新频次统计数据。用户可以从电子地图上选择子区域中的图像数据进行视频预览,更真实地观测实际情况。可选的,上述方法还包括,获取针对指定预设监控区域的图像展示指令;按照图像展示指令,展示指定预设监控区域的图像数据。例如,用户可以通过鼠标或触屏点击子区域中的指定预设监控区域,后端设备在检测到针对指定预设监控区域的点击指令后,展示指定预设监控区域的图像数据。Use an electronic map as a base, use color shades to indicate the frequency of specified behaviors, use different colors to indicate different behavior types, and display the corresponding thermal colors in each sub-area position in the electronic map to obtain the behavior heat map of the area to be counted. In a possible implementation manner, the behavioral heat map can be zoomed in or out, and the frequency statistics data can be updated according to the scale of the electronic map. The user can select the image data in the sub-area from the electronic map for video preview to observe the actual situation more realistically. Optionally, the above method further includes obtaining an image display instruction for the designated preset monitoring area; and displaying the image data of the designated preset monitoring area according to the image display instruction. For example, the user can click the designated preset monitoring area in the sub-area through the mouse or touch screen, and the back-end device displays the image data of the designated preset monitoring area after detecting the click instruction for the designated preset monitoring area.
在本申请实施例中,通过图像数据统计待统计区域中各子区域指定行为的发生频次,进而生成待统计区域的行为热力图,可以实现对大面积区域进行直观的监测。In the embodiment of the present application, the frequency of occurrence of designated behaviors in each sub-region in the region to be counted is counted by image data, and then a behavior heat map of the region to be counted is generated, which can realize intuitive monitoring of a large area.
在行为热力图粒度要求较小时,需要对指定目标的位置进行进一步的定位。在一种可能的实施方式中,在上述获取各预设监控区域的图像数据中各指定目标的行为分析结果之后,上述方法还包括:When the granularity of the behavioral heat map is small, further positioning of the specified target is required. In a possible implementation manner, after acquiring the behavior analysis result of each designated target in the image data of each preset monitoring area, the above method further includes:
获取各上述指定目标在上述预设监控区域中的实际位置。Acquire the actual position of each of the aforementioned designated targets in the aforementioned preset monitoring area.
指定目标的实际位置可以为智能摄像机等前端智能设备上报的,也可以为后端设备按照图像数据确定的。The actual location of the designated target can be reported by a front-end smart device such as a smart camera, or it can be determined by a back-end device based on image data.
在一种可能的实施方式中,参见图2,上述获取各上述指定目标在上述预设监控区域中的实际位置,包括:In a possible implementation manner, referring to FIG. 2, the foregoing obtaining the actual position of each of the specified targets in the preset monitoring area includes:
S201,根据各上述指定目标的像素区域序列,确定各上述指定目标在上述图像数据中的位置。S201: Determine the position of each designated target in the image data according to the pixel area sequence of each designated target.
指定目标的像素区域可以为指定目标的目标框选中的像素区域,按照指定目标的像素区域序列,确定指定目标在上述图像数据中的位置序列,例如,可以为位置坐标序列(时序上连续的多个坐标区域)。The pixel area of the specified target can be the pixel area selected by the target frame of the specified target. According to the pixel area sequence of the specified target, the position sequence of the specified target in the above image data is determined. For example, it can be a sequence of position coordinates (multiple consecutive time series). Coordinate areas).
S202,按照各上述指定目标在上述图像数据中的位置,确定各上述指定目标在上述预设监控区域中的实际位置。S202: Determine the actual position of each designated target in the preset monitoring area according to the position of each designated target in the image data.
通过相关的坐标换算方法,将指定目标在图像数据中的位置转换为指定目标在预设监控区域中的实际位置,该实际位置可以为全球定位系统坐标或自定义的区域坐标。Through the relevant coordinate conversion method, the position of the designated target in the image data is converted into the actual position of the designated target in the preset monitoring area, and the actual position can be the global positioning system coordinates or a custom area coordinate.
在一种可能的实施方式中,各指定目标的实际位置可以为智能摄像机等前端设备发送给后端设备的,后端设备直接获取各指定目标的实际位置即可。In a possible implementation manner, the actual location of each designated target may be sent to the back-end device by a front-end device such as a smart camera, and the back-end device may directly obtain the actual location of each designated target.
上述根据各上述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次,包括:The above determination of the frequency of occurrence of the designated behavior in each sub-region of the area to be counted based on the behavior analysis results of each of the above designated targets includes:
根据各上述指定目标的实际位置及各上述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次。According to the actual location of each designated target and the behavior analysis result of each designated target, the frequency of occurrence of designated behaviors in each subregion of the area to be counted is determined.
分别确定待统计区域的各子区域的实际位置。按照各指定目标的实际位置、各子区域的实际位置及各指定目标的行为分析结果,分别确定各子区域中指定行为发生的频次。Determine the actual location of each sub-areas of the area to be counted. According to the actual position of each designated target, the actual position of each sub-region, and the behavior analysis result of each designated target, the frequency of occurrence of the designated behavior in each sub-region is determined.
在本申请实施例中,通过确定各指定目标的实际位置,能够应用于子区域不包含完整预设监控区域的情况,甚至可以应用于子区域小于预设监控区域的情况,从而能够适用于行为热力图颗粒度较小的场景,即子区域较小的场景,理论上子区域最小可以为一个坐标点,能够大大增加行为热力图的监测精度。In the embodiment of the present application, by determining the actual location of each designated target, it can be applied to the case where the sub-region does not contain the complete preset monitoring area, and it can even be applied to the case where the sub-area is smaller than the preset monitoring area, which can be applied to behavior A scene with a small granularity of the heat map, that is, a scene with a small sub-area, theoretically the smallest sub-area can be a coordinate point, which can greatly increase the monitoring accuracy of the behavioral heat map.
为了方便指定目标的行为分析结果的统计,在一种可能的实施方式中,上述根据各上述指定目标的实际位置及各上述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次,包括:In order to facilitate the statistics of the behavior analysis results of the designated targets, in a possible implementation manner, the designated behaviors in each subregion of the region to be counted are determined based on the actual position of each designated target and the behavior analysis result of each designated target. Frequency of occurrence, including:
S1021,根据各上述指定目标的行为分析结果,将各上述指定目标进行分类,得到多个行为列表,其中,同一行为列表中各指定目标的行为类型相同。S1021: According to the behavior analysis result of each of the specified targets, classify each of the specified targets to obtain multiple behavior lists, wherein the behavior types of the specified targets in the same behavior list are the same.
根据指定目标的行为分析结果,将同一行为类型的各指定目标划分到一个行为列表中。针对任一行为列表,该行为列表中记录了该行为列表的行为类型,该行为列表包含的各指定目标的标识,以及该行为列表包含的各指定目标的实际位置。According to the behavior analysis result of the designated target, each designated target of the same behavior type is divided into a behavior list. For any behavior list, the behavior type of the behavior list, the identification of each specified target included in the behavior list, and the actual position of each specified target included in the behavior list are recorded in the behavior list.
S1022,确定指定行为对应的目标行为列表。S1022: Determine a target behavior list corresponding to the specified behavior.
确定指定行为对应的行为列表,即目标行为列表。Determine the behavior list corresponding to the specified behavior, that is, the target behavior list.
S1023,根据上述目标行为列表中各指定目标的实际位置,确定待统计区域的各子区域中上述指定行为发生的频次。S1023: Determine the frequency of occurrence of the specified behavior in each subregion of the area to be counted according to the actual position of each designated target in the target behavior list.
分别确定待统计区域的各子区域的实际位置。按照目标行为列表中各指定目标的实际位置及各子区域的实际位置,分别确定各子区域中指定目标的出现频次,即各子区域中指定行为发生的频次。Determine the actual location of each sub-areas of the area to be counted. According to the actual position of each designated target in the target behavior list and the actual position of each subregion, the frequency of occurrence of the designated target in each subregion, that is, the frequency of occurrence of the designated behavior in each subregion, is determined.
在本申请实施例中,通过设定行为列表,方便指定目标的行为分析结果的统计,行为热力图生成效率高。In the embodiment of the present application, by setting the behavior list, it is convenient to calculate the behavior analysis results of the specified target, and the behavior heat map generation efficiency is high.
本申请实施例还提供了一种报警方法,参见图3,该方法包括:The embodiment of the present application also provides an alarm method. Referring to FIG. 3, the method includes:
S301,展示待统计区域的行为热力图,其中,上述行为热力图表征指定行为在上述待统计区域的各子区域中发生的频次。S301. Display the behavior heat map of the region to be counted, where the behavior heat map represents the frequency of occurrence of a specified behavior in each sub-region of the region to be counted.
本申请实施例的报警方法可以通过后端设备执行,具体的,该后端设备可以为服务器、个人电脑或硬盘录像机等。行为热力图可以通过上述任一行为热力图生成方法获得,此处不再赘述。The alarm method in the embodiment of the present application may be executed by a back-end device. Specifically, the back-end device may be a server, a personal computer, or a hard disk video recorder. The behavioral heatmap can be obtained by any of the above-mentioned methods for generating the behavioral heatmap, and will not be repeated here.
S302,在上述行为热力图的子区域满足预设报警条件时,触发针对满足预设报警条件的子区域的报警。S302: When the sub-region of the above-mentioned behavioral heat map meets the preset alarm condition, trigger an alarm for the sub-region that meets the preset alarm condition.
预设报警条件可以按照实际情况进行设定,例如,设定为指定行为频次大于预设频次阈值,或热力颜色的热力值大于预设热力预值等。在一种可能的实施方式中,上述在上述行为热力图中的子区域满足预设报警条件时,触发针对满足预设报警条件的子区域的报警,包括:分别比较上述行为热力图各子区域中指定行为发生的频次与预设频次阈值的大小;针对指定行为发生的频次大于上述预设频次阈值的目标子区域,触发针对上述目标子区域的报警。The preset alarm condition can be set according to the actual situation, for example, the specified behavior frequency is greater than the preset frequency threshold, or the heat value of the heat color is greater than the preset heat preset value. In a possible implementation manner, when the sub-regions in the above-mentioned behavior heat map meet the preset alarm condition, triggering an alarm for the sub-regions that meet the preset alarm condition includes: comparing each sub-region of the above-mentioned behavior heat map respectively The frequency of occurrence of the specified behavior and the size of the preset frequency threshold; for the target subregion where the frequency of occurrence of the specified behavior is greater than the preset frequency threshold, an alarm for the target subregion is triggered.
在一种可能的实施方式中,上述行为热力图的子区域中包括热力颜色,上述热力颜色表征上述子区域中指定行为发生的频次,且上述子区域中指定行为发生的频次越高,上述子区域的热力颜色的热力值越高;上述在上述行为热力图的子区域满足预设报警条件时,触发针对满足预设报警条件的子区域的报警,包括:分别比较各上述子区域的热力颜色的热力值与预设热力预值的大小;针对热力值大于上述预设热力阈值的待报警子区域,触发针对上述待报警子区域的报警。In a possible implementation manner, the sub-regions of the above-mentioned behavior heat map include thermal colors, and the above-mentioned thermal colors represent the frequency of occurrence of the specified behavior in the above-mentioned sub-region, and the higher the frequency of occurrence of the specified behavior in the above-mentioned sub-region, the above-mentioned sub-region The higher the thermal value of the thermal color of the area; when the above-mentioned sub-regions of the above-mentioned behavioral heat map meet the preset alarm conditions, the alarm for the sub-regions meeting the preset alarm conditions is triggered, including: comparing the thermal colors of the above-mentioned sub-regions respectively The heating power value of and the preset heating power preset value; for the sub-area to be alarmed whose heating power value is greater than the preset heating threshold value, an alarm for the sub-area to be alarmed is triggered.
本申请实施例的行为热力图生成方法具体可以如图5所示。用户可以设定关注的行为类别,后端设备实时监测待统计区域内的各指定行为的频次,一旦出现指定行为类别热力明显上升达到预设热力阈值时,可以主动触发预警联动。用户可以主动查看现场视频或现场该行为类别样例,并根据情况及时响应。The method for generating a behavioral heat map of the embodiment of the present application may be specifically as shown in FIG. 5. The user can set the behavior category of interest, and the back-end device monitors the frequency of each specified behavior in the area to be counted in real time. Once the specified behavior category's thermal power increases significantly and reaches the preset thermal threshold, it can actively trigger the early warning linkage. Users can take the initiative to view live video or live examples of the behavior category, and respond in time according to the situation.
在实际情况中,本申请实施例的报警方法可以广泛应用于各个领域。举例如下:In actual situations, the alarm method in the embodiments of the present application can be widely used in various fields. Examples are as follows:
可以预设人员奔跑、人员集会游行、人员打架、人员倒地等行为类型,当某指定监测区域人员奔跑行为热力突然上升,达到行为热力图系统预设阈值上限时,触发预警,并推送现场视频或现场行为短视频给管理者,若查看发现是商场发生了火灾,则可快速派出火警支援;当某地区人员倒地行为、和人员打架行为热力突然上升,达到阈值上限,管理者实际查看发现火车站发生了暴恐事件,则可快速派出工作人员支援。You can preset behavior types such as people running, people gathering and parade, people fighting, people falling to the ground, etc. When the heat of running behavior of people in a designated monitoring area suddenly rises and reaches the upper limit of the preset threshold of the behavior heat map system, an alert is triggered and the live video is pushed Or give the manager a short video of the on-site behavior. If you check that it is a fire in the shopping mall, you can quickly send a fire alarm to support; when the heat of the behavior of people falling to the ground or fighting with people in a certain area suddenly rises and reaches the upper threshold, the manager actually checks and finds In the event of a violent terrorist incident at the railway station, staff can be quickly sent to support.
可以预设人员排队、人员滞留、人员拖动行李箱等行为类型,当某指定监测区域人员滞留行为热力突然上升,达到预设阈值上限,经管理者查看推送的现场视频或短视频,发现火车站某广场发现大量旅客,则可以快速派出运输资源或疏导人员前往疏散人群。The behavior types of people queuing, people staying, people dragging suitcases can be preset. When the heat of the people staying in a designated monitoring area suddenly rises and reaches the upper limit of the preset threshold, the manager checks the pushed live video or short video and finds the train If a large number of passengers are found in a square at a station, transportation resources or evacuation personnel can be quickly dispatched to evacuate the crowd.
可以预设学生低头、学生趴桌睡觉、学生起立发言等行为类型,当校园监测区域内学生趴桌睡觉行为热力突然上升时(属于正常教学时间段),触发联动策略,向教学管理者告警,教学管理者查看推送的视频或行为短视频发现,个别课堂出现了教学气氛低的现象,可以及时了解教学工作,提升教学质量。You can preset behavior types such as students bowing their heads, students sleeping at the table, and students standing up and speaking. When the heat of the student sleeping at the table suddenly rises in the campus monitoring area (belonging to the normal teaching time period), the linkage strategy is triggered to alert the teaching administrator. The teaching manager checked the pushed video or short behavioral video and found that some classrooms had a low teaching atmosphere, and they could understand the teaching work in time and improve the quality of teaching.
可以预设牧牛进食、牧牛饮水、牧牛卧地、牧牛剧烈运动等行为类型,当牧场监测区域内牧牛卧地行为热力突然上升(属于正常进食时间段)时,触发联动策略,向牧场管理者告警,经牧场管理者查看推送的现场视频或短视频,发现牧牛疑似出现中毒或疫情,则可快速进行疾控卫生工作。You can preset behavior types such as cattle feeding, cattle drinking, cattle lying, and cattle violent exercise. When the heat of the cattle lying behavior in the pasture monitoring area suddenly rises (belonging to the normal eating period), the linkage strategy will be triggered to alert the pasture manager , After checking the pushed live video or short video by the ranch manager, it is found that the herd is suspected of being poisoned or epidemic, and the disease control and hygiene work can be carried out quickly.
本申请实施例中,可以根据指定监测区域行为列表统计结果,简便地进行多功能组合使用,包含了查看单一/任意多种行为的分布特性,查看单一区域/任意多区域的行为分布特征,用户交互操作简洁。采用行为热力图进行行为预览和调度,便于用户快速关注现场情况,方便取证,能够快速做出系统调度,提高了智能化水平。In the embodiments of this application, it is possible to easily perform multi-functional combined use based on the statistical results of the behavior list of the designated monitoring area, including viewing the distribution characteristics of a single/any multiple behaviors, and viewing the behavior distribution characteristics of a single area/any multiple areas. The interactive operation is simple. The behavioral heat map is used for behavior preview and scheduling, which is convenient for users to quickly pay attention to the on-site situation, facilitate evidence collection, and quickly make system scheduling, which improves the level of intelligence.
为了能够同时针对多种指定行为进行检测,在一种可能的实施方式中,上述行为热力图的子区域中包括热力颜色,上述指定行为多个指定行为,不同的指定行为对应不同的热力颜色,上述热力颜色的深浅程度与上述热力颜色对应的指定行为发生的频次正相关,各上述热力颜色分别对应相应的报警联动;In order to be able to detect multiple designated behaviors at the same time, in a possible implementation manner, the sub-regions of the above-mentioned behavior heat map include thermal colors, and the above-mentioned designated behaviors have multiple designated behaviors, and different designated behaviors correspond to different thermal colors. The intensity of the aforementioned thermal color is positively correlated with the frequency of occurrence of the specified behavior corresponding to the aforementioned thermal color, and each of the aforementioned thermal colors corresponds to a corresponding alarm linkage;
上述在上述行为热力图的子区域满足预设报警条件时,触发针对满足预设报警条件的子区域的报警,包括:When the above-mentioned sub-area of the behavior heat map meets the preset alarm condition, triggering an alarm for the sub-area meeting the preset alarm condition includes:
步骤一,针对各上述子区域中的各热力颜色,比较该热力颜色的深浅程度与该热力颜色对应的预设程度预值的大小。Step 1: For each thermal color in each of the above-mentioned sub-regions, compare the depth of the thermal color with the size of the preset degree preset value corresponding to the thermal color.
步骤二,针对深浅程度大于预设程度预值的目标热力颜色,触发针对上述目标热力颜色所在的子区域、且与上述目标热力颜色对应的报警联动。Step 2: For the target thermal color whose depth is greater than the preset degree, trigger an alarm linkage for the sub-region where the target thermal color is located and corresponding to the target thermal color.
预先针对各热力颜色的设定预设程度阈值,不同热力颜色的预设程度阈值可以相同也可以不同,按照实际需求设定。不同子区域的热力颜色可以设定不同的报警联动,也可以设定相同的报警联动,具体按照实际需要进行设 定。后端设备分别针对各子区域的各热力颜色进行分析,针对任一热力颜色,比较该热力颜色的深浅程度与该热力颜色对应的预设程度预的大小。在该热力颜色的深浅程度大于该热力颜色对应的预设程度阈值时,执行针对该热力颜色所在的子区域的、且与该热力颜色对应的报警联动。A preset degree threshold is set for each thermal color in advance, and the preset degree threshold for different thermal colors may be the same or different, and set according to actual needs. Different alarm linkages can be set for the thermal colors of different sub-regions, or the same alarm linkage can be set, which can be set according to actual needs. The back-end device analyzes the thermal colors of each sub-region respectively, and compares the intensity of the thermal color with the preset degree corresponding to the thermal color for any thermal color. When the depth of the thermal color is greater than the preset degree threshold corresponding to the thermal color, an alarm linkage for the sub-region where the thermal color is located and corresponding to the thermal color is executed.
本申请实施例中,可以基于行为热力图同时实现对多种指定行为的检测报警,能够满足用户多种需求。In the embodiments of the present application, the detection and alarm of multiple specified behaviors can be simultaneously realized based on the behavior heat map, which can meet various needs of users.
可选的,本申请实施例的报警方法还包括:Optionally, the alarm method in the embodiment of the present application further includes:
步骤一,获取用户针对待展示的子区域的展示指令。Step 1: Obtain the user's display instruction for the sub-region to be displayed.
步骤二,按照上述展示指令,展示上述待展示的子区域中的图像数据,其中,上述待展示的子区域中的图像数据为上述待展示的子区域中的监控区域的视频流。Step 2: According to the display instruction, display the image data in the sub-region to be displayed, wherein the image data in the sub-region to be displayed is the video stream of the monitoring area in the sub-region to be displayed.
图像数据为监控设备采集的各监控区域的视频流,用户通过展示指令可以展示待展示的子区域中的图像数据。在一些情况下,待展示的子区域中包括多个图像数据,可以先生成各图像数据的预览窗口,供用户选择展示。The image data is the video stream of each monitoring area collected by the monitoring equipment, and the user can display the image data in the sub-area to be displayed through display instructions. In some cases, the sub-region to be displayed includes multiple image data, and a preview window of each image data may be generated first for the user to choose to display.
本申请实施例中,实现了实际监控场景的图像数据的展示,能够帮助用户更加充分的了解实际情况,满足用户多种需求。In the embodiments of the present application, the display of the image data of the actual monitoring scene is realized, which can help the user to fully understand the actual situation and meet the various needs of the user.
本申请实施例还提供了一种行为列表发送方法,参见图6,应用于前端智能设备,该方法包括:The embodiment of the present application also provides a method for sending a behavior list. See FIG. 6, which is applied to a front-end smart device. The method includes:
S601,获取预设监控区域的图像数据。S601: Acquire image data of a preset monitoring area.
本申请实施例的行为列表发送方法应用于前端智能设备,因此可以通过前端智能设备实现,具体的,该前端智能设备可以为智能摄像机或硬盘录像机等。智能摄像机可以直接对预设监控区域的图像数据进行采集,从而得到预设监控区域的图像数据。硬盘录像机可以通过连接的摄像机获取预设监控区域的图像数据。The behavior list sending method of the embodiment of the present application is applied to a front-end smart device, and therefore can be implemented by a front-end smart device. Specifically, the front-end smart device may be a smart camera or a hard disk video recorder. The smart camera can directly collect the image data of the preset monitoring area to obtain the image data of the preset monitoring area. The hard disk video recorder can obtain the image data of the preset monitoring area through the connected camera.
S602,通过计算机视觉技术,对上述图像数据进行分析,得到上述图像数据中各指定目标的行为分析结果。S602: Analyze the above-mentioned image data through computer vision technology to obtain a behavior analysis result of each designated target in the above-mentioned image data.
前端智能设备通过目标检测算,对图像数据中的指定目标进行识别,并通过目标跟踪算法,对各指定目标进行跟踪,从而得到各指定目标在图像数据中的位置,按照各指定目标在图像数据中的位置,对各指定目标进行行为识别,得到各指定目标的行为分析结果。The front-end intelligent equipment recognizes the designated target in the image data through target detection and calculation, and tracks each designated target through the target tracking algorithm, so as to obtain the position of each designated target in the image data, according to the designated target in the image data Perform behavior recognition on each designated target and obtain the behavior analysis result of each designated target.
S603,按照各上述指定目标的行为分析结果,将各上述指定目标进行分 类,得到多个行为列表,其中,同一上述行为列表中各指定目标的行为类型相同。S603: According to the behavior analysis result of each of the specified targets, classify each of the specified targets to obtain multiple behavior lists, wherein the behavior types of the specified targets in the same behavior list are the same.
根据指定目标的行为分析结果,将同一行为类型的各指定目标划分到一个行为列表中,行为列表除了记录对应的行为类型及包含的指定目标的标识外,还可以记录指定目标的位置,指定目标的位置可以是指定目标所属的图像数据/预设监控区域,或指定目标的位置为指定目标的实际坐标等。According to the behavior analysis results of the specified target, each specified target of the same behavior type is divided into a behavior list. In addition to recording the corresponding behavior type and the identification of the specified target, the behavior list can also record the location of the specified target, and specify the target. The location of can be the image data/preset monitoring area to which the specified target belongs, or the location of the specified target is the actual coordinates of the specified target, etc.
S604,发送各上述行为列表。S604: Send each of the foregoing behavior lists.
智能摄像机或硬盘录像机向服务器发送各行为列表,以使服务器按照行为列表生成行为热力图,行为热力图的生成过程如上述行为热力图生成方法上述,此处不再赘述。The smart camera or hard disk video recorder sends each behavior list to the server so that the server generates a behavior heat map according to the behavior list. The generation process of the behavior heat map is the same as the above-mentioned behavior heat map generation method, and will not be repeated here.
可选的,各指定目标的行为分析结果为各采样指定目标的行为分析结果,上述通过计算机视觉技术,对上述图像数据进行分析,得到上述图像数据中各指定目标的行为分析结果,包括:Optionally, the behavior analysis result of each designated target is the behavior analysis result of each sampled designated target. The foregoing image data is analyzed through computer vision technology to obtain the behavior analysis result of each designated target in the image data, including:
步骤一,通过预设目标检测算法及预设目标跟踪算法,确定上述图像数据中的各指定目标及各上述指定目标的位置。Step 1: Determine each designated target in the image data and the position of each designated target through a preset target detection algorithm and a preset target tracking algorithm.
通过目标检测算,对图像数据中的指定目标进行识别,并通过目标跟踪算法,对指定目标进行跟踪,从而得到各指定目标在图像数据中的位置,在一种可能的实施方式中,为了有效区分各指定目标,可以针对每个指定目标设置一个唯一的ID。目标检测算法可以包括行人目标检测,例如,HOG、DPM、FRCNN、YOLO、SSD,目标跟踪算法可以为多目标跟踪算法方法。Through the target detection calculation, the designated target in the image data is recognized, and the designated target is tracked through the target tracking algorithm, so as to obtain the position of each designated target in the image data. In a possible implementation, in order to be effective To distinguish each designated target, you can set a unique ID for each designated target. The target detection algorithm may include pedestrian target detection, for example, HOG, DPM, FRCNN, YOLO, SSD, and the target tracking algorithm may be a multi-target tracking algorithm method.
步骤二,通过预设目标采样算法,对上述图像数据中的各指定目标进行采样,得到各采样指定目标。The second step is to sample each designated target in the above-mentioned image data by using a preset target sampling algorithm to obtain each sampled designated target.
对各指定目标进行目标采样,例如,对各图像数据中的指定目标进行目标稀疏采样,目标稀疏采样方法包含但不限于目标均匀采样、点位均匀采样、点位带权采样及基于区域目标数量的采样等,通过采样可以获取目标规模适量的指定目标,即采样指定目标。Target sampling for each specified target, for example, target sparse sampling of the specified target in each image data. Target sparse sampling methods include but are not limited to target uniform sampling, point uniform sampling, point weighted sampling, and area-based target quantity Sampling, etc., through sampling, an appropriate amount of designated targets of target scale can be obtained, that is, sampling designated targets.
步骤三,按照各上述采样指定目标的位置,对上述图像数据进行目标行为序列抽取,得到各上述采样指定目标的像素区域序列。Step 3: Perform target behavior sequence extraction on the image data according to the position of the designated target of each sample to obtain the pixel region sequence of the designated target of each sample.
在步骤一中确定了各指定目标的位置,各采样指定目标均为各指定目标中的目标,因此各采样指定目标的位置已知。前端智能设备按照各采样指定目标的位置,对各图像数据进行目标行为序列抽取,按照一定结构,例如, Tubelet等,从图像数据中进行图像截取,得到各采样指定目标的像素区域序列。In step one, the position of each designated target is determined, and each sampling designated target is a target in each designated target, so the position of each sampling designated target is known. The front-end smart device extracts the target behavior sequence of each image data according to the location of the designated target for each sample, and performs image interception from the image data according to a certain structure, such as Tubelet, etc., to obtain the pixel area sequence of the designated target for each sample.
步骤四,对各上述采样指定目标的像素区域序列进行分析,得到各上述采样指定目标的行为分析结果。Step 4: Analyze the pixel area sequence of each of the above-mentioned sampled designated targets to obtain the behavior analysis result of each of the above-mentioned sampled designated targets.
针对各采样指定目标的像素区域序列进行分析,使用图像序列行为识别框架,例如,LSTM、双流网络、C3D、P3D、ArtNet、PointNet、PointSIFT等,结合分类神经网络进行序列行为特征提取,得到各指定目标的像素区域序列的行为分析结果。其中,分类神经网络包含但不限于Resnet18、Resnet50、Resnet101、Resnet152、Inception-v1、VGG等。在一种可能的实施方式中,行为分析结果包括行为类别和置信度。Analyze the pixel area sequence of the designated target for each sample, use the image sequence behavior recognition framework, such as LSTM, dual-stream network, C3D, P3D, ArtNet, PointNet, PointSIFT, etc., and combine the classification neural network to extract the sequence behavior feature to obtain each designated The behavior analysis result of the target pixel area sequence. Among them, the classification neural network includes but is not limited to Resnet18, Resnet50, Resnet101, Resnet152, Inception-v1, VGG, etc. In a possible implementation manner, the behavior analysis result includes behavior category and confidence.
本申请实施例提供了一种报警装置,该装置包括:The embodiment of the application provides an alarm device, which includes:
热力图展示模块,用于展示待统计区域的行为热力图,其中,上述行为热力图表征指定行为在上述待统计区域的各子区域中发生的频次;The heat map display module is used to display the behavior heat map of the area to be counted, wherein the behavior heat map represents the frequency of the specified behavior in each sub-region of the area to be counted;
报警触发模块,用于在上述行为热力图的子区域满足预设报警条件时,触发针对满足预设报警条件的子区域的报警。The alarm trigger module is used to trigger an alarm for the sub-area meeting the preset alarm condition when the sub-area of the above-mentioned behavioral heat map meets the preset alarm condition.
可选的,上述报警触发模块,包括:Optionally, the above alarm trigger module includes:
频次比较子模块,用于分别比较上述行为热力图各子区域中指定行为发生的频次与预设频次阈值的大小;The frequency comparison sub-module is used to compare the frequency of the specified behavior in each sub-region of the behavior heat map with the preset frequency threshold;
子区域报警子模块,用于针对指定行为发生的频次大于上述预设频次阈值的目标子区域,触发针对上述目标子区域的报警。The sub-area alarm sub-module is used to trigger an alarm for the target sub-area for the target sub-area whose frequency of occurrence of the specified behavior is greater than the preset frequency threshold.
可选的,上述行为热力图的子区域中包括热力颜色,上述热力颜色表征上述子区域中指定行为发生的频次,且上述子区域中指定行为发生的频次越高,上述子区域的热力颜色的热力值越高;Optionally, the sub-regions of the behavior heat map include thermal colors, and the thermal colors represent the frequency of occurrence of the specified behaviors in the sub-regions, and the higher the frequency of the specified behaviors in the sub-regions, the lower the thermal color of the sub-regions. The higher the heating value;
上述报警触发模块,包括:The above alarm trigger module includes:
热力值比较子模块,用于分别比较各上述子区域的热力颜色的热力值与预设热力预值的大小;The thermal value comparison sub-module is used to compare the thermal value of the thermal color of each of the above sub-regions with the preset thermal pre-value;
触发报警子模块,用于针对热力值大于上述预设热力阈值的待报警子区域,触发针对上述待报警子区域的报警。The triggering alarm sub-module is used for triggering an alarm for the above-mentioned sub-area to be alarmed for the sub-area to be alarmed whose heating value is greater than the above-mentioned preset thermal threshold value.
可选的,上述行为热力图的子区域中包括热力颜色,上述指定行为多个指定行为,不同的指定行为对应不同的热力颜色,上述热力颜色的深浅程度与上述热力颜色对应的指定行为发生的频次正相关,各上述热力颜色分别对 应相应的报警联动;Optionally, the sub-regions of the above-mentioned behavior heat map include thermal colors, the above-mentioned designated behaviors are multiple designated behaviors, and different designated behaviors correspond to different thermal colors. The depth of the above-mentioned thermal color corresponds to the designated behavior corresponding to the above-mentioned thermal color. The frequency is positively correlated, and each of the above thermal colors corresponds to the corresponding alarm linkage;
上述报警触发模块,具体用于:The above alarm trigger module is specifically used for:
针对各上述子区域中的各热力颜色,比较该热力颜色的深浅程度与该热力颜色对应的预设程度预值的大小;For each thermal color in each of the aforementioned sub-regions, comparing the depth of the thermal color with the size of the preset degree preset value corresponding to the thermal color;
针对深浅程度大于预设程度预值的目标热力颜色,触发针对上述目标热力颜色所在的子区域、且与上述目标热力颜色对应的报警联动。For the target thermal color whose depth is greater than the preset degree preset value, trigger an alarm linkage for the sub-region where the target thermal color is located and corresponding to the target thermal color.
可选的,本申请实施例的报警装置还包括:Optionally, the alarm device in the embodiment of the present application further includes:
展示指令接收模块,用于获取用户针对待展示的子区域的展示指令;The display instruction receiving module is used to obtain the user's display instruction for the sub-area to be displayed;
图像数据展示模块,用于按照上述展示指令,展示上述待展示的子区域中的图像数据,其中,上述待展示的子区域中的图像数据为上述待展示的子区域中的监控区域的视频流。The image data display module is used to display the image data in the sub-area to be displayed according to the display instruction, wherein the image data in the sub-area to be displayed is the video stream of the monitoring area in the sub-area to be displayed .
本申请实施例还提供了一种行为热力图生成装置,参见图7,应用于后端设备,该装置包括:The embodiment of the present application also provides a device for generating a behavioral heat map. See FIG. 7, which is applied to a back-end device. The device includes:
分析结果获取模块701,用于获取各预设监控区域的图像数据中各指定目标的行为分析结果,其中,上述预设监控区域为待统计区域中的区域;The analysis result obtaining module 701 is configured to obtain the behavior analysis result of each designated target in the image data of each preset monitoring area, where the foregoing preset monitoring area is an area to be counted;
子区域频次统计模块702,用于根据各上述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次,其中,上述子区域与上述预设监控区域存在交集;The sub-region frequency statistics module 702 is configured to determine the frequency of occurrence of the designated behavior in each sub-region of the area to be counted according to the behavior analysis result of each of the above-mentioned designated targets, wherein the above-mentioned sub-region and the above-mentioned preset monitoring area have an intersection;
行为热力图生成模块703,用于按照各上述子区域中指定行为发生的频次,生成上述待统计区域的指定行为的行为热力图。The behavior heat map generating module 703 is configured to generate the behavior heat map of the designated behavior in the region to be counted according to the frequency of occurrence of the designated behavior in each of the above sub-regions.
可选的,上述分析结果获取模块701,包括:Optionally, the aforementioned analysis result obtaining module 701 includes:
图像数据获取子模块,用于获取各预设监控区域的图像数据;Image data acquisition sub-module for acquiring image data of each preset monitoring area;
行为分析子模块,用于通过计算机视觉技术,对各上述图像数据进行分析,得到各上述图像数据中指定目标的行为分析结果。The behavior analysis sub-module is used to analyze each of the above-mentioned image data through computer vision technology to obtain the behavior analysis result of the designated target in each of the above-mentioned image data.
可选的,上述行为分析子模块,包括:Optionally, the above behavior analysis sub-module includes:
区域序列确定单元,用于通过计算机视觉技术,分别对各上述图像数据中的指定目标进行跟踪检测,提取各上述指定目标的像素区域序列;The region sequence determination unit is used to track and detect the designated targets in each of the above-mentioned image data by computer vision technology, and extract the pixel region sequence of each of the above-mentioned designated targets;
区域序列分析单元,用于对各上述指定目标的像素区域序列进行分析,得到各上述指定目标的行为分析结果。The area sequence analysis unit is used to analyze the pixel area sequence of each of the designated targets to obtain the behavior analysis results of each of the designated targets.
可选的,各指定目标的像素区域序列为各采样指定目标的像素区域序列, 上述区域序列确定单元,包括:Optionally, the pixel region sequence of each designated target is a pixel region sequence of each sample designated target, and the above-mentioned region sequence determining unit includes:
位置确定子单元,用于通过预设目标检测算法及预设目标跟踪算法,确定各上述图像数据中的各指定目标及各上述指定目标的位置;The position determination subunit is used to determine each designated target in each of the aforementioned image data and the position of each aforementioned designated target through a preset target detection algorithm and a preset target tracking algorithm;
系数采样子单元,用于通过预设目标采样算法,对各上述图像数据中的各指定目标进行采样,得到各采样指定目标;The coefficient sampling subunit is used to sample each designated target in each of the above-mentioned image data by using a preset target sampling algorithm to obtain each sampled designated target;
区域截取确定子单元,用于按照各上述采样指定目标的位置,对各上述图像数据进行目标行为序列抽取,得到各上述采样指定目标的像素区域序列。The region intercepting and determining subunit is used to extract the target behavior sequence of each of the above-mentioned image data according to the position of each of the above-mentioned sample-designated targets to obtain the pixel region sequence of each of the above-mentioned sample-designated targets.
可选的,上述行为热力图生成装置还包括:Optionally, the above-mentioned behavioral heat map generating device further includes:
实际位置获取模块,用于获取各上述指定目标在上述预设监控区域中的实际位置;The actual position acquisition module is used to acquire the actual position of each of the above-mentioned designated targets in the above-mentioned preset monitoring area;
上述子区域频次统计模块,具体用于:根据各上述指定目标的实际位置及各上述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次。The sub-region frequency statistics module is specifically configured to determine the frequency of occurrence of the designated behavior in each sub-region of the region to be counted based on the actual location of each designated target and the behavior analysis result of each designated target.
可选的,上述实际位置获取模块,包括:Optionally, the aforementioned actual location acquisition module includes:
图像位置获取子模块,用于根据各上述指定目标的像素区域序列,确定各上述指定目标在上述图像数据中的位置;The image position acquisition sub-module is used to determine the position of each designated target in the image data according to the pixel area sequence of each designated target;
实际位置映射子模块,用于按照各上述指定目标在上述图像数据中的位置,确定各上述指定目标在上述预设监控区域中的实际位置。The actual location mapping sub-module is used to determine the actual location of each specified target in the preset monitoring area according to the location of each specified target in the image data.
可选的,上述子区域频次统计模块702,包括:Optionally, the aforementioned sub-region frequency statistics module 702 includes:
指定目标分类子模块,用于根据各上述指定目标的行为分析结果,将各上述指定目标进行分类,得到多个行为列表,其中,同一行为列表中各指定目标的行为类型相同;The designated target classification sub-module is used to classify the designated targets according to the behavior analysis results of the designated targets to obtain multiple behavior lists, wherein the behavior types of the designated targets in the same behavior list are the same;
目标列表确定子模块,用于确定指定行为对应的目标行为列表;The target list determination sub-module is used to determine the target behavior list corresponding to the specified behavior;
频次确定子模块,用于根据上述目标行为列表中各指定目标的实际位置,确定待统计区域的各子区域中上述指定行为发生的频次。The frequency determination sub-module is used to determine the frequency of occurrence of the above-mentioned designated behavior in each sub-region of the area to be counted according to the actual position of each designated target in the above-mentioned target behavior list.
可选的,上述行为热力图生成装置还包括:Optionally, the above-mentioned behavioral heat map generating device further includes:
设定指令获取模块,用于获取用户输入的粒度设定指令,其中,上述粒度设定指令表征子区域的大小属性;A setting instruction acquisition module, configured to acquire a granularity setting instruction input by a user, wherein the granularity setting instruction represents the size attribute of the sub-region;
子区域设定模块,用于按照上述粒度设定指令,确定待统计区域中各子区域。The sub-region setting module is used to determine each sub-region in the area to be counted according to the above-mentioned granularity setting instruction.
可选的,上述子区域包括上述预设监控区域,上述子区域频次统计模块702,包括:Optionally, the aforementioned sub-area includes the aforementioned preset monitoring area, and the aforementioned sub-area frequency statistics module 702 includes:
包含关系确定子模块,用于获取各上述子区域与各上述预设监控区域的包含关系;An inclusion relationship determination sub-module for acquiring the inclusion relationship between each of the aforementioned sub-areas and each of the aforementioned preset monitoring areas;
行为频次统计子模块,用于按照上述包含关系、各上述指定目标的行为分析结果及各上述指定目标所在的预设监控区域,确定待统计区域的各上述子区域中指定行为发生的频次。The behavior frequency statistics sub-module is used to determine the frequency of occurrence of the specified behavior in each of the above sub-regions of the area to be counted according to the above inclusion relationship, the behavior analysis result of each of the above specified targets, and the preset monitoring area where each of the specified targets is located.
可选的,上述指定行为多个指定行为,上述行为热力图生成模块703,包括:Optionally, the above-mentioned designated behaviors are multiple designated behaviors, and the above-mentioned behavior heat map generating module 703 includes:
多频次统计子模块,用于获取上述待统计区域的电子地图,获取各上述子区域中各指定行为发生的频次;The multi-frequency statistics sub-module is used to obtain the electronic map of the above-mentioned area to be counted, and obtain the frequency of occurrence of each designated behavior in each of the above-mentioned sub-regions;
热力颜色对应子模块,用于确定各上述指定行为对应的热力颜色;The thermal color corresponding sub-module is used to determine the thermal color corresponding to each of the above specified behaviors;
地图着色子模块,用于针对上述电子地图中的任一子区域,按照该子区域中各上述指定行为发生的频次,在该子区域的地图中显示该子区域中各指定行为对应的热力颜色,其中,任一热力颜色的深浅程度与该热力颜色对应的指定行为发生的频次正相关。The map coloring sub-module is used for any sub-area in the above electronic map, according to the frequency of occurrence of each specified behavior in the sub-area, and display the thermal color corresponding to each specified behavior in the sub-area on the map of the sub-area , Where the intensity of any thermal color is positively related to the frequency of occurrence of the specified behavior corresponding to the thermal color.
可选的,上述行为热力图生成装置还包括:Optionally, the above-mentioned behavioral heat map generating device further includes:
联动策略模块,用于在上述行为热力图的指定监测区域的热力颜色满足预设联动规则时,执行满足预设联动规则的热力颜色对应的指定行为的联动策略。The linkage strategy module is used to execute the linkage strategy of the specified behavior corresponding to the thermal color meeting the preset linkage rule when the thermal color of the specified monitoring area of the behavior heat map meets the preset linkage rule.
可选的,上述各指定目标的行为分析结果为触发各指定行为的指定目标名单;上述分析结果获取模块,包括:Optionally, the behavior analysis result of each designated target mentioned above is a list of designated targets that trigger each designated behavior; the above analysis result obtaining module includes:
行为列表接收子模块,用于接收各智能设备发送的行为列表,其中,上述行为列表中包括指定目标的标识,且同一行为列表中各指定目标的行为类型相同;The behavior list receiving sub-module is used to receive the behavior list sent by each smart device, wherein the above behavior list includes the identification of the designated target, and the behavior types of the designated targets in the same behavior list are the same;
行为列表组装子模块,用于组装各上述行为列表,分别得到触发各指定行为的指定目标名单。The behavior list assembly sub-module is used to assemble each of the above-mentioned behavior lists to obtain the designated target lists that trigger each designated behavior.
本申请实施例还提供了一种行为列表发送装置,参见图8,应用于前端智能设备,该装置包括:An embodiment of the present application also provides an apparatus for sending a behavior list. See FIG. 8, which is applied to a front-end smart device. The apparatus includes:
图像数据获取模块801,用于获取预设监控区域的图像数据;The image data acquisition module 801 is used to acquire image data of a preset monitoring area;
目标行为分析模块802,用于通过计算机视觉技术,对上述图像数据进行分析,得到上述图像数据中各指定目标的行为分析结果;The target behavior analysis module 802 is used to analyze the above-mentioned image data through computer vision technology to obtain the behavior analysis result of each specified target in the above-mentioned image data;
指定目标分类模块803,用于按照各上述指定目标的行为分析结果,将各上述指定目标进行分类,得到多个行为列表,其中,同一上述行为列表中各指定目标的行为类型相同;The designated target classification module 803 is configured to classify the designated targets according to the behavior analysis results of the designated targets to obtain multiple behavior lists, wherein the behavior types of the designated targets in the same behavior list are the same;
行为列表发送模块804,用于发送各上述行为列表。The behavior list sending module 804 is configured to send each of the above-mentioned behavior lists.
可选的,各指定目标的行为分析结果为各采样指定目标的行为分析结果,上述目标行为分析模块802,包括:Optionally, the behavior analysis result of each designated target is the behavior analysis result of each sampled designated target. The aforementioned target behavior analysis module 802 includes:
目标位置确定子模块,用于通过预设目标检测算法及预设目标跟踪算法,确定上述图像数据中的各指定目标及各上述指定目标的位置;The target position determination sub-module is used to determine each designated target in the image data and the position of each designated target through a preset target detection algorithm and a preset target tracking algorithm;
指定目标采样子模块,用于通过预设目标采样算法,对上述图像数据中的各指定目标进行采样,得到各采样指定目标;The designated target sampling sub-module is used to sample each designated target in the above-mentioned image data by using a preset target sampling algorithm to obtain each sampling designated target;
像素区域截取子模块,用于按照各上述采样指定目标的位置,对上述图像数据进行目标行为序列抽取,得到各上述采样指定目标的像素区域序列;The pixel region interception sub-module is used to extract the target behavior sequence of the image data according to the position of the designated target of each of the above samples to obtain the pixel region sequence of each designated target of the sample;
目标行为分析子模块,用于对各上述采样指定目标的像素区域序列进行分析,得到各上述采样指定目标的行为分析结果。The target behavior analysis sub-module is used to analyze the pixel area sequence of each of the above-mentioned sampling designated targets to obtain the behavior analysis results of each of the above-mentioned sampling designated targets.
本申请实施例还提供了一种电子设备,包括:处理器及存储器;The embodiment of the present application also provides an electronic device, including: a processor and a memory;
上述存储器,用于存放计算机程序;The aforementioned memory is used to store computer programs;
上述处理器用于执行上述存储器存放的计算机程序时,实现上述任一行为热力图生成方法。When the above-mentioned processor is used to execute the computer program stored in the above-mentioned memory, it realizes any one of the above-mentioned behavioral heat map generating methods.
可选的,参见图9,本申请实施例的电子设备还包括通信接口902和通信总线904,其中,处理器901,通信接口902,存储器903通过通信总线904完成相互间的通信。具体的,该电子设备可以为服务器或硬盘录像机等。Optionally, referring to FIG. 9, the electronic device of the embodiment of the present application further includes a communication interface 902 and a communication bus 904. The processor 901, the communication interface 902, and the memory 903 communicate with each other through the communication bus 904. Specifically, the electronic device may be a server or a hard disk video recorder.
本申请实施例还提供了一种电子设备,包括:处理器及存储器;The embodiment of the present application also provides an electronic device, including: a processor and a memory;
上述存储器,用于存放计算机程序;The aforementioned memory is used to store computer programs;
上述处理器用于执行上述存储器存放的计算机程序时,实现上述任一行为列表发送方法。具体的,该电子设备可以为智能摄像机或硬盘录像机等。When the above-mentioned processor is used to execute the computer program stored in the above-mentioned memory, it realizes any one of the above-mentioned behavior list sending methods. Specifically, the electronic device can be a smart camera or a hard disk video recorder.
本申请实施例还提供了一种电子设备,包括:处理器及存储器;The embodiment of the present application also provides an electronic device, including: a processor and a memory;
上述存储器,用于存放计算机程序;The aforementioned memory is used to store computer programs;
上述处理器用于执行上述存储器存放的计算机程序时,实现上述任一报 警方法。The processor is used to execute any of the above alarm methods when executing the computer program stored in the memory.
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the aforementioned electronic device and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage. Optionally, the memory may also be at least one storage device located far away from the foregoing processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processing, DSP), a dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
本申请实施例还提供了一种计算机可读存储介质,上述计算机可读存储介质内存储有计算机程序,上述计算机程序被处理器执行时实现上述任一行为热力图生成方法。An embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any one of the above-mentioned behavioral heat map generation methods is implemented.
本申请实施例还提供了一种计算机可读存储介质,上述计算机可读存储介质内存储有计算机程序,上述计算机程序被处理器执行时实现上述任一行为列表发送方法。An embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any one of the foregoing behavior list sending methods is implemented.
本申请实施例还提供了一种计算机可读存储介质,上述计算机可读存储介质内存储有计算机程序,上述计算机程序被处理器执行时实现上述任一报警方法。An embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the foregoing alarm methods is implemented.
需要说明的是,在本文中,各个可选方案中的技术特征只要不矛盾均可组合来形成方案,这些方案均在本申请公开的范围内。诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物 品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this article, the technical features in each optional solution can be combined to form a solution as long as there is no contradiction, and these solutions are all within the scope of the disclosure of this application. Relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship between these entities or operations or order. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device that includes a series of elements includes not only those elements, but also includes Other elements of, or also include elements inherent to this process, method, article or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other same elements in the process, method, article, or equipment including the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备及存储介质的实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a related manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the apparatus, electronic equipment, and storage medium, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiments.
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above are only the preferred embodiments of this application and are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in this application Within the scope of protection.

Claims (31)

  1. 一种报警方法,其特征在于,所述方法包括:An alarm method, characterized in that the method includes:
    展示待统计区域的行为热力图,其中,所述行为热力图表征指定行为在所述待统计区域的各子区域中发生的频次;Displaying the behavior heat map of the area to be counted, wherein the behavior heat map represents the frequency of occurrence of a specified behavior in each sub-region of the area to be counted;
    在所述行为热力图的子区域满足预设报警条件时,触发针对满足预设报警条件的子区域的报警。When the sub-area of the behavior heat map meets the preset alarm condition, an alarm for the sub-area meeting the preset alarm condition is triggered.
  2. 根据权利要求1所述的方法,其特征在于,所述在所述行为热力图中的子区域满足预设报警条件时,触发针对满足预设报警条件的子区域的报警,包括:The method according to claim 1, wherein the triggering an alarm for the sub-area meeting the preset alarm condition when the sub-area in the behavioral heat map meets the preset alarm condition comprises:
    分别比较所述行为热力图各子区域中指定行为发生的频次与预设频次阈值的大小;Respectively comparing the frequency of occurrence of the specified behavior in each sub-region of the behavior heat map with the magnitude of the preset frequency threshold;
    针对指定行为发生的频次大于所述预设频次阈值的目标子区域,触发针对所述目标子区域的报警。For the target sub-region where the frequency of occurrence of the specified behavior is greater than the preset frequency threshold, trigger an alarm for the target sub-region.
  3. 根据权利要求1所述的方法,其特征在于,所述行为热力图的子区域中包括热力颜色,所述热力颜色表征所述子区域中指定行为发生的频次,且所述子区域中指定行为发生的频次越高,所述子区域的热力颜色的热力值越高;The method according to claim 1, wherein the sub-regions of the behavior heat map include thermal colors, the thermal colors representing the frequency of occurrence of a specified behavior in the sub-region, and the specified behavior in the sub-region The higher the frequency of occurrence, the higher the thermal value of the thermal color of the sub-region;
    所述在所述行为热力图的子区域满足预设报警条件时,触发针对满足预设报警条件的子区域的报警,包括:The triggering an alarm for the sub-area meeting the preset alarm condition when the sub-area of the behavior heat map meets the preset alarm condition includes:
    分别比较各所述子区域的热力颜色的热力值与预设热力预值的大小;Respectively comparing the thermal value of the thermal color of each of the sub-regions with the preset thermal pre-value;
    针对热力值大于所述预设热力阈值的待报警子区域,触发针对所述待报警子区域的报警。For the sub-area to be alarmed with a heating value greater than the preset heating threshold, an alarm for the sub-area to be alarmed is triggered.
  4. 根据权利要求1所述的方法,其特征在于,所述行为热力图的子区域中包括热力颜色,所述指定行为多个指定行为,不同的指定行为对应不同的热力颜色,所述热力颜色的深浅程度与所述热力颜色对应的指定行为发生的频次正相关,各所述热力颜色分别对应相应的报警联动;The method according to claim 1, wherein the sub-regions of the behavior heat map include thermal colors, the designated behaviors are multiple designated behaviors, and different designated behaviors correspond to different thermal colors. The depth is positively correlated with the frequency of occurrence of the specified behavior corresponding to the thermal color, and each thermal color corresponds to a corresponding alarm linkage;
    所述在所述行为热力图的子区域满足预设报警条件时,触发针对满足预设报警条件的子区域的报警,包括:The triggering an alarm for the sub-area meeting the preset alarm condition when the sub-area of the behavior heat map meets the preset alarm condition includes:
    针对各所述子区域中的各热力颜色,比较该热力颜色的深浅程度与该热力颜色对应的预设程度预值的大小;For each thermal color in each of the sub-regions, comparing the depth of the thermal color with the size of the preset degree preset value corresponding to the thermal color;
    针对深浅程度大于预设程度预值的目标热力颜色,触发针对所述目标热力颜色所在的子区域、且与所述目标热力颜色对应的报警联动。For the target thermal color whose depth is greater than the preset degree preset value, trigger an alarm linkage for the sub-region where the target thermal color is located and corresponding to the target thermal color.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    获取用户针对待展示的子区域的展示指令;Obtain the user's display instructions for the sub-areas to be displayed;
    按照所述展示指令,展示所述待展示的子区域中的图像数据,其中,所述待展示的子区域中的图像数据为所述待展示的子区域中的监控区域的视频流。According to the display instruction, display the image data in the sub-region to be displayed, wherein the image data in the sub-region to be displayed is a video stream of the monitoring area in the sub-region to be displayed.
  6. 一种行为热力图生成方法,其特征在于,应用于后端设备,所述方法包括:A method for generating a behavioral heat map, characterized in that it is applied to a back-end device, and the method includes:
    获取各预设监控区域的图像数据中各指定目标的行为分析结果,其中,所述预设监控区域为待统计区域中的区域;Acquiring the behavior analysis result of each designated target in the image data of each preset monitoring area, where the preset monitoring area is an area in the area to be counted;
    根据各所述指定目标的行为分析结果,确定所述待统计区域的各子区域中指定行为发生的频次,其中,所述子区域与所述预设监控区域存在交集;Determine the frequency of occurrence of the specified behavior in each sub-region of the area to be counted according to the behavior analysis result of each designated target, wherein the sub-region and the preset monitoring area have an intersection;
    按照各所述子区域中指定行为发生的频次,生成所述待统计区域的指定行为的行为热力图。According to the frequency of occurrence of the designated behavior in each of the sub-regions, a behavior heat map of the designated behavior in the region to be counted is generated.
  7. 根据权利要求6所述的方法,其特征在于,所述获取各预设监控区域的图像数据中各指定目标的行为分析结果,包括:The method according to claim 6, wherein the obtaining the behavior analysis result of each designated target in the image data of each preset monitoring area comprises:
    获取各预设监控区域的图像数据;Obtain image data of each preset monitoring area;
    通过预设目标检测算法及预设目标跟踪算法,确定各所述图像数据中的各指定目标及各所述指定目标的位置;Determine each designated target in each of the image data and the position of each designated target through a preset target detection algorithm and a preset target tracking algorithm;
    通过预设目标采样算法,对各所述图像数据中的各指定目标进行采样,得到各采样指定目标;Sampling each designated target in each of the image data by a preset target sampling algorithm to obtain each sampling designated target;
    按照各所述采样指定目标的位置,对各所述图像数据进行目标行为序列抽取,得到各所述采样指定目标的像素区域序列;Performing target behavior sequence extraction on each of the image data according to the position of each of the sampling designated targets to obtain the pixel area sequence of each of the sampling designated targets;
    对各所述指定目标的像素区域序列进行分析,得到各所述指定目标的行为分析结果。The pixel area sequence of each designated target is analyzed, and the behavior analysis result of each designated target is obtained.
  8. 根据权利要求6所述的方法,其特征在于,一个所述子区域至少包括一个所述预设监控区域,所述根据各所述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次,包括:The method according to claim 6, wherein one of the sub-regions includes at least one of the preset monitoring regions, and the determination is made in each sub-region of the region to be counted according to the behavior analysis result of each of the designated targets The frequency of the specified behavior, including:
    获取各所述子区域与各所述预设监控区域的包含关系;Acquiring the inclusion relationship between each of the sub-regions and each of the preset monitoring regions;
    按照所述包含关系、各所述指定目标的行为分析结果及各所述指定目标所在的预设监控区域,确定待统计区域的各所述子区域中指定行为发生的频次。According to the inclusion relationship, the behavior analysis result of each designated target, and the preset monitoring area where each designated target is located, the frequency of occurrence of the designated behavior in each of the sub-regions of the area to be counted is determined.
  9. 根据权利要求6所述的方法,其特征在于,在所述获取各预设监控区域的图像数据中各指定目标的行为分析结果之后,所述方法还包括:The method according to claim 6, characterized in that, after the obtaining the behavior analysis result of each designated target in the image data of each preset monitoring area, the method further comprises:
    获取各所述指定目标在所述预设监控区域中的实际位置;Acquiring the actual position of each designated target in the preset monitoring area;
    所述根据各所述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次,包括:The determining the frequency of occurrence of the designated behavior in each sub-region of the area to be counted according to the behavior analysis result of each designated target includes:
    根据各所述指定目标的实际位置及各所述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次。According to the actual location of each designated target and the behavior analysis result of each designated target, the frequency of occurrence of the designated behavior in each sub-region of the area to be counted is determined.
  10. 根据权利要求9所述的方法,其特征在于,所述根据各所述指定目标的实际位置及各所述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次,包括:The method according to claim 9, wherein the determining the frequency of occurrence of the specified behavior in each sub-region of the area to be counted is based on the actual location of each of the specified targets and the behavior analysis result of each of the specified targets, include:
    根据各所述指定目标的行为分析结果,将各所述指定目标进行分类,得到多个行为列表,其中,同一行为列表中各指定目标的行为类型相同;According to the behavior analysis result of each designated target, classify each designated target to obtain multiple behavior lists, wherein the behavior types of the designated targets in the same behavior list are the same;
    确定指定行为对应的目标行为列表;Determine the target behavior list corresponding to the specified behavior;
    根据所述目标行为列表中各指定目标的实际位置,确定待统计区域的各子区域中所述指定行为发生的频次。According to the actual position of each designated target in the target behavior list, the frequency of occurrence of the designated behavior in each sub-region of the area to be counted is determined.
  11. 根据权利要求6所述的方法,其特征在于,在所述根据各所述指定目标的行为分析结果,确定待统计区域的各子区域中指定行为发生的频次之前, 所述方法还包括:The method according to claim 6, characterized in that, before determining the frequency of occurrence of the designated behavior in each sub-region of the area to be counted according to the behavior analysis result of each designated target, the method further comprises:
    获取用户输入的粒度设定指令,其中,所述粒度设定指令表征子区域的大小属性;Acquiring a granularity setting instruction input by a user, wherein the granularity setting instruction represents the size attribute of the sub-region;
    按照所述粒度设定指令,确定待统计区域中各子区域。According to the granularity setting instruction, each sub-area in the area to be counted is determined.
  12. 根据权利要求6所述的方法,其特征在于,所述指定行为多个指定行为,所述按照各所述子区域中指定行为发生的频次,生成所述待统计区域的指定行为的行为热力图,包括:The method according to claim 6, wherein the designated behavior is a plurality of designated behaviors, and the behavior heat map of the designated behavior in the region to be counted is generated according to the frequency of occurrence of the designated behavior in each of the sub-regions ,include:
    获取所述待统计区域的电子地图,获取各所述子区域中各指定行为发生的频次;Acquiring an electronic map of the area to be counted, and acquiring the frequency of occurrence of each designated behavior in each of the sub-regions;
    确定各所述指定行为对应的热力颜色;Determine the thermal color corresponding to each specified behavior;
    针对所述电子地图中的任一子区域,按照该子区域中各所述指定行为发生的频次,在该子区域的地图中显示该子区域中各指定行为对应的热力颜色,其中,任一热力颜色的深浅程度与该热力颜色对应的指定行为发生的频次正相关。For any subregion in the electronic map, according to the frequency of occurrence of each designated behavior in the subregion, the thermal color corresponding to each designated behavior in the subregion is displayed on the map of the subregion, where any The intensity of the thermal color is positively related to the frequency of occurrence of the specified behavior corresponding to the thermal color.
  13. 根据权利要求6所述的方法,其特征在于,所述各指定目标的行为分析结果为触发各指定行为的指定目标名单;所述获取各预设监控区域的图像数据中各指定目标的行为分析结果,包括:The method according to claim 6, wherein the behavior analysis result of each designated target is a list of designated targets that trigger each designated behavior; and the behavior analysis of each designated target in the image data of each preset monitoring area is obtained The results include:
    接收各前端智能设备发送的各行为列表,其中,所述行为列表中包括指定目标的标识,且同一所述行为列表中各指定目标的行为类型相同;Receiving each behavior list sent by each front-end smart device, where the behavior list includes the identification of the designated target, and the behavior types of the designated targets in the same behavior list are the same;
    组装各所述行为列表,分别得到触发各指定行为的指定目标名单。Assemble each of the behavior lists, and obtain the designated target lists that trigger each designated behavior.
  14. 一种行为列表发送方法,其特征在于,应用于前端智能设备,所述方法包括:A method for sending a behavior list, characterized in that it is applied to a front-end smart device, and the method includes:
    获取预设监控区域的图像数据;Obtain image data of the preset monitoring area;
    通过计算机视觉技术,对所述图像数据进行分析,得到所述图像数据中各指定目标的行为分析结果;Analyze the image data by computer vision technology to obtain the behavior analysis result of each designated target in the image data;
    按照各所述指定目标的行为分析结果,将各所述指定目标进行分类,得 到多个行为列表,其中,同一所述行为列表中各指定目标的行为类型相同;According to the behavior analysis result of each designated target, each designated target is classified to obtain multiple behavior lists, wherein the behavior type of each designated target in the same behavior list is the same;
    发送各所述行为列表。Send a list of each of the described actions.
  15. 根据权利要求14所述的方法,其特征在于,各指定目标的行为分析结果为各采样指定目标的行为分析结果,所述通过计算机视觉技术,对所述图像数据进行分析,得到所述图像数据中各指定目标的行为分析结果,包括:The method according to claim 14, wherein the behavior analysis result of each designated target is the behavior analysis result of each sampled designated target, and the image data is analyzed by computer vision technology to obtain the image data The behavioral analysis results of each designated target in the following:
    通过预设目标检测算法及预设目标跟踪算法,确定所述图像数据中的各指定目标及各所述指定目标的位置;Determine each designated target and the position of each designated target in the image data by using a preset target detection algorithm and a preset target tracking algorithm;
    通过预设目标采样算法,对所述图像数据中的各指定目标进行采样,得到各采样指定目标;Sampling each designated target in the image data by using a preset target sampling algorithm to obtain each sampling designated target;
    按照各所述采样指定目标的位置,对所述图像数据进行目标行为序列抽取,得到各所述采样指定目标的像素区域序列;Performing target behavior sequence extraction on the image data according to the positions of the designated targets of each sample to obtain a sequence of pixel regions of the designated targets of each sample;
    对各所述采样指定目标的像素区域序列进行分析,得到各所述采样指定目标的行为分析结果。Analyze the pixel area sequence of each of the sampled designated targets to obtain the behavior analysis result of each of the sampled designated targets.
  16. 一种报警装置,其特征在于,所述装置包括:An alarm device, characterized in that the device comprises:
    热力图展示模块,用于展示待统计区域的行为热力图,其中,所述行为热力图表征指定行为在所述待统计区域的各子区域中发生的频次;The heat map display module is used to display the behavior heat map of the area to be counted, wherein the behavior heat map represents the frequency of occurrence of a specified behavior in each sub-region of the area to be counted;
    报警触发模块,用于在所述行为热力图的子区域满足预设报警条件时,触发针对满足预设报警条件的子区域的报警。The alarm triggering module is used to trigger an alarm for the sub-area meeting the preset alarm condition when the sub-area of the behavior heat map meets the preset alarm condition.
  17. 根据权利要求16所述的装置,其特征在于,所述报警触发模块,包括:The device according to claim 16, wherein the alarm triggering module comprises:
    频次比较子模块,用于分别比较所述行为热力图各子区域中指定行为发生的频次与预设频次阈值的大小;A frequency comparison sub-module for comparing the frequency of occurrence of a specified behavior in each sub-region of the behavior heat map with a preset frequency threshold;
    子区域报警子模块,用于针对指定行为发生的频次大于所述预设频次阈值的目标子区域,触发针对所述目标子区域的报警。The sub-area alarm sub-module is used for triggering an alarm for the target sub-area for the target sub-area whose frequency of occurrence of the specified behavior is greater than the preset frequency threshold.
  18. 根据权利要求16所述的装置,其特征在于,所述行为热力图的子区域中包括热力颜色,所述热力颜色表征所述子区域中指定行为发生的频次,且所述子区域中指定行为发生的频次越高,所述子区域的热力颜色的热力值越 高;The device according to claim 16, wherein the sub-regions of the behavior heat map include thermal colors, and the thermal colors represent the frequency of occurrence of a specified behavior in the sub-region, and the specified behavior in the sub-region The higher the frequency of occurrence, the higher the thermal value of the thermal color of the sub-region;
    所述报警触发模块,包括:The alarm trigger module includes:
    热力值比较子模块,用于分别比较各所述子区域的热力颜色的热力值与预设热力预值的大小;The thermal value comparison sub-module is used to compare the thermal value of the thermal color of each of the sub-regions with the preset thermal value;
    触发报警子模块,用于针对热力值大于所述预设热力阈值的待报警子区域,触发针对所述待报警子区域的报警。The triggering alarm sub-module is used for triggering an alarm for the sub-area to be alarmed whose heating value is greater than the preset heating threshold.
  19. 一种行为热力图生成装置,其特征在于,应用于后端设备,所述装置包括:A behavioral heat map generating device, characterized in that it is applied to a back-end device, and the device includes:
    分析结果获取模块,用于获取各预设监控区域的图像数据中各指定目标的行为分析结果,其中,所述预设监控区域为待统计区域中的区域;The analysis result obtaining module is used to obtain the behavior analysis result of each designated target in the image data of each preset monitoring area, wherein the preset monitoring area is the area in the area to be counted;
    子区域频次统计模块,用于根据各所述指定目标的行为分析结果,确定所述待统计区域的各子区域中指定行为发生的频次,其中,所述子区域与所述预设监控区域存在交集;The sub-region frequency statistics module is used to determine the frequency of occurrence of the designated behavior in each sub-region of the region to be counted according to the behavior analysis result of each designated target, wherein the sub-region and the preset monitoring region exist Intersection
    行为热力图生成模块,用于按照各所述子区域中指定行为发生的频次,生成所述待统计区域的指定行为的行为热力图。The behavior heat map generating module is configured to generate a behavior heat map of the designated behavior of the region to be counted according to the frequency of occurrence of the designated behavior in each of the sub-regions.
  20. 根据权利要求19所述的装置,其特征在于,一个所述子区域至少包括一个所述预设监控区域,所述子区域频次统计模块,包括:The apparatus according to claim 19, wherein one of the sub-regions includes at least one of the preset monitoring regions, and the sub-region frequency statistics module includes:
    包含关系确定子模块,用于获取各所述子区域与各所述预设监控区域的包含关系;An inclusion relationship determination sub-module for obtaining the inclusion relationship between each of the sub-regions and each of the preset monitoring regions;
    行为频次统计子模块,用于按照所述包含关系、各所述指定目标的行为分析结果及各所述指定目标所在的预设监控区域,确定待统计区域的各所述子区域中指定行为发生的频次。The behavior frequency statistics sub-module is used to determine the occurrence of a designated behavior in each of the sub-regions of the area to be counted according to the inclusion relationship, the behavior analysis result of each of the designated targets, and the preset monitoring area where each designated target is The frequency.
  21. 根据权利要求19所述的装置,其特征在于,所述子区域频次统计模块,包括:The apparatus according to claim 19, wherein the sub-region frequency statistics module comprises:
    指定目标分类子模块,用于根据各所述指定目标的行为分析结果,将各所述指定目标进行分类,得到多个行为列表,其中,同一行为列表中各指定 目标的行为类型相同;The designated target classification sub-module is used to classify each designated target according to the behavior analysis result of each designated target to obtain multiple behavior lists, wherein the behavior types of the designated targets in the same behavior list are the same;
    目标列表确定子模块,用于确定指定行为对应的目标行为列表;The target list determination sub-module is used to determine the target behavior list corresponding to the specified behavior;
    频次确定子模块,用于根据所述目标行为列表中各指定目标的实际位置,确定待统计区域的各子区域中所述指定行为发生的频次。The frequency determination sub-module is used to determine the frequency of occurrence of the specified behavior in each sub-region of the area to be counted according to the actual position of each designated target in the target behavior list.
  22. 根据权利要求19所述的装置,其特征在于,所述装置还包括:The device according to claim 19, wherein the device further comprises:
    设定指令获取模块,用于获取用户输入的粒度设定指令,其中,所述粒度设定指令表征子区域的大小属性;A setting instruction acquisition module, configured to acquire a granularity setting instruction input by a user, wherein the granularity setting instruction represents the size attribute of the sub-region;
    子区域设定模块,用于按照所述粒度设定指令,确定待统计区域中各子区域。The sub-region setting module is used to determine each sub-region in the area to be counted according to the granularity setting instruction.
  23. 根据权利要求19所述的装置,其特征在于,所述指定行为多个指定行为,所述行为热力图生成模块,包括:The device according to claim 19, wherein the designated behavior is a plurality of designated behaviors, and the behavior heat map generating module comprises:
    多频次统计子模块,用于获取所述待统计区域的电子地图,获取各所述子区域中各指定行为发生的频次;The multi-frequency statistics sub-module is used to obtain an electronic map of the area to be counted, and obtain the frequency of occurrence of each designated behavior in each sub-area;
    热力颜色对应子模块,用于确定各所述指定行为对应的热力颜色;The thermal color corresponding sub-module is used to determine the thermal color corresponding to each specified behavior;
    地图着色子模块,用于针对所述电子地图中的任一子区域,按照该子区域中各所述指定行为发生的频次,在该子区域的地图中显示该子区域中各指定行为对应的热力颜色,其中,任一热力颜色的深浅程度与该热力颜色对应的指定行为发生的频次正相关。The map coloring sub-module is used for any sub-area in the electronic map, according to the frequency of occurrence of each specified behavior in the sub-area, display the corresponding to each specified behavior in the sub-area on the map of the sub-area Thermal color, where the intensity of any thermal color is positively related to the frequency of occurrence of the specified behavior corresponding to the thermal color.
  24. 根据权利要求19所述的装置,其特征在于,所述各指定目标的行为分析结果为触发各指定行为的指定目标名单;所述分析结果获取模块,包括:The device according to claim 19, wherein the behavior analysis result of each designated target is a list of designated targets that trigger each designated behavior; and the analysis result obtaining module comprises:
    行为列表接收子模块,用于接收各智能设备发送的行为列表,其中,所述行为列表中包括指定目标的标识,且同一行为列表中各指定目标的行为类型相同;The behavior list receiving sub-module is configured to receive the behavior list sent by each smart device, wherein the behavior list includes the identification of the designated target, and the behavior types of the designated targets in the same behavior list are the same;
    行为列表组装子模块,用于组装各所述行为列表,分别得到触发各指定行为的指定目标名单。The behavior list assembling sub-module is used to assemble each of the behavior lists to obtain the designated target lists that trigger each designated behavior.
  25. 一种行为列表发送装置,其特征在于,应用于前端智能设备,所述装 置包括:A behavior list sending device, which is characterized in that it is applied to a front-end smart device, and the device includes:
    图像数据获取模块,用于获取预设监控区域的图像数据;The image data acquisition module is used to acquire the image data of the preset monitoring area;
    目标行为分析模块,用于通过计算机视觉技术,对所述图像数据进行分析,得到所述图像数据中各指定目标的行为分析结果;The target behavior analysis module is used to analyze the image data through computer vision technology to obtain the behavior analysis result of each designated target in the image data;
    指定目标分类模块,用于按照各所述指定目标的行为分析结果,将各所述指定目标进行分类,得到多个行为列表,其中,同一所述行为列表中各指定目标的行为类型相同;The designated target classification module is configured to classify each designated target according to the behavior analysis result of each designated target to obtain multiple behavior lists, wherein the behavior types of the designated targets in the same behavior list are the same;
    行为列表发送模块,用于发送各所述行为列表。The behavior list sending module is used to send each of the behavior lists.
  26. 一种电子设备,其特征在于,包括处理器及存储器;An electronic device, characterized in that it includes a processor and a memory;
    所述存储器,用于存放计算机程序;The memory is used to store computer programs;
    所述处理器,用于执行所述存储器上所存放的程序时,实现权利要求1-5任一所述的报警方法。The processor is configured to implement the alarm method according to any one of claims 1-5 when executing the program stored in the memory.
  27. 一种电子设备,其特征在于,包括处理器及存储器;An electronic device, characterized in that it includes a processor and a memory;
    所述存储器,用于存放计算机程序;The memory is used to store computer programs;
    所述处理器,用于执行所述存储器上所存放的程序时,实现权利要求6-13任一所述的行为热力图生成方法。The processor is configured to implement the method for generating a behavioral heat map according to any one of claims 6-13 when executing the program stored in the memory.
  28. 一种电子设备,其特征在于,包括处理器及存储器;An electronic device, characterized in that it includes a processor and a memory;
    所述存储器,用于存放计算机程序;The memory is used to store computer programs;
    所述处理器,用于执行所述存储器上所存放的程序时,实现权利要求14-15任一所述的行为列表发送方法。The processor is configured to implement the method for sending a behavior list according to any one of claims 14-15 when executing the program stored in the memory.
  29. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求6-13任一所述的行为热力图生成方法。A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for generating a behavioral heat map according to any one of claims 6-13 is realized .
  30. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求14-15任一 所述的行为列表发送方法。A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for sending a behavior list according to any one of claims 14-15 is realized.
  31. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-5任一所述的报警方法。A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the alarm method according to any one of claims 1-5 is realized.
PCT/CN2020/085423 2019-04-28 2020-04-17 Behavior thermodynamic diagram generation and alarm method and apparatus, electronic device and storage medium WO2020221031A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910351634.4A CN111862521B (en) 2019-04-28 2019-04-28 Behavior thermodynamic diagram generation and alarm method and device, electronic equipment and storage medium
CN201910351634.4 2019-04-28

Publications (1)

Publication Number Publication Date
WO2020221031A1 true WO2020221031A1 (en) 2020-11-05

Family

ID=72965214

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/085423 WO2020221031A1 (en) 2019-04-28 2020-04-17 Behavior thermodynamic diagram generation and alarm method and apparatus, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN111862521B (en)
WO (1) WO2020221031A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112560715A (en) * 2020-12-21 2021-03-26 北京市商汤科技开发有限公司 Operation record display method and device, electronic equipment and storage medium
CN112749461A (en) * 2020-12-25 2021-05-04 深圳供电局有限公司 Load data monitoring method, power system, computer device, and storage medium
CN112906594A (en) * 2021-03-03 2021-06-04 杭州海康威视数字技术股份有限公司 Defense deployment area generation method, device, equipment and storage medium
CN113010829A (en) * 2021-03-31 2021-06-22 建信金融科技有限责任公司 Data partition visualization method and device, computer equipment and storage medium
CN114474091A (en) * 2022-01-26 2022-05-13 北京声智科技有限公司 Robot killing method, robot, device and storage medium
CN114579889A (en) * 2022-04-26 2022-06-03 阿里巴巴(中国)有限公司 Recommendation method, device, equipment and storage medium for order thermodynamic diagrams
CN115099620A (en) * 2022-06-23 2022-09-23 中国建筑第五工程局有限公司 Intelligent building construction information collecting and analyzing system based on BIM

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112488913A (en) * 2020-11-27 2021-03-12 杭州海康威视数字技术股份有限公司 Data processing method and device and electronic equipment
CN113592320B (en) * 2021-06-16 2023-10-03 成都世纪光合作用科技有限公司 Dining intention recognition method and device and electronic equipment
CN115083112B (en) * 2022-08-22 2022-11-22 枫树谷(成都)科技有限责任公司 Intelligent early warning emergency management system and deployment method thereof
CN115648630B (en) * 2022-10-25 2024-05-31 上海复志信息科技股份有限公司 Processing method and device of release film printing area and photocuring 3D printing equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447458A (en) * 2015-11-17 2016-03-30 深圳市商汤科技有限公司 Large scale crowd video analysis system and method thereof
CN106251578A (en) * 2016-08-19 2016-12-21 深圳奇迹智慧网络有限公司 Artificial abortion's early warning analysis method and system based on probe
US20170193792A1 (en) * 2015-12-31 2017-07-06 International Business Machines Corporation Visitor Flow Management
CN108846389A (en) * 2018-08-13 2018-11-20 树蛙信息科技(南京)有限公司 A kind of passenger flow analysis system and its method

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150080863A (en) * 2014-01-02 2015-07-10 삼성테크윈 주식회사 Apparatus and method for providing heatmap
RU2611959C2 (en) * 2015-02-27 2017-03-01 Общество С Ограниченной Ответственностью "Яндекс" Method (versions) and system (versions) for creating a heatmap
CN106485868B (en) * 2015-08-27 2019-07-16 杭州海康威视数字技术股份有限公司 Monitoring method, the monitoring server of system and fire behavior of fire behavior
US10140832B2 (en) * 2016-01-26 2018-11-27 Flir Systems, Inc. Systems and methods for behavioral based alarms
KR20180130621A (en) * 2017-05-29 2018-12-10 전자부품연구원 Apparatus and Method for Analyzing Overt Behavioral Response in Service Space
CN107292271B (en) * 2017-06-23 2020-02-14 北京易真学思教育科技有限公司 Learning monitoring method and device and electronic equipment
CN108038116A (en) * 2017-10-24 2018-05-15 安徽四创电子股份有限公司 A kind of density of stream of people monitoring method based on GIS
CN108229407A (en) * 2018-01-11 2018-06-29 武汉米人科技有限公司 A kind of behavioral value method and system in video analysis
CN108419045B (en) * 2018-02-11 2020-08-04 浙江大华技术股份有限公司 Monitoring method and device based on infrared thermal imaging technology
CN108399591A (en) * 2018-02-12 2018-08-14 北京天时前程自动化工程技术有限公司 Heat supply network data visualization monitoring method and system of the thermal substation for thermal region
CN108428326A (en) * 2018-03-14 2018-08-21 海南师范大学 A kind of eco-tour assessment management precaution information system
CN108764047A (en) * 2018-04-27 2018-11-06 深圳市商汤科技有限公司 Group's emotion-directed behavior analysis method and device, electronic equipment, medium, product
CN109034355B (en) * 2018-07-02 2022-08-02 百度在线网络技术(北京)有限公司 Method, device and equipment for predicting number of people in dense crowd and storage medium
CN109508657B (en) * 2018-10-29 2022-04-26 重庆中科云从科技有限公司 Crowd gathering analysis method, system, computer readable storage medium and device
CN109635769B (en) * 2018-12-20 2023-06-23 天津天地伟业信息系统集成有限公司 Behavior identification statistical method for dome camera

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447458A (en) * 2015-11-17 2016-03-30 深圳市商汤科技有限公司 Large scale crowd video analysis system and method thereof
US20170193792A1 (en) * 2015-12-31 2017-07-06 International Business Machines Corporation Visitor Flow Management
CN106251578A (en) * 2016-08-19 2016-12-21 深圳奇迹智慧网络有限公司 Artificial abortion's early warning analysis method and system based on probe
CN108846389A (en) * 2018-08-13 2018-11-20 树蛙信息科技(南京)有限公司 A kind of passenger flow analysis system and its method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112560715A (en) * 2020-12-21 2021-03-26 北京市商汤科技开发有限公司 Operation record display method and device, electronic equipment and storage medium
CN112749461A (en) * 2020-12-25 2021-05-04 深圳供电局有限公司 Load data monitoring method, power system, computer device, and storage medium
CN112906594A (en) * 2021-03-03 2021-06-04 杭州海康威视数字技术股份有限公司 Defense deployment area generation method, device, equipment and storage medium
CN112906594B (en) * 2021-03-03 2022-06-03 杭州海康威视数字技术股份有限公司 Defense deployment area generation method, device, equipment and storage medium
CN113010829A (en) * 2021-03-31 2021-06-22 建信金融科技有限责任公司 Data partition visualization method and device, computer equipment and storage medium
CN113010829B (en) * 2021-03-31 2023-01-20 中国建设银行股份有限公司 Data partition visualization method and device, computer equipment and storage medium
CN114474091A (en) * 2022-01-26 2022-05-13 北京声智科技有限公司 Robot killing method, robot, device and storage medium
CN114474091B (en) * 2022-01-26 2024-02-27 北京声智科技有限公司 Robot killing method, killing robot, killing device and storage medium
CN114579889A (en) * 2022-04-26 2022-06-03 阿里巴巴(中国)有限公司 Recommendation method, device, equipment and storage medium for order thermodynamic diagrams
CN115099620A (en) * 2022-06-23 2022-09-23 中国建筑第五工程局有限公司 Intelligent building construction information collecting and analyzing system based on BIM
CN115099620B (en) * 2022-06-23 2023-12-05 中国建筑第五工程局有限公司 BIM-based intelligent building construction information collection and analysis system

Also Published As

Publication number Publication date
CN111862521B (en) 2022-07-05
CN111862521A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
WO2020221031A1 (en) Behavior thermodynamic diagram generation and alarm method and apparatus, electronic device and storage medium
US20240037953A1 (en) Methods and systems for determining object activity within a region of interest
US9792434B1 (en) Systems and methods for security data analysis and display
US11393212B2 (en) System for tracking and visualizing objects and a method therefor
US9760792B2 (en) Object detection and classification
AU2014214545B2 (en) A surveillance system
CN110428522A (en) A kind of intelligent safety and defence system of wisdom new city
US20180189532A1 (en) Object Detection for Video Camera Self-Calibration
US9407879B2 (en) Systems and methods for automated cloud-based analytics and 3-dimensional (3D) playback for surveillance systems
Wang et al. Tweeting cameras for event detection
US20140355823A1 (en) Video search apparatus and method
JP2012518846A (en) System and method for predicting abnormal behavior
CN105554440A (en) Monitoring methods and devices
US20180150683A1 (en) Systems, methods, and devices for information sharing and matching
US11727317B2 (en) Systems and methods for coherent monitoring
US11887374B2 (en) Systems and methods for 2D detections and tracking
US11410371B1 (en) Conversion of object-related traffic sensor information at roadways and intersections for virtual dynamic digital representation of objects
Donratanapat et al. A national scale big data analytics pipeline to assess the potential impacts of flooding on critical infrastructures and communities
EP3940666A1 (en) Digital reconstruction method, apparatus, and system for traffic road
Shu et al. Small moving vehicle detection via local enhancement fusion for satellite video
CN110505438B (en) Queuing data acquisition method and camera
CN113869427A (en) Scene analysis method and device, electronic equipment and storage medium
US20180278573A1 (en) Pubic safety camera identification system and method
US10506201B2 (en) Public safety camera identification and monitoring system and method
Yao et al. Integrating AI into CCTV Systems: A Comprehensive Evaluation of Smart Video Surveillance in Community Space

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20798242

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20798242

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19.05.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20798242

Country of ref document: EP

Kind code of ref document: A1