CN112633184A - Alarm method and device, electronic equipment and storage medium - Google Patents

Alarm method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112633184A
CN112633184A CN202011565326.0A CN202011565326A CN112633184A CN 112633184 A CN112633184 A CN 112633184A CN 202011565326 A CN202011565326 A CN 202011565326A CN 112633184 A CN112633184 A CN 112633184A
Authority
CN
China
Prior art keywords
event
alarm
persistent
persistent event
video frames
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202011565326.0A
Other languages
Chinese (zh)
Inventor
张鹤楠
付豪
季聪
莫玉力
王苎圻
李祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Sensetime Technology Co Ltd
Original Assignee
Chengdu Sensetime Technology Co Ltd
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 Chengdu Sensetime Technology Co Ltd filed Critical Chengdu Sensetime Technology Co Ltd
Priority to CN202011565326.0A priority Critical patent/CN112633184A/en
Publication of CN112633184A publication Critical patent/CN112633184A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • 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
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/07Target detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Evolutionary Computation (AREA)
  • Biophysics (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Alarm Systems (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The present disclosure relates to an alarm method and apparatus, an electronic device, and a storage medium, wherein the method includes: performing target detection on a plurality of continuous video frames to determine whether a persistent event exists in the plurality of video frames, wherein the persistent event is an event corresponding to the continuous detection of the same detection object in a continuous preset video frame; if the persistent event exists in the plurality of video frames, judging whether the persistent event is an alarmed persistent event; and if the persistent event is an alarmed persistent event, generating first indication information of the persistent event, wherein the first indication information is used for indicating that the alarm information of the persistent event displayed in real time is updated to the alarm information obtained by the plurality of video frames. The embodiment of the disclosure can realize the alarm of the abnormal event which continuously occurs, and improve the alarm efficiency.

Description

Alarm method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of security technologies, and in particular, to an alarm method and apparatus, an electronic device, and a storage medium.
Background
Alarms are a basic function of security systems and are typically performed along with event detection. The alerts generated by the abnormal events identified in the video are event alerts. The event detection can judge whether an event occurs or not by methods such as track analysis, human body action recognition and the like, and then pushes or displays alarm information in real time under the condition that the event occurs.
With the intensive research on the technical fields of intelligent video analysis, event detection and the like, the scale of the security system is gradually enlarged, and numerous alarm information is processed in real time and effectively, so that the security inspection work is facilitated. However, the current alarm mechanism is actually an alarm based on an occurred event, and is also a historical alarm, so that the alarm efficiency is low.
Disclosure of Invention
The present disclosure provides an alarm technical scheme.
According to an aspect of the present disclosure, there is provided an alarm method, including:
performing target detection on a plurality of continuous video frames to determine whether a persistent event exists in the plurality of video frames, wherein the persistent event is an event corresponding to the continuous detection of the same detection object in a continuous preset video frame;
if the persistent event exists in the plurality of video frames, judging whether the persistent event is an alarmed persistent event;
and if the persistent event is an alarmed persistent event, generating first indication information of the persistent event, wherein the first indication information is used for indicating that the alarm information of the persistent event displayed in real time is updated to the alarm information obtained by the plurality of video frames.
In one or more possible implementations, the method further includes: and generating second indication information of the persistent event when the persistent event is a first alarm, wherein the second indication information is used for indicating that alarm information obtained by the plurality of video frames is displayed.
In one or more possible implementations, the performing target detection on a plurality of consecutive video frames to confirm whether there is a persistent event in the plurality of video frames includes: judging whether a detection object detected in the video frames is in a preset alarm area or not according to target detection results of a plurality of continuous video frames; under the condition that the detection object is in the preset alarm area, judging whether the size of the detection object is in a preset alarm size range; under the condition that the size of the detection object is within a preset alarm size range, judging whether the stay time of the detection object reaches the preset time; and confirming that the continuous event exists in the plurality of video frames under the condition that the stay time of the detection object reaches the preset time.
In one or more possible implementation manners, the determining whether the staying time of the detection object reaches the preset time includes: acquiring historical movement positions of the detection object within the preset time length according to target detection results of the plurality of video frames; determining the deviation of the historical movement position of the detection object from the current position; and under the condition that the duration of the stay state with the deviation less than or equal to the preset offset reaches the preset duration, determining that the stay duration of the detection object reaches the preset duration.
In one or more possible implementations, the determining whether the persistent event is an alerted persistent event includes: judging whether the persistent event is included in at least one current alarm event, wherein the current alarm event is an event which is displayed with alarm information currently; in the case that the at least one current alarm event comprises the persistent event, determining that the persistent event is an alarmed persistent event; or, in the case that the at least one current alarm event does not include the persistent event, determining that the persistent event is a first-time-alarmed persistent event.
In one or more possible implementations, the method further includes: and generating third indication information under the condition that the alarmed persistent event is not detected within a preset alarm display duration, wherein the third indication information is used for indicating that the alarm information of the persistent event is canceled to be displayed.
In one or more possible implementations, in a case that the alarmed persistent event is not detected within the alarm display duration, the method further includes: generating and saving an alarm record of the persistent event based on the alarm information of the persistent event, wherein the alarm record comprises at least one of the following information: the video frame of the persistent event is detected for the first time, the video frame of the persistent event is detected for the last time, and the alarm time period of the persistent event.
In one or more possible implementations, the alert information includes at least one of: the method comprises the following steps of snapping thumbnail images, snapping large images, alarming events, snapping cameras, snapping time and alarming prompt marks.
According to an aspect of the present disclosure, there is provided an alarm device including:
the device comprises a confirming module, a processing module and a processing module, wherein the confirming module is used for carrying out target detection on a plurality of continuous video frames so as to confirm whether a continuous event exists in the plurality of video frames, and the continuous event is an event corresponding to the same detection object which is continuously detected in a continuous preset video frame;
a judging module, configured to judge whether the persistent event is an alarmed persistent event when the persistent event exists in the plurality of video frames;
the generation module is used for generating first indication information of the persistent event when the persistent event is an alarmed persistent event, wherein the first indication information is used for indicating that the alarm information of the persistent event displayed in real time is updated to the alarm information obtained by the plurality of video frames.
In one or more possible implementation manners, the generating module is further configured to generate second indication information of the persistent event when the persistent event is a first alarm, where the second indication information is used to indicate that alarm information obtained from the plurality of video frames is displayed.
In one or more possible implementation manners, the determining module is configured to determine whether a detection object detected in a plurality of video frames is in a preset warning area according to a target detection result of a plurality of consecutive video frames; under the condition that the detection object is in the preset alarm area, judging whether the size of the detection object is in a preset alarm size range; under the condition that the size of the detection object is within a preset alarm size range, judging whether the stay time of the detection object reaches the preset time; and confirming that the continuous event exists in the plurality of video frames under the condition that the stay time of the detection object reaches the preset time.
In one or more possible implementation manners, the confirmation module is configured to obtain a historical movement position of the detected object within the preset time according to a target detection result of the plurality of video frames; determining the deviation of the historical movement position of the detection object from the current position; and under the condition that the duration of the stay state with the deviation less than or equal to the preset offset reaches the preset duration, determining that the stay duration of the detection object reaches the preset duration.
In one or more possible implementation manners, the determining module is configured to determine whether at least one current alarm event includes the persistent event, where the current alarm event is an event currently showing alarm information; in the case that the at least one current alarm event comprises the persistent event, determining that the persistent event is an alarmed persistent event; or, in the case that the at least one current alarm event does not include the persistent event, determining that the persistent event is a first-time-alarmed persistent event.
In one or more possible implementation manners, the generating module is further configured to generate third indication information under the condition that the alarmed persistent event is not detected within a preset alarm display duration, where the third indication information is used to indicate that the alarm information of the persistent event is cancelled to be displayed.
In one or more possible implementation manners, the generating module is further configured to generate and save an alarm record of the alarmed persistent event based on alarm information of the persistent event when the alarmed persistent event is not detected within the alarm display duration, where the alarm record includes at least one of the following information: the video frame of the persistent event is detected for the first time, the video frame of the persistent event is detected for the last time, and the alarm time period of the persistent event.
In one or more possible implementations, the alert information includes at least one of: the method comprises the following steps of snapping thumbnail images, snapping large images, alarming events, snapping cameras, snapping time and alarming prompt marks.
According to an aspect of the present disclosure, there is provided an electronic device including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the memory-stored instructions to perform the above-described method.
According to an aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described method.
In the embodiment of the present disclosure, target detection may be performed on a plurality of consecutive video frames to determine whether a persistent event exists in the plurality of video frames, and in a case that the persistent event exists in the plurality of video frames, it is further determined whether the persistent event is an alarmed persistent event. And in the case that the persistent event is an alarmed persistent event, generating first indication information of the persistent event, wherein the first indication information is used for indicating that the alarm information of the persistent event which is shown in real time is updated to alarm information obtained by a plurality of video frames. Therefore, the alarm can be given for the abnormal events which continuously occur, the alarm information of the abnormal events which continuously occur can be updated in real time, and the alarm efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a flow chart of an alerting method according to an embodiment of the present disclosure.
Fig. 2 shows a flowchart of an example of an alerting method according to an embodiment of the present disclosure.
FIG. 3 shows a block diagram of an alerting device according to an embodiment of the present disclosure.
FIG. 4 shows a block diagram of an example of an electronic device in accordance with an embodiment of the present disclosure.
Fig. 5 shows a block diagram of an example of an electronic device in accordance with an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
The alarm scheme provided by the embodiment of the disclosure can be applied to indoor and outdoor security inspection and equipment operation and maintenance scenes such as scenic spots, markets, exhibition halls, stations, airports and the like. For example, the continuous events such as article detention and crowd detention of the subway station can be detected through videos, and real-time warning is carried out aiming at the continuous events such as article detention and crowd detention, so that the related dynamics of the continuous events can be provided for workers in real time, and the working efficiency of the workers is improved.
The warning method provided by the embodiment of the present disclosure may be executed by a terminal device, a server, or other types of electronic devices, where the terminal device may be a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, or the like. In some possible implementations, the data processing method may be implemented by a processor calling computer readable instructions stored in a memory. Alternatively, the method may be performed by a server. The following describes an alarm method according to an embodiment of the present disclosure by taking an electronic device as an execution subject.
Fig. 1 shows a flowchart of an alerting method according to an embodiment of the present disclosure, and as shown in fig. 1, the alerting method includes:
in step S11, target detection is performed on a plurality of consecutive video frames to determine whether there is a persistent event in the plurality of video frames.
In the embodiment of the disclosure, the electronic device may acquire a plurality of consecutive video frames and perform object detection on the plurality of consecutive video frames. The plurality of video frames may be a most recently captured continuous video frame, for example, the electronic device may acquire the plurality of video frames periodically or aperiodically. In some implementations, the electronic device can obtain video transmitted by other devices and extract the latest consecutive video frames from the video. For example, the electronic device may acquire a video transmitted by one or more image capturing devices in a wired manner or a wireless manner, and extract a plurality of consecutive video frames from the acquired video. In some implementations, the electronic device may have a shooting function, and may shoot a current scene in real time to obtain a plurality of continuously acquired video frames.
In some examples, the electronic device may acquire a video stream transmitted by the image capturing device, and may then decode the video stream and perform a frame selection operation on the decoded video stream to obtain a plurality of video frames. In the case of performing a frame selection operation on the video stream, a video frame with an image quality greater than a quality threshold may be selected as the plurality of video frames, so that the plurality of video frames may have a higher image quality for subsequent detection of a persistent event. Here, whether the extracted video frame meets the image quality requirement can be determined by parameters such as the brightness and the definition of the video frame and the shooting angle of the detection object in the video frame.
In some implementations, a plurality of consecutive video frames may be acquired at time intervals based on a detected event. The time interval may be set according to actual service requirements, and may be periodic or aperiodic, for example, the duration of some persistent events is long, a plurality of consecutive video frames may be acquired at a time interval of 5 minutes, the duration of some persistent events is short, and a plurality of consecutive video frames may be acquired at a time interval of 30 seconds. Therefore, the service requirements of different continuous events can be met, and the efficiency of security inspection work is improved.
Here, when performing target detection on a plurality of consecutive video frames, target detection may be performed on the plurality of video frames by using some target detection methods such as a target detection algorithm and a neural network, so as to obtain target detection results of the plurality of video frames. The target detection result may include category information, position information, and size information of one or more detection objects. The detection object may include a moving object and/or a stationary object, such that persistent abnormal event alerts of the moving object and/or the stationary object may be implemented.
Further, after obtaining the target detection results of the plurality of video frames, it may be determined whether there is a persistent event in the plurality of video frames according to the target detection results of the plurality of video frames. The persistent event is an event corresponding to the continuous detection of the same detection object in the continuous preset video frame. The same detection object may be understood as the same type of detection object or the same detection object. The consecutive preset video frames may be a consecutive preset number of video frames or may be consecutive video frames within a preset time period. The plurality of video frames may include consecutive preset video frames, and for example, in a case where the same detection object is detected in consecutive preset video frames acquired within the last 1 minute, it may be considered that a persistent event exists in the plurality of video frames. In some implementations, in the case that the same detection object is detected in a plurality of video frames, whether a persistent event exists in the plurality of video frames may be further confirmed according to the category information and/or the position information of the detection object in the target detection result, for example, in the case that the detection object is a pedestrian and is located in a preset retention area, a persistent event of a human retention event may be confirmed in the plurality of video frames.
Step S12, when there is a persistent event in the plurality of video frames, determining whether the persistent event is a warned persistent event.
In the embodiment of the present disclosure, when it is determined that a persistent event exists in a plurality of video frames, it is further determined whether the persistent event is an alarmed persistent event, for example, alarm information of the persistent event may be searched in alarm information displayed in real time, and if the alarm information corresponding to the persistent event is found, it may be determined that an alarm has occurred to the persistent event. If the alarm information corresponding to the persistent event is not found, the persistent event can be considered not to be the alarmed persistent event.
Here, the alarm information may be information for reminding a user of an abnormal object or an abnormal event, and the alarm information displayed in real time may be alarm information of a detected abnormal event currently displayed. The exception events may include persistent events and non-persistent events. The electronic device may perform target detection on the acquired one or more video frames, determine whether an abnormal object or an abnormal event exists in the one or more video frames, and in a case that the abnormal object or the abnormal event is detected, may generate alarm information to send an alarm to a user, where the abnormal object or the abnormal event detected through one video frame may be a non-persistent event, and the abnormal object or the abnormal event detected through a plurality of video frames may be a persistent event.
In some implementations, in the event that it is determined whether the persistent event is an alerted persistent event, it may be determined whether the persistent event is included in at least one current alert event, and in the event that the at least one current alert event includes the persistent event, it may be determined that the persistent event is an alerted persistent event. Alternatively, in a case that the at least one current alarm event does not include the persistent event, that is, the persistent event is not included in the at least one current alarm event, it may be determined that the persistent event is a persistent event of a first alarm.
Here, the current alarm event is an event currently presented with alarm information. When determining whether the persistent event is included in the at least one current alarm event, the persistent event may be respectively compared with the at least one current alarm event, for example, an event name or an identifier of the persistent event may be compared with an event name or an identifier of the at least one current alarm event, and when the persistent event matches any one of the at least one current alarm event, it may be determined that the persistent event is an alarmed persistent event. Otherwise, the persistent event can be judged to be the persistent event of the first alarm. By determining whether the at least one current alarm event includes the persistent event, whether the persistent event corresponding to the plurality of video frames is an alarmed persistent event can be quickly determined.
In some implementations, the alert information can include at least one of: snap thumbnail images, snap large images, alarm events, snap cameras, snap time, alarm box markers. The snapshot thumbnail image can be a thumbnail of a video frame, and a user can observe a thumbnail of the video frame in which an abnormal object or an abnormal event is detected through the thumbnail, so that the size of the interface occupied by the video frame is reduced. The snap-shot big image can be an image obtained by amplifying a video frame or an image obtained by capturing a screen of a detection object in the video frame, and the snap-shot big image can provide shot detailed details for a user, such as details of a face, wearing and the like of the detection object. The snapshot cameras can be sources for generating video frames, different snapshot cameras can be distinguished through camera names, and in some implementation modes, the places where the cameras are located can be determined according to the camera names, so that users can know the places where the abnormal situations happen in time. The snapshot time may be a capture time of the video frame so that the user can know when the abnormality occurs. The alarm box flag may be a flag of an alarm event, for example, the alarm event may be framed by an alarm box so that a user can visually observe the occurrence of the alarm event. The alarm event is the above abnormal event.
Step S13, in a case that the persistent event is an alarmed persistent event, generating first indication information of the persistent event, where the first indication information is used to indicate that the alarm information of the persistent event shown in real time is updated to the alarm information obtained from the plurality of video frames.
In the embodiment of the disclosure, in the case that the persistent event is determined to be an alarmed persistent event, the first indication information of the persistent event may be generated according to a plurality of video frames, and the first prompt information may include alarm information of the persistent event. For example, the capturing time and capturing camera of a plurality of video frames can be acquired; generating a snapshot thumbnail and/or a snapshot large image of the same detection object in a plurality of video frames; and determining the event name and the alarm box mark of the continuous event according to the target detection results of the plurality of video frames. Thus, the alarm information of the continuous event can be obtained. The alarm information may be carried in the first indication information. The first indication information is used for indicating that the alarm information of the persistent event which is currently displayed is updated to alarm information obtained by a plurality of video frames. In some implementations, if the electronic device has a display interface, the electronic device may update the alarm information of the persistent event in the display interface after generating the first indication information, that is, update the alarm information of the persistent event to the alarm information obtained from a plurality of video frames, so that a user may obtain the latest alarm information of the persistent event in time. In some implementations, if the electronic device is used as a backend device, the electronic device may send first indication information to a front-end device, so that the front-end device may obtain alarm information obtained from a plurality of video frames in the first indication information, and update the alarm information of the persistent event to the alarm information obtained from the plurality of video frames on a display interface, where the alarm information may be continuously updated according to a detection frequency of the persistent event, and the detection frequency may be determined according to a time interval obtained by the plurality of video frames. The persistent event does not serve as a new alarm event to add new alarm information, so that the interference of a large amount of repeated alarm information can be effectively reduced.
The alarm scheme provided by the disclosure can be used for detecting persistent events. One persistence event the detection object may be a plurality of objects of the same type during the persistence, for example, the person (the same type) detecting the retention may be a plurality of objects during the persistence event such as the retention of a person or the retention of an article, or the article (the same type) detecting the retention may be a plurality of objects. That is, it can be understood that the alarm scheme provided in the embodiment of the present disclosure may be for persistent events occurring in a class of detection objects, and in a case that an alarmed persistent event is detected, the alarm information of the alarmed persistent event may be updated, so that a situation of repeated alarms in the same event is greatly reduced, and user experience is improved. Of course, the alarm scheme provided by the embodiment of the present disclosure may also alarm for persistent events of the same detection object.
In some implementations, the alarm events can also include global alarm events and regional alarm events. The global alarm event may be understood as an alarm event that is not limited by an alarm area, for example, a personnel fall event, an item fall event, and the like may be the global alarm event. The zone alarm event may be an alarm event occurring within a designated alarm zone, for example, a personnel retention event, a personnel intrusion event, a belt pack omission event, an item retention event, etc. may be a zone alarm event. The zone alarm event such as the belt pack missing detection event and the article retention event can be used for alarming for static objects in the alarm zone. An area alarm event, which may be a personnel detention event, a personnel intrusion event, etc., may be an alarm for a moving or detented pedestrian within an alarm area.
In some implementations, in the case that the persistent event is determined to be a first alarm, second indication information of the persistent event may be generated, where the second indication information is used to indicate that alarm information obtained from a plurality of video frames is displayed.
In this implementation manner, when it is determined that the persistent event is the first alarm event, the alarm information of the persistent event may be determined and the second indication information may be generated according to the plurality of video frames. For example, the capturing time and capturing camera of a plurality of video frames can be acquired; determining a plurality of snapshot thumbnails and/or snapshot large images of video frames; and determining the event name and the alarm box mark of the continuous event according to the target detection results of the plurality of video frames. This may result in alarm information for the persistent event. The alarm information may be carried in the second indication information. The second indication information may be used to indicate that the alert information derived from the plurality of video frames is to be presented. In some implementations, if the electronic device has a display interface, the electronic device may display the alarm information of the persistent event on the display interface after generating the second indication information, so that the user may obtain the latest alarm information of the persistent event in time. In some implementations, if the electronic device is used as a backend device, the electronic device may send second indication information to the front-end device, so that the front-end device may obtain, in the second indication information, alarm information obtained from a plurality of video frames and display, on the display interface, the alarm information obtained from the plurality of video frames.
In some implementations, the presentation may also be made for non-persistent event alert information. A non-persistent event may be understood as an abnormal event that occurs in a short time, which may disappear after a short time. For example, some abnormal events such as a fall, jube delivery, etc. may be non-persistent events.
The alarm scheme provided by the embodiment of the disclosure can alarm in real time aiming at persistent events, so that a user provides effective reference for event analysis. In some implementations, in a case that an alarmed persistent event is not detected within a preset alarm display duration, third indication information is generated, where the third indication information is used to indicate that the alarm information of the persistent event is canceled to be displayed, so that an alarm display duration can be further set for the alarm of the persistent event, and the alarm information of the persistent event can automatically disappear if the persistent event is not detected within a period of time. Here, the alarm display duration may be set according to the actual application, for example, may be set to 10 minutes, 20 minutes, and the like.
In some implementations, the alert information for the alert event may be presented on a display interface, e.g., the alert information may pop up in the upper right portion of the system interface. The latest preset number of alarm information can be displayed on the display interface, for example, the latest 10 alarm information are displayed. For the alarm information of the non-persistent event, the alarm information may automatically disappear after being displayed for a certain time, for example, automatically disappear after being displayed for thirty seconds. For the alarm information of the persistent event, the alarm information of the persistent event with the display time exceeding the longest display time can be cancelled when the number of the alarm information exceeds the preset number. Accordingly, a maximum presentation time period may also be set for the persistent event, for example, 60 minutes, etc. The display of the alarm information of the persistent event can be cancelled when the display time of the alarm information of the persistent event exceeds the longest display time, and the display of the alarm information of the persistent event can be resumed when the number of the alarm information is less than or equal to the preset number.
In some implementations, the alert information on the display interface may be glanceable information, e.g., only the event name of the alert event may be displayed on the display interface. After receiving the alarm information of a certain alarm event clicked by the user, the detailed information of the alarm event, for example, the detailed information of the occurrence time, the place, and the like of the alarm event, may be provided to the user. After providing the detailed information of the alarm event, the alarm information of the alarm event on the display interface can be cancelled.
In one example, if an alarmed persistent event is not detected within the alarm presentation duration, the persistent event may be considered to have ended, and further, an alarm record of the persistent event may be generated and saved for viewing by the user based on the alarm information of the persistent event. The alarm records comprise one or more of a video frame of a first detected persistent event, a video frame of a last detected persistent event and an alarm time period of the persistent event, and through the alarm records, a user can quickly know the persistent event, so that the user can analyze the persistent event conveniently and provide convenience for the user.
In step S11, object detection may be performed on a plurality of consecutive video frames to determine whether a persistent event exists in the plurality of video frames. In some implementations, the target detection results of the plurality of video frames may include a plurality of same detection objects, and the detection objects may not have a persistent event, and therefore, whether the persistent event exists in the plurality of video frames may be determined according to an alarm condition of a preset persistent time, for example, according to an alarm condition that whether the detection objects are in a preset alarm area, are staying, and whether the number of detection objects of the same type is greater than a preset value. In the case where the detected object in the plurality of video frames satisfies the alarm condition, it may be determined that the persistent event exists in the plurality of video frames. Here, the alarm condition may be set according to the alarm event, and the alarm condition may be different for different alarm events. For example, for a continuous event of people staying in the warning area, it may be determined whether the number of pedestrians (detection objects) in the warning area is greater than a preset value, and if the number of pedestrians in the warning area is greater than the preset value, it may be determined that the density of people in the warning area is greater, and it is determined that a people staying event currently occurs.
For the non-persistent event, whether an alarm event exists in an acquired video frame can be determined by judging whether a target detection result of the video frame meets a preset alarm condition. For example, for a falling event of a person, it may be determined whether the posture of the pedestrian (detection object) satisfies a preset posture, and if the posture of the pedestrian satisfies the preset posture, it may be determined that the falling event of the person is currently occurring, and the detected pedestrian is the detection object.
It should be noted that the alarm condition may be set and updated in time according to the actual application scenario or requirement, so as to quickly cope with a new abnormal event.
In one implementation, the alarm condition of the persistent event may include one or more of the detection object being within the alarm region, the size of the detection object being within a preset alarm size range, and the dwell time of the detection object reaching a preset duration. The following describes, by way of example, the determination of whether a persistence event exists in a plurality of video frames.
In this example, when confirming whether or not there is a persistent event in a plurality of video frames, it may be determined whether or not a detection object detected in the plurality of video frames is within a preset alert area according to a target detection result of consecutive video frames, for example, it may be determined whether or not the detection object is within a preset alert area according to position information of the detection object in the target detection result, so that it may be confirmed whether or not the detection object is within a specified alert area. In the case that the detection object is in the preset alarm region, it may be further determined whether the size of the detection object is within the preset alarm size range, for example, it may be determined whether the size of the detection object is within the preset alarm size range according to the size information of the detection object in the target detection result, so that some unnecessary alarms of the detection object that is too large or too small may be removed by the size. Under the condition that the size of the detection object is within the preset alarm size range, whether the stay time of the detection object reaches the preset time or not can be judged, if the stay time is too short, a large amount of wrong alarm risks can be caused, and if the stay time is too long, the alarm reaction speed can be caused to be slow. And under the condition that the stay time of the detection object reaches the preset time, confirming that the continuous events exist in the plurality of video frames. Here, the preset alarm area may be set according to an actual application scenario, for example, in a security inspection scenario, the preset alarm area may be set in a security inspection area. The preset alarm size range may be set according to the size of the detection object of the actual persistent event, for example, in the case where the detection object is a pedestrian, the alarm size range may be set to the range of the height and width of the human body, and in the case where the detection object is a bag, the alarm size range may be set to the range of the length, width and height of the bag. The preset time duration can also be set according to the actual application scene, for example, in the security inspection scene, the preset time duration can be set to be 30 seconds, 1 minute, and the like, so as to determine whether the detection object stays.
For example, in the case that the persistent event is a package retention event, for each detected detection object in a plurality of video frames, whether each detection object is in a package retention area (alarm area) or not, whether the size of the detection object is within a preset package size range (alarm size range) or not, whether the retention time of the detection object reaches a preset time length or not may be sequentially determined, and if the size of a detection object is within the package size range and the retention time in the package retention area reaches the preset alarm time length, the detection object may be considered to be a package of the package retention event (detection object of the persistent event). Further, the alarm of the package retention event or the alarm information of the package retention event can be updated. Whether the persistent alarm event exists in a plurality of video frames can be confirmed by confirming whether the detection object meets one or more alarm conditions of the alarm event, so that the persistent event can be detected, and real-time alarm of the persistent event is realized.
In this example, whether the staying time of the detection object reaches the preset time is determined, the historical motion position of the detection object within the preset time may be obtained according to the target detection result of the plurality of video frames, and then the deviation between the historical motion position and the current position of the detection object may be determined. If the deviation between the historical motion position and the current position of the detection object is smaller than or equal to the preset offset, the detection object can be considered to be in a stop state. When the duration of the stay state reaches the preset duration, it can be determined that the stay duration of the detection object reaches the preset duration. Here, the plurality of video frames may include a current video frame and a historical video frame. The historical motion position of the detection object may be obtained based on a historical video frame, and the target detection result of the historical video frame may include the historical motion position of the detection object. The current position of the detection object may be obtained based on a target detection result of the current video frame, and the current position of the detection object may be included in the target detection result of the current video frame. After the historical movement position and the current position of the detection object are obtained, the deviation between each historical movement position and the current position can be calculated respectively, the deviation between each historical movement position and the current position is compared with a preset deviation, and whether each deviation is smaller than or equal to the preset deviation or not is judged. And when each deviation is smaller than or equal to the preset offset, the position change of the detection object is not large, and the detection object is in a stop state. If the duration of the stay state reaches the preset duration, the detection object can be considered to stay within the preset duration.
The present example can quickly determine whether a detection object stays for a certain period of time by comparing the historical movement position and the current position of the detection object, and thus can provide a basis for confirming whether a persistent event exists.
An example of the warning method provided by the embodiment of the present disclosure is described below by an example. Fig. 2 shows a flowchart of an example of an alerting method according to an embodiment of the present disclosure, including the following steps:
step S201, acquiring a plurality of continuously acquired video frames;
step S202, carrying out target detection on a plurality of video frames to obtain target detection results of one or a plurality of detection objects;
step S203, judging whether one or more detection objects meet the alarm condition of the persistent event or not according to the target detection result of one or more detection objects;
step S204, determining that a persistent event exists under the condition that one or more detection objects meet the alarm condition of the persistent event; otherwise, multiple video frames may be reacquired;
step S205, judge whether the persistent event is a warned persistent event;
step S206, under the condition that the persistent event is the alarmed persistent event, the alarm information displayed in real time by the persistent event is updated.
Step S207, when the persistent event is not alerted, newly adding the alert information of the persistent event.
The embodiment of the disclosure can alarm for persistent events, realize real-time alarm and reduce the hysteresis of alarm. In addition, the method and the device can only update the alarm information of the persistent event under the condition that the persistent event is alarmed, thereby greatly reducing the situation of repeated alarming of the same event and improving the user experience. Meanwhile, the method and the device can detect and alarm the continuous events in real time aiming at different detection objects of people and objects, can make the alarm more flexible, are suitable for various alarm scenes, and improve the efficiency of security inspection.
It is understood that the above-mentioned method embodiments of the present disclosure can be combined with each other to form a combined embodiment without departing from the logic of the principle, which is limited by the space, and the detailed description of the present disclosure is omitted. Those skilled in the art will appreciate that in the above methods of the specific embodiments, the specific order of execution of the steps should be determined by their function and possibly their inherent logic.
In addition, the present disclosure also provides an alarm device, an electronic device, a computer-readable storage medium, and a program, which can be used to implement any one of the alarm methods provided by the present disclosure, and the corresponding technical solutions and descriptions and corresponding descriptions in the methods section are omitted for brevity.
Fig. 3 shows a block diagram of an alerting device according to an embodiment of the present disclosure, which, as shown in fig. 3, includes:
a confirming module 31, configured to perform target detection on a plurality of consecutive video frames to confirm whether a persistent event exists in the plurality of video frames, where the persistent event is an event corresponding to a same detection object that is detected continuously in a consecutive preset video frame;
a determining module 32, configured to determine whether the persistent event is an alarmed persistent event if the persistent event exists in the plurality of video frames;
a generating module 33, configured to generate first indication information of the persistent event if the persistent event is an alarmed persistent event, where the first indication information is used to indicate that the alarm information of the persistent event shown in real time is updated to the alarm information obtained from the plurality of video frames.
In some implementations, the generating module 33 is further configured to generate second indication information of the persistent event when the persistent event is a first alarm, where the second indication information is used to indicate that alarm information obtained from the plurality of video frames is displayed.
In some implementations, the confirming module 31 is configured to determine whether a detection object detected in a plurality of video frames is in a preset warning area according to a target detection result of a plurality of consecutive video frames; under the condition that the detection object is in the preset alarm area, judging whether the size of the detection object is in a preset alarm size range; under the condition that the size of the detection object is within a preset alarm size range, judging whether the stay time of the detection object reaches the preset time; and confirming that the continuous event exists in the plurality of video frames under the condition that the stay time of the detection object reaches the preset time.
In some implementations, the confirming module 31 is configured to obtain, according to a target detection result of the plurality of video frames, a historical movement position of the detection object within the preset time duration; determining the deviation of the historical movement position of the detection object from the current position; and under the condition that the duration of the stay state with the deviation less than or equal to the preset offset reaches the preset duration, determining that the stay duration of the detection object reaches the preset duration.
In some implementations, the determining module 32 is configured to determine whether the persistent event is included in at least one current alarm event, where the current alarm event is an event currently showing alarm information; in the case that the at least one current alarm event comprises the persistent event, determining that the persistent event is an alarmed persistent event; or, in the case that the at least one current alarm event does not include the persistent event, determining that the persistent event is a first-time-alarmed persistent event.
In some implementations, the generating module 33 is further configured to generate third indication information when the alarmed persistent event is not detected within a preset alarm display duration, where the third indication information is used to indicate that the alarm information of the persistent event is cancelled to be displayed.
In some implementations, the generating module 33 is further configured to generate and store an alarm record of the alarmed persistent event based on the alarm information of the persistent event when the alarmed persistent event is not detected within the alarm display duration, where the alarm record includes at least one of the following information: the video frame of the persistent event is detected for the first time, the video frame of the persistent event is detected for the last time, and the alarm time period of the persistent event.
In some implementations, the alert information includes at least one of: the method comprises the following steps of snapping thumbnail images, snapping large images, alarming events, snapping cameras, snapping time and alarming prompt marks.
In some embodiments, functions of or modules included in the apparatus provided in the embodiments of the present disclosure may be used to execute the method described in the above method embodiments, and specific implementation thereof may refer to the description of the above method embodiments, and for brevity, will not be described again here.
Embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the above-mentioned method. The computer readable storage medium may be a non-volatile computer readable storage medium.
An embodiment of the present disclosure further provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the memory-stored instructions to perform the above-described method.
The disclosed embodiments also provide a computer program product comprising computer readable code, which when run on a device, a processor in the device executes instructions for implementing the alert method provided in any of the above embodiments.
The embodiments of the present disclosure also provide another computer program product for storing computer readable instructions, which when executed cause a computer to perform the operations of the alarm method provided in any of the above embodiments.
The electronic device may be provided as a terminal, server, or other form of device.
Fig. 4 illustrates a block diagram of an electronic device 800 in accordance with an embodiment of the disclosure. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like terminal.
Referring to fig. 4, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a Complementary Metal Oxide Semiconductor (CMOS) or Charge Coupled Device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as a wireless network (WiFi), a second generation mobile communication technology (2G) or a third generation mobile communication technology (3G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium, such as the memory 804, is also provided that includes computer program instructions executable by the processor 820 of the electronic device 800 to perform the above-described methods.
Fig. 5 illustrates a block diagram of an electronic device 1900 in accordance with an embodiment of the disclosure. For example, the electronic device 1900 may be provided as a server. Referring to fig. 5, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system, such as the Microsoft Server operating system (Windows Server), stored in the memory 1932TM) Apple Inc. of the present application based on the graphic user interface operating System (Mac OS X)TM) Multi-user, multi-process computer operating system (Unix)TM) Free and open native code Unix-like operating System (Linux)TM) Open native code Unix-like operating System (FreeBSD)TM) Or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium, such as the memory 1932, is also provided that includes computer program instructions executable by the processing component 1922 of the electronic device 1900 to perform the above-described methods.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. An alert method, comprising:
performing target detection on a plurality of continuous video frames to determine whether a persistent event exists in the plurality of video frames, wherein the persistent event is an event corresponding to the continuous detection of the same detection object in a continuous preset video frame;
if the persistent event exists in the plurality of video frames, judging whether the persistent event is an alarmed persistent event;
and if the persistent event is an alarmed persistent event, generating first indication information of the persistent event, wherein the first indication information is used for indicating that the alarm information of the persistent event displayed in real time is updated to the alarm information obtained by the plurality of video frames.
2. The method of claim 1, further comprising:
and generating second indication information of the persistent event when the persistent event is a first alarm, wherein the second indication information is used for indicating that alarm information obtained by the plurality of video frames is displayed.
3. The method according to claim 1 or 2, wherein the performing target detection on a plurality of consecutive video frames to confirm whether there is a persistent event in the plurality of video frames comprises:
judging whether a detection object detected in the video frames is in a preset alarm area or not according to target detection results of a plurality of continuous video frames;
under the condition that the detection object is in the preset alarm area, judging whether the size of the detection object is in a preset alarm size range;
under the condition that the size of the detection object is within a preset alarm size range, judging whether the stay time of the detection object reaches a preset time;
and confirming that the continuous event exists in the plurality of video frames under the condition that the stay time of the detection object reaches the preset time.
4. The method according to claim 3, wherein the determining whether the stay time of the detection object reaches the preset time comprises:
acquiring historical motion positions of the detection object according to target detection results of the plurality of video frames;
determining the deviation of the historical movement position of the detection object from the current position;
and under the condition that the duration of the stay state with the deviation less than or equal to the preset offset reaches the preset duration, determining that the stay duration of the detection object reaches the preset duration.
5. The method according to any one of claims 1 to 4, wherein the determining whether the persistent event is an alarmed persistent event comprises:
judging whether the persistent event is included in at least one current alarm event, wherein the current alarm event is an event which is displayed with alarm information currently;
in the case that the at least one current alarm event comprises the persistent event, determining that the persistent event is an alarmed persistent event; or, in the case that the at least one current alarm event does not include the persistent event, determining that the persistent event is a first-time-alarmed persistent event.
6. The method according to any one of claims 1 to 5, further comprising:
and generating third indication information under the condition that the alarmed persistent event is not detected within a preset alarm display duration, wherein the third indication information is used for indicating that the alarm information of the persistent event is canceled to be displayed.
7. The method of claim 6, wherein in the event that the alarmed persistent event is not detected within the alarm presentation duration, further comprising:
generating and saving an alarm record of the persistent event based on the alarm information of the persistent event, wherein the alarm record comprises at least one of the following information: the video frame of the persistent event is detected for the first time, the video frame of the persistent event is detected for the last time, and the alarm time period of the persistent event.
8. An alert device, comprising:
the device comprises a confirming module, a processing module and a processing module, wherein the confirming module is used for carrying out target detection on a plurality of continuous video frames so as to confirm whether a continuous event exists in the plurality of video frames, and the continuous event is an event corresponding to the same detection object which is continuously detected in a continuous preset video frame;
a judging module, configured to judge whether the persistent event is an alarmed persistent event when the persistent event exists in the plurality of video frames;
the generation module is used for generating first indication information of the persistent event when the persistent event is an alarmed persistent event, wherein the first indication information is used for indicating that the alarm information of the persistent event displayed in real time is updated to the alarm information obtained by the plurality of video frames.
9. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to invoke the memory-stored instructions to perform the method of any of claims 1 to 7.
10. A computer readable storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1 to 7.
CN202011565326.0A 2020-12-25 2020-12-25 Alarm method and device, electronic equipment and storage medium Pending CN112633184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011565326.0A CN112633184A (en) 2020-12-25 2020-12-25 Alarm method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011565326.0A CN112633184A (en) 2020-12-25 2020-12-25 Alarm method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112633184A true CN112633184A (en) 2021-04-09

Family

ID=75325038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011565326.0A Pending CN112633184A (en) 2020-12-25 2020-12-25 Alarm method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112633184A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179423A (en) * 2021-04-23 2021-07-27 深圳市商汤科技有限公司 Event detection output method and device, electronic equipment and storage medium
CN114040244A (en) * 2021-10-14 2022-02-11 北京激浊扬清文化科技有限公司 Method, system, device and medium for reducing error events in edge vision scene
CN114882681A (en) * 2022-05-18 2022-08-09 成都商汤科技有限公司 Work order processing method and device, electronic equipment and storage medium
CN116527853A (en) * 2023-06-20 2023-08-01 深圳比特微电子科技有限公司 Electronic device, cloud device, client device and operation method of client device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103714325A (en) * 2013-12-30 2014-04-09 中国科学院自动化研究所 Left object and lost object real-time detection method based on embedded system
CN103973653A (en) * 2013-02-01 2014-08-06 上海迪爱斯通信设备有限公司 Intelligent sensing analyzer
CN107357713A (en) * 2017-07-20 2017-11-17 郑州云海信息技术有限公司 A kind of incident management display methods and system
CN108206931A (en) * 2016-12-16 2018-06-26 北京迪科达科技有限公司 A kind of legacy monitoring analysis system
CN208306640U (en) * 2018-05-03 2019-01-01 武汉万集信息技术有限公司 A kind of platform safety pre-warning system
CN109584506A (en) * 2018-12-10 2019-04-05 北方民族大学 Monitoring system and method is fallen down based on cloud platform house old man
CN110728815A (en) * 2019-10-25 2020-01-24 深圳市商汤科技有限公司 Early warning method and device based on video analysis, electronic equipment and storage medium
CN112069937A (en) * 2020-08-21 2020-12-11 深圳市商汤科技有限公司 Event detection method and device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973653A (en) * 2013-02-01 2014-08-06 上海迪爱斯通信设备有限公司 Intelligent sensing analyzer
CN103714325A (en) * 2013-12-30 2014-04-09 中国科学院自动化研究所 Left object and lost object real-time detection method based on embedded system
CN108206931A (en) * 2016-12-16 2018-06-26 北京迪科达科技有限公司 A kind of legacy monitoring analysis system
CN107357713A (en) * 2017-07-20 2017-11-17 郑州云海信息技术有限公司 A kind of incident management display methods and system
CN208306640U (en) * 2018-05-03 2019-01-01 武汉万集信息技术有限公司 A kind of platform safety pre-warning system
CN109584506A (en) * 2018-12-10 2019-04-05 北方民族大学 Monitoring system and method is fallen down based on cloud platform house old man
CN110728815A (en) * 2019-10-25 2020-01-24 深圳市商汤科技有限公司 Early warning method and device based on video analysis, electronic equipment and storage medium
CN112069937A (en) * 2020-08-21 2020-12-11 深圳市商汤科技有限公司 Event detection method and device, electronic equipment and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179423A (en) * 2021-04-23 2021-07-27 深圳市商汤科技有限公司 Event detection output method and device, electronic equipment and storage medium
WO2022222445A1 (en) * 2021-04-23 2022-10-27 深圳市商汤科技有限公司 Event detection output method, event policy determination method and apparatus, electronic device, and computer-readable storage medium
CN114040244A (en) * 2021-10-14 2022-02-11 北京激浊扬清文化科技有限公司 Method, system, device and medium for reducing error events in edge vision scene
CN114040244B (en) * 2021-10-14 2024-01-05 北京激浊扬清文化科技有限公司 Method, system, equipment and medium for reducing error event in edge vision scene
CN114882681A (en) * 2022-05-18 2022-08-09 成都商汤科技有限公司 Work order processing method and device, electronic equipment and storage medium
CN116527853A (en) * 2023-06-20 2023-08-01 深圳比特微电子科技有限公司 Electronic device, cloud device, client device and operation method of client device
CN116527853B (en) * 2023-06-20 2023-10-13 深圳比特微电子科技有限公司 Electronic device, cloud device, client device and operation method of client device

Similar Documents

Publication Publication Date Title
CN112633184A (en) Alarm method and device, electronic equipment and storage medium
CN106231259B (en) Display methods, video player and the server of monitored picture
CN113011290A (en) Event detection method and device, electronic equipment and storage medium
CN111310665A (en) Violation event detection method and device, electronic equipment and storage medium
CN109948494B (en) Image processing method and device, electronic equipment and storage medium
US20170032638A1 (en) Method, apparatus, and storage medium for providing alert of abnormal video information
EP3261019A1 (en) Method and device for obtaining movement track
CN110942036B (en) Person identification method and device, electronic equipment and storage medium
JP2017538978A (en) Alarm method and device
CN111104920B (en) Video processing method and device, electronic equipment and storage medium
EP3264257A1 (en) Image outputting method and apparatus, computer program and recording medium
CN111815675A (en) Target object tracking method and device, electronic equipment and storage medium
CN111222404A (en) Method, device and system for detecting co-pedestrian, electronic equipment and storage medium
CN112818844A (en) Security check abnormal event detection method and device, electronic equipment and storage medium
CN110807393A (en) Early warning method and device based on video analysis, electronic equipment and storage medium
EP3147802A1 (en) Method and apparatus for processing information
CN110728815A (en) Early warning method and device based on video analysis, electronic equipment and storage medium
CN113011291A (en) Event detection method and device, electronic equipment and storage medium
CN109101542B (en) Image recognition result output method and device, electronic device and storage medium
CN114187498A (en) Occlusion detection method and device, electronic equipment and storage medium
CN114550398A (en) Anti-dismantling target equipment
US10810439B2 (en) Video identification method and device
EP3099023A1 (en) Method and device for sending message
CN110543928B (en) Method and device for detecting number of people on trackless rubber-tyred vehicle
CN112464898A (en) Event detection method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination