Dynamic image generation method and device
By implementing the dynamic image generation method in an electronic device, users can set image generation parameters and automatically generate dynamic images, solving the problems of low efficiency and single content in the prior art dynamic image acquisition, and achieving more efficient and rich dynamic image generation.
Patent Information
- Application Number
- CN202411856482.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2044-12-17
AI Technical Summary
The existing dynamic image acquisition method requires users to manually shoot videos, resulting in low acquisition efficiency and single content form, making it difficult to add other elements.
A dynamic image generation method is provided, by receiving user input, to determine image generation parameters, such as display time, duration ratio of image components and display order, and then generate dynamic images.
The efficiency of dynamic image acquisition is improved and the content of dynamic images is enriched, so that users can automatically generate dynamic images with corresponding image components by taking a static image.
Smart Images

Figure CN119743668A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a method and device for generating a dynamic image. Background Art
[0002] At present, image capture technology in electronic devices has achieved great development, and using electronic devices to take photos has become a common means for people to record their daily lives.
[0003] Among them, dynamic images can provide users with an image with dynamic effects. It is also a common shooting method, which makes it more convenient for users to record their daily lives.
[0004] However, existing methods for acquiring dynamic images require users to shoot real-time scene images. The content of the dynamic images obtained is relatively simple and it is difficult to add other elements. Users are also required to manually shoot videos as dynamic images, which takes a long time to shoot and has low efficiency in image acquisition. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a method and device for generating dynamic images, which can enrich the content of dynamic images and improve the efficiency of acquiring dynamic images.
[0006] In a first aspect, an embodiment of the present application provides a method for generating a dynamic image, the method comprising: receiving a first input from a user; 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; 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.
[0007] In a second aspect, an embodiment of the present application provides a dynamic image generating device, which includes: 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 also used to receive a second input from the user; a shooting unit for shooting a first image in response to the second input; and a generating unit for generating a first dynamic image based on the image generation parameters and the first image.
[0008] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the dynamic image generation method of the first aspect are implemented.
[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium having a program or instruction stored thereon, which, when executed by a processor, implements the steps of the dynamic image generation method of the first aspect.
[0010] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the dynamic image generation method as in the first aspect.
[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the dynamic image generation method of the first aspect.
[0012] In the dynamic image generation method provided in the embodiment of the present application, a first input from a user is received; in response to the first input, image generation parameters are determined, and 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 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 according to the image generation parameters and the first image. Through the above-mentioned 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 the image components corresponding to different image elements in the dynamic image to be generated, and the display order of different image elements are set, and then the first image is obtained by capturing, and 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 the image, thereby improving the efficiency of dynamic image acquisition and enriching the content of the dynamic image. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 A schematic diagram of a flow chart of a dynamic image generation method provided in an embodiment of the present application;
[0014] Figure 2 One of the schematic diagrams of the operation interface of the dynamic image generation method provided in the embodiment of the present application;
[0015] Figure 3 The second schematic diagram of the operation interface of the dynamic image generation method provided in the embodiment of the present application;
[0016] Figure 4 The third schematic diagram of the operation interface of the dynamic image generation method provided in the embodiment of the present application;
[0017] Figure 5A fourth schematic diagram of the operation interface of the dynamic image generation method provided in an embodiment of the present application;
[0018] Figure 6 A fifth schematic diagram of the operation interface of the dynamic image generation method provided in an embodiment of the present application;
[0019] Figure 7 A sixth schematic diagram of the operation interface of the dynamic image generation method provided in an embodiment of the present application;
[0020] Figure 8 The seventh schematic diagram of the operation interface of the dynamic image generation method provided in the embodiment of the present application;
[0021] Fig. 9 The eighth schematic diagram of the operation interface of the dynamic image generation method provided in the embodiment of the present application;
[0022] Fig.10 A ninth schematic diagram of the operation interface of the dynamic image generation method provided in an embodiment of the present application;
[0023] Fig.11 A tenth schematic diagram of the operation interface of the dynamic image generation method provided in an embodiment of the present application;
[0024] Fig.12 11 is a schematic diagram of the operation interface of the dynamic image generation method provided in an embodiment of the present application;
[0025] Fig.13 The twelfth schematic diagram of the operation interface of the dynamic image generation method provided in the embodiment of the present application;
[0026] Fig.14 The thirteenth schematic diagram of the operation interface of the dynamic image generation method provided in the embodiment of the present application;
[0027] Fig.15 A structural block diagram of a dynamic image generation device provided in an embodiment of the present application;
[0028] Fig.16 A structural block diagram of an electronic device provided in an embodiment of the present application;
[0029] Fig.17 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0031] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0032] The following is a detailed description of the dynamic image generation method provided by the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0033] like Figure 1 As shown, the embodiment of the present application provides a dynamic image generation method, which may include the following S102 to S108:
[0034] S102: Receive a first input from a user.
[0035] The dynamic image generation method proposed in the embodiment of the present application is executed by an electronic device, which may specifically be an intelligent electronic device such as a smart phone, a tablet computer, a laptop computer, and a smart watch, and is not specifically limited here.
[0036] Among them, the above-mentioned first input is the user's touch input to the electronic device, and the touch input can specifically be a single-click input, a long press input, a double-click input, a sliding input, an input along a preset trajectory, etc. Technical personnel in this field can set the specific form of the above-mentioned first input according to actual conditions, and no specific limitation is made here.
[0037] S104: In response to the first input, determine image generation parameters.
[0038] 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 different image elements.
[0039] The above-mentioned image elements include, but are not limited to: the image shooting date, the image content and the major events on the image shooting date.
[0040] Furthermore, the above-mentioned image component refers to the content that constitutes the dynamic image to be generated, and the dynamic image to be generated can be regarded as composed of at least one video and its corresponding audio. Based on this, the above-mentioned image component includes at least one video and its audio contained in the dynamic image to be generated. Among them, one image component corresponds to one image element.
[0041] Furthermore, the first input may specifically be a user's touch input to the shooting preview interface and the touch controls therein.
[0042] Specifically, in the dynamic image generation method provided in the embodiment of the present application, after opening the shooting preview interface of the electronic device, the user can set the image generation parameters of the dynamic image to be generated through the first input to the shooting preview interface.
[0043] For example, Figure 2 As shown, in the shooting preview interface 202, the electronic device receives a single-click input from the user to the third control 204. In response to the single-click input, the electronic device displays a first window 206. The first window 206 is used to set the display duration of the dynamic image to be generated (i.e., the video duration). For example, the display duration of the dynamic image to be generated, i.e., the video duration, is set to 3s. The first window 206 is also used to set the duration ratio of the image components corresponding to different image elements (date, content, and major events) in the dynamic image to be generated. For example, the duration ratio of the image components corresponding to the date, content, and major events is set to 33.3%. Further, Figure 3 As shown, the electronic device can also receive a long-press and drag input of the image element "content" in the first window 206 by the user. In response to the input, the electronic device adjusts the display order of the image components corresponding to different image elements in the dynamic image to be generated, and adjusts the display order of the image components corresponding to different image elements from "date-content-chronology" to "content-date-chronology". On this basis, the electronic device can receive and respond to the user's single-click input of the "OK" button in the first window 206, and save the image generation parameters set by the user.
[0044] S106: Receive a second input from the user.
[0045] Among them, the above-mentioned second input is the user's touch input to the electronic device, and the touch input can specifically be a single-click input, a long press input, a double-click input, a sliding input, an input along a preset trajectory, etc. Technical personnel in this field can set the specific form of the above-mentioned second input according to actual conditions, and no specific limitation is made here.
[0046] S108: In response to the second input, a first image is captured and a first dynamic image is generated according to the image generation parameters and the first image.
[0047] The second input may specifically be a touch input of the user on the shooting preview interface, and the second input is used to shoot and obtain the first image, and the first image is a static image.
[0048] Further, 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 the embodiment of the present application, after the user sets the image generation parameters, the user can shoot a static first image through the second input of the shooting preview interface. After shooting the first image, the electronic device will save the first image to the gallery, and record the image generation parameters set by the user into the EXIF (Exchangeable Image File Format, which can record the attribute information and shooting data of the image) information of the first image. Furthermore, 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 the image shooting date, image content, and image elements such as the image shooting date of the static image after shooting a static image, thereby improving the efficiency of dynamic image acquisition and enriching the content of the dynamic image.
[0050] Among them, in the actual application process, while waiting for the first dynamic image to be generated, such as Figure 4 As shown, the electronic device will display a mask and a circle animation on the first image 208 to remind the user that a dynamic image is being generated. Figure 5 As shown, after the first dynamic image 210 is generated, the electronic device will display a fourth control 212 on the first dynamic image 210 , and the user can download the first dynamic image 210 to the local gallery by single-clicking the fourth control 212 .
[0051] In addition, after generating the first dynamic image, the user may edit the first dynamic image to adjust the duration ratio and display order of each image component of the first dynamic image to obtain a dynamic image that meets the user's needs.
[0052] The dynamic image generation method provided by the embodiment of the present application receives a first input from a user; in response to the first input, determines image generation parameters, the image generation parameters including 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 different image elements; receives a second input from the user; in response to the second input, captures a first image, and generates a first dynamic image based on the image generation parameters and the first image. Through the above-mentioned dynamic image generation method, when acquiring a dynamic image, the image generation parameters such as 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 different image elements are set, and then the first image is obtained by capturing, and 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 the image, thereby improving the efficiency of dynamic image acquisition and enriching the content of the dynamic image.
[0053] In the embodiment of the present application, the step of generating the first dynamic image according to the image generation parameter and the first image may specifically include the following S110 and S112:
[0054] S110: Generate a first video and a first audio according to the image generation parameter and the first image.
[0055] The video content of the first video is related to the image element of the first image.
[0056] Furthermore, the first video includes multiple video segments, different video segments correspond to different image elements, and the duration ratios and display orders of the multiple video segments in the first video are consistent with the image generation parameters set by the user.
[0057] Further, the audio content of the first audio is related to the image element of the first image.
[0058] Furthermore, the first audio corresponds to the first video, the first audio includes a plurality of audio segments, and different audio segments correspond to different image elements.
[0059] Furthermore, the multiple audio segments correspond one-to-one to the multiple video segments, and the duration ratio and display order of each audio segment in the first audio are consistent with the duration ratio and display order of the video segment corresponding to the audio segment in the first video.
[0060] S112: Generate a first dynamic image according to 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 the embodiment of the present application, after the user sets the image generation parameters and captures the first image, the electronic device records the image generation parameters in the EXIF information of the first image, and uploads the first image to the cloud, so as to generate the first video and the first audio, whose contents are related to the image elements of the first image, respectively, according to the image generation parameters and the first image, and then generate the first dynamic image according to the first video, the first audio and the first image. In this way, by capturing a static image, the corresponding video and audio can be automatically generated based on the image elements of the static image, and then the corresponding dynamic image can be generated, which improves the efficiency of dynamic image acquisition and enriches the content of the dynamic image.
[0063] In the above-mentioned embodiment provided by the present application, in the process of generating the first dynamic image according to the image generation parameters and the first image, the first video and the first audio are generated according to the image generation parameters and the first image; and the first dynamic image is generated according to the first video, the first audio and the first image. In this way, by shooting a static image, the corresponding video and audio can be automatically generated based on the image elements of the static image, and then the corresponding dynamic image is generated, which improves the efficiency of dynamic image acquisition and enriches the content of the dynamic image.
[0064] In the embodiment of the present application, the above S110 may specifically include the following S110a to S110c:
[0065] S110a: Determine, according to the image element indicated by the image generation parameter, element information corresponding to the image element in the first image.
[0066] The above-mentioned image elements include, but are not limited to: the image shooting date, the image content and the major events on the image shooting date.
[0067] On this basis, the element information corresponding to the image shooting date is the shooting time of the first image, which may be specifically the shooting month and shooting day of the first image, such as the first image is shot on November 22; the element information corresponding to the image content is the image type and image features of the first image, such as the first image is a landscape image, an animation image, a stick figure image, a cartoon portrait, etc., or the first image is a portrait of a man wearing a hat and glasses with his right hand raised; the element information corresponding to the major events of the image shooting date is the image type, image features and shooting time of the first image, and the shooting time may be specifically the shooting year, shooting month and shooting day of the first image, such as the first image is shot on November 22, 2024.
[0068] S110b: Acquire video and audio respectively according to the element information to obtain multiple videos and multiple audios corresponding to different image elements.
[0069] Specifically, in the dynamic image generation method provided in the embodiment of the present application, 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 elements in the first image based on the image elements indicated by the image generation parameters, and then obtains the video and audio respectively based on the element information to obtain multiple videos and multiple audios corresponding to different image elements.
[0070] When respectively acquiring the video and audio according to the element information, a search may be performed in the network resources and the local resources of the electronic device based on the determined element information to search for multiple videos and multiple audios corresponding to the element information.
[0071] Among them, in the process of retrieving videos, for the image shooting date, video content related to the anniversary day, traditional festivals and "this day in history" corresponding to the shooting time of the first image can be retrieved; for the image content, video content with the same or similar image type and image features as the first image can be retrieved; for the major events on the image shooting date, news videos that occurred at the shooting time of the first image can be retrieved, and news videos related to the image type and image features of the first image are given priority.
[0072] Furthermore, in the process of retrieving audio, for the image shooting date, songs released at the shooting time of the first image, songs on the charts at the shooting 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 major events on the image shooting day, news audio that occurred at the shooting time of the first image 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 ratio, and display order indicated by the image generation parameters, generate a first video according to the multiple videos, and generate a first audio according to the multiple audios.
[0074] Specifically, in the dynamic image generation method provided in the embodiment of the present application, after acquiring multiple videos and multiple audios, based on the display duration, duration ratio and display order indicated by the image generation parameters, a first video is generated according to the multiple videos, and a first audio is generated according to the multiple audios.
[0075] In the above-mentioned embodiment provided by the present application, in the process of generating the first video and the first audio according to the image generation parameters and the first image, the element information corresponding to the image element in the first image is determined according to the image element indicated by the image generation parameters; the video and audio are respectively obtained according to the element information to obtain multiple videos and multiple audios corresponding to different image elements; based on the display duration, duration ratio and display order indicated by the image generation parameters, the first video is generated according to the multiple videos, and the first audio is generated according to the multiple audios. 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, which can make the generated first dynamic image more consistent with the static image captured by the user, thus meeting the user's needs.
[0076] In the embodiment of the present application, after the first image is captured, the dynamic image generation method may specifically include the following S114 and S124:
[0077] S114: Receive a third input of the user on the first image.
[0078] Among them, the above-mentioned third input is the user's touch input to the first image, and the touch input can specifically be a single-click input, a long press input, a double-click input, a sliding input, an input along a preset trajectory, etc. Technical personnel in this field can set the specific form of the above-mentioned third input according to actual conditions, and no specific limitation is made here.
[0079] In actual application, after capturing the first image, the electronic device will save the first image to a gallery, and the third input may specifically be a touch input of the user to the first image when viewing the first image saved in the gallery.
[0080] S116: In response to the third input, obtain image generation materials corresponding to the image elements of the first image, and display an operation component.
[0081] The image generation material includes video material and audio material used to generate the dynamic image to be generated.
[0082] Furthermore, the operation component is used to indicate a material list.
[0083] Specifically, in the dynamic image generation method provided in the embodiment of the present application, after capturing the first image, the electronic device saves the first image to a gallery. When the user views the first image saved in the gallery, the electronic device can receive a third input from the user for the first image. In response to the third input, the electronic device enters an editing interface corresponding to the first image and uploads the first image to the cloud. The cloud retrieves corresponding video materials and audio materials from network resources and local resources of the electronic device based on the image elements of the first image, obtains image generation materials corresponding to the image elements of the first image, and displays an operating component for indicating a material list for the user to select image generation materials for generating the dynamic image to be generated.
[0084] Among them, a fifth control may be displayed in the editing interface corresponding to the first image, and the fifth control is used to set the display duration of the dynamic image to be generated.
[0085] For example, Figure 6 As shown, when the user views the first image 208, the electronic device can receive a single-click input from the user on the sixth control 214 in the display interface of the first image 208. In response to the single-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. Among them, 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 3s.
[0086] S118: Receive a fourth input from the user.
[0087] Among them, the above-mentioned fourth input is the user's touch input to the electronic device, and the touch input can specifically be a single-click input, a long press input, a double-click input, a sliding input, an input along a preset trajectory, etc. Technical personnel in this field can set the specific form of the above-mentioned fourth input according to actual conditions, and no specific limitation is made here.
[0088] S120: In response to the fourth input, generate a material generation image generation file according to the plurality of images in the material 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 dynamic image to be generated, and the image generation file may specifically include a video file and an audio file used to generate the dynamic image to be generated.
[0091] Specifically, in the dynamic image generation method provided in the embodiment of the present application, after displaying the 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 for generating the dynamic image to be generated based on the multiple image generation materials, that is, the image generation file.
[0092] S122: Receive a fifth input from the user.
[0093] Among them, the above-mentioned fifth input is the user's touch input to the electronic device, and the touch input can specifically be a single-click input, a long press input, a double-click input, a sliding input, an input along a preset trajectory, etc. Technical personnel in this field can set the specific form of the above-mentioned fifth input according to actual conditions, and no specific limitation is made here.
[0094] S124: In response to the fifth input, generate a second dynamic image according to the image generation file.
[0095] The fifth input may specifically be a touch input of the user on the editing interface corresponding to the first image, and the fifth input is used to indicate that the editing of the first image has been completed.
[0096] Specifically, in the dynamic image generation method provided in the embodiment of the present application, after generating the image generation file, the electronic device can receive and respond to the user's fifth input, confirm that the user has completed editing the first image, and generate the second dynamic image according to the image generation file. In this way, based on the image elements of the static image, the corresponding image generation material is obtained, and then based on the user's selection of the image generation material, the corresponding second dynamic image is generated, ensuring that the generated second dynamic image meets the user's needs.
[0097] For example, Fig.13 As shown, after generating the image generation file, the electronic device receives and responds to the user's single click input of the "Finish" button in the editing interface 216, confirms that the user has completed the editing, and generates a second dynamic image 234 according to the image generation file. Fig.14 As shown, after the second dynamic image 234 is generated, the user can continue to edit the second dynamic image 234 by single-clicking the sixth control 214 in the display interface of the second dynamic image 234 .
[0098] In the above embodiment provided by the present application, after the first image is captured, the user's third input on the first image is received; in response to the third input, the image generation material corresponding to the image element of the first image is obtained, and the operation component is displayed, and the operation component is used to indicate the material list; the user's fourth input is received; in response to the fourth input, the material is generated according to the multiple images in the material list to generate an image generation file; the user's fifth input is received; in response to the fifth input, the second dynamic image is generated according to the image generation file. In this way, based on the image elements of the static image, the corresponding image generation material is obtained, and then based on the user's selection of the image generation material, the corresponding second dynamic image is generated, ensuring that the generated second dynamic image meets the user's needs.
[0099] In the embodiment of the present application, the operation component includes a plurality of 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 above S120 may specifically include the following S120a to S120d:
[0100] S120a: In response to a first sub-input of a user to a target operation control among a plurality of operation controls, displaying a list of image elements.
[0101] Among them, the target operation control corresponds to the target material type, and the target material type includes video material and audio material.
[0102] Furthermore, the first sub-input is a touch input of the user to the target operation control.
[0103] Furthermore, the image element list includes a plurality of image elements, each of which is used to indicate a material list of a target material type. For example, when the target operation control corresponds to a video material, each image element is used to indicate a video list, and when the target operation control corresponds to an audio material, each image element is used to indicate an audio list.
[0104] Specifically, in the dynamic image generation method provided in the embodiment of the present application, after displaying the operation component, the operation component includes multiple operation controls, and the electronic device can display the image element list in response to the user's first sub-input to the target operation control among the multiple operation controls.
[0105] Among them, when the target operation control corresponds to video material, that is, when the image generation file to be generated is a video file, the user can adjust the display order of 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 generation file to be generated is an audio file, the arrangement order of multiple image elements in the image element list corresponding to the audio material is consistent with the arrangement order of multiple image elements in the image element list corresponding to the video material.
[0107] For example, Figure 7 As shown, the operation component 236 includes a first control 218, and the first control 218 is used to indicate a video list. The electronic device receives a single click input of the user to the first control 218, and the electronic device displays the first image element list 224 in response to the single click input. Figure 8 As shown, the electronic device can receive a user's long press and drag input on the "date" in the first image list 224. In response to the input, the electronic device adjusts the arrangement order of multiple image elements in the first image element list 224 from "date-content-major events" to "content-date-major events".
[0108] For example, Fig.11 As shown, the operation component 236 includes a second control 220, and the second control 220 is used to indicate the audio list. The electronic device receives a single click input of the user on the second control 220, and the electronic device displays a second image element list 230 in response to the single click input. The arrangement order of the multiple image elements in the second image element list 230 is the same as Figure 8 The arrangement order of the multiple image elements in the first image element list 224 is consistent.
[0109] S120b: In response to the user's second sub-input on any image element among the plurality of image elements, display a material list corresponding to the any image element.
[0110] The second sub-input is a touch input of a user to any image element in the image element list.
[0111] Furthermore, the material list includes multiple image generation materials of target material types. For example, when the target operation control corresponds to a video material, the material list is a video list including multiple video materials; when the target operation control corresponds to an audio material, the material list is an audio list including multiple audio materials.
[0112] Specifically, in the dynamic image generation method provided in the embodiment of the present application, after displaying the image element list, the electronic device can receive and respond to the user's second sub-input to any image element in the image element list, and display a material list corresponding to the image element, so that the user can select image generation material of the target material type corresponding to the image element, thereby generating an image generation file.
[0113] S120c: In response to the user's third sub-input on the material list corresponding to any image element, determine an image generation material of a target material type corresponding to any image element.
[0114] The third sub-input is a user's touch input on a material list corresponding to any image element.
[0115] Furthermore, the third sub-input is used for the user to select an image generation material of a target material type for generating the second video.
[0116] Specifically, in the dynamic image generation method provided in the embodiment of the present application, after displaying the material list corresponding to any image element, the electronic device can receive and respond to the user's third sub-input to the material list, determine the image generation material of the target material type corresponding to the image element, for generating an image generation file.
[0117] In the case where the image generation file to be generated is a video file, the user may also set the duration ratio of the selected image generation material, ie, the video material, in the video file to be generated.
[0118] Furthermore, in the case where the image generation file to be generated is an audio file, the duration ratio of the audio material selected by the user in the audio file to be generated is consistent with the duration ratio of the video material set by the user in the video file to be generated.
[0119] In actual application, a seventh control may also be displayed in the editing interface corresponding to the first image. After the user selects an image generation material, the image generation material is displayed on the seventh control so that the user can understand the components of the image generation file to be generated.
[0120] For example, Fig. 9 As shown, the electronic device receives and responds to the user's single-click input of the image element "date" in the first image element list 224, and displays the video list 226 corresponding to the "date". Fig.10 As shown, the electronic device receives and responds to the user's single-click input on "Video 2" in the video list 226, and displays "Video 2" on the seventh control 228. Further, the user can also set the duration ratio of "Video 2" in the video file to be generated by touch input on the video list 226, such as setting the duration ratio of "Video 2" to 33.3%.
[0121] Furthermore, if Fig.12As shown, the electronic device receives and responds to a user's single-click input on the image element "content" in the second image element list 230, and displays an audio list 232 corresponding to the "content" so that the user can select audio material for generating an audio file from the audio list 232.
[0122] S120d: Generate an image generation file corresponding to the target material type according to the multiple image generation materials corresponding to the multiple image elements.
[0123] Wherein, an image generation file corresponding to a target material type is generated according to a plurality of image generation materials corresponding to a plurality of image elements.
[0124] Specifically, in the dynamic image generation method provided in the embodiment of the present application, after the user selects the image generation material for generating the image generation file for each image element, the electronic device generates an image generation file corresponding to the target material type according to the multiple image generation materials corresponding to the multiple image elements selected by the user. In this way, the image generation material is obtained based on the image elements of the static image, and then based on the user's selection of the image generation material, an image generation file for generating the second dynamic image is generated, ensuring that the second dynamic image generated subsequently meets the user's needs.
[0125] In the above-mentioned embodiment provided by the present application, 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 in response to the fourth input, in the process of generating an image generation file according to multiple images in the material list, in response to the first sub-input of the user to 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, the image element list includes multiple image elements, and each image element is used to indicate a material list of the target material type; in response to the second sub-input of the user to any image element among the multiple image elements, a material list corresponding to the arbitrary image element is displayed, and the material list includes multiple image generation materials of the target material type; in response to the third sub-input of the user to the material list corresponding to any image element, the image generation material of the target material type corresponding to the arbitrary image element is determined; according to the multiple image generation materials corresponding to the multiple image elements, an image generation file corresponding to the target material type is generated; wherein the target material type includes video materials and audio materials, and the image generation file includes video files and audio files. In this way, image generation materials are acquired based on image elements of the static image, and then based on the user's selection of the image generation materials, an image generation file for generating the second dynamic image is generated, thereby ensuring that the subsequently generated second dynamic image meets user needs.
[0126] The dynamic image generation method provided in the embodiment of the present application can be executed by a dynamic image generation device. In the embodiment of the present application, the dynamic image generation device provided in the embodiment of the present application is described by taking the dynamic image generation device executing the above dynamic image generation method as an example.
[0127] like Fig.15 As shown, an embodiment of the present application provides a dynamic image generation device 300, which may include the following receiving unit 302, processing unit 304, shooting unit 306 and generating unit 308.
[0128] The receiving unit 302 is used to receive a first input from a user;
[0129] The processing unit 304 is used to determine the image generation parameters in response to the first input, where 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 further configured to receive a second input from a user;
[0131] A photographing unit 306, configured to photograph and obtain a first image in response to a second input;
[0132] The generating unit 308 is configured to generate a first dynamic image according to the image generating parameters and the first image.
[0133] The dynamic image generation device 300 provided in the embodiment of the present application receives a first input from a user; in response to the first input, determines image generation parameters, the image generation parameters including 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 different image elements; receives a second input from the user; in response to the second input, captures a first image, and generates a first dynamic image according to the image generation parameters and the first image. Through the above-mentioned dynamic image generation device 300, when acquiring a dynamic image, the image generation parameters such as 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 different image elements are set, and then the first image is obtained by capturing, and 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 the image, thereby improving the efficiency of dynamic image acquisition and enriching the content of the dynamic image.
[0134] In the embodiment of the present application, the generation unit 308 is specifically used to: generate a first video and a first audio according to the image generation parameters and the first image; and generate a first dynamic image according to the first video, the first audio and the first image.
[0135] In the above-mentioned embodiment provided by the present application, in the process of generating the first dynamic image according to the image generation parameters and the first image, the first video and the first audio are generated according to the image generation parameters and the first image; and the first dynamic image is generated according to the first video, the first audio and the first image. In this way, by shooting a static image, the corresponding video and audio can be automatically generated based on the image elements of the static image, and then the corresponding dynamic image is generated, which improves the efficiency of dynamic image acquisition and enriches the content of the dynamic image.
[0136] In an embodiment of the present application, the processing unit 304 is also used to: determine the element information corresponding to the image element in the first image according to the image element indicated by the image generation parameter; the dynamic image generation device 300 also includes: an acquisition unit 310, used to respectively acquire the video and audio according to the element information, and obtain multiple videos and multiple audios corresponding to different image elements; the generation unit 308 is specifically used to: based on the display duration, duration ratio and display order indicated by the image generation parameters, generate a first video according to multiple videos, and generate a first audio according to multiple audios.
[0137] In the above-mentioned embodiment provided by the present application, in the process of generating the first video and the first audio according to the image generation parameters and the first image, the element information corresponding to the image element in the first image is determined according to the image element indicated by the image generation parameters; the video and audio are respectively obtained according to the element information to obtain multiple videos and multiple audios corresponding to different image elements; based on the display duration, duration ratio and display order indicated by the image generation parameters, the first video is generated according to the multiple videos, and the first audio is generated according to the multiple audios. 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, which can make the generated first dynamic image more consistent with the static image captured by the user, thus meeting the user's needs.
[0138] In an embodiment of the present application, after the first image is captured, the receiving unit 302 is also used to: receive a third input from the user for the first image; the acquisition unit 310 is also used to: in response to the third input, acquire an image generation material corresponding to an image element of the first image; the dynamic image generation device 300 also includes: a display unit 312, used to display an operation component, and the operation component is used to indicate a material list; the receiving unit 302 is also used to: receive a fourth input from the user; the generation unit 308 is also used to: in response to the fourth input, generate a material generation image file according to multiple images in the material list; the receiving unit 302 is also used to: receive a fifth input from the user; the generation unit 308 is also used to: in response to the fifth input, generate a second dynamic image according to the image generation file.
[0139] In the above embodiment provided by the present application, after the first image is captured, the user's third input on the first image is received; in response to the third input, the image generation material corresponding to the image element of the first image is obtained, and the operation component is displayed, and the operation component is used to indicate the material list; the user's fourth input is received; in response to the fourth input, the material is generated according to the multiple images in the material list to generate an image generation file; the user's fifth input is received; in response to the fifth input, the second dynamic image is generated according to the image generation file. In this way, based on the image elements of the static image, the corresponding image generation material is obtained, and then based on the user's selection of the image generation material, the corresponding second dynamic image is generated, ensuring that the generated second dynamic image meets the user's needs.
[0140] In an embodiment of the present application, 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 312 is also used to: in response to the user's first sub-input of a target operation control among the multiple operation controls, display an image element list, the target operation control corresponds to the target material type, the image element list includes multiple image elements, each image element is used to indicate a material list of the target material type; in response to the user's second sub-input of 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 also used to: in response to the user's third sub-input of the material list corresponding to any image element, determine the image generation material of the target material type corresponding to any image element; the generation unit 308 is specifically used to: generate an image generation file corresponding to the target material type according to the multiple image generation materials corresponding to the multiple image elements; wherein the target material type includes video materials and audio materials, and the image generation file includes video files and audio files.
[0141] In the above-mentioned embodiment provided by the present application, 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 in response to the fourth input, in the process of generating an image generation file according to multiple images in the material list, in response to the first sub-input of the user to 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, the image element list includes multiple image elements, each image element is used to indicate a material list of the target material type, and the material list includes multiple image generation materials of the target material type; in response to the second sub-input of the user to any image element among the multiple image elements, a material list corresponding to any image element is displayed; in response to the third sub-input of the user to the material list corresponding to any image element, the image generation material of the target material type corresponding to any image element is determined; according to the multiple image generation materials corresponding to the multiple image elements, an image generation file corresponding to the target material type is generated; wherein the target material type includes video materials and audio materials, and the image generation file includes video files and audio files. In this way, image generation materials are acquired based on image elements of the static image, and then based on the user's selection of the image generation materials, an image generation file for generating the second dynamic image is generated, thereby ensuring that the subsequently generated second dynamic image meets user needs.
[0142] The dynamic image generation device 300 in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0143] The dynamic image generation device 300 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0144] The dynamic image generation device 300 provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0145] Alternatively, if Fig.16 As shown, an embodiment of the present application further provides an electronic device 400, including a processor 402 and a memory 404, wherein the memory 404 stores programs or instructions that can be executed on the processor 402, and when the program or instructions are executed by the processor 402, the various steps of the above-mentioned dynamic image generation method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0146] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0147] Fig.17 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0148] The electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509 and a processor 510.
[0149] Those skilled in the art will appreciate that the electronic device 500 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 510 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.17 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0150] The user input unit 507 is used to receive a first input from a user.
[0151] Processor 510 is used to determine image generation parameters in response to the first input, where 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 further used to receive a second input from the user.
[0153] The input unit 504 is configured 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 according to the image generation parameter and the first image.
[0155] In an embodiment of the present application, a first input from a user is received; in response to the first input, image generation parameters are determined, the image generation parameters including 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 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 according to the image generation parameters and the first image. In an embodiment of the present application, when acquiring a dynamic image, image generation parameters such as 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 different image elements are set, and then the first image is obtained by capturing, and 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 the image, thereby improving the efficiency of acquiring dynamic images and enriching the content of dynamic images.
[0156] Optionally, the audio output unit 503 is specifically used to: generate a first video and a first audio according to the image generation parameter and the first image; and generate a first dynamic image according to the first video, the first audio and the first image.
[0157] In the above-mentioned embodiment provided by the present application, in the process of generating the first dynamic image according to the image generation parameters and the first image, the first video and the first audio are generated according to the image generation parameters and the first image; and the first dynamic image is generated according to the first video, the first audio and the first image. In this way, by shooting a static image, the corresponding video and audio can be automatically generated based on the image elements of the static image, and then the corresponding dynamic image is generated, which improves the efficiency of dynamic image acquisition and enriches the content of the dynamic image.
[0158] Optionally, the processor 510 is also used to: determine element information corresponding to the image element in the first image according to the image element indicated by the image generation parameter; the network module 502 is used to obtain the video and audio respectively according to the element information, and obtain multiple videos and multiple audios corresponding to different image elements; the audio output unit 503 is specifically used to: generate a first video according to multiple videos based on the display time, time ratio and display order indicated by the image generation parameters, and generate a first audio according to the multiple audios.
[0159] In the above-mentioned embodiment provided by the present application, in the process of generating the first video and the first audio according to the image generation parameters and the first image, the element information corresponding to the image element in the first image is determined according to the image element indicated by the image generation parameters; the video and audio are respectively obtained according to the element information to obtain multiple videos and multiple audios corresponding to different image elements; based on the display duration, duration ratio and display order indicated by the image generation parameters, the first video is generated according to the multiple videos, and the first audio is generated according to the multiple audios. 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, which can make the generated first dynamic image more consistent with the static image captured by the user, thus meeting the user's needs.
[0160] Optionally, after the first image is captured, the user input unit 507 is also used to: receive a third input from the user regarding the first image; the network module 502 is also used to: respond to the third input, obtain image generation material corresponding to the image element of the first image; the display unit 506 is used to display an operation component, and the operation component is used to indicate a material list; the user input unit 507 is also used to: receive a fourth input from the user; the audio output unit 503 is also used to: respond to the fourth input, generate a material generation image file based on multiple images in the material list; the user input unit 507 is also used to: receive a fifth input from the user; the audio output unit 503 is also used to: respond to the fifth input, generate a second dynamic image based on the image generation file.
[0161] In the above embodiment provided by the present application, after the first image is captured, the user's third input on the first image is received; in response to the third input, the image generation material corresponding to the image element of the first image is obtained, and the operation component is displayed, and the operation component is used to indicate the material list; the user's fourth input is received; in response to the fourth input, the material is generated according to the multiple images in the material list to generate an image generation file; the user's fifth input is received; in response to the fifth input, the second dynamic image is generated according to the image generation file. In this way, based on the image elements of the static image, the corresponding image generation material is obtained, and then based on the user's selection of the image generation material, the corresponding second dynamic image is generated, ensuring that the generated second dynamic image meets the user's needs.
[0162] Optionally, 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 506 is also used to: in response to the user's first sub-input of a target operation control among the multiple operation controls, display an image element list, the target operation control corresponds to the target material type, the image element list includes multiple image elements, each image element is used to indicate a material list of the target material type; in response to the user's second sub-input of 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 processor 510 is also used to: in response to the user's third sub-input of 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 used to: generate an image generation file corresponding to the target material type according to multiple image generation materials corresponding to multiple image elements.
[0163] In the above embodiment provided by the present application, 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, in response to the fourth input, in the process of generating an image generation file according to multiple images in the material list, in response to the first sub-input of the target operation control among the multiple operation controls by the user, an image element list is displayed, the target operation control corresponds to the target material type, the image element list includes multiple image elements, each image element is used to indicate the material list of the target material type; in response to the second sub-input of the user to any image element among the multiple image elements, a material list corresponding to any image element is displayed, the material list includes multiple image generation materials of the target material type; in response to the third sub-input of the user to the material list corresponding to any image element, the image generation material of the target material type corresponding to any image element is determined; according to the multiple image generation materials corresponding to the multiple image elements, an image generation file corresponding to the target material type is generated. In this way, the image generation material is obtained based on the image element of the static image, and then based on the user's selection of the image generation material, an image generation file for generating the second dynamic image is generated, which ensures that the second dynamic image generated subsequently meets the user's needs.
[0164] It should be understood that in the embodiment of the present application, the input unit 504 may include a graphics processor (GPU) 5041 and a microphone 5042, and the graphics processor 5041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 507 includes a touch panel 5071 and at least one of other input devices 5072. The touch panel 5071 is also called a touch screen. The touch panel 5071 may include two parts: a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0165] The memory 509 can be used to store software programs and various data. The memory 509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 509 may include a volatile memory or a non-volatile memory, or the memory 509 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 509 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0166] The processor 510 may include one or more processing units; optionally, the processor 510 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 510.
[0167] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned dynamic image generation method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0168] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0169] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned dynamic image generation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0170] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0171] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned dynamic image generation method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0172] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0173] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0174] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for generating a dynamic image, characterized in that: include: receiving a first input from a user; In response to the first input, determining image generation parameters, the image generation parameters including display duration of the dynamic image to be generated, duration ratios of image components corresponding to different image elements in the dynamic image to be generated, and display order of the different image elements; receiving a second input from the user; In response to the second input, a first image is captured and a first dynamic image is generated according to the image generation parameters and the first image.
2. The dynamic image generation method according to claim 1, characterized in that: The step of generating a first dynamic image according to the image generation parameter and the first image includes: Generate a first video and a first audio according to the image generation parameter and the first image; The first dynamic image is generated according to the first video, the first audio, and the first image.
3. The dynamic image generation method according to claim 2, characterized in that: The step of generating a first video and a first audio according to the image generation parameter and the first image includes: determining, according to the image element indicated by the image generation parameter, element information corresponding to the image element in the first image; Acquire video and audio respectively according to the element information to obtain multiple videos and multiple audios corresponding to different image elements; Based on the display duration, the duration ratio and the display order indicated by the image generation parameters, the first video is generated according to multiple videos, and the first audio is generated according to multiple audios.
4. The dynamic image generation method according to any one of claims 1 to 3, characterized in that: After the first image is obtained by shooting, the dynamic image generation method further includes: receiving a third input from a user regarding the first image; In response to the third input, acquiring image generation materials corresponding to the image elements of the first image, and displaying an operation component, wherein the operation component is used to indicate a material list; receiving a fourth input from the user; In response to the fourth input, generating a material-generated image generation file according to a plurality of images in the material list; receiving a fifth input from the user; In response to the fifth input, a second dynamic image is generated according to the image generation file.
5. The dynamic image generation method according to claim 4, characterized in that: The operation component includes a plurality of 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 in response to the fourth input, generating a material-generated image generation file according to a plurality of images in the material list, includes: In response to the first sub-input of the user to a target operation control among the plurality of operation controls, displaying an image element list, the target operation control corresponding to a target material type, the image element list comprising a plurality of image elements, each of the image elements being used to indicate a material list of the target material type; In response to the second sub-input of the user to any image element among the plurality of image elements, displaying a material list corresponding to the arbitrary image element, the material list including 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 arbitrary image element, determining the image generation material of the target material type corresponding to the arbitrary image element; Generate an image generation file corresponding to the target material type according to the plurality of image generation materials corresponding to the plurality of image elements; The target material types include video materials and audio materials, and the image generation files include video files and audio files.
6. A dynamic image generating device, characterized in that: include: A receiving unit, configured to receive a first input from a user; a processing unit, configured to determine image generation parameters in response to the first input, the image generation parameters including a display duration of a dynamic image to be generated, a 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; The receiving unit is further used to receive a second input from a user; a photographing unit, configured to photograph and obtain a first image in response to the second input; A generating unit is used to generate a first dynamic image according to the image generating parameters and the first image.
7. The dynamic image generation device according to claim 6, characterized in that: The generating unit is specifically used for: Generate a first video and a first audio according to the image generation parameter and the first image; The first dynamic image is generated according to the first video, the first audio, and the first image.
8. The dynamic image generating device according to claim 7, characterized in that: The processing unit is also used for: determining, according to the image element indicated by the image generation parameter, element information corresponding to the image element in the first image; The dynamic image generating device further comprises: An acquisition unit, used to acquire video and audio respectively according to the element information, to obtain multiple videos and multiple audios corresponding to different image elements; The generating unit is specifically used for: Based on the display duration, the duration ratio and the display order indicated by the image generation parameters, the first video is generated according to multiple videos, and the first audio is generated according to multiple audios.
9. The dynamic image generation device according to claim 8, characterized in that: After the first image is captured, the receiving unit is further used for: receiving a third input from a user regarding the first image; The acquisition unit is also used for: In response to the third input, acquiring image generation material corresponding to the image element of the first image; The dynamic image generating device further comprises: A display unit, used to display an operation component, wherein the operation component is used to indicate a material list; The receiving unit is also used for: receiving a fourth input from the user; The generating unit is further configured to: In response to the fourth input, generating a material-generated image generation file according to a plurality of images in the material list; The receiving unit is also used for: receiving a fifth input from the user; The generating unit is further configured to: In response to the fifth input, a second dynamic image is generated according to the image generation file.
10. The dynamic image generation device according to claim 9, characterized in that: The operation component includes a plurality of 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 used for: In response to the first sub-input of the user to a target operation control among the plurality of operation controls, displaying an image element list, the target operation control corresponding to a target material type, the image element list comprising a plurality of image elements, each of the image elements being used to indicate a material list of the target material type; In response to the second sub-input of the user to any image element among the plurality of image elements, displaying a material list corresponding to the arbitrary image element, the material list including a plurality of image generation materials of the target material type; The processing unit is also used for: In response to the third sub-input of the user on the material list corresponding to the arbitrary image element, determining the image generation material of the target material type corresponding to the arbitrary image element; The generating unit is specifically used for: Generate an image generation file corresponding to the target material type according to the plurality of image generation materials corresponding to the plurality of image elements; The target material types include video materials and audio materials, and the image generation files include video files and audio files.
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
Information processing device, control method, and recording medium
US20230206635A1