Cabin-based trip video generation method and device, vehicle, and storage medium

By automatically controlling a camera in the car cabin to capture images and record videos, and combining date and weather information with background music to generate a trip video, the problem of cumbersome operation in existing technologies is solved, and convenient video recording is achieved.

CN115529423BActive Publication Date: 2026-04-14XINGHE ZHILIAN AUTOMOBILE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-14
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

In existing technologies, car owners need to manually record videos and perform post-processing while driving, which is cumbersome and time-consuming, and fails to meet the need for convenient recording of life.

Method used

A method for generating travel videos based on a cockpit is provided. By responding to user requests, the method automatically controls the camera to capture images and record videos, and combines the current date and weather information to obtain background music to generate travel videos.

Benefits of technology

It simplifies user operations and can automatically generate videos after the trip, meeting the need for convenient recording of life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115529423B_ABST
    Figure CN115529423B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of video synthesis, and discloses a journey video generation method and device based on a cockpit, a vehicle and a storage medium, the method comprising the following steps: in response to a journey recording request triggered by a user, starting a journey recording function; controlling a camera to work according to a preconfigured image shooting strategy, and obtaining image data of inside and outside the vehicle; controlling the camera to work according to a preconfigured video recording strategy, and obtaining video data of inside the vehicle; acquiring current date information and current weather information, and matching the current date information and the current weather information to obtain background music data; and in response to an end journey request triggered by the user, generating a journey video according to the image data, the video data and the background music data. The method can automatically record and select materials according to a cockpit environment, so as to generate a video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of video synthesis technology, and in particular to a method, apparatus, vehicle, and storage medium for generating cockpit-based travel videos. Background Technology

[0002] Currently, with the continuous development of the automotive industry, there are more and more cameras inside and outside cars. For vlog shooting, one of the common applications, these cameras can support taking photos and recording videos both inside and outside the car.

[0003] In existing technologies, due to the uncertainty of time and space during driving, if car owners want to record key sounds and images from their trip and automatically generate a trip vlog, video recording needs to be enabled throughout the entire journey. After recording, car owners need to manually edit the video, add music, and perform other post-production operations, making the process cumbersome and time-consuming, and failing to meet users' needs for conveniently recording their lives. Summary of the Invention

[0004] This invention provides a method, apparatus, vehicle, and storage medium for generating cabin-based travel videos, enabling automatic recording and selection of materials based on the cabin environment to generate videos.

[0005] In a first aspect, to solve the above-mentioned technical problems, the present invention provides a method for generating cabin-based travel videos, comprising:

[0006] In response to a user-triggered trip recording request, the trip recording function is activated;

[0007] The camera is controlled to operate according to a pre-configured image capture strategy to obtain image data inside and outside the vehicle;

[0008] The camera is controlled to operate according to a pre-configured video recording strategy to obtain video data inside the vehicle;

[0009] Obtain the current date and current weather information, and match them to obtain background music data;

[0010] In response to a user-triggered request to end the trip, a trip video is generated based on the image data, the video data, and the background music data.

[0011] Preferably, generating the itinerary video based on the image data, the video data, and the background music data includes:

[0012] The required number of photos and videos is calculated based on the background music duration and the preset optimal animation duration, and the corresponding number of photos and / or videos are selected; wherein, the image data includes the number of photos, the video data includes the number of videos, and the background music data includes the background music and the background music duration;

[0013] The transition time of the materials is calculated based on the duration of the background music, and the actual duration of the animation process is determined based on the transition time of the materials.

[0014] The selected photos and / or videos, the background music, and the actual process animation duration are combined according to the material timeline to obtain the itinerary video.

[0015] Preferably, controlling the camera to operate according to a pre-configured image capture strategy to obtain image data inside and outside the vehicle includes:

[0016] When a user-triggered trip recording request is received, all cameras are activated and take a picture once to obtain image data of the inside and outside of the vehicle.

[0017] During vehicle operation, all cameras are activated and take pictures according to preset time intervals to obtain image data inside and outside the vehicle;

[0018] When a user-triggered request to end the trip is received, all cameras are activated and take a picture once to obtain image data of the inside and outside of the vehicle.

[0019] Preferably, controlling the camera to operate according to a pre-configured video recording strategy to obtain in-vehicle video data includes:

[0020] When an in-vehicle sound signal is received from the sound sensor, the in-vehicle video recording function is activated.

[0021] During the recording process, if it is determined that no in-vehicle sound signal is received within a preset continuous time, the in-vehicle video recording function is terminated, and in-vehicle video data is obtained.

[0022] Preferably, the step of matching the current date information and the current weather information to obtain background music data includes:

[0023] Tag extraction is performed based on the current date information and the current weather information to obtain a first tag corresponding to the current date information and a second tag corresponding to the current weather information; wherein, the current date information includes holiday information;

[0024] Retrieve the music list corresponding to the first tag and the second tag;

[0025] A piece of music with a duration shorter than a preset duration is randomly selected from the music list and used as background music data.

[0026] Preferably, the method further includes:

[0027] When T < n + x * 1 + (m + x - 1) * t 2, determine that the duration of the current material is greater than the duration of the background music, and select the material accordingly;

[0028] When T≥n+x*1+(m+x-1)*t2, determine that the duration of the current material is less than the duration of the background music, and generate a video based on all materials;

[0029] Where T is the duration of the background music in the background music data, m and n are the number of videos and the total duration of the videos in the video data, respectively, x is the number of photos in the image data, and t2 is the preset minimum transition animation duration.

[0030] Preferably, before generating the itinerary video based on the image data, the video data, and the background music data, the method further includes:

[0031] Calculate whether the current footage meets the conditions for generating a travel video;

[0032] When T>n+x*1+(m+x-1)*t1, it is determined that the current material does not meet the conditions for generating the trip video, and a message indicating insufficient material is generated is displayed.

[0033] When T≤n+x*1+(m+x-1)*t1, it is determined that the current material meets the conditions for generating a travel video, and the steps for generating a travel video are executed.

[0034] Where T is the duration of the background music in the background music data, m and n are the number of videos and the total duration of the videos in the video data, respectively, x is the number of photos in the image data, and t1 is the preset maximum transition animation duration.

[0035] Secondly, the present invention provides a cockpit-based travel video generation device, comprising:

[0036] The function activation module is used to activate the trip recording function in response to a user-triggered trip recording request.

[0037] The image acquisition module is used to control the camera to work according to a pre-configured image capture strategy and obtain image data inside and outside the vehicle;

[0038] The video acquisition module is used to control the camera to work according to a pre-configured video recording strategy and obtain video data inside the vehicle;

[0039] The music acquisition module is used to acquire current date information and current weather information, and to match the current date information and current weather information to obtain background music data;

[0040] The video generation module is used to generate a trip video based on the image data, the video data, and the background music data in response to a user-triggered trip termination request.

[0041] Thirdly, the present invention also provides a vehicle including a camera, a sound sensor, and a cockpit-based travel video generation device as described in the second aspect.

[0042] Fourthly, the present invention also provides a computer-readable storage medium comprising a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the cockpit-based trip video generation method described in any one of the above.

[0043] Compared with the prior art, the present invention has the following beneficial effects:

[0044] This invention provides a method for generating trip videos based on the cockpit. In response to a user-triggered trip recording request, the method activates the trip recording function; controls the camera to operate according to a pre-configured image capture strategy to obtain image data inside and outside the vehicle; controls the camera to operate according to a pre-configured video recording strategy to obtain video data inside the vehicle; acquires current date and weather information, and matches the current date and weather information to obtain background music data; in response to a user-triggered trip end request, the method generates a trip video based on the image data, video data, and background music data. This invention can automatically collect key information during the trip by combining in-vehicle cameras, sound sensors, and other devices, and automatically generate a video after the trip ends. Users only need to activate the function before the trip begins to automatically generate a video of the trip after it ends, simplifying the user's operation process and meeting the user's need for convenient recording of life. Attached Figure Description

[0045] Figure 1 This is a schematic diagram of the process of generating a cabin-based trip video provided in the first embodiment of the present invention;

[0046] Figure 2 This is a schematic diagram of the cockpit-based travel video generation device provided in the second embodiment of the present invention. Detailed Implementation

[0047] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0048] Reference Figure 1 The first embodiment of the present invention provides a method for generating flight videos based on the cockpit, including the following steps:

[0049] S11, in response to a user-triggered trip recording request, start the trip recording function;

[0050] S12 controls the camera to work according to a pre-configured image capture strategy to obtain image data inside and outside the vehicle;

[0051] S13 controls the camera to work according to the pre-configured video recording strategy to obtain video data inside the vehicle;

[0052] S14, obtain the current date information and the current weather information, and match them according to the current date information and the current weather information to obtain background music data;

[0053] S15, in response to a user-triggered trip termination request, generate a trip video based on the image data, the video data, and the background music data.

[0054] This invention integrates with in-vehicle cameras, sound sensors, and other devices to automatically collect key information during a trip and generate a video upon completion. Users simply need to activate the function before starting the trip, and the video will be automatically generated afterward, simplifying the user's workflow and meeting their need for convenient recording of their lives.

[0055] It should be noted that in this embodiment of the invention, the vehicle is equipped with multiple cameras, sound sensors, and a vehicle infotainment system, which is connected to a music database. The cameras are important components installed inside and outside the vehicle, primarily responsible for taking photos and recording videos, and transmitting the data to the vehicle infotainment system. The sound sensors are important components installed inside the vehicle, primarily responsible for collecting sound. The vehicle infotainment system, acting as the vehicle's data center, includes functions such as GPS positioning, a main unit, intelligent voice prompts, and a timer. The cockpit-based trip video generation method of this invention can be implemented based on the vehicle infotainment system or through a separately configured controller.

[0056] In step S11, the trip recording function is activated in response to a user-triggered trip recording request. The video generation method of this invention requires the user to actively enable the trip vlog recording mode before proceeding to subsequent steps.

[0057] In step S12, the camera is controlled to operate according to a pre-configured image capture strategy to obtain image data inside and outside the vehicle, including:

[0058] When a user-triggered trip recording request is received, all cameras are activated and take a picture once to obtain image data of the inside and outside of the vehicle.

[0059] During vehicle operation, all cameras are activated and take pictures according to preset time intervals to obtain image data inside and outside the vehicle;

[0060] When a user-triggered request to end the trip is received, all cameras are activated and take a picture once to obtain image data of the inside and outside of the vehicle.

[0061] Specifically, the image capture strategy divides the automatic capture time into three periods: at the start of the trip, during the trip, and after the trip. Automatic capture strategies are set for each of these three time periods. At the start of the trip, when the user actively starts recording the trip vlog, an automatic capture is completed (if there are multiple cameras inside / outside the vehicle, each camera completes one capture). During the trip, an automatic capture is completed at preset time intervals (if there are multiple cameras inside / outside the vehicle, each camera completes one capture), where the preset time interval is an adjustable parameter, for example, 10 minutes. At the end of the trip, when the user selects to end the trip, an automatic capture is completed (if there are multiple cameras inside / outside the vehicle, each camera completes one capture).

[0062] In step S13, the camera is controlled to operate according to a pre-configured video recording strategy to obtain video data inside the vehicle, including:

[0063] When an in-vehicle sound signal is received from the sound sensor, the in-vehicle video recording function is activated.

[0064] During the recording process, if it is determined that no in-vehicle sound signal is received within a preset continuous time, the in-vehicle video recording function is terminated, and in-vehicle video data is obtained.

[0065] For example, when the sound sensor detects sound inside the vehicle, in-vehicle video recording is automatically initiated. During recording, if the preset continuous recording time is 3 seconds, the recording ends when no sound is detected within 3 seconds. This detection process continues throughout the journey. Of course, there may be instances where there is no video, in which case the acquired video data will contain zero videos.

[0066] In step S14, the current date information and the current weather information are obtained, and the background music data is obtained by matching the current date information and the current weather information.

[0067] The background music data is obtained by matching the current date information and the current weather information, including:

[0068] Tag extraction is performed based on the current date information and the current weather information to obtain a first tag corresponding to the current date information and a second tag corresponding to the current weather information; wherein, the current date information includes holiday information;

[0069] Retrieve the music list corresponding to the first tag and the second tag;

[0070] A piece of music with a duration shorter than a preset duration is randomly selected from the music list and used as background music data.

[0071] It should be noted that the vehicle's infotainment system, based on GPS and network information, can obtain the current city weather and current date information (including holiday information), upload them as tags to the vehicle's music source, and then match the music playback link under the corresponding tag of the music source.

[0072] Furthermore, the method also includes:

[0073] When it is determined that the music list corresponding to the first tag and the second tag cannot be matched, the music with the highest number of plays is selected as the background music data.

[0074] In one implementation, after activating the trip vlog recording mode, the vehicle's infotainment system automatically requests the current city weather and holiday information from the network. Using (holidays, weather) as the first and second tags, it requests a list of songs corresponding to these tags from the vehicle's music source server. The matching rule prioritizes a full match based on both the first and second tags. If no full match is found, it selects one of the first and second tags for individual matching. If multiple songs are matched, a music playback link and its duration are randomly returned and saved to the vehicle's infotainment system. If no tags match, the system randomly selects the playback link of the most-played song from the most popular songs on the music source and saves its duration. It should be noted that the preset duration is 5 minutes; only music with a duration of less than 5 minutes is selected as the playback link to prevent excessively long background music. This playback link serves as the background music for the trip.

[0075] In another implementation, if the vehicle's infotainment system is not connected to a music source server, it can also build its own music database. The strategy for obtaining song playback links and music duration is the same as in the above implementation, and will not be repeated here.

[0076] In step S15, in response to a user-triggered trip termination request, a trip video is generated based on the image data, the video data, and the background music data.

[0077] The process of generating a journey video based on the image data, the video data, and the background music data includes:

[0078] The required number of photos and videos is calculated based on the background music duration and the preset optimal animation duration, and the corresponding number of photos and / or videos are selected; wherein, the image data includes the number of photos, the video data includes the number of videos, and the background music data includes the background music and the background music duration;

[0079] The transition time of the materials is calculated based on the duration of the background music, and the actual duration of the animation process is determined based on the transition time of the materials.

[0080] The selected photos and / or videos, the background music, and the actual process animation duration are combined according to the material timeline to obtain the itinerary video.

[0081] It should be noted that users can automatically end the trip at the end or in the middle of the trip and choose whether to automatically generate a vlog. If the user chooses to generate a vlog, step S15 will be executed; if the user chooses not to generate a vlog, the process will end.

[0082] Furthermore, when T < n + x * 1 + (m + x - 1) * t 2, it is determined that the duration of the current material is greater than the duration of the background music, and the material is selected accordingly;

[0083] When T≥n+x*1+(m+x-1)*t2, the duration of the current material is determined to be less than the duration of the background music, and a video is generated based on all materials.

[0084] Where T is the duration of the background music in the background music data, m and n are the number of videos and the total duration of the videos in the video data, respectively, x is the number of photos in the image data, and t2 is the preset minimum transition animation duration.

[0085] It should be noted that when there are too many materials, automatic selection of materials is necessary. Assuming the background music duration is T seconds, the number of videos shot is m, and the total duration is n; the number of photos taken is x, and the duration of each photo display is defined as 1 second; and the minimum transition animation duration t2 between materials is defined as 0.2 seconds, then when T < n + x * 1 + (m + x - 1) * 0.2, it indicates that there are too many materials and cropping is necessary; otherwise, it is not necessary.

[0086] Specifically, the selection of materials is divided into two cases: no video and video. When there is no video, i.e., the number of videos obtained is zero, assuming the background music duration is T seconds, first calculate the number of photos to be selected, x. Define the photo display duration as 1 second and the optimal animation duration as 0.5 seconds. Solve the equation T = x * 1 + (x - 1) * 0.5 to find x. If the value of x contains a decimal, round it up to get the number of photos to be selected. Then, retain all photos taken at the beginning and end of the trip, and the remaining photos are randomly and automatically selected from the trip.

[0087] When videos are available, assuming the background music duration is T seconds, we define a maximum of three shortest videos to be retained. The specific number of videos selected is calculated so that the sum of the video durations does not exceed 2 / 3 of the background music duration, yielding the number of videos to be retained, *m*, and the video duration, *n*. Next, assuming the number of photos to be selected is *x*, and the photo display duration is defined as 1 second, with an optimal animation duration of 0.5 seconds, we solve the equation T = x*1 + n + (x + m - 1)*0.5 to find *x*. If *x* contains a decimal value, we round it up to obtain the number of photos to be selected. Finally, all photos taken before and at the end of the trip are retained, and the remaining photos are randomly and automatically selected from the trip.

[0088] After selecting the materials, calculate the material transition time. Solve the equation T = n + x * 1 + (m + x - 1) * Q, where the background music duration is T, the selected video duration is n, the number of selected photos is x, and the number of selected videos is m. The material transition time Q can be calculated using this formula, and Q is the actual animation duration.

[0089] Finally, the footage is assembled into a vlog. The footage is assembled according to its timeline, with transition animations cycling from left to right, top to bottom, right to left, and bottom to top. The duration of each transition animation is the time Q calculated in the previous step, and the background music uses the obtained music playback link. Preferably, the background music volume is reduced to 1 / 4 of its initial volume during video playback. Additionally, a photo taken during the trip can be randomly selected as the vlog cover.

[0090] To facilitate understanding of the present invention, some preferred embodiments of the present invention will be described in further detail below.

[0091] In one implementation, before generating the trip video based on the image data, the video data, and the background music data, the method further includes:

[0092] Calculate whether the current footage meets the conditions for generating a travel video;

[0093] When T>n+x*1+(m+x-1)*t1, it is determined that the current material does not meet the conditions for generating the trip video, and a message indicating insufficient material is generated is displayed.

[0094] When T≤n+x*1+(m+x-1)*t1, the current material is determined to meet the conditions for generating a travel video;

[0095] Where T is the duration of the background music in the background music data, m and n are the number of videos and the total duration of the videos in the video data, respectively, x is the number of photos in the image data, and t1 is the preset maximum transition animation duration.

[0096] It's important to note that not every trip can generate a vlog. For example, a short duration might result in insufficient footage. Therefore, when a user chooses to generate a vlog, a set of rules is needed to calculate whether automatic vlog generation is possible. Assuming the background music duration is T seconds, the number of videos shot is m, and the total duration is n; the number of photos taken is x, and the photo display duration is defined as 1 second; the maximum transition animation duration t1 between videos is defined as 1 second, then if T > n + x * 1 + (m + x - 1) * 1, it means the total duration of the footage is insufficient for the background music duration, and automatic vlog generation is not possible. Otherwise, automatic vlog generation is supported.

[0097] Reference Figure 2 The second embodiment of the present invention provides a cockpit-based travel video generation device, comprising:

[0098] The function activation module is used to activate the trip recording function in response to a user-triggered trip recording request.

[0099] The image acquisition module is used to control the camera to work according to a pre-configured image capture strategy and obtain image data inside and outside the vehicle;

[0100] The video acquisition module is used to control the camera to work according to a pre-configured video recording strategy and obtain video data inside the vehicle;

[0101] The music acquisition module is used to acquire current date information and current weather information, and to match the current date information and current weather information to obtain background music data;

[0102] The video generation module is used to generate a trip video based on the image data, the video data, and the background music data in response to a user-triggered trip termination request.

[0103] It should be noted that the cockpit-based travel video generation device provided in this embodiment of the invention is used to execute all the process steps of the cockpit-based travel video generation method in the above embodiment. The working principles and beneficial effects of the two are one-to-one, so they will not be described again.

[0104] This invention also provides a vehicle including a camera, a sound sensor, and a cockpit-based travel video generation device as described in the second embodiment.

[0105] This invention also provides a terminal device. The terminal device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a cockpit-based trip video generation program. When the processor executes the computer program, it implements the steps in the various cockpit-based trip video generation method embodiments described above, for example... Figure 1 The step S11 shown. Alternatively, when the processor executes the computer program, it implements the functions of each module / unit in the above-described device embodiments, such as the video generation module.

[0106] For example, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the terminal device.

[0107] The terminal device may be a desktop computer, laptop, handheld computer, or smart tablet, etc. The terminal device may include, but is not limited to, a processor and memory. Those skilled in the art will understand that the above components are merely examples of terminal devices and do not constitute a limitation on the terminal device. It may include more or fewer components than described above, or a combination of certain components, or different components. For example, the terminal device may also include input / output devices, network access devices, buses, etc.

[0108] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.

[0109] The memory can be used to store the computer programs and / or modules. The processor implements various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and by calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, phonebook, etc.). In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0110] Wherein, if the modules / units integrated in the terminal device are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, it can implement the steps of the various method embodiments described above. Wherein, the computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.

[0111] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0112] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.

Claims

1. A method for generating cabin-based travel video, characterized in that, include: In response to a user-triggered trip recording request, the trip recording function is activated; The camera is controlled to operate according to a pre-configured image capture strategy to obtain image data inside and outside the vehicle; The camera is controlled to operate according to a pre-configured video recording strategy to obtain video data inside the vehicle; Obtain the current date and current weather information, and match them to obtain background music data; In response to a user-triggered request to end the trip, a trip video is generated based on the image data, the video data, and the background music data; The required number of photos and videos is calculated based on the background music duration and the preset optimal animation duration, and the corresponding number of photos and / or videos are selected; wherein, the image data includes the number of photos, the video data includes the number of videos, and the background music data includes the background music and the background music duration; The transition time of the materials is calculated based on the duration of the background music, and the actual duration of the animation process is determined based on the transition time of the materials. The selected photos and / or videos, the background music, and the actual process animation duration are combined according to the material timeline to obtain the itinerary video.

2. The method for generating travel video based on the cockpit according to claim 1, characterized in that, The process of controlling the camera to operate according to a pre-configured image capture strategy to obtain image data inside and outside the vehicle includes: When a user-triggered trip recording request is received, all cameras are activated and take a picture once to obtain image data of the inside and outside of the vehicle. During vehicle operation, all cameras are activated and take pictures according to preset time intervals to obtain image data inside and outside the vehicle; When a user-triggered request to end the trip is received, all cameras are activated and take a picture once to obtain image data of the inside and outside of the vehicle.

3. The method for generating travel videos based on the cockpit according to claim 1, characterized in that, The process of controlling the camera to operate according to a pre-configured video recording strategy to obtain video data inside the vehicle includes: When an in-vehicle sound signal is received from the sound sensor, the in-vehicle video recording function is activated. During the recording process, if it is determined that no in-vehicle sound signal is received within a preset continuous time, the in-vehicle video recording function is terminated, and in-vehicle video data is obtained.

4. The method for generating travel video based on the cockpit according to claim 1, characterized in that, The process of matching the current date information and the current weather information to obtain background music data includes: Tag extraction is performed based on the current date information and the current weather information to obtain a first tag corresponding to the current date information and a second tag corresponding to the current weather information; wherein, the current date information includes holiday information; Retrieve the music list corresponding to the first tag and the second tag; A piece of music with a duration shorter than a preset duration is randomly selected from the music list and used as background music data.

5. The method for generating travel video based on the cockpit according to claim 1, characterized in that, The method further includes: when When the duration of the current clip is greater than the duration of the background music, the clip is selected. when If the duration of the current clip is less than the duration of the background music, a video is generated based on all the clips. Where T is the duration of the background music in the background music data, m and n are the number of videos and the total duration of the videos in the video data, respectively, x is the number of photos in the image data, and t2 is the preset minimum transition animation duration.

6. The method for generating travel video based on the cockpit according to claim 1, characterized in that, Before generating the trip video based on the image data, the video data, and the background music data, the method further includes: Calculate whether the current footage meets the conditions for generating a travel video; when If the current material does not meet the conditions for generating a trip video, an insufficient material prompt message will be displayed. when If the current material meets the conditions for generating a travel video, then proceed with the steps to generate the travel video. Where T is the duration of the background music in the background music data, m and n are the number of videos and the total duration of the videos in the video data, respectively, x is the number of photos in the image data, and t1 is the preset maximum transition animation duration.

7. A cockpit-based travel video generation device, characterized in that, For implementing a cockpit-based travel video generation method as described in any one of claims 1 to 6, the apparatus comprises: The function activation module is used to activate the trip recording function in response to a user-triggered trip recording request. The image acquisition module is used to control the camera to work according to a pre-configured image capture strategy and obtain image data inside and outside the vehicle; The video acquisition module is used to control the camera to work according to a pre-configured video recording strategy and obtain video data inside the vehicle; The music acquisition module is used to acquire current date information and current weather information, and to match the current date information and current weather information to obtain background music data; The video generation module is used to generate a trip video based on the image data, the video data, and the background music data in response to a user-triggered trip termination request.

8. A vehicle, characterized in that, It includes a camera, a sound sensor, and a cockpit-based trip video generation device as described in claim 7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device on which the computer-readable storage medium is located to perform the cockpit-based trip video generation method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Audio / video recording method and device

    CN106303333A

  • Driving video shooting and sharing method

    CN110298934A

  • Audio file recommendation method and device, electronic equipment and readable storage medium

    CN112214636A

  • Vehicle-mounted short video generation method and device

    CN114943964A