Emergency recording method and device of vehicle, electronic equipment and computer program product
By obtaining the trigger time and loop recording status of the emergency recording function, retrieving and editing the recorded video, and generating emergency recording video, the issues of stability and integrity of driving recording are resolved, ensuring the reliability of accident records.
Patent Information
- Application Number
- CN202411182256.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2044-08-26
AI Technical Summary
In existing technologies, the stability of dashcam recording functions is affected by external hardware damage, loosening, or performance degradation, increasing the risk of losing critical recordings. Furthermore, recorded videos are easily erased repeatedly, leading to video loss.
By obtaining the trigger time and loop recording status of the emergency recording function, the recorded video can be retrieved and edited to generate an emergency recording video, avoiding the loss or overwriting of loop recordings and ensuring the integrity of critical recordings.
It enables timely recording of emergency videos when an accident occurs, reduces the risk of losing critical footage, and ensures the stability and integrity of the recorded video.
Smart Images

Figure CN119107714B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of intelligent driving, in particular to an emergency recording method and device of a vehicle, an electronic device and a computer program product. BACKGROUND
[0002] The driving recording can record the accident situation for the user in the scene of the accident, thereby providing evidence for the user to trace and maintain the accident problem. However, in the prior art, the driving recording needs to be performed under the premise of external hardware insertion. In the case of damage, looseness or performance decline of the external hardware, the stability of the driving recording function will also decrease, increasing the risk of losing the key recording of the accident. In addition, the video of the driving recording will be cyclically erased, and if the user fails to timely export the key recording of the accident, the video may be lost.
[0003] At present, no effective solution has been proposed for the above problems. SUMMARY
[0004] The emergency recording method and device of the vehicle, the electronic device and the computer program product provided by the embodiments of the present application at least solve the technical problem that the recording effect of the emergency accident of the vehicle is poor.
[0005] According to an aspect of an embodiment of the present application, an emergency recording method of a vehicle is provided, comprising: in response to the vehicle triggering an emergency recording function, acquiring a first triggering time point of triggering the emergency recording function and a cycle recording state of the vehicle, wherein the cycle recording state is used to indicate whether the cycle recording function of the vehicle is in a working state, and the cycle recording function is used to cyclically record the driving video stored in the removable storage device during the driving process of the vehicle; retrieving the recording video of the vehicle from the storage space corresponding to the cycle recording state, wherein the recording video is the driving video containing the first triggering time point or the driving video before the first triggering time point; and editing the recording video based on the first triggering time point to obtain the emergency recording video of the vehicle.
[0006] Optionally, the method further comprises: in response to the removable storage device arranged on the vehicle being in an open state, determining that the cycle recording state is that the cycle recording function is in the working state; and in response to the removable storage device not being in the open state, determining that the cycle recording state is that the cycle recording function is not in the working state.
[0007] Optionally, the video recording video comprises one of the following: a first video recording video, a second video recording video, the storage space comprises at least one of the following: a removable storage device, a virtual memory corresponding to the vehicle, and the video recording video of the vehicle is retrieved from the storage space corresponding to the cycle recording state, comprising: in response to the cycle recording state being that the cycle recording function is in a working state, the first video recording video stored in the removable storage device is retrieved, wherein the first video recording video is the video recording video stored in the removable storage device by performing a cycle erasing operation, and the first video recording video is the video recording video stored in the removable storage device within at least one cycle erasing period, and the at least one cycle erasing period is a period containing the first trigger time point; in response to the cycle recording state being that the cycle recording function is not in a working state, the second video recording video stored in the virtual memory is retrieved, wherein the second video recording video is the video recording video stored in the virtual memory by performing a cycle erasing operation, and the second video recording video is the video recording video stored in the virtual memory within a preset time period before the first trigger time point.
[0008] Optionally, the video recording video is edited based on the first trigger time point to obtain an emergency video recording video of the vehicle, comprising: in response to the cycle recording state being that the cycle recording function is in a working state, the first video recording video is intercepted to obtain the emergency video recording video; in response to the cycle recording state being that the cycle recording function is not in a working state, a driving video of a first preset time period is recorded starting from the first trigger time point to obtain a first driving video recording video, and the first video recording video and the first driving video recording video are spliced to obtain the emergency video recording video.
[0009] Optionally, the first video recording video is intercepted to obtain the emergency video recording video, comprising: determining a first time point and a second time point based on the first trigger time point and a second preset time period, wherein the first time point is a time point before the first trigger time point and spaced apart from the first trigger time point by the second preset time period, and the second time point is a time point after the first trigger time point and spaced apart from the first trigger time point by the second preset time period; and the first video recording video is intercepted based on the first trigger time point, the first time point and the second time point to obtain the emergency video recording video.
[0010] Optionally, the first video recording video is intercepted based on the first trigger time point, the first time point and the second time point to obtain the emergency video recording video, comprising: the video between the first trigger time point and the first time point in the first video recording video is intercepted to obtain a first emergency video recording video; the video between the first trigger time point and the second time point in the first video recording video is intercepted to obtain a second emergency video recording video; and the first emergency video recording video and the second emergency video recording video are spliced to obtain the emergency video recording video.
[0011] Optionally, the first emergency video and the second emergency video are spliced to obtain the emergency video, comprising: in response to the vehicle triggering the emergency video function between the first trigger time point and the second time point, acquiring the second trigger time point of the emergency video function; determining a third time point based on the second trigger time point and the second preset time length, wherein the interval time length between the first time point and the third time point is less than the third preset time length; intercepting the video between the second trigger time point and the third time point in the first video to obtain a third emergency video; and splicing the first emergency video, the second emergency video and the third emergency video to obtain the emergency video.
[0012] Optionally, the first video and the first driving video are spliced to obtain the emergency video, comprising: in response to the vehicle triggering the emergency video function between the first trigger time point and the fourth time point, acquiring a third trigger time point of the emergency video function; recording a driving video of a first preset time length starting from the third trigger time point to obtain a second driving video; and splicing the first video, the first driving video and the second driving video to obtain the emergency video.
[0013] Optionally, the method further comprises: storing the emergency video into a fixed storage device corresponding to the vehicle.
[0014] Optionally, the method further comprises: in response to the vehicle receiving a preset signal, determining that the vehicle triggers the emergency video function, wherein the preset signal comprises at least one of: an emergency braking signal, a collision warning signal, an airbag explosion signal, and an emergency video function interaction signal.
[0015] Optionally, in response to the vehicle triggering the emergency video function, the method further comprises: displaying prompt information in the interactive interface of the vehicle, wherein the prompt information is used to prompt the recording state of the driving video.
[0016] Optionally, the method further comprises: in response to a touch operation acting on the interactive interface, displaying a cycle video page and an emergency video page in the interactive interface, wherein the cycle video page is used to display the video, and the emergency video page is used to display the emergency video and the marking information of the emergency video, and the marking information is used to record the triggering event of the emergency video.
[0017] Optionally, the method further comprises: in response to a playing operation acting on the emergency video, displaying at least one accident information of the corresponding driving event in the emergency video in the emergency video page, wherein the accident information comprises at least one of: accident cause and accident address.
[0018] Optionally, the method further comprises: in response to a selection operation on the front view angle and the surround view angle in the plurality of view angles of the interaction interface, recording the driving video of the vehicle based on the front view angle and the surround view angle to obtain the video recording.
[0019] According to another aspect of the embodiments of the present application, an emergency video recording device of a vehicle is also provided, comprising: an acquisition module configured to acquire a first trigger time point at which an emergency video recording function is triggered and a loop video recording state of the vehicle in response to the vehicle triggering the emergency video recording function, wherein the loop video recording state is used to indicate whether a loop video recording function of the vehicle is in an active state, and the loop video recording function is used to record the driving video stored in a removable storage device in a loop coverage manner during driving of the vehicle; a calling module configured to call the video recording of the vehicle from a storage space corresponding to the loop video recording state, wherein the video recording is the driving video containing the first trigger time point or the driving video before the first trigger time point; and a generation module configured to edit the video recording based on the first trigger time point to obtain the emergency video recording of the vehicle.
[0020] According to another aspect of the embodiments of the present application, an electronic device is also provided, comprising: a memory storing an executable program; and a processor configured to run the program, wherein the program performs the emergency video recording method of the vehicle when running.
[0021] According to another aspect of the embodiments of the present application, a computer program product is also provided, comprising a computer program, which, when executed by a processor, implements the emergency video recording method of the vehicle.
[0022] In the embodiments of the present application, in response to the vehicle triggering the emergency video recording function, the first trigger time point at which the emergency video recording function is triggered and the loop video recording state of the vehicle are acquired; the video recording of the vehicle is called from a storage space corresponding to the loop video recording state; and the video recording is edited based on the first trigger time point to obtain the emergency video recording of the vehicle. It is easy to note that, when an accident occurs, the video recording of a period of time before the first trigger time point at which the accident occurs is called from the corresponding storage space according to the active state of the loop video recording function, and the video recording is edited based on the first trigger time point to obtain the emergency video recording recording the accident. By separately generating the emergency video recording, the problem that the key video recording recording the accident is lost due to the loop video recording being lost or covered is avoided, and the technical effect of timely recording the emergency accident is achieved, thereby solving the technical problem of poor recording effect of the vehicle emergency accident. BRIEF DESCRIPTION OF DRAWINGS
[0023] The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
[0024] Figure 1 is a flow chart of an emergency recording method of a vehicle according to an embodiment of the present application;
[0025] Figure 2 is a schematic diagram of an optional recording function option according to an embodiment of the present application;
[0026] Figure 3 is a schematic diagram of an optional method of manually triggering an emergency recording function by a user according to an embodiment of the present application;
[0027] Figure 4 is a schematic diagram of an optional user interaction icon according to an embodiment of the present application;
[0028] Figure 5 is a schematic diagram of an optional display of a loop recording page and an emergency recording page on an interaction interface according to an embodiment of the present application;
[0029] Figure 6 is a schematic diagram of an optional playing of an emergency recording video according to an embodiment of the present application;
[0030] Figure 7 is a schematic diagram of an optional recording angle of an emergency recording video according to an embodiment of the present application;
[0031] Figure 8 is a schematic diagram of an emergency recording device of a vehicle according to an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to enable persons skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work should fall within the protection scope of the present application.
[0033] It is to be understood that the terms "first", "second", and the like, used in the description and the claims of the application and the above description of the drawings merely specify the names of similar objects and do not necessarily indicate or imply the specific order or sequence of these objects. It should be understood that the use of such terms herein shall not be interpreted as implying any specific order or sequence of the embodiments of the application described herein. Furthermore, the terms "comprising", "having", "including", and the like, and any variations thereof, are intended to cover a non-exclusive inclusion such that a process, method, system, product, or apparatus that comprises, has, includes, or the like, any of the recited steps or units, can also include other steps or units not expressly listed or inherent to such process, method, product, or apparatus.
[0034] Embodiment 1
[0035] According to an embodiment of the application, an embodiment of an emergency recording method of a vehicle is provided. It should be noted that the steps shown in the flowchart of the drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described herein can be executed in an order different from that shown herein.
[0036] Figure 1 is a flowchart of an emergency recording method of a vehicle according to an embodiment of the application, as shown in Figure 1 The method comprises the following steps:
[0037] In step S102, in response to the vehicle triggering an emergency recording function, a first trigger time point of triggering the emergency recording function and a cycle recording state of the vehicle are obtained, wherein the cycle recording state is used to indicate whether the cycle recording function of the vehicle is in a working state, and the cycle recording function is used to record the driving video stored in the removable storage device in the vehicle driving process.
[0038] The emergency recording function in the above steps is a function of recording the vehicle accident, which is different from the cycle recording function. The cycle recording function continuously records the vehicle, and will be overwritten by the early recording when the storage space is insufficient. However, the emergency recording function mainly records the vehicle accident, retains the recording information of the period when the vehicle accident occurs, and can realize the timely recording of the vehicle accident.
[0039] The first triggering time point in the above step is a time point of triggering the emergency recording function, which can be determined according to a signal triggered when the accident occurs. Specifically, the time point of triggering the emergency recording function can be a time point at which the vehicle detects an accident signal, a time point at which the vehicle detects a warning signal, or a time point at which the vehicle detects an indication signal issued by the user. Among them, the first triggering time point is determined by detecting the indication signal issued by the user, which is a way of determining the first triggering time point by user operation. The specific process can be: when the accident occurs, the vehicle can display an interactive interface for providing the emergency recording function to the user, and the user can click the button to confirm the emergency recording of the accident to issue the indication signal. The time point at which the vehicle detects the indication signal is the first triggering time point. Alternatively, the user can operate to display the interface and click the trigger control to determine the first triggering time point.
[0040] The loop recording function in the above step is a function of continuously recording the vehicle to obtain a loop recording video. It should be noted that the loop recording function will be looped to delete the early loop recording video when the storage space is insufficient.
[0041] In an optional embodiment, the time point at which each function of the vehicle is triggered can be recorded by the internal system of the vehicle in the database of the storage unit of the vehicle. The database of the storage unit of the vehicle can be accessed to obtain the triggering time of the emergency recording function as the first triggering time point when the emergency recording function is triggered.
[0042] In another optional embodiment, when the emergency recording function is triggered, a data recorder on the vehicle can be used to record the time point at which the emergency recording function is triggered, and the time point is used as the first triggering time point.
[0043] By obtaining the first triggering time point, the time point at which the vehicle accident occurs can be determined, so that the video period in which the emergency recording video should be recorded can be determined accordingly, so as to ensure that the emergency recording video can record the process of the accident. Further, the on-off state of the loop recording function can be determined. Optionally, a parameter representing the on-off state of the loop recording function can be accessed, and the parameter is analyzed according to the meaning represented by the numerical value of the parameter. If the numerical value of the parameter represents that the loop recording function is turned on, it is determined that the loop recording state of the vehicle is that the loop recording function is turned on. If the numerical value of the parameter represents that the loop recording function is turned off, it is determined that the loop recording state of the vehicle is that the loop recording function is turned off.
[0044] In step S104, the recording video of the vehicle is called from the storage space corresponding to the loop recording state, wherein the recording video is a driving video containing the first triggering time point or a driving video before the first triggering time point.
[0045] The storage space in the above step is a space for storing the vehicle recording video, which can be a removable storage device such as an external hard disk, or an internal memory on the vehicle machine. The storage space has a corresponding relationship with the loop recording state. Different loop recording states correspond to different storage spaces. If the loop recording state is the loop recording function enabled, the storage space can be a removable storage device. If the loop recording state is the loop recording function disabled, the storage space can be a virtual memory on the vehicle machine.
[0046] The driving video containing the first trigger time point in the above step is a driving video recorded from a time point before the first trigger time point to a time point after the first trigger time point.
[0047] The recording video in the above step is a video obtained by recording the driving state of the vehicle. When the loop recording state is the loop recording function enabled, the recording video is the driving video containing the first trigger time point, which can be used to intercept the vehicle accident video containing the first trigger time point to obtain the emergency recording video recording the vehicle accident. When the loop recording state is the loop recording function disabled, the recording video is the driving video before the first trigger time point, which records the driving state before the accident occurs and can be used to generate the emergency recording video to record the complete accident process.
[0048] In an optional embodiment, in order to better record the cause and effect of the vehicle accident, the recording of a period of time before the first trigger time point should also be recorded. The storage location of the recording of the period of time before the first trigger time point will be different under different loop recording states. Therefore, the corresponding storage space needs to be determined according to the loop recording state, and the recording video of the vehicle is retrieved from the storage space.
[0049] When determining the corresponding storage space according to the loop recording state, generally, if the loop recording state is enabled, the vehicle has been continuously recording the loop recording video before triggering the emergency recording function. Therefore, the recording video is part of the loop recording video, and the storage space is a space for storing the loop recording video. If the loop recording state is disabled, the vehicle does not record the loop recording video before triggering the emergency recording function. In order to preserve the recording of a period of time before the first trigger time point, a special storage area can be set up to store the driving video before the first trigger time point. Since the triggering of the emergency recording function only requires the driving video of a period of time before the first trigger time point, in order to avoid waste of storage space, the special storage area can save the driving video in a loop-coverage manner. Therefore, the storage space can be determined to be a space for storing the loop recording video or a special storage area according to whether the loop recording state is enabled or disabled.
[0050] When the video of the vehicle is called from the storage space, the video in the storage space can be directly called as the video recording; or the duration, starting point and ending point of the video recording can be determined according to industry experience, user demand or actual application situation, a video is cut from the video stored in the storage space according to the starting point, ending point and duration of the video recording, but if the video in the storage space itself contains the first trigger time point, the video recording after cutting still needs to contain the first trigger time point.
[0051] In step S106, the video recording is edited based on the first trigger time point to obtain the emergency video recording of the vehicle.
[0052] The emergency video recording in the above steps is a video recording of a vehicle accident, which can be obtained by editing the video recording.
[0053] In an optional embodiment, if the video recording is a driving video before the first trigger time point, the video recording can start from the first trigger time point, and the video duration can be determined according to user demand. Specifically, the video duration can be preset according to user demand in advance, and the video is recorded according to the preset video duration when the video is recorded. Alternatively, the video recording can start from the first trigger time point, and the user can determine when to stop recording according to his own demand, thereby determining the video duration. After the video recording is completed, the video is spliced with the video recording to obtain the emergency video recording.
[0054] In another optional embodiment, if the video recording contains the first trigger time point, the video recording can be cut from a time point before the first trigger time point to a time point after the first trigger time point. Specifically, a segment of the video recording containing the first trigger time point can be cut as the emergency video recording.
[0055] The emergency video recording obtained by editing the video recording based on the first trigger time point can exist independently of the loop video recording. The emergency video recording can be easily displayed separately to improve the convenience of the user in searching for the emergency video recording when handling the accident. At the same time, compared with the loop video recording, the smaller emergency video recording is also easy to save in a reliable storage medium, thereby reducing the risk of loss.
[0056] In the embodiment of the present application, in response to the vehicle triggering the emergency recording function, a first triggering time point of triggering the emergency recording function and a cycle recording state of the vehicle are acquired; the recording video of the vehicle is called from a storage space corresponding to the cycle recording state; and the recording video is edited based on the first triggering time point to obtain the emergency recording video of the vehicle. It is easy to note that when an accident occurs, according to the working state of the cycle recording function, the recording video of a period of time before the first triggering time point of the accident is called from the corresponding storage space, and the recording video is edited based on the first triggering time point to obtain the emergency recording video recording the accident. By separately generating the emergency recording video, the problem of missing key recording video recording the accident caused by missing or covering the cycle recording is avoided, thereby realizing the technical effect of reducing the risk of missing key recording video, and further solving the technical problem of poor recording effect of the vehicle emergency accident.
[0057] Optionally, the method further comprises: in response to a removable storage device arranged on the vehicle being in an open state, determining that the cycle recording state is that the cycle recording function is in a working state; and in response to the removable storage device not being in the open state, determining that the cycle recording state is that the cycle recording function is not in the working state.
[0058] The removable storage device in the above steps is a portable storage device, which can include but is not limited to a Universal Serial Bus (USB) flash disk, an external hard disk, a Secure Digital (SD) card, etc. The USB flash disk can also be referred to as a U disk, and can be used to store the cycle recording video. The cycle recording video saved in the removable storage device in one cycle erasing period is the first recording video.
[0059] In an optional embodiment, if the removable storage device on the vehicle is in an open state, the cycle video photographed using the cycle recording function can be stored in the removable storage device. At this time, the cycle recording state is that the cycle recording function is in a working state, and the cycle video can be called from the removable storage device when the emergency recording video is generated. If the removable storage device is not in the open state, the cycle recording function is in a closed state, and the vehicle does not record the cycle video. When the emergency recording video is generated, the recording video of the vehicle is called from the virtual memory.
[0060] Optionally, the video recording includes one of the first video recording and the second video recording, and the storage space includes at least one of a removable storage device and a virtual memory corresponding to the vehicle, and the video recording of the vehicle from the storage space corresponding to the cycle recording state includes: in response to the cycle recording state being that the cycle recording function is in the working state, the first video recording stored in the removable storage device is retrieved, wherein the first video recording is the video recording stored in the removable storage device by performing the cycle erasing operation, and the first video recording is the video recording stored in the removable storage device in at least one cycle erasing period, and the at least one cycle erasing period is a period containing the first trigger time point; and in response to the cycle recording state being that the cycle recording function is not in the working state, the second video recording stored in the virtual memory is retrieved, wherein the second video recording is the video recording stored in the virtual memory by performing the cycle erasing operation, and the second video recording is the video recording stored in the virtual memory in a preset time period before the first trigger time point.
[0061] The first video recording in the above step is the cycle recording video saved in the removable storage device in one cycle erasing period when the cycle recording function is in the working state, and the cycle recording video can be continuously recorded by the cycle recording function. Since the cycle erasing period contains the first trigger time point, the cycle recording video stored in the removable storage device, that is, the first video recording, can be the driving video from a time point before the first trigger time point to a time point after the first trigger time point, containing the first trigger time point.
[0062] The second video recording in the above step is the video stored in the virtual memory when the cycle recording function is in the off state. The second video recording can be the driving video corresponding to a period of time before the first trigger time point.
[0063] The virtual memory in the above step is a temporary memory divided from part of the hard disk space, used to extend the actual physical memory, used to save the second video recording, and the virtual memory can be a universal flash storage (UFS).
[0064] The cycle erasing period in the above step is a period in which the cycle erasing operation is performed, and the cycle erasing period includes the first trigger time point. The cycle erasing operation is used to erase the early video content when the removable storage device or the virtual memory is full, so as to free up storage space for storing new videos.
[0065] The preset time period in the above step is a time period set in advance, which can be set according to user demand or according to actual application, and the specific value of the preset time period is not limited here.
[0066] In an alternative embodiment, the user can automatically set the on and off of the loop recording function and the emergency recording function, Figure 2 is a schematic diagram of an alternative recording function option according to an embodiment of the present application, as Figure 2 shown, the user options regarding the recording mode include: off, emergency recording, emergency and loop recording. When "off" is selected, the driving recording function is turned off, and the loop recording function and the emergency recording function are also turned off; when "emergency recording" is selected, the loop recording function is turned off, and the emergency recording function is turned on; when "emergency and loop recording" is selected, the loop recording function and the emergency recording function are both turned on.
[0067] When the loop recording state is that the loop recording function is in the working state, during the driving process of the vehicle, the loop recording function will continuously record the driving process, and the obtained loop recording video will be stored in the U disk, i.e., the removable storage device. Since the loop recording video obtained by continuous recording is large, a loop erasing operation is adopted, and part of the early video in the U disk is erased in each loop erasing period. The loop recording video is copied from the U disk and used as the first recording video.
[0068] When the loop recording state is that the loop recording function is in the off state, the driving video is continuously recorded and stored in the UFS, i.e., the virtual memory, which is smaller than the removable storage device. Since the virtual memory is small, a loop erasing operation needs to be performed on the virtual memory to erase the earlier video and only keep the video within a preset time period before the first trigger time point. It should be noted that the loop erasing periods of the virtual memory and the removable storage device can be different, and the video time periods erased in the loop erasing periods of the virtual memory and the removable storage device can also be different. The recorded video is obtained from the UFS and used as the second recording video.
[0069] Optionally, the recording video is edited based on the first trigger time point to obtain the emergency recording video of the vehicle, including: in response to the loop recording state being that the loop recording function is in the working state, the first recording video is intercepted to obtain the emergency recording video; and in response to the loop recording state being that the loop recording function is not in the working state, the driving video of a first preset time period is recorded from the first trigger time point to obtain a first driving recording video, and the first recording video and the first driving recording video are spliced to obtain the emergency recording video.
[0070] The first preset time period in the above step is a video time period that is recorded from the first trigger time point and is pre-set, which can be set according to actual application conditions or user requirements, and the specific value of the first preset time period is not limited herein.
[0071] In an optional embodiment, when the cycle recording state is that the cycle recording function is in the working state, the cycle recording function continuously records the video during the driving process and stores the video in the removable storage device, so that the first recorded video obtained from the removable storage device can be intercepted to obtain the continuous video containing a period of time before the first trigger time point and a period of time after the first trigger time point, that is, the emergency recording video recording the whole vehicle accident process.
[0072] When the cycle recording state is that the cycle recording function is in the working state, the second recorded video in the virtual memory records the video content of a period of time before the first trigger time point, so that, in order to ensure the integrity of the emergency recording video recording the vehicle accident, the driving video of the first preset time length starting from the first trigger time point is recorded to obtain the first driving recording video, and the first recorded video and the first driving recording video are spliced to obtain the continuous video containing a period of time before the first trigger time point and a period of time after the first trigger time point, that is, the emergency recording video recording the whole vehicle accident process.
[0073] The emergency recording video is obtained by intercepting the first recorded video or splicing the first recorded video and the first driving recording video, and the emergency recording video can contain the driving record of a period of time before the first trigger time point and a period of time after the first trigger time point, so as to better record the cause and effect of the vehicle accident and ensure the integrity of the accident record.
[0074] Optionally, the first recorded video is intercepted to obtain the emergency recording video, including: determining the first time point and the second time point based on the first trigger time point and the second preset time length, wherein the first time point is a time point before the first trigger time point and spaced from the first trigger time point by the second preset time length, and the second time point is a time point after the first trigger time point and spaced from the first trigger time point by the second preset time length; and intercepting the first recorded video based on the first trigger time point, the first time point and the second time point to obtain the emergency recording video.
[0075] The second preset time length in the above step is a preset time length, and the second preset time length can be set according to the actual application situation or user demand, and the specific value of the first preset time length is not limited herein.
[0076] The first time point in the above step is the starting point of intercepting the first recorded video and is located before the first trigger time point; and the second time point is the end point of intercepting the first recorded video and is located after the first trigger time point.
[0077] In an alternative embodiment, when the cycle recording state is that the cycle recording function is in the working state, two time points spaced apart from the first trigger time point by a second preset time duration are determined, a time point before the first trigger time point is taken as the first time point, and a time point after the first trigger time point is taken as the second time point.
[0078] The first time point is taken as the start point of the interception of the first recording video, and the second time point is taken as the end point of the first recording video, a video segment containing the first trigger time point is intercepted from the first recording video, thereby obtaining the emergency recording video.
[0079] For example, when the cycle recording state is that the cycle recording function is in the working state, the first recording video is segmented and stored in the removable storage device, each segment being 1 minute, i.e., 1:01-1:02 is a segment video, 1:02-1:03 is a segment video, and so on.
[0080] If the second preset time duration is 30 seconds, and the emergency recording function is triggered at 1:02:03, the first trigger time point is determined to be 1:02:03, the first time point is 1:01:33, and the second time point is 1:02:33. It is necessary to splice the segment video from 1:01 to 1:02 and the segment video from 1:02 to 1:03 after the segment video from 1:02 to 1:03 is saved, to obtain the video from 1:01 to 1:03, i.e., the first recording video. Then, the first recording video is intercepted according to the first time point and the second time point, 1:01:33 is taken as the start point of the interception of the first recording video, and 1:02:33 is taken as the end point of the interception of the first recording video, a video from 1:01:33 to 1:02:33 is intercepted from the video from 1:01 to 1:03, i.e., the emergency recording video.
[0081] It should be noted that all the times and values in this embodiment are only examples, and the times and values used in actual applications can not be limited thereto.
[0082] In another alternative embodiment, when the cycle recording state is that the cycle recording function is in the working state, the first time point can be taken as the start point of the interception of the first recording video, and the first trigger time point can be taken as the end point of the interception of the first recording video, thereby obtaining a video segment. Then, the first trigger time point can be taken as the start point of the interception of the first recording video, and the second time point can be taken as the end point of the interception of the first recording video, thereby obtaining another video segment. The two video segments are spliced to obtain the emergency recording video.
[0083] Optionally, the first video recording is intercepted based on the first trigger time point, the first time point and the second time point to obtain the emergency video recording, including: intercepting the video between the first trigger time point and the first time point in the first video recording to obtain a first emergency video recording; intercepting the video between the first trigger time point and the second time point in the first video recording to obtain a second emergency video recording; and splicing the first emergency video recording and the second emergency video recording to obtain the emergency video recording.
[0084] The first emergency video recording in the above step is a video with the first time point as the starting point and the first trigger time point as the ending point, which can be used as a part of the emergency video recording.
[0085] The second emergency video recording in the above step is a video with the first trigger time point as the starting point and the second time point as the ending point, which can be used as a part of the emergency video recording.
[0086] In an optional embodiment, when the loop recording state is that the loop recording function is in a working state, the first video recording can be obtained through the loop recording function. At the first trigger time point when the emergency recording function is triggered, the first video recording needs to be recorded for a first preset time period to cover the second time point. Therefore, at the first time point, the first video recording can be intercepted according to the first trigger time point and the first time point to obtain the first emergency video recording containing the video recording information before the accident occurs.
[0087] After the first video recording covers the second time point, the first video recording is intercepted according to the first trigger time point and the second time point to obtain the second emergency video recording containing the video recording information after the accident occurs. Splicing the first emergency video recording and the second emergency video recording can obtain the emergency video recording recording the complete accident.
[0088] After the emergency recording function is triggered, before the first video recording covers the second time point, the first video recording is intercepted according to the first trigger time point and the first time point to obtain the video recording information before the accident occurs, which can avoid waiting and improve the efficiency of obtaining the emergency video recording.
[0089] Optionally, the first emergency video and the second emergency video are spliced to obtain the emergency video, comprising: in response to the vehicle triggering the emergency video function between the first trigger time point and the second time point, acquiring the second trigger time point of the emergency video function; determining a third time point based on the second trigger time point and the second preset time length, wherein the interval time length between the first time point and the third time point is less than the third preset time length; intercepting the video between the second trigger time point and the third time point in the first video to obtain a third emergency video; and splicing the first emergency video, the second emergency video and the third emergency video to obtain the emergency video.
[0090] The second trigger time point in the above step is the time point when the emergency video function is triggered again after the emergency video function has been triggered and before the emergency video is obtained. The third preset time length in the above step is a preset time length, which can be set according to actual application or user demand, and the specific value of the third preset time length is not limited herein. The third preset time length is used to limit the total time length of the emergency video, and the total time length of the emergency video should not be longer than the third preset time length, that is, the interval between the first time point and the third time point is less than or equal to the third preset time length. Exemplarily, the third preset time length can be 3 minutes, but the time length is only an example, and the third preset time length set in actual application can not be limited to this.
[0091] The third time point in the above step is the time point that is spaced apart from the second trigger time point by the second preset time length. When the emergency video function is triggered again before the emergency video is obtained, the video needs to be recorded for a longer time, and the third time point is the termination point of the extended recording video.
[0092] The third emergency video in the above step is the video that is recorded for a longer time when the emergency video function is triggered again after the emergency video function is triggered and before the emergency video is obtained. The second trigger time point is the starting point, and the third time point is the termination point.
[0093] In an optional embodiment, when the cycle video state is that the cycle video function is in a working state, after the emergency video function has been triggered and before the emergency video is obtained, if the emergency video function is triggered again, the video needs to be recorded for a longer time, that is, the range of the first video interception is expanded.
[0094] Exemplarily, if the second preset time length is 30 seconds, the emergency is triggered at 1:02:03, the first trigger time point is 1:02:03, the first time point is 1:01:33, and the second time point is 1:02:33. If the emergency recording function is triggered again at 1:02:32 before 1:02:33, the range of the first recording video needs to be enlarged. At this time, the second trigger time point is 1:02:32, and the third time point is 1:03:02 according to the second preset time length of 30 seconds. The video from 1:02:32 to 1:03:02 in the first recording video is taken as the third emergency recording video, with the second trigger time point as the starting point and the third time point as the ending point. It should be noted that all the times and values above are only examples, and the times and values used in actual applications can not be limited to this.
[0095] The first emergency recording video, the second emergency recording video and the third emergency recording video are spliced. In the splicing process, if there is an overlapping part in the first emergency recording video, the second emergency recording video and the third emergency recording video, the de-duplication operation should be performed first, and then the splicing is performed. If there is no overlapping part, the splicing is directly performed. The emergency recording video is obtained after splicing.
[0096] It should be noted that the third preset time length is used to limit the length of the entire emergency recording video, and the limitation will affect the determination of the third time point. Continue to illustrate the above example, in the above example, the starting point of the emergency recording video, that is, the first time point is 1:01:33, and the ending point of the emergency recording video, that is, the third time point is 1:03:02. The length of the emergency recording video is 89 seconds. If the third preset time length is 100 seconds, the length of the emergency recording video meets the limitation, and the third time point is determined as 1:03:02. If the third preset time length is 80 seconds, the length of the emergency recording video does not meet the limitation, and the third time point should be modified to 1:02:53. It should be noted that all the times and values above are only examples, and the times and values used in actual applications can not be limited to this.
[0097] Optionally, the first recording video and the first driving recording video are spliced to obtain the emergency recording video, including: in response to the vehicle triggering the emergency recording function between the first trigger time point and the fourth time point, obtaining a third trigger time point of the emergency recording function; recording a driving video of a first preset time length from the third trigger time point to obtain a second driving recording video; and splicing the first recording video, the first driving recording video and the second driving recording video to obtain the emergency recording video.
[0098] The fourth time point in the above step is a time point after the first trigger time point and spaced from the first trigger time point by a first preset time length, that is, a termination point of recording the video starting from the first trigger time point after the emergency recording function is triggered when the cycle recording function is not in the working state.
[0099] The third trigger time point in the above step is a time point of triggering the emergency recording function again after the emergency recording function has been triggered and before the emergency recording video is recorded.
[0100] The second driving recording video in the above step is a video with a recording starting point of the third trigger time point and a recording time length of the first preset time length, that is, a video recorded by extending the recording after the emergency recording function is triggered again after the emergency recording function has been triggered and before the emergency recording video is recorded.
[0101] In an optional embodiment, when the cycle recording state is that the cycle recording function is not in the working state, if the emergency recording function is triggered again between the first trigger time point and the fourth time point, for example, the vehicle, the trigger time point is recorded as the third trigger time point. The driving video with the third trigger time point as the recording starting point and the first preset time length as the recording time length is recorded to obtain the second driving recording video.
[0102] The first recording video, the first driving recording video, and the second driving recording video are spliced. In the splicing process, if the first driving recording video and the second driving recording video have repeated parts, the de-duplication operation should be performed first, and then the splicing is performed to obtain the emergency recording video.
[0103] Optionally, the method further includes storing the emergency recording video into a fixed storage device corresponding to the vehicle.
[0104] The fixed storage device in the above step is a fixed storage device on the vehicle machine, which can be a UFS, but is not limited thereto.
[0105] In an optional embodiment, the emergency recording video is stored in the UFS, that is, the fixed storage device. The emergency recording video corresponding to the vehicle accident is stored separately on the fixed storage device on the vehicle machine, instead of being stored together with the cycle recording video in the removable storage device, so that the loss of the emergency recording video caused by the damage or loosening of the removable storage device can be avoided, and the safety of the emergency recording video is improved.
[0106] Optionally, the method further includes determining that the vehicle triggers the emergency recording function in response to the vehicle receiving a preset signal, wherein the preset signal includes at least one of the following: an emergency braking signal, a collision warning signal, an airbag detonation signal, and an emergency recording function interaction signal.
[0107] The preset signal in the above step is a signal that is preset to trigger the emergency recording function. It can be a signal generated by a collision, a signal generated by a pre-warning, or a signal generated by user interaction, but is not limited thereto.
[0108] The emergency braking signal in the above step is a signal sent by the automatic emergency braking system (AEB) of the vehicle, indicating that the vehicle has a risk of collision with the front obstacle and automatically braking. The generation of the emergency braking signal by the vehicle indicates that the vehicle has generated a collision warning and has a risk of sending a collision.
[0109] The collision warning signal in the above step includes a forward collision warning signal and a rear collision warning signal. The forward collision warning signal is generated when the forward collision warning system (FCW) detects that the vehicle is too close to the front vehicle or the speed difference is too large, indicating a risk of collision. The rear collision warning signal is generated when the rear collision warning system (RCW) detects that a vehicle is approaching from behind and moving at a high speed, indicating a risk of rear-end collision by the vehicle. The forward collision warning signal and the rear collision warning signal indicate that the vehicle has generated a collision warning and has a risk of sending a collision.
[0110] The airbag detonation signal in the above step is a signal generated when the vehicle is in a collision, which is used to trigger the rapid inflation and expansion of the airbag to protect the passengers from collision damage. When the vehicle is in a collision, the sensor inside the vehicle detects the force and direction of the collision, generates the airbag detonation signal and sends it to the airbag control unit on the vehicle. The airbag detonation signal indicates that the vehicle has sent a collision and needs to record an emergency recording video.
[0111] The emergency recording function interaction signal in the above step is a signal manually sent by the user through the interactive system of the vehicle, indicating that the vehicle starts recording an emergency recording video using the emergency recording function.
[0112] In an optional embodiment, in the case where it is clear that the vehicle has been involved in a collision accident, the emergency recording function needs to be triggered to record an emergency recording of the collision accident. Since the airbag detonation signal is generated when a collision accident occurs, when the vehicle receives the airbag detonation signal, the emergency recording function is triggered.
[0113] In addition, in the case of a vehicle collision warning, although there is no explicit collision accident, there is a high risk of a collision accident. In order to better cover the accident scene, when the vehicle collision warning occurs, the emergency video function is also used to record the emergency video. Because the emergency braking signal and the collision warning signal are generated when the collision warning occurs, when the vehicle receives the emergency braking signal and the collision warning signal, the emergency video function is triggered.
[0114] The above is the case of automatically triggering the emergency video function. In order to better prevent missing accidents, the user can also send an emergency video function interaction signal to the vehicle to manually trigger the emergency video function. Specifically, the user can press the button to enter the emergency call system (Ecall) state, and then the vehicle generates an emergency video function interaction signal to trigger the emergency video function and start recording the emergency video. In addition, Figure 3 is a schematic diagram of an optional method for a user to manually trigger an emergency video function according to an embodiment of the application, as Figure 3 shown, the user can also select the vehicle from the state bar of the vehicle interaction system from the four options of the vehicle, the door and window, the light, and the seat. Then the vehicle prompts the current driving video state to be "recording in a cycle, recording the external influence and saving in a U disk", and provides "emergency recording" and "viewing video" buttons. After the user clicks the "emergency recording" button, an emergency video function interaction signal can be generated to trigger the emergency video function and start recording the emergency video.
[0115] Optionally, in response to the vehicle triggering the emergency video function, the method further includes: displaying prompt information in the interaction interface of the vehicle, wherein the prompt information is used to prompt the recording state of the driving video.
[0116] The interaction interface in the above step is an interface for realizing the interaction between the user and the vehicle, which can be a display screen of the vehicle interaction system or a voice interaction system of the vehicle interaction system, but is not limited thereto.
[0117] The prompt information in the above step is used to prompt the recording state of the driving video, which can include a user interface (User Interface, referred to as UI) schematic symbol and a status bar pop-up window.
[0118] In an optional embodiment, the prompt information displayed in the interaction interface of the vehicle includes a user interaction schematic symbol, that is, a UI schematic symbol and a status bar pop-up window. Wherein, Figure 4 is a schematic diagram of an optional user interaction schematic symbol according to an embodiment of the application, as Figure 4As shown, the state is divided into three kinds: cycle recording is started, emergency recording is started, and the driving recording function is unavailable or closed. The user interaction indication corresponding to the three states is shown in Figure 4
[0119] The cycle recording working state indicates that the cycle recording function is started and can be normally used. The emergency recording function can be in a working state or in a closed state. In the cycle recording working state, the information given in the status bar pop-up window is: cycle recording, cycle recording of vehicle exterior image and keeping in U disk.
[0120] The emergency recording working state indicates that only the emergency recording function is started, and the cycle recording function is not started; or both the emergency recording function and the cycle recording function are started, but the cycle recording function cannot be used due to U disk problem. In the emergency recording working state, the information given in the status bar pop-up window is: emergency recording is started, and when a risk event occurs, the recording video will be automatically recorded and permanently saved in the vehicle machine.
[0121] The driving recording function unavailable or closed state can indicate that the cross-product unit (XPU) is not started, and the function is unavailable; it can also indicate that the cycle recording is closed or the U disk problem causes the cycle recording function to be unavailable, and only the emergency recording is available, because the storage space is insufficient to cause the emergency recording function to be unable to record and save. At this time, the information given in the status bar pop-up window is: unavailable, U disk or auxiliary image failure causes the function to be not normally used.
[0122] The driving recording function unavailable or closed state can also indicate that neither the emergency recording function nor the cycle recording function is started. At this time, the information given in the status bar pop-up window is: closed, please start in "smart image" of "vehicle control".
[0123] Optionally, the method further comprises: in response to a touch operation acting on the interactive interface, displaying a cycle recording page and an emergency recording page on the interactive interface, wherein the cycle recording page is used to display a recording video, and the emergency recording page is used to display an emergency recording video and marked information of the emergency recording video, and the marked information is used to record a trigger event of the emergency recording video.
[0124] The marked information in the above step is used to record the trigger event of the emergency recording video, and the trigger event can include a trigger time, a trigger reason and a trigger place, wherein the trigger time includes a month and a day when the emergency recording video is recorded, and a specific time, minute and second of triggering the emergency recording function.
[0125] In an optional embodiment, Figure 5 is a schematic view of an optional cycle recording page and an emergency recording page displayed on an interactive interface according to an embodiment of the application, as shown in Figure 5 As shown, the driving recording application is selected in the driving recording, the sentry recording, and the storage management application of the interactive interface. In the driving recording application, there are secondary tabs supporting selection of "emergency recording video" and "recycle recording video" under the left driving recording tab. The "emergency recording video" tab is in front, and the "recycle recording video" tab is in back. Clicking the "emergency recording video" tab can enter the emergency recording page, and clicking the "recycle recording video" tab can enter the recycle recording page. The "emergency recording video" tab is selected by default.
[0126] In the emergency recording page, the emergency recording videos of "a certain year and a certain month" are displayed in groups in terms of natural months. Each video displays mark information, i.e., the triggering time of the emergency recording video. The mark information includes the date and the time. The date is the month and day when the emergency recording video is recorded. The time is the time when the first emergency event is triggered in the emergency recording video, i.e., the first triggering time point. Clicking the triangular mark in the upper right corner can display the triggering reason. The triggering reason can include the collision reason, the early warning reason, and the user operation reason.
[0127] In the recycle recording page, all recycle recording videos, i.e., the contents of all online driving recording videos, are displayed. Meanwhile, the recycle recording page also displays a prompt of no U disk or U disk failure.
[0128] By displaying the recycle recording videos and the emergency recording videos in different pages and marking the emergency recording videos with time and mark information, the user can easily find the emergency recording videos when tracing accidents and problems and maintaining, avoiding screening target videos from a large amount of video data, and improving the user-friendly.
[0129] Optionally, the method further includes: in response to a play operation acting on the emergency recording video, displaying at least one accident information of the corresponding driving event in the emergency recording video in the emergency recording page, wherein the accident information includes at least one of the following: accident reason and accident address.
[0130] The accident information in the above steps is the information of the corresponding driving event in the emergency recording video. The accident information can include the accident reason and the accident address. The accident reason is the reason for triggering the emergency recording function, and the accident address is the address when the emergency recording function is triggered. It should be noted that the emergency recording function can be triggered more than once in one emergency recording video. Therefore, the accident reason displayed in one emergency recording video can be one or multiple. The accident address displayed in one emergency recording video can be one or multiple.
[0131] The accident cause in the above step can be an automatic triggering time of a forward collision warning, a rear collision warning, an emergency braking, an airbag ejection, etc., or a manual triggering event of a user operation, etc. The accident cause has a corresponding relationship with an emergency braking signal, a collision warning signal, an airbag explosion signal, and an emergency video function interaction signal capable of triggering the emergency video function: the emergency braking corresponds to the emergency braking signal, the forward collision warning and the rear collision warning correspond to the collision warning signal, the airbag ejection corresponds to the airbag explosion signal, and the user operation corresponds to the emergency video function interaction signal.
[0132] In an optional embodiment, a certain emergency video can be selected in the emergency video page, and the emergency video is played by using a player. Figure 6 is a schematic diagram of playing an emergency video according to an embodiment of the present application, as Figure 6 shown, Figure 6 The right part of the emergency video being played has a progress bar of playing the emergency video, and in the emergency video, a surround view can be viewed by clicking a "view surround" button. The left part has a map and a vehicle mark, and the vehicle mark moves on the map according to the vehicle driving route in the emergency video while the emergency video is being played. During the movement, the point triggering the emergency video function, i.e., the accident address, is specially marked.
[0133] In addition to the accident address, when the emergency video is played by using the player, the accident cause, i.e., the reason triggering the emergency video function, is also displayed. The accident cause includes a forward collision warning, a rear collision warning, an emergency braking, an airbag ejection, and a user operation. Among them, the forward collision warning, the rear collision warning, the emergency braking, and the airbag ejection are automatic triggering of the emergency video recording, and the user operation is manual triggering of the emergency video recording. Among the reasons for automatically triggering the emergency video recording, the forward collision warning, the rear collision warning, and the emergency braking are warning reasons, i.e., the emergency video starts recording due to the vehicle warning, and the airbag ejection is a collision reason, i.e., the emergency video starts recording due to the vehicle collision. Among the reasons for manually triggering the emergency video recording, the user operation includes the user clicking a start emergency video recording button in the status bar and the user operating a steering wheel controller.
[0134] Optionally, the method further includes: in response to a selection operation acting on a front view angle in the multiple view angles in the interactive interface, recording the driving video of the vehicle based on the front view angle to obtain a video; and in response to a selection operation acting on the front view angle and a surround view angle in the multiple view angles, recording the driving video of the vehicle based on the front view angle and the surround view angle to obtain a video.
[0135] The front view angle in the above step refers to a view angle of the front of the vehicle, which can be seen in the video recorded by the camera or the camera during the recording of the driving video of the vehicle.
[0136] The surround view angle in the above step refers to a panoramic view angle of the surroundings of the vehicle, which can be seen in the video recorded by the camera or the camera during the recording of the driving video of the vehicle, and can simultaneously see the road and the surroundings in front of, behind, on the left side and on the right side of the vehicle, so as to more comprehensively record the situation around the vehicle.
[0137] In an optional embodiment, when recording the emergency recording video using the emergency recording function, the user can select the recording view angle in the interactive interface. The user can select the front view angle recording, or can select the recording based on the front view angle and the surround view angle. Figure 7 is a schematic diagram of an optional recording view angle of an emergency recording video according to an embodiment of the present application, as shown in Figure 7 If the user selects the recording view angle as the front view angle, the emergency recording video records the main view, and the recording range of the main view is as shown in Figure 7 If the user selects the recording view angle as the front view and the surround view, the emergency recording video records the main view plus the surround view, and the recording range of the main view plus the surround view is as shown in Figure 7 The selection of the front view angle recording can obtain the recording video containing the main view, the view angle is relatively single, but the occupied storage space is smaller. The selection of the front view angle and the surround view angle recording can obtain the recording video containing the main view plus the surround view, which can simultaneously record the front and the surrounding pictures, and provide more comprehensive view angle, but the occupied storage space is smaller.
[0138] Embodiment 2
[0139] According to an embodiment of the present application, an embodiment of an emergency recording device of a vehicle is provided, which can execute the emergency recording method of the vehicle provided in the above-mentioned embodiment 1, and the specific implementation manner and the preferred application scene are the same as those of the above-mentioned embodiment 1, which will not be repeated here.
[0140] Figure 8 is a schematic diagram of an emergency recording device of a vehicle according to an embodiment of the present application, as shown in Figure 8
[0141] The acquisition module 80 is configured to, in response to the vehicle triggering the emergency recording function, acquire a first triggering time point of triggering the emergency recording function and a cycle recording state of the vehicle, wherein the cycle recording state is used to indicate whether the cycle recording function of the vehicle is in a working state, and the cycle recording function is used to record the driving video stored in the removable storage device during the driving process of the vehicle.
[0142] The calling module 82 is configured to call the vehicle video from the storage space corresponding to the loop recording state, wherein the vehicle video is the driving video containing the first trigger time point or the driving video before the first trigger time point.
[0143] The generating module 84 is configured to edit the vehicle video based on the first trigger time point to obtain the emergency video of the vehicle.
[0144] Optionally, the obtaining module comprises: a first determining unit configured to determine that the loop recording state is that the loop recording function is in the working state in response to the removable storage device arranged on the vehicle being in the open state; and a second determining unit configured to determine that the loop recording state is that the loop recording function is not in the working state in response to the removable storage device not being in the open state.
[0145] Optionally, the calling module comprises: a first calling unit configured to call the first video stored in the removable storage device in response to the loop recording state being that the loop recording function is in the working state, wherein the first video is the video stored by performing the loop erasing operation on the removable storage device, and the first video is the video stored in the removable storage device in at least one loop erasing cycle, and the at least one loop erasing cycle is a cycle containing the first trigger time point; and a second calling unit configured to call the second video stored in the virtual memory in response to the loop recording state being that the loop recording function is not in the working state, wherein the second video is the video stored by performing the loop erasing operation on the virtual memory, and the second video is the video stored in the virtual memory in a preset time period before the first trigger time point.
[0146] Optionally, the generating module comprises: an intercepting unit configured to intercept the first video to obtain the emergency video in response to the loop recording state being that the loop recording function is in the working state; and a splicing unit configured to record the driving video for a first preset time period starting from the first trigger time point to obtain a first driving video, and splice the first video and the first driving video to obtain the emergency video in response to the loop recording state being that the loop recording function is not in the working state.
[0147] Optionally, the intercepting unit is further configured to determine a first time point and a second time point based on the first trigger time point and a second preset time period, wherein the first time point is a time point before the first trigger time point and spaced apart from the first trigger time point by the second preset time period, and the second time point is a time point after the first trigger time point and spaced apart from the first trigger time point by the second preset time period; and intercept the first video based on the first trigger time point, the first time point and the second time point to obtain the emergency video.
[0148] Optionally, the intercepting unit is further configured to intercept video between the first trigger time point and the first time point in the first recorded video to obtain a first emergency recorded video; intercept video between the first trigger time point and the second time point in the first recorded video to obtain a second emergency recorded video; and splice the first emergency recorded video and the second emergency recorded video to obtain the emergency recorded video.
[0149] Optionally, the intercepting unit is further configured to, in response to the vehicle triggering the emergency recording function between the first trigger time point and the second time point, acquire a second trigger time point of the emergency recording function, wherein a time length between the first trigger time point and the second time point is less than the third preset time length; determine a third time point based on the second trigger time point and the second preset time length, wherein the third time point is a time point after the second trigger time point and spaced from the second trigger time point by the second preset time length; intercept video between the second trigger time point and the third time point in the first recorded video to obtain a third emergency recorded video; and splice the first emergency recorded video, the second emergency recorded video and the third emergency recorded video to obtain the emergency recorded video.
[0150] Optionally, the splicing unit is further configured to, in response to the vehicle triggering the emergency recording function between the first trigger time point and the fourth time point, acquire a third trigger time point of the emergency recording function, wherein a time length between the first trigger time point and the fourth time point is less than the first preset time length; record a first preset time length of driving video starting from the third trigger time point to obtain a second driving recorded video; and splice the first recorded video, the first driving recorded video and the second driving recorded video to obtain the emergency recorded video.
[0151] Optionally, the generating module is further configured to store the emergency recorded video into a fixed storage device corresponding to the vehicle.
[0152] Optionally, the acquiring module is further configured to, in response to the vehicle receiving a preset signal, determine that the vehicle triggers the emergency recording function, wherein the preset signal comprises at least one of the following: an emergency braking signal, a collision warning signal, an airbag detonation signal and an emergency recording function interaction signal.
[0153] Optionally, the acquiring module is further configured to display prompt information in an interactive interface of the vehicle, wherein the prompt information is used to prompt a recording state of the driving video.
[0154] Optionally, the generating module is further configured to, in response to a touch operation on the interactive interface, display a loop recording page and an emergency recording page in the interactive interface, wherein the loop recording page is used to display the recorded video, and the emergency recording page is used to display the emergency recorded video and marked information of the emergency recorded video, and the marked information is used to record a triggering event of the emergency recorded video.
[0155] Optionally, the generating module is further configured to display at least one accident information corresponding to the driving event in the emergency video in the emergency video page in response to a playing operation on the emergency video, wherein the accident information comprises at least one of the following: accident cause, accident address.
[0156] Optionally, the calling module is further configured to record the driving video of the vehicle based on the front view angle to obtain the video in response to a selection operation on the front view angle in the multiple views in the interaction interface, and record the driving video of the vehicle based on the front view angle and the surround view angle to obtain the video in response to a selection operation on the front view angle and the surround view angle in the multiple views.
[0157] Embodiment 3
[0158] According to the embodiments of the present application, an electronic device is further provided, comprising: a memory storing an executable program; and a processor configured to run the program, wherein the program, when running, performs the emergency video recording method of the vehicle in the embodiment 1.
[0159] Embodiment 4
[0160] The embodiments of the present application further provide a computer program product, comprising a computer program, the computer program, when executed by a processor, implements the emergency video recording method of the vehicle in various embodiments of the present application.
[0161] Embodiment 5
[0162] The embodiments of the present application further provide a computer program product, comprising a non-volatile computer readable storage medium, the non-volatile computer readable storage medium is used to store a computer program, the computer program, when executed by a processor, implements the emergency video recording method of the vehicle in various embodiments of the present application.
[0163] The above-mentioned serial numbers of the embodiments of the present application are only for description, not representing the advantages and disadvantages of the embodiments.
[0164] In the above-mentioned embodiments of the present application, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0165] In several embodiments provided in the present application, it should be understood that the disclosed technical contents can be implemented by other ways. Among them, the above-mentioned device embodiments are only schematic, for example, the division of the units can be a logical function division, and actual implementation can have another division way, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed each other can be through some interface, indirect coupling or communication connection between units or modules, which can be electrical or other forms.
[0166] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e. may be located in one place, or may be distributed to multiple units. Part or all of the units may be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0167] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0168] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on this understanding, the technical scheme of the present application or the part that contributes to the prior art or the whole or part of the technical scheme can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic disk or an optical disk, and various program code storage media.
[0169] The above is only the preferred embodiment of the present application, and it should be noted that for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, and these improvements and refinements should be considered as the protection scope of the present application.
Claims
1. An emergency recording method of a vehicle, characterized by, The method comprises the following steps: In response to a vehicle triggering an emergency recording function, a first trigger time point triggering the emergency recording function and a cycle recording state of the vehicle are acquired, wherein the cycle recording state is used to indicate whether the cycle recording function of the vehicle is in a working state, and the cycle recording function is used to cyclically record the driving video stored in the removable storage device during driving of the vehicle; The recording video of the vehicle is called from the storage space corresponding to the cycle recording state, wherein the recording video is the driving video containing the first trigger time point or the driving video before the first trigger time point; The recording video is edited based on the first trigger time point to obtain the emergency recording video of the vehicle.
2. The emergency video recording method of a vehicle according to claim 1, characterized by, The method further comprises the following steps: In response to the removable storage device arranged on the vehicle being in an open state, it is determined that the cycle recording state is that the cycle recording function is in the working state; In response to the removable storage device not being in the open state, it is determined that the cycle recording state is that the cycle recording function is not in the working state.
3. The emergency recording method of a vehicle according to claim 2, characterized by, The recording video comprises one of a first recording video and a second recording video, and the storage space comprises at least one of the removable storage device and a virtual memory corresponding to the vehicle, and the recording video of the vehicle is called from the storage space corresponding to the cycle recording state, comprising the following steps: In response to the cycle recording state being that the cycle recording function is in the working state, the first recording video stored in the removable storage device is called, wherein the first recording video is the recording video stored by performing a cycle erasing operation in the removable storage device, and the first recording video is the recording video stored in the removable storage device in at least one cycle erasing period, and the at least one cycle erasing period is a period containing the first trigger time point; In response to the cycle recording state being that the cycle recording function is not in the working state, the second recording video stored in the virtual memory is called, wherein the second recording video is the recording video stored by performing the cycle erasing operation in the virtual memory, and the second recording video is the recording video stored in the virtual memory in a preset time period before the first trigger time point.
4. The emergency video recording method of a vehicle according to claim 3, characterized by, The recording video is edited based on the first trigger time point to obtain the emergency recording video of the vehicle, comprising the following steps: In response to the cycle recording state being that the cycle recording function is in the working state, the first recording video is intercepted to obtain the emergency recording video; In response to the cycle recording state being that the cycle recording function is not in the working state, a first preset time period of driving video is recorded starting from the first trigger time point to obtain a first driving recording video, the first recording video and the first driving recording video are spliced to obtain the emergency recording video.
5. The emergency recording method of a vehicle according to claim 4, characterized by, The first recording video is intercepted to obtain the emergency recording video, comprising the following steps: determine a first time point and a second time point based on the first trigger time point and a second preset time length, wherein the first time point is a time point before the first trigger time point and spaced from the first trigger time point by the second preset time length, and the second time point is a time point after the first trigger time point and spaced from the first trigger time point by the second preset time length; capture the first video recording based on the first trigger time point, the first time point and the second time point to obtain the emergency video recording.
6. The emergency video recording method of a vehicle according to claim 5, wherein capture the first video recording based on the first trigger time point, the first time point and the second time point to obtain the emergency video recording, including: capture a video between the first trigger time point and the first time point in the first video recording to obtain a first emergency video recording; capture a video between the first trigger time point and the second time point in the first video recording to obtain a second emergency video recording; splice the first emergency video recording and the second emergency video recording to obtain the emergency video recording.
7. The emergency recording method of a vehicle according to claim 6, wherein splice the first emergency video recording and the second emergency video recording to obtain the emergency video recording, including: in response to the vehicle triggering the emergency video recording function between the first trigger time point and the second time point, acquire a second trigger time point of the emergency video recording function; determine a third time point based on the second trigger time point and the second preset time length, wherein an interval time length between the third time point and the first time point is less than a third preset time length; capture a video between the second trigger time point and the third time point in the first video recording to obtain a third emergency video recording; splice the first emergency video recording, the second emergency video recording and the third emergency video recording to obtain the emergency video recording.
8. The emergency recording method of a vehicle according to claim 1, characterized by, The method further includes: in response to the vehicle receiving a preset signal, determine that the vehicle triggers the emergency video recording function, wherein the preset signal includes at least one of the following: an emergency braking signal, a collision warning signal, an airbag detonation signal, and an emergency video recording function interaction signal.
9. The emergency recording method of a vehicle according to claim 1, characterized by, in response to the vehicle triggering the emergency video recording function, the method further includes: display prompt information in an interaction interface of the vehicle, wherein the prompt information is used to prompt a recording state of the driving video.
10. The emergency recording method of a vehicle according to claim 9, wherein The method further includes: in response to a touch operation acting on the interaction interface, display a cycle video recording page and an emergency video recording page in the interaction interface, wherein the cycle video recording page is used to display the video recording, and the emergency video recording page is used to display the emergency video recording and marked information of the emergency video recording, and the marked information is used to record a triggering event of the emergency video recording.
Citation Information
Patent Citations
Drive recorder
CN101739739A
Emergency photographing method and system for car driving recorder
CN108495071A