WO2022155948A1 - Video storage method for vehicle-mounted device, and vehicle-mounted device - Google Patents
Video storage method for vehicle-mounted device, and vehicle-mounted device Download PDFInfo
- Publication number
- WO2022155948A1 WO2022155948A1 PCT/CN2021/073555 CN2021073555W WO2022155948A1 WO 2022155948 A1 WO2022155948 A1 WO 2022155948A1 CN 2021073555 W CN2021073555 W CN 2021073555W WO 2022155948 A1 WO2022155948 A1 WO 2022155948A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- vehicle
- abnormal
- storage area
- recording storage
- video
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000012544 monitoring process Methods 0.000 claims abstract description 8
- 230000002159 abnormal effect Effects 0.000 claims description 102
- 238000004590 computer program Methods 0.000 claims description 30
- 238000012545 processing Methods 0.000 claims description 20
- 238000012546 transfer Methods 0.000 claims description 5
- 230000006870 function Effects 0.000 abstract description 14
- 230000002547 anomalous effect Effects 0.000 abstract 3
- 206010039203 Road traffic accident Diseases 0.000 abstract 1
- 230000035939 shock Effects 0.000 description 20
- 238000001514 detection method Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000010521 absorption reaction Methods 0.000 description 5
- 239000003990 capacitor Substances 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000011897 real-time detection Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003062 neural network model Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME 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/00—Registering or indicating the working of vehicles
- G07C5/08—Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
- G07C5/0841—Registering performance data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/78—Television signal recording using magnetic recording
- H04N5/781—Television signal recording using magnetic recording on disks or drums
Definitions
- the application belongs to the technical field of video storage, and in particular, relates to a video storage method of a vehicle-mounted device and the vehicle-mounted device.
- the on-board equipment can be used to record the situation during the driving of the vehicle. Due to the influence of the road surface, continuous vibration or occasional impact will inevitably occur.
- vehicle-mounted equipment generally needs to design a shock absorption device that can be installed with a mechanical hard disk to attenuate external vibration energy and reduce vibration and impact.
- the influence of the mechanical hard disk work, so as to realize the recording and writing function under normal scenes.
- mechanical hard disks have been widely used as video storage media.
- the embodiments of the present application provide a video recording storage method of a vehicle-mounted device and the vehicle-mounted device, which can solve the problem that a severe impact will pass through the vehicle body, The device then acts on the mechanical hard disk, causing the mechanical hard disk to work abnormally and the crash event recording failure to write.
- a video recording storage method of a vehicle-mounted device including:
- the cached video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory.
- the buffered video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory, including:
- the cached video data of the preset time period is written into the abnormal recording storage area of the non-volatile memory.
- the method further includes:
- the cached video data of the preset time period is written into the conventional video storage area of the mechanical hard disk.
- the buffered video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory, including:
- the cached video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory.
- it also includes:
- the cached video in the abnormal video recording storage area is dumped to the conventional video recording storage area of the mechanical hard disk.
- the step of transferring the cached video in the abnormal video recording storage area to the conventional video recording storage area of the mechanical hard disk further includes:
- an in-vehicle device including:
- the monitoring unit is used to monitor the state of the vehicle
- the first processing unit is configured to write the cached video data of a preset time period into the abnormal video recording storage area of the non-volatile memory if an abnormal state of the vehicle is detected.
- the first processing unit is specifically configured to:
- the cached video data of the preset time period is written into the abnormal recording storage area of the non-volatile memory.
- the in-vehicle device further includes:
- the second processing unit is configured to write the cached video data of the preset time period into the conventional video storage area of the mechanical hard disk if the abnormal state of the vehicle is not monitored.
- the first processing unit is specifically configured to:
- the cached video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory.
- the in-vehicle device further includes:
- the third processing unit is configured to dump the cached video in the abnormal video recording storage area to the conventional video recording storage area of the mechanical hard disk after the vehicle-mounted device is started.
- an in-vehicle device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program, the above-mentioned first
- the video recording storage method of the in-vehicle device described in the aspect comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program, the above-mentioned first The video recording storage method of the in-vehicle device described in the aspect.
- an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the vehicle-mounted device described in the first aspect above recording storage method.
- the beneficial effect of the video storage method of the in-vehicle device provided by the embodiment of the present application is that: in the embodiment of the present application, the in-vehicle device monitors the state of the vehicle; if an abnormal state of the vehicle is detected, the cached video data of a preset time period is written to The abnormal recording storage area into the non-volatile memory.
- an abnormal event such as a car accident
- the violent impact will not affect the storage function of the non-volatile memory, and the collision event video can be stored to facilitate the interpretation of the cause of the accident.
- FIG. 1 is a schematic flowchart of a video recording storage method of a vehicle-mounted device provided by a first embodiment of the present application
- FIG. 2 is a schematic flowchart of a video recording storage method of a vehicle-mounted device provided by the first embodiment of the present application;
- FIG. 3 is a schematic flowchart of a video recording storage method of a vehicle-mounted device provided by the first embodiment of the present application;
- FIG. 4 is a schematic diagram of the principle of the vehicle-mounted device of the execution subject of a video recording storage method of the vehicle-mounted device provided by the first embodiment of the present application;
- FIG. 5 is a schematic diagram of a vehicle-mounted device provided by a second embodiment of the present application.
- FIG. 6 is a schematic diagram of a vehicle-mounted device provided by a third embodiment of the present application.
- the on-board device itself plays a very important role in saving the video of the accident, so as to provide important evidence for the analysis of the cause of the accident and the division of responsibilities.
- Mechanical hard disks are generally composed of discs, read/write heads, spindles, transmission cantilevers, voice coil motors, PCB control circuits, and casings.
- the disk rotates at high speed, and the magnetic head flies above the disk, and the distance from the disk is less than 1 micron. Its working principle determines that if there is a strong vibration or shock factor in the external environment, the data reading or writing of the hard disk will be seriously affected. If the energy of vibration and shock exceeds the range that the mechanical hard disk can withstand, data writing will fail, and even severe shock will directly cause the hard disk to be damaged and all historical data to be lost.
- the vehicle-mounted equipment generally needs to design a shock absorption device that can be installed with a mechanical hard disk to attenuate external vibration. energy, reduce the impact of vibration and shock on the working of the mechanical hard disk, so as to realize the recording and writing function under normal scenes.
- shock absorption performance of the shock absorption device can meet the requirements in most scenarios, but when there is an abnormal event such as a car crash, such as a car accident, the severe impact will be transmitted to the mechanical hard disk through the body and equipment, causing the mechanical hard disk to work abnormally. Recording writing failed.
- an abnormal event such as a car crash, such as a car accident
- FIG. 1 is a schematic flowchart of a video recording storage method of a vehicle-mounted device provided by the first embodiment of the present application.
- the execution subject of a video recording storage method of an in-vehicle device is an in-vehicle device.
- the video recording storage method of the in-vehicle device as shown in FIG. 1 may include:
- the in-vehicle device monitors the state of the vehicle, and the in-vehicle device can monitor the state of the vehicle in various ways.
- the vehicle-mounted device may analyze the state of the vehicle through images of the vehicle in different directions collected by the image acquisition device, collect images in real time, and monitor the state of the vehicle in real time.
- the in-vehicle device can recognize the image through the target recognition algorithm or the neural network model algorithm, so as to determine the state of the vehicle.
- the in-vehicle device can collect data of vehicle vibration and shock in real time through sensors.
- the in-vehicle device can perform shock detection through the acceleration sensor G-sensor.
- the vehicle has a built-in 6-axis inertial sensor, which is responsible for real-time detection of vehicle vibration and shock. Data, and can judge the current state of the vehicle through a preset threshold. When the data of vehicle vibration and shock is greater than a preset threshold, it can be determined that the state of the vehicle is an abnormal state.
- the G-sensor can also detect changes in vehicle orientation.
- the initial X-Y-Z three-axis direction of the G-senor sensor can be determined.
- the default axis will change. Through relevant detection, the vehicle can be identified. A rollover occurred and the state of the vehicle was abnormal.
- the state of the vehicle may include various states, for example, including an abnormal state of the vehicle and a normal state of the vehicle.
- the abnormal state of the vehicle may include a variety of situations, such as the vehicle is impacted, or the vehicle rolls over, and the in-vehicle equipment is abnormally shut down, all of which may belong to the abnormal state of the vehicle.
- the cached video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory.
- the cached video data in the preset time period may be the cached video data in the latest preset time period.
- the cached video data in the preset time period may be the latest cached video data in 3S, and a period of time may be set in the device.
- Cache space dedicated to temporarily storing 3s video data. Refresh related video data on a first-in, first-out basis. If the abnormal state of the vehicle is detected, the cached video data of the preset time period in the cache space is written into the abnormal video recording storage area of the non-volatile memory.
- the abnormal recording storage area of the non-volatile memory can be EMMC flash.
- the CPU of the in-vehicle device supports EMMC flash startup, and the startup program can be stored in the EMMC flash.
- the most cost-effective EMMC flash has a minimum capacity of 8GBytes.
- the startup program of the CPU does not exceed 1GBytes, so there is a lot of program space. remaining.
- the auxiliary power supply of the system can be turned on, and the auxiliary power supply of the system can be used for the Farad capacitor backup system to provide auxiliary power for the system.
- the backup part of the Farad capacitor can provide auxiliary power for the system.
- the auxiliary power supply time is generally set to 5s.
- the cached video data of the preset time period is written into the non-volatile memory.
- Abnormal recording storage area namely EMMC flash.
- the abnormal state of the vehicle is abnormal impact of the vehicle. If it is detected that the vehicle is impacted and the impact intensity is greater than the preset impact threshold, it means that the state of the vehicle is the abnormal state of the vehicle.
- the cached video data of a preset time period is written into the abnormal video recording storage area of the non-volatile memory, that is, the EMMC flash.
- the power supply of in-vehicle equipment is directly drawn from the vehicle battery, and the startup or shutdown is controlled by the car key signal.
- the car key signal is turned on, the in-vehicle device is activated, and when the car key is turned off, the in-vehicle device is turned off.
- the on-board equipment is shut down abnormally, the possibility of the vehicle colliding is relatively high. Therefore, if an abnormal shutdown of the in-vehicle device is detected, the device can write the cached video data of the preset time period into the abnormal video recording storage area of the non-volatile memory.
- the cached video data of the preset time period is written into the conventional video storage area of the mechanical hard disk.
- the device can transfer the cached video in the abnormal recording storage area to the conventional recording storage area of the mechanical hard disk.
- the acquired cached video in the abnormal recording storage area is historical data, and the historical data can be transferred to the conventional recording storage area of the mechanical hard disk to free up space in the abnormal recording storage area.
- the device when the cached video in the abnormal video recording storage area is dumped to the conventional video recording storage area of the mechanical hard disk, specifically, the device dumps the cached video whose storage time is less than the preset duration in the abnormal video recording storage area. To the conventional video storage area of the mechanical hard disk, delete the cached video that will be greater than or equal to the preset duration when stored in the abnormal video storage area. For example, when the event time exceeds a week, the in-vehicle device can delete the cached video to free up the corresponding space.
- more settings can also be set to recycle the space in the abnormal recording storage area.
- the maximum bit rate of a 1080P 30FPS camera is 8Mbit/s.
- the vehicle-mounted device is activated and can search for abnormal recording blocks.
- the preset threshold is set to 50.
- the device can record the abnormal recording.
- the cached video in the storage area is transferred to the conventional recording storage area of the mechanical hard disk; when the number of remaining blocks is greater than or less than the preset threshold and the storage time of the stored video data is less than the preset time period, the device can cache the abnormal recording storage area.
- the video is transferred to the conventional recording storage area of the mechanical hard disk; when the number of remaining blocks is greater than or less than the preset threshold and the storage time of the stored video data is greater than or equal to the preset time period, the device can delete the cached video in the abnormal recording storage area ; When the number of remaining blocks is less than the preset threshold and the block storage time exceeds one week, the vehicle-mounted device can delete the cached video and release the corresponding space; when the number of remaining blocks is less than the preset threshold and the block storage time does not exceed one week, The in-vehicle device can dump the cached video in the abnormal recording storage area to the conventional recording storage area of the mechanical hard disk.
- the camera part is responsible for the collection of video data. Depending on the installation location, the camera can capture video images from different directions of the vehicle, such as the front, side, rear, interior and other areas of the vehicle. These key area videos can be used to restore the vehicle running scene.
- the G-sensor shock detection part has a built-in 6-axis inertial sensor, which is responsible for real-time detection of vehicle vibration and shock data, and can use a preset threshold to determine whether an abnormal shock occurs.
- the G-sensor output is interrupted and triggered.
- the CPU starts the abnormal shock recording save action.
- the G-sensor can also detect changes in vehicle orientation. Under normal circumstances, after the device is installed in the vehicle, the initial X-Y-Z three-axis direction of the G-senor sensor can be determined. When the vehicle rolls over, the default axis will change. Through relevant detection, the vehicle can be identified. A rollover event triggers an alarm on the remote platform.
- the Farad capacitor backup part is responsible for providing the auxiliary power supply of the system.
- the backup part of the Farad capacitor can provide auxiliary power for the system.
- the auxiliary power supply time is generally set to 5s.
- the switch detection part is used for the normal switch control of on-board equipment.
- the power supply of in-vehicle equipment is directly drawn from the vehicle battery, and the startup or shutdown is controlled by the car key signal.
- the car key signal is turned on, the device is turned on, and when the car key is turned off, the device is turned off.
- the power supply of the device and the key of the car often fail at the same time.
- the CPU can identify whether to trigger the abnormal video saving through the relevant detection circuit.
- the CPU part is the main control part of the system. It is responsible for camera video data reception, video data encoding, G-sensor interrupt processing, abnormal shutdown recognition, normal recording, abnormal recording storage and protection.
- DDR cache realizes system program operation and temporary storage of video encoding data, which is a power-off volatile memory.
- a buffer space can be opened up to temporarily store 3s video data.
- Refresh related video data on a first-in, first-out basis.
- the data in the cache is directly written to the mechanical hard disk.
- the G-sensor When an abnormal collision occurs, the G-sensor generates an interrupt signal, which triggers the CPU to start the abnormal save program, and stores the 3s video data in the cache into the Emmc flash with the highest priority.
- Emmc flash part system program memory and abnormal recording temporary memory, belong to the non-volatile memory when power off.
- the CPU generally supports EMCC flash boot.
- the boot program can be stored in EMCC flash.
- the most cost-effective EMCC flash in the market has a minimum capacity of 8GBytes. In fact, the boot program of the CPU does not exceed 1GBytes, so there is a lot of program space left.
- the vehicle-mounted device monitors the state of the vehicle; if an abnormal state of the vehicle is detected, the cached video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory.
- an abnormal event such as a car accident
- the violent impact will not affect the storage function of the non-volatile memory, and the collision event video can be stored to facilitate the interpretation of the cause of the accident.
- FIG. 5 is a schematic diagram of a vehicle-mounted device provided by a second embodiment of the present application.
- the included units are used to execute the steps in the embodiment corresponding to FIG. 1 .
- the relevant description in the embodiment corresponding to FIG. 1 please refer to the relevant description in the embodiment corresponding to FIG. 1 .
- the in-vehicle device 5 includes:
- a monitoring unit 510 configured to monitor the state of the vehicle
- the first processing unit 520 is configured to write the cached video data of a preset time period into the abnormal video recording storage area of the non-volatile memory if an abnormal state of the vehicle is detected.
- the first processing unit 520 is specifically used for:
- the cached video data of the preset time period is written into the abnormal recording storage area of the non-volatile memory.
- vehicle-mounted device 5 also includes:
- the second processing unit is configured to write the cached video data of the preset time period into the conventional video storage area of the mechanical hard disk if the abnormal state of the vehicle is not monitored.
- the first processing unit 520 is specifically used for:
- the cached video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory.
- vehicle-mounted device 5 also includes:
- the third processing unit is configured to dump the cached video in the abnormal video recording storage area to the conventional video recording storage area of the mechanical hard disk after the vehicle-mounted device is started.
- the third processing unit is also used for:
- FIG. 6 is a schematic diagram of a vehicle-mounted device provided by a third embodiment of the present application.
- the in-vehicle device 6 of this embodiment includes: a processor 60 , a memory 61 , and a computer program 62 stored in the memory 61 and executable on the processor 60 , such as video storage of the in-vehicle device program.
- the processor 60 executes the computer program 62
- the steps in each of the above embodiments of the video recording storage method of the vehicle-mounted device are implemented, for example, steps 101 to 102 shown in FIG. 1 .
- the processor 60 executes the computer program 62
- the functions of the modules/units in each of the foregoing apparatus embodiments for example, the functions of the modules 510 to 520 shown in FIG. 5 are implemented.
- the computer program 62 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 61 and executed by the processor 60 to complete the this application.
- the one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 62 in the in-vehicle device 6 .
- the computer program 62 can be divided into a monitoring unit and a first processing unit, and the specific functions of each unit are as follows:
- the monitoring unit is used to monitor the state of the vehicle
- the first processing unit is configured to write the cached video data of a preset time period into the abnormal video recording storage area of the non-volatile memory if an abnormal state of the vehicle is detected.
- the in-vehicle device may include, but is not limited to, a processor 60 and a memory 61 .
- FIG. 6 is only an example of the in-vehicle device 6 , and does not constitute a limitation on the in-vehicle device 6 , and may include more or less components than shown, or combine some components, or different components
- the in-vehicle device may further include an input and output device, a network access device, a bus, and the like.
- the so-called processor 60 may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, digital signal processors (Digital Signal Processors) Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
- the memory 61 may be an internal storage unit of the in-vehicle device 6 , such as a hard disk or a memory of the in-vehicle device 6 .
- the memory 61 may also be an external storage device of the in-vehicle device 6, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) equipped on the in-vehicle device 6 card, Flash Card, etc.
- the in-vehicle device 6 may also include both an internal storage unit of the in-vehicle device 6 and an external storage device.
- the memory 61 is used to store the computer program and other programs and data required by the in-vehicle device.
- the memory 61 can also be used to temporarily store data that has been output or will be output.
- An embodiment of the present application also provides a network device, the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor executing The computer program implements the steps in any of the foregoing method embodiments.
- Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.
- the embodiments of the present application provide a computer program product, when the computer program product runs on a mobile terminal, the steps in the foregoing method embodiments can be implemented when the mobile terminal executes the computer program product.
- the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
- the present application realizes all or part of the processes in the methods of the above embodiments, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium.
- the computer program includes computer program code
- the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like.
- the computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunication signals, and software distribution media.
- ROM read-only memory
- RAM random access memory
- electrical carrier signals telecommunication signals
- software distribution media For example, U disk, mobile hard disk, disk or CD, etc.
- computer readable media may not be electrical carrier signals and telecommunications signals.
- the disclosed apparatus/network device and method may be implemented in other manners.
- the apparatus/network device embodiments described above are only illustrative.
- the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units. Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
- the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Time Recorders, Dirve Recorders, Access Control (AREA)
- Closed-Circuit Television Systems (AREA)
Abstract
The present disclosure discloses a video storage method for a vehicle-mounted device, and a vehicle-mounted device. Said method comprises: monitoring the state of a vehicle; and if an anomalous state of the vehicle is detected, writing buffered video data within a preset time period into an anomalous video storage area of a non-volatile memory. In the solution, when an anomalous event occurs, for example, when a traffic accident happens, a violent impact also does not affect the storage function of the non-volatile memory, and the video of the collision event can be stored, facilitating interpretation of the cause to the accident.
Description
本申请属于录像存储技术领域,尤其涉及一种车载设备的录像存储方法及车载设备。The application belongs to the technical field of video storage, and in particular, relates to a video storage method of a vehicle-mounted device and the vehicle-mounted device.
车辆在实际行驶过程中,可以利用车载设备对车辆行驶过程中的情况进行录像。由于路面的影响,不可避免会产生持续的振动,或偶尔的冲击,为了适应这种场景,车载设备一般需要设计一种可安装机械硬盘的减震装置来衰减外部振动能量,降低振动、冲击对机械硬盘工作的影响,从而实现正常场景下的录像写入功能。在车载设备上,机械硬盘作为录像存储介质,得到了大量的应用。
During the actual driving of the vehicle, the on-board equipment can be used to record the situation during the driving of the vehicle. Due to the influence of the road surface, continuous vibration or occasional impact will inevitably occur. In order to adapt to this scenario, vehicle-mounted equipment generally needs to design a shock absorption device that can be installed with a mechanical hard disk to attenuate external vibration energy and reduce vibration and impact. The influence of the mechanical hard disk work, so as to realize the recording and writing function under normal scenes. In on-board equipment, mechanical hard disks have been widely used as video storage media.
但是,当出现异常事件时,比如发生车祸,剧烈的冲击会通过车身、设备再传导作用于机械硬盘,导致机械硬盘工作异常,碰撞事件录像写入失败。However, when an abnormal event occurs, such as a car accident, the violent impact will be transmitted to the mechanical hard disk through the body and equipment, causing the mechanical hard disk to work abnormally and the crash event video recording failure.
本申请实施例的目的之一在于:本申请实施例提供了一种车载设备的录像存储方法及车载设备,可以解决现有的录像存储方法在车辆出现异常事件时,剧烈的冲击会通过车身、设备再传导作用于机械硬盘,导致机械硬盘工作异常,碰撞事件录像写入失败的问题。One of the purposes of the embodiments of the present application is that: the embodiments of the present application provide a video recording storage method of a vehicle-mounted device and the vehicle-mounted device, which can solve the problem that a severe impact will pass through the vehicle body, The device then acts on the mechanical hard disk, causing the mechanical hard disk to work abnormally and the crash event recording failure to write.
为解决上述技术问题,本申请实施例采用的技术方案是:In order to solve the above-mentioned technical problems, the technical solutions adopted in the embodiments of the present application are:
第一方面,提供了一种车载设备的录像存储方法,包括:In a first aspect, a video recording storage method of a vehicle-mounted device is provided, including:
对车辆的状态进行监测;Monitor the state of the vehicle;
若监测到车辆异常状态,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。If the abnormal state of the vehicle is detected, the cached video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory.
在一个实施例中,所述若监测到车辆异常状态,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域,包括:In one embodiment, if the abnormal state of the vehicle is detected, the buffered video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory, including:
若监测到车辆受到冲击,且冲击强度大于预设冲击阈值,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。If it is detected that the vehicle is impacted, and the impact intensity is greater than the preset impact threshold, the cached video data of the preset time period is written into the abnormal recording storage area of the non-volatile memory.
在一个实施例中,在所述对车辆的状态进行监测之后,还包括:In one embodiment, after the monitoring of the state of the vehicle, the method further includes:
若未监测到车辆异常状态,则将预设时间段的缓存视频数据写入机械硬盘的常规录像存储区域。If the abnormal state of the vehicle is not detected, the cached video data of the preset time period is written into the conventional video storage area of the mechanical hard disk.
在一个实施例中,若监测到车辆异常状态,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域,包括:In one embodiment, if the abnormal state of the vehicle is detected, the buffered video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory, including:
若监测到所述车载设备非正常关机,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。If it is detected that the in-vehicle device is shut down abnormally, the cached video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory.
在一个实施例中,还包括:In one embodiment, it also includes:
在所述车载设备启动后,将异常录像存储区域内的缓存视频转存至机械硬盘的常规录像存储区域。After the in-vehicle device is started, the cached video in the abnormal video recording storage area is dumped to the conventional video recording storage area of the mechanical hard disk.
在一个实施例中,所述将异常录像存储区域内的缓存视频转存至机械硬盘的常规录像存储区域,还包括:In one embodiment, the step of transferring the cached video in the abnormal video recording storage area to the conventional video recording storage area of the mechanical hard disk further includes:
将所述异常录像存储区域中存储时间小于预设时长的缓存视频转存至机械硬盘的常规录像存储区域,删除所述异常录像存储区域中存储时将大于或等于预设时长的缓存视频。Transfer the cached video whose storage time is less than the preset duration in the abnormal recording storage area to the conventional recording storage area of the mechanical hard disk, and delete the cached video whose storage time is greater than or equal to the preset duration in the abnormal recording storage area.
第二方面,提供了一种车载设备,包括:In a second aspect, an in-vehicle device is provided, including:
监测单元,用于对车辆的状态进行监测;The monitoring unit is used to monitor the state of the vehicle;
第一处理单元,用于若监测到车辆异常状态,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。The first processing unit is configured to write the cached video data of a preset time period into the abnormal video recording storage area of the non-volatile memory if an abnormal state of the vehicle is detected.
在一个实施例中,所述第一处理单元,具体用于:In one embodiment, the first processing unit is specifically configured to:
若监测到车辆受到冲击,且冲击强度大于预设冲击阈值,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。If it is detected that the vehicle is impacted, and the impact intensity is greater than the preset impact threshold, the cached video data of the preset time period is written into the abnormal recording storage area of the non-volatile memory.
在一个实施例中,所述车载设备,还包括:In one embodiment, the in-vehicle device further includes:
第二处理单元,用于若未监测到车辆异常状态,则将预设时间段的缓存视频数据写入机械硬盘的常规录像存储区域。The second processing unit is configured to write the cached video data of the preset time period into the conventional video storage area of the mechanical hard disk if the abnormal state of the vehicle is not monitored.
在一个实施例中,所述第一处理单元,具体用于:In one embodiment, the first processing unit is specifically configured to:
若监测到所述车载设备非正常关机,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。If it is detected that the in-vehicle device is shut down abnormally, the cached video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory.
在一个实施例中,所述车载设备,还包括:In one embodiment, the in-vehicle device further includes:
第三处理单元,用于在所述车载设备启动后,将异常录像存储区域内的缓存视频转存至机械硬盘的常规录像存储区域。The third processing unit is configured to dump the cached video in the abnormal video recording storage area to the conventional video recording storage area of the mechanical hard disk after the vehicle-mounted device is started.
在一个实施例中,所述第三处理单元,还用于:In one embodiment, the third processing unit is further configured to:
将所述异常录像存储区域中存储时间小于预设时长的缓存视频转存至机械硬盘的常规录像存储区域,删除所述异常录像存储区域中存储时将大于或等于预设时长的缓存视频。Transfer the cached video whose storage time is less than the preset duration in the abnormal recording storage area to the conventional recording storage area of the mechanical hard disk, and delete the cached video whose storage time is greater than or equal to the preset duration in the abnormal recording storage area.
第三方面,提供一种车载设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面所述的车载设备的录像存储方法。In a third aspect, an in-vehicle device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program, the above-mentioned first The video recording storage method of the in-vehicle device described in the aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面所述的车载设备的录像存储方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the vehicle-mounted device described in the first aspect above recording storage method.
本申请实施例提供的车载设备的录像存储方法的有益效果在于:本申请实施例中,车载设备对车辆的状态进行监测;若监测到车辆异常状态,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。上述方案,当出现异常事件时,比如发生车祸,剧烈的冲击也不会影响非易失性存储器的存储功能,碰撞事件录像可以进行存储,方便对解读事故发生的原因。The beneficial effect of the video storage method of the in-vehicle device provided by the embodiment of the present application is that: in the embodiment of the present application, the in-vehicle device monitors the state of the vehicle; if an abnormal state of the vehicle is detected, the cached video data of a preset time period is written to The abnormal recording storage area into the non-volatile memory. In the above solution, when an abnormal event occurs, such as a car accident, the violent impact will not affect the storage function of the non-volatile memory, and the collision event video can be stored to facilitate the interpretation of the cause of the accident.
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或示范性技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that are used in the description of the embodiments or exemplary technologies. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本申请第一实施例提供的一种车载设备的录像存储方法的示意流程图;1 is a schematic flowchart of a video recording storage method of a vehicle-mounted device provided by a first embodiment of the present application;
图2是本申请第一实施例提供的一种车载设备的录像存储方法的示意流程图;2 is a schematic flowchart of a video recording storage method of a vehicle-mounted device provided by the first embodiment of the present application;
图3是本申请第一实施例提供的一种车载设备的录像存储方法的示意流程图;3 is a schematic flowchart of a video recording storage method of a vehicle-mounted device provided by the first embodiment of the present application;
图4是本申请第一实施例提供的一种车载设备的录像存储方法的执行主体车载设备的原理示意图;FIG. 4 is a schematic diagram of the principle of the vehicle-mounted device of the execution subject of a video recording storage method of the vehicle-mounted device provided by the first embodiment of the present application;
图5是本申请第二实施例提供的车载设备的示意图;5 is a schematic diagram of a vehicle-mounted device provided by a second embodiment of the present application;
图6是本申请第三实施例提供的车载设备的示意图。FIG. 6 is a schematic diagram of a vehicle-mounted device provided by a third embodiment of the present application.
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present application.
需说明的是,当部件被称为“固定于”或“设置于”另一个部件,它可以直接在另一个部件上或者间接在该另一个部件上。当一个部件被称为是“连接于”另一个部件,它可以是直接或者间接连接至该另一个部件上。术语“上”、“下”、“左”、“右”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制,对于本领域的普通技术人员而言,可以根据具体情况理解上述术语的具体含义。术语“第一”、“第二”仅用于便于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明技术特征的数量。“多个”的含义是两个或两个以上,除非另有明确具体的限定。It should be noted that when a component is referred to as being "fixed to" or "disposed on" another component, it can be directly on the other component or indirectly on the other component. When an element is referred to as being "connected to" another element, it can be directly or indirectly connected to the other element. The orientation or positional relationship indicated by the terms "upper", "lower", "left", "right", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of description, rather than indicating or implying the referred device Or the elements must have a specific orientation, be constructed and operated in a specific orientation, so it cannot be construed as a limitation to the present application, and those of ordinary skill in the art can understand the specific meanings of the above terms according to specific situations. The terms "first" and "second" are only used for the purpose of description, and should not be understood as indicating or implying relative importance or implying indicating the number of technical features. "Plurality" means two or more, unless expressly specifically limited otherwise.
车载设备本身作为一个录像设备,一个很重要的作用就是要能够保存事故发生时的录像,从而为事故原因分析、责任划分提供重要证据。As a video recording device, the on-board device itself plays a very important role in saving the video of the accident, so as to provide important evidence for the analysis of the cause of the accident and the division of responsibilities.
目前车载设备的录像存储介质主要有三种:机械硬盘,固态硬盘和SD卡。三者之中,机械硬盘性价比最高,因此在车载设备上,机械硬盘作为录像存储介质,得到了大量的应用。At present, there are three main types of video storage media for in-vehicle equipment: mechanical hard disk, solid-state hard disk and SD card. Among the three, the mechanical hard disk is the most cost-effective, so in the vehicle equipment, the mechanical hard disk has been widely used as a video storage medium.
机械硬盘一般由碟片、读/写磁头、主轴、传动悬臂、音圈马达、PCB控制电路、外壳等部分组成。磁盘读写时,碟片高速旋转,磁头飞行在碟片上方,距离碟片的距离不到1微米。其工作原理决定着,如果外界环境有很强的振动或冲击因素,硬盘的数据读出或写入就会受到严重的影响。如果振动、冲击的能量超过了机械硬盘可承受的范围,数据写入就会失败,甚至剧烈冲击会直接导致硬盘损坏、所有历史数据丢失。Mechanical hard disks are generally composed of discs, read/write heads, spindles, transmission cantilevers, voice coil motors, PCB control circuits, and casings. When the disk is reading and writing, the disk rotates at high speed, and the magnetic head flies above the disk, and the distance from the disk is less than 1 micron. Its working principle determines that if there is a strong vibration or shock factor in the external environment, the data reading or writing of the hard disk will be seriously affected. If the energy of vibration and shock exceeds the range that the mechanical hard disk can withstand, data writing will fail, and even severe shock will directly cause the hard disk to be damaged and all historical data to be lost.
车辆在实际行驶过程中,由于路面的影响,不可避免会产生持续的振动,或偶尔的冲击,为了适应这种场景,车载设备一般需要设计一种可安装机械硬盘的减震装置来衰减外部振动能量,降低振动、冲击对机械硬盘工作的影响,从而实现正常场景下的录像写入功能。During the actual driving of the vehicle, due to the influence of the road surface, continuous vibration or occasional impact will inevitably occur. In order to adapt to this scenario, the vehicle-mounted equipment generally needs to design a shock absorption device that can be installed with a mechanical hard disk to attenuate external vibration. energy, reduce the impact of vibration and shock on the working of the mechanical hard disk, so as to realize the recording and writing function under normal scenes.
减震装置的减震性能在大部分场景可以满足要求,但是当出现撞车事件等异常事件时,比如发生车祸,剧烈的冲击会通过车身、设备再传导作用于机械硬盘,导致机械硬盘工作异常,录像写入失败。The shock absorption performance of the shock absorption device can meet the requirements in most scenarios, but when there is an abnormal event such as a car crash, such as a car accident, the severe impact will be transmitted to the mechanical hard disk through the body and equipment, causing the mechanical hard disk to work abnormally. Recording writing failed.
请参见图1,图1是本申请第一实施例提供的一种车载设备的录像存储方法的示意流程图。本实施例中一种车载设备的录像存储方法的执行主体为车载设备。如图1所示的车载设备的录像存储方法可以包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a video recording storage method of a vehicle-mounted device provided by the first embodiment of the present application. In this embodiment, the execution subject of a video recording storage method of an in-vehicle device is an in-vehicle device. The video recording storage method of the in-vehicle device as shown in FIG. 1 may include:
S101:对车辆的状态进行监测。S101: Monitor the state of the vehicle.
车载设备对车辆的状态进行监测,车载设备可以通过多种方式对车辆的状态进行监测。The in-vehicle device monitors the state of the vehicle, and the in-vehicle device can monitor the state of the vehicle in various ways.
一种实施方式中,车载设备可以通过图像采集装置采集到的车辆不同方向的图像来分析车辆的状态,实时采集图像,实时对车辆的状态进行监测。车载设备可以通过目标识别算法或者神经网络模型算法来识别图像,从而确定车辆的状态。In one embodiment, the vehicle-mounted device may analyze the state of the vehicle through images of the vehicle in different directions collected by the image acquisition device, collect images in real time, and monitor the state of the vehicle in real time. The in-vehicle device can recognize the image through the target recognition algorithm or the neural network model algorithm, so as to determine the state of the vehicle.
一种实施方式中,车载设备可以通过传感器实时采集车辆震动和冲击的数据,例如,车载设备可以通过加速度传感器G-sensor进行冲击检测,车辆内置6轴惯量传感器,负责实时检测车辆震动和冲击的数据,并可通过预先设置的阈值,来判断当前车辆的状态。当车辆震动和冲击的数据大于预先设置的阈值时,可以判定车辆的状态为异常状态。In one embodiment, the in-vehicle device can collect data of vehicle vibration and shock in real time through sensors. For example, the in-vehicle device can perform shock detection through the acceleration sensor G-sensor. The vehicle has a built-in 6-axis inertial sensor, which is responsible for real-time detection of vehicle vibration and shock. Data, and can judge the current state of the vehicle through a preset threshold. When the data of vehicle vibration and shock is greater than a preset threshold, it can be determined that the state of the vehicle is an abnormal state.
同时,G-sensor还可检测车辆方位的变化。正常情形下,当设备在车辆安装完毕后,G-senor传感器的初始的X-Y-Z三轴方向就可以确定,当车辆发生侧翻时,默认轴向就会发生改变,通过相关检测,可识别到车辆发生侧翻,车辆的状态为异常状态。At the same time, the G-sensor can also detect changes in vehicle orientation. Under normal circumstances, after the device is installed in the vehicle, the initial X-Y-Z three-axis direction of the G-senor sensor can be determined. When the vehicle rolls over, the default axis will change. Through relevant detection, the vehicle can be identified. A rollover occurred and the state of the vehicle was abnormal.
S102:若监测到车辆异常状态,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。S102: If an abnormal state of the vehicle is detected, write the cached video data of the preset time period into the abnormal video recording storage area of the non-volatile memory.
在本实施例中,车辆的状态可以包括多种状态,例如,包括车辆异常状态和车辆正常状态。车辆异常状态中可以包括多种情况,比如车辆受到冲击、或者车辆发生侧翻、车载设备异常关机等情况,都可以属于车辆异常状态。In this embodiment, the state of the vehicle may include various states, for example, including an abnormal state of the vehicle and a normal state of the vehicle. The abnormal state of the vehicle may include a variety of situations, such as the vehicle is impacted, or the vehicle rolls over, and the in-vehicle equipment is abnormally shut down, all of which may belong to the abnormal state of the vehicle.
若车载设备监测到车辆异常状态,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。If the vehicle-mounted device detects an abnormal state of the vehicle, the cached video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory.
其中,预设时间段的缓存视频数据可以为最新的预设时间段内的缓存视频数据,例如,预设时间段的缓存视频数据可以为最新的3S内的缓存视频数据,设备中可以设置一段缓存空间,专门用于暂存3s视频数据。以先入先出原则,刷新相关视频数据。若监测到车辆异常状态,则将该缓存空间中的预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。The cached video data in the preset time period may be the cached video data in the latest preset time period. For example, the cached video data in the preset time period may be the latest cached video data in 3S, and a period of time may be set in the device. Cache space, dedicated to temporarily storing 3s video data. Refresh related video data on a first-in, first-out basis. If the abnormal state of the vehicle is detected, the cached video data of the preset time period in the cache space is written into the abnormal video recording storage area of the non-volatile memory.
其中,非易失性存储器的异常录像存储区域可以为EMMC flash。本实施例汇总,车载设备的CPU支持EMMC flash启动,启动程序可存储于EMMC flash,目前,性价比最高 EMMC flash容量最小为8GBytes,实际上CPU的启动程序都不超过1GBytes,因此存在大量的程序空间剩余。Wherein, the abnormal recording storage area of the non-volatile memory can be EMMC flash. In summary of this embodiment, the CPU of the in-vehicle device supports EMMC flash startup, and the startup program can be stored in the EMMC flash. At present, the most cost-effective EMMC flash has a minimum capacity of 8GBytes. In fact, the startup program of the CPU does not exceed 1GBytes, so there is a lot of program space. remaining.
此外,若监测到车辆异常状态,可以开启系统辅助电源,系统辅助电源可以为法拉电容备电系统,为系统提供辅助电源,当车辆发生异常碰撞时,车载设备的外部供电非常容易受影响,甚至可能存在冲击碰撞直接导致设备外电断开的情形。这时法拉电容备电部分可以为系统提供辅助电源,考虑到成本因素,辅助电源供电时间一般设置为5s。In addition, if the abnormal state of the vehicle is detected, the auxiliary power supply of the system can be turned on, and the auxiliary power supply of the system can be used for the Farad capacitor backup system to provide auxiliary power for the system. There may be situations in which the shock and impact directly lead to the disconnection of the external power of the device. At this time, the backup part of the Farad capacitor can provide auxiliary power for the system. Considering the cost factor, the auxiliary power supply time is generally set to 5s.
可以参考图2进行几种实施方式的说明,车载设备启动后,视频编码缓存得到3s的视频数据。Several implementation manners can be described with reference to FIG. 2 . After the in-vehicle device is started, the video encoding buffer obtains 3s of video data.
具体来说,一种实施方式中,若通过G-sensor冲击检测监测到车辆受到冲击,且冲击强度大于预设冲击阈值,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域,即EMMC flash。在本实施例中,车辆异常状态为车辆异常冲击,若监测到车辆受到冲击,且冲击强度大于预设冲击阈值,说明车辆的状态为车辆异常状态。Specifically, in one embodiment, if it is detected that the vehicle is impacted by the G-sensor impact detection, and the impact intensity is greater than the preset impact threshold, the cached video data of the preset time period is written into the non-volatile memory. Abnormal recording storage area, namely EMMC flash. In this embodiment, the abnormal state of the vehicle is abnormal impact of the vehicle. If it is detected that the vehicle is impacted and the impact intensity is greater than the preset impact threshold, it means that the state of the vehicle is the abnormal state of the vehicle.
具体来说,一种实施方式中,若监测到所述车载设备非正常关机,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域,即EMMC flash。Specifically, in one embodiment, if it is detected that the in-vehicle device is abnormally shut down, the cached video data of a preset time period is written into the abnormal video recording storage area of the non-volatile memory, that is, the EMMC flash.
正常场景下,车载设备的电源直接从车辆电瓶取电,开机或关机由车钥匙信号控制。当车钥匙信号打开时,车载设备启动,车钥匙关闭时,车载设备关机。当车辆发生碰撞时,常常出现车载设备供电和车钥匙同时失效的情形,所以,当车载设备非正常关机时,车辆发生碰撞的可能性也比较大。所以,若监测到车载设备非正常关机,设备可以将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。In normal scenarios, the power supply of in-vehicle equipment is directly drawn from the vehicle battery, and the startup or shutdown is controlled by the car key signal. When the car key signal is turned on, the in-vehicle device is activated, and when the car key is turned off, the in-vehicle device is turned off. When a vehicle collides, it often happens that the power supply of the on-board equipment and the car key fail at the same time. Therefore, when the on-board equipment is shut down abnormally, the possibility of the vehicle colliding is relatively high. Therefore, if an abnormal shutdown of the in-vehicle device is detected, the device can write the cached video data of the preset time period into the abnormal video recording storage area of the non-volatile memory.
一种实施方式中,若未监测到车辆异常状态,则将预设时间段的缓存视频数据写入机械硬盘的常规录像存储区域。In one embodiment, if the abnormal state of the vehicle is not detected, the cached video data of the preset time period is written into the conventional video storage area of the mechanical hard disk.
为了保证异常录像存储区域内的空间可以存储车辆异常状态时的视频数据,可以在车载设备启动后,设备将异常录像存储区域内的缓存视频转存至机械硬盘的常规录像存储区域。车载设备启动后,获取的异常录像存储区域内的缓存视频为历史数据,可以将历史数据转存至机械硬盘的常规录像存储区域,释放异常录像存储区域的空间。In order to ensure that the space in the abnormal recording storage area can store the video data when the vehicle is in an abnormal state, after the on-board equipment is started, the device can transfer the cached video in the abnormal recording storage area to the conventional recording storage area of the mechanical hard disk. After the in-vehicle device is started, the acquired cached video in the abnormal recording storage area is historical data, and the historical data can be transferred to the conventional recording storage area of the mechanical hard disk to free up space in the abnormal recording storage area.
一种实施方式中,在将异常录像存储区域内的缓存视频转存至机械硬盘的常规录像存储区域时,具体来说,设备将异常录像存储区域中存储时间小于预设时长的缓存视频转存至机械硬盘的常规录像存储区域,删除异常录像存储区域中存储时将大于或等于预设时长的缓存视频。例如,当事件时间超过一周,车载设备就可以删除缓存视频,释放相应空间。In one embodiment, when the cached video in the abnormal video recording storage area is dumped to the conventional video recording storage area of the mechanical hard disk, specifically, the device dumps the cached video whose storage time is less than the preset duration in the abnormal video recording storage area. To the conventional video storage area of the mechanical hard disk, delete the cached video that will be greater than or equal to the preset duration when stored in the abnormal video storage area. For example, when the event time exceeds a week, the in-vehicle device can delete the cached video to free up the corresponding space.
一种实施方式中,也可以设置更多的设置来对异常录像存储区域的空间进行循环利用,例如,1080P 30FPS摄像头最大码率为8Mbit/s,假设需要保存4个摄像头3s数据,则每次需要的存储空间为8Mbit/s*4*3/8=12MBbytes。如果在EMMC flash 划出100个区块,每个区块可以存储一次异常碰撞事件的预设时间段的缓存视频数据,则该异常事件的预设时间段的缓存视频数据存储空间大小为1200Mbytes,远远未占满EMMC flash剩余空间。In one embodiment, more settings can also be set to recycle the space in the abnormal recording storage area. For example, the maximum bit rate of a 1080P 30FPS camera is 8Mbit/s. The required storage space is 8Mbit/s*4*3/8=12MBbytes. If 100 blocks are drawn in the EMMC flash, and each block can store the cached video data of a preset time period of an abnormal collision event, the storage space of the cached video data of the preset time period of the abnormal event is 1200Mbytes, It is far from taking up the remaining space of EMMC flash.
通过这种策略,我们可以极高的提升系统性价比,而不需要添加额外的存储器。Through this strategy, we can greatly improve the system cost performance without adding additional memory.
这100个区块,我们可以通过设置相关策略,循环使用。例如,如图4所示,车载设备启动,可以对异常录像区块检索,本实施例中预设阈值设置为50,当剩余区块数小于预设阈值并且系统空闲时,设备可以将异常录像存储区域的缓存视频转存至机械硬盘的常规录像存储区域;当剩余区块数大于或者小于预设阈值并且存储的视频数据存储时间小于预设时间段时,设备可以将异常录像存储区域的缓存视频转存至机械硬盘的常规录像存储区域;当剩余区块数大于或者小于预设阈值并且存储的视频数据存储时间大于或者等于预设时间段时,设备可以将异常录像存储区域的缓存视频删除;当剩余区块数小于预设阈值且区块存储的时间超过一周,车载设备就可以删除缓存视频,释放相应空间;当剩余区块数小于预设阈值且区块存储的时间未超过一周,车载设备就可以将异常录像存储区域的缓存视频转存至机械硬盘的常规录像存储区域。These 100 blocks can be recycled by setting relevant policies. For example, as shown in Figure 4, the vehicle-mounted device is activated and can search for abnormal recording blocks. In this embodiment, the preset threshold is set to 50. When the number of remaining blocks is less than the preset threshold and the system is idle, the device can record the abnormal recording. The cached video in the storage area is transferred to the conventional recording storage area of the mechanical hard disk; when the number of remaining blocks is greater than or less than the preset threshold and the storage time of the stored video data is less than the preset time period, the device can cache the abnormal recording storage area. The video is transferred to the conventional recording storage area of the mechanical hard disk; when the number of remaining blocks is greater than or less than the preset threshold and the storage time of the stored video data is greater than or equal to the preset time period, the device can delete the cached video in the abnormal recording storage area ; When the number of remaining blocks is less than the preset threshold and the block storage time exceeds one week, the vehicle-mounted device can delete the cached video and release the corresponding space; when the number of remaining blocks is less than the preset threshold and the block storage time does not exceed one week, The in-vehicle device can dump the cached video in the abnormal recording storage area to the conventional recording storage area of the mechanical hard disk.
此外,如图4所示,本实施例提供一种车载设备的原理框图。车载设备由摄像头输入、G-sensor冲击检测,法拉电容备电、开关机检测、CPU、DDR 缓存、EMMC flash、带机械硬盘的减震装置等主要部分组成。In addition, as shown in FIG. 4 , this embodiment provides a principle block diagram of a vehicle-mounted device. The on-board equipment is composed of camera input, G-sensor shock detection, Farad capacitor backup power, switch detection, CPU, DDR cache, EMMC flash, shock absorption device with mechanical hard disk and other main parts.
摄像头部分,负责视频数据的采集。根据安装位置的不同,摄像头可采集车辆不同方向的视频画面,比如车辆前方,侧面、后方、车厢内部等区域视频。这些关键区域视频能过还原车辆运行现场。The camera part is responsible for the collection of video data. Depending on the installation location, the camera can capture video images from different directions of the vehicle, such as the front, side, rear, interior and other areas of the vehicle. These key area videos can be used to restore the vehicle running scene.
G-sensor冲击检测部分,内置6轴惯量传感器,负责实时检测车辆振动、冲击数据,并可通过预先设置的阈值,来判断是否出现异常冲击,当异常冲击产生时,G-sensor输出中断,触发CPU启动异常冲击录像保存动作。同时G-sensor还可检测车辆方位的变化。正常情形下,当设备在车辆安装完毕后,G-senor传感器的初始的X-Y-Z三轴方向就可以确定,当车辆发生侧翻时,默认轴向就会发生改变,通过相关检测,可识别到车辆侧翻事件,触发远程平台报警。The G-sensor shock detection part has a built-in 6-axis inertial sensor, which is responsible for real-time detection of vehicle vibration and shock data, and can use a preset threshold to determine whether an abnormal shock occurs. When an abnormal shock occurs, the G-sensor output is interrupted and triggered. The CPU starts the abnormal shock recording save action. At the same time, the G-sensor can also detect changes in vehicle orientation. Under normal circumstances, after the device is installed in the vehicle, the initial X-Y-Z three-axis direction of the G-senor sensor can be determined. When the vehicle rolls over, the default axis will change. Through relevant detection, the vehicle can be identified. A rollover event triggers an alarm on the remote platform.
法拉电容备电部分,负责提供系统辅助电源,当车辆发生异常碰撞时,车载设备的外部供电非常容易受影响,甚至可能存在冲击碰撞直接导致设备外电断开的情形。这时法拉电容备电部分可以为系统提供辅助电源,考虑到成本因素,辅助电源供电时间一般设置为5s。The Farad capacitor backup part is responsible for providing the auxiliary power supply of the system. When the vehicle has an abnormal collision, the external power supply of the on-board equipment is very easily affected, and there may even be a situation where the impact and collision directly lead to the disconnection of the external power of the equipment. At this time, the backup part of the Farad capacitor can provide auxiliary power for the system. Considering the cost factor, the auxiliary power supply time is generally set to 5s.
开关机检测部分,用于车载设备正常的开关机控制。正常场景下,车载设备的电源直接从车辆电瓶取电,开机或关机由车钥匙信号控制。当车钥匙信号打开时,设备启动,车钥匙关闭时,设备关机。当车辆发生碰撞时,常常出现设备供电和车钥匙同时失效的情形,CPU可以通过相关检测电路,识别是否要触发异常录像保存。The switch detection part is used for the normal switch control of on-board equipment. In normal scenarios, the power supply of in-vehicle equipment is directly drawn from the vehicle battery, and the startup or shutdown is controlled by the car key signal. When the car key signal is turned on, the device is turned on, and when the car key is turned off, the device is turned off. When the vehicle collides, the power supply of the device and the key of the car often fail at the same time. The CPU can identify whether to trigger the abnormal video saving through the relevant detection circuit.
CPU部分,是系统的主控部分,负责摄像头视频数据接收、视频数据编码,G-sensor中断处理,异常关机识别,正常录像、异常录像存储、保护。The CPU part is the main control part of the system. It is responsible for camera video data reception, video data encoding, G-sensor interrupt processing, abnormal shutdown recognition, normal recording, abnormal recording storage and protection.
DDR 缓存,实现系统程序运行、视频编码数据暂存功能,属于断电易失存储器。程序设计上,可以开辟一段缓存空间,专门用于暂存3s视频数据。以先入先出原则,刷新相关视频数据。正常情形下,缓存里面的数据直接写入机械硬盘,当异常碰撞来临时,G-sensor产生中断信号,触发CPU启动异常保存程序,将缓存里面的3s视频数据以最高优先级存入Emmc flash。DDR cache realizes system program operation and temporary storage of video encoding data, which is a power-off volatile memory. In terms of program design, a buffer space can be opened up to temporarily store 3s video data. Refresh related video data on a first-in, first-out basis. Under normal circumstances, the data in the cache is directly written to the mechanical hard disk. When an abnormal collision occurs, the G-sensor generates an interrupt signal, which triggers the CPU to start the abnormal save program, and stores the 3s video data in the cache into the Emmc flash with the highest priority.
Emmc flash部分,系统程序存储器和异常录像暂存器,属于断电非易失性存储器。CPU一般都支持EMCC flash启动。启动程序可存储于EMCC flash,目前市面上性价比最高EMCC flash容量最小都为8GBytes,实际上CPU的启动程序都不超过1GBytes,因此存在大量的程序空间剩余。Emmc flash part, system program memory and abnormal recording temporary memory, belong to the non-volatile memory when power off. The CPU generally supports EMCC flash boot. The boot program can be stored in EMCC flash. At present, the most cost-effective EMCC flash in the market has a minimum capacity of 8GBytes. In fact, the boot program of the CPU does not exceed 1GBytes, so there is a lot of program space left.
本申请实施例中,车载设备对车辆的状态进行监测;若监测到车辆异常状态,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。上述方案,当出现异常事件时,比如发生车祸,剧烈的冲击也不会影响非易失性存储器的存储功能,碰撞事件录像可以进行存储,方便对解读事故发生的原因。In the embodiment of the present application, the vehicle-mounted device monitors the state of the vehicle; if an abnormal state of the vehicle is detected, the cached video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory. In the above solution, when an abnormal event occurs, such as a car accident, the violent impact will not affect the storage function of the non-volatile memory, and the collision event video can be stored to facilitate the interpretation of the cause of the accident.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
请参见图5,图5是本申请第二实施例提供的车载设备的示意图。包括的各单元用于执行图1对应的实施例中的各步骤。具体请参阅图1对应的实施例中的相关描述。为了便于说明,仅示出了与本实施例相关的部分。参见图4,车载设备5包括:Please refer to FIG. 5 , which is a schematic diagram of a vehicle-mounted device provided by a second embodiment of the present application. The included units are used to execute the steps in the embodiment corresponding to FIG. 1 . For details, please refer to the relevant description in the embodiment corresponding to FIG. 1 . For convenience of explanation, only the parts related to this embodiment are shown. Referring to Fig. 4, the in-vehicle device 5 includes:
监测单元510,用于对车辆的状态进行监测;a monitoring unit 510, configured to monitor the state of the vehicle;
第一处理单元520,用于若监测到车辆异常状态,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。The first processing unit 520 is configured to write the cached video data of a preset time period into the abnormal video recording storage area of the non-volatile memory if an abnormal state of the vehicle is detected.
进一步地,所述第一处理单元520,具体用于:Further, the first processing unit 520 is specifically used for:
若监测到车辆受到冲击,且冲击强度大于预设冲击阈值,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。If it is detected that the vehicle is impacted, and the impact intensity is greater than the preset impact threshold, the cached video data of the preset time period is written into the abnormal recording storage area of the non-volatile memory.
进一步地,所述车载设备5,还包括:Further, the vehicle-mounted device 5 also includes:
第二处理单元,用于若未监测到车辆异常状态,则将预设时间段的缓存视频数据写入机械硬盘的常规录像存储区域。The second processing unit is configured to write the cached video data of the preset time period into the conventional video storage area of the mechanical hard disk if the abnormal state of the vehicle is not monitored.
进一步地,所述第一处理单元520,具体用于:Further, the first processing unit 520 is specifically used for:
若监测到所述车载设备非正常关机,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。If it is detected that the in-vehicle device is shut down abnormally, the cached video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory.
进一步地,所述车载设备5,还包括:Further, the vehicle-mounted device 5 also includes:
第三处理单元,用于在所述车载设备启动后,将异常录像存储区域内的缓存视频转存至机械硬盘的常规录像存储区域。The third processing unit is configured to dump the cached video in the abnormal video recording storage area to the conventional video recording storage area of the mechanical hard disk after the vehicle-mounted device is started.
进一步地,所述第三处理单元,还用于:Further, the third processing unit is also used for:
将所述异常录像存储区域中存储时间小于预设时长的缓存视频转存至机械硬盘的常规录像存储区域,删除所述异常录像存储区域中存储时将大于或等于预设时长的缓存视频。Transfer the cached video whose storage time is less than the preset duration in the abnormal recording storage area to the conventional recording storage area of the mechanical hard disk, and delete the cached video whose storage time is greater than or equal to the preset duration in the abnormal recording storage area.
图6是本申请第三实施例提供的车载设备的示意图。如图6所示,该实施例的车载设备6包括:处理器60、存储器61以及存储在所述存储器61中并可在所述处理器60上运行的计算机程序62,例如车载设备的录像存储程序。所述处理器60执行所述计算机程序62时实现上述各个车载设备的录像存储方法实施例中的步骤,例如图1所示的步骤101至102。或者,所述处理器60执行所述计算机程序62时实现上述各装置实施例中各模块/单元的功能,例如图5所示模块510至520的功能。FIG. 6 is a schematic diagram of a vehicle-mounted device provided by a third embodiment of the present application. As shown in FIG. 6 , the in-vehicle device 6 of this embodiment includes: a processor 60 , a memory 61 , and a computer program 62 stored in the memory 61 and executable on the processor 60 , such as video storage of the in-vehicle device program. When the processor 60 executes the computer program 62 , the steps in each of the above embodiments of the video recording storage method of the vehicle-mounted device are implemented, for example, steps 101 to 102 shown in FIG. 1 . Alternatively, when the processor 60 executes the computer program 62, the functions of the modules/units in each of the foregoing apparatus embodiments, for example, the functions of the modules 510 to 520 shown in FIG. 5 are implemented.
示例性的,所述计算机程序62可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器61中,并由所述处理器60执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序62在所述车载设备6中的执行过程。例如,所述计算机程序62可以被分割成监测单元、第一处理单元,各单元具体功能如下:Exemplarily, the computer program 62 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 61 and executed by the processor 60 to complete the this application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 62 in the in-vehicle device 6 . For example, the computer program 62 can be divided into a monitoring unit and a first processing unit, and the specific functions of each unit are as follows:
监测单元,用于对车辆的状态进行监测;The monitoring unit is used to monitor the state of the vehicle;
第一处理单元,用于若监测到车辆异常状态,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。The first processing unit is configured to write the cached video data of a preset time period into the abnormal video recording storage area of the non-volatile memory if an abnormal state of the vehicle is detected.
所述车载设备可包括,但不仅限于,处理器60、存储器61。本领域技术人员可以理解,图6仅仅是车载设备6的示例,并不构成对车载设备6的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述车载设备还可以包括输入输出设备、网络接入设备、总线等。The in-vehicle device may include, but is not limited to, a processor 60 and a memory 61 . Those skilled in the art can understand that FIG. 6 is only an example of the in-vehicle device 6 , and does not constitute a limitation on the in-vehicle device 6 , and may include more or less components than shown, or combine some components, or different components For example, the in-vehicle device may further include an input and output device, a network access device, a bus, and the like.
所称处理器60可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal
Processor,DSP)、专用集成电路
(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 60 may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, digital signal processors (Digital Signal Processors)
Processor, DSP), application-specific integrated circuits
(Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
所述存储器61可以是所述车载设备6的内部存储单元,例如车载设备6的硬盘或内存。所述存储器61也可以是所述车载设备6的外部存储设备,例如所述车载设备6上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。进一步地,所述车载设备6还可以既包括所述车载设备6的内部存储单元也包括外部存储设备。所述存储器61用于存储所述计算机程序以及所述车载设备所需的其他程序和数据。所述存储器61还可以用于暂时地存储已经输出或者将要输出的数据。The memory 61 may be an internal storage unit of the in-vehicle device 6 , such as a hard disk or a memory of the in-vehicle device 6 . The memory 61 may also be an external storage device of the in-vehicle device 6, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) equipped on the in-vehicle device 6 card, Flash Card, etc. Further, the in-vehicle device 6 may also include both an internal storage unit of the in-vehicle device 6 and an external storage device. The memory 61 is used to store the computer program and other programs and data required by the in-vehicle device. The memory 61 can also be used to temporarily store data that has been output or will be output.
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information exchange, execution process and other contents between the above-mentioned devices/units are based on the same concept as the method embodiments of the present application. For specific functions and technical effects, please refer to the method embodiments section. It is not repeated here.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
本申请实施例还提供了一种网络设备,该网络设备包括:至少一个处理器、存储器以及存储在所述存储器中并可在所述至少一个处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任意各个方法实施例中的步骤。An embodiment of the present application also provides a network device, the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor executing The computer program implements the steps in any of the foregoing method embodiments.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.
本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。The embodiments of the present application provide a computer program product, when the computer program product runs on a mobile terminal, the steps in the foregoing method embodiments can be implemented when the mobile terminal executes the computer program product.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the present application realizes all or part of the processes in the methods of the above embodiments, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When executed by a processor, the steps of each of the above method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunication signals, and software distribution media. For example, U disk, mobile hard disk, disk or CD, etc. In some jurisdictions, under legislation and patent practice, computer readable media may not be electrical carrier signals and telecommunications signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units. Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that: it can still be used for the above-mentioned implementations. The technical solutions described in the examples are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the application, and should be included in the within the scope of protection of this application.
Claims (10)
- 一种车载设备的录像存储方法,应用于车载设备,其特征在于,包括: A video recording storage method for vehicle-mounted equipment, applied to the vehicle-mounted equipment, is characterized in that, comprising:对车辆的状态进行监测;Monitor the state of the vehicle;若监测到车辆异常状态,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。If the abnormal state of the vehicle is detected, the cached video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory.
- 如权利要求1所述的车载设备的录像存储方法,其特征在于,所述若监测到车辆异常状态,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域,包括:The video recording storage method of the in-vehicle device according to claim 1, wherein if the abnormal state of the vehicle is monitored, the buffered video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory, include:若监测到车辆受到冲击,且冲击强度大于预设冲击阈值,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。If it is detected that the vehicle is impacted, and the impact intensity is greater than the preset impact threshold, the cached video data of the preset time period is written into the abnormal recording storage area of the non-volatile memory.
- 如权利要求1所述的车载设备的录像存储方法,其特征在于,在所述对车辆的状态进行监测之后,还包括:The video recording storage method of the in-vehicle device according to claim 1, wherein after the monitoring of the state of the vehicle, the method further comprises:若未监测到车辆异常状态,则将预设时间段的缓存视频数据写入机械硬盘的常规录像存储区域。If the abnormal state of the vehicle is not detected, the cached video data of the preset time period is written into the conventional video storage area of the mechanical hard disk.
- 如权利要求1所述的车载设备的录像存储方法,其特征在于,若监测到车辆异常状态,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域,包括:The video recording storage method of the in-vehicle device as claimed in claim 1, wherein if an abnormal state of the vehicle is detected, the buffered video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory, comprising:若监测到所述车载设备非正常关机,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。If it is detected that the in-vehicle device is shut down abnormally, the cached video data of the preset time period is written into the abnormal video recording storage area of the non-volatile memory.
- 如权利要求1所述的车载设备的录像存储方法,其特征在于,还包括:The video recording storage method of in-vehicle equipment as claimed in claim 1, is characterized in that, also comprises:在所述车载设备启动后,将异常录像存储区域内的缓存视频转存至机械硬盘的常规录像存储区域。After the in-vehicle device is started, the cached video in the abnormal video recording storage area is dumped to the conventional video recording storage area of the mechanical hard disk.
- 如权利要求5所述的车载设备的录像存储方法,其特征在于,所述将异常录像存储区域内的缓存视频转存至机械硬盘的常规录像存储区域,还包括:The video recording storage method of in-vehicle equipment as claimed in claim 5, is characterized in that, described transferring the cached video in the abnormal video recording storage area to the conventional video recording storage area of the mechanical hard disk, also comprises:将所述异常录像存储区域中存储时间小于预设时长的缓存视频转存至机械硬盘的常规录像存储区域,删除所述异常录像存储区域中存储时将大于或等于预设时长的缓存视频。Transfer the cached video whose storage time is less than the preset duration in the abnormal recording storage area to the conventional recording storage area of the mechanical hard disk, and delete the cached video whose storage time is greater than or equal to the preset duration in the abnormal recording storage area.
- 一种车载设备,其特征在于,包括:A vehicle-mounted device, comprising:监测单元,用于对车辆的状态进行监测;The monitoring unit is used to monitor the state of the vehicle;第一处理单元,用于若监测到车辆异常状态,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。The first processing unit is configured to write the cached video data of the preset time period into the abnormal video recording storage area of the non-volatile memory if an abnormal state of the vehicle is detected.
- 如权利要求7所述的车载设备,其特征在于,所述第一处理单元,具体用于:The in-vehicle device according to claim 7, wherein the first processing unit is specifically used for:若监测到车辆受到冲击,且冲击强度大于预设冲击阈值,则将预设时间段的缓存视频数据写入非易失性存储器的异常录像存储区域。If it is detected that the vehicle is impacted, and the impact strength is greater than the preset impact threshold, the cached video data of the preset time period is written into the abnormal recording storage area of the non-volatile memory.
- 一种车载设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至6任一项所述的方法。 An in-vehicle device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, when the processor executes the computer program, the computer program according to claim 1 to 6 The method of any one.
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述的方法。A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2021/073555 WO2022155948A1 (en) | 2021-01-25 | 2021-01-25 | Video storage method for vehicle-mounted device, and vehicle-mounted device |
CN202180000062.0A CN113228624A (en) | 2021-01-25 | 2021-01-25 | Video storage method of vehicle-mounted equipment and vehicle-mounted equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2021/073555 WO2022155948A1 (en) | 2021-01-25 | 2021-01-25 | Video storage method for vehicle-mounted device, and vehicle-mounted device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022155948A1 true WO2022155948A1 (en) | 2022-07-28 |
Family
ID=77081361
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/073555 WO2022155948A1 (en) | 2021-01-25 | 2021-01-25 | Video storage method for vehicle-mounted device, and vehicle-mounted device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113228624A (en) |
WO (1) | WO2022155948A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118474435A (en) * | 2024-07-12 | 2024-08-09 | 浙江交投高速公路运营管理有限公司 | Data backup processing device and method for vehicle-mounted equipment |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115909536A (en) * | 2021-08-23 | 2023-04-04 | 博泰车联网(南京)有限公司 | Driving video processing method, vehicle-mounted terminal and computer storage medium |
CN113903105B (en) * | 2021-09-30 | 2023-11-03 | 杭州海康汽车软件有限公司 | Video cyclic storage method and device, electronic equipment and storage medium |
CN118317124A (en) * | 2024-03-29 | 2024-07-09 | 重庆赛力斯凤凰智创科技有限公司 | Video data storage method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103632411A (en) * | 2012-08-23 | 2014-03-12 | 中国电信股份有限公司 | Storage method and device for vehicle-carried data |
CN104992720A (en) * | 2015-07-06 | 2015-10-21 | 浙江宇视科技有限公司 | Shock-proof method and system of vehicle-mounted mechanical hard disk and vehicle-mounted recording device |
CN110706723A (en) * | 2019-09-26 | 2020-01-17 | 上海本安仪表系统有限公司 | Storage device and storage method of vehicle-mounted mechanical hard disk |
WO2020197836A1 (en) * | 2019-03-27 | 2020-10-01 | Microsoft Technology Licensing, Llc | Docking assembly with multi-mode drive control |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7386376B2 (en) * | 2002-01-25 | 2008-06-10 | Intelligent Mechatronic Systems, Inc. | Vehicle visual and non-visual data recording system |
CN103839567A (en) * | 2012-11-27 | 2014-06-04 | 深圳中兴力维技术有限公司 | Method and device for improving performance of vehicle-mounted DVR and vehicle-mounted DVR |
CN103544975B (en) * | 2013-10-16 | 2016-01-06 | 上海通立信息科技有限公司 | A kind of guard method of vehicle-mounted hard disks |
CN203520874U (en) * | 2013-10-16 | 2014-04-02 | 上海通立信息科技有限公司 | Vibration damping effect-improved vehicle-mounted hard disk video recorder apparatus |
CN105631968A (en) * | 2015-12-18 | 2016-06-01 | 魅族科技(中国)有限公司 | Vehicle travelling video storage method and device based on automobile data recorder |
CN106412472A (en) * | 2016-09-21 | 2017-02-15 | 安徽创世科技股份有限公司 | Vehicle-mounted video recorder hard disk protection method and apparatus |
-
2021
- 2021-01-25 CN CN202180000062.0A patent/CN113228624A/en active Pending
- 2021-01-25 WO PCT/CN2021/073555 patent/WO2022155948A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103632411A (en) * | 2012-08-23 | 2014-03-12 | 中国电信股份有限公司 | Storage method and device for vehicle-carried data |
CN104992720A (en) * | 2015-07-06 | 2015-10-21 | 浙江宇视科技有限公司 | Shock-proof method and system of vehicle-mounted mechanical hard disk and vehicle-mounted recording device |
WO2020197836A1 (en) * | 2019-03-27 | 2020-10-01 | Microsoft Technology Licensing, Llc | Docking assembly with multi-mode drive control |
CN110706723A (en) * | 2019-09-26 | 2020-01-17 | 上海本安仪表系统有限公司 | Storage device and storage method of vehicle-mounted mechanical hard disk |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118474435A (en) * | 2024-07-12 | 2024-08-09 | 浙江交投高速公路运营管理有限公司 | Data backup processing device and method for vehicle-mounted equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113228624A (en) | 2021-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022155948A1 (en) | Video storage method for vehicle-mounted device, and vehicle-mounted device | |
CN103544744B (en) | A kind of recording method of the automobile data recorder system based on high in the clouds control | |
CN103218274B (en) | A kind of method that trouble saving is cumulative and solid state hard disc | |
CN112530475B (en) | Mechanical hard disk shockproof device, method and system, electronic equipment and storage medium | |
KR20100073893A (en) | Black box for a car, method and system for manegenet traffic accident using the same | |
CN105872428A (en) | Video data protection method and apparatus | |
CN107195016A (en) | Monitor System of Stop based on shock sensor | |
CN102890834A (en) | System and method for recording automobile accidents | |
JP2012019450A (en) | Drive recorder and video recording method for drive recorder | |
CN108961471A (en) | Video recording method and system when car crass | |
KR20140052426A (en) | Device of video recording for vehicle using impact detection function and method thereof | |
CN204856644U (en) | GPS vehicle event data recorder based on face identification | |
CN112677905A (en) | New vehicle recording method for saving hard disk storage space under intelligent driving background | |
JP2006127206A (en) | Image recording apparatus | |
CN103544975A (en) | Vehicular hard disk drive protection method | |
CN106412472A (en) | Vehicle-mounted video recorder hard disk protection method and apparatus | |
CN214796238U (en) | Vehicle electronic sentinel early warning monitoring system | |
JP2013140485A (en) | On-vehicle information recording device, and method for managing writing of data | |
CN215068373U (en) | Automobile remote video guarding device | |
CN104751535B (en) | Vehicle event data recorder assists early warning system based on cloud storage technology | |
CN114419759A (en) | Vehicle-mounted gateway integrated with event recorder | |
CN115465225B (en) | Service life extension method and device of vehicle-mounted camera, vehicle and storage medium | |
CN202593398U (en) | Interior rearview mirror | |
CN203520874U (en) | Vibration damping effect-improved vehicle-mounted hard disk video recorder apparatus | |
KR20150096867A (en) | Apparatus and Method of recording event based image data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21920341 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21920341 Country of ref document: EP Kind code of ref document: A1 |