CN105872428A - Video data protection method and apparatus - Google Patents

Video data protection method and apparatus Download PDF

Info

Publication number
CN105872428A
CN105872428A CN201610225304.7A CN201610225304A CN105872428A CN 105872428 A CN105872428 A CN 105872428A CN 201610225304 A CN201610225304 A CN 201610225304A CN 105872428 A CN105872428 A CN 105872428A
Authority
CN
China
Prior art keywords
video data
external memory
access
memory
external
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.)
Pending
Application number
CN201610225304.7A
Other languages
Chinese (zh)
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 Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610225304.7A priority Critical patent/CN105872428A/en
Publication of CN105872428A publication Critical patent/CN105872428A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/907Television signal recording using static stores, e.g. storage tubes or semiconductor memories
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data
    • G07C5/085Registering performance data using electronic data carriers
    • G07C5/0866Registering performance data using electronic data carriers the electronic data carrier being a digital video recorder in combination with video camera
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)

Abstract

The invention relates to the technical field of intelligent terminal video data storage, and particularly relates to a video data protection method and apparatus. The method disclosed by the invention comprises the steps of determining that a native machine is in a preset emergency state; determining that an external memory cannot be accessed; and storing video data in a specific time period in an internal memory. Therefore, according to the video data protection method and apparatus disclosed by the invention, an access state of the external memory can be detected and judged, and according to the access state of the external memory, the video data is controlled to be stored in the external memory or the internal memory; when the external memory cannot be accessed, the video data can be stored in the internal memory for later transfer and/or calling for viewing so as to avoid the condition that when the external memory cannot be accessed (for example, due to vehicle collision, poor connection between an external memory card connection spring plate and an external storage interface is caused), the video data cannot be normally written into the external memory, thereby avoiding recording omission and loss of the video data and causing uncountable loss for a user.

Description

Video data guard method and device
[technical field]
The present invention relates to intelligent terminal video data technical field of memory, particularly relate to a kind of video data and protect Maintaining method and device.
[background technology]
Along with the increase of daily car, installing video data in registration of vehicle driving process on car Intelligent terminal (such as drive recorder) is as driving indispensability equipment, and it is mainly used in drive routine Various fortuitous events implement video recording, in order to process the controversial issue in the case of the monitoring of various no third side, such as Can pre-anti-collision porcelain and process traffic accident fix duty, it is equivalent to the black box on vehicle, and certainly, it is also Can be used for recording landscape on the way;When user drives, open the video camera on described intelligent terminal, Ji Ketong Cross camera record landscape on the way or/and traffic information.
Be traditionally used on car recording on the way landscape or/and the described intelligent terminal of traffic information typically uses The mode of external connection of storage card carries out data preservation, and by the relevant vibration information of Sensor monitoring, to trigger Urgent video data preserves instruction.But, owing to external connection of storage card is easy at vehicle generation high vibration Time (collided, bringing to a halt) with as described in intelligent terminal the machine because of loosen and loose contact (as with The shell fragment loose contact of external connection of storage card coupling part), in turn result in video data and cannot write this and external deposit In card storage, so that the leakage record of these key video sequence data is lost, affect user's plan and check phase by video data Pass situation.
[summary of the invention]
The purpose of the present invention aims to solve the problem that at least one problem above-mentioned, it is provided that a kind of video data protection side Method and device.
For realizing this purpose, the invention provides a kind of video data guard method, comprise the following steps:
Judge that the machine is in the default state of emergency;
Determine that external memory cannot access;
Video data in special time period is stored in internal memory.
Concrete, described determine in the step that external memory cannot access, specifically include:
Whether the external memory interface being connected with external memory in detection the machine connects normally;
If it is not, then judge that external memory cannot access.
Further, method of the present invention, further comprising the steps of:
The described video data being stored in internal memory is transferred to recovered the external of access deposit In reservoir.
Further, it is transferred to the described video data being stored in internal memory recover to access External memory in step be triggered after described external memory recovers normal access execution.
Further, described, the described video data being stored in internal memory is transferred to the most extensive Before step in the multiple external memory accessed, also include:
Detect and judge that external memory has been recovered to access.
Concrete, described detection also judges that external memory has been recovered in the step accessed, specifically Including:
Detect and judge that described external memory interface recovers normally to be connected with described external memory the most;
The most then judge that external memory has been recovered to access.
Optionally, described internal memory includes that body carries flash memory, so as to will after the machine is restarted The described video data being stored in internal memory is transferred in the external memory having recovered to access.
Optionally, described internal memory is that body carries internal memory, so as to by institute before the machine power-off State the video data being stored in internal memory to be transferred in the external memory having recovered to access.
Optionally, described special time period includes described state of emergency time of origin point and this time of origin thereof Preset time period before Dian.
Optionally, described special time period includes described state of emergency time of origin point and this time of origin thereof Preset time period after Dian.
Concrete, described judgement the machine is in the step of the default state of emergency, specifically includes:
Detect acceleration information in real time, in order to judge whether the machine is according to the change of acceleration information pre- If the state of emergency.
Concrete, described real-time detection acceleration information, in order to judge this according to the change of acceleration information Whether machine is in the step of the default state of emergency, specifically includes:
Obtain described acceleration information,
Judge that whether described acceleration information is beyond predetermined threshold value;
When being judged as YES, then judge that the machine is in the default state of emergency.
Concrete, the executive agent of the method is intelligent camera device.
It is also preferred that the left described intelligent camera device is intelligent travelling crane recorder.
Accordingly, present invention also offers a kind of video data protection device, including:
Determination module, for judging that the machine is in the default state of emergency;
Determine module, be used for determining that external memory cannot access;
Memory module, for being stored in the video data in special time period in internal memory.
Concrete, described determine that module includes:
Detector unit, for detecting whether the external memory interface being connected with external memory in the machine connects Normally;
State determination unit, for when external memory interface is in and the most normally connects, it is determined that external storage Device cannot access.
Further, device of the present invention, also include:
Unloading module, for being transferred to the most recovered by the described video data being stored in internal memory In the external memory accessed.
Further, described unloading module is triggered to hold after described external memory recovers normal access Row respective operations.
Further, device of the present invention, also include:
Detection judge module, is used for detecting and judge that external memory has been recovered to access.
Concrete, described detection judge module includes:
Detection judging unit, is used for detecting and judge that described external memory interface external is deposited with described the most Reservoir recovers normal and connects;
Reconnect identifying unit, for when being judged as YES, it is determined that external memory has been recovered to access.
Optionally, described internal memory includes that body carries flash memory, so as to will after the machine is restarted The described video data being stored in internal memory is transferred in the external memory having recovered to access.
Optionally, described internal memory is that body carries internal memory, so as to by institute before the machine power-off State the video data being stored in internal memory to be transferred in the external memory having recovered to access.
Optionally, described special time period includes described state of emergency time of origin point and this time of origin thereof Preset time period before Dian.
Optionally, described special time period includes described state of emergency time of origin point and this time of origin thereof Preset time period after Dian.
Concrete, described determination module includes:
Acceleration detecting unit, detects acceleration information, in order to according to the change of acceleration information in real time Change and judge whether the machine is in the default state of emergency.
Concrete, described acceleration detecting unit includes:
Obtain subelement, be used for obtaining described acceleration information,
Judgment sub-unit, is used for judging that whether described acceleration information is beyond predetermined threshold value;
Judge subelement, for when being judged as YES, it is determined that the machine is in the default state of emergency.
Concrete, this video data protection device is installed in intelligent camera device.
It is also preferred that the left described intelligent camera device is intelligent travelling crane recorder.
Compared with prior art, the present invention possesses following advantage:
In the present invention, when the machine is in the default state of emergency, i.e. can detect and judge that external memory is No can normally access, when external memory cannot access, i.e. can be by the video data in special time period It is stored in internal memory;This process can prevent from making video data not because external memory cannot access Can be normally written in associated storage storage, the leakage record in turn resulting in partial video data is lost, and uses The family later stage cannot transfer the weight checking corresponding time period when complete video data and this state of emergency occur Want video data, and important video data therein leakage record is lost, the damage that meeting cause the user cannot be estimated Lose (during as traffic accident occurs, lack fix duty evidence).
Secondly, the present invention also can obtain described acceleration information, whether then judges described acceleration information Beyond predetermined threshold value, when being judged as YES, then judge that the machine is in the default state of emergency;This process is By the detection of acceleration information is judged the most whether vehicle runs into emergency, and then Corresponding control instruction is triggered, to realize intelligentized control method triggering preservation special time period according to judged result In the instruction of video data of (within the scheduled time before and after when emergency occurs).
Meanwhile, heretofore described internal memory is that body carries flash memory, is a kind of owing to carrying flash memory The memory of long-life non-volatile (still can keep stored data message under powering-off state), When the sudden loose contact of external memory interface (as caused external memory to connect shell fragment because of vehicle collision With external memory interface bad connection) and when making video time not to be normally written in external memory, i.e. Video data can be controlled be stored in this and carry in flash memory, with guarantee the complete of video data or key component (as When collision occurs and before and after occurring in a period of time) video data complete, it is simple to user transfers and looks in the later stage See or serve as traffic accident fix duty evidence etc..
It addition, the present invention also can detect and judge described external memory interface the most with described external storage Device recovers normal and connects, the most then judge that external memory has been recovered to access, and then by described storage Video data in internal memory is transferred in the external memory having recovered to access;Its unloading The video data being stored in internal memory is purged by Cheng Zhonghui, in order to for follow-up external memory (as caused the connection shell fragment of external memory because of vehicle collision with external memory interface even when cannot access Connect bad) indwelling memory space, to avoid the leakage of video data to record loss.
To sum up, the present invention can detect and judge the access state of external memory, and external deposits according to described The access state of reservoir controls video data and is stored in external memory or internal memory, deposits when external When reservoir cannot access, video data can be stored in internal memory, in order to later stage unloading and/or tune Take and check, it is to avoid (as caused because of vehicle collision external connection of storage card to connect when external memory cannot access Shell fragment and external memory interface bad connection) and make video data can not be normally written in external memory, And then avoid causing video data leakage record to lose, the loss that cause the user cannot be estimated.
[accompanying drawing explanation]
Fig. 1 is the program flow diagram of an embodiment of video data guard method in the present invention;
Fig. 2 is the program flow diagram of an embodiment of video data guard method in the present invention;
Fig. 3 is the structured flowchart of an embodiment of video data protection device in the present invention;
Fig. 4 is the structured flowchart of an embodiment of video data protection device in the present invention.
[detailed description of the invention]
With exemplary embodiment, the present invention is further described below in conjunction with the accompanying drawings, described embodiment Example is shown in the drawings, and the most same or similar label represents same or similar element Or there is the element of same or like function.The embodiment described below with reference to accompanying drawing is exemplary, It is only used for explaining the present invention, and is not construed as limiting the claims.Additionally, if it is known that technology Describe in detail and the invention is characterized in that unnecessary for illustrating, then omitted.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative used herein " one ", " one ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that The wording used in the specification of the present invention " includes " referring to there is described feature, integer, step, behaviour Make, element and/or assembly, but it is not excluded that existence or add other features one or more, integer, Step, operation, element, assembly and/or their group.It should be understood that when we claim element to be " connected " Or during " coupled " to another element, it can be directly connected or coupled to other elements, or can also There is intermediary element.Additionally, " connection " used herein or " coupling " can include wireless connection or Wireless couple.Wording "and/or" used herein includes that what one or more was associated lists the complete of item Portion or any cell combine with whole.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (bag Include technical term and scientific terminology), there is the general reason with the those of ordinary skill in art of the present invention Solve identical meaning.Should also be understood that those terms defined in such as general dictionary, it should quilt It is interpreted as that there is the meaning consistent with the meaning in the context of prior art, and unless as here By specific definitions, otherwise will not explain by idealization or the most formal implication.
Those skilled in the art of the present technique be both appreciated that " terminal " used herein above, " terminal device " Including the equipment of wireless signal receiver, it only possesses the equipment of wireless signal receiver of non-emissive ability, Including again the equipment receiving and launching hardware, it has and can perform two-way on bidirectional communication link The reception of letter and the equipment of transmitting hardware.This equipment may include that honeycomb or other communication equipments, its There is single line display or multi-line display or do not have the honeycomb of multi-line display or other communication to set Standby;PCS (Personal Communications Service, PCS Personal Communications System), it can combine language Sound, data process, fax and/or its communication ability;PDA (Personal Digital Assistant, Personal digital assistant), it can include the access of radio frequency receiver, pager, the Internet/intranet, net Network browser, notepad, calendar and/or GPS (Global Positioning System, global positioning system System) receiver;Conventional laptop and/or palmtop computer or other equipment, it has and/or includes The conventional laptop of radio frequency receiver and/or palmtop computer or other equipment.Used herein above " whole End ", " terminal device " can be portable, can transport, be arranged on the vehicles (aviation, sea-freight and/ Or land) in, or be suitable for and/or be configured at local runtime, and/or with distribution form, fortune Row runs in any other position in the earth and/or space." terminal " used herein above, " terminal device " Can also is that communication terminal, access terminals, music/video playback terminal, such as, can be PDA, MID (Mobile Internet Device, mobile internet device) and/or there is music/video playing function Mobile phone, it is also possible to be the equipment such as intelligent television, Set Top Box.
Those skilled in the art of the present technique are appreciated that server used herein above, high in the clouds, far-end network The concepts such as equipment, have effects equivalent, and it includes but not limited to computer, network host, single network The cloud that server, multiple webserver collection or multiple server are constituted.Here, cloud is by based on cloud computing A large amount of computers of (Cloud Computing) or the webserver are constituted, and wherein, cloud computing is distribution The one that formula calculates, the super virtual machine being made up of a group loosely-coupled computer collection.This In inventive embodiment, can be by any between remote network devices, terminal device and WNS server Communication mode realizes communication, includes but not limited to, mobile communication based on 3GPP, LTE, WIMAX, Based on TCP/IP, the computer network communication of udp protocol and based on bluetooth, Infrared Transmission standard near Away from wireless transmission method.
It is necessary that first application scenarios and principle to the present invention carries out following guiding explanation.
The method of the present invention and the application scenarios of device, be based on camera, processor, add The intelligent camera device of speed sensor and memory module, described intelligent camera device can be intelligent travelling crane note Record instrument or other intelligent mobile terminals (such as smart mobile phone etc.);Hereinafter will enter as a example by intelligent travelling crane recorder Row exemplary illustration, but should be noted that this description is exemplary, the scope of the present invention does not limit In this, the method and apparatus of the embodiment of the present invention is also applied for other intelligent camera devices.
Referring to Fig. 1, an exemplary embodiments of the present invention a kind of video data guard method, it includes Following steps:
S100, it is determined that the machine is in the default state of emergency.
Intelligent travelling crane recorder is under normal boot-strap state, and user may select and arranges the video time of admission All real time access, it is possible to be arranged to the video preserving in certain period of time according to the needing to trigger of event Data, the former required memory size is relatively big, and the latter is the more commonly used in intelligent travelling crane recorder;It is sentenced Determining mode is by detecting acceleration information in real time, and carry out judging according to the change of acceleration information, Its detailed process is as follows:
(1) described acceleration information is obtained.
Wherein, described acceleration information can be obtained by G-sensor.
(2) judge that whether described acceleration information is beyond predetermined threshold value.Wherein, when being judged as YES, Then judge that the machine is in the default state of emergency.
If vehicle collides, brake hard or when jolting bigger, its acceleration information i.e. may be beyond pre- If threshold value, this threshold value arranges corresponding numerical value also dependent on the actual demand of user.
Such as, under the normally-open video state of drive recorder, in vehicle travel process during burst collision, G-sensor on drive recorder (can will understand Real-time Collection in G-sensor work and obtain acceleration Data) acceleration information and predetermined acceleration data threshold comparison when occurring of this event, a comparison Knowing, when this event occurs, its acceleration information is beyond predetermined threshold value, and then judges that the machine is in default The state of emergency.
And for example, under the normally-open video state of drive recorder, vehicle jolts on rugged hill path During traveling, G-sensor on drive recorder can Real-time Collection obtain acceleration information and in real time with pre- If acceleration information threshold ratio pair, if the acceleration information in this bumpy sections is the most all not above presetting Threshold value, then will not judge that the machine is in the default state of emergency.
S110, determines that external memory cannot access.
Concrete, whether the external memory interface that detection the machine is connected with external memory connects normally; If it is not, then judge that external memory cannot access.
Wherein, described external memory can be hard disk or long-range high in the clouds, the most external memory interface for firmly Dish connects, or external memory interface is for being connected with high in the clouds, in order to will by described external memory interface Described video data is uploaded to the storage of described high in the clouds, and certainly, described external memory interface is connected with hard disk Simultaneously, it is possible to be connected with high in the clouds;When selecting to be connected with high in the clouds, can realize depositing external by network service Storage interface is connected with high in the clouds.Preferably, described external memory is hard disk.
S120, is stored in the video data in special time period in internal memory.
Wherein, described special time period can include the described acceleration information time of origin beyond predetermined threshold value Preset time period before point and this time of origin point thereof, described special time period may also comprise described acceleration Degrees of data is beyond the preset time period after the time of origin point of predetermined threshold value and this time of origin point thereof, also Can include described acceleration information beyond the time of origin point of data predetermined threshold value and this time of origin point thereof it Before and preset time period afterwards, certainly, it is possible to only include described acceleration information and exceed predetermined threshold value Time of origin point, its concrete mode user can be according to self custom and specifically need that preset in advance is good (or adopts With default setting);It addition, aforementioned preset time period can such as be arranged to 5 according to self needing setting Second, 10 seconds or 15 seconds etc..
Described internal memory can be that body carries flash memory or/and body carries internal memory, the most described built-in deposits Reservoir is NAND storage chip, and this NAND storage chip belongs to body and carries the one of flash memory, its It it is a kind of long-life non-volatile (under powering-off state, still can keep stored data message) Memory, therefore, it can preferably will be unable to transmit write external memory by external memory interface Video data carries out body from depositing, to prevent the leakage of in particular cases video data from depositing, it is ensured that video data The integrality of admission.
Such as, under the normally-open video state of drive recorder, when vehicle generation sharp impacts causes external (because easily causing during vehicle generation sharp impacts when memory is disconnected with described external memory interface The damage of relevant device on car body and vehicle body), wherein, during vehicle generation sharp impacts, (the machine is in default The state of emergency) can trigger video data preserve instruction, when drive recorder receives this video data When preserving instruction, the connection status of external memory interface with external memory i.e. can be carried out by drive recorder Detection, and judge that external memory interface is connected abnormal (external memory cannot access) with external memory, Then trigger by collisional event section (as collision occur time and occur before and after each 10 seconds sections) video counts According to being stored in flash card built-in in drive recorder, key during to guarantee that this collision accident occurs regards Frequency evidence, retains key evidence for follow-up traffic accident evidence obtaining fix duty.
And for example, under the normally-open video state of drive recorder, once bring to a halt when vehicle there occurs, but When not causing the normal network communications between external memory interface and long-range high in the clouds, wherein, vehicle occurs The instruction that video data preserves can be triggered when bringing to a halt, preserve when drive recorder receives this video data During instruction, the connection status of external memory interface with long-range high in the clouds i.e. can be detected by drive recorder, And judge that external memory interface is connected normally with long-range high in the clouds, then control this event time of bringing to a halt The video data of section is sent to long-range high in the clouds by external memory interface and directly stores;This process not only can be true Protect key video sequence data preferably to be preserved, also will not take memory space in internal memory (because of The memory space of the storage device that the memory space of general internal memory connects compared with external memory interface is little), So that the dependent event occurred when connecting abnormal for follow-up external memory interface reserves locally stored space.
Further, refer to accompanying drawing 2, method of the present invention, also include step S130, detection And judge that external memory has been recovered to access.
Concrete, the detailed process of this step is: detect and judge described external memory interface the most with Described external memory is recovered normal and is connected;The most then judge that external memory has been recovered to access.Its In, after judging that external memory has been recovered to access, perform step S140.
Further, method of the present invention, also include step S140, be stored in built-in depositing by described Video data in reservoir is transferred in the external memory having recovered to access.This step is in external storage Just can be triggered after device recovery access execution.
Wherein, described external memory includes the hard disk being directly connected on external memory interface and/or passes through The long-range high in the clouds that network service is connected with external memory interface;If what external memory interface connected is hard disk, I.e. control to be transferred in external hard drive the video data in described special time period by external memory interface Directly storage;If what external memory interface connected is high in the clouds, i.e. control regarding in described special time period Frequency is sent in high in the clouds directly according to by external memory interface and the direct network communication protocol in long-range high in the clouds High in the clouds stores.
Described internal memory includes that carrying flash memory can be that body carries flash memory or/and body carries internal memory, its In, carrying flash memory is a kind of long-life non-volatile memory, and it can be read and write, and power failure data is still Not losing, after energising, data can be recovered;And carry internal memory, such as RAM, its data can because Power down and lose, the most irrecoverable after energising.Therefore, when internal memory uses and carries flash memory, In the case of flash memory does not damages, the video data of its storage can be energized at any time and be transferred in external memory, And if internal memory for carrying internal memory (such as RAM) time, before power-off, the video data of storage need to be turned Deposit to external memory.
It addition, the video data in will be stored in internal memory is transferred to recover the external of access During memory, its can by internal memory this partial video data remove, think follow-up outside Connect the sudden loose contact of memory interface (as caused external connection of storage card to connect shell fragment with outer because of vehicle collision Connect memory interface bad connection) and indwelling memory space when making external memory to access, and then avoid The leakage record of video data is lost.
For the ease of the understanding to technical solution of the present invention, now enumerate specific embodiment to the technology of the present invention side Case is further described:
Such as, under drive recorder normal boot-strap video state, vehicle in the process of moving, G-sensor Obtain vehicle acceleration information in the process of moving in real time, and by the acceleration information obtained and default threshold Value is compared, to judge whether described acceleration information exceedes predetermined threshold value, during vehicle driving During burst collision, the speed of this vehicle i.e. can occur large change (as vehicle stop, adding of being hit suddenly Speed, throw roadbed and accelerate, slow down), this change drastically necessarily causes the absolute value of its accekeration to become Greatly, and the related data of this change (including acceleration information) is also inevitable by the row under normal operating conditions G-sensor on car recorder obtains, and is then carried out with the threshold value preset by the acceleration information got Multilevel iudge, when the acceleration information judging this event exceedes predetermined threshold value, (the machine is in default The state of emergency), drive recorder i.e. can control to send for triggering the instruction that video data preserves, relevant After parts receive this instruction, the connection status of external memory interface can be detected with that, described to judge Whether external memory interface connects normally, if judging when described external memory interface connects normal, and driving note Record instrument i.e. can control (to occur within first 10 seconds, to continue to occurring latter 10 seconds as collided in described special time period In) video data by described external memory interface be sent to associated storage (as external hard drive or/ With long-range high in the clouds) in directly store, if judging, described external memory interface connects abnormal and makes external storage When device cannot access (external memory and external memory interface may be caused to be disconnected because of collision process or Loosen and loose contact), i.e. can trigger and the video data in special time period is stored in internal memory In (flash memory carried such as the machine), outside persistently detecting under this drive recorder normal operating conditions simultaneously Connect whether memory interface reconnects external memory (such as external hard drive or/and remotely high in the clouds), if inspection Measure external memory interface to have external memory to reconnect can normally to have accessed, i.e. can by be stored in described in The video data put in memory is sent in this external memory deposit by described external memory interface Storage, is purged the video data being stored in described internal memory simultaneously.This process can be effective Guarantee the complete admission of video data when this event occurs and preserve, in order to when user's later stage right-safeguarding or fix duty Transfer and check this video data.
To sum up, the present invention can detect and judge the access state of external memory, and external deposits according to described The access state of reservoir controls video data and is stored in external memory or internal memory, deposits when external When reservoir cannot access, video data can be stored in internal memory, in order to later stage unloading and/or tune Take and check, it is to avoid (as caused because of vehicle collision external connection of storage card to connect when external memory cannot access Shell fragment and external memory interface bad connection) and make video data can not be normally written in external memory, And then avoid causing video data leakage record to lose, the loss that cause the user cannot be estimated.
Accordingly, according to the function modoularization thinking of computer software, present invention also offers a kind of video Data protecting device, namely the processor of a kind of video data protection.Refer to accompanying drawing 3, in detail below Disclose module and the concrete function of each module realization that this device includes.This device includes:
Determination module 11, for judging that the machine is in the default state of emergency.
Intelligent travelling crane recorder is under normal boot-strap state, and user may select and arranges the video time of admission All real time access, it is possible to be arranged to the video preserving in certain period of time according to the needing to trigger of event Data, the former required memory size is relatively big, and the latter is the more commonly used in intelligent travelling crane recorder;It is sentenced Determining mode is to be detected acceleration information in real time by acceleration detecting unit, and according to the change of acceleration information Changing and to carry out judging, the specific works process of described acceleration detecting unit includes:
(1) by obtaining the subelement described acceleration information of acquisition.
Wherein, described acceleration information can be obtained by G-sensor.
(2) judge that whether described acceleration information is beyond predetermined threshold value by judgment sub-unit.Wherein, when When being judged as YES, then by judging that subelement judges that the machine is in the default state of emergency.
If vehicle collides, brake hard or when jolting bigger, its acceleration information i.e. may be beyond pre- If threshold value, this threshold value arranges corresponding numerical value also dependent on the actual demand of user.
Such as, under the normally-open video state of drive recorder, in vehicle travel process during burst collision, G-sensor on drive recorder (can will understand Real-time Collection in G-sensor work and obtain acceleration Data) acceleration information and predetermined acceleration data threshold comparison when occurring of this event, a comparison Knowing, when this event occurs, its acceleration information is beyond predetermined threshold value, and then judges that the machine is in default The state of emergency.
And for example, under the normally-open video state of drive recorder, vehicle jolts on rugged hill path During traveling, G-sensor on drive recorder can Real-time Collection obtain acceleration information and in real time with pre- If acceleration information threshold ratio pair, if the acceleration information in this bumpy sections is the most all not above presetting Threshold value, then will not judge that the machine is in the default state of emergency.
Determine module 12, be used for determining that external memory cannot access.
Concrete, can detect, by detector unit, the external memory interface being connected in the machine with external memory Whether connect normal;If it is not, then judge that external memory cannot access by state determination unit.
Wherein, described external memory can be hard disk or long-range high in the clouds, the most external memory interface for firmly Dish connects, or external memory interface is for being connected with high in the clouds, in order to will by described external memory interface Described video data is uploaded to the storage of described high in the clouds, and certainly, described external memory interface is connected with hard disk Simultaneously, it is possible to be connected with high in the clouds;When selecting to be connected with high in the clouds, can realize depositing external by network service Storage interface is connected with high in the clouds.Preferably, described external memory is hard disk.
Memory module 13, for being stored in the video data in special time period in internal memory.
Wherein, described special time period can include the described acceleration information time of origin beyond predetermined threshold value Preset time period before point and this time of origin point thereof, described special time period may also comprise described acceleration Degrees of data is beyond the preset time period after the time of origin point of predetermined threshold value and this time of origin point thereof, also Can include described acceleration information beyond the time of origin point of data predetermined threshold value and this time of origin point thereof it Before and preset time period afterwards, certainly, it is possible to only include described acceleration information and exceed predetermined threshold value Time of origin point, its concrete mode user can be according to self custom and specifically need that preset in advance is good (or adopts With default setting);It addition, aforementioned preset time period can such as be arranged to 5 according to self needing setting Second, 10 seconds or 15 seconds etc..
Described internal memory can be that body carries flash memory or/and body carries internal memory, the most described built-in deposits Reservoir is NAND storage chip, and this NAND storage chip belongs to the one of body flash memory, and it is one Plant the storage of long-life non-volatile (still can keep stored data message under powering-off state) Device, therefore, its video that can preferably will be unable to be transmitted write external memory by external memory interface Data carry out body from depositing, to prevent the leakage of in particular cases video data from depositing, it is ensured that the record of video data The integrality taken.
Such as, under the normally-open video state of drive recorder, when vehicle generation sharp impacts causes external (because easily causing during vehicle generation sharp impacts when memory is disconnected with described external memory interface The damage of relevant device on car body and vehicle body), wherein, during vehicle generation sharp impacts, (the machine is in default The state of emergency) can trigger video data preserve instruction, when drive recorder receives this video data When preserving instruction, the connection status of external memory interface with external memory i.e. can be carried out by drive recorder Detection, and judge that external memory interface is connected abnormal (external memory cannot access) with external memory, Then trigger by collisional event section (as collision occur time and occur before and after each 10 seconds sections) video counts According to being stored in flash card built-in in drive recorder, key during to guarantee that this collision accident occurs regards Frequency evidence, retains key evidence for follow-up traffic accident evidence obtaining fix duty.
And for example, under the normally-open video state of drive recorder, once bring to a halt when vehicle there occurs, but When not causing the normal network communications between external memory interface and long-range high in the clouds, wherein, vehicle occurs The instruction that video data preserves can be triggered when bringing to a halt, preserve when drive recorder receives this video data During instruction, the connection status of external memory interface with long-range high in the clouds i.e. can be detected by drive recorder, And judge that external memory interface is connected normally with long-range high in the clouds, then control this event time of bringing to a halt The video data of section is sent to long-range high in the clouds by external memory interface and directly stores;This process not only can be true Protect key video sequence data preferably to be preserved, also will not take memory space in internal memory (because of The memory space of the storage device that the memory space of general internal memory connects compared with external memory interface is little), So that the dependent event occurred when connecting abnormal for follow-up external memory interface reserves locally stored space.
Further, refer to accompanying drawing 4, device of the present invention, also include detecting judge module 14, For detecting and judging that external memory has been recovered to access.
Wherein, described detection judge module 14 includes detecting judging unit, be used for detecting and judge described outside Connect memory interface the most to recover normally to be connected with described external memory;Reconnect identifying unit, for working as When being judged as YES, it is determined that external memory has been recovered to access.
Further, device of the present invention, also include unloading module 15, for being stored in described Video data in internal memory is transferred in the external memory having recovered to access.Described unloading mould Block 15 be reconnect identifying unit judge described external memory recovered access after be just triggered with Perform respective operations.
Wherein, described external memory includes the hard disk being directly connected on external memory interface and/or passes through The long-range high in the clouds that network service is connected with external memory interface;If what external memory interface connected is hard disk, I.e. control to be transferred in external hard drive the video data in described special time period by external memory interface Directly storage;If what external memory interface connected is high in the clouds, i.e. control regarding in described special time period Frequency is sent in high in the clouds directly according to by external memory interface and the direct network communication protocol in long-range high in the clouds High in the clouds stores.
Described internal memory includes that carrying flash memory can be that body carries flash memory or/and body carries internal memory, its In, carrying flash memory is a kind of long-life non-volatile memory, and it can be read and write, and power failure data is still Not losing, after energising, data can be recovered;And carry internal memory, such as RAM, its data can because Power down and lose, the most irrecoverable after energising.Therefore, when internal memory uses and carries flash memory, In the case of flash memory does not damages, the video data of its storage can be energized at any time and be transferred in external memory, And if internal memory for carrying internal memory (such as RAM) time, before power-off, the video data of storage need to be turned Deposit to external memory.
It addition, the video data that will be stored in internal memory in unloading module 15 is transferred to the most recovered During the external memory accessed, this partial video data in internal memory can be removed by it, Think that the follow-up sudden loose contact of external memory interface (as caused external connection of storage card even because of vehicle collision Connect shell fragment and external memory interface bad connection) and indwelling memory space when making external memory to access, And then avoid the leakage record of video data to lose.
For the ease of the understanding to technical solution of the present invention, now enumerate specific embodiment to the technology of the present invention side Case is further described:
Such as, under drive recorder normal boot-strap video state, vehicle in the process of moving, G-sensor Obtain vehicle acceleration information in the process of moving in real time, and by the acceleration information obtained and default threshold Value is compared, to judge whether described acceleration information exceedes predetermined threshold value, during vehicle driving During burst collision, the speed of this vehicle i.e. can occur large change (as vehicle stop, adding of being hit suddenly Speed, throw roadbed and accelerate, slow down), this change drastically necessarily causes the absolute value of its accekeration to become Greatly, and the related data of this change (including acceleration information) is also inevitable by the row under normal operating conditions G-sensor on car recorder obtains, and is then carried out with the threshold value preset by the acceleration information got Multilevel iudge, when the acceleration information judging this event exceedes predetermined threshold value, (the machine is in default The state of emergency), drive recorder i.e. can control to send for triggering the instruction that video data preserves, relevant After parts receive this instruction, the connection status of external memory interface can be detected with that, described to judge Whether external memory interface connects normally, if judging when described external memory interface connects normal, and driving note Record instrument i.e. can control (to occur within first 10 seconds, to continue to occurring latter 10 seconds as collided in described special time period In) video data by described external memory interface be sent to associated storage (as external hard drive or/ With long-range high in the clouds) in directly store, if judging, described external memory interface connects abnormal and makes external storage When device cannot access (external memory and external memory interface may be caused to be disconnected because of collision process or Loosen and loose contact), i.e. can trigger and the video data in special time period is stored in internal memory In (flash memory carried such as the machine), outside persistently detecting under this drive recorder normal operating conditions simultaneously Connect whether memory interface reconnects external memory (such as external hard drive or/and remotely high in the clouds), if inspection Measure external memory interface to have external memory to reconnect can normally to have accessed, i.e. can by be stored in described in The video data put in memory is sent in this external memory deposit by described external memory interface Storage, is purged the video data being stored in described internal memory simultaneously.This process can be effective Guarantee the complete admission of video data when this event occurs and preserve, in order to when user's later stage right-safeguarding or fix duty Transfer and check this video data.
To sum up, the present invention can detect and judge the access state of external memory, and external deposits according to described The access state of reservoir controls video data and is stored in external memory or internal memory, deposits when external When reservoir cannot access, video data can be stored in internal memory, in order to later stage unloading and/or tune Take and check, it is to avoid (as caused because of vehicle collision external connection of storage card to connect when external memory cannot access Shell fragment and external memory interface bad connection) and make video data can not be normally written in external memory, And then avoid causing video data leakage record to lose, the loss that cause the user cannot be estimated.
It addition, above is all illustrative as a example by drive recorder, but should be noted that This description is exemplary, and the scope of the present invention is not limited to this, the method and apparatus of the embodiment of the present invention Be also applied for other intelligent camera devices, such as band acceleration sensing and camera head smart mobile phone, Intelligent glasses, portable game machine, intelligent watch etc..
In specification mentioned herein, although illustrate substantial amounts of detail.But, it is possible to reason Solving, embodiments of the invention can be put into practice in the case of not having these details.In some embodiments In, it is not shown specifically known method, structure and technology, in order to do not obscure the understanding of this description.
Although have been illustrated with some exemplary embodiments of the present invention above, but those skilled in the art Member, can be to these exemplary enforcement it will be appreciated that in the case of without departing from the principle of the present invention or spirit Example makes a change, and the scope of the present invention is limited by claim and equivalent thereof.

Claims (10)

1. a video data guard method, it is characterised in that comprise the following steps:
Judge that the machine is in the default state of emergency;
Determine that external memory cannot access;
Video data in special time period is stored in internal memory.
2. video data guard method as claimed in claim 1, it is characterised in that described determine outside Put in the step that memory cannot access, specifically include:
Whether the external memory interface being connected with external memory in detection the machine connects normally;
If it is not, then judge that external memory cannot access.
3. video data guard method as claimed in claim 1 or 2, it is characterised in that also include Following steps:
The described video data being stored in internal memory is transferred to recovered the external of access deposit In reservoir.
4. video data guard method as claimed in claim 3, it is characterised in that by described storage Video data in internal memory is transferred to the step in the external memory having recovered to access in institute State the execution that is triggered after external memory recovers normal access.
5. video data guard method as claimed in claim 3, it is characterised in that described by institute State the step that the video data being stored in internal memory is transferred in the external memory having recovered to access Before Zhou, also include:
Detect and judge that external memory has been recovered to access.
6. video data guard method as claimed in claim 5, it is characterised in that described detection is also Judge that external memory has been recovered, in the step accessed, to specifically include:
Detect and judge that described external memory interface recovers normally to be connected with described external memory the most;
The most then judge that external memory has been recovered to access.
7. video data guard method as claimed in claim 3, it is characterised in that described built-in deposit Reservoir includes that body carries flash memory, so as to be stored in described in internal memory after the machine is restarted Video data be transferred to have recovered in the external memory accessed.
8. video data guard method as claimed in claim 3, it is characterised in that described built-in deposit Reservoir is that body carries internal memory, so as to be stored in described in internal memory before the machine power-off Video data is transferred in the external memory having recovered to access.
9. video data guard method as claimed in claim 1, it is characterised in that described specific time Between section include the preset time period before described state of emergency time of origin point and this time of origin point thereof.
10. a video data protection device, it is characterised in that including:
Determination module, for judging that the machine is in the default state of emergency;
Determine module, be used for determining that external memory cannot access;
Memory module, for being stored in the video data in special time period in internal memory.
CN201610225304.7A 2016-04-12 2016-04-12 Video data protection method and apparatus Pending CN105872428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610225304.7A CN105872428A (en) 2016-04-12 2016-04-12 Video data protection method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610225304.7A CN105872428A (en) 2016-04-12 2016-04-12 Video data protection method and apparatus

Publications (1)

Publication Number Publication Date
CN105872428A true CN105872428A (en) 2016-08-17

Family

ID=56636599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610225304.7A Pending CN105872428A (en) 2016-04-12 2016-04-12 Video data protection method and apparatus

Country Status (1)

Country Link
CN (1) CN105872428A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107093327A (en) * 2017-04-21 2017-08-25 华南理工大学 A kind of vehicle running collision processing method and system
CN108470271A (en) * 2018-03-08 2018-08-31 北京华通天畅工程监理咨询有限公司 A kind of engineering project total management system
CN109274916A (en) * 2018-09-27 2019-01-25 北京计算机技术及应用研究所 The video data storage method of pluggable master and backup discs in a kind of vehicle environment
CN110223418A (en) * 2019-06-24 2019-09-10 深圳市森国科科技股份有限公司 The audio-video storage method of automobile data recorder
CN110379043A (en) * 2018-08-14 2019-10-25 北京京东尚科信息技术有限公司 Information processing method, movable fixture and server
CN111404980A (en) * 2019-09-29 2020-07-10 杭州海康威视系统技术有限公司 Data storage method and object storage system
CN113628361A (en) * 2021-07-05 2021-11-09 宁波如意股份有限公司 Non-contact forklift data recorder
EP4131979A4 (en) * 2020-04-24 2023-07-19 Huawei Technologies Co., Ltd. Video processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826042A (en) * 2010-01-25 2010-09-08 宇龙计算机通信科技(深圳)有限公司 Method of data backup and mobile terminal
CN103106705A (en) * 2013-01-23 2013-05-15 深圳市华宝电子科技有限公司 Driving recorder and driving recording method thereof
JP2014170476A (en) * 2013-03-05 2014-09-18 Canon Inc Data processor and method for controlling the same
CN105141868A (en) * 2015-07-28 2015-12-09 北京奇虎科技有限公司 Video data protection system and security protection and transmission methods for each concerned end

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826042A (en) * 2010-01-25 2010-09-08 宇龙计算机通信科技(深圳)有限公司 Method of data backup and mobile terminal
CN103106705A (en) * 2013-01-23 2013-05-15 深圳市华宝电子科技有限公司 Driving recorder and driving recording method thereof
JP2014170476A (en) * 2013-03-05 2014-09-18 Canon Inc Data processor and method for controlling the same
CN105141868A (en) * 2015-07-28 2015-12-09 北京奇虎科技有限公司 Video data protection system and security protection and transmission methods for each concerned end

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107093327A (en) * 2017-04-21 2017-08-25 华南理工大学 A kind of vehicle running collision processing method and system
CN107093327B (en) * 2017-04-21 2021-03-23 华南理工大学 Driving collision processing method and system
CN108470271A (en) * 2018-03-08 2018-08-31 北京华通天畅工程监理咨询有限公司 A kind of engineering project total management system
CN110379043A (en) * 2018-08-14 2019-10-25 北京京东尚科信息技术有限公司 Information processing method, movable fixture and server
CN109274916A (en) * 2018-09-27 2019-01-25 北京计算机技术及应用研究所 The video data storage method of pluggable master and backup discs in a kind of vehicle environment
CN110223418A (en) * 2019-06-24 2019-09-10 深圳市森国科科技股份有限公司 The audio-video storage method of automobile data recorder
CN111404980A (en) * 2019-09-29 2020-07-10 杭州海康威视系统技术有限公司 Data storage method and object storage system
EP4131979A4 (en) * 2020-04-24 2023-07-19 Huawei Technologies Co., Ltd. Video processing method and device
JP7505701B2 (en) 2020-04-24 2024-06-25 ホアウェイ・テクノロジーズ・カンパニー・リミテッド Image processing method and device
CN113628361A (en) * 2021-07-05 2021-11-09 宁波如意股份有限公司 Non-contact forklift data recorder
CN113628361B (en) * 2021-07-05 2023-06-09 宁波如意股份有限公司 Non-contact forklift data recorder

Similar Documents

Publication Publication Date Title
CN105872428A (en) Video data protection method and apparatus
CA2632685C (en) Multi-stage memory buffer and automatic transfers in vehicle event recording systems
CN208820917U (en) Automobile data recorder system
CN103544744A (en) Automobile data recorder system and recording method based on cloud control
CN104331947A (en) Vehicle monitoring method and related equipment and system
US20140195071A1 (en) Emergency event based vehicle data logging
US20110227712A1 (en) Computerized multiple technology based vehicle alarm system and method
EP2002329A2 (en) Vehicle event recorder systems and networks having integrated cellular wireless communication systems
CN108959981A (en) Data storage device and data storage and preservation system
CN105553740A (en) Data interface monitoring method and device
JP2006231942A (en) Image recording device and image recording system
CN102800343B (en) Method and device for storing vehicle-mounted video
JP2010072845A (en) Drive recorder system, drive recorder, and information processing device
US20120286950A1 (en) Methods and systems for detecting theft of an item
CN102890834B (en) Motor-vehicle accident register system and method
CN112530475B (en) Mechanical hard disk shockproof device, method and system, electronic equipment and storage medium
US9586693B1 (en) Event-driven burst-mode status reporting
CN114326676A (en) Intrusion detection method and device, storage medium and electronic equipment
CN105973341A (en) Internet-based vehicle flooding monitoring and early warning system and vehicle adopting same
WO2017111875A1 (en) Arrays of distributed recording devices supporting black box data retention
CN104477129A (en) Remote control method and device based on disc brake lock
WO2022155948A1 (en) Video storage method for vehicle-mounted device, and vehicle-mounted device
JP2019185453A (en) Accident information recorder and accident information collection server
CN210201966U (en) Remote monitoring anti-theft traceable vehicle-mounted monitoring system
CN204567569U (en) A kind of automotive theft proof system based on video monitoring mobile detection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160817

RJ01 Rejection of invention patent application after publication