Video editing method, device, equipment, medium and computer program product
Through the vehicle central control host or sports camera, the wonderful events in the vehicle driving status data are automatically identified and edited, and the problems of low video editing efficiency and poor user experience in the vehicle are solved, efficient and stable video editing and continuous power supply are achieved, and the User experience.
Patent Information
- Application Number
- CN202411133129.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-19
AI Technical Summary
In the prior art, it takes a lot of time and labor costs to edit exciting video clips by the sports camera installed in the vehicle, and it is not reliable in installation, insufficient battery life and power supply, and it is unable to utilize the storage space of the on-board central control host, resulting in poor user experience.
The vehicle's central control host or sports camera automatically recognizes exciting events based on driving status data, determines time parameters and edits video clips, solving the problems of unreliable installation, insufficient battery life and small storage capacity, and realizing automatic editing and continuous power supply.
Improve video editing efficiency, save users' time and cost, reduce operation steps, improve user experience, and ensure the integrity and quality of video clips.
Smart Images

Figure CN118660190B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of video processing technology, and in particular to a video editing method, device, equipment, medium and computer program product. Background Art
[0002] When a vehicle is driving, exciting events (such as drifting, skidding, etc.) may occur. Editing the exciting video clips related to the exciting events shot during the driving of the vehicle can highlight and strengthen the wonderful moments in the driving of the vehicle, giving the audience a shocking and exciting visual experience.
[0003] In the related art, a user uses a mobile phone APP (Application) that comes with a sports camera installed in a vehicle to download a long video file shot by the sports camera, and plays the long video file to edit wonderful video clips.
[0004] This video editing method requires a lot of time and labor costs. Summary of the invention
[0005] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.
[0006] One aspect of the present disclosure proposes a video editing method, apparatus, device, medium and computer program product to improve the editing efficiency of wonderful video clips, save users' time costs, reduce users' operation steps, and improve users' experience.
[0007] The first embodiment of the present disclosure provides a video editing method, including:
[0008] Obtaining vehicle driving status data;
[0009] When the driving state data satisfies an event triggering condition associated with a target event among the multiple candidate events, determining that the target event occurs to the vehicle;
[0010] Determine a first time parameter of the target event according to the driving state data; wherein the first time parameter includes a start time and / or an end time of the target event;
[0011] Based on the first time parameter, a first video clip matching the target event is acquired and stored; wherein the first video clip is obtained by editing video data captured by a motion camera installed in the vehicle based on the first time parameter.
[0012] A second aspect of the present disclosure provides a video editing device, including:
[0013] An acquisition module, used to acquire the driving status data of the vehicle;
[0014] A first determination module, configured to determine that a target event occurs to the vehicle when the driving state data satisfies an event triggering condition associated with a target event among multiple candidate events;
[0015] A second determination module, configured to determine a first time parameter of the target event according to the driving state data; wherein the first time parameter includes a start time and / or an end time of the target event;
[0016] The first processing module is used to obtain and store a first video clip matching the target event based on the first time parameter; wherein the first video clip is obtained by editing the video data shot by the motion camera installed in the vehicle based on the first time parameter.
[0017] The third aspect of the present disclosure provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the video editing method provided in the first aspect of the present disclosure is implemented.
[0018] The fourth aspect of the present disclosure provides a non-temporary computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the video editing method provided in the first aspect of the present disclosure.
[0019] The fifth aspect of the present disclosure provides a computer program product. When instructions in the computer program product are executed by a processor, the video editing method provided in the first aspect of the present disclosure is performed.
[0020] The technical solutions provided by the above embodiments of the present disclosure bring at least the following beneficial effects:
[0021] The vehicle's central control host or the motion camera installed in the vehicle can automatically identify whether a wonderful event occurs in the vehicle based on the vehicle's driving status data, and when a wonderful event occurs in the vehicle, determine the time parameters associated with the wonderful event. Based on the time parameters, the video data taken by the motion camera is automatically edited to obtain video clips matching the wonderful event. There is no need for users to watch video data to identify wonderful events and manually edit video clips of wonderful events. This can improve the editing efficiency of wonderful video clips, save users' time costs, reduce users' operating steps, and improve users' usage experience.
[0022] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0024] Figure 1 A schematic diagram of a flow chart of a video editing method provided by an embodiment of the present disclosure;
[0025] Figure 2 A flowchart of another video editing method provided by an embodiment of the present disclosure;
[0026] Figure 3 The video editing principle provided by the embodiment of the present disclosure is shown in FIG. Figure 1 ;
[0027] Figure 4 The video editing principle provided by the embodiment of the present disclosure is shown in FIG. Figure 2 ;
[0028] Figure 5 A flowchart of another video editing method provided by an embodiment of the present disclosure;
[0029] Figure 6 The video editing principle provided by the embodiment of the present disclosure is shown in FIG. Figure 3 ;
[0030] Figure 7 A flowchart of another video editing method provided by an embodiment of the present disclosure;
[0031] Figure 8 The video editing principle provided by the embodiment of the present disclosure is shown in FIG. Figure 4 ;
[0032] Fig. 9 A flowchart of another video editing method provided by an embodiment of the present disclosure;
[0033] Fig.10 A schematic diagram of the structure of a system for generating short videos by editing a vehicle provided in an embodiment of the present disclosure;
[0034] Fig.11 A schematic diagram of the structure of a video editing device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0036] At present, the intelligent networking of the vehicle industry, including passenger cars and all-terrain vehicles, does not involve the pre-installation of action cameras, nor the data interaction between the video and the vehicle-mounted central control host. At present, action cameras are only sold directly to ordinary users as consumer electronic products, and then installed by users on bicycles, electric vehicles, and motorcycles, but never pre-installed on cars.
[0037] Since the action camera is an aftermarket product, users need to find a fixed installation location for the action camera on the car after purchasing it, which may result in an unstable installation. Ordinary users can only use the built-in battery of the action camera for power supply, and cannot use the car's power supply for continuous power supply. Ordinary users can only use the memory card that comes with the action camera to store the video data taken by the action camera, and cannot use the large-capacity erasable storage space of the on-board central control host. Ordinary users can only use the mobile phone APP that comes with the action camera to download long video files, and then spend a lot of time playing the long video files to edit wonderful video clips. Ordinary users cannot obtain CAN (Controller Area Network) data of the vehicle operation in the video clips recorded by them.
[0038] In response to at least one of the above problems, the present disclosure provides a video editing method, apparatus, device, medium and computer program product.
[0039] The video editing method, apparatus, device, medium, and computer program product according to embodiments of the present disclosure are described below with reference to the accompanying drawings.
[0040] Figure 1 A flowchart of a video editing method provided by an embodiment of the present disclosure is provided.
[0041] The execution subject of the embodiment of the present disclosure may be a central control host of the vehicle, or a sports camera installed in the vehicle.
[0042] like Figure 1 As shown, the video editing method includes the following steps S101 to S104:
[0043] Step S101, obtaining the driving status data of the vehicle.
[0044] Among them, the driving status data includes but is not limited to: at least one of the "vehicle lift-off" signal and the "vehicle landing" signal broadcast by the vehicle's electronic suspension system; at least one of the "steering wheel angular velocity" signal and the "steering wheel angle" signal broadcast by the vehicle body electronic stability system (such as ESP (Electronic Stability Program)); at least one of the "accelerator pedal opening" signal, "brake pedal opening" signal and "instantaneous power" signal broadcast by the vehicle controller (such as VCU (Vehicle Control Unit)); vehicle attitude data monitored by the vehicle's inertial sensor (such as the 6-axis gyroscope built into the central control host); wherein the vehicle attitude data includes the vehicle pitch angle, vehicle tilt angle status, etc.
[0045] In the disclosed embodiment, the execution entity can communicate with the CAN bus of the entire vehicle to obtain the driving status data of the vehicle.
[0046] Step S102: When the driving state data satisfies an event triggering condition associated with a target event among multiple candidate events, it is determined that a target event occurs in the vehicle.
[0047] The candidate events include, but are not limited to, flying events (or soaring events), drifting events, tail swing events and other exciting events.
[0048] Each candidate event has an associated event triggering condition, and the event triggering conditions associated with different candidate events may be different. The event triggering condition associated with each candidate event is pre-configured for the candidate event.
[0049] As a possible implementation method, the event trigger conditions include but are not limited to at least one of the following: the vehicle state indicated by the vehicle lift-off signal switches or changes from the landing state to the lift-off state; the vehicle state indicated by the vehicle landing signal switches or changes from the lift-off state to the landing state; the steering wheel angular velocity indicated by the steering wheel angular velocity signal is greater than the set angular velocity; the steering wheel angle indicated by the steering wheel angle signal is greater than the set angle; the accelerator pedal opening indicated by the accelerator pedal opening signal is greater than the first set opening; the brake pedal opening indicated by the brake pedal opening signal is greater than the second set opening; the vehicle instantaneous power indicated by the instantaneous power signal is greater than the set power; the vehicle pitch angle in the vehicle posture data is greater than the set pitch angle; the vehicle tilt angle in the vehicle posture data is greater than the set tilt angle.
[0050] Among them, the set angular velocity refers to a preset angular velocity threshold, and for example, the set angular velocity may be 60° / s (60° per second); the set angle refers to a preset angular threshold, and for example, the set angle may be 600°; the first set opening refers to a preset opening threshold, and for example, the first set opening may be 98%; the second set opening is also a preset opening threshold, and it should be noted that the present disclosure does not limit the size relationship between the first set opening and the second set opening, that is, the first set opening may be equal to the second set opening, or the first set opening may not be equal to the second set opening, and for example, the second set opening may also be 98%; the set power refers to a preset instantaneous power threshold, and for example, the set power may be 2000W (watts, abbreviated as watts); the set pitch angle refers to a preset pitch angle threshold, and for example, the set pitch angle may be 30°; the set tilt angle refers to a preset tilt angle threshold, and for example, the set tilt angle may be 30°.
[0051] In the disclosed embodiment, it is possible to determine whether the driving status data satisfies the event triggering conditions associated with a variety of candidate events. If the driving status data satisfies the event triggering conditions associated with a target event among the multiple candidate events, it indicates that an exciting target event has occurred in the vehicle. At this time, subsequent steps can be executed to perform video editing.
[0052] If the driving status data do not meet the event triggering conditions associated with the multiple candidate events, it means that no exciting event has occurred in the vehicle. At this time, there is no need to perform subsequent steps for video editing.
[0053] Step S103, determining a first time parameter of the target event according to the driving status data; wherein the first time parameter includes a start time and / or an end time of the target event.
[0054] In the disclosed embodiment, the first time parameter of the target event can be determined based on the driving status data of the vehicle (the driving status data carries timestamp information), wherein the first time parameter includes the starting time and / or ending time of the target event occurring in the vehicle.
[0055] For example, taking the target event as a take-off event, the start time refers to the time when the vehicle leaves the ground, and the end time refers to the time when the vehicle lands.
[0056] Step S104, based on the first time parameter, obtaining and storing a first video clip matching the target event; wherein the first video clip is obtained by editing the video data shot by the motion camera installed in the vehicle based on the first time parameter.
[0057] In an embodiment of the present disclosure, a video clip (referred to as a first video clip in the present disclosure) matching the target event can be obtained based on a first time parameter, and the first video clip can be stored locally; wherein the first video clip is obtained by editing video data captured by a motion camera installed in the vehicle based on the first time parameter.
[0058] As an example, take the example that the first time parameter only includes the start time of the target event, and the first video clip includes video data shot by the motion camera within a period of time before and after the start time.
[0059] As another example, take the example that the first time parameter only includes the termination time of the target event, and the first video clip includes video data captured by the motion camera within a period of time before and after the termination time.
[0060] As another example, the first time parameter includes both the start time and the end time of the target event, and the first video clip includes video data shot by the motion camera during a period of time between the start time and the end time. Alternatively, the first video clip includes video data shot by the motion camera during a period of time between the start time and the end time, video data shot by the motion camera during a period of time before the start time, and video data shot by the motion camera during a period of time after the end time.
[0061] It should be noted that in the prior art, action cameras are only sold directly to ordinary users as consumer electronic products, and then installed by the users on bicycles, electric vehicles, and motorcycles, but never pre-installed on cars. In addition, since action cameras are post-installed products, users need to find a fixed installation position for the action cameras on the car after purchasing them, which may result in the action cameras being unsecured.
[0062] In view of the above problems, in any embodiment of the present disclosure, the action camera can be installed in the first card slot, wherein the first card slot is arranged in the area where the metal pillar (such as the A-pillar) of the vehicle is located, and the metal pillar is used to connect the front windshield and the front door of the vehicle; and / or, the auxiliary shooting component (such as a selfie stick) connected to the action camera is installed in the second card slot, and the second card slot is arranged on the roof of the vehicle. In this way, the problem that there is no completely matching fixing structure when ordinary users purchase action cameras and install them in vehicles can be solved, and the action camera can be prevented from falling due to the unreliable fixing, thereby damaging the action camera.
[0063] It should also be noted that in the prior art, ordinary users can only use the built-in battery of the action camera for power supply, and cannot use the vehicle's power supply for continuous power supply; and ordinary users can only use the memory card of the action camera to store the captured video data, and cannot use the large-capacity erasable storage space of the vehicle's central control host.
[0064] In response to the above problems, in any one of the embodiments of the present disclosure, a first data line may be provided at the first card slot, wherein the first data line is used to power or charge the sports camera, and / or the first data line is used for the sports camera to transmit the captured video data to the vehicle's central control host for storage; and / or a second data line may be provided at the second card slot, wherein the second data line is used to power or charge the sports camera, and / or the second data line is used for the sports camera to transmit the captured video data to the vehicle's central control host for storage. In this way, the problem that sports cameras purchased by ordinary users cannot be continuously powered and can only use the built-in battery of the sports camera can be solved, and continuous power supply for the sports camera can be achieved. In addition, the problem that the memory card capacity of the sports camera purchased by ordinary users is small can be solved, and the situation where the sports camera stops recording video after the storage capacity is full can be avoided.
[0065] The video editing method of the disclosed embodiment can realize that the central control host of the vehicle or the motion camera installed in the vehicle can automatically identify whether a wonderful event occurs in the vehicle based on the vehicle's driving status data, and when a wonderful event occurs in the vehicle, determine the time parameter associated with the wonderful event, and automatically edit the video data shot by the motion camera based on the time parameter to obtain a video clip matching the wonderful event. There is no need for the user to watch the video data to identify the wonderful event and manually edit the video clip of the wonderful event. This can improve the editing efficiency of the wonderful video clips, save the user's time cost, reduce the user's operation steps, and improve the user's usage experience.
[0066] The present disclosure also provides a video editing method. Figure 2 The flowchart of another video editing method provided by the embodiment of the present disclosure is shown in FIG. The video editing method can be executed by the central control host of the vehicle.
[0067] It should be noted that the video editing method can be executed alone, or it can be executed in combination with any embodiment of the present disclosure or a possible implementation method in the embodiment, or it can be executed in combination with any technical solution in the related technology, and the embodiments of the present disclosure are not limited to this.
[0068] like Figure 2 As shown, the video editing method includes the following steps S201 to S207:
[0069] Step S201, obtaining the driving status data of the vehicle.
[0070] Step S202: When the driving state data satisfies an event triggering condition associated with a target event among multiple candidate events, it is determined that a target event occurs in the vehicle.
[0071] Step S203: determining a first time parameter of the target event according to the driving status data.
[0072] The first time parameter includes the start time and / or the end time of the target event.
[0073] For explanations of steps S201 to S203 , reference may be made to the relevant descriptions in any embodiment of the present disclosure and will not be repeated here.
[0074] Step S204: marking the video data sent by the motion camera based on the first time parameter and the driving status data.
[0075] Among them, the motion camera can transmit the captured video data in real time to the central control host for storage; or, the motion camera can also segment the captured video data according to the set duration, store the segmented video data locally, and send the segmented video data to the central control host for storage.
[0076] The set duration is a pre-configured duration threshold, for example, the set duration may be 3 minutes.
[0077] In the disclosed embodiment, the central control host may determine key data associated with the target event from the driving status data based on the first time parameter, and mark the video data sent by the motion camera based on the key data.
[0078] For example, taking the target event as a take-off event, the vehicle's height above the ground can be determined from the driving status data based on the first time parameter, and the video data sent by the motion camera can be marked based on the height above the ground, so that the user can intuitively know how many meters the vehicle is above the ground based on the height above the ground marked in the video data.
[0079] In the embodiment of the present disclosure, the central control host can also mark the time point of the video data sent by the motion camera based on the start time and / or end time in the first time parameter, so that the user can intuitively know the start time, end time and duration of the target event based on the marked time points in the video data.
[0080] Step S205, querying a first clipping duration and a second clipping duration associated with the target event; wherein the first clipping duration is used to clip the video segment before the target event occurs, and the second clipping duration is used to clip the video segment after the target event occurs.
[0081] The first clip duration and the second clip duration are both preset clip durations, and the disclosure does not limit the size relationship between the first clip duration and the second clip duration, that is, the first clip duration may be greater than the second clip duration, or the first clip duration may be less than the second clip duration, or the first clip duration may be equal to the second clip duration. For example, the first clip duration may be 3 seconds, and the second clip duration may be 7 seconds.
[0082] Step S206: clip the marked video data according to the first time parameter, the first clipping duration, and the second clipping duration to obtain a first video segment.
[0083] In the disclosed embodiment, the central control host may edit the marked video data according to the first time parameter, the first editing duration, and the second editing duration to obtain a first video clip associated with the target event.
[0084] As an example, taking the example that the first time parameter only includes the starting moment, the first video clip may include: video data shot by the motion camera in a first time period before the starting moment, and video data shot by the motion camera in a second time period after the starting moment; wherein, the duration of the first time period is consistent with the duration of the first clip, and the duration of the second time period is consistent with the duration of the second clip.
[0085] As another example, taking the example that the first time parameter only includes the termination moment, the first video clip may include: video data shot by the motion camera in a third time period before the termination moment, and video data shot by the motion camera in a fourth time period after the termination moment; wherein the duration of the third time period is consistent with the duration of the first clip, and the duration of the fourth time period is consistent with the duration of the second clip.
[0086] As another example, taking the example that the first time parameter includes both the start occurrence time and the end occurrence time, the first video clip may include: video data shot by the motion camera in a first time period before the start occurrence time, video data shot by the motion camera in a time period between the start occurrence time and the end occurrence time, and video data shot by the motion camera in a fourth time period after the end occurrence time.
[0087] Step S207: store the first video clip.
[0088] In the embodiment of the present disclosure, the first video clip may be stored in an internal storage space of the central control host (eg, a large-capacity erasable storage space).
[0089] In any embodiment of the present disclosure, after obtaining the first video clip, the central control host may further process the first video clip and transmit the processed video clip to the mobile terminal, so that the user on the mobile terminal side can display, edit, share or upload the video clip. As an example, after obtaining the first video clip, the central control host may further perform the following steps:
[0090] 1) From multiple candidate animation models, determine the target animation model that is compatible with the event type of the target event.
[0091] The candidate motion effect model is a pre-configured motion effect model used to add motion effects to the video. Each candidate motion effect model is associated with or adapted to an event type (such as flying, drifting, and other event types).
[0092] 2) Based on video feature extraction technology, key features are extracted from the first video clip.
[0093] Among them, key features include but are not limited to scene change features, character action features, specific objects or signs and other features.
[0094] 3) Based on the target motion effect model and key features, the first video clip is processed with motion effects to obtain a second video clip.
[0095] As an example, the target motion effect model can be fused with the first video clip to ensure that the motion effect is closely integrated with the video content without causing any abruptness. Afterwards, the start time, end time and position of the motion effect in the first video clip can be adjusted to match the key features of the first video clip.
[0096] 4) Sending the second video clip to a mobile terminal bound to the vehicle; wherein the second video clip is used by the mobile terminal to perform at least one of the following operations: displaying the second video clip; editing the second video clip; sharing the second video clip or the edited second video clip to a social platform.
[0097] In summary, based on the target motion effect model adapted to the event type of the target event and the key features of the first video clip, the edited first video clip is animated to enhance the visual effect of the video processing. Moreover, the processed video clip is shared to a mobile terminal bound to the vehicle, so that users can browse, edit or share the video clip in time, thereby improving the user experience.
[0098] The video editing method of the disclosed embodiment can enable the central control host to integrate key data associated with the target event in the vehicle's driving status data into the video data captured by the motion camera, thereby improving the content richness of the edited video clips.
[0099] Below in conjunction with embodiment A and embodiment B, Figure 2 The video editing principle of the central control host shown is explained in detail.
[0100] Embodiment A: When a sports camera installed in front of a vehicle is shooting a video, the original video data is directly transmitted to the vehicle central control host in real time through a data cable (such as a data transmission cable using a USB (Universal Serial Bus) Type-C interface) for storage. The central control host is responsible for editing and storing wonderful video clips to ensure that the wonderful video clips are not overwritten. Figure 3 As shown, embodiment A mainly includes the following steps:
[0101] Step 1: Power on the vehicle.
[0102] Step 2: The action camera installed in the vehicle starts and records the video.
[0103] Step 3: The sports camera transmits the recorded original video data to the central control host in real time.
[0104] Step 4: The central control host receives and stores the original video data.
[0105] Step 5: The central control host monitors the vehicle CAN bus and status signal to obtain the vehicle's driving status data. If the driving status data triggers the event triggering condition of the wonderful event, it is determined that the vehicle has a wonderful event. At this time, step 7 and subsequent steps can be executed. Alternatively, step 6: If the user triggers the physical button of the vehicle, it is determined that the vehicle has a wonderful event (the subsequent embodiments will explain this method in detail). At this time, step 7 and subsequent steps can be executed.
[0106] Step 7: The central control host marks the original video data. For example, the original video data is marked with time points based on the start time and / or end time of the wonderful event, or the original video data is marked based on key data associated with the wonderful event in the driving status data. For example, assuming that the wonderful event is a flying event, the vehicle's height from the ground, the length of time off the ground, etc. can be marked.
[0107] Step 8: The central control host edits the marked original video data to obtain wonderful video clips and stores them.
[0108] Step 9: The central control host performs motion effect processing on the video clip according to the motion effect model to obtain a wonderful video clip (hereinafter referred to as a short video).
[0109] Step 10: The central control host transmits the wonderful short video to the mobile terminal.
[0110] Step 11: The user on the mobile terminal side edits the wonderful short video again.
[0111] Step 12: The user on the mobile terminal side shares the wonderful short video to the social platform.
[0112] Embodiment B: The sports camera installed in front of the vehicle first stores the original video data in segments according to a fixed short period (such as 3 minutes) in the local sports camera. After the storage is completed, while the video is continuously shot, the segmented original video clips are transmitted to the central control host through a data cable (such as a data transmission cable using a USB Type-C interface) for storage. The central control host is then responsible for editing and storing the wonderful video clips to ensure that the wonderful video clips are not overwritten. Figure 4 As shown, embodiment B mainly includes the following steps:
[0113] Step 1': Power on the vehicle.
[0114] Step 2': The action camera installed in the vehicle starts and records the video.
[0115] Step 3': The motion camera stores the recorded original video data in segments.
[0116] Step 4': The action camera records the video while transmitting the segmented original video clips to the central control host.
[0117] Step 5': The central control host receives and stores the original video clip.
[0118] Step 6': The central control host monitors the vehicle CAN bus and status signal to obtain the vehicle's driving status data. If the driving status data triggers the event triggering condition of the wonderful event, it is determined that the vehicle has a wonderful event. At this time, step 8' and subsequent steps can be executed. Alternatively, step 7': If the user triggers the physical button of the vehicle, it is determined that the vehicle has a wonderful event (the subsequent embodiments will explain this method in detail). At this time, step 8' and subsequent steps can be executed.
[0119] Step 8': The central control host marks the stored original video data (or original video clip).
[0120] Step 9': The central control host edits the marked original video data to obtain wonderful video clips and stores them.
[0121] Step 10': the central control host performs motion effect processing on the above video clips according to the motion effect model to obtain wonderful video clips (hereinafter referred to as short videos).
[0122] Step 11': The central control host transmits the wonderful short video to the mobile terminal.
[0123] Step 12': The user on the mobile terminal side edits the wonderful short video again.
[0124] Step 13': The user on the mobile terminal side shares the wonderful short video to the social platform.
[0125] The present disclosure also provides a video editing method. Figure 5 The flowchart of another video editing method provided by the embodiment of the present disclosure is shown in FIG. The video editing method can be executed by the central control host of the vehicle.
[0126] It should be noted that the video editing method can be executed alone, or it can be executed in combination with any embodiment of the present disclosure or a possible implementation method in the embodiment, or it can be executed in combination with any technical solution in the related technology, and the embodiments of the present disclosure are not limited to this.
[0127] like Figure 5 As shown, the video editing method includes the following steps S501 to S506:
[0128] Step S501, obtaining the driving status data of the vehicle.
[0129] Step S502: When the driving state data satisfies an event triggering condition associated with a target event among multiple candidate events, it is determined that a target event occurs in the vehicle.
[0130] Step S503: determining a first time parameter of the target event according to the driving status data.
[0131] The first time parameter includes the start time and / or the end time of the target event.
[0132] For explanations of steps S501 to S503, reference may be made to the relevant descriptions in any embodiment of the present disclosure, and will not be repeated here.
[0133] Step S504: sending a video editing instruction carrying the first time parameter to the motion camera.
[0134] Among them, the original video data captured by the sports camera is only stored locally in the sports camera instead of being transmitted to the central control host for storage.
[0135] In the disclosed embodiment, the central control host may send a video editing instruction carrying the first time parameter to the motion camera.
[0136] Step S505, receiving a first video clip sent by a motion camera; wherein the first video clip is obtained by the motion camera responding to a video clipping instruction, querying a first clipping duration and a second clipping duration associated with a target event, and clipping the video data shot and stored by the motion camera according to the first time parameter, the first clipping duration, and the second clipping duration.
[0137] The first editing duration is used to edit the video clip before the target event occurs, and the second editing duration is used to edit the video clip after the target event occurs.
[0138] In the embodiment of the present disclosure, after receiving the video clipping instruction, the motion camera can respond to the video clipping instruction, query the first clipping duration and the second clipping duration associated with the target event, and clip the video data shot and stored by the motion camera according to the first time parameter, the first clipping duration and the second clipping duration to obtain the first video segment. The implementation principle is similar to steps S205 to S206, which will not be described in detail here.
[0139] After editing the first video clip, the motion camera may send the first video clip to the central control host. Correspondingly, the central control host may receive the first video clip sent by the motion camera.
[0140] Step S506: store the first video clip.
[0141] In the embodiment of the present disclosure, the first video clip may be stored in an internal storage space of the central control host (eg, a large-capacity erasable storage space).
[0142] The video editing method of the disclosed embodiment can realize video editing not only by the central control host, but also by the motion camera, which can improve the flexibility and applicability of the method.
[0143] Below in conjunction with Example C, Figure 5 The video editing principle of the central control host shown is explained in detail.
[0144] Embodiment C: The original video data shot by the sports camera installed in front of the vehicle is stored locally in the sports camera. When the central control host sends a video editing instruction to the sports camera, the sports camera responds to the video editing instruction, edits wonderful video clips from the original video data, and stores them locally in the sports camera to ensure that the wonderful video clips are not overwritten. While continuously shooting the video, the sports camera transmits the edited and stored wonderful video clips to the central control host via a data cable (such as a data transmission cable using a USB Type-C interface) for storage. Figure 6 As shown, Example C mainly includes the following steps:
[0145] Step a: Power on the vehicle.
[0146] Step b: The action camera installed in the vehicle starts and records the video.
[0147] Step c: The sports camera stores the recorded original video data locally.
[0148] Step d: The central control host monitors the vehicle CAN bus and status signal to obtain the vehicle's driving status data. If the driving status data triggers the event triggering condition of the wonderful event, it is determined that the vehicle has a wonderful event. At this time, step f and subsequent steps can be executed. Alternatively, step e: If the user triggers the physical button of the vehicle, it is determined that the vehicle has a wonderful event (the subsequent embodiments will explain this method in detail). At this time, step f and subsequent steps can be executed.
[0149] Step f: The central control host sends a video editing instruction to the sports camera.
[0150] Step g: The motion camera marks the original video data captured.
[0151] Step h: The motion camera edits the marked original video data to obtain wonderful video clips.
[0152] Step i: The action camera records the video and transmits the edited video clips to the central control host.
[0153] Step j: The central control host receives and stores the edited video clips.
[0154] Step k: The central control host performs motion effect processing on the video clip according to the motion effect model to obtain a wonderful video clip (hereinafter referred to as a short video).
[0155] Step 1: The central control host transmits the wonderful short video to the mobile terminal.
[0156] Step m: The user on the mobile terminal side edits the wonderful short video again.
[0157] Step n: The user on the mobile terminal side shares the wonderful short video to the social platform.
[0158] The present disclosure also provides a video editing method, Figure 7 A schematic flow chart of another video editing method provided by an embodiment of the present disclosure. The video editing method can be executed by a sports camera installed in a vehicle, wherein the sports camera stores the captured video data locally.
[0159] It should be noted that the video editing method can be executed alone, or it can be executed in combination with any embodiment of the present disclosure or a possible implementation method in the embodiment, or it can be executed in combination with any technical solution in the related technology, and the embodiments of the present disclosure are not limited to this.
[0160] like Figure 7 As shown, the video editing method includes the following steps S701 to S707:
[0161] Step S701, obtaining the driving status data of the vehicle.
[0162] Step S702: When the driving state data satisfies an event triggering condition associated with a target event among multiple candidate events, it is determined that a target event occurs in the vehicle.
[0163] Step S703: determining a first time parameter of the target event according to the driving status data.
[0164] The first time parameter includes the start time and / or the end time of the target event.
[0165] For explanations of steps S701 to S703, reference may be made to the relevant descriptions in any embodiment of the present disclosure, and will not be repeated here.
[0166] Step S704: marking the video data captured and stored by the motion camera based on the first time parameter and the driving state data.
[0167] Among them, the original video data captured by the sports camera is only stored locally in the sports camera instead of being transmitted to the central control host for storage.
[0168] In the embodiment of the present disclosure, the motion camera can mark the captured and stored video data based on the first time parameter and the driving state data. The implementation principle is similar to step S204 and will not be described in detail here.
[0169] Step S705 , querying the first clipping duration and the second clipping duration associated with the target event.
[0170] The first editing duration is used to edit the video clip before the target event occurs, and the second editing duration is used to edit the video clip after the target event occurs.
[0171] It should be noted that the implementation principle of step S705 is similar to that of step S205, which will not be described in detail here.
[0172] Step S706: clip the marked video data according to the first time parameter, the first clipping duration, and the second clipping duration to obtain a first video segment.
[0173] It should be noted that the implementation principle of step S706 is similar to that of step S206, which will not be elaborated here.
[0174] Step S707: store the first video clip.
[0175] In the embodiment of the present disclosure, the motion camera may store the first video clip locally.
[0176] Furthermore, the motion camera can also send the first video clip to the central control host of the vehicle for storage, so that the central control host can perform the following operations: determine the target motion effect model that is adapted to the event type of the target event from a plurality of candidate motion effect models; extract key features from the first video clip; perform motion effect processing on the first video clip based on the target motion effect model and the key features to obtain a second video clip; send the second video clip to a mobile terminal bound to the vehicle; wherein the second video clip is used for the mobile terminal to perform at least one of the following operations: display the second video clip; edit the second video clip; share the second video clip or the edited second video clip to a social platform. The implementation principle can be found in the relevant description in the above embodiment, which will not be elaborated here.
[0177] The video editing method of the disclosed embodiment can realize communication between the motion camera and the CAN bus of the whole vehicle to obtain the driving status data of the vehicle, and automatically edit the first video clip associated with the target event based on the driving status data, without the need for the motion camera to interact with the central control host (such as sending video editing instructions) to edit the first video clip, which can improve the timeliness of video editing.
[0178] In conjunction with Example D, Figure 7 The video editing principle of the action camera shown is explained in detail.
[0179] Embodiment D: The original video data shot by the sports camera installed in front of the vehicle is stored locally. The sports camera automatically marks and edits the wonderful video clips and stores them locally to ensure that the wonderful video clips are not overwritten. While continuously shooting videos, the sports camera transmits the edited and stored wonderful video clips to the central control host via a data cable (such as a data transmission cable using a USB Type-C interface) for storage. Figure 8 As shown, embodiment D mainly includes the following steps:
[0180] Step a': Power on the vehicle.
[0181] Step b': The motion camera installed in the vehicle starts and records the video.
[0182] Step c': The motion camera stores the recorded original video data locally.
[0183] Step d': The central control host monitors the vehicle CAN bus and status signal to obtain the vehicle's driving status data. If the driving status data triggers the event triggering condition of the wonderful event, it is determined that the vehicle has a wonderful event. At this time, step f' and subsequent steps can be executed. Alternatively, step e': If the user triggers the physical button of the vehicle, it is determined that the vehicle has a wonderful event (the subsequent embodiments will explain this method in detail). At this time, step f' and subsequent steps can be executed.
[0184] Step f': The motion camera marks the original video data.
[0185] Step g': the motion camera edits the marked original video data to obtain wonderful video clips.
[0186] Step h': the sports camera records the video and transmits the edited video clips to the central control host.
[0187] Step i': The central control host receives and stores the edited video clips.
[0188] Step j': the central control host performs motion effect processing on the video clip according to the motion effect model to obtain a wonderful video clip (hereinafter referred to as a short video).
[0189] Step k': The central control host transmits the wonderful short video to the mobile terminal.
[0190] Step 1': The user on the mobile terminal side edits the wonderful short video again.
[0191] Step m': The user on the mobile terminal side shares the wonderful short video to the social platform.
[0192] In the above embodiments, the central control host or the sports camera automatically detects whether a wonderful event has occurred in the vehicle based on the vehicle's driving status data. In the present disclosure, the user can also manually trigger the vehicle's setting control (such as a physical button) to inform the central control host or the sports camera that a wonderful event has occurred or is about to occur in the vehicle, so that the central control host or the sports camera can edit the wonderful video clips in time. Fig. 9 , the above process is explained in detail.
[0193] Fig. 9 This is a flow chart of another video editing method provided by an embodiment of the present disclosure. The video editing method can be executed by a central control host of a vehicle, or by a sports camera installed in the vehicle.
[0194] It should be noted that the video editing method can be executed alone, or it can be executed in combination with any embodiment of the present disclosure or a possible implementation method in the embodiment, or it can be executed in combination with any technical solution in the related technology, and the embodiments of the present disclosure are not limited to this.
[0195] like Fig. 9 As shown, the video editing method includes the following steps S901 to S904:
[0196] Step S901 , in response to monitoring a triggering operation on a setting control of the vehicle, determining that a candidate event occurs in the vehicle.
[0197] In the disclosed embodiment, when any one of the exciting candidate events has occurred or is about to occur in the vehicle, the user can manually trigger the setting control of the vehicle. Correspondingly, when it is monitored that the user has triggered the trigger operation of the setting control for the vehicle, it can be determined that an exciting candidate event has occurred in the vehicle.
[0198] Step S902, determining a second time parameter of a candidate event occurring in the vehicle according to the triggering time of the triggering operation; wherein the second time parameter includes a starting time and / or an ending time of the candidate event occurring in the vehicle.
[0199] As an example, when the vehicle starts to experience a candidate event, the user can click the setting control to indicate the start time of the candidate event. When the candidate event ends, the user can click the setting control again to indicate the end time of the candidate event.
[0200] Step S903, obtaining a third video frequency band matching the candidate event according to the second time parameter; wherein the third video segment is obtained by editing the video data captured by the motion camera in the vehicle based on the second time parameter.
[0201] In the embodiment of the present disclosure, a video segment matching the candidate event occurring in the vehicle (referred to as the third video frequency band in the present disclosure) can be obtained according to the second time parameter. It should be noted that the method for obtaining the third video segment is similar to the method for obtaining the first video segment, and will not be described in detail here.
[0202] Step S904: store the third video clip.
[0203] In any one of the embodiments of the present disclosure, the central control host can also determine a motion effect model that is adapted to the event type of the candidate event occurring in the vehicle from a plurality of candidate motion effect models, extract key features from the third video clip, perform motion effect processing on the third video clip based on the adapted motion effect model and key features, obtain a fourth video clip, and send the fourth video clip to a mobile terminal bound to the vehicle; wherein the fourth video clip is used for the mobile terminal to perform at least one of the following operations: display the fourth video clip; edit the fourth video clip; share the fourth video clip or the edited fourth video clip to a social platform.
[0204] The video editing method of the disclosed embodiment can not only realize that the central control host or the motion camera can automatically identify whether an exciting event has occurred in the vehicle based on the driving status data of the vehicle, but also can enable the user to manually trigger the set controls (such as physical buttons) in the vehicle to inform the central control host or the motion camera that an exciting event has occurred or is about to occur in the vehicle, so that the central control host or the motion camera can edit the exciting video clips in time, which can improve the flexibility and applicability of the method.
[0205] In any embodiment of the present disclosure, the present disclosure proposes a vehicle editing and generating short video system (the structure can be as follows Fig.10 As shown in the figure, the short video system includes a sports camera installed in front of the vehicle, a central control host of the vehicle, a mobile terminal APP and other modules. Fig.10 In the process, the central control host supplies 5V (volts) to the action camera, and the central control host and the action camera transmit data. The central control host communicates with the mobile terminal through vehicle-to-vehicle interconnection technologies such as USB, WIFI (Wireless Fidelity), BLE (Bluetooth Low Energy) and other technologies. This disclosure mainly proposes strategies for the physical connection, continuous power supply, video editing, transmission, and data synthesis of the action camera as a front-mounted part of the vehicle. Among them,
[0206] 1. A dedicated slot structure is designed at the A-pillar of the vehicle, and the action camera can be directly installed in the slot (referred to as the first slot in this disclosure), and the user can install and remove the action camera at will; a dedicated slot structure is designed at the roof, and the selfie stick dedicated to the action camera can be directly installed in the slot (referred to as the second slot in this disclosure), and the user can install and remove the selfie stick at will. In this way, the problem that the action camera purchased by ordinary users does not have a completely matching fixing structure when installed in the vehicle can be solved, and the action camera can be prevented from being easily dropped due to insecure fixing, thereby damaging the action camera.
[0207] 2. The dedicated card slot of the vehicle is designed with a data cable to continuously power and charge the action camera. This can solve the problem that the action camera purchased by ordinary users cannot be continuously powered and can only use the built-in battery of the action camera, and can realize continuous power supply for the action camera.
[0208] 3. The vehicle's dedicated card slot is designed with a data cable. The original video data shot by the vehicle's front-mounted sports camera is transmitted to the vehicle's central control host for storage in real time through the data cable. The sports camera does not need to have a memory. When the internal storage space of the central control host is full, the original video data with the old timestamp can be automatically overwritten to ensure that the sports camera can continue to record and store new video data. This can solve the problem of small capacity of the sports camera memory card purchased by ordinary users, and avoid the situation where the video recording stops after the storage capacity is full.
[0209] 4. The vehicle's central control host or sports camera can automatically edit video clips of wonderful moments, which can solve the problem of ordinary users spending a lot of time viewing and editing videos.
[0210] 5. The vehicle's central control host integrates the vehicle's key CAN data into the video clips, which can solve the problem that the video clips recorded and edited by ordinary users are relatively single.
[0211] 6. The vehicle's central control host automatically synthesizes wonderful video clips, which can solve the problem that ordinary users need to manually synthesize video clips.
[0212] As an example, the video data stream is designed as follows:
[0213] 1. The sports camera installed on the front of the vehicle shoots and generates original video data.
[0214] 2. The sports camera installed in the front of the vehicle or the central control host of the vehicle can edit wonderful video clips.
[0215] 3. After obtaining the wonderful video clips, the vehicle's central control host processes the data and special effects of the video clips according to the motion effect model to synthesize a wonderful short video.
[0216] 4. The vehicle's central control host transmits the short video to the mobile terminal APP side through terminal interconnection.
[0217] 5. The mobile terminal APP shares the short video to the social platform.
[0218] As an example, the video clip logic is as follows:
[0219] 1. Automatically edit the video when a wonderful event occurs:
[0220] The central control host or sports camera communicates with the vehicle CAN bus, and can monitor data buried point signals through the CAN bus, including the "vehicle lift-off / landing" signal broadcast by the vehicle's electronic suspension system, the "steering wheel angular speed" signal and "steering wheel angle" signal broadcast by the body electronic stability system, the "accelerator pedal opening" signal, "brake pedal opening" signal, "instantaneous power" signal broadcast by the vehicle controller, and the vehicle pitch angle, vehicle tilt angle status, etc. monitored by the built-in 6-axis gyroscope of the central control host. When the central control host or the motion camera determines, based on the above signals, that the vehicle has lifted off / landed, or the steering wheel angular speed is greater than 60° / s, or the steering wheel angle is greater than 600°, or the accelerator pedal opening is greater than 98%, or the brake pedal opening is greater than 98%, or the instantaneous power is greater than 2000W, or the vehicle pitch angle is greater than 30°, or the vehicle tilt angle is greater than 30°, at least one of the following occurs, it can be determined that a wonderful event has occurred in the vehicle. At this time, the central control host or the motion camera will mark the original video data to obtain a marking point (for example, the marking point is used to indicate the start and end time of the wonderful event), and based on the marking point, a video clip from 3 seconds before the marking point to 7 seconds after the marking point is edited, and the edited video clip is stored to ensure that this wonderful video clip is not overwritten.
[0221] 2. When the physical button is manually triggered, edit the video:
[0222] The user manually operates the physical buttons, or the central control host sends a video editing command to the sports camera to perform video editing, or the central control host performs video editing to edit a video clip from 3 seconds before the marked point to 7 seconds after the marked point, and stores the edited video clip to ensure that this wonderful video clip is not overwritten.
[0223] In order to implement the above embodiment, the present disclosure also provides a video editing device.
[0224] Fig.11 A schematic diagram of the structure of a video editing device provided in an embodiment of the present disclosure.
[0225] like Fig.11 As shown, the video editing device 1100 includes: an acquisition module 1110 , a first determination module 1120 , a second determination module 1130 and a first processing module 1140 .
[0226] Wherein, the acquisition module 1110 is used to acquire the driving status data of the vehicle;
[0227] A first determination module 1120, configured to determine that a target event occurs in the vehicle when the driving state data satisfies an event triggering condition associated with a target event among multiple candidate events;
[0228] The second determination module 1130 is used to determine a first time parameter of the target event according to the driving state data; wherein the first time parameter includes a start time and / or an end time of the target event;
[0229] The first processing module 1140 is used to obtain and store a first video clip matching the target event based on a first time parameter; wherein the first video clip is obtained by editing video data captured by a motion camera installed in the vehicle based on the first time parameter.
[0230] In a possible implementation of the embodiment of the present disclosure, the driving status data includes: at least one of a vehicle lift-off signal and a vehicle landing signal broadcast by the vehicle's electronic suspension system; at least one of a steering wheel angular velocity signal and a steering wheel angle signal broadcast by the vehicle's electronic stability system; at least one of an accelerator pedal opening signal, a brake pedal opening signal and an instantaneous power signal broadcast by the vehicle's vehicle controller; and vehicle posture data monitored by the vehicle's inertial sensor; wherein the vehicle posture data includes at least one of a vehicle pitch angle and a vehicle tilt angle.
[0231] In a possible implementation of the embodiment of the present disclosure, the event trigger condition includes at least one of the following: the vehicle state indicated by the vehicle lift-off signal switches from the landing state to the lift-off state; the vehicle landed signal indicates that the vehicle state switches from the lift-off state to the landing state; the steering wheel angular velocity indicated by the steering wheel angular velocity signal is greater than the set angular velocity; the steering wheel angle indicated by the steering wheel angle signal is greater than the set angle; the accelerator pedal opening indicated by the accelerator pedal opening signal is greater than the first set opening; the brake pedal opening indicated by the brake pedal opening signal is greater than the second set opening; the vehicle instantaneous power indicated by the instantaneous power signal is greater than the set power; the vehicle pitch angle in the vehicle posture data is greater than the set pitch angle; the vehicle tilt angle in the vehicle posture data is greater than the set tilt angle.
[0232] In a possible implementation of the embodiment of the present disclosure, the set steering wheel angular velocity is 60° / s, the set steering wheel angle is 600°, the first set accelerator pedal opening is 98%, the second set brake pedal opening is 98%, the set vehicle instantaneous power is 2000W, the set pitch angle of the vehicle is 30°, and the set tilt angle of the vehicle is 30°.
[0233] In a possible implementation of the embodiment of the present disclosure, a central control host applied to a vehicle, a first processing module 1140, is specifically used to: mark the video data sent by the motion camera based on the first time parameter and the driving status data; query the first editing duration and the second editing duration associated with the target event; wherein the first editing duration is used to edit the video clip before the target event occurs, and the second editing duration is used to edit the video clip after the target event occurs; according to the first time parameter, the first editing duration and the second editing duration, the marked video data is edited to obtain a first video clip; and the first video clip is stored.
[0234] In a possible implementation of the embodiment of the present disclosure, the motion camera transmits the captured video data to the central control host in real time for storage; or, the motion camera segments the captured video data according to a set duration, stores the segmented video data locally, and sends the segmented video data to the central control host for storage.
[0235] In a possible implementation of the embodiment of the present disclosure, a first processing module 1140 is applied to a central control host of a vehicle, and is specifically used to: send a video editing instruction carrying a first time parameter to a motion camera; receive a first video clip sent by the motion camera; wherein the first video clip is obtained by the motion camera responding to the video editing instruction, querying the first editing duration and the second editing duration associated with the target event, and editing the video data shot and stored by the motion camera according to the first time parameter, the first editing duration and the second editing duration; and storing the first video clip.
[0236] In a possible implementation of the embodiment of the present disclosure, applied to a sports camera, the first processing module 1140 is specifically used to: mark the video data shot and stored by the sports camera based on the first time parameter and the driving status data; query the first editing duration and the second editing duration associated with the target event; according to the first time parameter, the first editing duration and the second editing duration, edit the marked video data to obtain a first video clip; and store the first video clip.
[0237] In a possible implementation of the embodiment of the present disclosure, the video editing device 1100 further includes:
[0238] The first sending module is used to send the first video clip to the central control host of the vehicle for storage.
[0239] In a possible implementation of the embodiment of the present disclosure, the video editing device 1100 is applied to a central control host of a vehicle, and further includes:
[0240] A third determination module is used to determine a target motion effect model adapted to the event type of the target event from a plurality of candidate motion effect models;
[0241] An extraction module, configured to extract key features from the first video clip;
[0242] A second processing module, configured to perform motion effect processing on the first video segment based on the target motion effect model and the key features to obtain a second video segment;
[0243] The second sending module is used to send the second video clip to the mobile terminal bound to the vehicle; wherein the second video clip is used by the mobile terminal to perform at least one of the following operations: display the second video clip; edit the second video clip; share the second video clip to a social platform.
[0244] In a possible implementation of the embodiment of the present disclosure, the video editing device 1100 further includes:
[0245] a fourth determination module, configured to determine that a candidate event occurs in the vehicle in response to monitoring a trigger operation on a set control of the vehicle;
[0246] A fifth determination module, configured to determine a second time parameter of a candidate event occurring in the vehicle according to a triggering time of the triggering operation; wherein the second time parameter includes a starting time and / or an ending time of the occurring candidate event;
[0247] A third processing module is used to obtain a third video frequency band matching the candidate event according to the second time parameter; wherein the third video segment is obtained by editing the video data shot by the motion camera in the vehicle based on the second time parameter;
[0248] The storage module is used to store the third video clip.
[0249] In a possible implementation of the embodiment of the present disclosure, the sports camera is installed in a first card slot, which is arranged in the area where a metal pillar of the vehicle is located, and the metal pillar is used to connect the front windshield and the front door of the vehicle; and / or, the auxiliary shooting component connected to the sports camera is installed in a second card slot, which is arranged on the roof of the vehicle.
[0250] In a possible implementation of the embodiment of the present disclosure, a first data line is provided at the first card slot, and the first data line is used to power or charge the sports camera, and / or, the first data line is used for the sports camera to transmit the captured video data to the central control host of the vehicle for storage; and / or, a second data line is provided at the second card slot, and the second data line is used to power or charge the sports camera, and / or, the second data line is used for the sports camera to transmit the captured video data to the central control host of the vehicle for storage.
[0251] It should be noted that the video editing device provided in the embodiment of the present disclosure can achieve the above Figures 1 to 9 All the method steps implemented in the method embodiment can achieve the same technical effect, and the parts and beneficial effects of this embodiment that are the same as those in the method embodiment will not be described in detail here.
[0252] In order to implement the above embodiments, the present disclosure also proposes an electronic device, wherein the electronic device can be any device with computing capability, and the electronic device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, it implements the video editing method proposed in any of the aforementioned embodiments of the present disclosure.
[0253] In order to implement the above embodiments, the present disclosure further proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the video editing method proposed in any of the above embodiments of the present disclosure is implemented.
[0254] In order to implement the above embodiments, the present disclosure further proposes a computer program product. When instructions in the computer program product are executed by a processor, the video editing method proposed in any of the above embodiments of the present disclosure is executed.
[0255] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0256] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0257] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present disclosure belong.
[0258] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0259] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0260] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0261] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0262] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present disclosure. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present disclosure.
Claims
1. A video editing method, characterized in that include: Obtaining vehicle driving status data; In the case where the driving state data satisfies an event triggering condition associated with a target event among a plurality of candidate events, determining that the target event occurs to the vehicle, wherein each candidate event has an associated event triggering condition; Determine a first time parameter of the target event according to the driving state data; wherein the first time parameter includes a start time and / or an end time of the target event; Based on the first time parameter, obtaining and storing a first video clip matching the target event; wherein the first video clip is obtained by editing video data shot by a motion camera installed in the vehicle based on the first time parameter; The driving status data includes: at least one of a vehicle lift-off signal and a vehicle landing signal broadcast by an electronic suspension system of the vehicle; at least one of a steering wheel angular velocity signal and a steering wheel angle signal broadcast by an electronic stability system of the vehicle; At least one of an accelerator pedal opening signal, a brake pedal opening signal and an instantaneous power signal broadcast by a vehicle controller of the vehicle; The vehicle posture data monitored by the inertial sensor of the vehicle; wherein the vehicle posture data includes at least one of a vehicle pitch angle and a vehicle tilt angle.
2. The method according to claim 1, characterized in that The event triggering condition includes at least one of the following: The vehicle state indicated by the vehicle lift-off signal switches from the grounded state to the lift-off state; The vehicle state indicated by the vehicle landing signal switches from the lift-off state to the landing state; The steering wheel angular speed indicated by the steering wheel angular speed signal is greater than the set angular speed; The steering wheel angle indicated by the steering wheel angle signal is greater than the set angle; The accelerator pedal opening indicated by the accelerator pedal opening signal is greater than a first set opening; The brake pedal opening indicated by the brake pedal opening signal is greater than a second set opening; The instantaneous power of the vehicle indicated by the instantaneous power signal is greater than the set power; The vehicle pitch angle in the vehicle posture data is greater than the set pitch angle; The vehicle tilt angle in the vehicle posture data is greater than the set tilt angle.
3. The method according to claim 2, characterized in that The set steering wheel angular velocity is 60° / s, the set angle of the steering wheel angle is 600°, the first set opening of the accelerator pedal is 98%, the second set opening of the brake pedal is 98%, the set power of the vehicle instantaneous power is 2000W, the set pitch angle of the vehicle pitch angle is 30°, and the set tilt angle of the vehicle tilt angle is 30°.
4. The method according to claim 1, characterized in that: The method is executed by a central control host of the vehicle, and acquiring and storing a first video clip matching the target event based on the first time parameter includes: Based on the first time parameter and the driving status data, marking the video data sent by the motion camera; Querying a first clipping duration and a second clipping duration associated with the target event; wherein the first clipping duration is used to clip the video segment before the target event occurs, and the second clipping duration is used to clip the video segment after the target event occurs; According to the first time parameter, the first editing duration, and the second editing duration, the marked video data is edited to obtain the first video segment; The first video clip is stored.
5. The method according to claim 4, characterized in that The motion camera transmits the captured video data to the central control host in real time for storage; or The motion camera segments the captured video data according to the set duration, stores the segmented video data locally, and sends the segmented video data to the central control host for storage.
6. The method according to claim 1, characterized in that The method is executed by a central control host of the vehicle, and acquiring and storing a first video clip matching the target event based on the first time parameter includes: Sending a video editing instruction carrying the first time parameter to the motion camera; receiving a first video clip sent by the motion camera; wherein the first video clip is obtained by the motion camera responding to the video clipping instruction, querying a first clipping duration and a second clipping duration associated with the target event, and clipping the video data shot and stored by the motion camera according to the first time parameter, the first clipping duration, and the second clipping duration; The first video clip is stored.
7. The method according to claim 1, characterized in that The method is performed by the motion camera, and based on the first time parameter, acquiring and storing a first video clip matching the target event includes: Based on the first time parameter and the driving status data, marking the video data captured and stored by the motion camera; Querying a first clip duration and a second clip duration associated with the target event; According to the first time parameter, the first clipping duration, and the second clipping duration, the marked video data is clipped to obtain the first video segment; The first video clip is stored.
8. The method according to claim 7, characterized in that The method further comprises: The first video clip is sent to a central control host of the vehicle for storage.
9. The method according to claim 1, characterized in that: The method is executed by a central control host of the vehicle, and the method further includes: Determine a target motion effect model adapted to the event type of the target event from a plurality of candidate motion effect models; Extracting key features from the first video clip; Based on the target motion effect model and the key features, performing motion effect processing on the first video segment to obtain a second video segment; sending the second video clip to a mobile terminal bound to the vehicle; The second video clip is used by the mobile terminal to perform at least one of the following operations: displaying the second video clip; editing the second video clip; sharing the second video clip to a social platform.
10. The method according to any one of claims 1 to 9, characterized in that The method further comprises: In response to monitoring a triggering operation on a set control of the vehicle, determining that a candidate event occurs in the vehicle; Determining a second time parameter of the candidate event occurring in the vehicle according to the triggering time of the triggering operation; wherein the second time parameter includes the starting time and / or the ending time of the candidate event occurring; According to the second time parameter, a third video clip matching the candidate event is obtained; wherein the third video clip is obtained by editing the video data captured by the motion camera in the vehicle based on the second time parameter; The third video clip is stored.
11. The method according to any one of claims 1 to 9, characterized in that The motion camera is installed in a first card slot, and the first card slot is arranged in an area where a metal pillar of the vehicle is located, and the metal pillar is used to connect the front windshield and the front door of the vehicle; and / or, The auxiliary shooting component connected to the sports camera is installed in a second card slot, and the second card slot is arranged on the roof of the vehicle.
12. The method according to claim 11, characterized in that A first data line is provided at the first card slot, and the first data line is used to power or charge the sports camera, and / or the first data line is used for the sports camera to transmit the captured video data to the central control host of the vehicle for storage; and / or, A second data cable is provided at the second card slot, and the second data cable is used to power or charge the sports camera, and / or the second data cable is used for the sports camera to transmit the captured video data to the central control host of the vehicle for storage.
13. A video editing device, characterized in that include: An acquisition module, used to acquire the driving status data of the vehicle; A first determination module, configured to determine that the target event occurs to the vehicle when the driving state data satisfies an event triggering condition associated with a target event among a plurality of candidate events, wherein each candidate event has an associated event triggering condition; A second determination module, configured to determine a first time parameter of the target event according to the driving state data; wherein the first time parameter includes a start time and / or an end time of the target event; A first processing module, configured to acquire and store a first video clip matching the target event based on the first time parameter; wherein the first video clip is obtained by editing video data shot by a motion camera installed in the vehicle based on the first time parameter; The driving status data includes: at least one of a vehicle lift-off signal and a vehicle landing signal broadcast by an electronic suspension system of the vehicle; at least one of a steering wheel angular velocity signal and a steering wheel angle signal broadcast by an electronic stability system of the vehicle; At least one of an accelerator pedal opening signal, a brake pedal opening signal and an instantaneous power signal broadcast by a vehicle controller of the vehicle; The vehicle posture data is monitored by an inertial sensor of the vehicle; wherein the vehicle posture data includes at least one of a vehicle pitch angle and a vehicle tilt angle.
14. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the video editing method according to any one of claims 1 to 12. 15 . A computer-readable storage medium, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the video editing method according to any one of claims 1 to 12.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the video editing method according to any one of claims 1 to 12 is implemented.
