Method and apparatus for generating dynamic images

By receiving user input to determine image generation parameters, and generating dynamic images after capturing static images, this technology solves the problems of low efficiency and limited content in acquiring dynamic images in existing technologies, and achieves efficient and automatic generation of dynamic images.

CN119743668BActive Publication Date: 2026-01-30VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411856482.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2026-01-30
Estimated Expiration
2044-12-17

AI Technical Summary

Technical Problem

Existing methods for acquiring dynamic images require users to shoot videos in real time, resulting in limited content formats, low efficiency, and difficulty in adding other elements.

Method used

Image generation parameters are determined by receiving user input, including the display duration of the dynamic image, the duration ratio of image elements, and the display order. After capturing a static image, a dynamic image is generated based on the parameters.

Benefits of technology

It improves the efficiency of acquiring dynamic images, enriches the content of dynamic images, and realizes the automatic generation of dynamic images based on static images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119743668B_ABST
    Figure CN119743668B_ABST
Patent Text Reader

Abstract

This application discloses a method and apparatus for generating dynamic images, belonging to the field of communication technology. The method for generating dynamic images includes: receiving a first input from a user; in response to the first input, determining image generation parameters, the image generation parameters including the display duration of the dynamic image to be generated, the duration ratio of image components corresponding to different image elements in the dynamic image to be generated, and the display order of different image elements; receiving a second input from the user; in response to the second input, capturing a first image, and generating a first dynamic image based on the image generation parameters and the first image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technology, specifically relating to a method and apparatus for generating dynamic images. Background Technology

[0002] Currently, image capture technology in electronic devices has made great strides, and using electronic devices for photography has become a common way for people to record their daily lives.

[0003] Among them, dynamic images can provide users with an image with dynamic effects, which is also a common shooting method and makes it easier for users to record their daily lives.

[0004] However, existing methods for acquiring dynamic images require users to capture real-time scene footage. The content of the captured dynamic images is relatively simple, making it difficult to add other elements. Furthermore, users need to manually capture videos as dynamic images, which takes a long time and results in low image acquisition efficiency. Summary of the Invention

[0005] The purpose of this application is to provide a method and apparatus for generating dynamic images, which can enrich the content of dynamic images and improve the efficiency of dynamic image acquisition.

[0006] In a first aspect, embodiments of this application provide a method for generating a dynamic image, the method comprising: receiving a first input from a user; in response to the first input, determining image generation parameters, the image generation parameters including the display duration of the dynamic image to be generated, the duration ratio of image components corresponding to different image elements in the dynamic image to be generated, and the display order of different image elements; receiving a second input from a user; in response to the second input, capturing a first image, and generating a first dynamic image based on the image generation parameters and the first image.

[0007] Secondly, embodiments of this application provide a dynamic image generation apparatus, comprising: a receiving unit for receiving a first input from a user; a processing unit for determining image generation parameters in response to the first input, the image generation parameters including the display duration of the dynamic image to be generated, the duration ratio of image components corresponding to different image elements in the dynamic image to be generated, and the display order of different image elements; the receiving unit is further configured to receive a second input from the user; a capturing unit for capturing a first image in response to the second input; and a generation unit for generating a first dynamic image based on the image generation parameters and the first image.

[0008] Thirdly, embodiments of this application provide an electronic device including a processor and a memory. The memory stores a program or instructions that can run on the processor, and when the program or instructions are executed by the processor, they implement the steps of the dynamic image generation method of the first aspect.

[0009] Fourthly, embodiments of this application provide a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the dynamic image generation method as described in the first aspect.

[0010] Fifthly, embodiments of this application provide a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the steps of the dynamic image generation method as described in the first aspect.

[0011] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the steps of the dynamic image generation method as described in the first aspect.

[0012] In the dynamic image generation method provided in this application embodiment, a first input from a user is received; in response to the first input, image generation parameters are determined, including the display duration of the dynamic image to be generated, the duration ratio of image components corresponding to different image elements in the dynamic image to be generated, and the display order of different image elements; a second input from the user is received; in response to the second input, a first image is captured, and a first dynamic image is generated based on the image generation parameters and the first image. Through the above dynamic image generation method, when acquiring a dynamic image, image generation parameters such as the display duration of the dynamic image to be generated, the duration ratio of image components corresponding to different image elements in the dynamic image to be generated, and the display order of different image elements are set. Then, by capturing a first image, the first dynamic image can be automatically generated based on the image elements of the first image according to the set image generation parameters. In this way, by capturing an image, a dynamic image with corresponding image components can be automatically generated based on the image parameters of that image, improving the efficiency of dynamic image acquisition and enriching the content of the dynamic image. Attached Figure Description

[0013] Figure 1 A flowchart illustrating the dynamic image generation method provided in this application embodiment;

[0014] Figure 2 This is one of the schematic diagrams of the operation interface of the dynamic image generation method provided in the embodiments of this application;

[0015] Figure 3 This is a second schematic diagram of the operation interface of the dynamic image generation method provided in the embodiments of this application;

[0016] Figure 4 The third schematic diagram of the operation interface of the dynamic image generation method provided in the embodiments of this application;

[0017] Figure 5Fourth schematic diagram of the operation interface of the dynamic image generation method provided in the embodiments of this application;

[0018] Figure 6 Fifth schematic diagram of the operation interface of the dynamic image generation method provided in the embodiments of this application;

[0019] Figure 7 This is the sixth schematic diagram of the operation interface of the dynamic image generation method provided in the embodiments of this application;

[0020] Figure 8 The seventh schematic diagram of the operation interface of the dynamic image generation method provided in the embodiments of this application;

[0021] Figure 9 Eighth schematic diagram of the operation interface of the dynamic image generation method provided in the embodiments of this application;

[0022] Figure 10 The ninth schematic diagram of the operation interface of the dynamic image generation method provided in the embodiments of this application;

[0023] Figure 11 Tenth schematic diagram of the operation interface of the dynamic image generation method provided in the embodiments of this application;

[0024] Figure 12 Eleventh of the schematic diagrams showing the operation interface of the dynamic image generation method provided in the embodiments of this application;

[0025] Figure 13 The twelfth schematic diagram of the operation interface of the dynamic image generation method provided in the embodiments of this application;

[0026] Figure 14 Thirteenth schematic diagram of the operation interface of the dynamic image generation method provided in the embodiments of this application;

[0027] Figure 15 This is a structural block diagram of the dynamic image generation apparatus provided in the embodiments of this application;

[0028] Figure 16 A structural block diagram of the electronic device provided in the embodiments of this application;

[0029] Figure 17 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0030] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0031] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0032] The dynamic image generation method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0033] like Figure 1 As shown, this application provides a dynamic image generation method, which may include the following steps S102 to S108:

[0034] S102: Receive the user's first input.

[0035] The dynamic image generation method proposed in this application is executed by an electronic device, which may be a smartphone, tablet computer, laptop computer, or smartwatch, etc., and is not specifically limited to these devices.

[0036] The first input mentioned above is the user's touch input to the electronic device. Specifically, the touch input can be a single click, a long press, a double click, a swipe, or an input along a preset trajectory. Those skilled in the art can set the specific form of the first input according to the actual situation, and no specific restrictions are made here.

[0037] S104: In response to the first input, determine the image generation parameters.

[0038] The image generation parameters include the display duration of the dynamic image to be generated, the duration ratio of image components corresponding to different image elements in the dynamic image to be generated, and the display order of different image elements.

[0039] The aforementioned image elements include, but are not limited to: the date the image was taken, the image content, and a timeline of events related to the date the image was taken.

[0040] Furthermore, the aforementioned image components refer to the content that makes up the dynamic image to be generated, which can be considered as being composed of at least one video and its corresponding audio. Based on this, the aforementioned image components include at least one video and its audio contained in the dynamic image to be generated. Each image component corresponds to one type of image element.

[0041] Furthermore, the aforementioned first input can specifically be the user's touch input to the shooting preview interface and its touch controls.

[0042] Specifically, in the dynamic image generation method provided in this application embodiment, after the user opens the shooting preview interface of the electronic device, the user can set the image generation parameters of the dynamic image to be generated by the first input of the shooting preview interface.

[0043] For example, such as Figure 2 As shown, in the shooting preview interface 202, the electronic device receives a click input from the user on the third control 204. In response to this click input, the electronic device displays a first window 206. The first window 206 is used to set the display duration (i.e., video duration) of the dynamic image to be generated. For example, the display duration (i.e., video duration) of the dynamic image to be generated is set to 3 seconds. The first window 206 is also used to set the duration percentage of image components corresponding to different image elements (date, content, chronology) in the dynamic image to be generated. For example, the duration percentage of image components corresponding to date, content, and chronology is set to 33.3%. Further, as... Figure 3 As shown, the electronic device can also receive long-press and drag input from the user on the "Content" image element in the first window 206. In response to this input, the electronic device adjusts the display order of image components corresponding to different image elements in the dynamic image to be generated, changing the display order from "Date-Content-Chronicle" to "Content-Date-Chronicle". Furthermore, the electronic device can receive and respond to the user's click input on the "OK" button in the first window 206, saving the image generation parameters set by the user.

[0044] S106: Receive the user's second input.

[0045] The second input mentioned above is the user's touch input to the electronic device. Specifically, the touch input can be a single click, a long press, a double click, a swipe, or an input along a preset trajectory. Those skilled in the art can set the specific form of the second input according to the actual situation, and no specific restrictions are made here.

[0046] S108: In response to the second input, a first image is captured, and a first dynamic image is generated based on the image generation parameters and the first image.

[0047] Specifically, the second input can be the user's touch input on the shooting preview interface. The second input is used to capture the first image, which is a still image.

[0048] Furthermore, the image components of the first dynamic image are related to the image elements of the first image.

[0049] Specifically, in the dynamic image generation method provided in this application embodiment, after the user sets the image generation parameters, the user can capture a static first image through the second input on the shooting preview interface. After capturing the first image, the electronic device saves the first image to the image library and records the image generation parameters set by the user in the EXIF ​​(Exchangeable Image File Format, which can record image attribute information and shooting data) information of the first image. Further, the electronic device uploads the captured first image to the cloud to generate a first dynamic image based on the image generation parameters and the first image, and displays the first dynamic image to the user for viewing. In this way, by setting the image generation parameters, the user can automatically generate a corresponding dynamic image based on image elements such as the image shooting date, image content, and a timeline of events on the image shooting day after capturing a static image, thereby improving the efficiency of dynamic image acquisition and enriching the content of the dynamic image.

[0050] In practical applications, during the waiting period for the first dynamic image to be generated, such as... Figure 4 As shown, the electronic device displays a mask and a spinning animation on the first image 208 to alert the user that a dynamic image is being generated. Further, as... Figure 5 As shown, after the first animated image 210 is generated, the electronic device will display a fourth control 212 on the first animated image 210. The user can download the first animated image 210 to the local image library by clicking on the fourth control 212.

[0051] In addition, after the first animated image is generated, users can also edit the first animated image to adjust the duration ratio and display order of each image component to obtain an animated image that meets their own needs.

[0052] The dynamic image generation method provided in this application receives a first input from a user; in response to the first input, it determines image generation parameters, including the display duration of the dynamic image to be generated, the duration percentage of image components corresponding to different image elements in the dynamic image to be generated, and the display order of different image elements; it receives a second input from the user; in response to the second input, it captures a first image, and generates a first dynamic image based on the image generation parameters and the first image. Through the above dynamic image generation method, when acquiring a dynamic image, image generation parameters such as the display duration of the dynamic image to be generated, the duration percentage of image components corresponding to different image elements in the dynamic image to be generated, and the display order of different image elements are set. Then, by capturing a first image, the first dynamic image can be automatically generated based on the image elements of the first image according to the set image generation parameters. In this way, by capturing a static image, a dynamic image with corresponding image components can be automatically generated based on the image parameters of that image, improving the efficiency of dynamic image acquisition and enriching the content of the dynamic image.

[0053] In this embodiment of the application, the step of generating the first dynamic image based on the image generation parameters and the first image may specifically include the following steps S110 and S112:

[0054] S110: Generate a first video and a first audio based on the image generation parameters and the first image.

[0055] The video content of the first video is related to the image elements of the first image.

[0056] Furthermore, the first video includes multiple video segments, each corresponding to different image elements. The duration percentage and display order of the multiple video segments in the first video are consistent with the image generation parameters set by the user.

[0057] Furthermore, the audio content of the first audio is related to the image elements of the first image.

[0058] Furthermore, the first audio corresponds to the first video, and the first audio includes multiple audio segments, with different audio segments corresponding to different image elements.

[0059] Furthermore, multiple audio segments correspond one-to-one with multiple video segments, and the duration percentage and display order of each audio segment in the first audio are consistent with the duration percentage and display order of the corresponding video segment in the first video.

[0060] S112: Generate a first dynamic image based on the first video, the first audio, and the first image.

[0061] The first dynamic image includes a first video, a first audio, and a first image.

[0062] Specifically, in the dynamic image generation method provided in this application embodiment, after the user sets the image generation parameters and captures a first image, the electronic device records the image generation parameters into the EXIF ​​information of the first image and uploads the first image to the cloud. Based on the image generation parameters and the first image, a first video and a first audio, whose content is related to the image elements of the first image, are generated respectively. Then, based on the first video, the first audio, and the first image, a first dynamic image is generated. In this way, by capturing a static image, corresponding video and audio can be automatically generated based on the image elements of that static image, thereby generating a corresponding dynamic image. This improves the efficiency of dynamic image acquisition and enriches the content of the dynamic image.

[0063] The embodiments provided in this application, in the process of generating a first dynamic image based on image generation parameters and a first image, generate a first video and a first audio based on the image generation parameters and the first image; and generate a first dynamic image based on the first video, the first audio, and the first image. In this way, by capturing a static image, corresponding video and audio can be automatically generated based on the image elements of that static image, thereby generating a corresponding dynamic image, improving the efficiency of dynamic image acquisition and enriching the content of the dynamic image.

[0064] In this embodiment of the application, S110 may specifically include the following S110a to S110c:

[0065] S110a: Determine the element information corresponding to the image element in the first image based on the image element indicated by the image generation parameters.

[0066] The aforementioned image elements include, but are not limited to: the date the image was taken, the image content, and a timeline of events related to the date the image was taken.

[0067] Based on this, the element information corresponding to the image shooting date is the shooting time of the first image, specifically the month and day of shooting, such as the first image being taken on November 22nd; the element information corresponding to the image content is the image type and image features of the first image, such as the first image being a landscape, anime, a simple drawing, a cartoon portrait, etc., or the first image being a portrait of a man wearing a hat and glasses and raising his right hand; the element information corresponding to the milestones of the image shooting date is the image type, image features, and shooting time of the first image, specifically the shooting year, month, and day of shooting, such as the first image being taken on November 22, 2024.

[0068] S110b: Obtain video and audio respectively based on element information to obtain multiple videos and multiple audios corresponding to different image elements.

[0069] Specifically, in the dynamic image generation method provided in this application embodiment, after the electronic device uploads the first image to the cloud, the cloud parses the EXIF ​​information of the first image to obtain the image generation parameters set by the user, and determines the element information corresponding to the image element in the first image according to the image element indicated by the image generation parameters, and then obtains video and audio respectively according to the element information to obtain multiple videos and multiple audios corresponding to different image elements.

[0070] Specifically, when retrieving video and audio based on element information, searches can be performed on network resources and local resources of electronic devices based on the determined element information to find multiple videos and multiple audios corresponding to the element information.

[0071] In the process of searching for videos, for the image shooting date, video content related to anniversaries, traditional festivals, and "Today in History" corresponding to the shooting time of the first image can be retrieved; for image content, video content with the same or similar image type and image features as the first image can be retrieved; for major events on the image shooting date, news videos that occurred at the shooting time of the first image can be retrieved, with priority given to news videos related to the image type and image features of the first image.

[0072] Furthermore, during the audio retrieval process, for the image capture date, songs released at the time the first image was captured, chart songs at the capture time, etc., can be retrieved; for the image content, music related to the image type and image features of the first image can be retrieved; for the major events of the image capture date, news audio that occurred at the time the first image was captured can be retrieved, with priority given to news audio related to the image type and image features of the first image.

[0073] S110c: Based on the display duration, duration percentage and display order indicated by the image generation parameters, generate a first video from multiple videos and a first audio from multiple audio sources.

[0074] Specifically, in the dynamic image generation method provided in the embodiments of this application, after acquiring multiple videos and multiple audios, a first video is generated based on the display duration, duration percentage and display order indicated by the image generation parameters, and a first audio is generated based on the multiple videos.

[0075] The embodiments provided in this application, in the process of generating a first video and a first audio based on image generation parameters and a first image, determine the element information corresponding to the image elements in the first image according to the image elements indicated by the image generation parameters; obtain the video and audio respectively based on the element information to obtain multiple videos and multiple audios corresponding to different image elements; and generate the first video based on the display duration, duration percentage, and display order indicated by the image generation parameters, and generate the first audio based on the multiple videos. In this way, based on the image elements of the captured static image, i.e., the first image, the corresponding video and audio are automatically generated for generating the first dynamic image, making the generated first dynamic image more closely match the static image captured by the user, thus meeting user needs.

[0076] In this embodiment of the application, after the first image is captured, the above-mentioned dynamic image generation method may specifically include the following S114 and S124:

[0077] S114: Receive the user's third input on the first image.

[0078] The third input mentioned above is the user's touch input to the first image. Specifically, the touch input can be a single click, a long press, a double click, a swipe, or an input along a preset trajectory. Those skilled in the art can set the specific form of the third input according to the actual situation, and no specific restrictions are made here.

[0079] In practical applications, after capturing the first image, the electronic device will save the first image to the gallery. The aforementioned third input can specifically be the user's touch input on the first image when viewing the first image saved in the gallery.

[0080] S116: In response to the third input, obtain the image generation material corresponding to the image element of the first image and display the operation component.

[0081] The image generation materials include video and audio materials used to generate the dynamic images to be generated.

[0082] Furthermore, the operation component is used to indicate the list of materials.

[0083] Specifically, in the dynamic image generation method provided in this application embodiment, after capturing the first image, the electronic device saves the first image to the image library. When the user views the first image saved in the image library, the electronic device can receive a third input from the user on the first image. In response to the third input, the electronic device enters the editing interface corresponding to the first image and uploads the first image to the cloud. The cloud will search for corresponding video and audio materials in network resources and local resources of the electronic device based on the image elements of the first image, obtain the image generation materials corresponding to the image elements of the first image, and display operation components for indicating the material list so that the user can select the image generation materials to generate the dynamic image to be generated.

[0084] The editing interface corresponding to the first image can display a fifth control, which is used to set the display duration of the dynamic image to be generated.

[0085] For example, such as Figure 6 As shown, when a user views the first image 208, the electronic device can receive a click input from the user on the sixth control 214 in the display interface of the first image 208. In response to this click input, the electronic device enters the editing interface 216 corresponding to the first image 208 and uploads the first image 208 to the cloud. The cloud obtains the corresponding image generation material based on the image elements of the first image 208, and the electronic device then displays the operation component 236 in the editing interface 216. The editing interface 216 displays a fifth control 222, which is used to set the display duration (i.e., video duration) of the dynamic image to be generated, such as setting the display duration (i.e., video duration) to 3 seconds.

[0086] S118: Receive the user's fourth input.

[0087] The fourth input mentioned above is the user's touch input to the electronic device. Specifically, the touch input can be a single click, a long press, a double click, a swipe, or an input along a preset trajectory. Those skilled in the art can set the specific form of the fourth input according to the actual situation, and no specific restrictions are made here.

[0088] S120: In response to the fourth input, generate image files from multiple images in the media list.

[0089] The fourth input is used to select multiple images from the material list to generate materials.

[0090] Furthermore, the image generation file is an intermediate file used to generate the animated image to be generated. Specifically, the image generation file may include video and audio files used to generate the animated image to be generated.

[0091] Specifically, in the dynamic image generation method provided in the embodiments of this application, after the display operation component, the electronic device can receive and respond to the user's fourth input, select multiple image generation materials from the material list corresponding to the operation component, and generate an intermediate file, i.e., an image generation file, for generating the dynamic image to be generated based on the multiple image generation materials.

[0092] S122: Receive the user's fifth input.

[0093] The fifth input mentioned above is the user's touch input to the electronic device. Specifically, the touch input can be a single click, a long press, a double click, a swipe, or an input along a preset trajectory. Those skilled in the art can set the specific form of the fifth input according to the actual situation, and no specific restrictions are made here.

[0094] S124: In response to the fifth input, generate a second dynamic image based on the image generation file.

[0095] Specifically, the fifth input can be the user's touch input on the editing interface corresponding to the first image, and the fifth input is used to indicate that the first image has been edited.

[0096] Specifically, in the dynamic image generation method provided in this application embodiment, after generating the image generation file, the electronic device can receive and respond to the user's fifth input, confirming that the user has completed editing the first image, and generate a second dynamic image based on the image generation file. In this way, based on the image elements of the static image, corresponding image generation materials are obtained, and then based on the user's selection of image generation materials, a corresponding second dynamic image is generated, ensuring that the generated second dynamic image meets the user's needs.

[0097] For example, such as Figure 13 As shown, after generating the image file, the electronic device receives and responds to the user's click input on the "Done" button in the editing interface 216, confirming that the user has completed editing, and generates a second dynamic image 234 based on the image file. Further, as... Figure 14 As shown, after the second animated image 234 is generated, the user can continue to edit the second animated image 234 by clicking on the sixth control 214 in the display interface of the second animated image 234.

[0098] The embodiments provided in this application, after capturing a first image, receive a third input from the user regarding the first image; in response to the third input, obtain image generation materials corresponding to the image elements of the first image and display an operation component, which is used to indicate the material list; receive a fourth input from the user; in response to the fourth input, generate an image generation file based on multiple image generation materials from the material list; receive a fifth input from the user; and in response to the fifth input, generate a second dynamic image based on the image generation file. In this way, by obtaining corresponding image generation materials based on the image elements of a static image, and then generating a corresponding second dynamic image based on the user's selection of image generation materials, the generated second dynamic image is guaranteed to meet the user's needs.

[0099] In this embodiment, the operation component includes multiple operation controls, with different operation controls corresponding to different material types. The fourth input includes a first sub-input, a second sub-input, and a third sub-input. Specifically, S120 may include S120a to S120d as follows:

[0100] S120a: In response to the user's first sub-input to the target operation control among multiple operation controls, display a list of image elements.

[0101] Among them, the target operation control corresponds to the target material type, which includes video material and audio material.

[0102] Furthermore, the first sub-input is the user's touch input to the target operation control.

[0103] Furthermore, the image element list includes multiple image elements, each used to indicate a list of materials of the target material type. For example, if the target operation control corresponds to video materials, each image element indicates a video list; if the target operation control corresponds to audio materials, each image element indicates an audio list.

[0104] Specifically, in the dynamic image generation method provided in the embodiments of this application, after displaying the operation component, the operation component includes multiple operation controls, and the electronic device can display a list of image elements in response to the user's first sub-input to the target operation control among the multiple operation controls.

[0105] In cases where the target operation control corresponds to video material, that is, when the image file to be generated is a video file, the user can adjust the display order of the image components corresponding to each image element in the second dynamic image to be generated by adjusting the arrangement order of multiple image elements in the image element list.

[0106] Furthermore, when the target operation control corresponds to audio material, that is, when the image file to be generated is an audio file, the order of multiple image elements in the image element list corresponding to the audio material is consistent with the order of multiple image elements in the image element list corresponding to the video material.

[0107] For example, such as Figure 7 As shown, the operation component 236 includes a first control 218, which is used to indicate a video list. The electronic device receives a click input from the user on the first control 218, and in response to this click input, displays a first image element list 224. Further, as... Figure 8 As shown, the electronic device can receive long-press and drag input from the user on the "date" in the first image list 224. In response to this input, the electronic device adjusts the order of multiple image elements in the first image element list 224 from "date-content-chronology" to "content-date-chronology".

[0108] For example, such as Figure 11 As shown, the operation component 236 includes a second control 220, which is used to indicate an audio list. The electronic device receives a click input from the user onto the second control 220, and in response to this click input, displays a second image element list 230. The order of the multiple image elements in the second image element list 230 is... Figure 8 The multiple image elements in the first image element list 224 are arranged in the same order.

[0109] S120b: In response to a second sub-input from the user for any one of a plurality of image elements, display a list of materials corresponding to the arbitrary image element.

[0110] The second sub-input is the user's touch input to any image element in the image element list.

[0111] Furthermore, the material list includes image-generated materials of multiple target material types. For example, if the target operation control corresponds to video material, the material list is a video list, which includes multiple video materials; if the target operation control corresponds to audio material, the material list is an audio list, which includes multiple audio materials.

[0112] Specifically, in the dynamic image generation method provided in the embodiments of this application, after displaying the image element list, the electronic device can receive and respond to the user's second sub-input on any image element in the image element list, and display the material list corresponding to the image element, so that the user can select the image generation material of the target material type corresponding to the image element, thereby generating an image file.

[0113] S120c: In response to the user's third sub-input of a list of materials corresponding to any image element, determine the image material of the target material type corresponding to any image element.

[0114] The third sub-input is the user's touch input for the list of materials corresponding to any image element.

[0115] Furthermore, the third sub-input is used for the user to select the target material type for generating the second video.

[0116] Specifically, in the dynamic image generation method provided in this application embodiment, after displaying a list of materials corresponding to any image element, the electronic device can receive and respond to the user's third sub-input on the list of materials to determine the image generation material of the target material type corresponding to the image element, so as to generate an image generation file.

[0117] In the case where the image to be generated is a video file, the user can also set the duration percentage of the selected image or video material in the video file to be generated.

[0118] Furthermore, when the image to be generated is an audio file, the duration percentage of the audio material selected by the user in the audio file to be generated is consistent with the duration percentage of the video material set by the user in the video file to be generated.

[0119] In practical applications, a seventh control can also be displayed in the editing interface corresponding to the first image. After the user selects an image to generate material, the image to be generated will be displayed on the seventh control so that the user can understand the composition of the image file to be generated.

[0120] For example, such as Figure 9 As shown, the electronic device receives and responds to a user's click input on the image element "Date" in the first image element list 224, and displays the video list 226 corresponding to "Date". Further, as... Figure 10 As shown, the electronic device receives and responds to the user's click input on "Video 2" in the video list 226, and displays "Video 2" on the seventh control 228. Furthermore, the user can also set the duration percentage of "Video 2" in the video file to be generated through touch input on the video list 226, such as setting the duration percentage of "Video 2" to 33.3%.

[0121] Furthermore, such as Figure 12As shown, the electronic device receives and responds to the user's click input on the image element "content" in the second image element list 230, and displays the audio list 232 corresponding to the "content" so that the user can select audio material from the audio list 232 to generate an audio file.

[0122] S120d: Generates image files corresponding to the target material type based on multiple images corresponding to multiple image elements.

[0123] In this process, multiple image materials are generated based on multiple image elements, and image files of the corresponding target material type are generated.

[0124] Specifically, in the dynamic image generation method provided in this application embodiment, after the user selects image generation materials for each image element to generate an image generation file, the electronic device generates an image generation file corresponding to the target material type based on the multiple image generation materials corresponding to the multiple image elements selected by the user. In this way, image generation materials are obtained based on the image elements of a static image, and then an image generation file for generating a second dynamic image is generated based on the user's selection of image generation materials, ensuring that the subsequently generated second dynamic image meets the user's requirements.

[0125] The embodiments provided in this application include an operation component comprising multiple operation controls, each corresponding to a different material type. The fourth input includes a first sub-input, a second sub-input, and a third sub-input. In response to the fourth input, during the process of generating material and image files based on multiple images in the material list, in response to the user's first sub-input on the target operation control among the multiple operation controls, an image element list is displayed. The target operation control corresponds to the target material type, and the image element list includes multiple image elements, each used to indicate the material list of the target material type. In response to the user's second sub-input on any image element among the multiple image elements, a material list corresponding to that image element is displayed. The material list includes image-generated materials of multiple target material types. In response to the user's third sub-input on the material list corresponding to any image element, the image-generated material of the target material type corresponding to that image element is determined. Based on the multiple image-generated materials corresponding to the multiple image elements, an image-generated file of the corresponding target material type is generated. The target material types include video materials and audio materials, and the image-generated file includes video files and audio files. In this way, image generation materials are obtained based on image elements of static images, and then image generation files for generating second dynamic images are generated based on the user's selection of image generation materials, ensuring that the subsequently generated second dynamic images meet the user's needs.

[0126] The dynamic image generation method provided in this application can be executed by a dynamic image generation device. This application uses a dynamic image generation device executing the above-described dynamic image generation method as an example to illustrate the dynamic image generation device provided in this application.

[0127] like Figure 15 As shown, this application provides a dynamic image generation device 300, which may include the receiving unit 302, processing unit 304, shooting unit 306 and generation unit 308 described below.

[0128] The receiving unit 302 is used to receive the user's first input;

[0129] The processing unit 304 is configured to determine image generation parameters in response to the first input. The image generation parameters include the display duration of the dynamic image to be generated, the duration ratio of the image components corresponding to different image elements in the dynamic image to be generated, and the display order of the different image elements.

[0130] The receiving unit 302 is also used to receive a second input from the user;

[0131] The imaging unit 306 is used to capture a first image in response to a second input;

[0132] The generation unit 308 is used to generate a first dynamic image based on the image generation parameters and the first image.

[0133] The dynamic image generation device 300 provided in this application embodiment receives a first input from a user; in response to the first input, it determines image generation parameters, including the display duration of the dynamic image to be generated, the duration ratio of image components corresponding to different image elements in the dynamic image to be generated, and the display order of different image elements; it receives a second input from the user; in response to the second input, it captures a first image, and generates a first dynamic image based on the image generation parameters and the first image. Through the aforementioned dynamic image generation device 300, when acquiring a dynamic image, image generation parameters such as the display duration of the dynamic image to be generated, the duration ratio of image components corresponding to different image elements in the dynamic image to be generated, and the display order of different image elements are set. Then, by capturing a first image, the first dynamic image can be automatically generated based on the image elements of the first image according to the set image generation parameters. In this way, by capturing an image, a dynamic image with corresponding image components can be automatically generated based on the image parameters of that image, improving the efficiency of dynamic image acquisition and enriching the content of the dynamic image.

[0134] In this embodiment of the application, the generation unit 308 is specifically used to: generate a first video and a first audio based on image generation parameters and a first image; and generate a first dynamic image based on the first video, the first audio, and the first image.

[0135] The embodiments provided in this application, in the process of generating a first dynamic image based on image generation parameters and a first image, generate a first video and a first audio based on the image generation parameters and the first image; and generate a first dynamic image based on the first video, the first audio, and the first image. In this way, by capturing a static image, corresponding video and audio can be automatically generated based on the image elements of that static image, thereby generating a corresponding dynamic image, improving the efficiency of dynamic image acquisition and enriching the content of the dynamic image.

[0136] In this embodiment, the processing unit 304 is further configured to: determine the element information corresponding to the image element in the first image according to the image element indicated by the image generation parameters; the dynamic image generation device 300 further includes: an acquisition unit 310, configured to acquire video and audio respectively according to the element information, and obtain multiple videos and multiple audio corresponding to different image elements; the generation unit 308 is specifically configured to: generate a first video based on multiple videos and generate a first audio based on multiple audio based on the display duration, duration ratio and display order indicated by the image generation parameters.

[0137] The embodiments provided in this application, in the process of generating a first video and a first audio based on image generation parameters and a first image, determine the element information corresponding to the image elements in the first image according to the image elements indicated by the image generation parameters; obtain the video and audio respectively based on the element information to obtain multiple videos and multiple audios corresponding to different image elements; and generate the first video based on the display duration, duration percentage, and display order indicated by the image generation parameters, and generate the first audio based on the multiple videos. In this way, based on the image elements of the captured static image, i.e., the first image, the corresponding video and audio are automatically generated for generating the first dynamic image, making the generated first dynamic image more closely match the static image captured by the user, thus meeting user needs.

[0138] In this embodiment, after capturing the first image, the receiving unit 302 is further configured to: receive a third input from the user regarding the first image; the acquiring unit 310 is further configured to: in response to the third input, acquire image generation materials corresponding to the image elements of the first image; the dynamic image generation device 300 further includes: a display unit 312, configured to display an operation component, the operation component being used to indicate a material list; the receiving unit 302 is further configured to: receive a fourth input from the user; the generating unit 308 is further configured to: in response to the fourth input, generate material and generate an image generation file based on multiple images in the material list; the receiving unit 302 is further configured to: receive a fifth input from the user; the generating unit 308 is further configured to: in response to the fifth input, generate a second dynamic image based on the image generation file.

[0139] The embodiments provided in this application, after capturing a first image, receive a third input from the user regarding the first image; in response to the third input, obtain image generation materials corresponding to the image elements of the first image and display an operation component, which is used to indicate the material list; receive a fourth input from the user; in response to the fourth input, generate an image generation file based on multiple image generation materials from the material list; receive a fifth input from the user; and in response to the fifth input, generate a second dynamic image based on the image generation file. In this way, by obtaining corresponding image generation materials based on the image elements of a static image, and then generating a corresponding second dynamic image based on the user's selection of image generation materials, the generated second dynamic image is guaranteed to meet the user's needs.

[0140] In this embodiment, the operation component includes multiple operation controls, each corresponding to a different material type. The fourth input includes a first sub-input, a second sub-input, and a third sub-input. The display unit 312 is further configured to: display an image element list in response to the user's first sub-input to a target operation control among the multiple operation controls. The target operation control corresponds to a target material type, and the image element list includes multiple image elements, each used to indicate a material list of the target material type. In response to the user's second sub-input to any image element among the multiple image elements, display a material list corresponding to any image element. The material list includes image generation materials of multiple target material types. The processing unit 304 is further configured to: determine the image generation material of the target material type corresponding to any image element in response to the user's third sub-input to the material list corresponding to any image element. The generation unit 308 is specifically configured to: generate an image generation file corresponding to the target material type based on the multiple image generation materials corresponding to the multiple image elements. The target material type includes video materials and audio materials, and the image generation file includes video files and audio files.

[0141] The embodiments provided in this application include an operation component comprising multiple operation controls, each corresponding to a different material type. The fourth input includes a first sub-input, a second sub-input, and a third sub-input. In response to the fourth input, during the process of generating material and image files based on multiple images in the material list, in response to the user's first sub-input on the target operation control among the multiple operation controls, an image element list is displayed. The target operation control corresponds to the target material type, and the image element list includes multiple image elements, each used to indicate the material list of the target material type. The material list includes multiple image-generated materials of the target material type. In response to the user's second sub-input on any image element among the multiple image elements, a material list corresponding to that image element is displayed. In response to the user's third sub-input on the material list corresponding to any image element, the image-generated material of the target material type corresponding to that image element is determined. Based on the multiple image-generated materials corresponding to the multiple image elements, an image-generated file of the corresponding target material type is generated. The target material type includes video material and audio material, and the image-generated file includes video files and audio files. In this way, image generation materials are obtained based on image elements of static images, and then image generation files for generating second dynamic images are generated based on the user's selection of image generation materials, ensuring that the subsequently generated second dynamic images meet the user's needs.

[0142] The dynamic image generation device 300 in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the specific type of device.

[0143] The dynamic image generation device 300 in this embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this embodiment does not specifically limit its use.

[0144] The dynamic image generation device 300 provided in this application embodiment can achieve... Figure 1 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0145] Optionally, such as Figure 16 As shown, this application embodiment also provides an electronic device 400, including a processor 402 and a memory 404. The memory 404 stores a program or instructions that can run on the processor 402. When the program or instructions are executed by the processor 402, they implement the various steps of the above-described dynamic image generation method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0146] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0147] Figure 17 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0148] The electronic device 500 includes, but is not limited to, components such as: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, and processor 510.

[0149] Those skilled in the art will understand that the electronic device 500 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 510 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 17 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0150] The user input unit 507 is used to receive the user's first input.

[0151] The processor 510 is configured to determine image generation parameters in response to the first input. The image generation parameters include the display duration of the dynamic image to be generated, the duration ratio of image components corresponding to different image elements in the dynamic image to be generated, and the display order of different image elements.

[0152] The user input unit 507 is also used to receive a second input from the user.

[0153] The input unit 504 is used to capture a first image in response to a second input.

[0154] The audio output unit 503 is used to generate a first dynamic image based on the image generation parameters and the first image.

[0155] In this embodiment, a first user input is received; in response to the first input, image generation parameters are determined, including the display duration of the dynamic image to be generated, the duration percentage of image components corresponding to different image elements in the dynamic image to be generated, and the display order of different image elements; a second user input is received; in response to the second input, a first image is captured, and a first dynamic image is generated based on the image generation parameters and the first image. In this embodiment, when acquiring a dynamic image, image generation parameters such as the display duration of the dynamic image to be generated, the duration percentage of image components corresponding to different image elements in the dynamic image to be generated, and the display order of different image elements are set. Then, by capturing the first image, the first dynamic image can be automatically generated based on the image elements of the first image according to the set image generation parameters. In this way, by capturing an image, a dynamic image with corresponding image components can be automatically generated based on the image parameters of that image, improving the efficiency of dynamic image acquisition and enriching the content of the dynamic image.

[0156] Optionally, the audio output unit 503 is specifically used to: generate a first video and a first audio based on the image generation parameters and the first image; and generate a first dynamic image based on the first video, the first audio, and the first image.

[0157] The embodiments provided in this application, in the process of generating a first dynamic image based on image generation parameters and a first image, generate a first video and a first audio based on the image generation parameters and the first image; and generate a first dynamic image based on the first video, the first audio, and the first image. In this way, by capturing a static image, corresponding video and audio can be automatically generated based on the image elements of that static image, thereby generating a corresponding dynamic image, improving the efficiency of dynamic image acquisition and enriching the content of the dynamic image.

[0158] Optionally, the processor 510 is further configured to: determine the element information corresponding to the image element in the first image according to the image element indicated by the image generation parameters; the network module 502 is configured to acquire video and audio respectively according to the element information to obtain multiple videos and multiple audios corresponding to different image elements; the audio output unit 503 is specifically configured to: generate a first video based on multiple videos and generate a first audio based on multiple audios according to the display duration, duration ratio and display order indicated by the image generation parameters.

[0159] The embodiments provided in this application, in the process of generating a first video and a first audio based on image generation parameters and a first image, determine the element information corresponding to the image elements in the first image according to the image elements indicated by the image generation parameters; obtain the video and audio respectively based on the element information to obtain multiple videos and multiple audios corresponding to different image elements; and generate the first video based on the display duration, duration percentage, and display order indicated by the image generation parameters, and generate the first audio based on the multiple videos. In this way, based on the image elements of the captured static image, i.e., the first image, the corresponding video and audio are automatically generated for generating the first dynamic image, making the generated first dynamic image more closely match the static image captured by the user, thus meeting user needs.

[0160] Optionally, after capturing the first image, the user input unit 507 is further configured to: receive a third input from the user regarding the first image; the network module 502 is further configured to: in response to the third input, acquire image generation materials corresponding to the image elements of the first image; the display unit 506 is configured to display an operation component, which is used to indicate the material list; the user input unit 507 is further configured to: receive a fourth input from the user; the audio output unit 503 is further configured to: in response to the fourth input, generate an image generation file based on multiple images in the material list; the user input unit 507 is further configured to: receive a fifth input from the user; the audio output unit 503 is further configured to: in response to the fifth input, generate a second dynamic image based on the image generation file.

[0161] The embodiments provided in this application, after capturing a first image, receive a third input from the user regarding the first image; in response to the third input, obtain image generation materials corresponding to the image elements of the first image and display an operation component, which is used to indicate the material list; receive a fourth input from the user; in response to the fourth input, generate an image generation file based on multiple image generation materials from the material list; receive a fifth input from the user; and in response to the fifth input, generate a second dynamic image based on the image generation file. In this way, by obtaining corresponding image generation materials based on the image elements of a static image, and then generating a corresponding second dynamic image based on the user's selection of image generation materials, the generated second dynamic image is guaranteed to meet the user's needs.

[0162] Optionally, the operation component includes multiple operation controls, with different operation controls corresponding to different material types. The fourth input includes a first sub-input, a second sub-input, and a third sub-input. The display unit 506 is further configured to: in response to the user's first sub-input to the target operation control among the multiple operation controls, display an image element list, where the target operation control corresponds to the target material type, and the image element list includes multiple image elements, each image element indicating the material list of the target material type; in response to the user's second sub-input to any image element among the multiple image elements, display a material list corresponding to any image element, where the material list includes image generation materials of multiple target material types; the processor 510 is further configured to: in response to the user's third sub-input to the material list corresponding to any image element, determine the image generation material of the target material type corresponding to any image element; the audio output unit 503 is specifically configured to: generate an image generation file corresponding to the target material type based on the multiple image generation materials corresponding to the multiple image elements.

[0163] The embodiments provided in this application include an operation component comprising multiple operation controls, each corresponding to a different material type. The fourth input includes a first sub-input, a second sub-input, and a third sub-input. In response to the fourth input, during the process of generating an image file based on multiple images in the material list, in response to the user's first sub-input on the target operation control among the multiple operation controls, an image element list is displayed. The target operation control corresponds to the target material type, and the image element list includes multiple image elements, each indicating a material list of the target material type. In response to the user's second sub-input on any image element among the multiple image elements, a material list corresponding to that image element is displayed, including multiple image generation materials of the target material type. In response to the user's third sub-input on the material list corresponding to any image element, the image generation material of the target material type corresponding to that image element is determined. Based on the multiple image generation materials corresponding to the multiple image elements, an image file of the corresponding target material type is generated. Thus, image generation materials are obtained based on image elements of static images, and then, based on the user's selection of image generation materials, an image file for generating a second dynamic image is generated, ensuring that the subsequently generated second dynamic image meets the user's requirements.

[0164] It should be understood that, in this embodiment, the input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042. The GPU 5041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 506 may include a display panel 5061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 507 includes at least one of a touch panel 5071 and other input devices 5072. The touch panel 5071 is also called a touch screen. The touch panel 5071 may include a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

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

[0166] Processor 510 may include one or more processing units; optionally, processor 510 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 510.

[0167] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described dynamic image generation method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

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

[0169] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described dynamic image generation method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0170] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0171] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described dynamic image generation method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0172] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

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

[0174] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A dynamic image generation method characterized by, The method comprises: receiving a first input of a user; in response to the first input, determining image generation parameters, the image generation parameters comprising a display duration of a dynamic image to be generated, a time duration ratio of image components corresponding to different image elements in the dynamic image to be generated, and a display order of the different image elements; receiving a second input of the user; in response to the second input, capturing a first image, and generating a first dynamic image according to the image generation parameters and the first image.

2. The dynamic image generation method according to claim 1, characterized by, The generating a first dynamic image according to the image generation parameters and the first image comprises: generating a first video and a first audio according to the image generation parameters and the first image; generating the first dynamic image according to the first video, the first audio, and the first image.

3. The dynamic image generation method according to claim 2, characterized by, The generating a first video and a first audio according to the image generation parameters and the first image comprises: determining element information corresponding to an image element in the first image according to the image element indicated by the image generation parameters; obtaining a plurality of videos and a plurality of audios corresponding to different image elements according to the element information; generating the first video according to the plurality of videos and generating the first audio according to the plurality of audios based on the display duration, the time duration ratio, and the display order indicated by the image generation parameters.

4. The dynamic image generation method according to any one of claims 1 to 3, characterized by, After the first image is captured, the dynamic image generation method further comprises: receiving a third input of the user on the first image; in response to the third input, obtaining image generation materials corresponding to image elements of the first image, and displaying an operation component, the operation component being used for indicating a material list; receiving a fourth input of the user; in response to the fourth input, generating an image generation file according to a plurality of image generation materials in the material list; receiving a fifth input of the user; in response to the fifth input, generating a second dynamic image according to the image generation file.

5. The dynamic image generation method according to claim 4, characterized by, The operation component comprises a plurality of operation controls, different operation controls correspond to different material types, the fourth input comprises a first sub-input, a second sub-input, and a third sub-input, and the generating an image generation file according to a plurality of image generation materials in the material list in response to the fourth input comprises: in response to the first sub-input of the user on a target operation control in the plurality of operation controls, displaying an image element list, the target operation control corresponding to a target material type, and the image element list comprising a plurality of image elements, each image element being used for indicating a material list of the target material type; in response to the second sub-input of the user on any image element in the plurality of image elements, displaying a material list corresponding to the any image element, the material list comprising a plurality of image generation materials of the target material type; in response to the third sub-input of the user on the material list corresponding to the any image element, determining an image generation material of the target material type corresponding to the any image element; generating an image generation file corresponding to the target material type according to a plurality of image generation materials corresponding to a plurality of image elements. The target material type includes video material and audio material, and the image generation file includes a video file and an audio file.

6. An apparatus for generating a dynamic image, characterized by comprising: The method comprises: receiving a first input of a user; determining, in response to the first input, image generation parameters, the image generation parameters including a display duration of a to-be-generated dynamic image, a time duration ratio of image components corresponding to different image elements in the to-be-generated dynamic image, and a display order of the different image elements; receiving a second input of the user; capturing a first image in response to the second input; generating a first dynamic image based on the image generation parameters and the first image.

7. The dynamic image generation apparatus according to claim 6, characterized by, The generating unit is specifically configured to: generate a first video and a first audio based on the image generation parameters and the first image; generate the first dynamic image based on the first video, the first audio, and the first image.

8. The dynamic image generation apparatus according to claim 7, characterized by, The processing unit is further configured to: determine element information corresponding to image elements indicated by the image generation parameters in the first image; The dynamic image generation apparatus further comprises: an obtaining unit configured to obtain a video and an audio corresponding to different image elements based on the element information; The generating unit is specifically configured to: generate the first video based on multiple videos and generate the first audio based on multiple audios based on the display duration, the time duration ratio, and the display order indicated by the image generation parameters.

9. The dynamic image generation apparatus according to claim 8, characterized by, After the first image is captured, the receiving unit is further configured to: receive a third input of the user on the first image; The obtaining unit is further configured to: obtain image generation materials corresponding to image elements of the first image in response to the third input; The dynamic image generation apparatus further comprises: a display unit configured to display an operation component, the operation component being configured to indicate a material list; The receiving unit is further configured to: receive a fourth input of the user; The generating unit is further configured to: generate an image generation file based on multiple image generation materials in the material list in response to the fourth input; The receiving unit is further configured to: receive a fifth input of the user; The generating unit is further configured to: generate a second dynamic image based on the image generation file in response to the fifth input.

10. The dynamic image generation apparatus according to claim 9, characterized by, The operation component includes multiple operation controls, different operation controls correspond to different material types, the fourth input includes a first sub-input, a second sub-input, and a third sub-input, and the display unit is further configured to: display an image element list in response to the first sub-input of the user on a target operation control in the multiple operation controls, the target operation control corresponding to a target material type, the image element list including multiple image elements, each image element being configured to indicate a material list of the target material type; display a material list corresponding to an arbitrary image element in response to the second sub-input of the user on the arbitrary image element, the material list including multiple image generation materials of the target material type. The processing unit is further configured to: in response to the third sub-input of the user on the material list corresponding to the arbitrary image element, determine image generation material of the target material type corresponding to the arbitrary image element; the generation unit is specifically configured to: generate an image generation file corresponding to the target material type according to a plurality of image generation materials corresponding to a plurality of image elements; wherein the target material type includes video material and audio material, and the image generation file includes a video file and an audio file.

Citation Information

Patent Citations

  • Photographing method, image processing method and electronic equipment

    CN111182211A

  • Video section importance calculation model learning device, program thereof, and summary video generation device and program thereof

    JP2021189967A