Monitoring video previewing method and device

文档序号:1579910 发布日期:2020-01-31 浏览:6次 中文

阅读说明:本技术 监控录像预览方法及装置 (Monitoring video previewing method and device ) 是由 王陈 于 2018-07-20 设计创作,主要内容包括:本申请实施例提供一种监控录像预览方法及装置。该方法包括:用户终端响应用户操作,向录像存储设备发送监控录像预览请求,其中,监控录像预览请求中包括有待预览的监控录像以及所述监控录像中每个关键帧的时间序列;录像存储设备根据监控录像预览请求查找对应的监控录像以及监控录像的多个关键帧并发送给用户终端;用户终端对监控录像进行播放,并在播放过程中对多个关键帧进行解码以获取对应的多张预览图片;将多张预览图片以预览轴形式呈现在监控录像的当前播放节点上。由此,通过以预览轴形式呈现多张预览图片,预览信息更多,帮助用户快速预览监控录像,更快查找到兴趣事件,此外本申请对计算性能消耗较少,能够适用于不同的终端平台。(The embodiment of the application provides monitoring video previewing methods and devices, the method comprises the steps that a user terminal responds to user operation and sends a monitoring video previewing request to a video storage device, the monitoring video previewing request comprises a monitoring video to be previewed and a time sequence of each key frame in the monitoring video, the video storage device searches a corresponding monitoring video and a plurality of key frames of the monitoring video according to the monitoring video previewing request and sends the monitoring video and the plurality of key frames to the user terminal, the user terminal plays the monitoring video and decodes the plurality of key frames in the playing process to obtain a plurality of corresponding previewing pictures, and the plurality of previewing pictures are displayed on a current playing node of the monitoring video in a previewing shaft mode.)

1, A monitoring video previewing method, characterized in that, it is applied to a monitoring video previewing system, the monitoring video previewing system includes a video storage device and a user terminal which are connected with each other by communication, the method includes:

the user terminal responds to user operation and sends a monitoring video preview request to the video storage device, wherein the monitoring video preview request comprises a monitoring video to be previewed and a plurality of time sequences in the monitoring video;

the video storage device searches for the monitoring video to be previewed and the key frame corresponding to each time sequence according to the monitoring video previewing request and sends the monitoring video and each key frame to the user terminal;

the user terminal decodes each key frame to obtain a plurality of corresponding preview pictures;

and presenting the plurality of preview pictures on the current playing node of the monitoring video in the form of preview axes.

2. The method for previewing a surveillance video according to claim 1, wherein the step of sending a request for previewing a surveillance video to the video storage device by the user terminal in response to a user operation comprises:

responding to user operation, and determining a monitoring video to be previewed;

acquiring a current preview image mode and acquiring a plurality of time sequences in the monitoring video according to the current preview image mode, wherein the current preview image mode is a fixed time interval preview mode or a dynamic video segment preview mode;

and sending a monitoring video preview request to the video storage equipment according to the determined monitoring video to be previewed and the plurality of time sequences in the monitoring video.

3. The method for previewing a video recording according to claim 2, wherein the step of obtaining the time sequence corresponding to each preview image according to the current preview image mode comprises:

if the current preview mode is a fixed-duration interval preview mode, generating a plurality of corresponding th time sequences according to the fixed-duration interval preview mode, wherein a fixed-duration interval is arranged between every two adjacent th time sequences;

and if the current preview image mode is a dynamic video segment preview mode, acquiring a plurality of second time sequences in the monitoring video from the video storage device, wherein each second time sequence comprises at least motion frames.

4. The method of claim 3, wherein before the step of sending a preview request for a video recording to the video storage device by the user terminal in response to a user operation, the method further comprises:

the video storage equipment detects the motion frames in the monitoring video to obtain the video recording time of each motion frame;

and generating a plurality of second time sequences in the monitoring video according to the video recording time of each motion frame.

5. The method for previewing a video recording according to claim 2, wherein said step of obtaining a current preview graphic mode comprises:

searching user configuration information, and acquiring a current preview image mode from the user configuration information; or

And acquiring a preview image mode matched with the monitoring video from the video storage equipment as a current preview image mode.

6. The method of claim 5, wherein before the step of sending a preview request for a video recording to the video storage device by the user terminal in response to a user operation, the method further comprises:

the video storage equipment detects the dynamic examination video segment information in each monitoring video and determines a preview image mode matched with each monitoring video according to the detected dynamic examination video segment information;

and storing the preview image mode matched with each monitoring video.

7. The method for previewing the surveillance video according to claim 1, wherein the step of the video storage device searching the surveillance video to be previewed and the key frames corresponding to each time sequence according to the request for previewing the surveillance video and sending the surveillance video and each key frame to the user terminal comprises;

acquiring a monitoring video of the corresponding IPC equipment and a plurality of time sequences in the monitoring video according to the monitoring video preview request;

extracting a plurality of corresponding key frames from the monitoring video based on each time sequence;

and sending the monitoring video and the plurality of key frames to the user terminal.

8. The method for previewing a video recording according to claim 1, wherein said step of decoding each of said key frames to obtain a plurality of preview pictures comprises:

acquiring a plurality of priority key frames behind a current playing node in advance, and decoding the plurality of priority key frames to acquire a plurality of corresponding preview pictures;

and judging whether the number of the acquired preview pictures reaches a preset threshold value, if not, continuously acquiring a plurality of second priority key frames in front of the current playing node, and decoding the plurality of second priority key frames to acquire a plurality of corresponding preview pictures.

9, A monitoring video previewing method, applied to a user terminal, the method comprising:

responding to user operation, and sending a monitoring video preview request to a video storage device so that the video storage device searches a monitoring video to be previewed and a plurality of key frames of the monitoring video according to the monitoring video preview request, wherein the monitoring video preview request comprises the monitoring video to be previewed and a plurality of time sequences in the monitoring video;

receiving the monitoring video to be previewed and a plurality of key frames of the monitoring video;

decoding each key frame to obtain a plurality of corresponding preview pictures;

and presenting the plurality of preview pictures on the current playing node of the monitoring video in the form of preview axes.

10, A monitoring video previewing method, applied to a video storage device, the method comprising:

receiving a monitoring video preview request sent by a user terminal, wherein the monitoring video preview request comprises a monitoring video to be previewed and a plurality of time sequences in the monitoring video;

searching for a monitoring video to be previewed and key frames corresponding to each time sequence according to the monitoring video previewing request;

and sending the monitoring video and each key frame to the user terminal so that the user terminal decodes each key frame to obtain a plurality of corresponding preview pictures and then presents the preview pictures on a current playing node of the monitoring video in a preview axis form.

A monitoring video previewing apparatus of , for use in a user terminal, the apparatus comprising:

an sending module, configured to send, in response to a user operation, a monitoring video preview request to a video storage device, so that the video storage device searches for a monitoring video to be previewed and a plurality of key frames of the monitoring video according to the monitoring video preview request, where the monitoring video preview request includes the monitoring video to be previewed and a plurality of time sequences in the monitoring video;

, a receiving module, configured to receive the surveillance video to be previewed and a plurality of key frames of the surveillance video;

the decoding module is used for decoding each key frame to obtain a plurality of corresponding preview pictures;

and the presentation module is used for presenting the preview pictures on the current playing node of the monitoring video in a preview axis form.

A surveillance video preview apparatus of the type described in reference to claim 12 and , for use with a video storage device, said apparatus comprising:

the second receiving module is used for receiving a monitoring video preview request sent by a user terminal, wherein the monitoring video preview request comprises a monitoring video to be previewed and a plurality of time sequences in the monitoring video;

the searching module is used for searching the monitoring videos to be previewed and the key frames corresponding to each time sequence according to the monitoring video previewing request;

and the second sending module is used for sending the monitoring video and each key frame to the user terminal so that the user terminal decodes each key frame to obtain a plurality of corresponding preview pictures and then presents the plurality of preview pictures on a current playing node of the monitoring video in a preview axis form.

Technical Field

The application relates to the field of video monitoring, in particular to monitoring video previewing methods and devices.

Background

In the field of video monitoring, when a user queries a monitoring video of an interest event in the monitoring video, the user often queries the monitoring video by the time point of the occurrence of the interest event. However, the query process can be time consuming when the user does not know the specific time at which the event occurred. At this time, the conventional processing method of the user is to drag the time axis to play the monitoring video for searching, or to browse and query in fast forward and fast backward manners, and the two searching manners have low efficiency. Therefore, under the condition that the user does not know the occurrence time of the interesting event, the video recording search cannot be carried out quickly and conveniently.

Disclosure of Invention

In order to overcome the above-mentioned deficiencies in the prior art, the present application aims to provide methods and apparatuses for previewing a monitor picture, so as to solve or improve the above-mentioned problems.

In order to achieve the above purpose, the embodiments of the present application employ the following technical solutions:

, an embodiment of the present application provides methods for previewing a surveillance video, which are applied to a system for previewing a surveillance video, where the system for previewing a surveillance video includes a video storage device and a user terminal that are communicatively connected to each other, and the method includes:

the user terminal responds to user operation and sends a monitoring video preview request to the video storage device, wherein the monitoring video preview request comprises a monitoring video to be previewed and a plurality of time sequences in the monitoring video;

the video storage device searches for the monitoring video to be previewed and the key frame corresponding to each time sequence according to the monitoring video previewing request and sends the monitoring video and each key frame to the user terminal;

the user terminal decodes each key frame to obtain a plurality of corresponding preview pictures;

and presenting the plurality of preview pictures on the current playing node of the monitoring video in the form of preview axes.

Optionally, the step of sending, by the user terminal, a monitoring video preview request to the video storage device in response to a user operation includes:

the user terminal responds to user operation and determines a monitoring video to be previewed;

acquiring a current preview image mode and acquiring a plurality of time sequences in the monitoring video according to the current preview image mode, wherein the current preview image mode is a fixed time interval preview mode or a dynamic video segment preview mode;

and sending a monitoring video preview request to the video storage equipment according to the determined monitoring video to be previewed and the plurality of time sequences in the monitoring video.

Optionally, the step of obtaining the time sequence corresponding to each preview image according to the current preview image mode includes:

if the current preview mode is a fixed-duration interval preview mode, generating a plurality of corresponding th time sequences according to the fixed-duration interval preview mode, wherein a fixed-duration interval is arranged between every two adjacent th time sequences;

and if the current preview image mode is a dynamic video segment preview mode, acquiring a plurality of second time sequences in the monitoring video from the video storage device, wherein each second time sequence comprises at least motion frames.

Optionally, before the step of sending, by the user terminal, a monitoring video preview request to the video storage device in response to a user operation, the method further includes:

the video storage equipment detects the motion frames in the monitoring video to obtain the video recording time of each motion frame;

and generating a plurality of second time sequences in the monitoring video according to the video recording time of each motion frame.

Optionally, the step of obtaining the current preview icon mode includes:

searching user configuration information, and acquiring a current preview image mode from the user configuration information; or

And acquiring a preview image mode matched with the monitoring video from the video storage equipment as a current preview image mode.

Optionally, before the step of sending, by the user terminal, a monitoring video preview request to the video storage device in response to a user operation, the method further includes:

the video storage equipment detects the dynamic examination video segment information in each monitoring video and determines a preview image mode matched with each monitoring video according to the detected dynamic examination video segment information;

and storing the preview image mode matched with each monitoring video.

Optionally, the step of the video storage device searching for the surveillance video to be previewed and the key frame corresponding to each time sequence according to the surveillance video preview request and sending the surveillance video and each key frame to the user terminal includes;

the video storage equipment acquires the corresponding monitoring video of the IPC equipment and a plurality of time sequences in the monitoring video according to the monitoring video preview request;

extracting a plurality of corresponding key frames from the monitoring video based on each time sequence;

and sending the monitoring video and the plurality of key frames to the user terminal.

Optionally, the step of decoding each key frame to obtain a plurality of corresponding preview pictures includes:

acquiring a plurality of priority key frames behind a current playing node in advance, and decoding the plurality of priority key frames to acquire a plurality of corresponding preview pictures;

and judging whether the number of the acquired preview pictures reaches a preset threshold value, if not, continuously acquiring a plurality of second priority key frames in front of the current playing node, and decoding the plurality of second priority key frames to acquire a plurality of corresponding preview pictures.

In a second aspect, an embodiment of the present application further provides monitoring video previewing methods, which are applied to a user terminal, where the method includes:

responding to user operation, and sending a monitoring video preview request to a video storage device so that the video storage device searches a monitoring video to be previewed and a plurality of key frames of the monitoring video according to the monitoring video preview request, wherein the monitoring video preview request comprises the monitoring video to be previewed and a plurality of time sequences in the monitoring video;

receiving the monitoring video to be previewed and a plurality of key frames of the monitoring video, and decoding each key frame to obtain a plurality of corresponding preview pictures;

and presenting the plurality of preview pictures on the current playing node of the monitoring video in the form of preview axes.

In a third aspect, an embodiment of the present application further provides monitoring video previewing methods, which are applied to a video storage device, where the method includes:

receiving a monitoring video preview request sent by a user terminal, wherein the monitoring video preview request comprises a monitoring video to be previewed and a plurality of time sequences in the monitoring video;

searching for a monitoring video to be previewed and key frames corresponding to each time sequence according to the monitoring video previewing request;

and sending the monitoring video and each key frame to the user terminal so that the user terminal decodes each key frame to obtain a plurality of corresponding preview pictures and then presents the preview pictures on a current playing node of the monitoring video in a preview axis form.

In a fourth aspect, an embodiment of the present application further provides kinds of apparatuses for previewing a surveillance video, which are applied to a user terminal, and the apparatuses include:

an sending module, configured to send, in response to a user operation, a monitoring video preview request to a video storage device, so that the video storage device searches for a monitoring video to be previewed and a plurality of key frames of the monitoring video according to the monitoring video preview request, where the monitoring video preview request includes the monitoring video to be previewed and a plurality of time sequences in the monitoring video;

, a receiving module, configured to receive the surveillance video to be previewed and a plurality of key frames of the surveillance video;

the decoding module is used for decoding each key frame to obtain a plurality of corresponding preview pictures;

and the presentation module is used for presenting the preview pictures on the current playing node of the monitoring video in a preview axis form.

In a fifth aspect, an embodiment of the present application further provides kinds of apparatuses for previewing a monitor video, which are applied to a video storage device, where the apparatuses include:

the second receiving module is used for receiving a monitoring video preview request sent by a user terminal, wherein the monitoring video preview request comprises a monitoring video to be previewed and a plurality of time sequences in the monitoring video;

the searching module is used for searching the monitoring videos to be previewed and the key frames corresponding to each time sequence according to the monitoring video previewing request;

and the second sending module is used for sending the monitoring video and each key frame to the user terminal so that the user terminal decodes each key frame to obtain a plurality of corresponding preview pictures and then presents the plurality of preview pictures on a current playing node of the monitoring video in a preview axis form.

In a sixth aspect, this embodiment of the present application further provides readable storage media, where the readable storage media have stored thereon a computer program, and the computer program, when executed, controls the video recording storage device or the user terminal to implement the foregoing monitoring video previewing method.

Compared with the prior art, the method has the following beneficial effects:

according to the monitoring video previewing method and device provided by the embodiment of the application, firstly, a user terminal responds to user operation and sends a monitoring video previewing request to video storage equipment, wherein the monitoring video previewing request comprises a monitoring video to be previewed and a time sequence of each key frame in the monitoring video. And then, the video storage equipment searches the corresponding monitoring video and a plurality of key frames of the monitoring video according to the monitoring video preview request and sends the key frames to the user terminal. And then, the user terminal plays the monitoring video and decodes the plurality of key frames in the playing process to obtain a plurality of corresponding preview pictures. And finally, presenting the plurality of preview pictures on the current playing node of the monitoring video in the form of preview axes. Therefore, the preview information is more by presenting the plurality of preview pictures in the form of the preview axis, the user is helped to quickly preview the monitoring video and find the interesting event more quickly, and in addition, the application consumes less calculation performance and can be suitable for different terminal platforms.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and it will be apparent to those skilled in the art that other related drawings can be obtained from the drawings without inventive effort.

Fig. 1 is an interaction diagram of a surveillance video preview system according to an embodiment of the present application;

fig. 2 is a schematic flowchart illustrating a surveillance video preview method according to an embodiment of the present application;

FIG. 3 is a flowchart illustrating the sub-steps included in step S110 shown in FIG. 2;

FIG. 4 is a representation of preview axes provided by an embodiment of the present application;

FIG. 5 is a schematic representation of another preview axis provided by an embodiment of the present application;

fig. 6 is a schematic diagram of a preview image obtaining method according to an embodiment of the present application;

fig. 7 is another flowcharts illustrating a surveillance video preview method according to an embodiment of the present application;

fig. 8 is another flowcharts illustrating a surveillance video preview method according to an embodiment of the present application;

FIG. 9 is a functional block diagram of a surveillance video preview device corresponding to of FIG. 7 according to an embodiment of the present application;

fig. 10 is a functional block diagram of a second apparatus for previewing a surveillance video according to an embodiment of the present application, corresponding to fig. 8.

The icon comprises 10 parts of a monitoring video previewing system, 100 parts of a user terminal, 110 parts of th monitoring video previewing devices, 111 parts of th sending modules, 112 parts of th receiving modules, 113 parts of decoding modules, 114 parts of presenting modules, 200 parts of video storage equipment, 210 parts of second monitoring video previewing devices, 211 parts of second receiving modules, 212 parts of searching modules, 213 parts of second sending modules and 300 parts of IPC equipment.

Detailed Description

In the field of video monitoring, when a user queries a monitoring video of an interest event in the monitoring video, the user often queries the monitoring video by the time point of the occurrence of the interest event. However, the query process can be time consuming when the user does not know the specific time at which the event occurred. At this time, the conventional processing method of the user is to drag the time axis to play the monitoring video for searching, or to browse and query in fast forward and fast backward manners, and the two searching manners have low efficiency. Therefore, under the condition that the user does not know the occurrence time of the interesting event, the video recording search cannot be carried out quickly and conveniently.

In order to solve the above problems, the inventor of the present application finds that, in the process of implementing the technical solution provided by the embodiment of the present application, is implemented by acquiring a panoramic image at regular time and converting the panoramic image into an overhead view preview image, and specifically, by quickly previewing a video recording user's operation through a sliding progress bar, the user can quickly preview the video on any platform, so that the user can have sufficient and global confirmations about scenes and events at the moment, and the problem that the user is difficult to quickly locate the occurrence moment of a historical video through the events or the scenes is solved.

However, the inventor researches and discovers that only preview images are presented in the process of dragging the progress bar by adopting the method, and the presented preview information is less, in addition, preview images are collected every specified time (for example, 10 seconds), so that the method has the limitation, when the time point of interest occurs in 12 seconds, the time point of interest cannot be found through the preview images, in addition, the application range of the preview method for the panoramic camera is limited.

In addition, another current practice is to extract motion frames from video files, filter out static and unchanging frames, and enable the user to quickly preview the moving frames images containing moving objects in the video.

The inventor researches and discovers that the method has a plurality of defects, such as high operation complexity of extracting dynamic frames from a video source and filtering the dynamic frames, high performance consumption on the client and inapplicability to the mobile client. In addition, when there is frequent motion in the video source, the amount of information of the motion frame is small, and at this time, the number of preview pictures generated from the dynamic frame is too large, and instead, quick search cannot be achieved. For example, at an intersection where vehicles flow densely, a certain rail is hit, and video recording when a case occurs needs to be searched; at this time, the preview image generated according to the dynamic frame is searched, and the preview image is difficult to be searched quickly.

The above prior art solutions have drawbacks that are the results of practical and careful study of the inventor, and therefore, the discovery process of the above problems and the solutions proposed by the following embodiments of the present application for the above problems should be the contributions of the inventor to the present application in the process of the present application.

To address the above stated issues, and in order to provide a more complete description of the present embodiments of the invention, reference is now made to the accompanying drawings, which form a part hereof, and in which is shown by way of illustration, various embodiments of the invention in which may be practiced, and in which elements of the embodiments of the invention that are described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations.

Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. 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 application.

It should be noted that like reference numerals and letters refer to like items in the following figures, and thus once a item is defined in figures, it need not be further defined and explained by in subsequent figures.

Referring to fig. 1, an interactive schematic view of a surveillance video preview system 10 according to an embodiment of the present application is provided, in this embodiment, the surveillance video preview system 10 includes a user terminal 100 and a video storage device 200 that are communicatively connected to each other, and may further include at least IPC devices 300 that are communicatively connected to the video storage device 200.

In this embodiment, the video storage device 200 may be used in cooperation with the IPC device 300 or the video encoder to record the digital video transmitted through the network. Optionally, the Video storage device 200 may be an NVR (Network Video Recorder) device, and may also be a Digital Video Recorder (hard disk Video storage device), which is not limited herein. Specifically, if the NVR device is used, the NVR device can receive, store and manage the digital video code stream transmitted by the IPC device 300 through the network, thereby realizing the advantage of a distributed architecture brought by networking. Through the video storage device 200, the monitoring videos of a plurality of IPC devices 300 can be viewed, browsed, played back, managed and stored at the same time.

In this embodiment, the user terminal 100 is kinds of devices having wireless transceiving functions, and may include indoor or outdoor, handheld, wearable, or vehicle-mounted devices, for example, the user terminal 100 may be a mobile phone (mobile phone), a tablet computer (Pad), a computer with wireless transceiving functions, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self driving (self driving), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (transportation security), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and the like.

In this embodiment, the IPC (ip camera), i.e. the network camera, is a new generation camera generated by kinds of cameras combined with the conventional camera and network technology, and it can generate the collected monitoring videos to the video storage device 200 for storage, and the IPC device 300 may generally include a lens, an image, a sound sensor, an a/D converter, an image, a sound, a controller network server, an external alarm, a control interface, and the like.

Please refer to fig. 2, which is a schematic flowcharts of a monitoring video previewing method according to an embodiment of the present application, where in this embodiment, the monitoring video previewing method may be executed by the monitoring video previewing system 10 shown in fig. 1, it should be noted that the monitoring video previewing method according to the embodiment of the present application is not limited by the specific sequence shown in fig. 1 and described below, and the specific flowchart of the method is as follows:

in step S110, the user terminal 100 sends a preview request of the monitoring video to the video storage device 200 in response to the user operation.

In this embodiment, optionally, the monitoring video preview request includes a monitoring video to be previewed and a plurality of time sequences in the monitoring video, where the time sequences may be understood as time periods, each time sequence has key frames corresponding to the time sequence, and the key frames may be used to express events occurring in the time sequences, for example, the key frames may be the beginning or the end of the time period corresponding to each time sequence, and may be specifically set according to actual design requirements.

As an embodiment of , please refer to fig. 3 in combination, the step S110 can be implemented by the following sub-steps:

and a substep S111, responding to the user operation, and determining the monitoring video to be previewed.

In this embodiment, a user may select to preview a monitoring video acquired by an IPC device 300 through the display interface of the user terminal 100, and the user terminal 100 responds to a user operation to determine the monitoring video to be previewed.

And a substep S112, obtaining a current preview picture mode and obtaining a plurality of time sequences in the monitoring video according to the current preview picture mode.

Optionally, in this embodiment, according to different usage scenarios, the current preview mode may be a fixed time interval preview mode or a dynamic video segment preview mode.

For example, if a motion event occurs frequently in a scene of monitoring a video, the information amount of the motion event is small, so that a fixed time interval preview mode is used, and a user can conveniently and quickly find the video.

For another example, if the motion detection events occur infrequently in the scene of the surveillance video, the motion detection video segments are fewer at this time, and the significance of viewing the preview image of the motion detection video is greater, at this time, a preview mode of the motion detection video segments can be used, so that the user can quickly view the preview image at the motion detection time, and the user can conveniently find the interesting events.

Optionally, the mode of obtaining the current preview image mode may be by searching for user configuration information and obtaining the current preview image mode from the user configuration information, that is, the user may manually set the current preview image mode through the user terminal 100, and the user terminal 100 may obtain the current preview image mode by searching for the user configuration information.

Alternatively, the user may set the current preview image mode to the adaptive mode, that is, the user terminal 100 may obtain the preview image mode matched with the monitoring video from the video storage device 200 as the current preview image mode. Specifically, before step S110, the video storage device 200 may detect the live action video segment information in each of the surveillance videos, and determine the preview image pattern matched with each of the surveillance videos according to the detected live action video segment information. For example, if the number of times of the motion picture segments occurring in a certain surveillance picture per hour is detected to be more than five times, the fixed time interval preview mode may be used, and if the number of times of the motion picture segments occurring in a certain surveillance picture per hour is detected to be less than five times, the motion picture segment preview mode may be used. Then, the preview graph mode matched with each monitoring video is stored, so that the subsequent user terminal 100 can directly acquire the preview graph mode matched with the monitoring video needing to be previewed.

After the current preview picture mode is obtained, the user terminal 100 obtains a plurality of time sequences in the monitoring video according to the current preview picture mode.

In embodiments, if the current preview image mode is a fixed-duration-interval preview mode, generating a plurality of corresponding time sequences according to the fixed-duration-interval preview mode, where two adjacent time sequences are separated by a fixed-duration interval, where a user configuration may configure a fixed-duration interval, where the fixed-duration interval may be 1 minute, 5 minutes, 10 minutes, 30 minutes, 60 minutes, and the like, and the fixed-duration interval is 5 minutes, a monitoring time of a monitoring video is, for example, from 11:50, and if each key frame is a beginning of a time period corresponding to the time sequence, the time sequences are 11:50, 11:55, 12:00, and 12:05 … …, respectively.

In another embodiments, before the step S210, the video recording storage device 200 may further detect a motion frame in each surveillance video to obtain a video recording time of each motion frame, and generate a plurality of second time sequences in the surveillance video according to the video recording time of each motion frame, so that, if the current preview image mode is a preview mode of a motion video segment, the user terminal 100 may obtain the plurality of second time sequences in the surveillance video from the video recording storage device 200, where each of the second time sequences includes at least motion frames.

Optionally, the video storage device 200 may further detect a motion frame in each monitoring video, and the video recording time of each motion frame may be obtained by:

first, the luminance value of each frame is defined as H, i.e., the luminance of the ith frame is H (i).

And then, starting times of motion frame detection every n frames, judging whether the ith frame picture is a motion frame, calculating the brightness difference between the ith frame picture and the (i-n) th frame picture at the moment, if the brightness difference is greater than a threshold value T, namely, | H (i) (i-n) | > T, judging that the ith frame is the motion frame, acquiring the video recording time of the ith frame at the moment, continuously acquiring the next motion frame, and so on to obtain the video recording time of each motion frame.

N and T may be set according to actual conditions, for example, n may be set to 4, and the value of T directly affects the sensitivity of the motion detection, and in the case of , T may be set to 10.

It should be noted that, here, only methods for determining a motion frame are used, and those skilled in the art may also achieve the effect of detecting a motion frame by other ways, and all belong to the protection scope of the present embodiment.

Thus, through this sub-step, the user terminal 100 can acquire the time series corresponding to each key frame.

And a substep S113, sending a monitoring video preview request to the video storage device 200 according to the determined monitoring video to be previewed and the plurality of time sequences in the monitoring video.

In this embodiment, after determining the monitoring video to be previewed and the time sequence corresponding to each key frame in the monitoring video, a monitoring video previewing request is sent to the video storage device 200.

Step S120, the video storage device 200 searches for a corresponding monitoring video and a key frame corresponding to each time sequence according to the monitoring video preview request, and sends the monitoring video and each key frame to the user terminal 100.

For embodiments, first, the video storage device 200 obtains the corresponding monitoring video of the IPC device 300 and the plurality of time sequences of the monitoring video according to the monitoring video preview request, then extracts the corresponding plurality of key frames from the monitoring video based on each time sequence, and sends the monitoring video and the plurality of key frames to the user terminal 100. for example, if the current preview mode of the user terminal 100 is the fixed time interval preview mode, and the time sequences are 11:50, 11:55, 12:00, and 12:05 … …, the video storage device 200 obtains the key frames of 11:50, 11:55, 12:00, and 12:05 … … from the monitoring video respectively, and for example, if the current preview mode of the user terminal 100 is the dynamic search video segment preview mode, and the second time sequences are 10: 45, 12:00, 12:42, and 12:51, the key frames of 10: 45, 12:00, 12:42, and 12:51 are obtained from the monitoring video respectively.

In step S130, the user terminal 100 decodes each of the key frames to obtain a plurality of corresponding preview pictures.

Step S140, presenting the preview pictures on the current playing node of the monitoring video in the form of preview axes.

In this embodiment, the user terminal 100 obtains the preview picture corresponding to each key frame, and presents the plurality of preview pictures on the current playing node of the monitoring video in the form of the preview axis, so that more preview information is available, which can help the user to preview the monitoring video quickly and find the interesting event quickly.

For an example, the presentation schematic of the preview axis refers to fig. 4-5. In fig. 4-5, the playback interface, that is, the playing interface of the surveillance video, may be respectively included from top to bottom, the preview axis is used to present a plurality of preview pictures, and the time axis is used to present the surveillance time in the surveillance video.

Each preview picture represents a preview picture of time videos, the lower left corner of the preview picture is the 'start time' of the monitoring video, as shown in '12: 00' in fig. 4, the preview axis is above the time axis and supports sliding left and right and clicking to select the preview picture, by sliding the preview axis, after the sliding action is stopped, the playback interface is opened from the time point, the time axis below is synchronized to the corresponding time, by sliding the time axis below, after the sliding action is stopped, the playback interface is opened from the time point, the preview axis above is also synchronized to the preview picture at the corresponding time point, and when the user clicks to select the preview picture, the playback is opened from the time point corresponding to the preview picture.

In fig. 4, the fixed duration preview mode is shown, where the fixed duration interval is 5 minutes, and the preview axis can display, in the whole page, the preview axis is 11:50, 11:55, 12:00, 12:05, 12: 10 preview pictures. Therefore, under the condition that frequent movement exists in the monitoring video, the embodiment can select a proper time interval according to an actual application scene, and then obtain the preview picture according to the time interval and present the preview picture on the preview axis, so that a user can conveniently and quickly find out an interesting event.

In fig. 5, taking the preview mode of the motion video recording segment as an example, the color deepened segment of the time axis in fig. 5 is also the time segment of the motion video recording segment, and the time sequence corresponding to each motion video recording segment is 10: 45, 12:00, 12:42, 12:51, visible in the entire page, the preview axis may show 10: 45, 12:00, 12:42, 12: 51. Therefore, by designing a preview mode of the dynamic examination recording segment combined with the motion detection, the interest time point can be accurately positioned and the preview image can be generated, so that the user can be helped to quickly search.

Based on the design, the embodiment presents a plurality of preview pictures in the form of the preview axis, so that more preview information is provided, the user can be helped to quickly preview the monitoring video and find interesting events more quickly, and in addition, the embodiment consumes less computing performance and can be suitable for different terminal platforms.

Specifically, the user terminal 100 may obtain a plurality of priority key frames after a current playing node in advance during playing, decode the plurality of priority key frames to obtain a plurality of corresponding preview pictures, and judge whether the number of the obtained preview pictures reaches a preset threshold value in real time, if not, continue to obtain a plurality of second priority key frames before the current playing node, and decode the plurality of second priority key frames to obtain a plurality of corresponding preview pictures.

Therefore, in the playing process, the user terminal 100 may obtain N (e.g., 10) preview pictures in advance from the current playing node, so that when the user slides, the user can quickly display the subsequent preview pictures, the waiting time of the user is reduced, and the user experience is improved.

In addition, in order to prevent the storage performance of the user terminal 100 from being affected by the excessive storage of the preview pictures, optionally, the present embodiment may further set the maximum storage number of the preview pictures, for example, set to 1000. After the user terminal 100 acquires the preview picture from the video recording storage device 200, the preview picture may be named in a manner of "device ID + channel ID + time of preview picture" and may be held in the local storage. In this way, when the user terminal 100 subsequently acquires the preview pictures, it may first determine whether the corresponding preview pictures exist in the local storage, specifically, by comparing the names of the preview pictures, if the corresponding preview pictures exist in the local storage, the preview pictures are directly read for use, and if the corresponding preview pictures do not exist in the local storage, the preview pictures are continuously acquired from the video storage device 200 in real time, and the acquisition is stopped until the number of the preview pictures is detected to reach 1000.

The device ID is also the ID of the video storage device 200, the channel ID is also the ID of the IPC device 300 corresponding to the monitoring video, and the time of the preview image is also the time of the preview image in the playing progress. It should be noted that, in other embodiments, the name of the preview picture may also be set based on other rules, and is not limited in this respect.

, referring to fig. 7, the present embodiment further provides monitoring video previewing methods, which are different from the above embodiments, and are executed by the user terminal 100 shown in fig. 1, it is understood that the steps involved in the monitoring video previewing method to be described next have been described in the above embodiments, and specific details of the steps can be described with reference to the above embodiments, and only the steps executed by the user terminal 100 will be briefly described below.

Step S210, responding to a user operation, sending a monitoring video preview request to the video storage device 200, so that the video storage device 200 searches for a monitoring video to be previewed and a key frame corresponding to each time sequence according to the monitoring video preview request, where the monitoring video preview request includes the monitoring video to be previewed and a plurality of time sequences in the monitoring video.

Step S220, receiving a surveillance video to be previewed and a plurality of key frames of the surveillance video.

Step S230, decoding each of the key frames to obtain a plurality of corresponding preview pictures.

Step S230, presenting the multiple preview pictures on the current playing node of the monitoring video in the form of preview axes.

, referring to fig. 8, the embodiment of the present application further provides monitoring video previewing methods, which are different from the above embodiments in that the monitoring video previewing method is executed by the video storage device 200 shown in fig. 1, it is understood that the steps involved in the monitoring video previewing method to be described next have been described in the above embodiments, specific details of the steps can be described with reference to the above embodiments, and only the steps executed by the video storage device 200 will be briefly described below.

Step S310, receiving a monitoring video preview request sent by the user terminal 100, where the monitoring video preview request includes a monitoring video to be previewed and a plurality of time sequences in the monitoring video.

Step S320, searching for the surveillance video to be previewed and the key frame corresponding to each time sequence according to the surveillance video preview request.

Step S330, sending the monitoring video and each of the key frames to the user terminal 100, so that the user terminal 100 decodes each of the key frames to obtain a plurality of corresponding preview pictures, and then presents the plurality of preview pictures on a current playing node of the monitoring video in a preview axis form.

, referring to fig. 9, the embodiment of the present application further provides a video previewing apparatus 110, where the video previewing apparatus 110 is stored in the user terminal 100 and includes software functional modules, computer programs, and the like, and the video previewing apparatus 110 may include the following software functional modules:

the sending module 111 is configured to send, in response to a user operation, a monitoring video preview request to the video storage device 200, so that the video storage device 200 searches, according to the monitoring video preview request, for a monitoring video to be previewed and a key frame corresponding to each time sequence, where the monitoring video preview request includes the monitoring video to be previewed and multiple time sequences in the monitoring video.

, a receiving module 112, configured to receive the surveillance video to be previewed and a plurality of key frames of the surveillance video.

A decoding module 113, configured to decode each of the key frames to obtain a plurality of corresponding preview pictures.

And a presenting module 114, configured to present the multiple preview pictures on a current playing node of the monitoring video in the form of a preview axis.

, referring to fig. 10, the embodiment of the present application further provides a second surveillance video previewing apparatus 210, where the second surveillance video previewing apparatus 210 is stored in the video storage device 200 and includes software functional modules, computer programs, and the like, and the second surveillance video previewing apparatus 210 may include the following software functional modules:

the second receiving module 211 is configured to receive a monitoring video preview request sent by the user terminal 100, where the monitoring video preview request includes a monitoring video to be previewed and a plurality of time sequences in the monitoring video.

The searching module 212 is configured to search the monitoring videos to be previewed and the key frames corresponding to each time sequence according to the monitoring video previewing request.

A second sending module 213, configured to send the monitoring video and each of the key frames to the user terminal 100, so that the user terminal 100 decodes each of the key frames to obtain a plurality of corresponding preview pictures, and then presents the plurality of preview pictures on a current playing node of the monitoring video in a preview axis form.

It can be understood that, for the specific operation method of each functional module in this embodiment, reference may be made to the detailed description of the corresponding step in the foregoing method embodiment, and no repeated description is provided herein.

To sum up, in the monitoring video previewing method and apparatus provided in the embodiment of the present application, a user terminal firstly responds to a user operation and sends a monitoring video previewing request to a video storage device, where the monitoring video previewing request includes a monitoring video to be previewed and a time sequence of each key frame in the monitoring video. And then, the video storage equipment searches the corresponding monitoring video and a plurality of key frames of the monitoring video according to the monitoring video preview request and sends the key frames to the user terminal. And then, the user terminal plays the monitoring video and decodes the plurality of key frames in the playing process to obtain a plurality of corresponding preview pictures. And finally, presenting the plurality of preview pictures on the current playing node of the monitoring video in the form of preview axes. Therefore, the preview information is more by presenting the plurality of preview pictures in the form of the preview axis, the user is helped to quickly preview the monitoring video and find the interesting event more quickly, and in addition, the application consumes less calculation performance and can be suitable for different terminal platforms.

The apparatus and method embodiments described above are illustrative only, as the flow diagrams and block diagrams in the figures represent possible implementations of systems, methods and computer program products according to various embodiments of the present application, and in this regard, each block in the flow diagrams or block diagrams may represent modules, program segments, or portions of code , which comprises or more executable instructions for implementing the specified logical functions.

In addition, each functional module in the embodiments of the present application may be integrated in to form independent parts, or each module may exist separately, or two or more modules may be integrated to form independent parts.

The computer instructions may be stored in a computer readable storage medium, or transmitted from a computer readable storage medium, such as a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus, to another computer readable storage media, such as website sites, computers, servers, or data centers via wire (e.g., coaxial cable, optical fiber, Digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.) to another website sites, computers, servers, or data centers, such as a Solid State Disk, a magnetic storage medium, such as a Solid State Disk, a magnetic Disk.

It should be noted that, in this document, 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 the series 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.

It will thus be seen that the embodiments are illustrative and non-limiting in all respects , the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于视联网监控数据的同步方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类