Video generation method, device, electronic device and storage medium

By identifying keywords in video text and automatically filtering and splicing media materials, it solves the problem of complex operations in the vlog creation process, realizes a simplified video generation process, and lowers the user's operating threshold.

CN116017043BActive Publication Date: 2024-10-01VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211589769.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-12
Publication Date
2024-10-01
Estimated Expiration
2042-12-12

AI Technical Summary

Technical Problem

In the process of creating a video web log (vlog), users need to manually shoot and save video or picture materials, write scripts, and manually adjust the video sequence in video editing software, resulting in complex operations and tedious steps.

Method used

It determines tags by identifying keywords in the target text, receives user input, automatically filters and displays matching media materials, and generates the final vlog video, simplifying the user's operating steps in the video editing software.

Benefits of technology

There is no need for users to manually browse the material library or import video editing software, and the materials are automatically filtered and spliced, which significantly reduces the steps for creating vlogs and lowers the threshold for video generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116017043B_ABST
    Figure CN116017043B_ABST
Patent Text Reader

Abstract

The present application discloses a video generation method, device, electronic device and storage medium. It belongs to the technical field of electronic devices. The video generation method includes: identifying a target text, determining multiple tags according to multiple keywords in the target text; receiving a first input of a target tag among multiple tags; in response to the first input, displaying a target media material, the content of the target media material matches the content of the target tag; generating a target video according to the target media material.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a video generation method, device, electronic equipment and storage medium. Background Art

[0002] In the related art, users record and share their lives by creating video blogs (vlogs).

[0003] When creating a vlog, the user needs to shoot and save multiple videos or pictures, then write a vlog script, and according to the vlog script, find the required materials one by one among the many shot materials, import them into the video editing software one by one, manually adjust the video order in the video editing software, and then start video editing.

[0004] The operation of this process is complicated, which leads to complicated steps in creating vlogs. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a video generation method, device, electronic device and storage medium, which can simplify the operation steps of creating vlogs.

[0006] In a first aspect, an embodiment of the present application provides a video generation method, comprising:

[0007] Identify the target text and determine multiple tags based on multiple keywords in the target text;

[0008] Receiving a first input of a target tag among a plurality of tags;

[0009] In response to the first input, displaying a target media material, the content of the target media material matching the content of the target tag;

[0010] Generate a target video according to the target media material.

[0011] In a second aspect, an embodiment of the present application provides a video generating device, including:

[0012] The recognition module is used to recognize the target text when the target text is displayed, and determine N label information in the target text, where N is a positive integer;

[0013] A recognition module is used to recognize the target text and determine multiple tags according to multiple keywords in the target text;

[0014] A receiving module, configured to receive a first input of a target tag among a plurality of tags;

[0015] A display module, configured to display a target media material in response to a first input, wherein the content of the target media material matches the content of the target tag;

[0016] The video generation module is used to generate a target video according to the target media material.

[0017] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory stores programs or instructions that can be executed on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the first aspect are implemented.

[0018] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.

[0019] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the method of the first aspect.

[0020] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method of the first aspect.

[0021] In the embodiment of the present application, the user inputs a target text, which is the script text of the video vlog. The electronic device automatically recognizes the target text and determines tag information therein by extracting keywords. The tag information is also a tag associated with the media material shot by the user.

[0022] Through the first input, the user selects the target tag for the user to create a vlog from the multiple tags automatically identified. Through the target tag, the target media material with content matching the target tag is automatically screened out in the media material library of the electronic device, and the target media material in the same row as the target tag selected by the user is displayed. The final vlog video, i.e., the target video, is generated based on the target media material. During the process, the user does not need to manually browse the material library to find the required material, nor does the user need to manually import the selected material into the video editing software, which simplifies the operation steps for creating vlog videos. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A flowchart of a video generation method according to an embodiment of the present application is shown;

[0024] Figure 2 One of the interface diagrams of the video generation method according to an embodiment of the present application is shown;

[0025] Figure 3 The second interface diagram of the video generation method according to the embodiment of the present application is shown;

[0026] Figure 4 The third interface diagram of the video generation method according to the embodiment of the present application is shown;

[0027] Figure 5 A structural block diagram of a video generating device according to an embodiment of the present application is shown;

[0028] Figure 6 A structural block diagram of an electronic device according to an embodiment of the present application is shown;

[0029] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0031] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0032] The video generation method, device, electronic device and storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0033] In some embodiments of the present application, a video generation method is provided. Figure 1 A flow chart of a video generation method according to an embodiment of the present application is shown. Figure 1 As shown, the method includes:

[0034] Step 102, identifying the target text, and determining multiple tags according to multiple keywords in the target text;

[0035] Step 104, receiving a first input of a target tag among a plurality of tags;

[0036] Step 106, in response to the first input, displaying the target media material, the content of the target media material matches the content of the target tag;

[0037] Step 108: Generate a target video according to the target media material.

[0038] In an embodiment of the present application, the target text is the vlog text script edited by the user, and the user can enter the target text in a notepad, memo or other text editing software.

[0039] If the electronic device detects that the target text is being displayed, a corresponding prompt window may pop up to ask the user whether it is a vlog text script. If the user chooses to confirm, the currently displayed target text is automatically semantically recognized. Through the technology of extracting keywords through semantic recognition, at least one tag is determined in the target text, wherein the content of the tag corresponds to the content of the media material in the media material library of the electronic device.

[0040] For example, Figure 2 One of the interface diagrams of the video generation method according to an embodiment of the present application is shown, Figure 2 As shown, the target text 200 includes keywords such as “January 2”, “park”, and “pet puppy”. After these keywords are identified, these tags 202 are highlighted in the original target text 200 .

[0041] After highlighting tag 202, a first input from the user for a target tag 204 in tag 202 is further received. When the user selects target tag 204 through the first input, taking the content of target tag 204 as "January 2" as an example, the media material library of the electronic device, such as the photo album software, with the media material with the shooting date of "January 2" is determined as the target media material.

[0042] The user clicks on multiple target tags to determine one or more target media materials in the media material library. After obtaining these target media materials, the electronic device automatically splices these media materials and forms a final target video, that is, the vlog video that the user wants.

[0043] The embodiment of the present application can automatically filter out target media materials that match the content of the target tag in the media material library of the electronic device, and automatically generate a final vlog video, that is, a target video, based on the target media materials. During the process, the user does not need to manually browse the material library to find the required materials, nor does the user need to manually import the selected materials into the video editing software, thereby simplifying the operating steps for creating vlog videos.

[0044] In some embodiments of the present application, there are multiple target media materials, and generating a target video according to the target media materials includes:

[0045] Sorting the multiple target media materials according to the order of the multiple target tags corresponding to the multiple target media materials to obtain a sorted image material sequence; wherein the order of the multiple target tags is the order of the keywords corresponding to the multiple target tags in the target text;

[0046] Generate a target video based on a sequence of image material.

[0047] In the embodiments of the present application, Figure 3 The second interface diagram of the video generation method according to the embodiment of the present application is shown, as shown in FIG. Figure 3 As shown, in the target text 300, multiple tags 302 are highlighted, and the user selects these target tags 304 in order. Then, in the current display interface, according to the order in which the user selects the target tags 304, target media materials 306 sorted in the same order are displayed, and these target media materials 306 form an image material sequence 308.

[0048] For example, if the user selects the tags "January 2", "park", and "puppy" in order, the corresponding materials will be displayed in the same order.

[0049] The embodiment of the present application generates an image material sequence according to the order in which the user selects the target tags, and generates a vlog video, i.e., the target video, according to the image material sequence. The user does not need to manually sort or splice the image materials again, thereby reducing the operation steps for creating a vlog.

[0050] In some embodiments of the present application, generating the target video according to the image material sequence includes:

[0051] receiving a second input of the plurality of target tags;

[0052] In response to the second input, determining a plurality of target audio materials corresponding to the plurality of target tags;

[0053] Sorting the multiple target audio materials according to the order of the multiple target tags to obtain an audio material sequence;

[0054] The target video is generated according to the audio material sequence and the image material sequence.

[0055] In an embodiment of the present application, after obtaining the image material sequence, the user can further make a second input to the target tag, and find one or more target audio materials whose music tags match the target tags in the target audio material library, as the target audio materials of the vlog video currently being created, and sort these target audio materials according to the order in which the target tags are selected to obtain an audio material sequence, and synthesize the audio material sequence and the image material sequence to obtain a vlog video that includes both the picture and background music.

[0056] Specifically, there is a preset mapping relationship between the target audio material and the content of the target tag. For example, if the content of the target tag is "park", the audio material corresponding to the target tag is quiet music. If the content of the target tag is "sports", the audio material corresponding to the target tag is exciting music.

[0057] The embodiment of the present application can automatically match suitable music materials as background music for vlog videos according to keyword tags selected by users, eliminating the need for users to manually edit or add background music, thereby simplifying the steps of generating vlog videos.

[0058] In some embodiments of the present application, generating a target video according to an image material sequence includes:

[0059] Determine in the target text a plurality of sentences corresponding one-to-one to a plurality of target labels;

[0060] Sort multiple statements according to the order of multiple target labels to obtain a statement sequence;

[0061] Generate a target video based on a sequence of sentences and a sequence of image materials.

[0062] In an embodiment of the present application, after a user selects a target tag, the sentences containing the target tag can be extracted from the original target text, and these sentences can be sorted according to the order in which the user selects multiple target tags to form a sentence sequence.

[0063] When generating the target video, the final vlog video is generated based on the sentence sequence and image material sequence. Specifically, for example, if there is a sentence in the target text that is "I went to the park today", the user selects "park" as the target label, and the image of the park is determined based on the target label, and the sentence "I went to the park today" is extracted. When generating the target video, the sentence "I went to the park today" is added to the image of the park as the image caption.

[0064] In the same way, add sentences of corresponding order to each image material, so as to automatically add text to the vlog video.

[0065] The embodiment of the present application simplifies the editing steps of the vlog video by segmenting the original target text according to the target tags selected by the user and extracting the corresponding sentences as the captions of the vlog video.

[0066] In some embodiments of the present application, the target tag includes target time information, target location information, and target object information;

[0067] Display target media materials, including:

[0068] Determine an object image matching the target object according to the target object information;

[0069] In the preset media library, target media materials are determined whose material shooting time matches the target time information, or whose material shooting position matches the target position information, or whose image content matches the object image.

[0070] In the embodiment of the present application, the target tag includes at least target time information, target location information and target object information.

[0071] Among them, the target time information is specifically the time when the media material is shot, the target location information is specifically the geographical location where the media material is shot, and the target object information is specifically the shot media material, such as the shooting object contained in the image or video, such as a certain person, such as family, friends, etc., or a certain scenery, such as buildings, flowers, etc.

[0072] After the user selects the target time, target location and target object, the electronic device first selects media materials whose shooting time and shooting location match the target time and target location selected by the user based on the primary tags, i.e., time and location, in the preset media library, and forms these media materials into a media material collection.

[0073] Furthermore, according to the secondary tag of the target object selected by the user, each media material in the media material set is subjected to graphic recognition to determine whether the target object is included in its shooting content. If the target object is included in the shooting content of a media material, it is displayed; if the target object is not included, it is discarded.

[0074] Finally, the media material with the target shooting time and the target shooting location and the target object in the shooting content is obtained. The user can select the target media material from the displayed media materials according to his / her own preferences or needs.

[0075] The embodiment of the present application automatically selects media materials that meet user needs based on shooting time, shooting location and shooting object, eliminating the need for users to manually filter required materials from the massive information in the media material library, thereby simplifying the steps of creating vlog videos.

[0076] In some embodiments of the present application, the target object information is the name of the target object, and determining the object image matching the target object according to the target object information includes:

[0077] According to the name, get the image of the target object;

[0078] In the preset media library, determine the target media material whose image content matches the image.

[0079] In the embodiment of the present application, the target object information is specifically the name of the target object. For example, if the target object is a person, the target object information may be the name, nickname, or relationship of the person to the current user, etc. If the target object is a building, the target object information may be the building name, address, etc. of the building.

[0080] After obtaining the name of the target object, the image of the target object can be obtained through the Internet, or the image of the target object can be searched in the storage space of the current electronic device, such as in an album. For example, if the target object is a person, the photo of the person can be searched through the Internet, or the photo of the person can be searched in the album of the current electronic device, and the target media material that matches the image of the target object can be matched in the preset media library, that is, the media library where the vlog material is stored, according to the image recognition technology.

[0081] The embodiment of the present application searches for the image of the target object according to the name of the target object, and matches the corresponding vlog media material in the preset media library according to the image of the target object. This eliminates the need for the user to manually search for the required material in massive materials, thereby simplifying the vlog editing steps.

[0082] In some embodiments of the present application, the media material specifically includes one of a picture material and a person in a video material, or a combination of the two. The user can select multiple target media materials according to different target tags.

[0083] Specifically, Figure 4 The third interface diagram of the video generation method according to the embodiment of the present application is shown, as shown in FIG. Figure 4 As shown, after the user selects a target media material, the electronic device displays a material preview interface 400 , in which a target text 402 and a plurality of target media materials 404 selected by the user are displayed.

[0084] Among them, the target text 402 includes multiple highlighted target tags 4022, wherein next to each target tag 4022, one or more target media materials 404 whose tags match the target tag are displayed, and the target text 402 and these target media materials 404 form a graphic notebook of the vlog video being created by the user. The user can judge whether the selected material is the required material based on the graphic notebook in the material preview interface 400.

[0085] After the user confirms that the selected material is correct, a third input is made to the material preview interface to determine the generated video. After receiving the third input, the electronic device determines the target audio material that matches the target tag based on the target tag currently highlighted and selected by the user. It can be understood that the electronic device includes a target audio material library, which includes multiple target audio materials, each of which is configured with one or more music tags. In the target audio material library, one or more target audio materials whose music tags match the target tags are found as the target audio materials for the vlog video currently being created.

[0086] At the same time, after receiving the third input, the electronic device sorts the target media materials selected by the second input into a material sequence according to the selection order of the multiple target media materials selected by the user, that is, the order of the second input.

[0087] According to the order of the image materials and video materials in the material sequence, these media materials are merged in sequence, and the target audio material is added as background music to synthesize the target video, that is, the vlog video that the user wants to create.

[0088] It can be understood that when synthesizing the target video, the target media materials can also be sorted according to preset logic, such as the shooting time sequence of the materials, the geographical location sequence, etc., to obtain different material sequences, thereby generating vlog videos of different styles.

[0089] In some embodiments, when generating a target video, special special effects can be added between different target media materials, such as fade-in and fade-out effects, flash effects, etc. Users can also choose video filters of different styles to generate vlog videos with different effects. This application does not impose any restrictions on this.

[0090] The embodiment of the present application can automatically filter the corresponding media materials according to the text script written by the user, and display a preview interface according to the target tag and target media material selected by the user, so as to help the user quickly preview the vlog video, and automatically generate the vlog video according to the material selected by the user, thereby lowering the threshold for shooting vlog videos.

[0091] In some embodiments of the present application, after generating a target video according to the target media material, the video generation method further includes:

[0092] Play the target video;

[0093] receiving a third input of a target video;

[0094] In response to the third input, a target operation is performed, where the target operation includes: saving the target video, sharing the target video, or deleting the target video.

[0095] In the embodiment of the present application, after obtaining the target video, the electronic device automatically plays the target video according to the generated target video, thereby helping the user to master the creation effect of the target video. During or after the playback of the target video, the user can save, share or delete the target video through a third input.

[0096] Specifically, if the user is satisfied with the currently obtained target video, the video can be saved locally, or the target video can be shared with other users for viewing while being saved, such as publishing the target video through social software.

[0097] If the user is not satisfied with the obtained target video, the target video can be deleted and a new vlog video can be generated.

[0098] The embodiments of the present application simplify the operation steps of creating vlog videos and lower the threshold for creating vlog videos.

[0099] The video generation method provided in the embodiment of the present application can be executed by a video generation device. In the embodiment of the present application, the method of executing video generation by a video generation device is taken as an example to illustrate the video generation device provided in the embodiment of the present application.

[0100] In some embodiments of the present application, a video generating device is provided. Figure 5 A structural block diagram of a video generating device according to an embodiment of the present application is shown. Figure 5 As shown, the video generating device 500 includes:

[0101] The recognition module 502 is used to recognize the target text and determine multiple tags according to multiple keywords in the target text;

[0102] A receiving module 504 is used to receive a first input of a target tag among multiple tags;

[0103] A display module 506, configured to display a target media material in response to the first input, wherein the content of the target media material matches the content of the target tag;

[0104] The video generation module 508 is used to generate a target video according to the target media material.

[0105] The embodiment of the present application can automatically filter out target media materials that match the content of the target tag in the media material library of the electronic device, and automatically generate a final vlog video, that is, a target video, based on the target media materials. During the process, the user does not need to manually browse the material library to find the required materials, nor does the user need to manually import the selected materials into the video editing software, thereby simplifying the operating steps for creating vlog videos.

[0106] In some embodiments of the present application, the number of target media materials is multiple, and the video generation device further includes:

[0107] A sorting module is used to sort the multiple target media materials according to the order of the multiple target tags corresponding to the multiple target media materials to obtain a sorted image material sequence; wherein the order of the multiple target tags is the order of the keywords corresponding to the multiple target tags in the target text;

[0108] The video generation module is also used to generate a target video according to the image material sequence.

[0109] The embodiment of the present application generates an image material sequence according to the order in which the user selects the target tags, and generates a vlog video, i.e., the target video, according to the image material sequence. The user does not need to manually sort or splice the image materials again, thereby reducing the operation steps for creating a vlog.

[0110] In some embodiments of the present application, the receiving module is further configured to receive a second input of a plurality of target tags;

[0111] The video generating device also includes:

[0112] an audio determination module, configured to determine, in response to a second input, a plurality of target audio materials corresponding to a plurality of target tags;

[0113] The sorting module is further used to sort the multiple target audio materials according to the order of the multiple target tags to obtain an audio material sequence;

[0114] The video generation module is also used to generate a target video according to an audio material sequence and an image material sequence.

[0115] The embodiment of the present application simplifies the editing steps of the vlog video by segmenting the original target text according to the target tags selected by the user and extracting the corresponding sentences as the captions of the vlog video.

[0116] In some embodiments of the present application, the determination module is further used to determine a plurality of sentences corresponding one-to-one to the plurality of target tags in the target text;

[0117] The sorting module is also used to sort multiple statements according to the order of multiple target tags to obtain a statement sequence;

[0118] The video generation module is also used to generate a target video according to a sentence sequence and an image material sequence.

[0119] The embodiment of the present application automatically selects media materials that meet user needs based on shooting time, shooting location and shooting object, eliminating the need for users to manually filter required materials from the massive information in the media material library, thereby simplifying the steps of creating vlog videos.

[0120] In some embodiments of the present application, the target tag includes target time information, target location information, and target object information;

[0121] The video generating device also includes:

[0122] An image determination module, used to determine an object image matching the target object according to the target object information;

[0123] In the preset media library, target media materials are determined whose material shooting time matches the target time information, or whose material shooting position matches the target position information, or whose image content matches the object image.

[0124] The embodiment of the present application automatically selects media materials that meet user needs based on shooting time, shooting location and shooting object, eliminating the need for users to manually filter required materials from the massive information in the media material library, thereby simplifying the steps of creating vlog videos.

[0125] In some embodiments of the present application, the target object information is the name of the target object, and the video generating device further includes:

[0126] An acquisition module is used to acquire an image of a target object according to its name;

[0127] The image determination module is also used to determine the target media material whose image content matches the image in a preset media library.

[0128] The embodiment of the present application searches for the image of the target object according to the name of the target object, and matches the corresponding vlog media material in the preset media library according to the image of the target object. This eliminates the need for the user to manually search for the required material in massive materials, thereby simplifying the vlog editing steps.

[0129] The video generating device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0130] The video generation device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0131] The video generation device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.

[0132] Optionally, an embodiment of the present application further provides an electronic device, Figure 6 A structural block diagram of an electronic device according to an embodiment of the present application is shown. Figure 6 As shown, the electronic device 600 includes a processor 602, a memory 604, and a program or instruction stored in the memory 604 and executable on the processor 602. When the program or instruction is executed by the processor 602, each process of the above-mentioned method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0133] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0134] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0135] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710 and other components.

[0136] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0137] The processor 710 is used to identify the target text and determine multiple tags according to multiple keywords in the target text;

[0138] A user input unit 707, used to receive a first input of a target tag among the multiple tags;

[0139] A display unit 706, configured to display a target media material in response to the first input, wherein the content of the target media material matches the content of the target tag;

[0140] The processor 710 is configured to generate a target video according to a target media material.

[0141] The embodiment of the present application can automatically filter out the target media material that matches the content of the target tag in the media material library of the electronic device, and automatically generate the final vlog video, that is, the target video, according to the target media material. In the process, the user does not need to manually browse the material library to find the required material.

[0142] Users do not need to manually import the selected materials into the video editing software, which simplifies the operation steps of creating vlog videos.

[0143] Optionally, the number of target media materials is multiple;

[0144] The processor 710 is further configured to sort the multiple target media materials according to the order of the multiple target tags corresponding to the multiple target media materials to obtain a sorted image material sequence; wherein the multiple target media materials are

[0145] The order of the tags is the order of the keywords corresponding to the multiple target tags in the target text; the target video is generated according to the image material 0 sequence.

[0146] The embodiment of the present application generates an image material sequence according to the order in which the user selects the target tags, and generates a vlog video, i.e., the target video, according to the image material sequence. The user does not need to manually sort or splice the image materials again, thereby reducing the operation steps for creating a vlog.

[0147] Optionally, the user input unit 707 is further configured to receive a second input of a plurality of target tags; the processor 710 is configured to determine a plurality of target tags corresponding to the plurality of target tags in response to the second input.

[0148] audio material; sorting the multiple target audio materials according to the order of the multiple target tags to obtain an audio material sequence; generating a target video according to the audio material sequence and the image material sequence.

[0149] The embodiment of the present application classifies the original target text according to the target tag selected by the user.

[0150] Optionally, the processor 710 is further configured to determine a plurality of sentences corresponding to a plurality of target tags in the target text; sort the plurality of sentences according to the order of the plurality of target tags to obtain a sentence sequence;

[0151] Generate a target video based on a sequence of sentences and a sequence of image materials.

[0152] The embodiment of the present application automatically selects a method that satisfies the user based on the shooting time, shooting location and shooting object.

[0153] It can generate media materials that meet the needs of users, without the need for users to manually filter out the required materials from the massive information in the media material library, thus simplifying the steps of creating vlog videos.

[0154] Optionally, the target tag includes target time information, target location information and target object information;

[0155] Processor 710 is also used to determine an object image that matches the target object based on the target object information; in a preset media library, determine the target media material whose material shooting time matches the target time information, or whose material shooting location matches the target location information, or whose image content matches the object image.

[0156] The embodiment of the present application automatically selects media materials that meet user needs based on shooting time, shooting location and shooting object, eliminating the need for users to manually filter required materials from the massive information in the media material library, thereby simplifying the steps of creating vlog videos.

[0157] Optionally, the target object information is the name of the target object;

[0158] The processor 710 is further configured to obtain an image of the target object according to the name; and determine a target media material whose image content matches the image in a preset media library.

[0159] The embodiment of the present application searches for the image of the target object according to the name of the target object, and matches the corresponding vlog media material in the preset media library according to the image of the target object. This eliminates the need for the user to manually search for the required material in massive materials, thereby simplifying the vlog editing steps.

[0160] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and at least one of other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0161] The memory 709 can be used to store software programs and various data. The memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 709 may include a volatile memory or a non-volatile memory, or the memory 709 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 709 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0162] The processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 710.

[0163] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0164] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0165] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0166] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0167] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0168] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0169] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0170] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A video generation method, It is characterized in that include: Identify a target text, and determine a plurality of tags according to a plurality of keywords in the target text; receiving a first input of a target tag among the plurality of tags; In response to the first input, displaying a target media material, the content of the target media material matching the content of the target tag; Generate a target video according to the target media material; The target tag includes target time information, target location information and target object information; the target time information is the shooting time of the target media material, the target location information is the shooting geographical location of the target media material, and the target object information is the target object for shooting the target media material; wherein, media materials whose shooting time and shooting geographical location match the target time information and target location information selected by the user are selected, the media materials are formed into a media material set, and graphic recognition is performed on each of the media materials in the media material set to determine whether the target object is included in the shooting content, so as to obtain the media material whose shooting time is the target time information, whose shooting geographical location is the target location information, and whose shooting content includes the target object.

2. The video generation method according to claim 1, It is characterized in that There are multiple target media materials, and generating a target video according to the target media materials includes: Sorting the multiple target media materials according to the order of the multiple target tags corresponding to the multiple target media materials to obtain a sorted image material sequence; wherein the order of the multiple target tags is the order of the keywords corresponding to the multiple target tags in the target text; The target video is generated according to the image material sequence.

3. The video generation method according to claim 2, It is characterized in that The step of generating the target video according to the image material sequence comprises: receiving a second input of the plurality of target tags; In response to the second input, determining a plurality of target audio materials corresponding to the plurality of target tags; Sorting the multiple target audio materials according to the order of the multiple target tags to obtain an audio material sequence; The target video is generated according to the audio material sequence and the image material sequence.

4. The video generation method according to claim 2, It is characterized in that The step of generating the target video according to the image material sequence comprises: Determining in the target text a plurality of sentences corresponding one-to-one to the plurality of target tags; Sorting the multiple statements according to the order of the multiple target tags to obtain a statement sequence; The target video is generated according to the sentence sequence and the image material sequence.

5. The video generation method according to claim 1, It is characterized in that The display target media material includes: Determining an object image matching the target object according to the target object information; In a preset media library, the target media material is determined, the material shooting time matches the target time information, or the material shooting position matches the target position information, or the image content matches the object image.

6. The video generation method according to claim 5, It is characterized in that The target object information is the name of the target object, and determining the object image matching the target object according to the target object information includes: According to the name, acquiring an image of the target object; In a preset media library, the target media material whose image content matches the image is determined.

7. A video generating device, It is characterized in that include: A recognition module, used for recognizing the target text when displaying the target text, and determining N tag information in the target text, where N is a positive integer; A recognition module, used to recognize a target text and determine a plurality of tags according to a plurality of keywords in the target text; A receiving module, configured to receive a first input of a target tag among the multiple tags; A display module, configured to display a target media material in response to the first input, wherein the content of the target media material matches the content of the target tag; A video generation module, used to generate a target video according to the target media material; The target tag includes target time information, target location information and target object information; The target time information is the shooting time of the target media material, the target location information is the shooting geographical location of the target media material, and the target object information is the target object for shooting the target media material; wherein, media materials whose shooting time and shooting geographical location match the target time information and target location information selected by the user are selected, the media materials are formed into a media material set, and graphic recognition is performed on each of the media materials in the media material set to determine whether the target object is included in the shooting content, so as to obtain the media material whose shooting time is the target time information, the shooting geographical location is the target location information, and the shooting content includes the target object.

8. The video generating device according to claim 7, It is characterized in that The number of the target media materials is multiple, and the video generation device further includes: A sorting module, used to sort the multiple target media materials according to the order of the multiple target tags corresponding to the multiple target media materials, so as to obtain a sorted image material sequence; wherein the order of the multiple target tags is the order of the keywords corresponding to the multiple target tags in the target text; The video generation module is further used to generate the target video according to the image material sequence.

9. The video generating device according to claim 8, It is characterized in that The receiving module is further configured to receive a second input of the plurality of target tags; The video generating device further comprises: an audio determination module, configured to determine, in response to the second input, a plurality of target audio materials corresponding to the plurality of target tags; The sorting module is further used to sort the multiple target audio materials according to the order of the multiple target tags to obtain an audio material sequence; The video generation module is further used to generate the target video according to the audio material sequence and the image material sequence.

10. The video generating device according to claim 8, It is characterized in that Also includes: A sentence determination module, used to determine a plurality of sentences corresponding to the plurality of target tags in the target text; The sorting module is further used to sort the multiple statements according to the order of the multiple target tags to obtain a statement sequence; The video generation module is also used to generate the target video according to the sentence sequence and the image material sequence.

11. The video generating device according to claim 7, It is characterized in that The video generating device further comprises: an image determination module, configured to determine an object image matching the target object according to the target object information; and In a preset media library, the target media material is determined, the material shooting time matches the target time information, or the material shooting position matches the target position information, or the image content matches the object image.

12. The video generating device according to claim 11, It is characterized in that The target object information is the name of the target object, and the video generating device further includes: An acquisition module, used for acquiring an image of the target object according to the name; The image determination module is further configured to determine the target media material whose image content matches the image in a preset media library.

13. An electronic device, It is characterized in that The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the video generation method according to any one of claims 1 to 6 are implemented.

14. A readable storage medium, It is characterized in that The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the video generation method according to any one of claims 1 to 6 are implemented.