Video generation method and device, equipment, medium and program product
By displaying the material recommendation area and the target material area in the video generation page, creators are allowed to select materials and generate videos, which solves the problem of limited video materials in the existing technology and improves the richness and effect of the video.
Patent Information
- Application Number
- CN202411523698.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-01-24
AI Technical Summary
In the prior art, the material for video promotion is limited by creators uploaded or the detailed page of the target object, resulting in low video quality and poor video effect.
Provide a video generation method. By displaying the target prime material area and material recommendation area in the video generation page, the creator allows the creator to select the target recommendation material from the candidate recommendation material, combined with the original material and the target recommendation material to generate the target video.
It improves the richness of the target video, optimizes video effects, reduces material duplication, and increases the richness of the material.
Smart Images

Figure CN119364131A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to computer technology, and more particularly to a video generation method, apparatus, device, medium, and program product. Background Art
[0002] With the development of computer technology, the method of promoting target objects through promotional videos has been widely used. For example, product promotion videos are generated based on product images and / or product videos uploaded by creators. However, the materials of such videos are limited by the content uploaded by the creator or the details page of the target object, etc., and the video quality is not high, resulting in poor video effects. Summary of the invention
[0003] The embodiments of the present disclosure provide a video generation method, apparatus, device, medium, and program product, which can improve the richness of a target video of a target object and optimize the video effect.
[0004] In a first aspect, an embodiment of the present disclosure provides a video generation method, characterized by comprising:
[0005] Displaying a target material area in a video generation page, the target material area is used to display a media material set associated with a target video of a target object, wherein the media material set includes an original material corresponding to the target object;
[0006] Displaying a material recommendation area in the video generation page, and displaying candidate recommended materials in the material recommendation area, wherein the candidate recommended materials are obtained by querying a preset material set based on at least two pieces of picture description information corresponding to the object information of the target object;
[0007] In response to a material selection operation for the candidate recommended material, transferring a target recommended material from the material recommendation area to the target material area, so as to add the target recommended material to the media material set;
[0008] In response to a video generation trigger operation in the video generation page, a target video of the target object is generated based on the original material and the target recommended material in the media material set, and the target video is displayed, wherein the video generation trigger operation is used to trigger a video generation event.
[0009] In a second aspect, an embodiment of the present disclosure further provides a video generating device, the device comprising:
[0010] A target material area display module, used to display a target material area in a video generation page, wherein the target material area is used to display a media material set associated with a target video of a target object, wherein the media material set includes an original material corresponding to the target object;
[0011] A material recommendation area display module, used to display a material recommendation area in the video generation page, and to display candidate recommended materials in the material recommendation area, wherein the candidate recommended materials are obtained by querying a preset material set based on at least two screen description information corresponding to the object information of the target object;
[0012] a recommended material selection module, configured to transfer a target recommended material from the material recommendation area to the target material area in response to a material selection operation on the candidate recommended material, so as to add the target recommended material to the media material set;
[0013] A video generation module is used to respond to a video generation trigger operation in the video generation page, generate a target video of the target object based on the original material and target recommended material in the media material set, and display the target video, wherein the video generation trigger operation is used to trigger a video generation event.
[0014] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0015] one or more processors;
[0016] a storage device for storing one or more programs,
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the video generating method as described in any embodiment of the present disclosure.
[0018] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the video generation method as described in any embodiment of the present disclosure.
[0019] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, the video generation method as described in any embodiment of the present disclosure is implemented.
[0020] The disclosed embodiment provides a video generation method, which displays a material recommendation area by responding to a material recommendation trigger operation in a video generation page, wherein the material recommendation area includes candidate recommended materials for the creator to select target recommended materials from the candidate recommended materials, and the target recommended materials are transferred from the material recommendation area to the target material area, so as to add the target recommended materials to the media material set associated with the target material area, and then, the target video of the target object is generated by combining the original materials and the target recommended materials in the media material set, and the target video is displayed. Since the candidate recommended materials are obtained by querying a preset material set based on at least two screen description information corresponding to the object information of the target object, the candidate recommended materials are closely related to the target object, and the target recommended materials in the candidate recommended materials are added to the media material set, thereby generating a target video with rich materials based on the media material set, reducing the material duplication of the target video, increasing the richness of the materials in the target material, and improving the video effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0022] Figure 1 A schematic diagram of a flow chart of a video generation method provided by an embodiment of the present disclosure;
[0023] Figure 2 A schematic diagram of the structure of a video generation page provided by an embodiment of the present disclosure;
[0024] Figure 3 A schematic diagram of the structure of another video generation page provided by an embodiment of the present disclosure;
[0025] Figure 4 A schematic diagram of the structure of another video generation page provided by an embodiment of the present disclosure;
[0026] Figure 5 A flowchart of another video generation method provided by an embodiment of the present disclosure;
[0027] Figure 6 A flowchart of a video generation method provided by an embodiment of the present disclosure;
[0028] Figure 7 A schematic diagram of the structure of a video generating device provided by an embodiment of the present disclosure;
[0029] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, but rather these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0031] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0032] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0033] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0034] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0035] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0036] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0037] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0038] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0039] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0040] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0041] Figure 1 This is a flow chart of a video generation method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation where a video of a target object is generated when there is less material, for example, a scene where a product promotion video or a product marketing video is generated based on less material, etc. The method can be executed by a video generation device, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal, a PC, or a server, etc.
[0042] like Figure 1 As shown, the method includes:
[0043] S110 . Display a target material area in a video generation page, where the target material area is used to display a media material set associated with a target video of a target object.
[0044] Among them, the video generation page is used to represent the interactive page of the video generation service. The video generation service is used to generate a promotional video or a marketing video of the target object. The target object can be an object to be promoted. For example, the target object can be a commodity or a product. The target material area is a control in the video generation page for displaying a media material set. In the embodiment of the present disclosure, the media material set includes the original material corresponding to the target object. The original material includes locally uploaded pictures and / or videos. The original material also includes pictures and / or videos obtained by parsing the web page associated with the target object. The media material set can also include a target recommendation material, which represents the selected candidate recommendation material.
[0045] Exemplarily, the original material of the target object can be obtained by uploading pictures and / or videos associated with the target object, and the original material of the target object can be loaded into the target material area. And / or, the original material of the target object can be obtained by parsing the detail page corresponding to the target object, and loaded into the target material area.
[0046] Specifically, a web page associated with the target object is obtained, and the web page is parsed to obtain a picture and / or video of the target object. The web page can also be parsed to obtain object information of the target object and / or the name of the target object. The picture and / or video of the target object is displayed in the target material area of the video generation page.
[0047] S120: Display a material recommendation area in the video generation page, and display candidate recommended materials in the material recommendation area.
[0048] The material recommendation trigger operation is used to trigger a material recommendation event. The material recommendation event is used to query a preset material set based on at least two screen description information corresponding to the object information of the target object to obtain candidate recommended materials for the target object. For example, the material recommendation trigger operation includes inputting a URL of the target object. Alternatively, the material recommendation trigger operation includes inputting the object information of the target object. Alternatively, the material recommendation trigger operation includes inputting the name of the target object, and according to the name of the target object, associating the object information of the target object through a pre-trained text generation model.
[0049] Optionally, the material recommendation event can also be triggered by the original material in the target material area. For example, if the number of original materials in the target material area does not meet the preset number requirement, the material recommendation event is triggered. And / or, if the attribute information of the original material in the target material area does not meet the preset attribute requirement, the material recommendation event is triggered. The attribute information includes attributes that affect the material quality, such as resolution.
[0050] The candidate recommendation material is obtained by querying a preset material set based on at least two screen description information corresponding to the object information of the target object. The screen description information is a screen description text generated based on the object information of the target object and a prompt word. For example, the screen description information can be a dog running in the sun. At least two screen description information are generated based on the object information and the prompt word by a preset generation model. The prompt word is used to constrain the generation result of the preset generation model. The preset material set is queried based on each screen description information to obtain a candidate recommendation material whose matching degree with the screen description information exceeds a set threshold.
[0051] Exemplarily, in response to a material recommendation trigger operation in the video generation page, the first form of the material recommendation area is displayed, and the material recommendation area in the first form includes a recommended material placeholder. If the candidate recommended material is loaded successfully, the second form of the material recommendation area is displayed, and the recommended material placeholder in the material recommendation area in the second form is switched to the candidate recommended material, wherein the material recommendation area in the second form includes at least two material groups associated with screen description information, and adjacent material groups are associated with different screen description information, and the material group includes at least two candidate recommended materials.
[0052] Among them, the recommended material placeholder is a placeholder for the candidate recommended material in the material recommendation area. The recommended material placeholder includes a set recommendation mark to distinguish the placeholder of the original material in the target material area. In response to the material recommendation trigger operation in the video generation page, the first form of the material recommendation area and the loading prompt copy can be displayed first. At this time, the material recommendation area includes a recommended material placeholder. If the candidate recommended material is loaded successfully, the second form of the material recommendation area is displayed, the candidate recommended material is displayed at the position corresponding to the recommended material placeholder in the material recommendation area, and the loading prompt copy is converted to the loading completion copy. Optionally, prompt information such as the number of selected materials and the total number of selectable materials can also be displayed in the material recommendation area. The candidate recommended materials displayed in the material recommendation area can be switched by sliding operations in the material recommendation area.
[0053] In the disclosed embodiment, the material recommendation area includes at least two material groups associated with screen description information, and adjacent material groups are associated with different screen description information. The material group includes at least two candidate recommended materials. By arranging the candidate recommended materials in descending order according to the degree of matching in the dimension of the screen description information, and grouping the candidate recommended materials according to the sorting result, a material group including at least two candidate recommended materials is obtained, and the material groups associated with each screen description information are displayed in sequence according to the order of the screen description information. By grouping and dispersing the candidate recommended materials in this way, it is possible to display multiple candidate recommended materials associated with the screen description information in the material recommendation area, thereby improving the richness of the material selection. In addition, it is avoided that the user spends a long time to find the candidate recommended materials associated with the expected screen description information, thereby improving the efficiency of material selection.
[0054] In the disclosed embodiment, the material recommendation area represents a control for displaying candidate recommended materials in the video generation page. In response to the material recommendation trigger operation in the video generation page, the material recommendation area in the loading state is displayed in the video generation page. For the material recommendation area in the loading state, multiple recommended material placeholders are displayed, and the recommended material placeholders include a set recommendation mark. If the candidate recommended material is loaded successfully, the material recommendation area in the loading state is switched to the material recommendation area in the loading completion state, and the candidate recommended material is displayed at the corresponding position of the placeholder icon in the material recommendation area. Figure 2 This is a schematic diagram of the structure of a video generation page provided by an embodiment of the present disclosure. Figure 2 As shown, the target material area 210 displays the original material and the recommended material placeholder. The target material area 210 includes the target recommended material (with a seven-pointed star symbol) and the original material (without a seven-pointed star symbol). The candidate recommended materials in the material recommendation area 220 are displayed in the following order:
[0055] Candidate recommended materials A11 and A12 associated with screen description information 1; candidate recommended materials B11 and B12 associated with screen description information 2; candidate recommended materials C11 and C12 associated with screen description information 3; candidate recommended materials A13 and A14 associated with screen description information 1; candidate recommended materials B13 and B14 associated with screen description information 2; candidate recommended materials C13 and C14 associated with screen description information 3; ...; candidate recommended materials A1n and A1n associated with screen description information 1; candidate recommended materials B1n and B1n associated with screen description information 2; candidate recommended materials C1n and C1n associated with screen description information 3. The value of n is determined according to the maximum number of loadable materials in the material recommendation area 220. Since users' creative needs vary greatly, different users have great differences in their selection of candidate recommended materials, and it is difficult to predetermine the results of users' selection of candidate recommended materials. By giving priority to displaying the two most matched candidate recommended materials associated with the three picture description information, it is easier for users to select candidate recommended materials associated with the picture description information that meets their expectations, thereby improving material selection efficiency and optimizing user experience.
[0056] Optionally, in response to a material recommendation trigger operation in the video generation page, at least one recommended material placeholder is displayed in the target material area. If the candidate recommended material is loaded successfully, the candidate recommended material that meets the preset screening condition is displayed at the position corresponding to the recommended material placeholder in the target material area, wherein the preset screening condition is determined in combination with the order of the material groups and the order of the candidate recommended materials in the material groups.
[0057] Since the candidate recommended materials in the material group are sorted according to the matching degree, the matching degree of the first candidate recommended material in the material group is higher than that of the remaining candidate recommended materials in the group. The preset screening condition can be to select the first candidate recommended material in the target material group to add to the target material area, so as to preferentially recommend the most matching candidate recommended material in the target material group for generating the target video. Limited by the number of materials that can be loaded in the target material area, N material groups can be selected as the target material group in the order of the picture description information.
[0058] Optionally, in response to a click operation on a delete control corresponding to a target recommended material in the target material area, the deleted target recommended material is restored from the target material area to a corresponding material group in the material recommendation area to replace the target recommended material in the target material area. For example, after adding the candidate recommended material B11 to the target material area, if a delete operation on the candidate recommended material B11 is detected, the candidate recommended material B11 can be moved to the display position of the material group associated with the screen description information 2, and displayed before the candidate recommended material B12.
[0059] Optionally, if after deleting the target recommended material in the target material area, the duration of all video materials in the target material area is less than a set threshold, a prompt text is displayed to load at least candidate recommended materials of the set duration to guide the user to continue selecting the target recommended material.
[0060] In some embodiments, if the candidate recommended material fails to load, the material recommendation area of the first form in the video generation page is deleted, and the recommended material placeholder in the target material area is deleted. Specifically, if the candidate recommended material associated with the screen description information is not matched, it is determined that the candidate recommended material has failed to load. By deleting the material recommendation area of the first form in the video generation page and deleting the recommended material placeholder in the target material area, a target video can be generated based on the original material in the target material area. In the embodiment of the present disclosure, when the candidate recommended material fails to load, the material recommendation area and the recommended material placeholder in the target material area are deleted, and the target video is generated using the original material, which can avoid the problem of blocking subsequent video generation operations due to the failure to load the candidate recommended material.
[0061] It should be noted that when there is no relevant information belonging to any target object in the video generation page, the material recommendation area is not displayed. If any operation of inputting the product name, object information, and original material of the target object in the video generation page is detected, it is determined that the material recommendation trigger operation in the video generation page is detected, and the material recommendation area is displayed in the video generation page.
[0062] In some embodiments, in response to an input operation of an object name in a video generation page, a first form of a material recommendation area is displayed. The predicted object information of the target object is generated based on the association of the object name by a preset generation model, the screen description information is determined based on the predicted object information, and then the recommended material list is determined based on the screen description information. The recommended material list includes candidate recommended materials, and the candidate recommended materials in the recommended material list are determined based on the matching degree and the number of screen description information. For example, if there are 6 screen description information, a recommended material list containing 30 candidate recommended materials is formed based on the candidate recommended materials with the top five matching degrees of each screen description information. The recommended material list is loaded into the video generation page. If the candidate recommended materials are loaded successfully, the candidate recommended materials in the recommended material list are displayed through the material recommendation area.
[0063] Further, after the candidate recommended materials in the recommended material list are displayed through the material recommendation area, if an input operation of object information in the video generation page is detected, new picture description information is determined according to the object information, and the candidate recommended material is determined according to the new picture description information. The recommended material list is updated according to the newly determined candidate recommended material. If the recommended material list before and after the update is different, the material recommendation area is reloaded.
[0064] Further, in response to the update operation of the object name and / or object information, the screen description information is updated. Candidate recommended materials are determined according to the updated screen description information. The recommended material list is updated according to the newly determined candidate recommended materials. If the recommended material lists before and after the update are different, the material recommendation area is reloaded.
[0065] S130: In response to a material selection operation for the candidate recommended material, transfer a target recommended material from the material recommendation area to the target material area, so as to add the target recommended material to the media material set.
[0066] Among them, the material selection operation is used to trigger the material selection event. The material selection event is used to transfer the target recommended material from the material recommendation area to the target material area to add the target recommended material to the media material set. For example, clicking the material addition control corresponding to the candidate recommended material triggers the material selection event. Alternatively, circling the candidate recommended material triggers the material selection event. Alternatively, dragging the candidate recommended material triggers the material selection event. The embodiments of the present disclosure do not specifically limit the meaning of the material selection operation.
[0067] Optionally, before selecting a target recommended material from the candidate recommended materials, the candidate recommended materials may be previewed. Exemplarily, the material duration is displayed at a set position of the candidate recommended material. In response to a click operation on the material duration corresponding to any candidate recommended material, a preview page corresponding to the candidate recommended material is displayed, and the candidate recommended material is played in the preview page.
[0068] Figure 3 This is a schematic diagram of another video generation page provided by an embodiment of the present disclosure. Figure 3 As shown, candidate recommended materials 310 associated with different screen descriptions are displayed in the material recommendation area. The lower left corner of the candidate recommended material 310 displays the material duration. The upper right corner of the candidate recommended material 310 displays a material adding control 320. Click the material duration, and a preview page 330 is displayed in the form of a pop-up window on the video generation page. The candidate recommended material 310 is played in the preview page 330, so that the user can select the candidate recommended material 310 that meets the expectations.
[0069] For candidate recommended materials that meet expectations, the target recommended material can be determined through a material selection operation, and the target recommended material can be transferred from the material recommendation area to the target material area. Exemplarily, in response to a click operation on a material adding control corresponding to the candidate recommended material, the target recommended material is transferred along a preset moving path to a set material display position in the target material area, wherein the target recommended material represents the candidate recommended material associated with the click operation, and the preset moving path represents a line segment between the position of the target recommended material in the material recommendation area and the set material display position. The target recommended material is displayed at the set material display position. Optionally, the set display position can be the front position of the existing material in the target material area. For example, each time a target recommended material is added to the target material area, the target recommended material is added before all the materials in the target material area to display the target recommended material at the head position of the target material area. By transferring the target recommended material along the preset moving path, the transfer process of the target recommended material can be presented, thereby improving the interactivity of the candidate recommended material.
[0070] Further, in response to a click operation on a material adding control corresponding to the candidate recommended material, the target recommended material is transferred along a preset moving path to a set material display position of the target material area, including:
[0071] In response to a click operation of the material adding control displayed at the set position of the candidate recommended material, the target recommended material is moved along the preset moving path. In the process of the target recommended material moving along the first path segment in the preset moving path, the target recommended material is converted from a first form to a second form, wherein the first path segment represents a line segment between the position of the target recommended material in the material recommendation area and the target position in the video generation page. In the process of the target recommended material moving along the second path segment in the preset moving path, the target recommended material is restored from the second form to the first form, wherein the second path segment represents a line segment between the target position and the set material display position.
[0072] In the disclosed embodiment, the first form represents that the thumbnail of the target recommended material is gradually reduced from the original size. The second form represents that the reduced thumbnail of the target recommended material is gradually enlarged to the original size.
[0073] Figure 4 This is a schematic diagram of the structure of another video generation page provided by the embodiment of the present disclosure. Figure 4As shown, a material adding control 420 is displayed in the upper right corner of the candidate recommended material 410. Based on the click operation of the material adding control 420, the target recommended material is moved along the preset moving path 430. The preset moving path includes a preset target position 431. The line segment between the position of the target recommended material and the target position is used as the first path segment 432. The segment between the target position and the set material display position in the target material area is used as the second path segment 433. In the process of the target recommended material moving along the first path segment 432, the thumbnail of the target recommended material is gradually reduced. The distances between points A, B and C on the first path segment 432 and the starting point of the path increase in sequence, and the size of the thumbnail of the corresponding target recommended material decreases in sequence. In the process of the target recommended material moving along the second path segment 433, the reduced thumbnail of the target recommended material is gradually enlarged until the target recommended material moves to the set material display position of the target material area, and the thumbnail is restored to the original size. The distances between points D and E on the second path segment 433 and the end point of the path decrease in sequence, and the size of the thumbnail of the corresponding target recommended material increases in sequence.
[0074] S140: In response to a video generation trigger operation in the video generation page, generate a target video of the target object based on original materials and target recommended materials in the media material set, and display the target video.
[0075] The video generation trigger operation is used to trigger a video generation event. The video generation event is used to realize the generation of a target video of a target object based on a media material set associated with a target material area. Optionally, the target video is generated by combining the original material and the target recommended material in the media material set through a pre-trained generation model. The pre-trained generation model can be a video generation model based on deep learning technology. Optionally, before the original material and the target recommended material are input into the preset generation model, operations such as image pre-processing and image-text matching can also be performed to establish a corresponding relationship between the image and the text.
[0076] The disclosed embodiment displays a material recommendation area by responding to a material recommendation trigger operation in a video generation page. The material recommendation area includes candidate recommended materials for the creator to select target recommended materials from the candidate recommended materials. The target recommended materials are transferred from the material recommendation area to the target material area, so as to add the target recommended materials to the media material set associated with the target material area. Then, the target video of the target object is generated by combining the original materials and the target recommended materials in the media material set, and the target video is displayed. Since the candidate recommended materials are obtained by querying a preset material set based on at least two screen description information corresponding to the object information of the target object, the candidate recommended materials are closely related to the target object, and the target recommended materials in the candidate recommended materials are added to the media material set, thereby generating a target video with rich materials based on the media material set, reducing the material duplication of the target video, increasing the richness of the materials in the target material, and improving the video effect.
[0077] Figure 5 This is a flow chart of another video generation method provided by an embodiment of the present disclosure. Based on the above embodiments, the embodiment of the present disclosure additionally limits the query method of candidate recommendation materials. Figure 5 As shown, the method includes:
[0078] S500: Display a target material area in a video generation page, where the target material area is used to display a media material set associated with a target video of a target object, wherein the media material set includes original materials corresponding to the target object.
[0079] S510: Displaying a material recommendation area in the video generation page, wherein the material recommendation area includes a recommended material placeholder.
[0080] S520: Acquire at least one object information associated with the target object, and generate at least two pieces of screen description information associated with the object information based on at least one piece of object information and a prompt word through a preset generation model.
[0081] The prompt word is used to constrain the generation result of the preset generation model. The prompt word can be set according to business needs.
[0082] Optionally, the video generation page includes an input box control, in which object information can be input. Alternatively, an object webpage of the target object can also be obtained, for example, the object webpage can be a detail page of the target object. Parse the webpage content to obtain pictures and / or videos in the object webpage as original material. In addition, parsing the webpage can also obtain at least one of the object description information, selling point information, and name information of the target object. The object description information can be split to obtain N segments of object information. Then, at least two screen description information are generated for each segment of object information based on the prompt word through a preset generation model, to obtain 2N screen description information.
[0083] S530: Perform vector matching on the picture description vector corresponding to the picture description information and the material vector associated with the preset material set to obtain a matching degree between the matching material and the matching material.
[0084] The preset material set is a set of pictures and / or videos. The preset material set includes a large number of high-quality materials. The picture description vector is a vector obtained by vectorizing the picture description information. The material vector is a vector obtained by vectorizing multimodal information such as pictures, videos and texts in the preset material set. Optionally, the picture description vector corresponding to the picture description information is generated by an embedding model. In addition, the material vector corresponding to the material in the preset material set is generated by the embedding model.
[0085] Exemplarily, for any picture description information, the vector distance between the picture description vector corresponding to the picture description information and the material vector corresponding to the material in the preset material set is calculated, and the matching degree between the material in the preset material set and the picture description information is determined according to the vector distance. The material in the preset material set whose matching degree exceeds a set threshold is determined as the matching material. The matching degree corresponding to the material in the preset material set whose matching degree exceeds a set threshold is determined as the matching degree corresponding to the matching material.
[0086] Optionally, materials in a preset material set whose matching degree exceeds a set threshold are determined as matching materials, and the method further includes: determining matching materials based on the recall priority and matching degree of the materials in the preset material set. Among them, the recall priority of video materials is higher than that of picture materials. The recall priority of vertical screen materials is higher than that of horizontal screen materials. Video materials have different recall priorities due to different durations. For materials in the preset material set whose matching degree exceeds a set threshold, matching materials are determined based on the recall priority, and materials whose matching degree exceeds the set threshold are cached. If the matching materials cannot meet the video generation requirements, the cached materials are added to the material recommendation list.
[0087] S540: Determine the candidate recommended material in the matching material according to the matching degree.
[0088] Exemplarily, for any picture description information, the matching materials associated with the picture description information are arranged in descending order according to the matching degree. The candidate recommended materials corresponding to each picture description information are determined according to the sorting result. For example, for each picture description information, the matching materials are arranged in descending order based on the matching degree, and the top n matching materials are selected as the candidate recommended materials. A recommended material list is generated according to the candidate recommended materials.
[0089] S550: For any one of the picture description information, group the candidate recommended materials associated with the picture description information according to the matching degree to obtain a material group associated with the picture description information.
[0090] Exemplarily, for any picture description information, the candidate recommended materials associated with the picture description information are grouped according to the matching degree and the grouping strategy to obtain a material group associated with the picture description information. The grouping strategy is used to characterize the number of candidate recommended materials in the material group. For example, the candidate recommended materials are grouped according to the descending order of the candidate recommended materials and the number of candidate recommended materials in the material group.
[0091] S560: Display the material groups associated with the picture description information in sequence in the material recommendation area according to the sequence of the picture description information.
[0092] Exemplarily, in the order of the picture description information, the material placeholders in the material recommendation area are replaced with the candidate recommended materials in the material group, so that the material groups associated with each picture description information are sequentially displayed in the material recommendation area. Optionally, the display priority of the material group can be determined according to the matching degree of the candidate recommended materials associated with the material group. The undisplayed material group with the highest display priority corresponding to the picture description information is displayed at the position corresponding to the picture description information in the material recommendation area.
[0093] S570: In response to a material selection operation for the candidate recommended material, transfer a target recommended material from the material recommendation area to the target material area, so as to add the target recommended material to the media material set.
[0094] S580. In response to a video generation trigger operation in the video generation page, a target video of the target object is generated based on the original material and the target recommended material in the media material set, and the target video is displayed, wherein the video generation trigger operation is used to trigger a video generation event.
[0095] In the disclosed embodiment, in response to a video generation trigger operation in a video generation page, a target video of a target object is generated based on original materials and target recommended materials in a media material set associated with a target material area, and the target video is displayed.
[0096] Optionally, in response to the video generation trigger operation in the video generation page, if the media material set associated with the target material area only includes the target recommended material, at least one video material in the target recommended material is replaced according to the video material in the parsed original material. If the original material is a picture material, the picture material in the target recommended material is replaced with the picture material.
[0097] In some embodiments, if the duration of the horizontal screen video material in the media material set associated with the target material area meets the preset split screen condition, the target video is a video in split screen mode. The split screen mode refers to a video display mode in which at least two horizontal screen video materials are spliced.
[0098] Figure 6 This is a flowchart of a video generation method provided by an embodiment of the present disclosure. Figure 6 As shown, the method includes: obtaining a web page 610 of a target object, and obtaining pictures and / or videos associated with the target object according to the web page 610 as original materials 620. Optionally, the original materials 620 may also be pictures and / or videos uploaded by users. In addition, object description information, selling point information, and name information of the target object may also be obtained according to the web page 610. The user inputs business information and marketing objects. A script copy 600 is generated according to the object description information, selling point information, name information, business information, and marketing objects. The script copy 6100 is segmented. The object description information may be split to obtain N segments of object information 630. Then, at least two screen description information 640 are generated for each segment of object information 630 based on the prompt words through a preset generation model, and 2N screen description information 640 are obtained. For example, for the object information of bending and curling and good waterproofness, the two generated screen description information 640 may be: Screen 1: a person with long eyelashes blinking; Screen 2: close-up of washing face. Material retrieval 660 is performed according to the screen description information 640 and the preset material set 650. A recommended material list 670 is generated based on the retrieved candidate recommended materials for the user to select. Based on the selection operation for the candidate recommended materials, a target recommended material 680 is determined. The target recommended material 680 and the original material 620 are preprocessed 690 such as material understanding. The preprocessed material is matched with the segmented script 6100. A target video is generated based on the image-text matching result and the script copy 600.
[0099] The disclosed embodiment matches the picture description vector with the material vector associated with the preset material set to obtain the matching material with a matching degree exceeding the set threshold, and then arranges the matching materials in descending order according to the matching degree to obtain the candidate recommended material, thereby realizing fast and accurate acquisition of the candidate recommended object associated with the target object. The candidate recommended materials associated with the picture description information are grouped according to the matching degree to obtain the material group associated with the picture description information, and then, according to the order of the picture description information, the material groups of each picture description information are alternately displayed, so that the user can select the candidate recommended material associated with the picture description information that meets the expectation, thereby improving the material selection efficiency and optimizing the user experience.
[0100] Figure 7This is a schematic diagram of the structure of a video generating device provided in an embodiment of the present disclosure. The device can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server.
[0101] like Figure 7 As shown, the device includes: a target material area display module 710, a material recommendation area display module 720, a recommended material selection module 730 and a video generation module 740.
[0102] The target material area display module 710 is used to display the target material area in the video generation page, wherein the target material area is used to display the media material set associated with the target video of the target object, wherein the media material set includes the original material corresponding to the target object;
[0103] A material recommendation area display module 720 is used to display a material recommendation area in the video generation page, and to display candidate recommended materials in the material recommendation area, wherein the candidate recommended materials are obtained by querying a preset material set based on at least two screen description information corresponding to the object information of the target object;
[0104] A recommended material selection module 730, configured to transfer a target recommended material from the material recommendation area to the target material area in response to a material selection operation on the candidate recommended material, so as to add the target recommended material to the media material set;
[0105] The video generation module 740 is used to respond to the video generation trigger operation in the video generation page, generate the target video of the target object based on the original material and the target recommended material in the media material set, and display the target video, wherein the video generation trigger operation is used to trigger a video generation event.
[0106] Optionally, the material recommendation area display module 720 is specifically used for:
[0107] In response to a material recommendation trigger operation in the video generation page, displaying a first form of the material recommendation area, wherein the material recommendation area in the first form includes a recommended material placeholder image;
[0108] If the candidate recommended material is loaded successfully, the second form of the material recommendation area is displayed, and the recommended material placeholder in the material recommendation area of the second form is switched to the candidate recommended material, wherein the material recommendation area of the second form includes at least two material groups associated with screen description information, and adjacent material groups are associated with different screen description information, and the material group includes at least two candidate recommended materials.
[0109] Optionally, it also includes:
[0110] In response to a material recommendation triggering operation in the video generation page, displaying at least one recommended material placeholder in the target material area;
[0111] If the candidate recommended material is loaded successfully, the candidate recommended material that meets the preset filtering condition is displayed at the position corresponding to the recommended material placeholder in the target material area, wherein the preset filtering condition is determined in combination with the order of the material groups and the order of the candidate recommended materials within the material group.
[0112] Optionally, it also includes:
[0113] If the candidate recommended material fails to load, the material recommendation area of the first form in the video generation page is deleted, and the recommended material placeholder in the target material area is deleted.
[0114] Optionally, it also includes:
[0115] Displaying the duration of the material at the set position of the candidate recommended material;
[0116] In response to a click operation on the material duration corresponding to any candidate recommended material, a preview page corresponding to the candidate recommended material is displayed, and the candidate recommended material is played on the preview page.
[0117] Optionally, the recommended material selection module 730 is specifically used for:
[0118] In response to a click operation on a material adding control corresponding to the candidate recommended material, the target recommended material is transferred along a preset moving path to a set material display position of the target material area, wherein the target recommended material represents the candidate recommended material associated with the click operation, and the preset moving path represents a line segment between the position of the target recommended material in the material recommendation area and the set material display position;
[0119] The target recommended material is displayed at the set material display position.
[0120] Furthermore, in response to a click operation on a material adding control corresponding to the candidate recommended material, transferring the target recommended material along a preset moving path to a set material display position of the target material area includes:
[0121] In response to a click operation of the material adding control displayed at a set position of the candidate recommended material, moving the target recommended material along the preset moving path;
[0122] In the process of the target recommended material moving along the first path segment in the preset moving path, the target recommended material is converted from a first form to a second form, wherein the first path segment represents a line segment between the position of the target recommended material in the material recommendation area and the target position in the video generation page;
[0123] In the process of the target recommended material moving along the second path segment in the preset moving path, the target recommended material is restored from the second form to the first form, wherein the second path segment represents a line segment between the target position and the set material display position.
[0124] Optionally, the query method of the candidate recommendation material includes:
[0125] Acquire at least one object information associated with the target object, and generate at least two pieces of picture description information associated with the object information based on at least one piece of object information and a prompt word through a preset generation model, wherein the prompt word is used to constrain a generation result of the preset generation model;
[0126] Performing vector matching on the picture description vector corresponding to the picture description information and the material vector associated with the preset material set to obtain a matching degree between the matching material and the matching material;
[0127] The candidate recommendation material in the matching material is determined according to the matching degree.
[0128] Further, after determining the candidate recommendation material in the matching material according to the matching degree, the method further includes:
[0129] For any one of the picture description information, grouping the candidate recommended materials associated with the picture description information according to the matching degree to obtain a material group associated with the picture description information;
[0130] The material groups associated with the picture description information are sequentially displayed in the material recommendation area according to the order of the picture description information.
[0131] The video generating device provided in the embodiments of the present disclosure can execute the video generating method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0132] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0133] Figure 8 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 8 , which shows an electronic device (eg, Figure 8 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0134] like Figure 8 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An edit / output (I / O) interface 805 is also connected to the bus 804.
[0135] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0136] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0137] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0138] The electronic device provided by the embodiment of the present disclosure and the video generation method provided by the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0139] The embodiment of the present disclosure provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the video generation method provided by the above embodiment is implemented.
[0140] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0141] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0142] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0143] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0144] Displaying a target material area in a video generation page, the target material area is used to display a media material set associated with a target video of a target object, wherein the media material set includes an original material corresponding to the target object;
[0145] Displaying a material recommendation area in the video generation page, and displaying candidate recommended materials in the material recommendation area, wherein the candidate recommended materials are obtained by querying a preset material set based on at least two pieces of picture description information corresponding to the object information of the target object;
[0146] In response to a material selection operation for the candidate recommended material, transferring a target recommended material from the material recommendation area to the target material area, so as to add the target recommended material to the media material set;
[0147] In response to a video generation trigger operation in the video generation page, a target video of the target object is generated based on the original material and the target recommended material in the media material set, and the target video is displayed, wherein the video generation trigger operation is used to trigger a video generation event.
[0148] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0149] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0150] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0151] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0152] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0153] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
[0154] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0155] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A video generation method, characterized in that: include: Displaying a target material area in a video generation page, the target material area is used to display a media material set associated with a target video of a target object, wherein the media material set includes an original material corresponding to the target object; Displaying a material recommendation area in the video generation page, and displaying candidate recommended materials in the material recommendation area, wherein the candidate recommended materials are obtained by querying a preset material set based on at least two pieces of picture description information corresponding to the object information of the target object; In response to a material selection operation for the candidate recommended material, transferring a target recommended material from the material recommendation area to the target material area to add the target recommended material to the media material set; In response to a video generation trigger operation in the video generation page, a target video of the target object is generated based on the original material and the target recommended material in the media material set, and the target video is displayed, wherein the video generation trigger operation is used to trigger a video generation event.
2. The method according to claim 1, characterized in that The step of displaying a material recommendation area in the video generation page and displaying candidate recommended materials in the material recommendation area includes: In response to a material recommendation triggering operation in the video generation page, displaying a first form of the material recommendation area, wherein the material recommendation area in the first form includes a recommended material placeholder; If the candidate recommended material is loaded successfully, the second form of the material recommendation area is displayed, and the recommended material placeholder in the material recommendation area of the second form is switched to the candidate recommended material, wherein the material recommendation area of the second form includes at least two material groups associated with screen description information, and adjacent material groups are associated with different screen description information, and the material group includes at least two candidate recommended materials.
3. The method according to claim 2, characterized in that Also includes: In response to a material recommendation triggering operation in the video generation page, displaying at least one recommended material placeholder in the target material area; If the candidate recommended material is loaded successfully, the candidate recommended material that meets the preset filtering condition is displayed at the position corresponding to the recommended material placeholder in the target material area, wherein the preset filtering condition is determined in combination with the order of the material groups and the order of the candidate recommended materials within the material group.
4. The method according to claim 3, characterized in that Also includes: If the candidate recommended material fails to load, the material recommendation area of the first form in the video generation page is deleted, and the recommended material placeholder in the target material area is deleted.
5. The method according to claim 1, characterized in that Also includes: Displaying the duration of the material at the set position of the candidate recommended material; In response to a click operation on the material duration corresponding to any candidate recommended material, a preview page corresponding to the candidate recommended material is displayed, and the candidate recommended material is played on the preview page.
6. The method according to claim 1, characterized in that The step of transferring the target recommended material from the material recommendation area to the target material area in response to the material selection operation for the candidate recommended material comprises: In response to a click operation on a material adding control corresponding to the candidate recommended material, the target recommended material is transferred along a preset moving path to a set material display position of the target material area, wherein the target recommended material represents the candidate recommended material associated with the click operation, and the preset moving path represents a line segment between the position of the target recommended material in the material recommendation area and the set material display position; The target recommended material is displayed at the set material display position.
7. The method according to claim 6, characterized in that In response to a click operation on a material adding control corresponding to the candidate recommended material, transferring the target recommended material along a preset moving path to a set material display position of the target material area includes: In response to a click operation of the material adding control displayed at a set position of the candidate recommended material, moving the target recommended material along the preset moving path; In the process of the target recommended material moving along the first path segment in the preset moving path, the target recommended material is converted from a first form to a second form, wherein the first path segment represents a line segment between the position of the target recommended material in the material recommendation area and the target position in the video generation page; In the process of the target recommended material moving along the second path segment in the preset moving path, the target recommended material is restored from the second form to the first form, wherein the second path segment represents a line segment between the target position and the set material display position.
8. The method according to claim 1, characterized in that The query method of the candidate recommendation material includes: Acquire at least one object information associated with the target object, and generate at least two pieces of picture description information associated with the object information based on at least one piece of object information and a prompt word through a preset generation model, wherein the prompt word is used to constrain a generation result of the preset generation model; Performing vector matching on the picture description vector corresponding to the picture description information and the material vector associated with the preset material set to obtain a matching degree between the matching material and the matching material; The candidate recommendation material in the matching material is determined according to the matching degree.
9. The method according to claim 8, characterized in that After determining the candidate recommendation material in the matching material according to the matching degree, the method further includes: For any one of the picture description information, grouping the candidate recommended materials associated with the picture description information according to the matching degree to obtain a material group associated with the picture description information; The material groups associated with the picture description information are sequentially displayed in the material recommendation area according to the order of the picture description information.
10. A video generating device, characterized in that: include: A target material area display module, used to display a target material area in a video generation page, wherein the target material area is used to display a media material set associated with a target video of a target object, wherein the media material set includes an original material corresponding to the target object; A material recommendation area display module, used to display a material recommendation area in the video generation page, and to display candidate recommended materials in the material recommendation area, wherein the candidate recommended materials are obtained by querying a preset material set based on at least two screen description information corresponding to the object information of the target object; a recommended material selection module, configured to transfer a target recommended material from the material recommendation area to the target material area in response to a material selection operation on the candidate recommended material, so as to add the target recommended material to the media material set; A video generation module is used to respond to a video generation trigger operation in the video generation page, generate a target video of the target object based on the original material and target recommended material in the media material set, and display the target video, wherein the video generation trigger operation is used to trigger a video generation event.
11. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the video generating method as described in any one of claims 1-9.
12. A storage medium containing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the video generation method according to any one of claims 1 to 9.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the video generation method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Weather forecast video generation method and device, electronic equipment and storage medium
CN111881229A
Video generation method and device, electronic equipment and storage medium
CN112911379A
Video generation method and device, electronic equipment and storage medium
CN113452941A
Video processing method and device, electronic equipment and computer readable storage medium
CN116471451A
Video editing method and device, electronic equipment and storage medium
CN116506694A
Cited By
Video generation method and apparatus, and device, medium and program product
WO2026092347A1