Disclosure of Invention
Therefore, it is necessary to provide a driving record data processing method and apparatus, a driving recorder, a computer device, and a storage medium for solving the technical problem that when the recording function of the driving recorder is turned off, video and audio before an accident occurs cannot be recorded.
A method of vehicle event data processing, the method comprising:
when the recording function of the driving recorder is closed, storing driving record data obtained by the driving recorder in a temporary buffer area; the recording function is used for storing the driving record data to a permanent memory;
when an accident of the vehicle is detected, extracting the driving record data in the temporary buffer area to obtain pre-accident record data;
and transferring the pre-accident recorded data into the permanent memory.
In one embodiment, when an accident of the vehicle is detected, the method further comprises:
and storing the driving record data obtained by the driving recorder into the permanent memory to obtain post-accident record data.
In one embodiment, the extracting the driving record data in the temporary buffer area to obtain the pre-accident record data includes:
acquiring the driving record data in the temporary buffer area as initial record data; the initial recording data has a corresponding recording time;
and intercepting the initial driving record data with the recording time within a preset time range from the initial record data to serve as the pre-accident recording data.
In one embodiment, the method further comprises:
receiving a recording function closing instruction submitted by a user;
and responding to the recording function closing instruction, and closing the recording function of the automobile data recorder.
In one embodiment, the driving record data comprises driving video data and/or driving audio data.
In one embodiment, the pre-accident recording data and the post-accident recording data are used as accident recording data, and the method further comprises:
uploading the pre-accident recorded data and the post-accident recorded data to a server; the server is used for uploading the pre-accident recorded data and the post-accident recorded data to a block chain system so as to store the evidence of the block chain.
A driving record data processing apparatus, the apparatus comprising:
the temporary storage module is used for storing the driving record data obtained by the driving recorder in a temporary buffer area when the recording function of the driving recorder is closed; the recording function is used for storing the driving record data to a permanent memory;
the data extraction module is used for extracting the driving record data in the temporary buffer area when an accident of the vehicle is detected to obtain pre-accident record data;
and the data storage module is used for transferring the pre-accident recorded data to the permanent memory.
An automobile data recorder, the automobile data recorder comprising: a camera, a control module, a collision detection module, a temporary buffer and a permanent memory, wherein,
the temporary buffer area is used for temporarily storing the driving record data obtained by the driving recorder when the permanent storage function of the driving recorder is closed; the recording function is used for storing the driving record data to a permanent memory;
the collision detection module is used for detecting whether an accident occurs to the vehicle;
and the permanent memory is used for storing the driving record data extracted from the temporary buffer area when the vehicle accident is detected.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when the recording function of the driving recorder is closed, storing driving record data obtained by the driving recorder in a temporary buffer area; the recording function is used for storing the driving record data to a permanent memory;
when an accident of the vehicle is detected, extracting the driving record data in the temporary buffer area to obtain pre-accident record data;
and transferring the pre-accident recorded data into the permanent memory.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when the recording function of the driving recorder is closed, storing driving record data obtained by the driving recorder in a temporary buffer area; the recording function is used for storing the driving record data to a permanent memory;
when an accident of the vehicle is detected, extracting the driving record data in the temporary buffer area to obtain pre-accident record data;
and transferring the pre-accident recorded data into the permanent memory.
According to the driving record data processing method and device, the driving recorder, the computer equipment and the storage medium, when the recording function of the driving recorder is closed, the driving record data are temporarily stored through the temporary buffer area; when the vehicle accident is detected, the driving record data in the temporary buffer area is extracted and is transferred to the permanent memory. By the method, when the recording function of the automobile data recorder is closed, if an accident occurs to the vehicle, the automobile data before the accident occurs can be stored on the basis that the automobile data recorded by the automobile data recorder after the accident occurs is not influenced, the condition before the accident occurs is restored, and the responsibility of the accident is conveniently determined, so that the problem that the video and the audio before the collision cannot be recorded when the recording function of the traditional automobile data recorder is closed is solved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The driving record data processing method provided by the application can be applied to the application environment shown in fig. 1 a. Wherein the tachograph 102 is mountable near an interior rear view mirror. As shown in fig. 1b, which is a schematic structural diagram of the automobile data recorder 102, the automobile data recorder 102 includes: a collision detection module 104, a control module 106, a storage module 108, and a recording module 110. The storage module 108 includes a permanent memory and a temporary buffer.
In one embodiment, as shown in fig. 2, a driving record data processing method is provided, which is described by taking the method as an example applied to the driving recorder 102 in fig. 1, and includes the following steps:
step S202, when the recording function of the driving recorder is closed, driving record data obtained by the driving recorder is stored in a temporary buffer area; the recording function is used for storing the driving record data into the permanent memory.
The temporary buffer area can be an annular buffer area and is used for temporarily storing the driving record data recorded by the driving recorder.
The driving record data can comprise driving video data and/or driving audio data.
In a specific implementation, when the control module 106 of the automobile data recorder 102 detects that the recording function of the automobile data recorder 102 is turned off, that is, the automobile data recorded by the automobile data recorder 102 cannot be stored in the persistent memory. At this time, the control module 106 sends a temporary storage instruction to the storage module 108, instructs the storage module 108 to start a temporary storage function, and temporarily stores the driving video data and/or the driving audio data recorded by the driving recorder 102 in a temporary buffer area.
And step S204, when the vehicle accident is detected, extracting the driving record data in the temporary buffer area to obtain the pre-accident record data.
The pre-accident recorded data may represent driving recorded data within a certain time before a node where the vehicle has an accident.
In a specific implementation, when the collision detection module 104 of the automobile data recorder 102 detects an accident, an emergency video storage instruction is sent to the control module 106, the control module 106 is instructed to extract the automobile data in a temporary buffer area within a certain time before the accident occurs, and the obtained automobile data is used as the pre-accident recorded data. In addition, when an accident occurs, the control module 106 will control the car recorder 102 to start the emergency recording function, so as to record the video data and audio data after the accident occurs, and store the video data and audio data in the permanent memory directly.
Step S206, the pre-accident recording data is transferred to a permanent memory.
In a specific implementation, after the control module 106 extracts the driving record data in the temporary buffer area to obtain the pre-accident record data, the pre-accident record data is transferred to the permanent memory for storage. Meanwhile, the permanent memory stores the driving record data recorded by the driving recorder 102 after the accident as the post-accident recording data, so that the driving record data before and after the accident can be obtained.
According to the driving record data processing method, when the recording function of the driving recorder is closed, the driving record data are temporarily stored through the temporary buffer area; when the vehicle accident is detected, the driving record data in the temporary buffer area is extracted and is transferred to the permanent memory. By the method, when the recording function of the automobile data recorder is closed, if an accident occurs to the vehicle, the automobile data before the accident occurs can be stored on the basis that the automobile data recorded by the automobile data recorder after the accident occurs is not influenced, the condition before the accident occurs is restored, and the responsibility of the accident is conveniently determined, so that the problem that the video and the audio before the collision cannot be recorded when the recording function of the traditional automobile data recorder is closed is solved.
In one embodiment, when an accident of the vehicle is detected, the method further comprises: recording data after the accident obtained by the automobile data recorder is stored in a permanent memory; the post-accident recorded data is recorded by the automobile data recorder after the vehicle has an accident.
In a specific implementation, when the collision detection module 104 of the automobile data recorder 102 detects that an accident occurs in a vehicle, an emergency recording instruction is sent to the control module 106, and after receiving the emergency recording instruction, the control module 106 controls the storage function of the permanent memory to be turned on, and closes the temporary storage function of the temporary buffer area, and directly stores the automobile data recorded after the accident occurs, which is obtained by the automobile data recorder 102, in the permanent memory.
In this embodiment, through when detecting the vehicle emergence accident, with the driving recording data storage after the accident to permanent memory, realized after the accident takes place, the condition after the accident takes place is looked over to the storage of driving recording data after being convenient for.
In one embodiment, extracting the driving record data in the temporary buffer area comprises:
acquiring driving record data in the temporary buffer area as initial record data; the initial recording data has a corresponding recording time;
and intercepting the initial driving record data with the recording time within a preset time range from the initial record data to serve as the pre-accident record data.
In one embodiment, the driving record data comprises driving video data and/or driving audio data.
In a specific implementation, when the collision detection module 104 of the automobile data recorder 102 detects that an accident occurs in a vehicle, an emergency video storage instruction is sent to the control module 106, the driving record data in the temporary buffer area is obtained first, the driving record data is used as initial record data, and then in the initial record data, the driving record data in a set time before the time point when the accident occurs is extracted and used as pre-accident record data.
In practical application, the temporary buffer area may be set in the following manner: the driving record data can be only stored within a set time, for example, the temporary buffer area only buffers 20s of driving record data, and when the temporary buffer area is full, the new driving record data will overwrite the previous driving record data. When the vehicle accident is detected, all the driving records in the temporary buffer area are extracted and used as the recording data before the accident, and the recording data are transferred to the permanent memory.
Another arrangement of the temporary buffer area may be as follows: longer video and audio times, such as 1 hour, may be buffered. When the vehicle accident is detected, the driving record data of the accident node is extracted only within a set time, for example, 20s before the accident occurs, and is stored into the permanent memory as the pre-accident record data.
In this embodiment, when an accident of the vehicle is detected, the driving record data within the set time in the temporary buffer area is extracted as the pre-accident record data. Through the setting of temporary buffer, do not occupy the memory of memory, only when the emergence accident, draw out the driving recording data in a period before the emergence accident and save, realized satisfying the user's demand and can closing when recording the function, when guaranteeing to take place the accident, still can take notes the driving recording data before the emergence accident, thereby, traditional vehicle event data recorder has been solved, when recording the function and being closed, if the emergence accident, the problem of the driving recording data before the unable recording accident.
In one embodiment, the method further comprises: receiving a recording function closing instruction submitted by a user; and responding to the recording function closing instruction, and closing the recording function of the automobile data recorder.
In a specific implementation, the control module 106 of the automobile data recorder 102 receives a recording function closing instruction submitted by a user, and closes the recording function of the automobile data recorder 102 in response to the recording function closing instruction, that is, the recorded automobile data cannot be stored in the persistent memory.
In the embodiment, the recording closing function can be set on the driving recorder, so that a user can select whether to record driving videos and audios according to own requirements, the user can consider the recording closing function from the perspective of the user, the recording closing function is more humanized, and the user experience is improved.
In one embodiment, the method further comprises: uploading pre-accident recorded data and post-accident recorded data to a server; the server is used for uploading the pre-accident recorded data and the post-accident recorded data to the block chain system so as to store the certificate of the block chain.
Fig. 3 is a diagram of an application scenario of the present embodiment. The blockchain system 304 may be a system composed of a plurality of server nodes and performing storage by using a blockchain technique, and the blockchain system 304 may implement non-tamper-ability of the blockchain storage. The server 302 may be composed of one server or a server cluster.
In a specific implementation, after the accident recording data is obtained from the permanent memory of the driving recorder 102, the control module 106 may upload the pre-accident recording data and the post-accident recording data to the server 302, and after the server 302 receives the pre-accident recording data and the post-accident recording data, the pre-accident recording data and the post-accident recording data are uploaded to the block chain system 304 and stored by a plurality of server nodes in the block chain system, so as to implement block chain storage of the pre-accident recording data and the post-accident recording data.
In this embodiment, the pre-accident recording data and the post-accident recording data are uploaded to the server, and then uploaded to the block chain system by the server for storage, so that authenticity of the pre-accident recording data and the post-accident recording data is ensured by using non-tamper property of the block chain system, and responsibility determination is performed according to the pre-accident recording data and the post-accident recording data.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a driving record data processing device, including: a temporary storage module 402, a data extraction module 404, and a data storage module 406, wherein:
a temporary storage module 402, configured to store driving record data obtained by a driving recorder in a temporary buffer area when a recording function of the driving recorder is turned off; the recording function is used for storing the driving record data to the permanent memory;
the data extraction module 404 is configured to extract driving record data in the temporary buffer area when an accident of the vehicle is detected, so as to obtain pre-accident record data;
and a data storage module 406, configured to transfer the pre-accident recorded data to a persistent storage.
In one embodiment, when an accident of the vehicle is detected, the apparatus further includes:
the post-accident data storage module is used for storing post-accident recorded data obtained by the automobile data recorder into the permanent memory; the post-accident recorded data is recorded by the automobile data recorder after the vehicle has an accident.
In an embodiment, the data extraction module 404 is specifically configured to:
acquiring driving record data in the temporary buffer area as initial record data; the initial recording data has a corresponding recording time;
and intercepting the initial driving record data with the recording time within a preset time range from the initial record data to serve as the pre-accident record data.
In one embodiment, the above apparatus further comprises:
the instruction receiving module is used for receiving a recording function closing instruction submitted by a user;
and the instruction response module is used for responding to the recording function closing instruction and closing the recording function of the automobile data recorder.
In one embodiment, the driving record data comprises driving video data and/or driving audio data.
In one embodiment, the above apparatus further comprises:
the data uploading module is used for uploading the pre-accident recorded data and the post-accident recorded data to the server; the server is used for uploading the pre-accident recorded data and the post-accident recorded data to the block chain system so as to store the certificate of the block chain.
It should be noted that, the driving record data processing device and the driving record data processing method of the present application correspond to each other one to one, and the technical features and the advantages thereof described in the embodiments of the driving record data processing method are all applicable to the embodiments of the driving record data processing device, and specific contents may refer to descriptions in the embodiments of the method of the present application, and are not described herein again, and thus, the present application claims.
In addition, all or part of the modules in the driving record data processing device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in fig. 5, there is provided a drive recorder including: a camera 502, a control module 504, a collision detection module 506, a temporary buffer 508, and a persistent memory 510, wherein,
the temporary buffer area 508 is configured to temporarily store the driving record data obtained by the driving recorder when the permanent storage function of the driving recorder is turned off; the recording function is used for storing the driving record data to a permanent memory;
the collision detection module 506 is configured to detect whether an accident occurs in the vehicle;
the permanent storage 510 is used for storing the driving record data extracted from the temporary buffer area when the vehicle accident is detected.
The automobile data recorder can be used for executing the elevator brake control parameter generation method provided by the embodiment, and has corresponding functions and beneficial effects.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing driving data recorded in the driving process. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of processing vehicle history data.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when the recording function of the driving recorder is closed, the driving record data obtained by the driving recorder is stored in a temporary buffer area; the recording function is used for storing the driving record data to the permanent memory;
when an accident of the vehicle is detected, extracting driving record data in the temporary buffer area to obtain pre-accident record data;
and transferring the pre-accident recorded data into a permanent memory.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when an accident of the vehicle is detected, recording data after the accident, which is obtained by the automobile data recorder, is stored in a permanent memory; the post-accident recorded data is recorded by the automobile data recorder after the vehicle has an accident.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring driving record data in the temporary buffer area as initial record data; the initial recording data has a corresponding recording time; and intercepting the initial driving record data with the recording time within a preset time range from the initial record data to serve as the pre-accident record data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: receiving a recording function closing instruction submitted by a user; and responding to a recording function closing instruction, and closing the recording function of the automobile data recorder.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the driving record data comprises driving video data and/or driving audio data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: uploading pre-accident recorded data and post-accident recorded data to a server; the server is used for uploading the pre-accident recorded data and the post-accident recorded data to the block chain system so as to store the certificate of the block chain.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
when the recording function of the driving recorder is closed, the driving record data obtained by the driving recorder is stored in a temporary buffer area; the recording function is used for storing the driving record data to the permanent memory;
when an accident of the vehicle is detected, extracting driving record data in the temporary buffer area to obtain pre-accident record data;
and transferring the pre-accident recorded data into a permanent memory.
In one embodiment, the computer program when executed by the processor further performs the steps of: when an accident of the vehicle is detected, recording data after the accident, which is obtained by the automobile data recorder, is stored in a permanent memory; the post-accident recorded data is recorded by the automobile data recorder after the vehicle has an accident.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring driving record data in the temporary buffer area as initial record data; the initial recording data has a corresponding recording time; and intercepting the initial driving record data with the recording time within a preset time range from the initial record data to serve as the pre-accident record data.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving a recording function closing instruction submitted by a user; and responding to a recording function closing instruction, and closing the recording function of the automobile data recorder.
In one embodiment, the computer program when executed by the processor further performs the steps of: the driving record data comprises driving video data and/or driving audio data.
In one embodiment, the computer program when executed by the processor further performs the steps of: uploading pre-accident recorded data and post-accident recorded data to a server; the server is used for uploading the pre-accident recorded data and the post-accident recorded data to the block chain system so as to store the certificate of the block chain.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.