Travel record generation method, apparatus, device, and storage medium

By splitting and filtering driving record videos, scenic images are extracted to generate travel logs, solving the problem of difficulty in generating travel logs in existing technologies and improving the user experience.

CN117336427BActive Publication Date: 2026-11-20ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311276483.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2026-11-20
Estimated Expiration
2043-09-28

AI Technical Summary

Technical Problem

Existing car dashcams record videos that do not only include travel footage, making it difficult to generate travel logs.

Method used

By splitting and deduplicating driving videos, performing scene recognition and vehicle location information filtering, landscape images are extracted and travel records are generated.

Benefits of technology

It automatically filters out travel-related scenic images to generate travel records, enhancing the user experience without requiring manual filtering and making it easier for users to recall their travel experiences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117336427B_ABST
    Figure CN117336427B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of image processing, and discloses a travel record generation method, device and equipment and a storage medium, the method comprising the following steps: splitting a driving record video, removing repeated driving record videos after splitting, obtaining effective driving images, performing scene identification on the effective driving images, screening the effective driving images based on the scene identification results and vehicle positioning information, obtaining scenic images, and generating a travel record according to the scenic images and the vehicle positioning information. Since the driving record video is split, repeated driving record videos are removed, effective driving images are obtained, scene identification is performed on the effective driving images, the effective driving images are further screened based on the scene identification results and the vehicle positioning information, scenic images are obtained, and finally, a travel record is generated according to the scenic images and the vehicle positioning information. Compared with the prior art, the application can screen scenic images from a driving record video and generate a travel record.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing technology, and in particular to a method, apparatus, device, and storage medium for generating travel records. Background Technology

[0002] Currently, cars have become an indispensable means of transportation in people's daily lives, and in-vehicle dashcams (DVRs) are becoming increasingly popular. Car owners can use in-vehicle DVRs to record their driving process, which can be used as evidence in the event of an accident or as a video record of their travel memories.

[0003] However, when existing car owners create travel memories from videos recorded by their in-car DVRs, the problem of how to generate travel records from the recorded videos is an urgent issue that needs to be addressed, since the recorded videos do not only contain information about the trip.

[0004] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The main objective of this invention is to provide a method, apparatus, device, and storage medium for generating travel records, aiming to solve the technical problem in the prior art of how to generate travel records based on recorded videos, since recorded videos do not only contain records about travel.

[0006] To achieve the above objectives, the present invention provides a method for generating travel records, the method comprising the following steps:

[0007] The dashcam video is split into segments, and duplicate segments are removed from the split dashcam video to obtain valid driving images;

[0008] Scene recognition is performed on the valid driving images, and the valid driving images are filtered based on the scene recognition results and vehicle positioning information to obtain landscape images;

[0009] A travel record is generated based on the landscape images and the vehicle location information.

[0010] Optionally, the step of filtering the valid driving images based on scene recognition results and vehicle positioning information to obtain landscape images includes:

[0011] The valid driving images are filtered based on the scene recognition results to obtain valid scene images;

[0012] The current recorded location corresponding to the valid scene image is determined based on the vehicle positioning information;

[0013] Determine whether the currently recorded location is a preset scenic spot location;

[0014] If so, the valid scene image corresponding to the current recorded position will be used as the landscape image.

[0015] Optionally, the step of filtering the valid driving images based on the scene recognition results to obtain valid scene images includes:

[0016] The percentage of occlusion area of ​​occluded objects in the valid driving image is determined based on the scene recognition results.

[0017] The valid driving images are filtered based on the comparison between the occlusion area ratio and a preset threshold to obtain valid scene images.

[0018] Optionally, the step of deduplicating the split driving record video to obtain valid driving images includes:

[0019] Feature extraction is performed on each frame of the split dashcam video to obtain image features;

[0020] The similarity of all dashcam images is measured based on the image features described.

[0021] Based on the measurement results, the split driving record video is deduplicated to obtain valid driving images.

[0022] Optionally, the step of deduplicating the split driving recording video based on the measurement result to obtain valid driving images includes:

[0023] Obtain the vehicle location information corresponding to the split driving record video, and determine the vehicle speed based on the vehicle location information;

[0024] Based on the measurement results and the vehicle's moving speed, the split driving record video is deduplicated to obtain valid driving images.

[0025] Optionally, the step of generating a travel record based on the landscape image and the vehicle location information includes:

[0026] Construct a landscape image metadata group based on the landscape image and the vehicle positioning information;

[0027] The vehicle driving data corresponding to each scenic image is determined based on the vehicle positioning information in the scenic image data set.

[0028] Preliminary text information is generated based on the current recorded location, the vehicle driving data, and the landscape image;

[0029] The preliminary text information is input into a preset large language model to obtain the corresponding itinerary summary.

[0030] Optionally, after the step of constructing the landscape image data set based on the landscape image and the vehicle positioning information, the method further includes:

[0031] Obtain preset style text and convert the preset style text into a corresponding style semantic vector;

[0032] The landscape image metadata set and the style semantic vector are input into a preset style conversion model to obtain a target style image. The preset style conversion model is used to convert the image in the metadata set into a style image that matches the style text.

[0033] The target style image is decoded, and the decoded target style images are stitched together to generate the corresponding travel video.

[0034] Furthermore, to achieve the above objectives, the present invention also proposes a travel record generation apparatus, the apparatus comprising:

[0035] The video splitting module is used to split the dashcam video, remove duplicates from the split dashcam video, and obtain valid driving images.

[0036] The image filtering module is used to perform scene recognition on the valid driving images, and filter the valid driving images based on the scene recognition results and vehicle positioning information to obtain landscape images;

[0037] The record generation module is used to generate travel records based on the landscape images and the vehicle location information.

[0038] Furthermore, to achieve the above objectives, the present invention also proposes a travel record generation device, the device comprising: a memory, a processor, and a travel record generation program stored in the memory and executable on the processor, the travel record generation program being configured to implement the steps of the travel record generation method as described above.

[0039] In addition, to achieve the above objectives, the present invention also proposes a storage medium storing a travel record generation program, which, when executed by a processor, implements the steps of the travel record generation method as described above.

[0040] This invention provides a method, apparatus, device, and storage medium for generating travel records. The method involves splitting a driving record video, removing duplicates from the split video to obtain valid driving images, performing scene recognition on these valid images, and further filtering them based on the scene recognition results and vehicle location information to obtain landscape images. Finally, a travel record is generated based on the landscape images and the vehicle location information. Compared to existing methods, this invention can filter landscape images from driving record videos to generate travel records. Attached Figure Description

[0041] Figure 1 This is a schematic diagram of the travel record generation device structure in the hardware operating environment involved in the embodiments of the present invention;

[0042] Figure 2 This is a flowchart illustrating the first embodiment of the travel record generation method of the present invention;

[0043] Figure 3 This is a flowchart illustrating the second embodiment of the travel record generation method of the present invention;

[0044] Figure 4 This is a schematic diagram of similar image filtering in the second embodiment of the travel record generation method of the present invention;

[0045] Figure 5 This is a flowchart illustrating the third embodiment of the travel record generation method of the present invention;

[0046] Figure 6 This is a schematic diagram illustrating the construction of the landscape image data set in the third embodiment of the travel record generation method of the present invention;

[0047] Figure 7 This is a structural block diagram of the first embodiment of the travel record generation device of the present invention.

[0048] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0049] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.

[0050] Reference Figure 1 , Figure 1This is a schematic diagram of the travel record generation device structure of the hardware operating environment involved in the embodiments of the present invention.

[0051] like Figure 1 As shown, the travel record generation device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be high-speed random access memory (RAM) or stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.

[0052] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the travel record generation device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0053] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a network communication module, a user interface module, and a travel record generation program.

[0054] exist Figure 1 In the travel record generation device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the travel record generation device of the present invention can be set in the travel record generation device, and the travel record generation device calls the travel record generation program stored in the memory 1005 through the processor 1001 and executes the travel record generation method provided in the embodiment of the present invention.

[0055] This invention provides a method for generating travel records, referring to... Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the travel record generation method of the present invention.

[0056] In this embodiment, the travel record generation method includes the following steps:

[0057] Step S10: Segment the dashcam video, remove duplicates from the segmented dashcam video, and obtain valid driving images.

[0058] It should be noted that the method of this embodiment can be applied to scenarios where travel records are generated based on in-vehicle DVR video, or to scenarios where other records are generated using in-vehicle DVR video. The executing entity of this embodiment's method can be a computing service device with travel record generation, network communication, and program execution functions, such as a travel record generation device, or other electronic devices that implement the same or similar functions. The following description uses the aforementioned travel record generation device (hereinafter referred to as the device) to illustrate this embodiment and the subsequent embodiments.

[0059] It is understood that the aforementioned driving recording video can be a video of the driving process captured by an in-vehicle DVR. In this embodiment, the in-vehicle DVR can be installed in any location on the vehicle, or an existing in-vehicle DVR can be used directly. The in-vehicle DVR can be directly connected to the Advanced Driver Assistance Systems Domain Controller (ADAS) or the vehicle's infotainment system via a Low Voltage Differential Signaling (LVDS) signal line or other signal lines. The specific transmission format of the driving recording video can be Moving Picture Experts Group (MPEG) format or Audio Video Interleave (AVI) format, or other formats. This embodiment does not limit this.

[0060] It should be understood that the aforementioned device can obtain the driving record video from ADAS or the vehicle's infotainment system. However, before obtaining the video, it can send an authorization request to the user, meaning that the user allows the device to process the driving record video. The device can also obtain driving record video for a period of time according to the user's needs and upload the video to the cloud for processing. This is because the driving record video recorded by the vehicle DVR contains a lot of important data, and uploading it to the cloud for processing can avoid damaging the original driving record video.

[0061] It should also be noted that the above-mentioned splitting of the driving record video can be to split the driving record video into driving record images corresponding to each frame. The format of the driving record images can be RGB format, or other formats, which are not limited in this embodiment.

[0062] It is understood that the above-mentioned valid driving images can be images without duplicate driving record images. Since driving record videos record the driving process over a period of time, and this driving process may include processes such as stopping, the driving record images obtained after splitting may contain duplicate images. Therefore, this embodiment can remove duplicate images from the driving record images to obtain valid driving images without duplicate images.

[0063] In its specific implementation, the aforementioned device can acquire driving recording video from the vehicle-mounted DVR, split the driving recording video to obtain the driving recording image corresponding to each frame, remove duplicate driving recording images, and obtain valid driving images.

[0064] Step S20: Perform scene recognition on the valid driving images, and filter the valid driving images based on the scene recognition results and vehicle positioning information to obtain landscape images.

[0065] It should be understood that the above scene recognition can be used to remove images with a lot of occlusion. This is because after removing some duplicate driving record images, the obtained valid driving images may contain images that are occluded by vehicles, pedestrians or buildings, which affects the quality of the subsequent generated travel records. Therefore, in this embodiment, scene recognition can be performed on the valid driving images to identify valid driving images with a lot of occlusion.

[0066] It should be noted that the vehicle location information mentioned above can be the current vehicle location information corresponding to each valid driving image within the selected time period of the driving record video. The vehicle location information can be obtained through a positioning device installed in the vehicle. The positioning device can record the GPS positioning information corresponding to the current location of the vehicle and the corresponding vehicle driving data in real time. As the vehicle location information, the device can bind and store the driving record image corresponding to each frame with the corresponding vehicle location information when shooting the driving record video. Then, based on the vehicle location information, it can determine whether the location corresponding to the valid driving image at the time of shooting is a scenic spot, thereby further filtering to obtain scenic images.

[0067] Furthermore, to improve the accuracy of the filtering, in this embodiment, the step of filtering the valid driving images based on scene recognition results and vehicle positioning information to obtain landscape images includes:

[0068] Step S21: Based on the scene recognition results, the valid driving images are filtered to obtain valid scene images.

[0069] It is understood that the aforementioned valid scene images can be valid driving images with less occlusion or no occlusion. The aforementioned device can filter out valid driving images with less occlusion or no occlusion based on the scene recognition results, and use the filtered images as the aforementioned valid scene images.

[0070] Furthermore, in order to accurately filter out valid driving images with minimal or no occlusion, in this embodiment, step S21 includes:

[0071] Step S211: Determine the occlusion area ratio of occluded objects in the valid driving image based on the scene recognition results.

[0072] It should be understood that the aforementioned occluding objects can be objects that obstruct the image captured by the vehicle-mounted DVR, including pedestrians, vehicles, and other buildings. The aforementioned device can perform scene recognition on the valid driving images through the target detection algorithm, and can count the number of pedestrians or vehicles in the valid driving images. When the number reaches a preset number, it can be determined that the valid driving image is occluded too much and needs to be removed. The aforementioned target detection algorithm and preset number can be set according to the actual situation, and this embodiment does not impose any restrictions.

[0073] It should also be noted that the aforementioned occlusion area ratio can be the proportion of pedestrians or vehicles in the entire image of the effective driving image. The aforementioned object detection algorithm can also calculate the area ratio of pedestrians or vehicles in the entire image of the effective driving image as the aforementioned occlusion area ratio.

[0074] Step S212: Based on the comparison result of the occlusion area ratio and the preset threshold, the valid driving images are filtered to obtain valid scene images.

[0075] It is understandable that the above-mentioned preset threshold can be used to determine whether there is too much occlusion in the valid driving image, and can be set according to the actual situation.

[0076] It should be emphasized that the above-mentioned equipment can also determine whether there is a traffic jam based on the number of vehicles counted, that is, whether the number of vehicles is greater than the preset number. If so, the valid driving image can be removed to improve the quality of the valid scene image.

[0077] In a specific implementation, the aforementioned device can perform scene recognition on valid driving images through target detection algorithms, and count the number of pedestrians or vehicles in the valid driving images based on the scene recognition results. Based on the count, the valid driving images are filtered. At the same time, it can also determine the proportion of occlusion area of ​​occluded objects in the valid driving images. When the occlusion area is greater than a preset threshold, the valid driving image is deleted to obtain the remaining valid scene images.

[0078] Step S22: Determine the current recorded location corresponding to the valid scene image based on the vehicle positioning information.

[0079] Step S23: Determine whether the currently recorded location is a preset scenic spot location.

[0080] Step S24: If yes, then the valid scene image corresponding to the current recording position is taken as the landscape image.

[0081] It should be understood that the aforementioned current recorded location can be the location of the vehicle when the vehicle-mounted DVR captures a valid scene image. Since the valid scene image is bound to the corresponding vehicle positioning information when it is captured, the current recorded location corresponding to a certain valid scene image can be obtained based on the GPS positioning information in the vehicle positioning information.

[0082] It should be noted that the aforementioned preset scenic spot locations may include scenic areas and landmark blocks, as well as other locations with good scenery during the journey. These locations can be obtained through map markings, or they can be preset by the user. This embodiment does not impose any restrictions on these locations.

[0083] In a specific implementation, the device can determine the current recording location corresponding to the valid scene image based on the GPS positioning information in the vehicle positioning information, and determine whether the current recording location is a preset scenic spot location. If so, the valid scene image corresponding to the current recording location is used as the aforementioned landscape image.

[0084] Step S30: Generate a travel record based on the landscape image and the vehicle location information.

[0085] Understandably, the aforementioned travel records can be records of travel itineraries, and can include travel records in written form and travel records in video form. Travel records in written form can include textual descriptions of the content of the trip, while travel records in video form can include scenic images of the content of the trip.

[0086] It should be understood that when generating travel records in text form, the content may involve passing attractions and the order in which they were visited, which can be generated using vehicle location information. When generating travel records in video form, the content needs to display the captured landscape images, which can be obtained using landscape images.

[0087] In practice, the aforementioned device can generate the travel record based on landscape images and vehicle location information.

[0088] In this embodiment, the device can acquire driving recording video from an in-vehicle DVR, split the video to obtain driving recording images corresponding to each frame, remove duplicate driving recording images, and obtain valid driving images. A target detection algorithm is used to perform scene recognition on the valid driving images, and the number of pedestrians or vehicles in the valid driving images is counted based on the scene recognition results. The valid driving images are then filtered based on the count, and the proportion of occlusion area of ​​obstructing objects in the valid driving images can be determined. If the occlusion area is greater than a preset threshold, the valid driving image is deleted, obtaining the remaining valid scene images. The current recording location corresponding to the valid scene image is determined based on the GPS positioning information in the vehicle positioning information, and it is determined whether the current recording location is a preset scenic spot location. If so, the valid scene image corresponding to the current recording location is used as the aforementioned scenic image. The travel record is generated based on the scenic image and the vehicle positioning information. Compared to existing methods, this embodiment can filter scenic images from driving recording video and generate travel records without requiring manual filtering by the user. Furthermore, the travel record facilitates users' recall of their travel experiences, improving the user experience.

[0089] refer to Figure 3 , Figure 3 This is a flowchart illustrating the second embodiment of the travel record generation method of the present invention.

[0090] Furthermore, in order to accurately deduplicate similar dashcam images, in this embodiment, as follows: Figure 3 As shown, the steps described above for deduplicating the split dashcam video to obtain valid driving images include:

[0091] Step S11: Extract features from each frame of the split driving record video to obtain image features.

[0092] It should be noted that the above-mentioned image features can be any features other than the background in the dashcam image, and this embodiment does not limit the specific features.

[0093] It is understood that the above image features can be extracted using a preset convolutional neural network model, and the specific preset convolutional neural network model is not limited in this embodiment.

[0094] For easier understanding, please refer to Figure 4 To explain, Figure 4 This is a schematic diagram of similar image filtering in the second embodiment of the travel record generation method of the present invention, as shown below. Figure 4 As shown, two adjacent frames from each frame of the vehicle recording image can be selected for judgment. Figure 4The image shows two dashcam frames, A and B, which are adjacent frames. These frames are then input into a convolutional neural network model for feature extraction to obtain the corresponding image features.

[0095] Step S12: Measure the similarity of all driving recorder images based on the image features;

[0096] Step S13: Based on the measurement results, deduplicate the split driving recording video to obtain valid driving images.

[0097] It should be understood that this embodiment can measure the similarity of image features based on cosine similarity, which can be obtained through the following formula:

[0098]

[0099] In the formula, similarity is the above measurement result, cos(θ) is the cosine similarity, A is the image feature corresponding to the driving record image frame A, B is the image feature corresponding to the driving record image frame B, and n is the number of vectors corresponding to the image features corresponding to the driving record image frame A and the image features corresponding to the driving record image frame B.

[0100] It should also be noted that, continuing as Figure 4 As shown, in the deduplication process, this embodiment can compare the preset similarity with the cosine similarity in the measurement results. If the cosine similarity is greater than the preset similarity, it indicates that the driving recorder image frame A and the driving recorder image frame B have a high similarity, and thus can be determined as similar images. The device can select only the driving recorder image frame A and not the driving recorder image frame B. If the cosine similarity is less than the preset similarity, it indicates that the driving recorder image frame A and the driving recorder image frame B have a low similarity, and thus can be determined as dissimilar images. The device can select the driving recorder image frame B.

[0101] It should be emphasized that, since the above-mentioned device in this embodiment is based on the chronological order of shooting, that is, firstly, the similarity between the first frame and the second frame of the driving record image is measured to determine whether to select the second frame of the driving record image. If selected, the similarity between the second frame and the third frame of the driving record image is measured. If not selected, the similarity between the first frame and the third frame of the driving record image is measured, and so on, until the similarity measurement with the last frame of the driving record image is completed.

[0102] In a specific implementation, the device can extract features from each frame of the split driving recording video to obtain image features, calculate the cosine similarity between the image features of adjacent frames, measure the similarity, and remove duplicates based on the measurement results if they are similar, and select the selected driving recording image as the above-mentioned valid driving image.

[0103] Furthermore, to improve the accuracy of deduplication, in this embodiment, step S13 includes:

[0104] Step S131: Obtain the vehicle location information corresponding to the split driving record video, and determine the vehicle speed based on the vehicle location information;

[0105] Step S132: Based on the measurement results and the vehicle speed, deduplicate the split driving recording video to obtain valid driving images.

[0106] It should be noted that when the above-mentioned device is recording driving video, it can also bind and store the vehicle driving data at the corresponding moment with the driving video. The vehicle driving data can be data related to the vehicle during driving, such as the vehicle speed. During recording, the vehicle speed can be obtained by collecting the vehicle speed through the above-mentioned positioning device.

[0107] Continue as Figure 4 As shown in this embodiment, the device can determine whether the vehicle is moving at a low speed or is parked when the driving record image is captured based on the vehicle's speed. If so, it can directly perform deduplication.

[0108] It is understood that the above-mentioned device can determine whether it is below a preset speed. If it is below the preset speed, it can be determined to be in a low-speed state. At the same time, if the vehicle's moving speed is 0, it can be determined to be in a parked state. The specific preset speed can be set according to the actual situation, and this embodiment does not impose any restrictions.

[0109] It should be understood that continuing as Figure 4 As shown, the above-mentioned device can also perform deduplication based on GPS positioning information in vehicle positioning information, that is, determine whether the vehicle position corresponding to the driving record image of adjacent frames has not moved, or whether the moving distance is less than the preset moving distance. If so, deduplication can be performed directly.

[0110] In practice, the aforementioned device can determine the vehicle's speed based on the vehicle's positioning information, and deduplicate the split driving recording video based on the vehicle's speed and measurement results to obtain valid driving images, thereby further improving the accuracy and speed of deduplication.

[0111] In this embodiment, the device described above can extract features from each frame of the split driving recording video to obtain image features, calculate the cosine similarity between the image features of adjacent frames, and perform similarity measurement. If the measurement results are similar, deduplication is performed; if they are not similar, they are selected. The selected driving recording image is then used as the effective driving image, thereby improving the accuracy of deduplication. At the same time, the device can determine the vehicle's speed based on the vehicle's positioning information, and perform deduplication on the split driving recording video based on the vehicle's speed and the measurement results to obtain effective driving images, thereby further improving the accuracy and speed of deduplication.

[0112] refer to Figure 5 , Figure 5 This is a flowchart illustrating the third embodiment of the travel record generation method of the present invention.

[0113] Furthermore, since the generated travel records can be in text form or video form, such as Figure 5 As shown, in order to generate a travel record in text form, in this embodiment, step S30 includes:

[0114] Step S31: Construct a landscape image metadata group based on the landscape image and the vehicle positioning information. It should be noted that the aforementioned landscape image metadata group can be a data group containing attributes of all landscape images, and can include all filtered landscape images and their corresponding vehicle positioning information.

[0115] For easier understanding, please refer to Figure 6 To explain, Figure 6 This is a schematic diagram illustrating the construction of landscape image data sets in the third embodiment of the travel record generation method of the present invention, as shown below. Figure 6 As shown, it can detect vehicles and pedestrians in valid driving images, determine whether they are obstructed, and determine whether the road conditions are congested, thereby obtaining valid scene images. It can also combine GPS positioning information to determine whether the current recorded location corresponding to the valid scene image is a preset scenic spot location, thereby obtaining landscape images.

[0116] Understandably, the vehicle driving data mentioned above may also include the steering wheel speed corresponding to each landscape image at the time of shooting. The steering wheel speed can be used to determine whether the vehicle is currently reversing, etc., and further filter the images.

[0117] In practical implementation, the aforementioned device can construct a landscape image metadata set by combining landscape images with corresponding vehicle location information.

[0118] Step S321: Determine the vehicle driving data corresponding to each scenic image based on the vehicle positioning information in the scenic image data group;

[0119] Step S331: Generate preliminary text information based on the current recorded location, the vehicle driving data, and the landscape image.

[0120] It should be understood that the aforementioned preliminary text information can be text information related to the requirements for generating travel records in text form. In this embodiment, the device can generate a preliminary text description based on the current recording location, vehicle driving data, and scenic spots corresponding to the landscape images through an automated prompt engine. The starting location and landmarks passed can be determined based on the current recording location, the vehicle speed can be determined based on the vehicle driving data, and the destination scenic spot can be determined based on the landscape images. The determined starting location, landmarks, vehicle speed, and scenic spot location are then filled into a preset text template. For ease of understanding, an example is given below. For instance, the preset text template is: I drove from (starting location) through (landmark), and the scenery along the way was beautiful. I passed (scenic spot location). Please generate a 200-word brief with an emotional description for me.

[0121] Then, the specific content of the above-mentioned device can be filled into the corresponding brackets in the preset text template to form the above preliminary text information. For example, if the starting location is D City, the landmark building is E Cross-Sea Bridge, and the scenic spot is F Scenic Spot, the preliminary text information generated after filling in the information is: I drove from D City through E Cross-Sea Bridge. The scenery along the way was beautiful. I passed F Scenic Spot. Please generate a 200-word brief with emotional description for me.

[0122] It should be emphasized that the above-mentioned preset text template can be set according to the actual situation. The 200 characters in the above-mentioned preset text template are also used for illustration, and this embodiment does not impose any restrictions on it.

[0123] In practical implementation, the above-mentioned device can extract vehicle driving data corresponding to each scenic image from the vehicle positioning information in the scenic image data set, and then fill the current recorded location, vehicle driving data and scenic image into the corresponding preset text template to generate preliminary text information.

[0124] Step S341: Input the preliminary text information into the preset large language model to obtain the corresponding itinerary summary.

[0125] It should also be noted that the aforementioned preset large language model can be used to generate corresponding text content after natural language processing based on the initial input text information. In this embodiment, large language models such as Generative Pre-trained Transformer (GTP) and Bidirectional Encoder Representations from Transformers (BERT) can be used as the aforementioned preset large language model, and this embodiment does not impose any restrictions.

[0126] Understandably, the above itinerary summary can be a summary of the travel record in text form. After inputting the preliminary text information into the preset large language model, a itinerary summary of about 200 words about the preliminary text information can be obtained.

[0127] Furthermore, in order to generate a travel record in video format, after step S31 above, the following steps are also included:

[0128] Step S322: Obtain the preset style text and convert the preset style text into the corresponding style semantic vector.

[0129] It should be noted that the preset style text mentioned above can be the text corresponding to the video style of the travel record that the user needs to generate in video format. For example, it may include preset comic style text, preset cyberpunk style text, etc. The preset comic style text can indicate that the video style of the travel record generated in video format is comic style, and the preset cyberpunk style text can indicate that the video style of the travel record generated in video format is cyberpunk style. The preset style text mentioned above can be determined according to the user's preferences or needs. This embodiment does not impose any restrictions.

[0130] Understandably, the aforementioned style semantic vector can be a vector representing a preset style text mapped to a high-dimensional vector space. In order for the aforementioned device to understand the specific meaning of the preset style text, the preset style text can be converted into a corresponding style semantic vector so that the aforementioned device can determine the corresponding meaning based on the vector.

[0131] Step S332: Input the landscape image metadata group and the style semantic vector into a preset style conversion model to obtain a target style image. The preset style conversion model is used to convert the image in the metadata group into a style image that matches the style text.

[0132] It should be understood that the above-mentioned preset style transfer model can be a model for performing style transfer. In this embodiment, stable diffusion can be used as the above-mentioned preset style transfer model. Through stable diffusion, the landscape image can be gradually denoised, thereby generating a target style image that matches the preset style text.

[0133] Step S342: Decode the target style image and stitch the decoded target style images together to generate the corresponding travel video.

[0134] It should also be noted that the above-mentioned device can decompress the generated target style image to obtain the decoded target style image, and then stitch the decoded target style image in a preset order, which can be the order of shooting time, or of course other orders. This embodiment does not limit this.

[0135] In a specific implementation, the device can acquire preset style text, convert the preset style text into a corresponding style semantic vector, input the style semantic vector and the style image in the landscape image data group into a preset style conversion model to obtain a target style image, decode the target style image, and stitch the decoded target style image in a preset order to obtain a travel record in video form, i.e., the aforementioned travel video.

[0136] It should also be emphasized that, after user authorization, the generated trip summary or short video can be pushed to the user's vehicle infotainment system, email, or relevant mobile application for easy viewing.

[0137] In this embodiment, the device described above can construct a landscape image data set by combining landscape images with corresponding vehicle location information. The device can extract vehicle driving data corresponding to each landscape image from the vehicle location information in the landscape image data set, and then fill the current recorded location, vehicle driving data, and landscape image into the corresponding preset text template to generate preliminary text information. After inputting the preliminary text information into a preset large language model, a travel summary corresponding to the preliminary text information can be obtained. At the same time, the device can obtain preset style text and convert the preset style text into a corresponding style semantic vector. The style semantic vector and the style image in the landscape image data set are input into a preset style conversion model to obtain a target style image. The target style image is decoded, and the decoded target style image is stitched together in a preset order to obtain a travel record in video form.

[0138] Furthermore, embodiments of the present invention also propose a storage medium storing a travel record generation program, wherein when the travel record generation program is executed by a processor, it implements the steps of the travel record generation method described above.

[0139] Reference Figure 7 , Figure 7 This is a structural block diagram of the first embodiment of the travel record generation device of the present invention.

[0140] like Figure 7 As shown, the travel record generation device proposed in this embodiment of the invention includes:

[0141] The video splitting module 701 is used to split the driving record video, remove duplicates from the split driving record video, and obtain valid driving images.

[0142] The image filtering module 702 is used to perform scene recognition on the valid driving images, and filter the valid driving images based on the scene recognition results and vehicle positioning information to obtain landscape images;

[0143] The record generation module 703 is used to generate a travel record based on the landscape image and the vehicle positioning information.

[0144] In this embodiment, the device can acquire driving recording video from an in-vehicle DVR, split the video to obtain driving recording images corresponding to each frame, remove duplicate driving recording images, and obtain valid driving images. A target detection algorithm is used to perform scene recognition on the valid driving images, and the number of pedestrians or vehicles in the valid driving images is counted based on the scene recognition results. The valid driving images are then filtered based on the count, and the proportion of occlusion area of ​​obstructing objects in the valid driving images can be determined. If the occlusion area is greater than a preset threshold, the valid driving image is deleted, obtaining the remaining valid scene images. The current recording location corresponding to the valid scene image is determined based on the GPS positioning information in the vehicle positioning information, and it is determined whether the current recording location is a preset scenic spot location. If so, the valid scene image corresponding to the current recording location is used as the aforementioned scenic image. The travel record is generated based on the scenic image and the vehicle positioning information. Compared to existing methods, this embodiment can filter scenic images from driving recording video and generate travel records without requiring manual filtering by the user. Furthermore, the travel record facilitates users' recall of their travel experiences, improving the user experience.

[0145] In one implementation, the image filtering module 702 is further configured to filter the valid driving images based on the scene recognition results to obtain valid scene images; determine the current recording location corresponding to the valid scene image based on the vehicle positioning information; determine whether the current recording location is a preset scenic spot location; if so, then use the valid scene image corresponding to the current recording location as a landscape image.

[0146] In one implementation, the image filtering module 702 is further configured to determine the occlusion area ratio of occluding objects in the valid driving image based on the scene recognition result; and to filter the valid driving image according to the comparison result of the occlusion area ratio and a preset threshold to obtain a valid scene image.

[0147] Based on the first embodiment of the travel record generation device of the present invention described above, a second embodiment of the travel record generation device of the present invention is proposed.

[0148] In this embodiment, the video splitting module 701 is further configured to extract features from each frame of the split driving recording video to obtain image features; measure the similarity of all driving recording images based on the image features; and deduplicate the split driving recording video based on the measurement results to obtain valid driving images.

[0149] As one implementation, the video splitting module 701 is further configured to obtain vehicle positioning information corresponding to the split driving recording video, and determine the vehicle's moving speed based on the vehicle positioning information; and deduplicate the split driving recording video based on the measurement result and the vehicle's moving speed to obtain valid driving images.

[0150] Based on the above embodiments of the travel record generation device of the present invention, a third embodiment of the travel record generation device of the present invention is proposed.

[0151] In this embodiment, the record generation module 703 is further configured to construct a landscape image data set based on the landscape image and the vehicle positioning information; determine the vehicle driving data corresponding to each landscape image based on the vehicle positioning information in the landscape image data set; generate preliminary text information based on the current recording location, the vehicle driving data and the landscape image; and input the preliminary text information into a preset large language model to obtain the corresponding itinerary summary.

[0152] As one implementation, the recording generation module 703 is further configured to acquire preset style text and convert the preset style text into a corresponding style semantic vector; input the landscape image metadata group and the style semantic vector into a preset style conversion model to obtain a target style image, wherein the preset style conversion model is used to convert the image in the metadata group into a style image that matches the style text; decode the target style image and stitch the decoded target style image together to generate a corresponding travel video.

[0153] Other embodiments or specific implementations of the travel record generation device of the present invention can be found in the above-described method embodiments, and will not be repeated here.

[0154] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0155] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0156] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory / random access memory, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0157] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.

Claims

1. A method for generating travel records, characterized in that, The method includes the following steps: The dashcam video is split into segments, and duplicate segments are removed from the split dashcam video to obtain valid driving images; Scene recognition is performed on the valid driving images. Based on the scene recognition results, the occlusion area ratio of the occluding objects in the valid driving images is determined. Based on the occlusion area ratio and vehicle positioning information, the valid driving images are filtered to obtain landscape images. The scene recognition is used for occlusion filtering. A travel record is generated based on the landscape images and the vehicle location information; The step of deduplicating the split driving record video to obtain valid driving images includes: Feature extraction is performed on each frame of the split driving record video to obtain image features; similarity is measured on all driving record images based on the image features; vehicle positioning information corresponding to the split driving record video is obtained, and vehicle speed is determined based on the vehicle positioning information; duplicate driving record videos are removed based on the measurement results and the vehicle speed to obtain valid driving images. Specifically, deduplication is performed when the vehicle is moving at low speed or stationary when the recorded driving image is captured, based on the vehicle's speed.

2. The travel record generation method as described in claim 1, characterized in that, The step of filtering the valid driving images based on the occlusion area ratio and vehicle positioning information to obtain landscape images includes: The valid driving images are filtered based on the occlusion area ratio to obtain valid scene images; The current recorded location corresponding to the valid scene image is determined based on the vehicle positioning information; Determine whether the currently recorded location is a preset scenic spot location; If so, the valid scene image corresponding to the current recorded position will be used as the landscape image.

3. The travel record generation method as described in claim 2, characterized in that, The step of filtering the valid driving images based on the occlusion area ratio to obtain valid scene images includes: The valid driving images are filtered based on the comparison between the occlusion area ratio and a preset threshold to obtain valid scene images.

4. The travel record generation method as described in claim 2 or 3, characterized in that, The step of generating a travel record based on the landscape image and the vehicle location information includes: Construct a landscape image metadata group based on the landscape image and the vehicle positioning information; The vehicle driving data corresponding to each scenic image is determined based on the vehicle positioning information in the scenic image data set. Preliminary text information is generated based on the current recorded location, the vehicle driving data, and the landscape image; The preliminary text information is input into a preset large language model to obtain the corresponding itinerary summary.

5. The travel record generation method as described in claim 4, characterized in that, After the step of constructing the landscape image metadata group based on the landscape image and the vehicle positioning information, the method further includes: Obtain preset style text and convert the preset style text into a corresponding style semantic vector; The landscape image metadata set and the style semantic vector are input into a preset style conversion model to obtain a target style image. The preset style conversion model is used to convert the image in the metadata set into a style image that matches the style text. The target style image is decoded, and the decoded target style images are stitched together to generate the corresponding travel video.

6. A travel record generation device, characterized in that, The device includes: The video splitting module is used to split the dashcam video, remove duplicates from the split dashcam video, and obtain valid driving images. The image filtering module is used to perform scene recognition on the valid driving images, determine the occlusion area ratio of occluding objects in the valid driving images based on the scene recognition results, and filter the valid driving images based on the occlusion area ratio and vehicle positioning information to obtain landscape images. The scene recognition is used for occlusion filtering. A record generation module is used to generate a travel record based on the landscape image and the vehicle positioning information; The video segmentation module is further configured to extract features from each frame of the segmented driving recording video to obtain image features; measure the similarity of all driving recording images based on the image features; obtain vehicle positioning information corresponding to the segmented driving recording video and determine the vehicle speed based on the vehicle positioning information; and deduplicate the segmented driving recording video based on the measurement results and the vehicle speed to obtain valid driving images. Specifically, deduplication is performed when the vehicle is moving at low speed or stationary when the recorded driving image is captured, based on the vehicle's speed.

7. A travel record generation device, characterized in that, The device includes: a memory, a processor, and a travel record generation program stored in the memory and executable on the processor, the travel record generation program being configured to implement the steps of the travel record generation method as described in any one of claims 1 to 6.

8. A storage medium, characterized in that, The storage medium stores a travel record generation program, which, when executed by a processor, implements the steps of the travel record generation method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Intelligent vehicle-mounted camera shielding monitoring method and device based on optical flow and auxiliary driving system

    CN110913212A

  • Map-based journey recording and sharing method and system and storage medium

    CN116337095A

  • Generation method and device of stylized image generation model, equipment and storage medium

    CN116740204A