Video generation method and apparatus, and electronic device

By acquiring and dividing image materials with location information, generating trajectory videos and combining video clips, the problem in the existing technology of being unable to display photo location information when merging videos is solved, and the quality and enjoyment of the video are improved.

WO2024179347A1PCT designated stage expired Publication Date: 2024-09-06BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/077922
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2024-02-21
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing technology cannot effectively merge photos and videos, resulting in the merged video being unable to properly display the location information of the photo. The image-synthesized video has single content, low quality, and poor viewing quality.

Method used

By acquiring multiple image materials with location information, they are divided into material collections, and trajectory videos are generated based on these collections. Target videos are generated by combining video clips to show the dynamic position changes of the photos and increase the richness and viewing value of the video.

Benefits of technology

The video generation method is implemented, which can easily and quickly synthesize videos, display photo location information, improve video quality and viewing, and ensure rich video content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024077922_06092024_PF_FP
    Figure CN2024077922_06092024_PF_FP
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a video generation method and apparatus, and an electronic device. The video generation method comprises: obtaining a plurality of image materials; classifying the plurality of image materials into a plurality of material sets according to the positions of the plurality of image materials, and determining the positions of the plurality of material sets; generating a trajectory video on the basis of the positions of the plurality of material sets, wherein the trajectory video presents on a map a dynamic trajectory route formed by sequentially connecting position marks corresponding to the plurality of material sets; and generating a target video on the basis of video clips of the plurality of material sets and the trajectory video, wherein in the target video, a first video clip is adjacent to a third video clip, the third video clip is adjacent to a second video clip, the first video clip is a video clip of a material set corresponding to a first position mark, the second video clip is a video clip of a material set corresponding to a second position mark, and the third video clip is a video clip presenting a route segment of the trajectory route between the first position mark and the second position mark in the trajectory video.
Need to check novelty before this filing date? Find Prior Art

Description

Video generation method, device and electronic device

[0001] This application claims priority to Chinese patent application No. 202310175871.6 filed on February 27, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field

[0002] Embodiments of the present disclosure relate to a video generation method, apparatus, and electronic device. Background Art

[0003] With the development of the internet, recording content using short videos has become increasingly popular. The coherence of video can offset the fragmented nature of image content. People often use electronic devices to capture photos or videos. Currently, methods for converting photos into videos or combining multiple videos into a single video are limited. The combined video only contains the image information of the original video or image and cannot properly display the corresponding location information of the photo. As a result, the video content of the image composite is monotonous, low-quality, and poorly viewed.

[0004] Summary of the Invention

[0005] The purpose of the embodiments of the present disclosure is to provide a video generation method, device and electronic device, which can easily and quickly synthesize videos and the synthesized videos can appropriately display the location information corresponding to the photos, enrich the video content, and improve the video quality and viewing experience.

[0006] To achieve the above technical effects, the embodiments of the present disclosure are implemented through the following aspects.

[0007] In a first aspect, an embodiment of the present disclosure provides a video generation method, comprising: acquiring a plurality of image materials, wherein the plurality of image materials have position information, and the position information corresponding to the image materials is used to indicate the positions corresponding to the image materials; dividing the plurality of image materials into a plurality of material sets according to the positions corresponding to the plurality of image materials, and determining the positions corresponding to the plurality of material sets; wherein one of the material sets includes at least one of the image materials; in the plurality of material sets, the distance between the positions corresponding to different image materials in the same material set is smaller than the distance between the positions corresponding to image materials of different material sets; generating a trajectory video based on the positions corresponding to the plurality of material sets; the trajectory video is used to present the plurality of materials on a map. A dynamic trajectory route in which position markers corresponding to the sets are connected in sequence; a target video is generated based on the video clips of the multiple material sets and the trajectory video; wherein the video clips of the target material set among the multiple material sets are obtained by video editing the image materials in the target material set; in the target video, the first video clip is adjacent to the third video clip, and the third video clip is adjacent to the second video clip; the first video clip is the video clip of the material set corresponding to the first position marker, the second video clip is the video clip of the material set corresponding to the second position marker, and the third video clip is the video clip in the trajectory video for presenting the route segment of the trajectory route between the first position marker and the second position marker.

[0008] In a second aspect, an embodiment of the present disclosure provides a video generation device, comprising: an acquisition module for acquiring a plurality of image materials, wherein the plurality of image materials have position information, and the position information corresponding to the image materials is used to indicate the positions corresponding to the image materials; a processing module for dividing the plurality of image materials into a plurality of material sets according to the positions corresponding to the plurality of image materials, and determining the positions corresponding to the plurality of material sets; wherein one of the material sets includes at least one of the image materials; in the plurality of material sets, the distance between the positions corresponding to different image materials in the same material set is smaller than the distance between the positions corresponding to image materials of different material sets; a first determination module for generating a trajectory video based on the positions corresponding to the plurality of material sets; the trajectory video is used to be presented on a map A dynamic trajectory route in which the position markers corresponding to the multiple material sets are connected in sequence; a second determination module is used to generate a target video based on the video clips of the multiple material sets and the trajectory video; wherein the video clip of the target material set among the multiple material sets is obtained by video editing the image materials in the target material set; in the target video, the first video clip is adjacent to the third video clip, and the third video clip is adjacent to the second video clip; the first video clip is the video clip of the material set corresponding to the first position marker, the second video clip is the video clip of the material set corresponding to the second position marker, and the third video clip is the video clip in the trajectory video for presenting the route segment of the trajectory route between the first position marker and the second position marker.

[0009] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: a processor; and a memory arranged to store computer-executable instructions, wherein the computer-executable instructions, when executed by the processor, implement the steps of the video generation method as described in the first aspect above.

[0010] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple applications, the electronic device implements the steps of the video generation method described in the first aspect above.

[0011] In an embodiment of the present disclosure, a plurality of image materials are obtained, wherein the plurality of image materials have position information, and the position information corresponding to the image materials is used to indicate the positions corresponding to the image materials; the plurality of image materials are divided into a plurality of material sets according to the positions corresponding to the plurality of image materials, and the positions corresponding to the plurality of material sets are determined; wherein, one of the material sets includes at least one of the image materials; in the plurality of material sets, the distance between the positions corresponding to different image materials in the same material set is smaller than the distance between the positions corresponding to image materials of different material sets; based on the positions corresponding to the plurality of material sets, a trajectory video is generated; the trajectory video is used to present on a map a dynamic trajectory route in which the position marks corresponding to the plurality of material sets are sequentially connected; based on the plurality of material sets The video clip and the trajectory video generate a target video; wherein, the video clip of the target material set in the multiple material sets is obtained by video editing the image materials in the target material set; in the target video, the first video clip is adjacent to the third video clip, and the third video clip is adjacent to the second video clip; the first video clip is a video clip of the material set corresponding to the first position marker, the second video clip is a video clip of the material set corresponding to the second position marker, and the third video clip is a video clip in the trajectory video for presenting the route segment of the trajectory route between the first position marker and the second position marker. The video can be synthesized quickly and conveniently, and the synthesized video can appropriately display the location information corresponding to the photo, the video content is rich, and the video quality and viewing experience are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments recorded in the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0013] FIG1 shows a flow chart of a video generation method provided by an embodiment of the present disclosure;

[0014] FIG2 a shows a schematic diagram of a dynamic trajectory segment provided by an embodiment of the present disclosure;

[0015] FIG2 b shows a schematic diagram of a target video provided by an embodiment of the present disclosure;

[0016] FIG3 shows another flow chart of a video generation method according to an embodiment of the present disclosure;

[0017] FIG4 shows a schematic diagram of a first correspondence relationship provided by an embodiment of the present disclosure;

[0018] FIG5 shows a schematic structural diagram of a video generating device provided by an embodiment of the present disclosure; and

[0019] FIG6 is a schematic diagram of the hardware structure of an electronic device that executes the video generation method provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0020] In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present disclosure.

[0021] FIG1 shows a flow chart of a video generation method provided by an embodiment of the present disclosure. The method can be executed by an electronic device, such as a terminal device or a server device. In other words, the method can be executed by software or hardware installed on the terminal device or the server device. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. As shown in the figure, the method may include the following steps:

[0022] Step S101: Acquire multiple image materials.

[0023] Among them, the image material, for example, can be two or more pictures or video files uploaded by the user, or it can be a picture or video file obtained by the electronic device from its own image library or photo collection. The multiple image materials have location information, and the location information corresponding to the image material is used to indicate the location corresponding to the image material. For example, the attribute information of the image material can include its location information, and the electronic device can obtain the location information carried by it when obtaining the image material. For example, pictures taken using electronic devices such as digital cameras or mobile phones generally carry an exchangeable image file format (Exif) for recording the attribute information and shooting data of the photo. The location information of the picture shooting can be determined based on Exif.

[0024] In some cases, the image material does not carry its location information and time information, such as old photos, or the location information and time information carried by the image material are not applicable to this step. For example, the content of the old photo corresponds to city A, but the action of reshooting the old photo may occur in city B, then the location information carried by the image material may be city B. In this case, the user can also enter the location information and time information of the image material. The location information of the image material can be parsed into coordinates, including longitude and latitude, or other parameters representing the location, such as relative position parameters from a reference object. Optionally, the image material can also carry time information, and the time information of the image material includes the shooting date and shooting time.

[0025] Step S102: Divide the plurality of image materials into a plurality of material sets according to the positions corresponding to the plurality of image materials, and determine the positions corresponding to the plurality of material sets.

[0026] Among them, one of the material sets includes at least one of the image materials. In the multiple material sets, the distance between the positions corresponding to different image materials in the same material set is smaller than the distance between the positions corresponding to image materials in different material sets. Optionally, it can also be set that the difference between the positions corresponding to each of the image materials in a material set is smaller than a preset position threshold. Through the reasonable division of the material set, image materials with adjacent positions can be clustered into a cluster. For example, as shown in Figure 2a, the image materials within the scope of "Xi'an" can be clustered into one material set, and the image materials within the scope of "Lanzhou" can be clustered into one material set. The distance between the positions corresponding to different image materials in the material set corresponding to "Xi'an" is smaller than the distance between the positions corresponding to the image materials of the "Xi'an" material set and the image materials of the "Lanzhou" material set.

[0027] Specifically, the material collection processing may include parsing the location information of each image material into coordinate information and clustering the image materials whose coordinate distances are within a preset position threshold. This step may use the K-Means clustering (K-MEANS) algorithm to cluster the image materials, dividing the multiple image materials into multiple material collections based on the distances between the image material location information.

[0028] For example, as shown in Figure 2a, if "Xi'an" corresponds to multiple image clips, and the specific location information corresponding to each image clip varies, such as corresponding to different streets in Xi'an, if position marks are formed on trajectory line 11 based on the specific location information of each image clip, a large number of position marks will be generated, and a large number of dynamic tracks will be generated in subsequent steps. For example, dynamic track segment 1 shows movement from street a to street b in Xi'an, dynamic track segment 2 shows movement from street b to street c in Xi'an, and so on. Excessive fragmentation of the dynamic track segments will affect video quality. However, by properly dividing the material collection, the generated target video can appropriately display the location information corresponding to the image clips.

[0029] Optionally, the position information of each material set may be determined by averaging the position information of a plurality of image materials in the material set.

[0030] In this embodiment, Xi'an can be divided into a material set by setting a preset location threshold. In this step, location information is generated and marked on the trajectory line. In addition, in a subsequent step, multiple image materials in a material set are combined into a material segment to avoid excessive fragmentation of the dynamic trajectory segment granularity.

[0031] Step S103: Generate a trajectory video based on the positions corresponding to the multiple material sets.

[0032] The trajectory video is used to present a dynamic trajectory route on a map in which position marks corresponding to the multiple material sets are connected in sequence.

[0033] Figure 2a is a schematic diagram of a dynamic trajectory route. A dynamic trajectory route, such as trajectory line 11 in the figure, can include multiple location markers and at least one movement indicator 12. Location markers, such as "Xi'an" and "Lanzhou," are examples. Movement indicator 12 can be represented by the arrows in the figure. The specific marking format is merely illustrative and is not limited in this solution.

[0034] Specifically, the location information determined in the previous step corresponds to a location on the map such as "Xi'an" or "Lanzhou." In this step, the locations corresponding to the multiple location information can be marked on the map using location markers. The location markers can be in the form of coordinate points. The multiple location markers form a trajectory line 11, and each location marker on trajectory line 11 indicates the location corresponding to at least one of the location information on trajectory line 11.

[0035] Optionally, the image material can also carry time information. The correspondence between the position information and time information of the image material is a one-to-one relationship, that is, the position information of an image material corresponds to a time point. The movement order of the moving indicator 12 on the trajectory line can be determined based on the time sequence of multiple time points.

[0036] For example, the time information corresponding to image material 1 is January 1st of this year, and the corresponding location information 1 and location information 1 are marked on the map as "Xi'an"; the time information corresponding to image material 2 is January 5th of this year, and the corresponding location information 2 and location information 2 are marked on the map as "Lanzhou". The time information corresponding to image material 3 is January 10th of this year, and the corresponding location information 3 and location information 3 are marked on the map as "Zhangye"; the time information corresponding to image material 4 is January 15th of this year, and the corresponding location information 4 and location information 4 are marked on the map as "Dunhuang". Track line 11 is formed between the location marks "Xi'an", "Lanzhou", "Zhangye", and "Dunhuang".

[0037] When playing the trajectory video, the movement indicator 12 can dynamically indicate the position change from the first marker to the second marker among the multiple position markers along the trajectory line, as indicated by the time changes indicated by the multiple time information. For example, the movement indicator 12 can be an arrow used to indicate the movement of the position markers. In the above example, the arrow can indicate the position change from "Xi'an" to "Lanzhou" along the trajectory line 11 to indicate the time sequence. The movement indicator 12 can also be other indicators such as a cursor.

[0038] Step S104: generating a target video based on the video clips of the plurality of material sets and the trajectory video.

[0039] The video clips of the target material set among the multiple material sets are obtained by video editing the image materials in the target material set. In the target video, the first video clip is adjacent to the third video clip, and the third video clip is adjacent to the second video clip. The first video clip is the video clip of the material set corresponding to the first position marker, the second video clip is the video clip of the material set corresponding to the second position marker, and the third video clip is the video clip in the trajectory video that is used to present the route segment of the trajectory route between the first position marker and the second position marker.

[0040] As shown in Figure 2a, for example, the first video segment is a video segment from the material set corresponding to "Xi'an," the second video segment is a video segment from the material set corresponding to "Lanzhou," and the third video segment is a video segment in the trajectory video that represents the route segment from "Xi'an" to "Lanzhou." The playback order in the target video may include the first video segment, the third video segment, and the second video segment.

[0041] Figure 2b is a schematic diagram of the first video clip. In combination with Figure 2a, it can be used as a schematic diagram of the third video clip. In the target video, the first video clip shown in Figure 2b can be displayed first, such as the scenery video of "Xi'an", and then the third video clip shown in Figure 2a can be displayed, wherein the movement indicator 12 can indicate the movement from the first identifier "Xi'an" to the second identifier "Lanzhou". The second video clip corresponding to "Lanzhou" shown in Figure 2b is then displayed (not shown in the figure). Furthermore, through a similar dynamic trajectory segment, the movement from the first identifier "Lanzhou" to the second identifier "Zhangye" is displayed, and then the material clip corresponding to "Zhangye" is displayed. Through a similar dynamic trajectory segment, the movement from the first identifier "Zhangye" to the second identifier "Dunhuang" is displayed, and then the material clip corresponding to "Dunhuang" is displayed. Not shown one by one in the figure, and the same can be said.

[0042] Additionally, camera movement, animation, or transition effects can optionally be added during the switching of the plurality of image materials. For example, OpenGL (Open Graphics Library) video frame rendering technology can be used to insert transition effects such as fly-ins and fades when switching image materials to enhance the viewing experience of the material clips.

[0043] In one possible implementation, after the material collection processing is performed on the multiple image materials, when the number of image materials in the multiple material collections exceeds a quantity threshold, the image materials in the material collection are deleted based on a first preset rule until the number of image materials in the material collection does not exceed the quantity threshold. Specifically, the first preset rule may be to delete the image materials in descending order of at least one score of the clarity, completeness or aesthetics of the image materials, and retain image materials with higher scores that do not exceed the quantity threshold. For example, delete pictures with low resolution, irregular composition, or messy picture content. This implementation method can not only solve the problem of increased computational complexity in the material collection process due to too many image materials and excessively long generated videos, but also display rich video content and increase the viewing experience of the video.

[0044] In one possible implementation, the content of the image material in the material set can also be identified to determine at least one scene corresponding to the material set; in the first correspondence between text information and scenes, the first text information matching the scene is determined; and when the video clip of the material set is played, the first text information is displayed.

[0045] Wherein, before this step, a first correspondence may be set, and the first correspondence includes the correspondence between multiple scenes and the first text information. Figure 4 shows a schematic diagram of the first correspondence. The first correspondence 42 may include the correspondence between the scene "tree" and the first text information "tired of the prosperity of the red and purple flowers, and fell in love with this thick shade", that is, the input scene label "tree" corresponds to the first text information "tired of the prosperity of the red and purple flowers, and fell in love with this thick shade". When it is determined that the scene 41 of the material clip is "tree", the first text information is displayed through the playback page 43 when the material clip is played.

[0046] For another example, the first correspondence includes a correspondence between the scene "Xi'an" and first text information such as "Four Ancient Capitals" and "The Center of the Silk Road." As shown in Figure 2a, imagery with location information near Xi'an can be grouped as a collection, called the Xi'an collection. Clips corresponding to the Xi'an collection can be generated, and the first text information "The Center of the Silk Road" can be displayed to enrich the video content and increase the amount of information presented.

[0047] FIG3 shows another flow chart of a video generation method provided by an embodiment of the present disclosure. As shown in the figure, the method may include the following steps:

[0048] Step S301: Acquire multiple image materials.

[0049] Step S302: Divide the plurality of image materials into a plurality of material sets according to the positions corresponding to the plurality of image materials, and determine the positions corresponding to the plurality of material sets.

[0050] Step S303: Generate a trajectory video based on the positions corresponding to the multiple material sets.

[0051] Step S304: Generate a target video based on the video clips of the plurality of material sets and the trajectory video. The above steps can be described in the corresponding steps of the embodiment of FIG1 , and will not be repeated here.

[0052] Step S305: sorting the plurality of image materials according to a second preset rule; and using the image materials whose sorting conforms to the preset sorting rule as the beginning or the end of the target video.

[0053] Specifically, the second preset rule may be a rule for scoring the aesthetics of the image material based on photographic techniques. For example, a trained quality assessment model may be used to score the aesthetics of the image material based on aspects such as composition, color, lighting, and creative content, with higher image quality receiving a higher score. Image material sorted according to the predetermined sorting rule may be converted into a video and then spliced ​​with the target video as the opening or ending credits, further enriching the video's content.

[0054] Step S306: receiving a target theme input by a user; determining second text information corresponding to the target theme in a second correspondence between text information and themes; and displaying the second text information corresponding to the target theme when displaying the opening or ending credits of the target video.

[0055] Specifically, the user can specify the theme of the generated video, and based on the theme entered by the user, multiple texts corresponding to the theme are searched, and the multiple texts or one of the texts are displayed in the opening or end credits of the target video. Optionally, if no corresponding text can be found based on the theme entered by the user, a predetermined text, such as the most frequently used opening or closing remarks, can be displayed as the second text information in the opening or end credits of the target video.

[0056] In one implementation, a second correspondence is set before this step, and the second correspondence includes correspondences between multiple topics and second text messages. For example, it includes: the correspondence between the theme blue sky and the second text message "white clouds floating in the blue sky" and "the sky is vast and the wilderness is vast, the wind blows the grass low and cattle and sheep are seen", and includes: the correspondence between the theme sunrise and the second text message "the sunrise makes the river flowers redder than fire". The type of the second correspondence can be one-to-one, one-to-many, many-to-one, many-to-many, etc. The setting of the second correspondence is similar to the first correspondence, and can be combined with Figure 4 as an illustration, and no further details are given.

[0057] In one implementation, step S303 may include: generating a dynamic trajectory segment on the map for representing the change of position according to the preset navigation rules and the corresponding relationship. That is, the dynamic trajectory route is determined based on the preset navigation rules. Specifically, the preset navigation rules may be navigation rules for different modes of transportation, such as using the navigation rules of high-speed rail to generate a series of discrete coordinates of the passing stations from the departure point to the destination on the map, drawing the movement process of the above discrete coordinates frame by frame along the change of time, and connecting each image material in series as a dynamic trajectory segment. The preset navigation rules may be obtained from a transportation application (Application, App). Optionally, the preset navigation rules that match the theme can be determined by the input theme. For example, if the video theme input by the user is "Retracing the Silk Road", then this step can determine the navigation information that matches the Silk Road, and based on the corresponding relationship generated by the navigation information of the Silk Road and the image material, generate a dynamic trajectory segment on the map for representing the change of position, such as shown in Figure 2a.

[0058] The video generation method provided by the embodiment of the present disclosure generates dynamic trajectory segments on a map for representing position changes based on preset navigation rules and the corresponding relationship, so that the dynamic trajectory segments in the video are more consistent with the traffic scene, further enriching the content displayed in the video and improving the video quality.

[0059] FIG5 shows a schematic structural diagram of a video generating apparatus provided by an embodiment of the present disclosure. The apparatus 500 includes: an acquisition module 501 , a processing module 502 , a first determination module 503 , and a second determination module 504 .

[0060] The acquisition module 501 is used to acquire a plurality of image materials, wherein the plurality of image materials have position information, and the position information corresponding to the image materials is used to indicate the positions corresponding to the image materials.

[0061] The processing module 502 is used to divide the multiple image materials into multiple material sets according to the positions corresponding to the multiple image materials, and determine the positions corresponding to the multiple material sets; wherein, one of the material sets includes at least one of the image materials; and in the multiple material sets, the distance between the positions corresponding to different image materials in the same material set is smaller than the distance between the positions corresponding to image materials in different material sets.

[0062] The first determining module 503 is configured to generate a trajectory video based on the positions corresponding to the multiple material sets; the trajectory video is configured to present a dynamic trajectory route on a map in which the position markers corresponding to the multiple material sets are sequentially connected.

[0063] The second determination module 504 is used to generate a target video based on the video clips of the multiple material sets and the trajectory video; wherein, the video clip of the target material set in the multiple material sets is obtained by video editing the image materials in the target material set; in the target video, the first video clip is adjacent to the third video clip, and the third video clip is adjacent to the second video clip; the first video clip is a video clip of the material set corresponding to the first position marker, the second video clip is a video clip of the material set corresponding to the second position marker, and the third video clip is a video clip in the trajectory video for presenting the route segment of the trajectory route between the first position marker and the second position marker.

[0064] In one implementation, after the processing module 502 divides the multiple image materials into multiple material sets, if the number of image materials in the multiple material sets exceeds a quantity threshold, the processing module 502 deletes the image materials in the material sets until the number of image materials in the material sets does not exceed the quantity threshold.

[0065] In one implementation, after dividing the multiple image materials into multiple material sets, the processing module 502 identifies the content of the image materials in the material set to determine at least one scene corresponding to the material set; in the first correspondence between text information and scenes, determines the first text information matching the scene; and when playing the video clip of the material set, displays the first text information.

[0066] In one implementation, after acquiring the plurality of image materials, the processing module 502 sorts the plurality of image materials; and uses the image materials whose sorting conforms to a predetermined sorting rule as the header or the trailer of the target video.

[0067] In one implementation, after acquiring the multiple image materials, the processing module 502 receives a target theme input by the user; determines the second text information corresponding to the target theme in the second correspondence between the text information and the theme; and displays the second text information corresponding to the target theme when displaying the opening or ending of the target video.

[0068] In one implementation, the dynamic trajectory route is determined based on preset navigation rules.

[0069] In one implementation, the processing module 502 determines the position corresponding to the material set according to an average value of positions corresponding to a plurality of the image materials in the material set.

[0070] The device 500 provided in the embodiment of the present disclosure can execute the various methods described in the above method embodiments and realize the functions and beneficial effects of the various methods described in the above method embodiments, which will not be repeated here.

[0071] FIG6 shows a schematic diagram of the hardware structure of an electronic device that executes the video generation method provided by an embodiment of the present disclosure. Referring to the figure, at the hardware level, the electronic device includes a processor, and optionally, an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.

[0072] The processor, network interface, and memory can be interconnected via an internal bus, such as an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. These buses can be classified as address buses, data buses, and control buses. For ease of illustration, the figure uses only one bidirectional arrow, but this does not imply that there is only one bus or only one type of bus.

[0073] The memory is used to store programs. Specifically, the program may include program code, which includes computer operating instructions. The memory may include internal memory and non-volatile memory, and provides instructions and data to the processor.

[0074] The processor reads the corresponding computer program from the non-volatile memory into the internal memory and then runs it, forming a device for locating the target user at a logical level. The processor executes the program stored in the memory and is specifically used to perform the various methods described in Figures 1 and 3 of the method embodiments described above, and to achieve the functions and beneficial effects of the various methods described in Figures 1 and 3 of the method embodiments described above, which will not be further described here.

[0075] The methods disclosed in the embodiments shown in Figures 1 and 3 of the present disclosure can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor or by software instructions. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in conjunction with the embodiments of the present disclosure can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.

[0076] The electronic device can also execute the methods described in FIG. 1 and FIG. 3 in the foregoing method embodiments, and realize the functions and beneficial effects of the methods described in FIG. 1 and FIG. 3 in the foregoing method embodiments, which will not be repeated here.

[0077] Of course, in addition to software implementation, the electronic device disclosed in the present invention does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0078] The embodiments of the present disclosure further propose a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple application programs, the electronic device executes the methods described in Figures 1 and 3 in the above method embodiments, and realizes the functions and beneficial effects of the methods described in Figures 1 and 3 in the above method embodiments, which will not be repeated here.

[0079] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0080] Furthermore, an embodiment of the present disclosure also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the functions and beneficial effects of the various methods described in Figures 1 and 3 in the above method embodiments are implemented, which will not be repeated here.

[0081] In short, the above description is only a preferred embodiment of the present disclosure and is not intended to limit the scope of protection of the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.

[0082] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0083] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0084] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0085] The various embodiments of this disclosure are described in a progressive manner. Similar portions between the various embodiments can be referenced to each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so their description is relatively simple. For relevant portions, refer to the description of the method embodiments.

Claims

1. A video generation method, comprising: Acquire a plurality of image materials, wherein the plurality of image materials have position information, and the position information corresponding to the image materials is used to indicate positions corresponding to the image materials; According to the positions corresponding to the multiple image materials, the multiple image materials are divided into multiple material sets, and the positions corresponding to the multiple material sets are determined; wherein one of the material sets includes at least one of the image materials; and in the multiple material sets, the distance between the positions corresponding to different image materials in the same material set is smaller than the distance between the positions corresponding to image materials in different material sets; Based on the positions corresponding to the multiple material sets, a trajectory video is generated; the trajectory video is used to present a dynamic trajectory route on a map in which the position marks corresponding to the multiple material sets are sequentially connected; Generate a target video based on the video clips of the multiple material sets and the trajectory video; The video clips of the target material set in the plurality of material sets are obtained by performing video editing processing on the image materials in the target material set; In the target video, the first video clip is adjacent to the third video clip, and the third video clip is adjacent to the second video clip; the first video clip is a video clip of a material set corresponding to a first position marker, the second video clip is a video clip of a material set corresponding to a second position marker, and the third video clip is a video clip in the trajectory video for presenting the route segment of the trajectory route between the first position marker and the second position marker.

2. The video generation method according to claim 1, wherein: After dividing the plurality of image materials into a plurality of material sets, the method further comprises: When the number of image materials in the plurality of material sets exceeds a quantity threshold, the image materials in the material sets are deleted until the number of image materials in the material sets does not exceed the quantity threshold.

3. The video generation method according to claim 1, wherein: After dividing the plurality of image materials into a plurality of material sets, the method further comprises: Identifying the content of the image material in the material set to determine at least one scene corresponding to the material set; In a first correspondence between text information and scenes, determining first text information matching the scene; When the video clip of the material set is played, the first text information is displayed.

4. The video generation method according to any one of claims 1 to 3, wherein: After acquiring the plurality of image materials, the method further includes: sorting the plurality of image materials; The image materials whose order complies with a predetermined ordering rule are used as the beginning or the end of the target video.

5. The video generation method according to any one of claims 1 to 3, wherein: After acquiring the plurality of image materials, the method further includes: Receive target topic input by user; In the second corresponding relationship between the text information and the topic, determining the second text information corresponding to the target topic; The second text information corresponding to the target theme is displayed when the opening or ending of the target video is displayed.

6. The video generation method according to any one of claims 1 to 5, wherein: The dynamic trajectory route is determined based on preset navigation rules.

7. The video generation method according to any one of claims 1 to 6, wherein: Determining positions corresponding to the plurality of material sets includes: The position corresponding to the material set is determined according to an average value of the positions corresponding to a plurality of the image materials in the material set.

8. A video generating device, comprising: An acquisition module is configured to acquire a plurality of image materials, wherein the plurality of image materials have position information, and the position information corresponding to the image materials is used to indicate positions corresponding to the image materials; The processing module is configured to divide the plurality of image materials into a plurality of material sets according to the positions corresponding to the plurality of image materials, and determine the positions corresponding to the plurality of material sets; wherein one of the material sets includes at least one of the image materials; and in the plurality of material sets, the distance between the positions corresponding to different image materials in the same material set is smaller than the distance between the positions corresponding to image materials in different material sets; A first determining module is configured to generate a trajectory based on the positions corresponding to the plurality of material sets. Video; the track video is used to present a dynamic track route on a map in which the position marks corresponding to the multiple material sets are sequentially connected; A second determination module is configured to generate a target video based on the video clips of the plurality of material sets and the trajectory video; The video clips of the target material set in the plurality of material sets are obtained by performing video editing processing on the image materials in the target material set; In the target video, the first video clip is adjacent to the third video clip, and the third video clip is adjacent to the second video clip; the first video clip is a video clip of a material set corresponding to a first position marker, the second video clip is a video clip of a material set corresponding to a second position marker, and the third video clip is a video clip in the trajectory video for presenting the route segment of the trajectory route between the first position marker and the second position marker.

9. An electronic device, comprising: processor; as well as A memory configured to store computer executable instructions, wherein the computer executable instructions, when executed, cause the processor to perform the video generation method according to any one of claims 1 to 7.

10. A computer readable medium, wherein: The computer-readable medium stores one or more programs, which, when executed by an electronic device including at least one application program, enable the electronic device to execute the video generating method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Video generation method and device and electronic equipment

    CN118555442A

  • Log sharing method and apparatus

    CN105488133A

  • Automatic video track forming method and system

    CN105721813A

  • Making method and device, usage method and device for trajectory map strategy, and readable storage medium

    CN108711355A

  • Providing geographic locations related to user interests

    CN109074358A