Disclosure of Invention
The embodiment of the invention aims to provide a video alarm method, a video alarm system and an alarm picture acquisition method so as to reduce the occupation of bandwidth resources of video acquisition equipment. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a video alarm method, which is applied to a video alarm system, where the video alarm system includes a video acquisition device, an alarm server, and a storage device, and the method includes;
the video acquisition equipment acquires videos in real time and stores the videos into the storage equipment; when an alarm event meeting alarm conditions is detected to occur, pushing alarm information of the alarm event to the alarm server, wherein the alarm information comprises a unique identifier of the alarm event;
the storage device stores the video acquired by the video acquisition device in real time;
the alarm server receives the alarm information sent by the video acquisition equipment, extracts a picture corresponding to the unique identifier of the alarm event from the video stored in the storage equipment as an alarm picture of the alarm event according to a preset request instruction and the alarm information, wherein the preset application instruction is generated according to the specified operation of a user.
Optionally, the extracting, according to a preset request instruction and the alarm information, a picture corresponding to the unique identifier of the alarm event from the video stored in the storage device as the alarm picture of the alarm event includes:
the alarm server sends a preset request instruction and the alarm information to the storage device;
the storage equipment acquires a video corresponding to the unique identifier of the alarm event from a stored video according to the preset request instruction and the alarm information, and sends the video corresponding to the unique identifier of the alarm event to the alarm server;
and the alarm server extracts a picture corresponding to the unique identifier of the alarm event from the video corresponding to the unique identifier of the alarm event as the alarm picture of the alarm event according to the unique identifier of the alarm event.
Optionally, the extracting, according to a preset request instruction and the alarm information, a picture corresponding to the unique identifier of the alarm event from the video stored in the storage device as the alarm picture of the alarm event includes:
the alarm server sends a preset request instruction and the alarm information to the storage device;
the storage equipment acquires a video corresponding to the unique identifier of the alarm event from a stored video according to the preset request instruction and the alarm information;
the storage equipment extracts a picture corresponding to the unique identifier of the alarm event from a video corresponding to the unique identifier of the alarm event as an alarm picture of the alarm event according to the unique identifier of the alarm event;
and the storage equipment sends the alarm picture of the alarm event to the alarm server.
Optionally, the alarm information further includes an identifier of the video capture device;
the method for extracting the picture corresponding to the unique identifier of the alarm event from the video stored in the storage device by the alarm server as the alarm picture of the alarm event comprises the following steps:
the alarm server acquires the corresponding video sent by the video acquisition equipment from the videos stored in the storage equipment according to the identification of the video acquisition equipment;
and the alarm server extracts a picture corresponding to the unique identifier of the alarm event from the corresponding video sent by the video acquisition equipment as the alarm picture of the alarm event according to the unique identifier of the alarm event.
Optionally, the extracting, from the video stored in the storage device, a picture corresponding to the unique identifier of the alarm event as the alarm picture of the alarm event includes:
acquiring a picture group covered with the unique identifier of the alarm event from the video stored in the storage device;
and extracting the picture corresponding to the unique identifier of the alarm event from the picture group, and generating a thumbnail as an alarm picture of the alarm event.
Optionally, after the step of receiving, by the alert server, the alert information sent by the video capture device, the method further includes:
and the alarm server sends the alarm information to a preset client so that a user can check the alarm information through the preset client.
In a second aspect, an embodiment of the present invention provides a video alarm system, including: the system comprises video acquisition equipment, an alarm server and storage equipment;
the video acquisition equipment is used for acquiring videos in real time and storing the videos into the storage equipment; when an alarm event meeting alarm conditions is detected to occur, pushing alarm information of the alarm event to the alarm server, wherein the alarm information comprises a unique identifier of the alarm event;
the storage device is used for storing the video acquired by the video acquisition device in real time;
the alarm server is used for receiving the alarm information sent by the video acquisition equipment, extracting a picture corresponding to the unique identifier of the alarm event from the video stored in the storage equipment as an alarm picture of the alarm event according to a preset request instruction and the alarm information, wherein the preset application instruction is generated according to the specified operation of a user.
Optionally, the alert server is specifically configured to:
sending a preset request instruction and the alarm information to the storage device, so that the storage device obtains a video corresponding to the unique identifier of the alarm event from a stored video, and sends the video corresponding to the unique identifier of the alarm event to the alarm server;
and receiving the unique identifier of the alarm event sent by the storage device, and extracting a picture corresponding to the unique identifier of the alarm event from a video corresponding to the unique identifier of the alarm event as an alarm picture of the alarm event according to the unique identifier of the alarm event.
Optionally, the alert server is specifically configured to:
sending a preset request instruction and the alarm information to the storage device, so that the storage device obtains a video corresponding to the unique identifier of the alarm event from a stored video according to the preset request instruction and the alarm information, the storage device extracts a picture corresponding to the unique identifier of the alarm event from the video corresponding to the unique identifier of the alarm event according to the unique identifier of the alarm event as an alarm picture of the alarm event, and the storage device sends the alarm picture of the alarm event to the alarm server;
and receiving the alarm picture of the alarm event sent by the storage equipment.
Optionally, the alarm information further includes an identifier of the video capture device;
the alarm server is specifically configured to: and acquiring the corresponding video sent by the video acquisition equipment from the video stored in the storage equipment according to the identifier of the video acquisition equipment, and extracting a picture corresponding to the unique identifier of the alarm event from the corresponding video sent by the video acquisition equipment as an alarm picture of the alarm event according to the unique identifier of the alarm event.
Optionally, the alert server is specifically configured to:
acquiring a picture group covered with the unique identifier of the alarm event from the video stored in the storage device;
and extracting the picture corresponding to the unique identifier of the alarm event from the picture group, and generating a thumbnail as an alarm picture of the alarm event.
Optionally, the alert server is further configured to:
and sending the alarm information to a preset client so that a user can check the alarm information through the preset client.
In a third aspect, an embodiment of the present invention provides a method for acquiring an alarm picture, which is applied to an alarm server, and the method includes:
receiving alarm information of an alarm event sent by video acquisition equipment, wherein the alarm information comprises a unique identifier of the alarm event, and the video acquisition equipment is used for acquiring a video in real time;
according to a preset request instruction and the alarm information, extracting a picture corresponding to the unique identifier of the alarm event from videos stored in a storage device as an alarm picture of the alarm event, wherein the storage device is used for storing the videos collected by the video collecting device in real time, and the preset request instruction is generated according to the specified operation of a user.
Optionally, the extracting, according to a preset request instruction and the alarm information, a picture corresponding to the unique identifier of the alarm event from the video stored in the storage device as the alarm picture of the alarm event includes:
sending a preset request instruction and the alarm information to the storage device, so that the storage device obtains a video corresponding to the unique identifier of the alarm event from a stored video, and sends the video corresponding to the unique identifier of the alarm event to the alarm server;
and receiving the unique identifier of the alarm event sent by the storage device, and extracting a picture corresponding to the unique identifier of the alarm event from a video corresponding to the unique identifier of the alarm event as an alarm picture of the alarm event according to the unique identifier of the alarm event.
Optionally, the extracting, according to a preset request instruction and the alarm information, a picture corresponding to the unique identifier of the alarm event from a video stored in a storage device as an alarm picture of the alarm event includes:
sending a preset request instruction and the alarm information to a storage device, so that the storage device obtains a video corresponding to the unique identifier of the alarm event from a stored video according to the preset request instruction and the alarm information, and the storage device extracts a picture corresponding to the unique identifier of the alarm event from the video corresponding to the unique identifier of the alarm event as an alarm picture of the alarm event according to the unique identifier of the alarm event and sends the alarm picture of the alarm event to an alarm server;
and receiving the alarm picture of the alarm event sent by the storage equipment.
Optionally, the alarm information further includes an identifier of the video capture device;
the extracting a picture corresponding to the unique identifier of the alarm event from the video stored in the storage device as the alarm picture of the alarm event includes:
acquiring a corresponding video sent by the video acquisition equipment from videos stored in storage equipment according to the identification of the video acquisition equipment;
and according to the unique identifier of the alarm event, extracting a picture corresponding to the unique identifier of the alarm event from the corresponding video sent by the video acquisition equipment as an alarm picture of the alarm event.
Optionally, the extracting, from the video stored in the storage device, a picture corresponding to the unique identifier of the alarm event as the alarm picture of the alarm event includes:
acquiring a picture group covered with the unique identifier of the alarm event from the video stored in the storage device;
and extracting the picture corresponding to the unique identifier of the alarm event from the picture group, and generating a thumbnail as an alarm picture of the alarm event.
Optionally, after the step of receiving the warning information of the warning event sent by the video capture device, the method further includes:
and sending the alarm information to a preset client so that a user can check the alarm information through the preset client.
In the video alarm method, the video alarm system and the alarm picture acquiring method provided by the embodiment of the invention, the video acquisition device acquires a video in real time and stores the video in the storage device, and when the video acquisition device detects that an alarm event meeting alarm conditions occurs, the video acquisition device pushes alarm information of the alarm event comprising the unique identifier of the alarm event to the alarm server to realize alarm. And after receiving the alarm information, the alarm server extracts a picture corresponding to the unique identifier of the alarm event from the video stored in the storage device according to a preset request instruction and the alarm information, and the picture is used as an alarm picture of the alarm event. Therefore, in the scheme, the video acquisition equipment does not need to shoot the alarm picture, correspondingly does not need to store the alarm picture into the storage equipment, and the alarm server acquires the alarm picture of the alarm event according to the unique identifier of the alarm event in the alarm information; therefore, the scheme can reduce the occupation of the bandwidth resources of the video acquisition equipment. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to reduce the occupation of bandwidth resources of video acquisition equipment, embodiments of the present invention provide a video alarm method, a video alarm system, and an acquisition method of an alarm picture, which are described below respectively.
First, a video alarm method provided by an embodiment of the present invention is described in detail, referring to fig. 1, where fig. 1 is a schematic diagram of a video alarm method provided by an embodiment of the present invention, the method is applied to a video alarm system, the video alarm system includes a video acquisition device, an alarm server and a storage device, and the method includes the following steps:
step 010, the video acquisition device acquires a video in real time and stores the video in the storage device; when detecting that an alarm event meeting alarm conditions occurs, pushing alarm information of the alarm event to the alarm server, wherein the alarm information comprises a unique identifier of the alarm event.
The video alarm method of the embodiment of the invention can be realized by electronic equipment, and specifically, the electronic equipment can be a server.
The video acquisition equipment can be a network camera, a monitoring camera, a network equipment machine with various functions comprising the camera, an unmanned aerial vehicle comprising the camera and the like. The storage device may be a memory provided in the alarm server, or may be a cloud storage server in the alarm system. The method comprises the steps that a video acquisition device acquires videos in real time and sends the videos acquired in real time to a storage device, the storage device stores the videos acquired in real time by the video acquisition device, the videos acquired in real time comprise information such as timestamps acquired by the videos, when an alarm event meeting alarm conditions is detected to occur, the video acquisition device pushes alarm information of the alarm event to an alarm server, wherein the alarm information comprises a unique identifier of the alarm event, the unique identifier of the alarm event can be used for identifying pictures when the alarm event occurs, and the pictures can be time, picture numbers, frame sequence numbers and the like. For example, the unique identifier of the alarm event is a current timestamp of a video being acquired when the alarm event meeting the alarm condition is detected, the timestamp is used as the unique identifier of the alarm event, and the timestamp is used for identifying a picture when the alarm event occurs.
The video acquisition equipment detects various alarm events meeting the alarm conditions. For example, when, from the captured video, a face image of the target person is detected, an image of a fire is detected from the captured video, an image in which a motion suddenly appears from the captured video or an image in which a long-time still is detected, or the like. In addition, the video capture device detects alarm events and may also be independent of the captured video. For example, the video capture device may be equipped with various types of sensors that detect the occurrence of an alarm event that meets an alarm condition when the installed sensors detect smoke, abnormal temperature, and/or abnormal vibration.
And 020, storing the video acquired by the video acquisition equipment in real time by the storage equipment.
The video acquisition equipment sends the video acquired in real time to the storage equipment, and the storage equipment stores the video acquired in real time by the video acquisition equipment.
Step 030, the alarm server receives the alarm information sent by the video acquisition device, and extracts a picture corresponding to the unique identifier of the alarm event from the video stored in the storage device as an alarm picture of the alarm event according to a preset request instruction and the alarm information, wherein the preset application instruction is generated according to the specified operation of the user.
After receiving the alarm information sent by the video acquisition device, the alarm server can send the alarm information to a preset client for displaying so that a user can view the alarm information, after the user views the alarm information, the user gives a specified operation, for example, the user views an alarm picture of an alarm event by operating a preset button, a preset request instruction is generated according to the specified operation of the user, the alarm server sets the request instruction and the alarm information, and a picture corresponding to the unique identifier of the alarm event is extracted from a video stored in the storage device to serve as the alarm picture of the alarm event. In an alternative to this implementation, the alert server itself may have a software controlled platform, and the user may be an administrator of the software controlled platform. In the software interface of the software control platform, the alarm information of the alarm event received by the alarm server can be displayed; therefore, when the user of the software control platform selects the option of viewing the alarm picture of the alarm event in the software interface of the software control platform, the alarm server can respond to the request sent by the user, and then extract the picture corresponding to the unique identifier of the alarm event from the video stored in the storage device according to the alarm information to serve as the alarm picture of the alarm event.
Furthermore, according to actual needs, the alarm server may also automatically extract, according to a preset rule, a picture corresponding to the unique identifier of the alarm event from a video stored in the storage device, as an alarm picture of the alarm event, and further push the alarm picture of the alarm event to a preset client, such as a monitoring platform or a mobile phone of a user. For example, the only identifier of the alarm event is an alarm timestamp, and after the alarm information is received, a picture corresponding to the alarm timestamp is extracted from the video stored in the storage device within a specified time range according to a preset rule to serve as an alarm picture of the alarm event. And after the alarm server extracts the alarm picture, the extracted alarm picture can be stored, sent and/or displayed.
The alarm server may further include other information, for example, the device model of the video capture device that pushes the alarm information, the installation location of the video capture device that pushes the alarm information, the specific type of the alarm event, and the like, and the user may flexibly use the information according to the actual requirements, for example, the installation location of the video capture device that pushes the alarm information is used to locate the place where the alarm event occurs, and other services are deployed according to the located place where the alarm event occurs, which is not described herein again specifically.
The embodiment of the invention provides a video alarm method, wherein a video acquisition device acquires a video in real time and stores the video in a storage device, and when the video acquisition device detects that an alarm event meeting alarm conditions occurs, alarm information of the alarm event comprising a unique identifier of the alarm event is pushed to an alarm server to realize alarm. And after receiving the alarm information, the alarm server extracts a picture corresponding to the unique identifier of the alarm event from the video stored in the storage device according to a preset request instruction and the alarm information, and the picture is used as an alarm picture of the alarm event. Therefore, in the scheme, the video acquisition equipment does not need to shoot the alarm picture, correspondingly does not need to store the alarm picture into the storage equipment, and the alarm server acquires the alarm picture of the alarm event according to the unique identifier of the alarm event in the alarm information; therefore, the occupation of the bandwidth resources of the video acquisition equipment is reduced.
In a possible implementation manner, the extracting, according to a preset request instruction and the alarm information, a picture corresponding to the unique identifier of the alarm event from a video stored in the storage device as an alarm picture of the alarm event includes:
step A, the alarm server sends a preset request instruction and the alarm information to the storage device;
step B, the storage device acquires a video corresponding to the unique identifier of the alarm event from a stored video according to the preset request instruction and the alarm information, and sends the video corresponding to the unique identifier of the alarm event to the alarm server;
and step C, the alarm server extracts a picture corresponding to the unique identifier of the alarm event from the video corresponding to the unique identifier of the alarm event as the alarm picture of the alarm event according to the unique identifier of the alarm event.
Specifically, after the storage device receives a preset request instruction and the alarm information sent by the alarm server, the storage device obtains a video corresponding to the unique identifier of the alarm event from a stored video according to the preset request instruction and the alarm information, the storage device sends the video corresponding to the unique identifier of the alarm event to the alarm server, and the alarm server extracts a picture corresponding to the unique identifier of the alarm event from the video corresponding to the unique identifier of the alarm event as an alarm picture of the alarm event according to the unique identifier of the alarm event. The video corresponding to the unique identifier of the alarm event can be a video code stream with the smallest video storage unit, so that not only can the bandwidth for communication between the storage device and the alarm server be saved, but also the calculation amount is reduced and the time for extracting the picture corresponding to the unique identifier of the alarm event is shortened in the process that the alarm server extracts the picture corresponding to the unique identifier of the alarm event from the video corresponding to the unique identifier of the alarm event.
In a possible implementation manner, the extracting, according to a preset request instruction and the alarm information, a picture corresponding to the unique identifier of the alarm event from a video stored in the storage device as an alarm picture of the alarm event includes:
step one, the alarm server sends a preset request instruction and the alarm information to the storage device;
step two, the storage equipment acquires a video corresponding to the unique identifier of the alarm event from a stored video according to the preset request instruction and the alarm information;
step three, the storage device extracts a picture corresponding to the unique identifier of the alarm event from a video corresponding to the unique identifier of the alarm event as an alarm picture of the alarm event according to the unique identifier of the alarm event;
and step four, the storage equipment sends the alarm picture of the alarm event to the alarm server.
The alarm server sends a preset request instruction and the alarm information to the storage device, the storage device acquires a video corresponding to the unique identifier of the alarm event from a stored video according to the preset request instruction and the alarm information, then the storage device extracts a picture corresponding to the unique identifier of the alarm event from the video corresponding to the unique identifier of the alarm event as an alarm picture of the alarm event according to the unique identifier of the alarm event, and finally the storage device sends the alarm picture of the alarm event to the alarm server so that the extraction of the picture corresponding to the unique identifier of the alarm event is completed in the storage device, and finally the storage device only needs to send the alarm picture of the alarm event to the alarm server without sending the video corresponding to the unique identifier of the alarm event to the alarm server, therefore, the occupation of bandwidth resources in the process of sending the storage equipment to the alarm server is saved.
In a possible implementation manner, the alarm information further includes an identifier of the video capture device;
the extracting, by the alert server, a picture corresponding to the unique identifier of the alert event from the video stored in the storage device as the alert picture of the alert event includes:
the alarm server acquires the corresponding video sent by the video acquisition equipment from the videos stored in the storage equipment according to the identification of the video acquisition equipment;
and the alarm server extracts a picture corresponding to the unique identifier of the alarm event from the corresponding video sent by the video acquisition equipment as the alarm picture of the alarm event according to the unique identifier of the alarm event.
When the alarm information comprises the identification of the video acquisition equipment, the alarm server acquires the corresponding video sent by the video acquisition equipment from the video stored in the storage equipment according to the identification of the video acquisition equipment, so that when a plurality of video acquisition equipment exist, the corresponding video sent by the video acquisition equipment can be acquired from the video stored in the storage equipment, and finally, the alarm server extracts the picture corresponding to the unique identification of the alarm event from the corresponding video sent by the video acquisition equipment according to the unique identification of the alarm event as the alarm picture of the alarm event, so that the accuracy of extracting the alarm picture of the alarm event can be improved, and the time for extracting the alarm picture of the alarm event can be shortened.
In a possible implementation manner, the extracting, from the video stored in the storage device, a picture corresponding to the unique identifier of the alarm event as the alarm picture of the alarm event includes:
acquiring a picture group covered with the unique identifier of the alarm event from the video stored in the storage device;
and extracting the picture corresponding to the unique identifier of the alarm event from the picture group, and generating a thumbnail as an alarm picture of the alarm event.
For example, the only identifier of the alarm event is an alarm timestamp, and the alarm server may obtain, from the video stored in the storage device, a group of pictures covered with the time point indicated by the alarm timestamp; then, extracting the picture corresponding to the alarm time stamp from the picture group, and generating a thumbnail as an alarm picture of the alarm event. Wherein a group of pictures is commonly referred to as a gop (group pictures). It is to be understood that the videos stored in the storage device by the video capture device may be videos that are captured continuously in units of a predetermined time period or a predetermined file size, each of the videos being composed of a plurality of GOPs. Therefore, the alarm server can obtain the picture group covered with the unique identifier of the alarm event according to the unique identifier of the alarm event, so that the picture corresponding to the unique identifier of the alarm event can be extracted from the picture group, and a thumbnail is generated to be used as the alarm picture of the alarm event. The specific implementation mode of the alarm picture as the alarm event also exists in various ways. For example, the alarm server may extract the nearest one of the frames indicated by the unique identifier of the alarm event from the group of frames, and generate a thumbnail as an alarm picture of the alarm event.
For example, the unique identifier of the alarm event is an alarm timestamp, and it is understood that since the video captured by the video capture device is continuous, there may be at least tens of frames per second; therefore, the time between the shooting time point of the alarm picture extracted by the alarm server and the time point indicated by the alarm time stamp can be at least less than 1 second. Therefore, the alarm picture acquired by the alarm server can accurately display the image when the alarm event occurs. Or, the warning server may determine, from the group of pictures, one picture whose shooting time point is closest to the time point indicated by the warning timestamp; and extracting the picture and a preset number of pictures before and after the picture, and respectively generating thumbnails as alarm pictures of the alarm events. In this implementation, the number of subscriptions may be, but is not limited to, 1, 2, or 3, etc. It can be understood that the number of the extracted alarm pictures is increased, and the information which can be provided by the alarm pictures can be enriched, so that the images of the alarm events to which the alarm pictures belong can be displayed more comprehensively. In addition, after the alarm server extracts the pictures from the picture group, a clear alarm large picture can be generated to be used as an alarm picture of an alarm event. Regarding the generation mode of the thumbnail or the alarm large image, the existing generation mode of the thumbnail or the alarm large image may be referred to, and details are not repeated in the present invention.
In a possible implementation manner, after the step of receiving, by the alert server, the alert information sent by the video capture device, the method further includes:
and the alarm server sends the alarm information to a preset client so that a user can check the alarm information through the preset client.
After receiving the alarm information, the alarm server may send the alarm information to a preset client, so that a user views the alarm information through the preset client, and then the user flexibly uses the alarm information according to actual needs, for example, sends an instruction for viewing an alarm picture according to the alarm information, and the like.
Based on the same inventive concept, an embodiment of the present invention further provides a video alarm system, referring to fig. 2, where fig. 2 is a first schematic structural diagram of the video alarm system provided in the embodiment of the present invention, and the video alarm system includes:video capture device 110,alert server 120, andstorage device 130;
thevideo capture device 110 is configured to capture a video in real time and store the video in thestorage device 130; when detecting that an alarm event meeting alarm conditions occurs, pushing alarm information of the alarm event to thealarm server 120, where the alarm information includes a unique identifier of the alarm event;
thestorage device 130 is configured to store a video captured by thevideo capturing device 110 in real time;
thealarm server 120 is configured to receive the alarm information sent by thevideo capture device 110, and extract a picture corresponding to the unique identifier of the alarm event from the video stored in thestorage device 130 according to a preset request instruction and the alarm information, where the preset request instruction is generated according to a specified operation of a user.
Thevideo capture device 110 may be a webcam, a surveillance camera, a network device machine with various functions including a camera, an unmanned aerial vehicle including a camera, and so on. Thestorage device 130 may be a memory provided in the alert server, or may be a cloud storage server in the alert system. Thevideo acquisition device 110 acquires a video in real time, and sends the video acquired in real time to thestorage device 130, thestorage device 130 stores the video acquired in real time by thevideo acquisition device 110, the video acquired in real time includes information such as a timestamp, and when an alarm event meeting an alarm condition is detected to occur, the alarm information of the alarm event is pushed to thealarm server 120, wherein the alarm information includes a unique identifier of the alarm event, and the unique identifier of the alarm event can be used for identifying a picture when the alarm event occurs.
Referring to fig. 3, fig. 3 is a schematic diagram of a second structure of the video alarm system according to the embodiment of the present invention, and accordingly, after receiving the alarm information and before extracting a picture corresponding to the unique identifier of the alarm event from the video stored in thestorage device 130 as an alarm picture of the alarm event, thealarm server 120 may send the received alarm information to thepreset client 140, so that the user views the alarm information through the preset client.
Referring to fig. 4, fig. 4 is an interaction schematic diagram of a video alarm system according to an embodiment of the present invention, where the interaction process includes:
s201: thevideo acquisition device 110 acquires videos in real time and stores the acquired videos in thestorage device 130;
s202: thestorage device 130 stores the video acquired by thevideo acquisition device 110 in real time;
s203: when detecting that an alarm event meeting an alarm condition occurs, thevideo capture device 110 pushes alarm information of the alarm event to thealarm server 120, where the alarm information includes a unique identifier of the alarm event;
s204: thealarm server 120 receives the alarm information sent by thevideo capture device 110 and sends the received alarm information to thepreset client 140;
s205: thepreset client 140 receives and displays the alarm information;
s206: thepreset client 140 generates a preset application instruction according to the operation specified by the user, and sends the preset application instruction to thealarm server 120;
s207: thealarm server 120, in response to the preset application instruction, extracts a picture corresponding to the unique identifier of the alarm event from the video stored in thestorage device 130 according to the alarm information, and uses the picture as an alarm picture of the alarm event;
s208: thealert server 120 returns the extracted alert picture to thepreset client 140.
In a possible implementation manner, the above-mentionedalert server 120 is specifically configured to:
sending a preset request instruction and the alarm information to thestorage device 130, so that thestorage device 130 obtains a video corresponding to the unique identifier of the alarm event from stored videos, and sends the video corresponding to the unique identifier of the alarm event to thealarm server 120;
receiving the unique identifier of the alarm event sent by thestorage device 130, and extracting a picture corresponding to the unique identifier of the alarm event from a video corresponding to the unique identifier of the alarm event according to the unique identifier of the alarm event to serve as an alarm picture of the alarm event.
In a possible implementation manner, the above-mentionedalert server 120 is specifically configured to:
sending a preset request instruction and the alarm information to thestorage device 130, so that thestorage device 130 obtains a video corresponding to the unique identifier of the alarm event from a stored video according to the preset request instruction and the alarm information, thestorage device 130 extracts a picture corresponding to the unique identifier of the alarm event from the video corresponding to the unique identifier of the alarm event according to the unique identifier of the alarm event as an alarm picture of the alarm event, and thestorage device 130 sends the alarm picture of the alarm event to thealarm server 120;
receiving the alarm picture of the alarm event sent by thestorage device 130.
In a possible implementation manner, the warning information further includes an identifier of thevideo capture device 110;
the above-mentionedalert server 120 is specifically configured to: according to the identifier of thevideo capture device 110, acquiring the corresponding video sent by thevideo capture device 110 from the video stored in thestorage device 130, and according to the unique identifier of the alarm event, extracting a picture corresponding to the unique identifier of the alarm event from the corresponding video sent by thevideo capture device 110 as an alarm picture of the alarm event.
In a possible implementation manner, the above-mentionedalert server 120 is specifically configured to:
acquiring a group of pictures covered with the unique identifier of the alarm event from the video stored in thestorage device 130;
and extracting the picture corresponding to the unique identifier of the alarm event from the picture group, and generating a thumbnail as an alarm picture of the alarm event.
In a possible implementation, the above-mentionedalert server 120 is further configured to:
the alarm information is sent to apreset client 140, so that the user can view the alarm information through thepreset client 140.
With regard to the system in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An embodiment of the present invention further provides an obtaining method of an alarm picture, referring to fig. 5, where fig. 5 is a schematic diagram of the obtaining method of the alarm picture provided in the embodiment of the present invention, and is applied to an alarm server, where the method includes:
step 510, receiving alarm information of an alarm event sent by a video acquisition device, wherein the alarm information includes a unique identifier of the alarm event, and the video acquisition device is used for acquiring a video in real time;
and step 520, extracting a picture corresponding to the unique identifier of the alarm event from the video stored in a storage device as the alarm picture of the alarm event according to a preset request instruction and the alarm information, wherein the storage device is used for storing the video acquired by the video acquisition device in real time, and the preset request instruction is generated according to the specified operation of the user.
Optionally, the extracting, according to the preset request instruction and the alarm information, a picture corresponding to the unique identifier of the alarm event from the video stored in the storage device as the alarm picture of the alarm event includes:
sending a preset request instruction and the alarm information to the storage device, so that the storage device obtains a video corresponding to the unique identifier of the alarm event from a stored video, and sends the video corresponding to the unique identifier of the alarm event to the alarm server;
and receiving the unique identifier of the alarm event sent by the storage device, and extracting a picture corresponding to the unique identifier of the alarm event from a video corresponding to the unique identifier of the alarm event as an alarm picture of the alarm event according to the unique identifier of the alarm event.
Optionally, the extracting, according to the preset request instruction and the alarm information, a picture corresponding to the unique identifier of the alarm event from a video stored in a storage device as the alarm picture of the alarm event includes:
sending a preset request instruction and the alarm information to a storage device, so that the storage device obtains a video corresponding to the unique identifier of the alarm event from a stored video according to the preset request instruction and the alarm information, and the storage device extracts a picture corresponding to the unique identifier of the alarm event from the video corresponding to the unique identifier of the alarm event according to the unique identifier of the alarm event as an alarm picture of the alarm event and sends the alarm picture of the alarm event to the alarm server;
and receiving the alarm picture of the alarm event sent by the storage equipment.
Optionally, the warning information further includes an identifier of the video capture device;
the extracting, from the video stored in the storage device, a picture corresponding to the unique identifier of the alarm event as the alarm picture of the alarm event includes:
acquiring a corresponding video sent by the video acquisition equipment from videos stored in storage equipment according to the identification of the video acquisition equipment;
and according to the unique identifier of the alarm event, extracting a picture corresponding to the unique identifier of the alarm event from the corresponding video sent by the video acquisition equipment as an alarm picture of the alarm event.
Optionally, the extracting, from the video stored in the storage device, a picture corresponding to the unique identifier of the alarm event as the alarm picture of the alarm event includes:
acquiring a picture group covered with the unique identifier of the alarm event from the video stored in the storage device;
and extracting the picture corresponding to the unique identifier of the alarm event from the picture group, and generating a thumbnail as an alarm picture of the alarm event.
Optionally, after the step of receiving the alarm information of the alarm event sent by the video capture device, the method further includes:
and sending the alarm information to a preset client so that a user can check the alarm information through the preset client.
With regard to the methods in the above-described embodiments, the specific manner in which each method performs an operation has been described in detail in the embodiments related to the method, and will not be described in detail herein.
The computer instructions may be stored on or transmitted from a computer-readable storage medium to another computer-readable storage medium, e.g., from a website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DS L)) or wireless (e.g., infrared, wireless, microwave, etc.) means to another website, computer, server, or data center, the computer-readable storage medium may be any computer-accessible medium or integrated Solid State or multi-media storage medium (e.g., optical Disk.
It should be noted that in this document, technical features in various alternative schemes may be combined to form schemes within the scope of the disclosure, and relational terms such as first and second, and the like are only used for distinguishing one entity or operation from another entity or operation, and do not necessarily require or imply any actual relation or order between the entities or operations. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the same element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system, the apparatus and the electronic device embodiments, since they are substantially similar to the method embodiments, the description is simple, and the relevant points can be referred to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.