CN110557553A - data processing method, video acquisition equipment and readable storage medium - Google Patents

data processing method, video acquisition equipment and readable storage medium Download PDF

Info

Publication number
CN110557553A
CN110557553A CN201810556760.9A CN201810556760A CN110557553A CN 110557553 A CN110557553 A CN 110557553A CN 201810556760 A CN201810556760 A CN 201810556760A CN 110557553 A CN110557553 A CN 110557553A
Authority
CN
China
Prior art keywords
mode
image
video
equipment
images
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.)
Granted
Application number
CN201810556760.9A
Other languages
Chinese (zh)
Other versions
CN110557553B (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.)
Hangzhou Ezviz Software Co Ltd
Original Assignee
Hangzhou Ezviz Software 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 Hangzhou Ezviz Software Co Ltd filed Critical Hangzhou Ezviz Software Co Ltd
Priority to CN201810556760.9A priority Critical patent/CN110557553B/en
Publication of CN110557553A publication Critical patent/CN110557553A/en
Application granted granted Critical
Publication of CN110557553B publication Critical patent/CN110557553B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/65Control of camera operation in relation to power supply
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • 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

Landscapes

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

Abstract

The application provides a data processing method, a video acquisition device and a readable storage medium, wherein the method comprises the following steps: the device collects images according to a set interval and stores the images to a local memory in a first mode; when an external trigger event is detected, judging whether the current working mode of the equipment is a first mode or not; when the current working mode of the device is judged to be the first mode, the current working mode of the device is switched from the first mode to the second mode, the video recording is started in the second mode, and the images collected in the second mode and the images stored in the local memory are coded and compressed.

Description

Data processing method, video acquisition equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method, a video capture device, and a readable storage medium.
background
With the enhancement of self-protection awareness of people, video capture devices such as cameras and the like are increasingly used in daily life.
In application, the video capture device needs to convert the captured picture data into video data and then perform monitoring according to the video data to prevent unnecessary danger and collision.
When the video acquisition device converts the picture data into the video data, the video acquisition device needs to perform image signal processing, coding compression and other processing on the picture data, so that the power consumption of the video acquisition device is relatively large in the process of acquiring the video data.
disclosure of Invention
in view of this, the present application provides a data processing method, a video capture device, and a readable storage medium, which can completely record an image that a user cares about while reducing power consumption of the video capture device.
Specifically, the method is realized through the following technical scheme:
In a first aspect, the present application provides a data processing method, which is applied to a video capture device, and includes:
the device collects images according to a set interval and stores the images to a local memory in a first mode;
When an external trigger event is detected, judging whether the current working mode of the equipment is a first mode or not;
and when the current working mode of the equipment is judged to be the first mode, switching the current working mode of the equipment from the first mode to the second mode, starting video recording in the second mode, and carrying out coding compression on the image collected in the second mode and the image stored in the local memory.
optionally, when the current operating mode of the device is the first mode, the method further includes:
and acquiring images in real time according to a preset time interval.
optionally, after the acquiring the images in real time according to the preset time interval, the method further includes:
Detecting whether the free storage space in the local memory is enough to accommodate the image currently acquired by the equipment;
If not, covering the image which is acquired currently by the equipment with the longest storage time in the local memory;
And if so, storing the image currently acquired by the equipment to a free storage space in a local memory.
Optionally, starting recording in the second mode,
the method comprises the following steps:
and continuously acquiring images in real time.
optionally, the encoding and compressing the image acquired in the second mode and the image in the local memory specifically includes:
and coding and compressing the image acquired in the first mode and the image acquired in the second mode to generate a complete event video, and recording the complete event video in a storage unit of the device.
Optionally, when the device is in the first mode, the system operating frequency of the device is the lowest;
wherein, the system operating frequency of the equipment at least comprises: CPU frequency, DDR frequency, DSP frequency and image sensor frequency.
optionally, the starting the video recording further comprises:
starting a static detection timer;
and when the static detection timer is detected to be overtime, stopping recording, and switching the current working mode of the equipment from the current second mode to the first mode.
In a second aspect, the present application provides a video capture device comprising:
The image sensor is used for acquiring images according to a set interval in a first mode;
The memory is used for storing images acquired by the equipment in a first mode according to set intervals;
The external event detection module is used for detecting an externally triggered event;
The processor is used for judging whether the current working mode of the equipment is a first mode or not when an external trigger event is detected;
and when the current working mode of the equipment is judged to be the first mode, switching the current working mode of the equipment from the first mode to the second mode, starting video recording in the second mode, and carrying out coding compression on the image collected in the second mode and the image stored in the local memory.
Optionally, the image sensor is further configured to:
And when the current working mode of the equipment is the first mode, acquiring images in real time according to a preset time interval.
optionally, the memory is further configured to:
After the image sensor collects images in real time according to a preset time interval, detecting whether the free storage space in the local memory is enough to accommodate the images collected by the equipment currently;
if not, covering the image which is acquired currently by the image sensor with the longest storage time in the local memory;
and if so, storing the image currently acquired by the image sensor into the free storage space.
Optionally, the image sensor is further configured to:
And starting the video recording in the second mode, and continuously acquiring images in real time.
Optionally, when the processor performs encoding compression on the image acquired in the second mode and the image stored in the local memory, the method is specifically configured to:
and coding and compressing the image acquired in the first mode and the image acquired in the second mode to generate a complete event video, and recording the complete event video in a storage unit of the device.
Optionally, when the device is in the first mode, the system operating frequency of the device is the lowest;
wherein, the system operating frequency of the equipment at least comprises: CPU frequency, DDR frequency, DSP frequency and image sensor frequency.
Optionally, the processor is further configured to start a still detection timer when starting the video; and the video recording device is used for stopping video recording and switching the current working mode of the equipment from the current second mode to the first mode when the static detection timer is detected to be overtime.
in a third aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when processed by a processor, implements any of the above-described data processing methods.
Any one of the above technical solutions has the following beneficial effects:
In the present application, in the first mode, the acquired image is stored in the local memory, the image is not encoded and compressed, because the power consumption is large when the image is coded and compressed, compared with the prior art, the power consumption of the video acquisition equipment can be reduced, and, because the image collected by the device in the first mode and the real-time image collected by the device, which are stored in the local memory, are encoded and compressed when the video is started in the second mode, the image collected in the first mode is also stored in the video after the encoding and compression, so that things that happen when the device is in the first mode can be viewed by viewing the encoded compressed video, furthermore, the method and the device can meet the purpose that a user checks monitoring data before starting the video, namely, the video after being coded and compressed can completely record images concerned by the user.
Drawings
Fig. 1 is a schematic flow chart of a data processing method provided in the present application;
FIG. 2 is a schematic flow chart of another data processing method provided herein;
fig. 3 is a schematic structural diagram of a video sequence provided in the present application;
FIG. 4 is a schematic flow chart of another data processing method provided herein;
Fig. 5 is a schematic structural diagram of a video capture device provided in the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first and second, etc. may be used herein to describe the decoding channel and codestream data, these decoding channel and codestream data should not be limited to these terms. These terms are only used to distinguish node devices of the same type from one another. For example, a first decoding pass may also be referred to as a second decoding pass, and similarly, a second decoding pass may also be referred to as a first decoding pass without departing from the scope of the present application.
the word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
fig. 1 is a schematic flow chart of a data processing method provided in the present application, and as shown in fig. 1, the method is applied to a video capture device, and the method includes the following steps:
101. the device collects images according to a set interval and stores the images to a local memory in a first mode.
it should be noted that, when the images are acquired at the set intervals, the images may be acquired at the set time intervals, or the images may also be acquired at the set number intervals, and the specific interval manner for acquiring the images is not limited in detail here.
102. When an external trigger event is detected, whether the current working mode of the device is the first mode or not is judged.
103. And when the current working mode of the equipment is judged to be the first mode, switching the current working mode of the equipment from the first mode to the second mode, starting video recording in the second mode, and carrying out coding compression on the image collected in the second mode and the image stored in the local memory.
In particular, in the present application, the acquired image is stored in the local memory in the first mode, the image is not encoded and compressed, because the power consumption is large when the image is coded and compressed, compared with the prior art, the power consumption of the video acquisition equipment can be reduced, and, because the image collected by the device in the first mode and the real-time image collected by the device, which are stored in the local memory, are encoded and compressed when the video is started in the second mode, the image collected in the first mode is also stored in the video after the encoding and compression, so that things that happen when the device is in the first mode can be viewed by viewing the encoded compressed video, furthermore, the method and the device can meet the purpose that a user checks monitoring data before starting the video, namely, the video after being coded and compressed can completely record images concerned by the user.
In one possible embodiment, upon detection of an external trigger event, when the video capture device is in the first mode, when the event indicates to start the video recording, the device is switched from the first mode to the second mode, when the video acquisition equipment is in the second mode, stopping recording when the event indicates that the recording is stopped, and switching the current working mode of the equipment from the current second mode to the first mode, after the above manner is adopted, the automatic switching between the first mode and the second mode can be realized, and when the video acquisition equipment is switched from the first mode to the second mode, the images captured in the first mode and the real-time images captured in the second mode may be recorded into an event video, therefore, the user can check the monitoring data in the video recording stopping time period, and meanwhile, the continuity of the event video is high.
When needing to be noted, the external trigger event may be set according to actual needs, taking a car recorder as an example, and the event indicating to start video recording is car ignition, after car ignition, if the current working mode of the car recorder is the first mode, the current working mode of the device is switched from the first mode to the second mode, if the event indicating to stop video recording is car flameout, when the car is flameout, and if the current working mode of the car recorder is the second mode, the current working mode of the device is switched from the second mode to the first mode, and specific external trigger event is not specifically limited here.
In one possible embodiment, when the current operation mode of the apparatus is the first mode, the images may be acquired in real time according to a preset time interval.
Specifically, when images are collected in real time according to a preset time interval, the control over the image collection rate can be achieved, the collected images are prevented from occupying more local memories, and the control over the power consumption of the equipment can be indirectly achieved.
In a possible embodiment, fig. 2 is a schematic flow chart of another data processing method provided in the present application, and as shown in fig. 2, when the current operation mode of the apparatus is the first mode, the method includes the following steps:
201. Detecting whether the free storage space in the local memory is enough to accommodate the image currently acquired by the device, if not, executing step 202, and if so, executing step 203.
202. And covering the image which is acquired currently by the equipment with the image which has the longest storage time in a local memory.
203. And storing the image currently acquired by the equipment to a free storage space in a local memory.
Specifically, in the first mode, after the image is acquired, when the free storage space of the local memory is insufficient, the acquired image is covered with the image with the longest memory time in the local memory, and after the processing mode is adopted, the image stored in the local memory is always the image corresponding to the event in a period of time closest to the current time, so that even if the video acquisition device does not start the video recording, the purpose that the user views the event occurring in the latest period of time can be met, for example, the local memory includes three memory units: the image processing device comprises a memory unit 1, a memory unit 2 and a memory unit 3, and is stored according to a storage mode of the memory unit 1 → the memory unit 2 → the memory unit 3, the current image comprises an image 1, an image 2 and an image 3, the acquisition sequence of the images is the image 1 → the image 2 → the image 3, after the images are stored according to the sequence that the image 1 is stored in the memory unit 1 → the image 2 is stored in the memory unit 2 → the image 3 is stored in the memory unit 3, the image 1 is the image with the longest storage time, after the image 4 is acquired, the image 4 can cover the image 1 in the memory unit 1, so that the images stored in the memory area can reflect things happening in the time corresponding to the images 2, 3 and 4, and the time period corresponding to the images 2, 3 and 4 is closer to the current time than the time period corresponding to the images 1, 2 and 3, therefore, the local memory can record things happening in the latest period of time, and because the image stored in the memory unit is used as the monitoring data, the user can know the things happening in the current period of time by checking the image in the memory unit, so that the purpose of checking the monitoring data by the user can be met, and the local memory does not need to occupy a larger storage space.
for example, in the first mode, after the image is acquired, when the free storage space of the local memory is sufficient, the local memory includes three memory units: the image acquisition system comprises a memory unit 1, a memory unit 2 and a memory unit 3, and the images are stored according to the storage mode of the memory unit 1 → the memory unit 2 → the memory unit 3, if the image 1 is stored in the current memory unit 1 and the image 2 is stored in the memory unit 2, after the image 3 is acquired, the image 3 can be stored in the memory unit 3, so that the storage mode of the local memory is relatively regular and relatively simple.
The local memory may be a designated area in the memory of the video capture device, or may be a memory bank separately disposed in the video capture device, and the specific form of the local memory is not specifically limited herein. After the local memory is set, the local memory is divided into a plurality of memory units, the data storage capacity of each memory unit is the same, in order to make the storage mode relatively simple, the data storage capacity of each memory unit can be equal to the data capacity of a specified image frame size, that is, each memory unit can only store an image corresponding to one image frame, and after one image is stored in one memory unit, the next image can be stored in the other memory unit. For example, when the specified image frame is an I frame of each video sequence, when the memory units are divided, each memory unit may be enabled to store only the data size of one I frame, so that different memory units may respectively store an image corresponding to one I frame, for example, the current local memory includes three memory units: the image acquisition device comprises a memory unit 1, a memory unit 2 and a memory unit 3, wherein the acquired images are an image 1 corresponding to an I frame of a video sequence 1, an image 2 corresponding to an I frame of a video sequence 2 and an image 3 corresponding to an I frame of a video sequence 3 respectively, after the image 1 is stored in the memory unit 1, the image 2 can be stored in the memory unit 2 when the image 2 is stored, and each memory unit can only store an image with a specified image frame size, so that the storage mode of a memory area is relatively simple.
the video capture device can capture only the images corresponding to the specified image frames in the continuous video sequence, and because the images corresponding to the specified image frames in the video sequence are captured, the captured images can be continuous in time, so that the acquired images may be made to reflect what is happening in continuous time, e.g., the video sequences over a period of time include video sequence 1, video sequence 2 and video sequence 3, only the image corresponding to the I frame in the video sequence 1, the image corresponding to the I frame in the video sequence 2 and the image corresponding to the I frame in the video sequence 3 can be acquired when the image is acquired, because only the images corresponding to the I frames of each video sequence are acquired, the acquired images are continuous in the period of time, namely, the acquired images can reflect the things happening in the period of time. Moreover, because the amount of the acquired data is relatively small, the local memory can store images corresponding to things happening in a longer time under a certain condition of the storage capacity of the local memory, for example, a video sequence in a period of time includes a video sequence 1, a video sequence 2 and a video sequence 3, only an image corresponding to an I frame in the video sequence 1, an image corresponding to an I frame in the video sequence 2 and an image corresponding to an I frame in the video sequence 3 can be acquired when the images are acquired, and the memory area includes three memory units, so the memory area can store the three images, and thus the local memory can reflect the things happening in the period of time corresponding to the three video sequences, if the video sequence 1 includes three frames, and if the acquired images are all frames in the video sequence, the local memory can only store one image corresponding to the video sequence, therefore, the memory area can only reflect the things happening in the time period corresponding to the video sequence, and compared with the collection of all frames in each video sequence, the data volume collected by the collection mode of the application is relatively small, so that the local memory can store more images of the video sequence, and the local memory can record the things happening in a longer time.
Fig. 3 is a schematic structural diagram of a video sequence provided in the present application, and as shown in fig. 3, a video sequence in a period of time includes a video sequence 31, a video sequence 32, and a video sequence 33, each video sequence includes an I frame and a plurality of P frames, where the I frame is also called an intra-frame coded frame, which is an independent frame with all information and can be independently decoded without referring to any information, and the P frame is also called an inter-frame predictive coded frame, which can be coded only by referring to the I frame corresponding to the P frame. When the designated image frame is an I frame, the acquired images include an image corresponding to the I frame in the video sequence 31, an image corresponding to the I frame in the video sequence 32, and an image corresponding to the I frame in the video sequence 33, and after the images are acquired, the acquired images are continuous in the period of time, so that the acquired images can reflect things occurring in the period of time, and the images in the period of time can be provided for a user to refer to.
It should be noted that, which image frame in each video sequence is specifically captured may be set according to actual needs, and is not specifically limited herein.
in one possible embodiment, the video recording is started in the second mode, and the images are collected in real time without interruption.
specifically, when the device is in the second mode, the device needs to normally acquire an image and encode and compress the image so as to generate video data with higher quality, and therefore the image needs to be acquired in real time continuously.
In a possible embodiment, when the image acquired in the second mode and the image stored in the local memory are compressed, the image acquired in the first mode and the image acquired in the second mode may be compressed to generate a complete event video, and the complete event video is recorded in the storage unit of the device.
Specifically, in order to enable a user to view events occurring before and after a trigger event, the images acquired in the first mode and the images acquired in the second mode need to be encoded and compressed to generate a complete event video, so as to serve as a monitoring video.
In a possible embodiment, the first mode is a low power consumption mode, and when the device is in the first mode, the system operating frequency of the device is the lowest; wherein, the system operating frequency of the equipment at least comprises: CPU (central Processing Unit) frequency, DDR (Double Data Rate) frequency, DSP (Digital Signal Processing) frequency, and image sensor frequency.
specifically, when in the first mode, the frequency of the DSP for processing image data for performing image signal processing and coding compression on an image may be 0Hz, and the frequencies of the CPU, the DDR and the image sensor may be set according to the frame rate and the resolution of the captured image, as long as the frequencies of the CPU, the DDR and the image sensor can meet the minimum operation requirement of the apparatus, and the specific frequencies of the CPU, the DDR and the image sensor are not specifically limited herein.
In one possible trial scheme, after the frequencies of the CPU, the DDR, the DSP, and the image sensor are set, when acquiring images corresponding to a designated image frame in a continuous video sequence, images corresponding to the designated image frame may be acquired at a designated frame rate and a designated resolution.
specifically, when images are collected according to a specified frame rate, the number of the images collected in unit time can be controlled, so that the collection speed of the images can be adjusted as required, the continuity of things occurring in the current time period can be adjusted as required, the power consumption of the device in unit time can be adjusted as required, for example, if the power consumption is required to be low, the frame rate can be reduced, relatively few images can be collected in unit time, and the purpose of reducing the power consumption is achieved.
when the images are collected according to the specified resolution, the definition of the images can be adjusted as required, and as the definition of one image is higher, the storage space occupied by the image is larger, therefore, the storage space occupied by the collected image is relatively smaller through the adjustment of the resolution, and the storage capacity of the local memory is in a certain condition, and when the resolution is set to be relatively smaller, relatively more memory units can be divided from the local memory, so that relatively more images can be stored in the local memory, and the local memory is favorable for storing the corresponding images in a relatively longer time period, thereby being capable of reflecting the events which occur in a relatively longer time period by the images stored in the local memory.
In a possible embodiment, fig. 4 is a schematic flow chart of another data processing method provided in the present application, and as shown in fig. 3, after the video recording is started, the method further includes the following steps:
401. a inactivity detection timer is started.
402. And when the static detection timer is detected to be overtime, stopping recording, and switching the current working mode of the equipment from the current second mode to the first mode.
Specifically, in order to enable the video capture device to be automatically turned off and enable the video capture device to be in the first mode after being turned off, so that the video capture device can store images of things happening in a recent period of time in a local memory, a still detection timer needs to be started, and whether a current acceleration is smaller than a preset threshold value is judged, when the current acceleration is smaller than the preset threshold value, the video capture device stops moving, and when the still detection timer times out, the video capture device stops moving for more than a certain time, and is in a still state, in order to enable the video capture device to record things happening in the recent period of time, and recorded contents do not occupy a larger storage space and enable the video capture device to have lower power consumption, the video capture device needs to be executed in the first mode, if the current acceleration is larger than or equal to the preset threshold value, it is indicated that the video capture device has not stopped moving and it is desirable to enable the video capture device to store higher quality video data for use by the user, thereby requiring the timer to be re-timed.
Taking the automobile data recorder as an example, after the automobile is flamed out and the flameout duration exceeds a certain duration, the automobile data recorder is turned off, the automobile data recorder is enabled to execute the first mode, before the automobile is not flamed out, the automobile data recorder needs to be kept in an on state, the timer needs to be restarted, and at the moment, the automobile data recorder can normally store video data.
it should be noted that, the detecting of whether the acceleration is overtime by the static detection timer is only one implementation manner provided in the present application, and whether other parameters are overtime may also be detected, and the specific parameters detected by the static detection timer are not specifically limited herein.
fig. 5 is a schematic structural diagram of a video capture device provided in the present application, and as shown in fig. 5, the video capture device includes:
an image sensor 51 for acquiring images at set intervals in a first mode of the apparatus;
a memory 52 for storing images acquired at set intervals in the first mode of the apparatus;
An external event detection module 53, configured to detect an externally triggered event;
a processor 54, configured to determine whether a current operating mode of the device is a first mode when an external trigger event is detected;
And when the current working mode of the equipment is judged to be the first mode, switching the current working mode of the equipment from the first mode to the second mode, starting video recording in the second mode, and carrying out coding compression on the image collected in the second mode and the image stored in the local memory.
in one possible embodiment, the image sensor 51 is further configured to:
And when the current working mode of the equipment is the first mode, acquiring images in real time according to a preset time interval.
in one possible embodiment, the memory 52 is further configured to:
after the image sensor 51 collects images in real time according to a preset time interval, detecting whether the free storage space in the local memory is enough to accommodate the images currently collected by the device;
If not, covering the image which is acquired currently by the image sensor 51 with the longest storage time in the local memory;
If yes, storing the image currently acquired by the image sensor 51 into a free storage space in a local memory.
In one possible embodiment, the image sensor 51 is further configured to:
and starting the video recording in the second mode, and continuously acquiring images in real time.
in a possible embodiment, when the processor 54 performs encoding compression on the image acquired in the second mode and the image stored in the local memory, the method is specifically configured to:
And coding and compressing the image acquired in the first mode and the image acquired in the second mode to generate a complete event video, and recording the complete event video in a storage unit of the device.
in one possible embodiment, when the device is in the first mode, the system operating frequency of the device is the lowest;
Wherein, the system operating frequency of the equipment at least comprises: CPU frequency, DDR frequency, DSP frequency, and image sensor 51 frequency.
In one possible embodiment of the method according to the invention,
The processor 54 is further configured to start a static detection timer when starting a video; and the video recording device is used for stopping video recording and switching the current working mode of the equipment from the current second mode to the first mode when the static detection timer is detected to be overtime.
In the present application, in the first mode, the acquired image is stored in the local memory, the image is not encoded and compressed, because the power consumption is large when the image is coded and compressed, compared with the prior art, the power consumption of the video acquisition equipment can be reduced, and, because the image collected by the device in the first mode and the real-time image collected by the device, which are stored in the local memory, are encoded and compressed when the video is started in the second mode, the image collected in the first mode is also stored in the video after the encoding and compression, so that things that happen when the device is in the first mode can be viewed by viewing the encoded compressed video, furthermore, the method and the device can meet the purpose that a user checks monitoring data before starting the video, namely, the video after being coded and compressed can completely record images concerned by the user.
embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, and the computer program, when processed by a processor, implements the embodiments shown in fig. 1 to 4.
for the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any invention or of what may be claimed, but rather as descriptions of features specific to particular embodiments of particular inventions. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. In other instances, features described in connection with one embodiment may be implemented as discrete components or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
Thus, particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. Further, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some implementations, multitasking and parallel processing may be advantageous.
the above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (15)

1. a data processing method is applied to a video acquisition device and comprises the following steps:
The device collects images according to a set interval and stores the images to a local memory in a first mode;
when an external trigger event is detected, judging whether the current working mode of the equipment is a first mode or not;
And when the current working mode of the equipment is judged to be the first mode, switching the current working mode of the equipment from the first mode to the second mode, starting video recording in the second mode, and carrying out coding compression on the image collected in the second mode and the image stored in the local memory.
2. The method of claim 1, wherein when the current operating mode of the device is the first mode, the method further comprises:
And acquiring images in real time according to a preset time interval.
3. the method of claim 2, further comprising, after said acquiring images in real time according to a preset time interval:
detecting whether the free storage space in the local memory is enough to accommodate the image currently acquired by the equipment;
If not, covering the image which is acquired currently by the equipment with the longest storage time in the local memory;
and if so, storing the image currently acquired by the equipment to a free storage space in a local memory.
4. the method of claim 1, wherein starting recording in the second mode comprises:
And continuously acquiring images in real time.
5. the method according to claim 1, wherein the encoding and compressing the image acquired in the second mode and the image stored in the local memory comprises:
And coding and compressing the image acquired in the first mode and the image acquired in the second mode to generate a complete event video, and recording the complete event video in a storage unit of the device.
6. the method of claim 1, wherein when the device is in the first mode, the system operating frequency of the device is lowest;
wherein, the system operating frequency of the equipment at least comprises: CPU frequency, DDR frequency, DSP frequency and image sensor frequency.
7. the method of claim 1, wherein opening the video recording further comprises:
Starting a static detection timer;
And when the static detection timer is detected to be overtime, stopping recording, and switching the current working mode of the equipment from the current second mode to the first mode.
8. A video capture device, the video capture device comprising:
The image sensor is used for acquiring images according to a set interval in a first mode;
The memory is used for storing images acquired by the equipment in a first mode according to set intervals;
The external event detection module is used for detecting an externally triggered event;
The processor is used for judging whether the current working mode of the equipment is a first mode or not when an external trigger event is detected;
and when the current working mode of the equipment is judged to be the first mode, switching the current working mode of the equipment from the first mode to the second mode, starting video recording in the second mode, and carrying out coding compression on the image collected in the second mode and the image stored in the local memory.
9. The video capture device of claim 8, wherein the image sensor is further to:
And when the current working mode of the equipment is the first mode, acquiring images in real time according to a preset time interval.
10. The video capture device of claim 9, wherein the memory is further configured to:
After the image sensor collects images in real time according to a preset time interval, detecting whether the free storage space in the local memory is enough to accommodate the images collected by the equipment currently;
If not, covering the image which is acquired currently by the image sensor with the longest storage time in a local memory;
if yes, storing the image currently acquired by the image sensor into a free storage space.
11. the video capture device of claim 8, wherein the image sensor is further to:
And starting the video recording in the second mode, and continuously acquiring images in real time.
12. The video capturing device of claim 8, wherein when the processor performs the encoding compression of the image captured in the second mode and the image stored in the local memory, the processor is specifically configured to:
and coding and compressing the image acquired in the first mode and the image acquired in the second mode to generate a complete event video, and recording the complete event video in a storage unit of the device.
13. the video capture device of claim 8, wherein when the device is in the first mode, the device has a lowest system operating frequency;
wherein, the system operating frequency of the equipment at least comprises: CPU frequency, DDR frequency, DSP frequency and image sensor frequency.
14. The video capture device of claim 8,
The processor is also used for starting a static detection timer when the video is started; and the video recording device is used for stopping video recording and switching the current working mode of the equipment from the current second mode to the first mode when the static detection timer is detected to be overtime.
15. A computer-readable storage medium, on which a computer program is stored, characterized in that the program realizes any of claims 1-7 when processed by a processor.
CN201810556760.9A 2018-05-31 2018-05-31 Data processing method, video acquisition equipment and readable storage medium Active CN110557553B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810556760.9A CN110557553B (en) 2018-05-31 2018-05-31 Data processing method, video acquisition equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810556760.9A CN110557553B (en) 2018-05-31 2018-05-31 Data processing method, video acquisition equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110557553A true CN110557553A (en) 2019-12-10
CN110557553B CN110557553B (en) 2022-01-25

Family

ID=68733911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810556760.9A Active CN110557553B (en) 2018-05-31 2018-05-31 Data processing method, video acquisition equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110557553B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112597899A (en) * 2020-12-24 2021-04-02 北京市商汤科技开发有限公司 Behavior state detection method and device, electronic equipment and storage medium
CN113259582A (en) * 2020-02-13 2021-08-13 青岛海信移动通信技术股份有限公司 Picture generation method and terminal
CN113542545A (en) * 2021-05-28 2021-10-22 青岛海信移动通信技术股份有限公司 Electronic equipment and video recording method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202663476U (en) * 2012-05-18 2013-01-09 硕颖数码科技(中国)有限公司 Portable digital camera
CN203217631U (en) * 2013-01-21 2013-09-25 惠州市华阳数码特电子有限公司 Driving recorder
CN103957355A (en) * 2014-05-12 2014-07-30 深圳市中兴移动通信有限公司 Mobile terminal and video recording method and device of seamless video recording mode switch thereof
CN104320573A (en) * 2014-09-19 2015-01-28 深圳一电科技有限公司 Parameter adjusting method and system of image shooting device
CN104836972A (en) * 2015-04-30 2015-08-12 徐友华 Real-time shooting device with forward time-delay storage function and shooting method
CN104952122A (en) * 2015-05-19 2015-09-30 佛山市锐诚云智能照明科技有限公司 Automobile data recorder capable of gathering evidence for traffic offence and system for gathering evidence for driving against traffic regulation
CN207233044U (en) * 2018-01-03 2018-04-13 补丁科技(深圳)有限公司 USB automobile data recorders with parking monitoring function
CN107958508A (en) * 2016-10-18 2018-04-24 中兴通讯股份有限公司 A kind of vehicle-mounted recording device and method of work

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202663476U (en) * 2012-05-18 2013-01-09 硕颖数码科技(中国)有限公司 Portable digital camera
CN203217631U (en) * 2013-01-21 2013-09-25 惠州市华阳数码特电子有限公司 Driving recorder
CN103957355A (en) * 2014-05-12 2014-07-30 深圳市中兴移动通信有限公司 Mobile terminal and video recording method and device of seamless video recording mode switch thereof
CN104320573A (en) * 2014-09-19 2015-01-28 深圳一电科技有限公司 Parameter adjusting method and system of image shooting device
CN104836972A (en) * 2015-04-30 2015-08-12 徐友华 Real-time shooting device with forward time-delay storage function and shooting method
CN104952122A (en) * 2015-05-19 2015-09-30 佛山市锐诚云智能照明科技有限公司 Automobile data recorder capable of gathering evidence for traffic offence and system for gathering evidence for driving against traffic regulation
CN107958508A (en) * 2016-10-18 2018-04-24 中兴通讯股份有限公司 A kind of vehicle-mounted recording device and method of work
CN207233044U (en) * 2018-01-03 2018-04-13 补丁科技(深圳)有限公司 USB automobile data recorders with parking monitoring function

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259582A (en) * 2020-02-13 2021-08-13 青岛海信移动通信技术股份有限公司 Picture generation method and terminal
CN112597899A (en) * 2020-12-24 2021-04-02 北京市商汤科技开发有限公司 Behavior state detection method and device, electronic equipment and storage medium
CN113542545A (en) * 2021-05-28 2021-10-22 青岛海信移动通信技术股份有限公司 Electronic equipment and video recording method
CN113542545B (en) * 2021-05-28 2024-03-26 青岛海信移动通信技术有限公司 Electronic device and video recording method

Also Published As

Publication number Publication date
CN110557553B (en) 2022-01-25

Similar Documents

Publication Publication Date Title
CN110557553B (en) Data processing method, video acquisition equipment and readable storage medium
CN102905101A (en) Video recording apparatus, video recording system and video recording method
EP1936576A1 (en) Camera tampering detection
KR101365237B1 (en) Surveilance camera system supporting adaptive multi resolution
WO2010144176A1 (en) Method and system for categorized event recording of images in multiple resolution levels
CN103826109A (en) Video monitoring image data processing method and system
CN102945678A (en) Storage method and system of video documents and video monitoring device
JP2008042695A (en) Monitor camera apparatus, monitor camera system, and method of recording monitor camera image
CN112584083B (en) Video playing method, system, electronic equipment and storage medium
CN105611252B (en) A kind of kinescope method and equipment of video
US11336870B2 (en) Smart motion detection device and related determining method
CN114501002A (en) GOP cache-based pre-alarm video recording method and device
CN109308778B (en) Mobile detection alarm method, device, acquisition equipment and storage medium
KR20140069855A (en) Apparatus and method for video recording for vehicles
US5862272A (en) Image detector
EP4054184A1 (en) Event video sequences
JPH1169298A (en) Supervisory image recorder
EP3041239A1 (en) Video storage/distribution device, system, method and program
CN202818473U (en) Storage device based on SDI high-definition video
CN111523350A (en) Image recognition method and device, storage medium, terminal and image recognition system
CN109842796B (en) Fault detection system and method of video shooting equipment and video shooting equipment
KR200452908Y1 (en) Monitering camera which has digital video recoder
JP2005057609A (en) Camera
EP3989587A1 (en) Image processing device and method of pre-processing images of a video stream before encoding
KR101942418B1 (en) Method and Apparatus for Recording Timeline

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