Driving recording method and device, vehicle, medium and program

By acquiring and processing video and audio data, combined with vehicle signals and driving assistance data, watermarked images are generated, and emergency recording pipelines are called in the event of a collision. This solves the problem of single function of existing driving recorders and enables multi-angle recording and multi-function recording. various recording needs, improving user experience.

CN118781679APending Publication Date: 2024-10-15LION AUTOMOTIVE TECH NANJING CO LTD +2
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411086624.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing driving recorders have a single function and cannot meet the needs of multi-angle recording, cannot generate scene videos before the accident, and have a poor user experience.

Method used

By obtaining video data and audio data, combined with vehicle signals and driving assistance data, the image overlay model is used to generate watermarked image data, and when the collision signal is triggered, the emergency collision audio and video recording pipeline is called, the relevant recording files are generated and uploaded, and prompt information is pushed. to the user terminal.

Benefits of technology

It realizes multi-angle recording and various recording requirements, improving the user experience. Users can more intuitively understand the driving status of the vehicle or the cause of the collision.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118781679A_ABST
    Figure CN118781679A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicles, in particular to a driving recording method and device, a vehicle, a medium and a program, and the method comprises the steps: obtaining video data and audio data; adding the video data and the audio data to corresponding buffer queues; under the condition that the collision signal is not recognized, video data and audio data output by the buffer queue are mixed through an audio and video cycle recording pipeline and then stored in a first container to generate first driving data; under the condition that the collision signal is recognized, the audio and video recording pipeline responding to the emergency collision calls back the video data and the audio data to be mixed and then stores the mixed data into a second container to generate second driving data. Therefore, the problems that a driving recording method in the prior art has many limitations, driving data are single, various recording requirements cannot be met, and the user experience feeling is poor are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle technology, and in particular to a driving recording method, device, vehicle, medium and program. Background Art

[0002] A dashcam is a device installed in a car that continuously records video footage of the vehicle while driving. This video is often used for purposes such as accident investigations and insurance claims. As technology advances, the capabilities of dashcams are constantly expanding.

[0003] In the related technologies, most driving recorders only have a front-view camera (or two cameras, front / rear view), which cannot meet the needs of multi-angle recording; they can obtain the signal of the vehicle's collision sensor, but can only generate emergency recording video after the collision, and cannot know the situation before the accident; they cannot directly generate corresponding emergency recording files and the corresponding recording files cannot effectively understand the current status of the vehicle. The driving data is relatively single and cannot meet multiple recording needs. There are certain limitations and the user experience is poor. Summary of the Invention

[0004] The present application provides a driving recording method, device, vehicle, medium and program to solve the problems of driving recording methods having many limitations, relatively single driving data, inability to meet various recording needs, and poor user experience.

[0005] A first aspect embodiment of the present application provides a driving recording method, comprising the following steps: acquiring video data and audio data; adding the video data and audio data to a corresponding buffer queue; when no collision signal is identified, mixing the video data and the audio data output by the buffer queue through an audio and video loop recording pipeline and storing them in a first container to generate first driving data; when a collision signal is identified, calling back the video data and the audio data through an audio and video recording pipeline that responds to an emergency collision and mixing them and storing them in a second container to generate second driving data.

[0006] Optionally, obtaining video data includes: obtaining vehicle-mounted signals and driving assistance data; inputting the vehicle-mounted signals and the driving assistance data into an image overlay model, the image overlay model outputting watermarked image data corresponding to a timestamp; and adding the watermarked image data to the video data of the corresponding frame.

[0007] Optionally, the mixing of the video data and the audio data and storing them in a second container through the audio and video recording pipeline responding to the emergency collision to generate the second driving data includes: calling a pre-registered callback function; retrieving the second driving data before the collision moment from the buffer queue according to the callback function, and recording the second driving data after the collision moment using the audio and video recording pipeline responding to the emergency collision; automatically uploading the second driving data of a preset time length before and after the collision moment to the cloud, and pushing the corresponding prompt information to the user terminal.

[0008] Optionally, after the video data and the audio data are mixed and stored in a second container after being called back by the audio and video recording pipeline responding to the emergency collision to generate the second driving data, it includes: using the audio and video recording pipeline responding to the emergency collision to record the second driving data after the collision moment; automatically uploading the second driving data of a preset time length before and after the collision moment to the cloud, and pushing corresponding prompt information to the user terminal.

[0009] Optionally, before adding the video data and audio data to the corresponding buffer queue, the method includes: inputting the video data and audio data into the corresponding video encoder and audio encoder respectively; and adding the video data and audio data output by the video encoder and audio encoder to the corresponding buffer queue.

[0010] Optionally, after obtaining the audio data, the method includes: identifying the duration of the pipeline recording of the audio and video loop recording; and destroying the current pipeline instance when an EOS (End Of Stream) event is triggered or the duration exceeds a target duration.

[0011] Optionally, before obtaining the video data and audio data, it includes: establishing an audio and video loop recording pipeline and an audio and video recording pipeline that responds to emergency collisions, a driving assistance data recording pipeline, and a recording data processing pipeline; registering a collision event callback function and subscribing to driving assistance data.

[0012] The second aspect of the present application provides a driving recorder, including: an acquisition module for acquiring video data and audio data; an adding module for adding the video data and audio data to a corresponding buffer queue; a first mixing module, when no collision signal is identified, mixing the video data and the audio data output by the buffer queue through an audio and video loop recording pipeline and storing them in a first container to generate first driving data; a second mixing module, when a collision signal is identified, calling back the video data and the audio data through an audio and video recording pipeline in response to an emergency collision and storing them in a second container to generate second driving data.

[0013] A third aspect of this application provides a vehicle, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to perform the driving recording method as described in the above embodiments.

[0014] The fourth aspect of the present application provides a computer-readable storage medium on which a computer program is stored. The program is executed by a processor to perform the driving recording method as described in the above embodiment.

[0015] A fifth aspect of this application provides a computer program product, including a computer program or instructions, characterized in that, when the computer program or instructions are executed, they implement the driving recording method as described in the above embodiments.

[0016] Therefore, this application has at least the following beneficial effects:

[0017] The embodiment of the present application can obtain video data and audio data, add the video data and audio data to the corresponding buffer queue, and when no collision signal is recognized, the video data and audio data output by the buffer queue are mixed through the audio and video loop recording pipeline and stored in the first container to generate the first driving data. When a collision signal is recognized, the video data and audio data are mixed by calling back the audio and video recording pipeline in response to the emergency collision and stored in the second container to generate the second driving data. This can meet the user's various recording needs. The driving data contains a variety of information, so that the user can more intuitively understand the vehicle's driving status or the cause of the collision, thereby improving the user experience.

[0018] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0020] Figure 1 This is a flowchart of a vehicle recording method provided according to an embodiment of this application;

[0021] Figure 2 This is a flowchart illustrating the automatic startup process of a dashcam according to an embodiment of this application.

[0022] Figure 3 This is a flowchart illustrating the internal process of the audio / video recording pipeline according to an embodiment of this application.

[0023] Figure 4 This is a flowchart illustrating the file storage space management process of a dashcam according to an embodiment of this application.

[0024] Figure 5 A flowchart illustrating the loop recording of audio and video by a dashcam according to an embodiment of this application;

[0025] Figure 6 This is a flowchart of the data stream buffering process of a driving assistance system according to an embodiment of this application;

[0026] Figure 7 This is a flowchart illustrating the data flow processing of an in-vehicle surround view system according to an embodiment of this application.

[0027] Figure 8 This is a flowchart illustrating the interaction between the sentry system and the dashcam in a parked and locked state, according to an embodiment of this application.

[0028] Figure 9 Flowchart for uploading emergency collision recording files to the cloud and sending mobile phone notifications according to embodiments of this application;

[0029] Figure 10 This is an example diagram of a vehicle recording device provided according to an embodiment of this application;

[0030] Figure 11 This is a structural schematic diagram of a vehicle provided according to an embodiment of this application. DETAILED DESCRIPTION

[0031] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0032] Current status of dashcams: Most products only have a front-view camera (or two cameras, front-view and rear-view), and only have loop recording function; a few products can obtain signals from the vehicle's collision sensors and generate emergency recording videos upon receiving a collision signal; most products do not have the function of uploading emergency recording files to the cloud for backup, nor do they have the function of pushing collision notifications to the owner's mobile phone from the cloud; most products do not incorporate vehicle signal (vehicle speed / gear / steering wheel angle / seatbelt status, etc.) data; a few products have the function of incorporating driver assistance system data, but lack effective fusion methods; most products cannot record videos from the left and right sides and the roof / chassis; most products do not have the function of recording in-vehicle video (DMS / OMS) and audio.

[0033] Therefore, this application integrates vehicle signals (vehicle speed / brake status / gear position / steering wheel angle / seat belt status, etc.) into the video recording file; integrates some driving assistance system data (such as front vehicle collision warning / lane keeping warning / left and right blind spot detection) into the video recording file, and also generates a separate and complete driving assistance data recording file when a collision signal is received; after receiving the collision signal, an emergency recording video file is generated (recording 15 seconds of data before and after the collision time point), and then uploaded to the cloud backup, and then the cloud pushes the collision notification to the contact's mobile phone; accesses the 360-degree surround view system data, and records the video data of the collision direction according to the collision direction of the collision signal; records the video and audio data of the DMS / OMS in the car when the collision occurs; and linkage with the Sentry System: when the car is parked and locked, it can be woken up and start recording within 3 seconds.

[0034] The following describes the driving recording method, device, vehicle, storage medium and program of the embodiments of the present application with reference to the accompanying drawings.

[0035] Specifically, Figure 1 A flowchart of a driving recording method provided in an embodiment of the present application.

[0036] like Figure 1 As shown, the driving record method includes the following steps:

[0037] In step S101 , video data and audio data are acquired.

[0038] It is understandable that the embodiment of the present application can obtain video data and audio data so as to subsequently add the video data and audio data to the corresponding buffer queue.

[0039] It should be noted that the linkage between this application and the 360-degree surround view system and the sentry system can acquire video data from multiple directions and angles, as well as corresponding audio data inside and outside the vehicle; among which, the video source includes camera devices and the audio source includes microphone devices.

[0040] In this embodiment of the application, before acquiring video data and audio data, the process includes: constructing an audio and video loop recording pipeline, an audio and video recording pipeline for responding to an emergency collision, a driving assistance data recording pipeline, and a recording data processing pipeline; registering a collision event callback function and subscribing to driving assistance data.

[0041] It is understood that the embodiments of this application can construct an audio and video loop recording pipeline, as well as an audio and video recording pipeline, a driving assistance data recording pipeline, and a recording data processing pipeline for responding to emergency collisions; register a collision event callback function and subscribe to driving assistance data to realize the self-starting function of the dashcam.

[0042] Specifically, such as Figure 2As shown in the figure, the driving recorder starts up and starts automatically:

[0043] 1.1.1 After powering on, upon receiving the system startup completion signal, trigger the start of the driving recorder application operation;

[0044] 1.1.2 Within the dashcam application process, various resources are used during initialization (including: video source instance, encoder instance, buffer queue instance, file container instance, recording pipe instance, socket client instance, CANBUS client instance, etc.);

[0045] 1.1.3 Establish a pipeline for looped audio and video recording; establish an audio and video recording pipeline for emergency collision response; establish a 360-degree surround view system data recording pipeline for emergency collision response;

[0046] 1.1.4 Register a collision event callback function; subscribe to driver assistance system data; establish a driver assistance data recording pipeline that responds to emergency collisions;

[0047] 1.1.5 Set the pipeline status of the loop recording function to Ready; set the pipeline status of each response to the emergency collision event to Ready; set the status of each subscription and callback to Ready;

[0048] 1.1.6 Start loop recording; start waiting for and monitoring each collision event; the dashcam application process stays in the background.

[0049] In this embodiment of the application, acquiring video data includes: acquiring vehicle signal and driving assistance data; inputting the vehicle signal and driving assistance data into an image overlay model, and the image overlay model outputting watermarked image data with corresponding timestamps; and adding the watermarked image data to the video data of the corresponding frame.

[0050] Among them, on-board signals include: vehicle speed, gear position, steering wheel angle, seat belt status, etc.; driving assistance data includes front vehicle collision warning, lane keeping warning, left and right blind spot detection, etc.

[0051] It can be understood that the embodiments of the present application can obtain vehicle-mounted signals and driving assistance data; input the vehicle-mounted signals and driving assistance data into the image overlay model, and the image overlay model outputs watermarked image data with the corresponding timestamp; add the watermarked image data to the video data of the corresponding frame to achieve a close integration of visual data, vehicle-mounted signals, and driving assistance data, so that subsequent users can more intuitively understand the vehicle's driving status or the cause of the collision.

[0052] Specifically, such as Figure 6 and Figure 7 As shown in the figure, the data stream buffer processing flow of the driving assistance system is as follows:

[0053] 1.5.1 The driver assistance system continuously transmits data to the client in the cockpit system via the in-vehicle Ethernet;

[0054] 1.5.2 The driving assistance data transmitted from the driving assistance system client is compressed using a compression algorithm;

[0055] 1.5.3 Add the compressed data packet to a buffered data queue, which contains data for 15 seconds;

[0056] 1.5.4 Waiting to receive emergency collision events;

[0057] 1.5.5 If an emergency collision event is received, the data in the buffer queue (including data from 15 seconds before the current time and data from 15 seconds after the current time) will be saved to a file;

[0058] 1.5.5 If no emergency collision event is received, return to step 1.5.4.

[0059] Video data processing flow:

[0060] 1.6.1 The 360° surround view system continuously outputs visual data;

[0061] 1.6.2 Using hardware-accelerated image overlay technology, the vehicle signals and some driving assistance data are used to generate image watermarks, which are then printed onto each frame of the visual image.

[0062] 1.6.3 The watermarked visual data is transferred to the video encoder for encoding and compression;

[0063] 1.6.4 Video data flowing out of the video encoder is added to the video data queue, which is maintained for 15 seconds of data duration;

[0064] 1.6.5 Waiting to receive emergency collision events;

[0065] 1.6.6 If an emergency collision event is received, the data in the buffer queue (including data from 15 seconds before the current time and data from 15 seconds after the current time) will be saved to an MP4 file;

[0066] 1.6.7 If no emergency collision event is received, return to step 1.6.5.

[0067] In an embodiment of the present application, after obtaining the audio data, it includes: identifying the recording duration of the pipeline for audio and video loop recording; and destroying the current pipeline instance when an EOS event is triggered or the duration exceeds the target duration.

[0068] The target time can be set according to actual needs, such as 3 minutes, without specific limitations.

[0069] It can be understood that the embodiment of the present application can distinguish the duration of the pipeline recording for audio and video loop recording; when the EOS event is triggered or the duration exceeds the target duration, the current pipeline instance is destroyed to loop record audio and video, prevent excessive space occupation, and improve space utilization.

[0070] Specifically, such as Figure 5 As shown in the figure, the driving recorder records audio and video in a loop:

[0071] 1.4.1 Create a pipeline instance for audio and video recording;

[0072] 1.4.2 Set the length of the recorded video file to 3 minutes;

[0073] 1.4.3 Start recording the video file (an EOS event will be issued when the recording is completed);

[0074] 1.4.4 Waiting to receive the EOS event of recording completion (with waiting timeout setting);

[0075] 1.4.5 If an EOS event notification is received, destroy the current pipeline instance and return to step 1.4.1;

[0076] 1.4.6 If no EOS event notification is received (a wait timeout is triggered), output necessary logs, destroy the current pipeline instance, and return to step 1.4.1.

[0077] In step S102 , the video data and the audio data are added to corresponding buffer queues.

[0078] It is understandable that the embodiment of the present application can add video data and audio data to the corresponding buffer queue so as to call the data in the buffer queue according to demand.

[0079] In an embodiment of the present application, before adding the video data and audio data to the corresponding buffer queue, it includes: inputting the video data and audio data into the corresponding video encoder and audio encoder respectively; and adding the video data and audio data output by the video encoder and audio encoder to the corresponding buffer queue.

[0080] It can be understood that the embodiments of the present application can input video data and audio data into the corresponding video encoder and audio encoder respectively; add the video data and audio data output by the video encoder and audio encoder to the corresponding buffer queue to improve space utilization, so as to facilitate calling the data in the buffer queue according to demand.

[0081] In step S103 , when no collision signal is identified, the video data and audio data outputted from the buffer queue are mixed through the audio and video loop recording pipeline and then stored in the first container to generate first driving data.

[0082] It is understandable that, in the embodiment of the present application, when no collision signal is identified, the video data and audio data output by the buffer queue can be mixed through the audio and video loop recording pipeline and stored in the first container to generate the first driving data to facilitate subsequent calls.

[0083] In step S104, when a collision signal is identified, the audio and video recording pipeline responding to the emergency collision calls back the video data and the audio data, mixes the data, and stores the mixed data in the second container to generate second driving data.

[0084] It can be understood that, when a collision signal is identified, the embodiment of the present application can generate second driving data by calling back the video data and audio data in response to the audio and video recording pipeline of the emergency collision, mixing the data and storing the mixed data in the second container, thereby meeting the user's various recording needs. The driving data contains a variety of information, so that the user can more intuitively understand the vehicle's driving status or the cause of the collision, thereby improving the user experience.

[0085] Specifically, such as Figure 3 As shown in the figure, the internal process of the audio and video recording pipeline is as follows:

[0086] 1.2.1 Visual data continuously flows from the camera source;

[0087] 1.2.2 Using hardware-accelerated image overlay technology, the vehicle signals and some driving assistance data are used to generate image watermarks, which are then printed onto each frame of the visual image.

[0088] 1.2.3 The watermarked visual data is transferred to the video encoder for encoding and compression;

[0089] 1.2.4 The video data flowing out of the video encoder is added to the video data queue, and the queue maintains the data duration for 15 seconds;

[0090] 1.2.5 The data flowing out of the video data queue flows into MP4 container 1;

[0091] 1.2.6 Audio data continues to flow from the microphone source;

[0092] 1.2.7 The audio data stream is transferred to the audio encoder for encoding and compression;

[0093] 1.2.8 Audio data flowing from the audio encoder is added to the audio data queue, which is maintained for 15 seconds of data duration;

[0094] 1.2.9 The data flowing out of the audio data queue flows into MP4 container 1;

[0095] 1.2.10 MP4 container 1 generates the file header information of the MP4 file, mixes the encoded audio and video data transmitted from the upstream, and stores it in MP4 file 1;

[0096] 1.2.11 If an emergency collision event is received, the data in the two audio and video data queues (including the first 15 seconds of data buffered in the queues and the 15 seconds of data after the current time point) is pushed into MP4 container 2;

[0097] 1.2.12MP4 container 2 generates the file header information of the MP4 file, mixes the encoded audio and video data transmitted from the upstream, and stores it in MP4 file 2.

[0098] In this embodiment of the application, after the video data and audio data are mixed and stored in the second container to generate the second driving data through the audio and video recording pipeline in response to the emergency collision, the process includes: recording the second driving data after the moment of collision using the audio and video recording pipeline in response to the emergency collision; automatically uploading the second driving data for a preset duration before and after the moment of collision to the cloud, and pushing corresponding prompt information to the user terminal.

[0099] It can be understood that the embodiment of the present application can use the audio and video recording pipeline that responds to the emergency collision to record the second driving data after the collision moment; automatically upload the second driving data of a preset time before and after the collision moment to the cloud, and push the corresponding prompt information to the user terminal, so that the user can understand the cause of the collision more intuitively and improve the user experience.

[0100] According to the driving recording method proposed in this application, video data and audio data are acquired, and the video data and audio data are added to the corresponding buffer queue. In the case where no collision signal is detected, the video data and audio data output from the buffer queue are mixed through the audio and video loop recording pipeline and stored in the first container to generate the first driving data. In the case where a collision signal is detected, the video data and audio data are mixed through the audio and video recording pipeline in response to the emergency collision and stored in the second container to generate the second driving data. This method can meet the user's various recording needs. The driving data contains a variety of information so that the user can more intuitively understand the vehicle's driving status or the cause of the collision, thereby improving the user experience.

[0101] The following will combine Figures 2-9The driving recording method of the present application is elaborated in detail. The equipment required by the present application includes: the video source is a camera device, the audio source is a microphone device, the frequency hard encoder is the SOC VPU, the driver and shared library files of the video hard encoder; the frequency encoder is the audio encoder shared library file, the system resources are memory space, part of the SOC computing power, part of the RAM resources, the vehicle signal is the vehicle-mounted CANBus; the driving assistance data is the driving assistance system, the 360-degree surround view data is the 360-degree surround view system; the collision signal is the collision sensor and the vehicle-mounted CANBus; the data transmission is the vehicle-mounted Ethernet; the details are as follows:

[0102] The steps for setting up this dashcam are as follows: First, set up the hardware and software environment: It is based on the Android system on the Qualcomm 8155 platform. The smart cockpit system is connected to the DVR camera / DMS camera / top camera / under-chassis camera / 360-degree surround system / in-car audio microphone. At the same time, the car is connected to the driver assistance system (millimeter-wave radar / LiDAR / camera, etc.).

[0103] 1. The system's init process receives the system startup completion broadcast signal BOOT_COMPLETE and starts the driving recorder software;

[0104] 2. The dashcam software initializes various resources used at the beginning (various camera devices, audio microphone devices, video encoders, audio encoders, file containers, vehicle signal service client, driver assistance system data bus client, 360 surround view system data bus client, CANBUS client, data buffer queue, etc.).

[0105] 3. Create a pipeline for recording audio and video, add various initialized resources, and set various connection relationships;

[0106] 4. Set the pipeline status to ready, then to start, and officially start the loop recording operation (one video file for 3 minutes);

[0107] 5. Set the callback function to wait for the event to take effect, such as the callback function waiting for the collision signal;

[0108] 6. Set the buffer queue to start receiving encoded audio and video stream data / compressed driving assistance data stream and other information;

[0109] 7. In the video recording pipeline, the video data stream flows from the camera, first to the video encoder, then to the data buffer queue, then to the file parsing container, and finally the file container generates the file and saves it to the storage.

[0110] 8. Once an emergency collision event signal is received, another emergency video recording process will be triggered;

[0111] 9. Emergency video recording process: The data buffer queue first passes the data 15 seconds before the current time point to the file container, and the file container saves the data to the file. Then it starts recording the data 15 seconds after the current time point and sends it to the file container, which saves the data to the file.

[0112] The following will explain each of the above steps in detail:

[0113] Process 1: The driving recorder starts automatically (such as Figure 2 shown):

[0114] 1.1.1 After powering on, upon receiving the system startup completion signal, trigger the start of the driving recorder application operation;

[0115] 1.1.2 Within the dashcam application process, various resources are used during initialization (including: video source instance, encoder instance, buffer queue instance, file container instance, recording pipe instance, socket client instance, CANBUS client instance, etc.);

[0116] 1.1.3 Establish a pipeline for looped audio and video recording; establish an audio and video recording pipeline for emergency collision response; establish a 360-degree surround view system data recording pipeline for emergency collision response;

[0117] 1.1.4 Register a collision event callback function; subscribe to driver assistance system data; establish a driver assistance data recording pipeline that responds to emergency collisions;

[0118] 1.1.5 Set the pipeline status of the loop recording function to Ready; set the pipeline status of each response to the emergency collision event to Ready; set the status of each subscription and callback to Ready;

[0119] 1.1.6 Start loop recording; start waiting for and monitoring each collision event; the dashcam application process stays in the background.

[0120] Process 2: Internal process of audio and video recording pipeline (such as Figure 3 (As shown)

[0121] 1.2.1 Visual data continuously flows from the camera source;

[0122] 1.2.2 Using hardware-accelerated image overlay technology, the vehicle signals and some driving assistance data are used to generate image watermarks, which are then printed onto each frame of the visual image.

[0123] 1.2.3 The watermarked visual data is transferred to the video encoder for encoding and compression;

[0124] 1.2.4 The video data flowing out of the video encoder is added to the video data queue, and the queue maintains the data duration for 15 seconds;

[0125] 1.2.5 The data flowing out of the video data queue flows into MP4 container 1;

[0126] 1.2.6 Audio data continues to flow from the microphone source;

[0127] 1.2.7 The audio data stream is transferred to the audio encoder for encoding and compression;

[0128] 1.2.8 Audio data flowing from the audio encoder is added to the audio data queue, which is maintained for 15 seconds of data duration;

[0129] 1.2.9 The data flowing out of the audio data queue flows into MP4 container 1;

[0130] 1.2.10 MP4 container 1 generates the file header information of the MP4 file, mixes the encoded audio and video data transmitted from the upstream, and stores it in MP4 file 1;

[0131] 1.2.11 If an emergency collision event is received, the data in the two audio and video data queues (including the first 15 seconds of data buffered in the queues and the 15 seconds of data after the current time point) is pushed into MP4 container 2;

[0132] 1.2.12MP4 container 2 generates the file header information of the MP4 file, mixes the encoded audio and video data transmitted from the upstream, and stores it in MP4 file 2.

[0133] Process 3: Car recorder file storage space management process (such as Figure 4 shown):

[0134] 1.3.1 Waiting for events indicating changes in available memory space;

[0135] 1.3.2 Receive notification of memory available space change event;

[0136] 1.3.3 Determine whether the current available storage space value is greater than the set threshold;

[0137] 1.3.4 If the current available storage space is less than the set threshold, delete the oldest video recording file until the available storage space is less than the set threshold.

[0138] 1.3.5 If the current available storage space is greater than the set threshold, return to step 1.3.1.

[0139] Process 4: The driving recorder loop recording audio and video process (such as Figure 5 shown):

[0140] 1.4.1 Create a pipeline instance for audio and video recording;

[0141] 1.4.2 Set the length of the recorded video file to 3 minutes;

[0142] 1.4.3 Start recording the video file (an EOS event will be issued when the recording is completed);

[0143] 1.4.4 Waiting to receive the EOS event of recording completion (with waiting timeout setting);

[0144] 1.4.5 If an EOS event notification is received, destroy the current pipeline instance and return to step 1.4.1;

[0145] 1.4.6 If no EOS event notification is received (a wait timeout is triggered), output necessary logs, destroy the current pipeline instance, and return to step 1.4.1.

[0146] Process 5: Driver assistance system data stream buffer processing process (such as Figure 6 shown):

[0147] 1.5.1 The driver assistance system continuously transmits data to the client in the cockpit system via the in-vehicle Ethernet;

[0148] 1.5.2 The driving assistance data transmitted from the driving assistance system client is compressed using a compression algorithm;

[0149] 1.5.3 Add the compressed data packet to a buffered data queue, which contains data for 15 seconds;

[0150] 1.5.4 Waiting to receive emergency collision events;

[0151] 1.5.5 If an emergency collision event is received, the data in the buffer queue (including data from 15 seconds before the current time and data from 15 seconds after the current time) will be saved to a file;

[0152] 1.5.5 If no emergency collision event is received, return to step 1.5.4.

[0153] Process 6: Car 360 surround view system data flow processing process (such as Figure 7 shown):

[0154] 1.6.1 The 360° surround view system continuously outputs visual data;

[0155] 1.6.2 Using hardware-accelerated image overlay technology, the vehicle signals and some driving assistance data are used to generate image watermarks, which are then printed onto each frame of the visual image.

[0156] 1.6.3 The watermarked visual data is transferred to the video encoder for encoding and compression;

[0157] 1.6.4 Video data flowing out of the video encoder is added to the video data queue, which is maintained for 15 seconds of data duration;

[0158] 1.6.5 Waiting to receive emergency collision events;

[0159] 1.6.6 If an emergency collision event is received, the data in the buffer queue (including data from 15 seconds before the current time and data from 15 seconds after the current time) will be saved to an MP4 file;

[0160] 1.6.7 If no emergency collision event is received, return to step 1.6.5.

[0161] Step 7: Interaction process between the sentry system and the dashcam when the car is parked and locked (e.g., ...) Figure 8 shown):

[0162] When the car is parked and locked, the intelligent cockpit system enters a sleep state by default (it can resume normal operation within 2-3 seconds after being woken up), but the MCU does not power down and the collision sensors can still work normally.

[0163] 1.7.1 When the car is parked and locked, if it is subjected to an external collision, the collision sensor sends a collision signal to the MCU;

[0164] 1.7.2 The MCU wakes up the intelligent cockpit system (the system will be running normally after 2-3 seconds) and forwards the collision event signal to the cockpit system;

[0165] 1.7.3 The intelligent cockpit system forwards the collision event signal to the dashcam application process, triggering the emergency collision event recording process (see process details). Figure 2 , 5 and 6).

[0166] Process 8: Upload emergency collision recording files to the cloud and push notifications to mobile phones (e.g.) Figure 9 shown):

[0167] 1.8.1 The dashcam receives a collision signal from the collision sensor;

[0168] 1.8.2 The dashcam triggers the emergency collision recording function and generates a video file;

[0169] 1.8.3 The dashcam uploads video files to the cloud for backup via the vehicle's TBOX;

[0170] 1.8.4 The cloud receives the video file and pushes a notification message to the car owner's registered mobile terminal.

[0171] In summary, (1) the emergency collision video record generated by this application accurately covers the entire process of the event. This driving recorder, as part of the intelligent cockpit system, continuously caches 15 seconds (can be set to 15-30 seconds) of encoded and compressed audio and video data in the system memory. Upon receiving the emergency collision signal sent by the collision sensor in the car, it generates an emergency collision video record and saves it as a file. The starting point of the video file record is 15 seconds before the collision event occurs (can be set to 15-30 seconds), and the end point is 15 seconds after the collision event occurs (can be set to 15-30 seconds). Such a video record file greatly facilitates manual retrieval.

[0172] (2) This application can obtain all necessary vehicle signal information, such as vehicle speed / steering wheel angle / seat belt status / brake status / gear information / headlight status, etc., which can be attached to each frame of the video in the form of an image watermark and presented during video playback as a basis for analyzing the cause of the accident.

[0173] (3) This application can obtain necessary driving assistance system information, such as: front vehicle collision warning information, left and right blind spot detection information, lane departure warning information and other records. Some warning information can be attached to each frame of the video in the form of image watermarks; at the same time, 15 seconds (can be set to 15-30 seconds) of compressed driving assistance data is cached in the system memory. After receiving the emergency collision signal, 15 seconds (can be set to 15-30 seconds) of data before and after the emergency collision occurs are saved to the memory.

[0174] (4) This application can obtain the necessary 360-degree surround view system / roof / undercarriage visual data. Based on the directional information (front, back, left, right, up, and down) in the acquired emergency collision event signal, the corresponding direction of the video data is read and recorded to generate an emergency recording video file. Emergency collision video records of the left and right sides / rear / roof / undercarriage will not be lost.

[0175] (5) This application can obtain the DMS / OMS audio and video data in the vehicle. Of course, to protect personal privacy, the driver and passengers can set this function to be turned off; in the event of an emergency collision, an emergency collision video record of the DMS / OMS can be generated.

[0176] (6) After the emergency collision video is recorded, it will be uploaded to the designated cloud server for backup using the vehicle's TBOX, without fear of local file damage or loss; each collision sensor and camera device can be reused with the Sentry system, and there are certain linkage operations. For example, when the car is parked and locked, the MCU receives the emergency collision signal from the collision sensor and wakes up the smart cockpit system. After the driving recorder software in the cockpit system receives the collision signal, it triggers the emergency collision video recording mechanism and generates a video recording file.

[0177] Next, the driving recorder proposed according to the embodiment of the present application is described with reference to the accompanying drawings.

[0178] Figure 10 2 is a block diagram of a driving recorder according to an embodiment of the present application.

[0179] like Figure 10 As shown, the driving recorder 10 includes: an acquisition module 100 , an adding module 200 , a first mixing module 300 and a second mixing module 400 .

[0180] Among them, the acquisition module 100 is used to acquire video data and audio data; the adding module 200 is used to add video data and audio data to the corresponding buffer queue; the first mixing module 300, when no collision signal is identified, mixes the video data and audio data output by the buffer queue through the audio and video loop recording pipeline and stores them in the first container to generate the first driving data; the second mixing module 400, when a collision signal is identified, calls back the video data and audio data through the audio and video recording pipeline in response to the emergency collision and stores them in the second container to generate the second driving data.

[0181] It should be noted that the above explanation of the embodiment of the driving recording method is also applicable to the driving recording device of this embodiment, and will not be repeated here.

[0182] According to the driving recorder proposed in the embodiment of the present application, video data and audio data are obtained, and the video data and audio data are added to the corresponding buffer queue. When no collision signal is recognized, the video data and audio data output by the buffer queue are mixed through the audio and video loop recording pipeline and stored in the first container to generate the first driving data. When a collision signal is recognized, the video data and audio data are called back by the audio and video recording pipeline in response to the emergency collision and are mixed and stored in the second container to generate the second driving data. This can meet the user's various recording needs. The driving data contains a variety of information, so that the user can more intuitively understand the vehicle's driving status or the cause of the collision, thereby improving the user experience.

[0183] Figure 11 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:

[0184] The memory 1101, the processor 1102, and the computer program stored on the memory 1101 and executable on the processor 1102.

[0185] When the processor 1102 executes the program, it implements the driving recording method provided in the above embodiments.

[0186] Furthermore, the vehicle also includes:

[0187] Communication interface 1103 is used for communication between memory 1101 and processor 1102.

[0188] The memory 1101 is used to store computer programs that can run on the processor 1102.

[0189] The memory 1101 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0190] If the memory 1101, processor 1102, and communication interface 1103 are implemented independently, then the communication interface 1103, memory 1101, and processor 1102 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0191] Optionally, in a specific implementation, if the memory 1101, processor 1102, and communication interface 1103 are integrated on a single chip, then the memory 1101, processor 1102, and communication interface 1103 can communicate with each other through an internal interface.

[0192] The processor 1102 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.

[0193] This application also provides a computer-readable storage medium storing a computer program or instructions thereon, which, when executed by a processor, implements the driving recording method described above.

[0194] This application also provides a computer program product, including a computer program or instructions, characterized in that, when the computer program or instructions are executed, they implement the driving recording method described above.

[0195] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and features of different embodiments or examples without contradiction.

[0196] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Thus, a feature specified as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of this application, "N" means at least two, for example, two, three, etc., unless otherwise specifically defined.

[0197] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing a custom logical function or process step, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may be performed in a different order than shown or discussed, including performing functions in a substantially simultaneous manner or in a reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present application pertain.

[0198] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiment, the N steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, it can be implemented using any one or a combination of the following technologies known in the art: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0199] Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.

Claims

1. A driving recording method, characterized in that: The following steps are involved: Get video data and audio data; Adding the video data and audio data to corresponding buffer queues; In the case where no collision signal is identified, the video data and the audio data output by the buffer queue are mixed through an audio and video loop recording pipeline and then stored in a first container to generate first driving data; When a collision signal is identified, the video data and the audio data are mixed and stored in a second container to generate second driving data through the audio and video recording pipeline that responds to the emergency collision.

2. The driving recording method according to claim 1, characterized in that: The obtaining of video data comprises: Obtain vehicle signals and driver assistance data; Inputting the vehicle-mounted signal and the driving assistance data into an image superposition model, the image superposition model outputting watermarked image data corresponding to a timestamp; The video data is added to the corresponding frame according to the watermarked image data.

3. The driving recording method according to claim 1, characterized in that: After the video data and the audio data are mixed and stored in a second container to generate the second driving data after the audio and video recording pipeline responding to the emergency collision is called back, the method includes: Recording second driving data after the collision moment by using an audio and video recording pipeline responding to an emergency collision; The second driving data of a preset time before and after the collision moment is automatically uploaded to the cloud, and the corresponding prompt information is pushed to the user terminal.

4. The driving recording method according to claim 1, characterized in that: Before adding the video data and the audio data to the corresponding buffer queue, the method further comprises: Inputting the video data and audio data into corresponding video encoders and audio encoders respectively; The video data and audio data output by the video encoder and audio encoder are added to corresponding buffer queues.

5. The driving recording method according to claim 1, characterized in that: After the audio data is obtained, the following steps are included: Identify the duration of the pipeline recording for audio and video loop recording; When an EOS event is detected or the duration exceeds the target duration, the current pipeline instance is destroyed.

6. The driving recording method according to claim 1, characterized in that: Before obtaining the video data and the audio data, the method includes: Build an audio and video loop recording pipeline, an audio and video recording pipeline for responding to emergency collisions, a driving assistance data recording pipeline, and a recording data processing pipeline; Register collision event callback function and subscribe to driving assistance data.

7. A driving recorder, characterized in that: include: An acquisition module, used for acquiring video data and audio data; An adding module, used for adding the video data and audio data to corresponding buffer queues; A first mixing module, when no collision signal is identified, mixes the video data and the audio data output by the buffer queue through an audio and video loop recording pipeline and stores the mixed data in a first container to generate first driving data; The second mixing module, when a collision signal is identified, calls back the video data and the audio data through the audio and video recording pipeline in response to the emergency collision, mixes the video data and the audio data, and stores the mixed data in the second container to generate second driving data.

8. A vehicle, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the driving recording method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, it is used to implement the driving recording method as described in any one of claims 1-6.

10. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed, the driving recording method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Humanized emergency document recording system

    CN107682652A

  • Video processing method and system, readable storage medium and driving recorder

    CN109640017A

  • Vehicle data recording method and device, equipment and storage medium

    CN116071846A

  • Driving recording method and system, electronic equipment, storage medium and vehicle

    CN117197923A

  • Recording method and device of multifunctional automobile data recorder

    CN117197925A