WO2018024165A1 - 一种报警影像记录方法及装置 - Google Patents

一种报警影像记录方法及装置 Download PDF

Info

Publication number
WO2018024165A1
WO2018024165A1 PCT/CN2017/094952 CN2017094952W WO2018024165A1 WO 2018024165 A1 WO2018024165 A1 WO 2018024165A1 CN 2017094952 W CN2017094952 W CN 2017094952W WO 2018024165 A1 WO2018024165 A1 WO 2018024165A1
Authority
WO
WIPO (PCT)
Prior art keywords
pictures
picture
time point
predetermined number
event
Prior art date
Application number
PCT/CN2017/094952
Other languages
English (en)
French (fr)
Inventor
陈冠兰
李寅兵
苏辉
金升阳
杜安强
Original Assignee
杭州萤石网络有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州萤石网络有限公司 filed Critical 杭州萤石网络有限公司
Priority to US16/322,620 priority Critical patent/US20190174089A1/en
Priority to EP17836347.9A priority patent/EP3496396A4/en
Publication of WO2018024165A1 publication Critical patent/WO2018024165A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • H04N5/77Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B13/00Burglar, theft or intruder alarms
    • G08B13/18Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength
    • G08B13/189Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems
    • G08B13/194Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems using image scanning and comparing systems
    • G08B13/196Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems using image scanning and comparing systems using television cameras
    • G08B13/19695Arrangements wherein non-video detectors start video recording or forwarding but do not generate an alarm themselves
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/188Capturing isolated or intermittent images triggered by the occurrence of a predetermined event, e.g. an object reaching a predetermined position

Definitions

  • the present application relates to the field of video surveillance technologies, and in particular, to an alarm image recording method and apparatus.
  • the video capture device When an event that meets the alarm condition is detected, the video capture device records the alarm image to show the event to the user.
  • some video capture devices locally cache the collected video, and when an event that meets the alarm condition is detected, an alarm message is sent to the video surveillance server that is in communication with the connection, and the cache is locally cached after a preset period of time.
  • the video monitoring server after receiving the alarm information, sends an alarm related information to the client connected with the communication, and after receiving the alarm related information, the client may request to view the corresponding alarm image from the video collection device or the cloud storage server. (video or picture).
  • the video image recorded by the video capture device is a video
  • the storage space occupied by the video is large, which makes the storage cost large. If the video is saved to the cloud storage server.
  • the transmission speed of the video transmission to the client may be slow due to the limitation of the network bandwidth.
  • the alarm image recorded by the video capture device is a single image, the accuracy cannot be accurately determined. The whole process of displaying the event, therefore, the recording method of the above two alarm images is poorly recorded.
  • the purpose of the embodiment of the present application is to provide an alarm image recording method and device, which can reduce the data amount of the alarm image and improve the display integrity, thereby achieving a better recording effect.
  • the specific technical solutions are as follows:
  • An alarm image recording method is applied to a video capture device, and the method includes:
  • the at least two pictures are determined as alarm images and saved to the video capture device or the cloud storage server.
  • the extracting according to the time point of the event, extracting at least two pictures from the buffer, including:
  • the determination result is YES, extracting, from the buffer, the target picture, and the first predetermined number of pictures and the second predetermined number of pictures, wherein the first predetermined number of pictures is a snapshot a picture at a time point before the point in time at which the event occurs, the picture of the second predetermined number of pictures being a picture after the time point at which the event occurred at the time of capturing; when the result of the determination is no, from the buffer The first predetermined number of pictures and the second predetermined number of pictures are extracted in the area.
  • the extracting according to the time point of the event, extracting at least two pictures from the buffer, including:
  • the first predetermined number of pictures includes at least: a picture in which a snapshot time point is before a time point when the event occurs, and a snapshot time point is closest to a picture at a time point when the event occurs;
  • the second predetermined number of pictures includes at least: a time point of capturing at the time when the event occurs In the picture after the point, the snapshot time point is closest to the picture of the occurrence time point of the event.
  • the first predetermined number of sheets is one, and the second predetermined number of sheets is three, wherein the second predetermined number of pictures is a sequentially captured picture.
  • An alarm image recording device is applied to a video capture device, and the device includes:
  • a cache module configured to capture a picture according to a preset frequency, and cache each captured picture to a buffer of the video collection device;
  • An extraction module configured to extract at least two pictures from the buffer according to a time point when the event occurs after detecting a preset time period in which an event meeting the alarm condition occurs;
  • a saving module configured to determine the at least two pictures as an alarm image, and save to the video collection device or the cloud storage server.
  • the extracting module includes:
  • a determining unit configured to determine whether a target picture exists in the buffer after detecting a preset time period in which an event meeting the alarm condition occurs, wherein the target picture is a time point of capturing and a time point at which the event occurs The same picture, if yes, triggering the first extraction unit, and if not, triggering the second extraction unit;
  • the first extracting unit is configured to extract, from the buffer, the target picture, and a first predetermined number of pictures and a second predetermined number of pictures, wherein the first predetermined number of pictures In order to capture a picture at a time point before the time point when the event occurs, the picture of the second predetermined number of pictures is a picture after the time point at which the event occurs at the time of capturing;
  • the second extracting unit is configured to extract the first predetermined number of pictures and the second predetermined number of pictures from the buffer.
  • the extraction module is specifically configured to:
  • At least two pictures in which the corresponding identification information and the time point of the event occurrence are within a predetermined range are extracted from the buffer.
  • the first predetermined number of pictures includes at least: a picture in which a snapshot time point is in a picture before the time point when the event occurs, and a snapshot time point is closest to a time point at which the event occurs. sheet;
  • the second predetermined number of pictures includes at least: a picture in which the snapshot time point is in a picture after the time point when the event occurs, and the snapshot time point is closest to the picture of the occurrence time point of the event.
  • the first predetermined number of sheets is one, and the second predetermined number of sheets is three, wherein the second predetermined number of pictures is a sequentially captured picture.
  • an embodiment of the present application further discloses an electronic device, including: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus.
  • a memory for storing a computer program
  • the processor when executing the program stored on the memory, implements the following steps:
  • the at least two pictures are determined as alarm images and saved to the video capture device or the cloud storage server.
  • the extracting at least two pictures from the buffer according to a time point at which the event occurs includes:
  • the determination result is YES, extracting, from the buffer, the target picture, and the first predetermined number of pictures and the second predetermined number of pictures, wherein the first predetermined number of pictures is a snapshot a picture at a time point before the point in time at which the event occurs, the picture of the second predetermined number of pictures being a picture after the time point at which the event occurred at the time of capturing; when the result of the determination is no, from the buffer The first predetermined number of pictures and the second predetermined number of pictures are extracted in the area.
  • the extracting at least two pictures from the buffer according to a time point at which the event occurs includes:
  • the first predetermined number of pictures includes: the snapshot time point is in a picture before the time point when the event occurs, and the snapshot time point is closest to the time when the event occurs. a picture of the point;
  • the second predetermined number of pictures includes at least: a picture in which the snapshot time point is in a picture after the time point when the event occurs, and the snapshot time point is closest to the picture of the occurrence time point of the event.
  • the first predetermined number of sheets is one, and the second predetermined number of sheets is three, wherein the second predetermined number of pictures is sequentially captured pictures .
  • the embodiment of the present application further discloses a computer readable storage medium, where the computer includes a computer program, and when the computer program is executed by the processor, the following steps are implemented:
  • the at least two pictures are determined as alarm images and saved to the video capture device or the cloud storage server.
  • the extracting at least two pictures from the buffer according to a time point at which the event occurs includes:
  • the determination result is YES, extracting, from the buffer, the target picture, and the first predetermined number of pictures and the second predetermined number of pictures, wherein the first predetermined number of pictures is a snapshot a picture at a time point before the point in time at which the event occurs, the picture of the second predetermined number of pictures being a picture after the time point at which the event occurred at the time of capturing; when the result of the determination is no, from the buffer The first predetermined number of pictures and the second predetermined number of pictures are extracted in the area.
  • the first predetermined number of pictures includes: the snapshot time point is in a picture before the time point when the event occurs, and the snapshot time point is closest to the time when the event occurs. a picture of the point;
  • the second predetermined number of pictures includes at least: a picture in which the snapshot time point is in a picture after the time point when the event occurs, and the snapshot time point is closest to the picture of the occurrence time point of the event.
  • the first predetermined number of sheets is one, and the second predetermined number of sheets is three, wherein the second predetermined number of pictures is sequentially captured pictures .
  • the image is captured according to the preset frequency, and the captured image is cached to the buffer of the video collection device, and after the preset time period in which the event meeting the alarm condition is detected, the event occurs according to the event.
  • at least two pictures are determined as alarm images by being extracted from the buffer into at least two pictures and saved to the video capture device or the cloud storage server. Due to the alarm image including at least two pictures, the information provided is more abundant than the alarm image of the single picture, which improves the integrity of the alarm image display event; the data amount is reduced by at least compared with the video alarm image. An order of magnitude reduces the amount of data in the alarm image.
  • an alarm image containing at least two pictures improves the display integrity while reducing the amount of data in the alarm image, achieving better recording results.
  • implementing any of the products or methods of the present application necessarily does not necessarily require all of the advantages described above to be achieved at the same time.
  • FIG. 1 is a schematic diagram of a first flow chart of an alarm image recording method according to an embodiment of the present application
  • FIG. 2 is a second schematic flowchart of an alarm image recording method according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a first structure of an alarm image recording apparatus according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a second structure of an alarm image recording apparatus according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • an embodiment of the present application provides an alarm image recording method and apparatus.
  • An alarm image recording method provided by the embodiment of the present application is first introduced.
  • an alarm image recording method provided by an embodiment of the present application is applied to a video capture device.
  • the video capture device can be IPC (IP Camra, Network Camera) or NVR (Network Video Recorder), which is reasonable.
  • an alarm image recording method provided by an embodiment of the present disclosure is applied to a video capture device, and may include:
  • S101 Capture a picture according to a preset frequency, and cache the captured picture to a buffer of the video collection device.
  • the video image recorded by the video capture device is a video
  • the storage space occupied by the video is large, which makes the storage cost large. If the video is saved to the cloud storage server.
  • the transmission speed of the video transmission to the client may be slow due to the limitation of the network bandwidth.
  • the alarm image recorded by the video capture device is a single image, the accuracy cannot be accurately determined. The whole process of showing the event.
  • a buffer is allocated in the video capture device. Then take a picture based on the preset frequency and grab each time The captured picture is buffered to the buffer for subsequent steps.
  • the preset frequency may be determined according to the location of the video capture device.
  • the picture Since the picture is captured according to the preset frequency and the picture captured each time is buffered to the buffer, there are multiple captured pictures in the buffer.
  • at least two pieces of the captured image from the buffer are extracted according to the time point of the event occurrence. .
  • S103 Determine at least two pictures as alarm images and save them to a video capture device or a cloud storage server.
  • the at least two pictures extracted from the buffer are determined as alarm images, and are saved to the video capture device or the cloud storage server, so that when the client needs to view the alarm image, the video capture device or the cloud storage server may be requested to view the image. Alarm image.
  • the alarm image may be encrypted according to a preset algorithm, and then the encrypted alarm image is saved to a video capture device or a cloud storage server.
  • an alarm image containing at least two pictures has a reduced amount of data compared to an alarm image of a video. At least an order of magnitude, compared to the alarm image of a single picture, the information provided is more abundant, and the event can be displayed more completely.
  • the image is captured according to the preset frequency, and the captured image is cached to the buffer of the video collection device, and after the preset time period in which the event meeting the alarm condition is detected, the event occurs according to the event.
  • at least two pictures are determined as alarm images and saved to the video capture device or the cloud storage server by extracting at least two pictures from the buffer. Due to the alarm image including at least two pictures, the information provided is more abundant than the alarm image of the single picture, which improves the integrity of the alarm image display event; the data amount is reduced by at least compared with the video alarm image. An order of magnitude reduces the amount of data in the alarm image. Therefore, an alarm image containing at least two pictures improves the display integrity while reducing the amount of data in the alarm image. Good record effect.
  • FIG. 1 For ease of understanding, the method shown in FIG. 1 is described in detail below through a specific embodiment:
  • the video capture device captures the picture according to the preset frequency, and caches the captured picture to the buffer of the video collection device.
  • the alarm information is sent to the video monitoring server that is connected to the communication;
  • the video capture device extracts at least two pictures from the buffer according to the time point of the event, and determines at least two pictures as alarm images, and saves them to the video capture device or the cloud storage server.
  • the video monitoring server After receiving the alarm information, the video monitoring server sends the alarm related information to the client connected with the communication. After receiving the alarm related information, the client requests the video collection device or the cloud storage server to view the corresponding alarm image (at least two pictures). ).
  • the user can play an alarm image including at least two pictures.
  • the alarm image including at least two pictures is richer than the alarm image of the single picture, which improves the integrity of the alarm image display event; the data amount is reduced by at least one compared with the video alarm image The order of magnitude reduces the amount of data of the alarm image. Therefore, the alarm image containing at least two pictures improves the display integrity while reducing the data amount of the alarm image, and achieves better recording results.
  • At least two pictures are extracted from the buffer according to the time point at which the event occurs (S102), include:
  • the target picture is a picture with the same time point as the time when the event occurred.
  • the video collection device Since the picture is captured according to the preset frequency, and each captured picture is buffered to the buffer, and the time when the event meeting the alarm condition occurs is not fixed, the video collection device is not necessarily generated when the event meeting the alarm condition occurs.
  • the picture of the time point at which the event meeting the alarm condition occurs may be captured, that is, the target picture. At this time, the target picture does not necessarily exist in the buffer.
  • S1022 Extract a target picture from the buffer, and a first predetermined number of pictures and a second predetermined number of pictures.
  • the first predetermined number of pictures is a picture before the time point when the event occurs
  • the second predetermined number of pictures is a picture after the time point when the event occurs.
  • the buffer is obtained from the buffer.
  • the first predetermined number of pictures and the second predetermined number of pictures are extracted.
  • the first predetermined number of pictures includes at least: a picture in which the snapshot time point is before the time point when the event occurs, and the snapshot time point is closest to the picture at the time point when the event occurs;
  • the second predetermined number of pictures includes at least: a picture in which the snapshot time point is in a picture after the time point when the event occurs, and the snapshot time point is closest to the picture of the occurrence time point of the event.
  • At least one picture immediately adjacent to the target picture before the target picture may be extracted based on the target picture, and the target is At least one picture immediately following the picture that is immediately adjacent to the target picture.
  • the first predetermined number of sheets is one, and the second predetermined number of sheets is three.
  • the picture of the second predetermined number of pictures is a picture captured in sequence.
  • the second predetermined number of sheets is set to be larger than the first reservation.
  • the number of sheets may be specifically one for the first predetermined number of sheets and three for the second predetermined number of sheets.
  • the picture of the second predetermined number of pictures is a picture captured in sequence, wherein after capturing a picture according to the preset frequency, continuing to capture the next picture can be understood as a sequential capture.
  • set the preset frequency to 1 time / 1min, assuming that the capture starts from 8:00, each captured image includes 8:01 captured pictures, 8:02 captured pictures, 8:03 captured pictures ..., for 8:01 captured pictures, 8:02 captured pictures and 8:03 captured pictures, it is a picture taken in sequence.
  • the preset frequency is set to 1 time/1min, assuming that the capture starts from 8:00, the event occurrence time of the event meeting the alarm condition is 8:05, the first predetermined number of sheets is one, and the second predetermined number of sheets is 3 sheets;
  • S1023 Extract a first predetermined number of pictures and a second predetermined number of pictures from the buffer.
  • the buffer is extracted from the buffer. a picture of the first predetermined number of pictures and a picture of the second predetermined number of sheets.
  • At least two pictures related to the event meeting the alarm condition are flexibly extracted from the buffer by determining whether the target picture exists in the buffer. .
  • extracting at least two pictures from the buffer according to the time point when the event occurs may include:
  • At least two pictures in which the corresponding identification information and the time point of the event occurrence time are within a predetermined range may be extracted from the buffer.
  • the time interval between the identification information corresponding to the picture and the time when the event occurs is 0, and 0 must be within the predetermined range, therefore,
  • the picture in which the corresponding identification information and the time interval of the event occurs within a predetermined range includes the picture in which the corresponding identification information is the same as the time point at which the event occurred.
  • set the preset frequency to 1 time / 1min, assuming that the capture starts from 8:00, the event occurrence time of the event meeting the alarm condition is 8:05, and the predetermined range is 2 minutes;
  • the picture captured from the buffer from 8:05 and before/after 8:05 At least two images are extracted from the captured image within 2 minutes.
  • there is no 8:05 captured image in the buffer at least two images are extracted from the captured image within 2 minutes before/after 8:05.
  • the embodiment of the present application further provides an alarm image recording device, which is applied to a video capture device.
  • the device may include:
  • the cache module 201 is configured to capture a picture according to a preset frequency, and cache the captured picture to a buffer of the video collection device.
  • the extracting module 202 is configured to extract at least two pictures from the buffer according to a time point when the event occurs after detecting a preset time period in which an event meeting the alarm condition occurs;
  • the saving module 203 is configured to determine the at least two pictures as an alarm image and save to the video collection device or the cloud storage server.
  • the image is captured according to the preset frequency, and the captured image is cached to the buffer of the video collection device, and after the preset time period in which the event meeting the alarm condition is detected, the event occurs according to the event.
  • at least two pictures are determined as alarm images and saved to the video capture device or the cloud storage server by extracting at least two pictures from the buffer. Due to the alarm image including at least two pictures, the information provided is more abundant than the alarm image of the single picture, which improves the integrity of the alarm image display event; the data amount is reduced by at least compared with the video alarm image. An order of magnitude reduces the amount of data in the alarm image. Therefore, an alarm image containing at least two pictures improves the display integrity while reducing the amount of data in the alarm image, achieving better recording results.
  • the extraction module 202 can be specifically configured to:
  • At least two pictures in which the corresponding identification information and the time point of the event occurrence are within a predetermined range are extracted from the buffer.
  • an alarm image recording apparatus provided by the present application is applied to a video capture device, and the device may include:
  • the cache module 201 is configured to capture a picture according to a preset frequency, and cache the captured picture to a buffer of the video collection device.
  • the determining unit 2021 is configured to determine whether there is a target picture in the buffer after detecting a preset time period in which the event meeting the alarm condition occurs, wherein the target picture is the time point of capturing and the time point at which the event occurs a picture, if yes, trigger the first extraction unit 2022, if not, trigger the second extraction unit 2023;
  • the first extracting unit 2022 is configured to extract, from the buffer, the target picture, and a first predetermined number of pictures and a second predetermined number of pictures, wherein the first predetermined number of pictures The picture is a picture before the time point when the event occurs, and the picture of the second predetermined number of pictures is a picture after the time point when the event occurs.
  • the second extracting unit 2023 is configured to extract the first predetermined number of pictures and the second predetermined number of pictures from the buffer.
  • the saving module 203 is configured to determine the at least two pictures as an alarm image and save to the video collection device or the cloud storage server.
  • At least two pictures related to the event meeting the alarm condition are flexibly extracted from the buffer by determining whether the target picture exists in the buffer. .
  • the first predetermined number of pictures includes: a picture in which a snapshot time point is in a picture before a time point when the event occurs, and a snapshot time point is closest to a picture at a time point when the event occurs;
  • the second predetermined number of pictures includes at least: a picture in which the snapshot time point is in a picture after the time point when the event occurs, and the snapshot time point is closest to the picture of the occurrence time point of the event.
  • the first predetermined number of sheets is one
  • the second predetermined number of sheets is three, wherein the second predetermined number of pictures is sequentially captured pictures.
  • the embodiment of the present application further provides an electronic device, as shown in FIG. 5, including: a processor 501, a communication interface 502, a memory 503, and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 pass through a communication bus. 504 completes communication with each other,
  • the processor 501 is configured to implement the foregoing method for recording an image recording method when the program stored in the memory 503 is executed, and the method includes:
  • the at least two pictures are determined as alarm images and saved to the video capture device or the cloud storage server.
  • the extracting at least two pictures from the buffer according to a time point at which the event occurs includes:
  • the determination result is YES, extracting, from the buffer, the target picture, and the first predetermined number of pictures and the second predetermined number of pictures, wherein the first predetermined number of pictures is a snapshot a picture at a time point before the point in time at which the event occurs, the picture of the second predetermined number of pictures being a picture after the time point at which the event occurred at the time of capturing; when the result of the determination is no, from the buffer The first predetermined number of pictures and the second predetermined number of pictures are extracted in the area.
  • the extracting at least two pictures from the buffer according to a time point at which the event occurs includes:
  • the first predetermined number of pictures includes: the snapshot time point is in a picture before the time point when the event occurs, and the snapshot time point is closest to the time when the event occurs. a picture of the point;
  • the second predetermined number of pictures includes at least: a picture in which the snapshot time point is in a picture after the time point when the event occurs, and the snapshot time point is closest to the picture of the occurrence time point of the event.
  • the first predetermined number of sheets is one, and the second predetermined number of sheets is three, wherein the second predetermined number of pictures is sequentially captured pictures .
  • the image is captured according to the preset frequency, and the captured image is cached to the buffer of the video collection device, and after the preset time period in which the event meeting the alarm condition is detected, the event occurs according to the event.
  • at least two pictures are determined as alarm images and saved to the video capture device or the cloud storage server by extracting at least two pictures from the buffer. Due to the alarm image including at least two pictures, the information provided is more abundant than the alarm image of the single picture, which improves the integrity of the alarm image display event; the data amount is reduced by at least compared with the video alarm image. An order of magnitude reduces the amount of data in the alarm image. Therefore, an alarm image containing at least two pictures improves the display integrity while reducing the amount of data in the alarm image, achieving better recording results.
  • the embodiment of the present application further provides a computer readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by the processor, the alarm image recording method step is implemented, and the method includes:
  • the at least two pictures are determined as alarm images and saved to the video capture device or the cloud storage server.
  • the extracting at least two pictures from the buffer according to a time point at which the event occurs includes:
  • the determination result is YES, extracting, from the buffer, the target picture, and the first predetermined number of pictures and the second predetermined number of pictures, wherein the first predetermined number of pictures is a snapshot a picture at a time point before the point in time at which the event occurs, the picture of the second predetermined number of pictures being a picture after the time point at which the event occurred at the time of capturing; when the result of the determination is no, from the buffer The first predetermined number of pictures and the second predetermined number of pictures are extracted in the area.
  • the first predetermined number of pictures includes: the snapshot time point is in a picture before the time point when the event occurs, and the snapshot time point is closest to the time when the event occurs. a picture of the point;
  • the second predetermined number of pictures includes at least: a picture in which the snapshot time point is in a picture after the time point when the event occurs, and the snapshot time point is closest to the picture of the occurrence time point of the event.
  • the first predetermined number of sheets is one, and the second predetermined number of sheets is three, wherein the second predetermined number of pictures is sequentially captured pictures .
  • the image is captured according to the preset frequency, and the captured image is cached to the buffer of the video collection device, and after the preset time period in which the event meeting the alarm condition is detected, the event occurs according to the event.
  • at least two pictures are determined as alarm images and saved to the video capture device or the cloud storage server by extracting at least two pictures from the buffer. Due to the alarm image including at least two pictures, the information provided is more abundant than the alarm image of the single picture, which improves the integrity of the alarm image display event; the data amount is reduced by at least compared with the video alarm image. An order of magnitude reduces the amount of data in the alarm image. Therefore, an alarm image containing at least two pictures improves the display integrity while reducing the amount of data in the alarm image, achieving better recording results.
  • the various embodiments in the present specification are described in a related manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
  • the embodiment of the alarm image recording apparatus shown in FIG. 3, the electronic device embodiment shown in FIG. 5, and the computer readable storage medium embodiment are basically similar to the alarm image recording method shown in FIG.
  • the description is relatively simple, and the relevant parts can be referred to the description of the embodiment of the alarm image recording method shown in FIG.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Alarm Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

本申请实施例提供了一种报警影像记录方法及装置,该方法中,根据预设频率抓拍图片,并将每次抓拍到的图片缓存至视频采集设备的缓冲区,在检测到符合报警条件的事件发生的预设时间段后,根据事件发生的时间点,从缓冲区中提取至少两张图片,将至少两张图片确定为报警影像并保存至所述视频采集设备或云存储服务器。本申请中,由于包括至少两张图片的报警影像,相比于单张图片的报警影像,所提供的信息更加丰富,提高了报警影像展示事件的完整性;相比于视频的报警影像,数据量减少了至少一个数量级,降低了报警影像的数据量,因此,包含至少两张图片的报警影像在降低报警影像的数据量的同时提高展示完整性,达到较好的记录效果。

Description

一种报警影像记录方法及装置
本申请要求于2016年8月3日提交中国专利局、申请号为201610626351.2发明名称为“一种报警影像记录方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及视频监控技术领域,特别是涉及一种报警影像记录方法及装置。
背景技术
目前存在许多具有报警功能的视频采集设备,当检测到符合报警条件的事件发生,视频采集设备会记录报警影像,以便向用户展示事件的过程。
相关技术中,一些视频采集设备对采集的视频进行本地缓存,当检测到符合报警条件的事件发生时,向与其通信连接的视频监控服务器发送报警信息,并在预设时间段后,将本地缓存的事件发生的时间点的前一段时间和后一段时间对应的视频确定为报警影像,进而保存至视频采集设备或者云存储服务器;还有一些视频采集设备,当检测到符合报警条件的事件发生时,向与其通信连接的视频监控服务器发送报警信息,并抓拍一张图片作为报警影像保存至视频采集设备或云存储服务器。相应的,视频监控服务器在接收到报警信息后向与其通信连接的客户端发送报警相关信息,客户端在接收到报警相关信息后,即可以向视频采集设备或者云存储服务器请求查看对应的报警影像(录像或图片)。
当视频采集设备记录的报警影像为视频时,由于视频的数据量较大,如果视频保存至视频采集设备,视频所占用的存储空间较大,使得存储成本较大,如果视频保存至云存储服务器,则客户端在请求查看该录像时,可能会发生由于网络带宽的限制导致的视频传输至客户端的传输速度较慢的情况,而当视频采集设备记录的报警影像为单张图片时,无法精确的展示事件的全过程,因此,以上两种报警影像的记录方法的记录效果较差。
发明内容
本申请实施例的目的在于提供一种报警影像记录方法及装置,以降低报警影像的数据量的同时提高展示完整性,从而达到较好的记录效果。具体技术方案如下:
一种报警影像记录方法,应用于视频采集设备,所述方法包括:
根据预设频率抓拍图片,并将每次抓拍到的图片缓存至所述视频采集设备的缓冲区;
在检测到符合报警条件的事件发生的预设时间段后,根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片;
将所述至少两张图片确定为报警影像,并保存至所述视频采集设备或云存储服务器。
可选的,所述根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片,包括:
判断所述缓冲区中是否存在目标图片,其中,所述目标图片为抓拍时间点与所述事件发生的时间点相同的图片;
当判断结果为是时,从所述缓冲区中,提取所述目标图片,以及第一预定张数的图片和第二预定张数的图片,其中,所述第一预定张数的图片为抓拍时间点在所述事件发生的时间点之前的图片,所述第二预定张数的图片为抓拍时间点在所述事件发生的时间点之后的图片;当判断结果为否时,从所述缓冲区中提取所述第一预定张数的图片和所述第二预定张数的图片。
可选的,所述根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片,包括:
从所述缓冲区中,提取所对应标识信息与所述事件发生的时间点的时间间隔在预定范围内的至少两张图片。
可选的,所述第一预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之前的图片中,抓拍时间点最接近于所述事件发生的时间点的图片;
所述第二预定张数的图片至少包括:抓拍时间点在所述事件发生的时间 点之后的图片中,抓拍时间点最接近于所述事件的发生时间点的图片。
可选的,所述第一预定张数为1张,所述第二预定张数为3张,其中,所述第二预定张数的图片为顺次抓拍到的图片。
一种报警影像记录装置,应用于视频采集设备,所述装置包括:
缓存模块,用于根据预设频率抓拍图片,并将每次抓拍到的图片缓存至所述视频采集设备的缓冲区;
提取模块,用于在检测到符合报警条件的事件发生的预设时间段后,根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片;
保存模块,用于将所述至少两张图片确定为报警影像,并保存至所述视频采集设备或云存储服务器。
可选的,所述提取模块,包括:
判断单元,用于在检测到符合报警条件的事件发生的预设时间段后,判断所述缓冲区中是否存在目标图片,其中,所述目标图片为抓拍时间点与所述事件发生的时间点相同的图片,如果是,触发第一提取单元,如果否,触发第二提取单元;
所述第一提取单元,用于从所述缓冲区中,提取所述目标图片,以及第一预定张数的图片和第二预定张数的图片,其中,所述第一预定张数的图片为抓拍时间点在所述事件发生的时间点之前的图片,所述第二预定张数的图片为抓拍时间点在所述事件发生的时间点之后的图片;
所述第二提取单元,用于从所述缓冲区中提取所述第一预定张数的图片和所述第二预定张数的图片。
可选的,所述提取模块,具体用于:
在检测到符合报警条件的事件发生的预设时间段后,从所述缓冲区中,提取所对应标识信息与所述事件发生的时间点的时间间隔在预定范围内的至少两张图片。
可选的,所述第一预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之前的图片中,抓拍时间点最接近于所述事件发生的时间点的图 片;
所述第二预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之后的图片中,抓拍时间点最接近于所述事件的发生时间点的图片。
可选的,所述第一预定张数为1张,所述第二预定张数为3张,其中,所述第二预定张数的图片为顺次抓拍到的图片。
为达到上述目的,本申请实施例还公开了一种电子设备,包括:处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信,
存储器,用于存放计算机程序;
处理器,用于执行存储器上所存放的程序时,实现如下步骤:
根据预设频率抓拍图片,并将每次抓拍到的图片缓存至所述视频采集设备的缓冲区;
在检测到符合报警条件的事件发生的预设时间段后,根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片;
将所述至少两张图片确定为报警影像,并保存至所述视频采集设备或云存储服务器。
在本申请的一种实现方式中,所述根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片,包括:
判断所述缓冲区中是否存在目标图片,其中,所述目标图片为抓拍时间点与所述事件发生的时间点相同的图片;
当判断结果为是时,从所述缓冲区中,提取所述目标图片,以及第一预定张数的图片和第二预定张数的图片,其中,所述第一预定张数的图片为抓拍时间点在所述事件发生的时间点之前的图片,所述第二预定张数的图片为抓拍时间点在所述事件发生的时间点之后的图片;当判断结果为否时,从所述缓冲区中提取所述第一预定张数的图片和所述第二预定张数的图片。
在本申请的一种实现方式中,所述根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片,包括:
从所述缓冲区中,提取所对应标识信息与所述事件发生的时间点的时间间隔在预定范围内的至少两张图片。
在本申请的一种实现方式中,所述第一预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之前的图片中,抓拍时间点最接近于所述事件发生的时间点的图片;
所述第二预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之后的图片中,抓拍时间点最接近于所述事件的发生时间点的图片。
在本申请的一种实现方式中,所述第一预定张数为1张,所述第二预定张数为3张,其中,所述第二预定张数的图片为顺次抓拍到的图片。
为达到上述目的,本申请实施例还公开了一种计算机可读存储介质,所述存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:
根据预设频率抓拍图片,并将每次抓拍到的图片缓存至所述视频采集设备的缓冲区;
在检测到符合报警条件的事件发生的预设时间段后,根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片;
将所述至少两张图片确定为报警影像,并保存至所述视频采集设备或云存储服务器。
在本申请的一种实现方式中,所述根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片,包括:
判断所述缓冲区中是否存在目标图片,其中,所述目标图片为抓拍时间点与所述事件发生的时间点相同的图片;
当判断结果为是时,从所述缓冲区中,提取所述目标图片,以及第一预定张数的图片和第二预定张数的图片,其中,所述第一预定张数的图片为抓拍时间点在所述事件发生的时间点之前的图片,所述第二预定张数的图片为抓拍时间点在所述事件发生的时间点之后的图片;当判断结果为否时,从所述缓冲区中提取所述第一预定张数的图片和所述第二预定张数的图片。
在本申请的一种实现方式中,所述根据所述事件发生的时间点,从所述 缓冲区中提取至少两张图片,包括:
从所述缓冲区中,提取所对应标识信息与所述事件发生的时间点的时间间隔在预定范围内的至少两张图片。
在本申请的一种实现方式中,所述第一预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之前的图片中,抓拍时间点最接近于所述事件发生的时间点的图片;
所述第二预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之后的图片中,抓拍时间点最接近于所述事件的发生时间点的图片。
在本申请的一种实现方式中,所述第一预定张数为1张,所述第二预定张数为3张,其中,所述第二预定张数的图片为顺次抓拍到的图片。
本申请实施例中,根据预设频率抓拍图片,并将每次抓拍到的图片缓存至视频采集设备的缓冲区,在检测到符合报警条件的事件发生的预设时间段后,根据事件发生的时间点,通过从缓冲区中提取至少两张图片的方式,将至少两张图片确定为报警影像并保存至所述视频采集设备或云存储服务器。由于包括至少两张图片的报警影像,相比于单张图片的报警影像,所提供的信息更加丰富,提高了报警影像展示事件的完整性;相比于视频的报警影像,数据量减少了至少一个数量级,降低了报警影像的数据量,因此,包含至少两张图片的报警影像在降低报警影像的数据量的同时提高展示完整性,达到较好的记录效果。当然,实施本申请的任一产品或方法必不一定需要同时达到以上所述的所有优点。
附图说明
为了更清楚地说明本申请实施例和相关技术的技术方案,下面对实施例和相关技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的报警影像记录方法的第一种流程示意图;
图2为本申请实施例提供的报警影像记录方法的第二种流程示意图;
图3为本申请实施例提供的报警影像记录装置的第一种结构示意图;
图4为本申请实施例提供的报警影像记录装置的第二种结构示意图;
图5为本申请实施例提供的电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
为了解决相关技术问题,本申请实施例提供了一种报警影像记录方法及装置。
下面首先对本申请实施例所提供的一种报警影像记录方法进行介绍。
需要说明的是,本申请实施例所提供的一种报警影像记录方法应用于视频采集设备。在实际应用中,该视频采集设备可以为IPC(IP Camra,网络摄像机)或NVR(Network Video Recorder,网络硬盘录像机)等,这都是合理的。
如图1所示,本申请实施例提供的一种报警影像记录方法,应用于视频采集设备,可以包括:
S101:根据预设频率抓拍图片,并将每次抓拍到的图片缓存至视频采集设备的缓冲区。
当视频采集设备记录的报警影像为视频时,由于视频的数据量较大,如果视频保存至视频采集设备,视频所占用的存储空间较大,使得存储成本较大,如果视频保存至云存储服务器,则客户端在请求查看该录像时,可能会发生由于网络带宽的限制导致的视频传输至客户端的传输速度较慢的情况,而当视频采集设备记录的报警影像为单张图片时,无法精确的展示事件的全过程。
因此,为了获得较好的视频影像记录效果,当视频采集设备启动时,在视频采集设备中分配一个缓冲区。然后根据预设频率抓拍图片,并将每次抓 拍到的图片缓存至缓冲区,以便进行后续步骤。
其中,预设频率可以根据视频采集设备所处的位置来确定。
S102:在检测到符合报警条件的事件发生的预设时间段后,根据事件发生的时间点,从缓冲区中提取至少两张图片。
由于根据预设频率抓拍图片并将每次抓拍到的图片缓存至缓冲区,因此,在缓冲区中存在多张抓拍图片。为了获得更多有关符合报警条件的事件的相关信息,在检测到符合报警条件的事件发生的预设时间段后,根据事件发生的时间点,从缓冲区的多张抓拍图片中提取至少两张。
S103:将至少两张图片确定为报警影像,并保存至视频采集设备或云存储服务器。
将从缓冲区中提取的至少两张图片确定为报警影像,并保存至视频采集设备或云存储服务器,以使客户端需要查看该报警影像时,可以向视频采集设备或者云存储服务器请求查看该报警影像。
其中,为了保证报警影像的安全性及可靠性,可以根据预设算法对报警影像进行加密,然后将加密后的报警影像保存至视频采集设备或云存储服务器。
由于视频的大小一般为几十兆,单张图片的大小一般为几千字节-几十千字节,因此,包含至少两张图片的报警影像,相比于视频的报警影像,数据量减少了至少一个数量级,相比于单张图片的报警影像,所提供的信息更加丰富,可以更加完整的展示事件。
本申请实施例中,根据预设频率抓拍图片,并将每次抓拍到的图片缓存至视频采集设备的缓冲区,在检测到符合报警条件的事件发生的预设时间段后,根据事件发生的时间点,通过从缓冲区中提取至少两张图片的方式,将至少两张图片确定为报警影像并保存至视频采集设备或云存储服务器。由于包括至少两张图片的报警影像,相比于单张图片的报警影像,所提供的信息更加丰富,提高了报警影像展示事件的完整性;相比于视频的报警影像,数据量减少了至少一个数量级,降低了报警影像的数据量,因此,包含至少两张图片的报警影像在降低报警影像的数据量的同时提高展示完整性,达到较 好的记录效果。
为了方便理解,下面通过一具体实施例对图1所示方法进行详细描述:
例如:将预设频率设置为1次/1min,假设从8:00开始抓拍,符合报警条件的事件的发生时间点为8:05;
根据1次/1min的频率抓拍图片,并将每次抓拍到的图片(8:01抓拍的图片、8:02抓拍的图片、8:03抓拍的图片……)缓存至视频采集设备的缓冲区,在检测到符合报警条件的事件发生的预设时间段后,根据事件发生的时间点(8:05),从缓冲区中提取至少两张图片,将至少两张图片确定为报警影像,并保存至视频采集设备或云存储服务器。
进一步的,下面对采用本申请的报警影像记录方法的视频采集设备与客户端、云存储服务器及视频监控服务器之间的交互过程进行详细描述。
视频采集设备根据预设频率抓拍图片,并将每次抓拍到的图片缓存至视频采集设备的缓冲区,当检测到符合报警条件的事件发生时,向与其通信连接的视频监控服务器发送报警信息;
在预设时间段后,视频采集设备根据事件发生的时间点,从缓冲区中提取至少两张图片,将至少两张图片确定为报警影像,并保存至视频采集设备或云存储服务器。
视频监控服务器在接收到报警信息后向与其通信连接的客户端发送报警相关信息,客户端在接收到报警相关信息后,向视频采集设备或者云存储服务器请求查看对应的报警影像(至少两张图片)。
由此,用户可以播放包括至少两张图片的报警影像。
包括至少两张图片的报警影像,相比于单张图片的报警影像,所提供的信息更加丰富,提高了报警影像展示事件的完整性;相比于视频的报警影像,数据量减少了至少一个数量级,降低了报警影像的数据量,因此,包含至少两张图片的报警影像在降低报警影像的数据量的同时提高展示完整性,达到较好的记录效果。
需要说明的是,在检测到符合报警条件的事件发生的预设时间段后,根据事件发生的时间点,从缓冲区中提取至少两张图片的具体实现方式存在多种,下面进行举例介绍。
在一种实现方式中,如图2所示,在检测到符合报警条件的事件发生的预设时间段后,根据事件发生的时间点,从缓冲区中提取至少两张图片(S102),可以包括:
S1021:在检测到符合报警条件的事件发生的预设时间段后,判断缓冲区中是否存在目标图片,如果是,执行步骤S1022,如果否,执行步骤S1023。
其中,目标图片为抓拍时间点与事件发生的时间点相同的图片。
由于根据预设频率抓拍图片,并将每次抓拍到的图片缓存至缓冲区,而符合报警条件的事件发生的时间点不固定,因此,在符合报警条件的事件发生时,视频采集设备不一定可以抓拍到该符合报警条件的事件的发生的时间点的图片即目标图片,此时,缓冲区中不一定存在目标图片。
因此,在检测到符合报警条件的事件发生的预设时间段后,判断缓冲区中是否存在目标图片,并根据判断结果执行后续步骤。
S1022:从缓冲区中,提取目标图片,以及第一预定张数的图片和第二预定张数的图片。
其中,第一预定张数的图片为抓拍时间点在事件发生的时间点之前的图片,第二预定张数的图片为抓拍时间点在事件发生的时间点之后的图片。
在判断缓冲区中存在目标图片时,即缓冲区中存在抓拍时间点与事件发生的时间点相同的图片,提取该目标图片,为了获得更多有关符合报警条件的事件的相关信息,从缓冲区中,提取第一预定张数的图片和第二预定张数的图片。
具体的,第一预定张数的图片至少包括:抓拍时间点在事件发生的时间点之前的图片中,抓拍时间点最接近于事件发生的时间点的图片;
第二预定张数的图片至少包括:抓拍时间点在事件发生的时间点之后的图片中,抓拍时间点最接近于事件的发生时间点的图片。
为了清楚的获知符合报警条件的事件发生的前因后果,在目标图片存在的情况下,可以以目标图片为基准,提取在该目标图片之前的与该目标图片紧邻的至少一张图片,以及在该目标图片之后的与该目标图片紧邻的至少一张图片。
例如:将预设频率设置为1次/1min,假设从8:00开始抓拍,符合报警条件的事件的发生时间点为8:05;
根据1次/1min的频率抓拍图片,并将每次抓拍到的图片(8:01抓拍的图片、8:02抓拍的图片、8:03抓拍的图片……)缓存至视频采集设备的缓冲区,在检测到符合报警条件的事件发生的预设时间段后,判断缓冲区中是否存在目标图片(8:05抓拍的图片),如果是,从缓冲区中,提取8:05抓拍的图片,以及至少包括8:04抓拍的图片的第一预设张数的图片和至少包括8:06抓拍的图片的第二预设张数的图片。
具体的,第一预定张数为1张,第二预定张数为3张。
其中,第二预定张数的图片为顺次抓拍到的图片。
由于在符合报警条件的事件发生后,所抓拍到的图片相比于符合报警条件的事件发生前抓所拍到的图片包含的信息更重要,因此将第二预定张数设置为大于第一预定张数,具体可以为第一预定张数为1张,第二预定张数为3张。
第二预定张数的图片为顺次抓拍到的图片,其中,按照预设频率抓拍到一张图片后,继续抓拍下一张图片即可理解为顺次抓拍。举例而言,将预设频率设置为1次/1min,假设从8:00开始抓拍,每次抓拍到的图片包括8:01抓拍的图片、8:02抓拍的图片、8:03抓拍的图片……,对于8:01抓拍的图片、8:02抓拍的图片和8:03抓拍的图片而言,即为顺次抓拍的图片。
例如:将预设频率设置为1次/1min,假设从8:00开始抓拍,符合报警条件的事件的发生时间点为8:05,第一预定张数为1张,第二预定张数为3张;
根据1次/1min的频率抓拍图片,并将每次抓拍到的图片(8:01抓拍的图片、8:02抓拍的图片、8:03抓拍的图片……)缓存至视频采集设备的缓冲区,在检测到符合报警条件的事件发生的预设时间段后,判断缓冲区中是否存在目标 图片(8:05抓拍的图片),如果是,从缓冲区中,提取8:04抓拍的图片、8:05抓拍的图片、8:06抓拍的图片、8:07抓拍的图片和8:08抓拍的图片。
S1023:从缓冲区中提取第一预定张数的图片和第二预定张数的图片。
在判断缓冲区中未存在目标图片时,即缓冲区中未存在抓拍时间点与事件发生的时间点相同的图片,为了获得更多有关符合报警条件的事件的相关信息,从缓冲区中,提取第一预定张数的图片和第二预定张数的图片。
由此,在检测到符合报警条件的事件发生的预设时间段后,通过判断缓冲区中是否存在目标图片的方式,灵活的从缓冲区中提取与符合报警条件的事件相关的至少两张图片。
在另一种实现方式中,根据事件发生的时间点,从缓冲区中提取至少两张图片,可以包括:
从缓冲区中,提取所对应标识信息与事件发生的时间点的时间间隔在预定范围内的至少两张图片。
为了获得与符合报警条件的事件相关的信息,可以从缓冲区中,提取所对应标识信息与事件发生的时间点的时间间隔在预定范围内的至少两张图片。其中,当缓冲区中存在所对应标识信息与事件发生的时间点相同的图片时,该图片所对应标识信息与事件发生的时间点的时间间隔为0,而0一定在预定范围内,因此,该所对应标识信息与事件发生的时间点的时间间隔在预定范围内的图片包括所对应标识信息与事件发生的时间点相同的图片。
例如:将预设频率设置为1次/1min,假设从8:00开始抓拍,符合报警条件的事件的发生时间点为8:05,预定范围为2分钟;
根据1次/1min的频率抓拍图片,并将每次抓拍到的图片(8:01抓拍的图片、8:02抓拍的图片、8:03抓拍的图片……)缓存至视频采集设备的缓冲区,在检测到符合报警条件的事件发生的预设时间段后,当缓冲区中存在8:05抓拍的图片时,从缓冲区中,从8:05抓拍的图片和在8:05前/后2分钟之内抓拍的图片中提取至少两张图片,当缓冲区中未存在8:05抓拍的图片时,从8:05前/后2分钟之内抓拍的图片中提取至少两张图片。
相对于上述方法实施例,本申请实施例还提供了一种报警影像记录装置,应用于视频采集设备,如图3所示,该装置可以包括:
缓存模块201,用于根据预设频率抓拍图片,并将每次抓拍到的图片缓存至所述视频采集设备的缓冲区;
提取模块202,用于在检测到符合报警条件的事件发生的预设时间段后,根据事件发生的时间点,从所述缓冲区中提取至少两张图片;
保存模块203,用于将所述至少两张图片确定为报警影像并保存至所述视频采集设备或云存储服务器。
本申请实施例中,根据预设频率抓拍图片,并将每次抓拍到的图片缓存至视频采集设备的缓冲区,在检测到符合报警条件的事件发生的预设时间段后,根据事件发生的时间点,通过从缓冲区中提取至少两张图片的方式,将至少两张图片确定为报警影像并保存至视频采集设备或云存储服务器。由于包括至少两张图片的报警影像,相比于单张图片的报警影像,所提供的信息更加丰富,提高了报警影像展示事件的完整性;相比于视频的报警影像,数据量减少了至少一个数量级,降低了报警影像的数据量,因此,包含至少两张图片的报警影像在降低报警影像的数据量的同时提高展示完整性,达到较好的记录效果。
具体的,所述提取模块202,可以具体用于:
在检测到符合报警条件的事件发生的预设时间段后,从所述缓冲区中,提取所对应标识信息与所述事件发生的时间点的时间间隔在预定范围内的至少两张图片。
进一步,如图4所示,本申请提供的一种报警影像记录装置,应用于视频采集设备,该装置可以包括:
缓存模块201,用于根据预设频率抓拍图片,并将每次抓拍到的图片缓存至所述视频采集设备的缓冲区;
判断单元2021,用于在检测到符合报警条件的事件发生的预设时间段后,判断所述缓冲区中是否存在目标图片,其中,所述目标图片为抓拍时间点与事件发生的时间点相同的图片,如果是,触发第一提取单元2022,如果否,触发第二提取单元2023;
所述第一提取单元2022,用于从所述缓冲区中,提取所述目标图片,以及第一预定张数的图片和第二预定张数的图片,其中,所述第一预定张数的图片为抓拍时间点在所述事件发生的时间点之前的图片,所述第二预定张数的图片为抓拍时间点在所述事件发生的时间点之后的图片;
所述第二提取单元2023,用于从所述缓冲区中提取所述第一预定张数的图片和所述第二预定张数的图片。
保存模块203,用于将所述至少两张图片确定为报警影像并保存至所述视频采集设备或云存储服务器。
由此,在检测到符合报警条件的事件发生的预设时间段后,通过判断缓冲区中是否存在目标图片的方式,灵活的从缓冲区中提取与符合报警条件的事件相关的至少两张图片。
具体的,所述第一预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之前的图片中,抓拍时间点最接近于所述事件发生的时间点的图片;
所述第二预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之后的图片中,抓拍时间点最接近于所述事件的发生时间点的图片。
具体的,所述第一预定张数为1张,所述第二预定张数为3张,其中,所述第二预定张数的图片为顺次抓拍到的图片。
本申请实施例还提供了一种电子设备,如图5所示,包括:处理器501、通信接口502、存储器503和通信总线504,其中,处理器501,通信接口502,存储器503通过通信总线504完成相互间的通信,
存储器503,用于存放计算机程序;
处理器501,用于执行存储器503上所存放的程序时,实现上述报警影像记录方法步骤,方法包括:
根据预设频率抓拍图片,并将每次抓拍到的图片缓存至所述视频采集设备的缓冲区;
在检测到符合报警条件的事件发生的预设时间段后,根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片;
将所述至少两张图片确定为报警影像,并保存至所述视频采集设备或云存储服务器。
在本申请的一种实现方式中,所述根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片,包括:
判断所述缓冲区中是否存在目标图片,其中,所述目标图片为抓拍时间点与所述事件发生的时间点相同的图片;
当判断结果为是时,从所述缓冲区中,提取所述目标图片,以及第一预定张数的图片和第二预定张数的图片,其中,所述第一预定张数的图片为抓拍时间点在所述事件发生的时间点之前的图片,所述第二预定张数的图片为抓拍时间点在所述事件发生的时间点之后的图片;当判断结果为否时,从所述缓冲区中提取所述第一预定张数的图片和所述第二预定张数的图片。
在本申请的一种实现方式中,所述根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片,包括:
从所述缓冲区中,提取所对应标识信息与所述事件发生的时间点的时间间隔在预定范围内的至少两张图片。
在本申请的一种实现方式中,所述第一预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之前的图片中,抓拍时间点最接近于所述事件发生的时间点的图片;
所述第二预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之后的图片中,抓拍时间点最接近于所述事件的发生时间点的图片。
在本申请的一种实现方式中,所述第一预定张数为1张,所述第二预定张数为3张,其中,所述第二预定张数的图片为顺次抓拍到的图片。
本申请实施例中,根据预设频率抓拍图片,并将每次抓拍到的图片缓存至视频采集设备的缓冲区,在检测到符合报警条件的事件发生的预设时间段后,根据事件发生的时间点,通过从缓冲区中提取至少两张图片的方式,将至少两张图片确定为报警影像并保存至视频采集设备或云存储服务器。由于包括至少两张图片的报警影像,相比于单张图片的报警影像,所提供的信息更加丰富,提高了报警影像展示事件的完整性;相比于视频的报警影像,数据量减少了至少一个数量级,降低了报警影像的数据量,因此,包含至少两张图片的报警影像在降低报警影像的数据量的同时提高展示完整性,达到较好的记录效果。
本申请实施例还提供了一种计算机可读存储介质,所述存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述报警影像记录方法步骤,方法包括:
根据预设频率抓拍图片,并将每次抓拍到的图片缓存至所述视频采集设备的缓冲区;
在检测到符合报警条件的事件发生的预设时间段后,根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片;
将所述至少两张图片确定为报警影像,并保存至所述视频采集设备或云存储服务器。
在本申请的一种实现方式中,所述根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片,包括:
判断所述缓冲区中是否存在目标图片,其中,所述目标图片为抓拍时间点与所述事件发生的时间点相同的图片;
当判断结果为是时,从所述缓冲区中,提取所述目标图片,以及第一预定张数的图片和第二预定张数的图片,其中,所述第一预定张数的图片为抓拍时间点在所述事件发生的时间点之前的图片,所述第二预定张数的图片为抓拍时间点在所述事件发生的时间点之后的图片;当判断结果为否时,从所述缓冲区中提取所述第一预定张数的图片和所述第二预定张数的图片。
在本申请的一种实现方式中,所述根据所述事件发生的时间点,从所述 缓冲区中提取至少两张图片,包括:
从所述缓冲区中,提取所对应标识信息与所述事件发生的时间点的时间间隔在预定范围内的至少两张图片。
在本申请的一种实现方式中,所述第一预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之前的图片中,抓拍时间点最接近于所述事件发生的时间点的图片;
所述第二预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之后的图片中,抓拍时间点最接近于所述事件的发生时间点的图片。
在本申请的一种实现方式中,所述第一预定张数为1张,所述第二预定张数为3张,其中,所述第二预定张数的图片为顺次抓拍到的图片。
本申请实施例中,根据预设频率抓拍图片,并将每次抓拍到的图片缓存至视频采集设备的缓冲区,在检测到符合报警条件的事件发生的预设时间段后,根据事件发生的时间点,通过从缓冲区中提取至少两张图片的方式,将至少两张图片确定为报警影像并保存至视频采集设备或云存储服务器。由于包括至少两张图片的报警影像,相比于单张图片的报警影像,所提供的信息更加丰富,提高了报警影像展示事件的完整性;相比于视频的报警影像,数据量减少了至少一个数量级,降低了报警影像的数据量,因此,包含至少两张图片的报警影像在降低报警影像的数据量的同时提高展示完整性,达到较好的记录效果。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于图3所示的报警影像记录装置实施例、图5所示的电子设备实施例以及计算机可读存储介质实施例而言,由于其基本相似于图1所示的报警影像记录方法实施例,所以描述的比较简单,相关之处参见图1所示的报警影像记录方法实施例的部分说明即可。
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。

Claims (12)

  1. 一种报警影像记录方法,其特征在于,应用于视频采集设备,所述方法包括:
    根据预设频率抓拍图片,并将每次抓拍到的图片缓存至所述视频采集设备的缓冲区;
    在检测到符合报警条件的事件发生的预设时间段后,根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片;
    将所述至少两张图片确定为报警影像,并保存至所述视频采集设备或云存储服务器。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片,包括:
    判断所述缓冲区中是否存在目标图片,其中,所述目标图片为抓拍时间点与所述事件发生的时间点相同的图片;
    当判断结果为是时,从所述缓冲区中,提取所述目标图片,以及第一预定张数的图片和第二预定张数的图片,其中,所述第一预定张数的图片为抓拍时间点在所述事件发生的时间点之前的图片,所述第二预定张数的图片为抓拍时间点在所述事件发生的时间点之后的图片;当判断结果为否时,从所述缓冲区中提取所述第一预定张数的图片和所述第二预定张数的图片。
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片,包括:
    从所述缓冲区中,提取所对应标识信息与所述事件发生的时间点的时间间隔在预定范围内的至少两张图片。
  4. 根据权利要求2所述的方法,其特征在于,所述第一预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之前的图片中,抓拍时间点最接近于所述事件发生的时间点的图片;
    所述第二预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之后的图片中,抓拍时间点最接近于所述事件的发生时间点的图片。
  5. 根据权利要求4所述的方法,其特征在于,所述第一预定张数为1张, 所述第二预定张数为3张,其中,所述第二预定张数的图片为顺次抓拍到的图片。
  6. 一种报警影像记录装置,其特征在于,应用于视频采集设备,所述装置包括:
    缓存模块,用于根据预设频率抓拍图片,并将每次抓拍到的图片缓存至所述视频采集设备的缓冲区;
    提取模块,用于在检测到符合报警条件的事件发生的预设时间段后,根据所述事件发生的时间点,从所述缓冲区中提取至少两张图片;
    保存模块,用于将所述至少两张图片确定为报警影像,并保存至所述视频采集设备或云存储服务器。
  7. 根据权利要求6所述的装置,其特征在于,所述提取模块,包括:
    判断单元,用于在检测到符合报警条件的事件发生的预设时间段后,判断所述缓冲区中是否存在目标图片,其中,所述目标图片为抓拍时间点与所述事件发生的时间点相同的图片,如果是,触发第一提取单元,如果否,触发第二提取单元;
    所述第一提取单元,用于从所述缓冲区中,提取所述目标图片,以及第一预定张数的图片和第二预定张数的图片,其中,所述第一预定张数的图片为抓拍时间点在所述事件发生的时间点之前的图片,所述第二预定张数的图片为抓拍时间点在所述事件发生的时间点之后的图片;
    所述第二提取单元,用于从所述缓冲区中提取所述第一预定张数的图片和所述第二预定张数的图片。
  8. 根据权利要求6所述的装置,其特征在于,所述提取模块,具体用于:
    在检测到符合报警条件的事件发生的预设时间段后,从所述缓冲区中,提取所对应标识信息与所述事件发生的时间点的时间间隔在预定范围内的至少两张图片。
  9. 根据权利要求7所述的装置,其特征在于,所述第一预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之前的图片中,抓拍时间点最接近于所述事件发生的时间点的图片;
    所述第二预定张数的图片至少包括:抓拍时间点在所述事件发生的时间点之后的图片中,抓拍时间点最接近于所述事件的发生时间点的图片。
  10. 根据权利要求9所述的装置,其特征在于,所述第一预定张数为1张,所述第二预定张数为3张,其中,所述第二预定张数的图片为顺次抓拍到的图片。
  11. 一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;
    存储器,用于存放计算机程序;
    处理器,用于执行存储器上所存放的程序时,实现权利要求1-5任一所述的方法步骤。
  12. 一种计算机可读存储介质,其特征在于,所述存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-5任一所述的方法步骤。
PCT/CN2017/094952 2016-08-03 2017-07-28 一种报警影像记录方法及装置 WO2018024165A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US16/322,620 US20190174089A1 (en) 2016-08-03 2017-07-28 Method and device for storing warning image
EP17836347.9A EP3496396A4 (en) 2016-08-03 2017-07-28 METHOD AND DEVICE FOR STORING A WARNING PICTURE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610626351.2A CN107690051A (zh) 2016-08-03 2016-08-03 一种报警影像记录方法及装置
CN201610626351.2 2016-08-03

Publications (1)

Publication Number Publication Date
WO2018024165A1 true WO2018024165A1 (zh) 2018-02-08

Family

ID=61072743

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/094952 WO2018024165A1 (zh) 2016-08-03 2017-07-28 一种报警影像记录方法及装置

Country Status (4)

Country Link
US (1) US20190174089A1 (zh)
EP (1) EP3496396A4 (zh)
CN (1) CN107690051A (zh)
WO (1) WO2018024165A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112885102B (zh) * 2019-11-29 2022-10-14 浙江宇视科技有限公司 图像拍摄方法、装置、设备及存储介质
CN111405222B (zh) * 2019-12-12 2022-06-03 杭州海康威视系统技术有限公司 视频告警方法、视频告警系统及告警图片的获取方法
US11887448B2 (en) 2021-02-18 2024-01-30 Dice Corporation Digital video alarm guard tour monitoring computer system
US11790764B2 (en) 2021-04-16 2023-10-17 Dice Corporation Digital video alarm situational monitoring computer system
US11741825B2 (en) * 2021-04-16 2023-08-29 Dice Corporation Digital video alarm temporal monitoring computer system
US11688273B2 (en) 2021-04-16 2023-06-27 Dice Corporation Digital video alarm monitoring computer system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751032A (zh) * 2008-12-16 2010-06-23 中兴通讯股份有限公司 自动控制系统的管理方法及系统、视频监控系统
CN101867792A (zh) * 2010-05-14 2010-10-20 成都基业长青科技有限责任公司 视频录像缓冲的实时传输方法
CN102254395A (zh) * 2011-06-07 2011-11-23 北京引创科技有限责任公司 基于智能视频分析的物品失窃检测与报警装置和方法
CN103886755A (zh) * 2014-04-04 2014-06-25 姜廷顺 具有闯红灯拍照功能的路口异常停车快速报警系统及方法

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9404018D0 (en) * 1994-03-02 1994-04-20 Toad Innovations Ltd Security system
US20030095688A1 (en) * 2001-10-30 2003-05-22 Kirmuss Charles Bruno Mobile motor vehicle identification
US20040032498A1 (en) * 2002-06-19 2004-02-19 Jeremy Wyn-Harris Internet camera
US20070217761A1 (en) * 2006-03-07 2007-09-20 Coban Research And Technologies, Inc. Method for video/audio recording using unrestricted pre-event/post-event buffering with multiple bit and frame rates buffer files
CN101753938A (zh) * 2008-12-22 2010-06-23 北京中星微电子有限公司 视频监控系统中视频数据存储的方法、系统及设备
US8417090B2 (en) * 2010-06-04 2013-04-09 Matthew Joseph FLEMING System and method for management of surveillance devices and surveillance footage
CN102143351B (zh) * 2010-08-06 2014-11-19 华为软件技术有限公司 监控录像的定位方法、图片抓拍方法,及装置和系统
CN102833511A (zh) * 2012-09-18 2012-12-19 浙江红苹果电子有限公司 一种基于sdi高清视频的存储方法及其装置
US9734681B2 (en) * 2013-10-07 2017-08-15 Ubiquiti Networks, Inc. Cloud-based video monitoring
US20150229884A1 (en) * 2014-02-07 2015-08-13 Abb Technology Ag Systems and methods concerning integrated video surveillance of remote assets
CN105007442A (zh) * 2015-07-22 2015-10-28 深圳市万姓宗祠网络科技股份有限公司 一种连续记录视频、影像的标记方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751032A (zh) * 2008-12-16 2010-06-23 中兴通讯股份有限公司 自动控制系统的管理方法及系统、视频监控系统
CN101867792A (zh) * 2010-05-14 2010-10-20 成都基业长青科技有限责任公司 视频录像缓冲的实时传输方法
CN102254395A (zh) * 2011-06-07 2011-11-23 北京引创科技有限责任公司 基于智能视频分析的物品失窃检测与报警装置和方法
CN103886755A (zh) * 2014-04-04 2014-06-25 姜廷顺 具有闯红灯拍照功能的路口异常停车快速报警系统及方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3496396A4 *

Also Published As

Publication number Publication date
CN107690051A (zh) 2018-02-13
EP3496396A1 (en) 2019-06-12
EP3496396A4 (en) 2019-07-24
US20190174089A1 (en) 2019-06-06

Similar Documents

Publication Publication Date Title
WO2018024165A1 (zh) 一种报警影像记录方法及装置
EP2407943B1 (en) Method for event initiated video capturing and a video camera for capture event initiated video
US20160112287A1 (en) Storing and analyzing network traffic data
WO2020094091A1 (zh) 一种图像抓拍方法、监控相机及监控系统
US10372995B2 (en) System and method for previewing video
US9262899B2 (en) Method, device and system for implementing video recording retrieval
CN105844832B (zh) 基于rfid与摄像头的物品监控取证系统及方法
EP3654641B1 (en) Method and apparatus for processing requests for thumbnail images in a video surveillance system
US20150098632A1 (en) Monitoring system, monitoring method, monitoring program, and recording medium in which monitoring program is recorded
CN107959812B (zh) 监控数据的存储方法、装置、系统与路由设备
KR20110132884A (ko) 다중 동영상 색인 및 검색이 가능한 지능형 영상 정보 검색 장치 및 방법
US20140036073A1 (en) Method and system for anonymous video analytics processing
CN111405222B (zh) 视频告警方法、视频告警系统及告警图片的获取方法
KR101444006B1 (ko) Ip 카메라의 클라우드 영상 저장 시스템
WO2021115348A1 (zh) 提供预览功能的云存储系统及预览方法、装置
KR20110023634A (ko) 썸네일 이미지 생성 장치 및 이를 이용한 썸네일 이미지 출력 방법
JP2009200757A (ja) 映像データ処理装置、プログラム及び方法
US9185175B1 (en) System and method for optimizing visual session recording for user account management in a computing environment
WO2014180247A1 (zh) 信息采集启动方法、装置和移动终端
KR101049574B1 (ko) 북마크를 이용한 이벤트 처리 장치 및 방법
JP2007233495A (ja) 分散型画像処理装置
KR20130103949A (ko) 유무선통신망을 이용한 블랙박스의 영상데이터 전송 장치 및 방법
CN109962944A (zh) 一种媒体数据存储方法、存储装置及电子设备
KR101984069B1 (ko) 지능형 영상 기반 시설물 진동 감시 방법
JP2012511194A (ja) 画像の動き検出方法および装置

Legal Events

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

Ref document number: 17836347

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017836347

Country of ref document: EP

Effective date: 20190304