CN108965831B - Video processing method and device and intelligent visual doorbell - Google Patents

Video processing method and device and intelligent visual doorbell Download PDF

Info

Publication number
CN108965831B
CN108965831B CN201811034392.8A CN201811034392A CN108965831B CN 108965831 B CN108965831 B CN 108965831B CN 201811034392 A CN201811034392 A CN 201811034392A CN 108965831 B CN108965831 B CN 108965831B
Authority
CN
China
Prior art keywords
video
backtracking
mobile detection
buffer area
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811034392.8A
Other languages
Chinese (zh)
Other versions
CN108965831A (en
Inventor
王延栋
黄业桃
陆大伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Fengjing Technology Co ltd
Original Assignee
Beijing Fengjing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Fengjing Technology Co ltd filed Critical Beijing Fengjing Technology Co ltd
Priority to CN201811034392.8A priority Critical patent/CN108965831B/en
Publication of CN108965831A publication Critical patent/CN108965831A/en
Application granted granted Critical
Publication of CN108965831B publication Critical patent/CN108965831B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/183Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a single remote source
    • H04N7/186Video door telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention relates to a video processing method, a video processing device and an intelligent visual doorbell, wherein a backtracking buffer area is arranged, and the method comprises the following steps: storing the recorded current video to a backtracking buffer area according to a preset cyclic storage rule; when the mobile detection is triggered, recording a mobile detection video according to a preset recording time length; acquiring a stored video corresponding to a preset backtracking duration from a backtracking buffer area as a backtracking video; processing the mobile detection video and the backtracking video to obtain a mobile detection video file; and storing the motion detection video file. By adopting the technical scheme, the obtained mobile detection video file can not be influenced by the delay problem of the mobile detection video due to the function of backtracking the mobile detection video, so that key information is prevented from being missed, and the monitoring is safer.

Description

Video processing method and device and intelligent visual doorbell
Technical Field
The invention relates to the technical field of Internet of things or intelligent families, in particular to a video processing method and device and an intelligent visual doorbell.
Background
With the continuous popularization of the internet of things technology, the more and more devices in life realize networking and intellectualization. Smart homes are gradually entering human lives, and provide more and more convenient, more and more intelligent and safer living environments for human beings. Doorbell as the terminal equipment who installs at the door mouth, networks it through internet of things to provide basic functions such as video monitoring and pronunciation talkback, provide advanced functions such as face identification through the AI, all undoubtedly will promote the security in door mouth.
In the prior art, most of intelligent visual doorbell products have basic functions of monitoring video real-time preview and mobile detection, but delay caused by trigger time and response time exists, so that the mobile detection video which is really shot often has 3 to 5 seconds of delay compared with the actual starting occurrence time of an event, and the several seconds of delay often miss critical information, so that a user cannot obtain effective video information, and potential unsafe factors are brought.
Disclosure of Invention
In view of the above, the present invention provides a video processing method, a video processing device and an intelligent video doorbell, so as to solve the problem in the prior art that a mobile detection video is delayed from the actual start time of an event, and may miss key information, so that a user cannot acquire effective video information, thereby bringing about potential unsafe factors.
In order to achieve the purpose, the invention adopts the following technical scheme:
a video processing method provided with a backtracking buffer, the method comprising:
storing the recorded current video to the backtracking buffer area according to a preset cyclic storage rule;
when the mobile detection is triggered, recording a mobile detection video according to a preset recording time length;
acquiring a stored video corresponding to a preset backtracking duration from the backtracking buffer area as a backtracking video;
processing the mobile detection video and the backtracking video to obtain a mobile detection video file;
and storing the mobile detection video file.
Further, in the above method, the storing the recorded video to the backtracking buffer according to a preset cyclic storage rule includes:
and when the stored amount of the backtracking buffer zone reaches a first preset threshold value, storing the video with the earliest current video coverage time.
Further, in the above method, the trace-back buffer includes at least two sub trace-back buffers;
when the stored amount of the backtracking buffer reaches a first preset threshold, the method for recording the stored video with the earliest current video coverage time comprises the following steps:
if the stored amount of the current sub backtracking buffer zone reaches a second preset threshold value, detecting whether a blank sub backtracking buffer zone exists;
if the target sub backtracking buffer area does not exist, determining the sub backtracking buffer area with the earliest storage time as the target sub backtracking buffer area needing to be covered;
and storing the recorded current video to the target sub backtracking buffer area, and covering the stored video with the earliest time in the target sub backtracking buffer area.
Further, in the above method, acquiring a stored video corresponding to a preset backtracking duration from the backtracking buffer as a backtracking video includes:
detecting whether a currently output video frame is an I frame;
if the currently output video frame is an I frame, all stored videos in the range of the first n I frames are obtained from the backtracking buffer area and are used as the backtracking video;
if the currently output video frame is a non-I frame, all stored videos in the range of the first n + 1I frames are obtained from the backtracking buffer area and are used as the backtracking video;
wherein n is an integer greater than or equal to 1.
Further, in the method, after storing the motion detection video file, the method further includes:
generating prompt information corresponding to the mobile detection video file;
and informing the user of the prompt information.
Further, in the method, the storing the motion detection video file includes storing the motion detection video file to a local and/or storing the motion detection video file to a cloud.
The present invention also provides a video processing apparatus, comprising:
the first storage module is used for storing the recorded current video to the backtracking buffer area according to a preset cyclic storage rule;
the recording module is used for recording the mobile detection video according to the preset recording duration when the mobile detection is triggered;
the obtaining module is used for obtaining a stored video corresponding to a preset backtracking duration from the backtracking buffer area as a backtracking video;
the processing module is used for processing the mobile detection video and the backtracking video to obtain a mobile detection video file;
and the second storage module is used for storing the motion detection video file.
Further, in the above apparatus, the obtaining module is specifically configured to:
detecting whether a currently output video frame is an I frame;
if the currently output video frame is an I frame, all stored videos in the range of the first n I frames are obtained from the backtracking buffer area and are used as the backtracking video;
if the currently output video frame is a non-I frame, all stored videos in the range of the first n + 1I frames are obtained from the backtracking buffer area and are used as the backtracking video;
wherein n is an integer greater than or equal to 1.
Further, in the above apparatus, the apparatus further includes:
the generating module is used for generating prompt information corresponding to the mobile detection video file;
and the notification module is used for notifying the prompt information to a user.
The invention also provides an intelligent visual doorbell, which comprises video processing equipment and a doorbell main body;
the video processing equipment is connected with the doorbell main body;
the video processing device is at least used for executing the video processing method.
According to the video processing method and device and the intelligent visual doorbell, the recorded video is stored in the backtracking buffer area according to the preset cyclic storage rule; when the mobile detection is triggered, recording a mobile detection video according to a preset recording time length; acquiring a stored video corresponding to a preset backtracking duration from a backtracking buffer area as a backtracking video; obtaining a mobile detection video file according to the mobile detection video and the backtracking video; and storing the motion detection video file. The mobile detection video obtained in the way can not be influenced by the delay problem of the mobile detection video due to the function of backtracking the mobile detection video, thereby avoiding missing key information and ensuring safer monitoring.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a first embodiment of a video processing method according to the present invention.
Fig. 2 is a flowchart of a second embodiment of the video processing method of the present invention.
Fig. 3 is a schematic structural diagram of a first embodiment of a video processing apparatus according to the present invention.
Fig. 4 is a schematic structural diagram of a second embodiment of the video processing apparatus according to the present invention.
Fig. 5 is a schematic structural diagram of an embodiment of the intelligent visual doorbell of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
Fig. 1 is a flowchart of a first embodiment of a video processing method according to the present invention, and as shown in fig. 1, the video processing method of this embodiment may specifically include the following steps:
s101, storing the recorded current video to a backtracking buffer area according to a preset cyclic storage rule;
in this embodiment, before starting, it is necessary to set an output frame rate of a video and an I-frame time interval, where the two values are related to the setting of the trace-back buffer, for example, the video output frame rate is set to f, where f may be 15fps or 20fps, and the I-frame time interval is set to g, and g may be 1s or 2 s. The I-frame interval determines the size of a video GOP, which is a group of consecutive pictures. In addition, a motion detection backtracking duration is set, and the backtracking duration is set to be an integral multiple of the time interval of the I frame, namely n × g seconds, which also means that n × g seconds are backtracked forward when motion detection is triggered to record, wherein n is an integer greater than or equal to 1. A trace back buffer is also provided, the size of which depends on the above parameters, e.g. the size of the trace back buffer can be set to n × g × f frames.
After the parameters are set, starting to execute a video processing method, recording a current video, and storing the recorded current video into a backtracking buffer area according to a preset cyclic storage rule, wherein the preset cyclic storage rule is a preset storage rule, the storage rule is set according to the number of the backtracking buffer areas, and the specific storage rule is as follows:
in a specific implementation process, recording a current video, and storing the current video in a backtracking buffer, wherein during storage, if a stored amount in the backtracking buffer reaches a first preset threshold, the stored current video needs to cover an earliest stored video in the buffer, and the first preset threshold is a maximum value of a backtracking buffer storage amount preset according to the size of the backtracking buffer.
When the backtracking buffer is set, 1, 2 or more backtracking buffers may be set. If only one backtracking buffer area is set, when the current video is stored, only whether the stored amount in the backtracking buffer area reaches a first preset threshold value is detected, if not, the video is directly stored in the backtracking buffer area continuously, if so, the recorded current video covers the stored video with the earliest time in the backtracking buffer area, and the backtracking buffer area is set as a circular storage rule when one backtracking buffer area is set.
If two or more trace back buffers are provided, these trace back buffers are defined as sub trace back buffers. When the recorded current video is stored, whether the stored amount of the current sub-backtracking buffer reaches a second preset threshold value is detected, if not, the current video is continuously stored in the sub-backtracking buffer, if so, whether a blank sub-backtracking buffer exists is detected, if so, the current video is stored in the blank sub-backtracking buffer, if not, the sub-backtracking buffer with the earliest storage time is searched in all the sub-backtracking buffers and is used as a target sub-backtracking buffer to be covered, the recorded current video is covered on the stored video with the earliest storage time in the target sub-backtracking buffer, and the backtracking buffer is set to be a circular storage rule when two or more. The second preset threshold is the maximum value of the storage capacity of the sub-traceback buffer area preset according to the size of the sub-traceback buffer area.
In addition, when the backtracking buffer is provided, it is most preferable to provide 2 backtracking buffers.
S102, when the mobile detection is triggered, recording a mobile detection video according to a preset recording time length;
in a specific implementation process, if a picture in a recorded video changes, for example, someone appears, the motion detection is triggered, and when the motion detection is triggered, the motion detection video is recorded according to a preset recording time length, wherein the preset recording time length refers to a preset time length for recording the motion detection video, and when the recording time length reaches the preset recording time length, the recording of the motion detection video is finished.
S103, obtaining a stored video corresponding to a preset backtracking duration from a backtracking buffer area as a backtracking video;
and after the mobile detection video begins to be recorded, acquiring the video with the same duration as the preset backtracking duration from the video stored in the backtracking buffer area, and taking the video as the backtracking video.
S104, processing the mobile detection video and the backtracking video to obtain a mobile detection video file;
after the mobile detection video is recorded and the backtracking video is obtained, the mobile detection video and the backtracking video are processed, namely, the backtracking video is in front, and the mobile detection video is spliced after the backtracking video is in back, so that a complete mobile detection video file is obtained. The mobile detection video file comprises a backtracking video with preset backtracking duration and a mobile detection video, so that the influence of the delay problem of the mobile detection video is avoided, the key information is prevented from being missed, and the monitoring is safer.
S105, storing the mobile detection video file.
And storing the mobile detection video file obtained in the step, wherein the mobile detection video file can be stored locally, can also be stored in a cloud terminal, and can also be stored locally and in the cloud terminal. The mobile surveillance video file is stored in the cloud end in a wireless communication mode, such as bluetooth transmission.
According to the video processing method, the recorded video is stored in the backtracking buffer area according to the preset cyclic storage rule; when the mobile detection is triggered, recording a mobile detection video according to a preset recording time length; acquiring a stored video corresponding to a preset backtracking duration from a backtracking buffer area as a backtracking video; and obtaining a mobile detection video file according to the mobile detection video and the backtracking video, and storing the mobile detection video file. The mobile detection video obtained in the way can not be influenced by the delay problem of the mobile detection video due to the function of backtracking the mobile detection video, thereby avoiding missing key information and ensuring safer monitoring.
Fig. 2 is a flowchart of a second embodiment of the video processing method of the present invention, and as shown in fig. 2, the video processing method of this embodiment further describes the technical solution of the present invention in more detail based on the embodiment shown in fig. 1.
As shown in fig. 2, the video processing method of this embodiment may specifically include the following steps:
s201, storing the recorded current video to a backtracking buffer area according to a preset cyclic storage rule;
the execution process of this step is the same as the execution process of S101 shown in fig. 1, and is not described here again.
S202, when the mobile detection is triggered, recording a mobile detection video according to a preset recording time length;
the execution process of this step is the same as the execution process of S102 shown in fig. 1, and is not described here again.
S203, detecting whether the currently output video frame is an I frame; if yes, executing step S204, otherwise, executing step S205;
in a specific implementation process, the currently output video frame may be an I frame or a non-I frame, and whether the currently output video frame is an I frame has a certain influence on the range of obtaining the backtracking video, so that it is necessary to detect the currently output video frame and determine whether the currently output video frame is an I frame, if so, step S204 is executed, and if not, step S205 is executed.
S204, acquiring all stored videos in the range of the first n I frames from the backtracking buffer area as backtracking videos;
through the detection of the currently output video frame in the steps, if the detection result is that the currently output video frame is an I frame, all stored videos in the range of the first n I frames are obtained from the backtracking buffer area after the recording of the motion detection video is started, and the obtained videos are used as backtracking videos. Wherein n is an integer greater than or equal to 1.
S205, acquiring all stored videos in the range of the first n + 1I frames from the backtracking buffer area as backtracking videos;
through the detection of the currently output video frame in the above steps, if the detection result is that the currently output video frame is not an I frame, that is, the currently output video frame is a non-I frame, after the recording of the motion detection video is started, all the stored videos within the range of the first n + 1I frames are obtained from the backtracking buffer area, and the obtained videos are used as the backtracking videos. Wherein n is an integer greater than or equal to 1.
S206, processing the mobile detection video and the backtracking video to obtain a mobile detection video file;
the execution process of this step is the same as the execution process of S104 shown in fig. 1, and is not described here again.
S207, storing the mobile detection video file;
the execution process of this step is the same as the execution process of S105 shown in fig. 1, and is not described here again.
S208, generating prompt information corresponding to the mobile detection video file;
after the motion detection video file is stored, prompt information corresponding to the motion detection video file is generated, and the prompt information is mainly used for informing a user. For example, the prompt message may be "motion detection is triggered, and the motion detection video file is stored and can be viewed and saved at any time".
And S209, informing the user of the prompt information.
And informing the user of the prompt information generated in the step, so that the user knows that the mobile detection is triggered, and the user can conveniently check and store the mobile detection video file.
According to the video processing method, the recorded video is stored in the backtracking buffer area according to the preset cyclic storage rule; when the mobile detection is triggered, recording a mobile detection video according to a preset recording time length; detecting whether the currently output video frame is an I frame or not, and acquiring a stored video in a corresponding range from a backtracking buffer area as a backtracking video according to whether the currently output video frame is the I frame or a non-I frame; obtaining a mobile detection video file according to the mobile detection video and the backtracking video, and storing the mobile detection video file; and generating prompt information corresponding to the mobile detection video file, and informing the user of the prompt information. The mobile detection video obtained in the way can not be influenced by the delay problem of the mobile detection video due to the fact that the mobile detection video has the function of backtracking the mobile detection video, so that key information is prevented from being missed, monitoring is safer, a user can be informed, the user can know that the mobile detection is triggered, and the user can conveniently check and store the mobile detection video file.
In order to be more comprehensive, the application also provides a video processing device corresponding to the video processing method provided by the embodiment of the invention.
Fig. 3 is a schematic structural diagram of a first embodiment of a video processing apparatus according to the present invention. As shown in fig. 3, the video processing apparatus of the present embodiment includes a first storage module 101, a recording module 103, an obtaining module 102, a processing module 104, and a second storage module 105.
The first storage module 101 is configured to store the recorded current video to a backtracking buffer according to a preset cyclic storage rule;
for example, when a backtracking buffer is set, storing a current video requires detecting whether the stored amount in the backtracking buffer reaches a first preset threshold, if not, directly continuing to store in the backtracking buffer, and if so, covering the recorded current video with the stored video with the earliest time in the backtracking buffer; when two or more backtracking buffers are set, defining the backtracking buffers as sub backtracking buffers, storing the current video, detecting whether the stored amount of the current sub backtracking buffer reaches a second preset threshold value, if not, continuing to store the current video in the backtracking buffers, if so, detecting whether blank sub backtracking buffers exist, if so, storing the current video in the blank sub backtracking buffers, if not, searching the backtracking buffer with the earliest storage time in all the backtracking buffers, taking the backtracking buffer as a target backtracking buffer to be covered, and covering the recorded current video with the earliest storage time in the target backtracking buffers. The second preset threshold is the maximum value of the storage capacity of the sub-traceback buffer area preset according to the size of the sub-traceback buffer area.
In addition, when the backtracking buffer is provided, it is most preferable to provide 2 backtracking buffers.
The recording module 103 is configured to record a motion detection video according to a preset recording duration when motion detection is triggered;
for example, when a picture in a recorded video changes, the motion detection is triggered, and then the motion detection video is recorded according to a preset recording time length, wherein the preset recording time length is a preset time length for recording the motion detection video, and when the recording time length reaches the preset recording time length, the recording of the motion detection video is finished.
An obtaining module 102, configured to obtain, from a backtracking buffer, a stored video corresponding to a preset backtracking duration as a backtracking video; the method comprises the steps of specifically detecting whether a currently output video post is an I frame, and if the currently output video frame is the I frame, acquiring all stored videos in the range of the first n I frames from a backtracking buffer area as backtracking videos; if the currently output video frame is a non-I frame, all stored videos in the range of the first n + 1I frames are obtained from the backtracking buffer area and are used as backtracking videos, wherein n is an integer greater than or equal to 1;
the processing module 103 is configured to process the mobile detection video and the backtracking video to obtain a mobile detection video file;
for example, the backtracking video is merged before the motion detection video, and the motion detection video is merged after the backtracking video, so that the motion detection video file is obtained finally.
The second storage module 105 is configured to store the motion detection video file.
The motion detection video file obtained in the processing module 103 is stored, so that the user can view the motion detection video file when needed.
The video processing apparatus of this embodiment stores the recorded current video to the backtracking buffer area through the first storage module 101 according to a preset cyclic storage rule; when the motion detection is triggered, recording a motion detection video according to a preset recording duration through the recording module 103; the obtaining module 102 obtains a corresponding storage video from the backtracking buffer area according to a preset backtracking duration, the storage video is used as a backtracking video, the processing module 104 processes the mobile detection video and the backtracking video to obtain a mobile detection video file, and finally the mobile detection video file is stored through the second storage module 105, so that the recording and storage functions of the mobile detection video file are realized. By adopting the technical scheme, the acquired mobile detection video can not be influenced by the delay problem of the mobile detection video due to the function of backtracking the mobile detection video, so that the key information is avoided being missed, and the monitoring is safer.
Fig. 4 is a schematic structural diagram of a second embodiment of the video processing apparatus according to the present invention. As shown in fig. 4, the voice broadcasting device of this embodiment may further include a generating module 106 and a notifying module 107 on the basis of the embodiment shown in fig. 3.
The generating module 106 is configured to generate a prompt message corresponding to the mobile detection video file;
after the motion detection video file is stored, prompt information corresponding to the motion detection video file is generated, and the prompt information is mainly used for informing a user. For example, the prompt message may be "motion detection is triggered, and the motion detection video file is stored and can be viewed and saved at any time".
And a notification module 107, configured to notify the user of the prompt information.
And informing the generated prompt information to the user, so that the user knows that the mobile detection is triggered, and the user can conveniently check and store the mobile detection video file.
After the motion detection video file is stored in the above embodiment, the video processing apparatus of this embodiment generates the prompt information corresponding to the motion detection video file by the generating module 106, and notifies the user of the prompt information by the notifying module 107, so as to prompt the user that the motion detection is triggered and the recording of the motion detection video file is completed. By adopting the technical scheme, the acquired mobile detection video can not be influenced by the delay problem of the mobile detection video due to the fact that the mobile detection video has the function of backtracking the mobile detection video, so that key information is prevented from being missed, the monitoring is safer, a user can be informed, the user can know that the mobile detection is triggered, and the user can conveniently check and store the mobile detection video file.
Fig. 5 is a schematic structural diagram of an embodiment of the intelligent visual doorbell of the present invention. As shown in fig. 5, the intelligence of the present embodiment may be that the doorbell includes a video processing device 201 and a doorbell body 202, and the video processing device 201 is connected to the doorbell body 202. The video processing device is at least used for executing the video processing method in the above embodiment.
The intelligent visual doorbell of this embodiment passes through doorbell main part 202 and video processing equipment 201's combination, can make intelligent visual doorbell use the video processing method of above-mentioned embodiment, has possessed and has removed and has listened video backtracking function, the overall process of the emergence incident before the record door that can be better, for the user provides effectual video information, can not receive the influence of removing and listening video delay problem to avoid the key information of missing, make the control safer.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present invention, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (8)

1. A video processing method, wherein a backtracking buffer is provided, the method comprising:
storing the recorded current video to the backtracking buffer area according to a preset cyclic storage rule;
when the mobile detection is triggered, recording a mobile detection video according to a preset recording time length;
acquiring a stored video corresponding to a preset backtracking duration from the backtracking buffer area as a backtracking video;
processing the mobile detection video and the backtracking video to obtain a mobile detection video file;
storing the mobile detection video file;
obtaining a storage video corresponding to a preset backtracking duration from the backtracking buffer area as a backtracking video, wherein the backtracking buffer area comprises the following steps:
detecting whether a currently output video frame is an I frame;
if the currently output video frame is an I frame, all stored videos in the range of the first n I frames are obtained from the backtracking buffer area and are used as the backtracking video;
if the currently output video frame is a non-I frame, all stored videos in the range of the first n + 1I frames are obtained from the backtracking buffer area and are used as the backtracking video;
wherein n is an integer greater than or equal to 1.
2. The method according to claim 1, wherein the storing the recorded video to the backtracking buffer according to a preset loop storage rule comprises:
and when the stored amount of the backtracking buffer zone reaches a first preset threshold value, storing the video with the earliest current video coverage time.
3. The method of claim 2, wherein the trace-back buffer comprises at least two sub trace-back buffers;
when the stored amount of the backtracking buffer reaches a first preset threshold, the method for recording the stored video with the earliest current video coverage time comprises the following steps:
if the stored amount of the current sub backtracking buffer zone reaches a second preset threshold value, detecting whether a blank sub backtracking buffer zone exists;
if the target sub backtracking buffer area does not exist, determining the sub backtracking buffer area with the earliest storage time as the target sub backtracking buffer area needing to be covered;
and storing the recorded current video to the target sub backtracking buffer area, and covering the stored video with the earliest time in the target sub backtracking buffer area.
4. The method of claim 1, wherein after storing the motion detection video file, further comprising:
generating prompt information corresponding to the mobile detection video file;
and informing the user of the prompt information.
5. The method according to any one of claims 1 to 4, wherein storing the motion detection video file comprises storing the motion detection video file locally and/or storing the motion detection video file in a cloud.
6. A video processing apparatus, characterized in that the apparatus comprises:
the first storage module is used for storing the recorded current video to the backtracking buffer area according to a preset cyclic storage rule;
the recording module is used for recording the mobile detection video according to the preset recording duration when the mobile detection is triggered;
the obtaining module is used for obtaining a stored video corresponding to a preset backtracking duration from the backtracking buffer area as a backtracking video;
the processing module is used for processing the mobile detection video and the backtracking video to obtain a mobile detection video file;
the second storage module is used for storing the mobile detection video file;
the acquisition module is specifically configured to:
detecting whether a currently output video frame is an I frame;
if the currently output video frame is an I frame, all stored videos in the range of the first n I frames are obtained from the backtracking buffer area and are used as the backtracking video;
if the currently output video frame is a non-I frame, all stored videos in the range of the first n + 1I frames are obtained from the backtracking buffer area and are used as the backtracking video;
wherein n is an integer greater than or equal to 1.
7. The apparatus of claim 6, further comprising:
the generating module is used for generating prompt information corresponding to the mobile detection video file;
and the notification module is used for notifying the prompt information to a user.
8. An intelligent visual doorbell is characterized by comprising a video processing device and a doorbell main body;
the video processing equipment is connected with the doorbell main body;
the video processing device is at least adapted to perform the video processing method of any of claims 1-5.
CN201811034392.8A 2018-09-05 2018-09-05 Video processing method and device and intelligent visual doorbell Active CN108965831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811034392.8A CN108965831B (en) 2018-09-05 2018-09-05 Video processing method and device and intelligent visual doorbell

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811034392.8A CN108965831B (en) 2018-09-05 2018-09-05 Video processing method and device and intelligent visual doorbell

Publications (2)

Publication Number Publication Date
CN108965831A CN108965831A (en) 2018-12-07
CN108965831B true CN108965831B (en) 2020-09-25

Family

ID=64475974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811034392.8A Active CN108965831B (en) 2018-09-05 2018-09-05 Video processing method and device and intelligent visual doorbell

Country Status (1)

Country Link
CN (1) CN108965831B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111416954A (en) * 2019-01-07 2020-07-14 深圳声联网科技有限公司 Audio and video backtracking recording method and wireless monitoring system
CN111356003B (en) * 2020-03-11 2022-03-29 安徽文香科技有限公司 Data writing method, system and terminal equipment
CN113132742B (en) * 2021-03-31 2023-04-14 合安科技技术有限公司 Queue-based double-buffer AI video transmission method and related equipment
CN113542545B (en) * 2021-05-28 2024-03-26 青岛海信移动通信技术有限公司 Electronic device and video recording method
CN115604540B (en) * 2022-09-01 2023-11-14 荣耀终端有限公司 Video acquisition method, electronic equipment and medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867792B (en) * 2010-05-14 2012-09-26 成都基业长青科技有限责任公司 Real-time transmission method for video record buffering
EP2407943B1 (en) * 2010-07-16 2016-09-28 Axis AB Method for event initiated video capturing and a video camera for capture event initiated video
CN102244775B (en) * 2011-06-23 2014-11-19 杭州海康威视数字技术股份有限公司 Digital video recorder (DVR) and network bandwidth control method thereof
CN102413304B (en) * 2011-09-26 2013-11-06 武汉烽火网络有限责任公司 Network video monitor data flow storage system
CN103096042A (en) * 2013-02-05 2013-05-08 泰州市易航软件科技有限公司 Video monitoring system
CN103929609B (en) * 2014-04-22 2017-06-23 浙江宇视科技有限公司 A kind of video recording playback method and device
CN105072387A (en) * 2015-07-23 2015-11-18 上海玮舟微电子科技有限公司 Video recording method for video door bell and video door bell
CN205378106U (en) * 2015-12-31 2016-07-06 惠州市酷丰科技有限公司 Prevent tearing open video recording doorbell
CN106412677B (en) * 2016-10-28 2020-06-02 北京奇虎科技有限公司 Method and device for generating playback video file
CN106411927B (en) * 2016-10-28 2019-06-04 北京奇虎科技有限公司 A kind of video monitoring method and device
CN107277580B (en) * 2017-05-24 2019-07-05 中广热点云科技有限公司 A method of caching the TV programme to be played back on mobile phone

Also Published As

Publication number Publication date
CN108965831A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN108965831B (en) Video processing method and device and intelligent visual doorbell
CN109166261B (en) Image processing method, device and equipment based on image recognition and storage medium
CN106954026B (en) Shooting method and trigger monitoring device
CN108345524B (en) Application program monitoring method and application program monitoring device
CN105100748B (en) A kind of video monitoring system and method
CN106911961B (en) Multimedia data playing method and device
CN108073577A (en) A kind of alarm method and system based on recognition of face
US10075680B2 (en) Video-surveillance method, corresponding system, and computer program product
CN110706449A (en) Infant monitoring method and device, camera equipment and storage medium
CN111836102B (en) Video frame analysis method and device
CN111147808B (en) Network device, image processing method and computer readable medium
CN105814518A (en) Information processing method and smart bracelet
CN111770309B (en) Video uploading method and device, electronic equipment and storage medium
KR20160131882A (en) Electronic apparatus and operating method thereof
CN105049810A (en) Intelligent video monitoring method and video device
CN108520611A (en) Video data monitoring method and device, storage medium, terminal
CN107158685B (en) Exercise verification method and apparatus
CN113038261A (en) Video generation method, device, equipment, system and storage medium
CN112954165B (en) Analog camera, decoder and monitoring system
CN105187909A (en) Method and device used for detecting loss of audio and video recorded at terminal
CN109587393B (en) Method for improving shooting definition of camera, terminal equipment and storage medium
CN113888155A (en) Face brushing payment method and device and face brushing equipment
CN111127823A (en) Alarm method and device and video monitoring equipment
EP4054184A1 (en) Event video sequences
KR102372721B1 (en) Method, user device and recording medium for computer program

Legal Events

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