Dynamic image generation method and device, electronic equipment and computer readable storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DOUYIN VISION CO LTD
- Filing Date
- 2019-05-20
- Publication Date
- 2026-07-07
AI Technical Summary
Existing technologies waste a significant amount of storage space when generating multiple dynamic images using the same resources.
The system retrieves sequence frames from storage, receives configuration instructions to configure the playback attributes of the sequence frames, and generates dynamic images based on the playback attributes. The dynamic images are generated by determining the display method of the sequence frames.
It saves storage space for animated images and reduces production time.
Smart Images

Figure CN111968197B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of image processing, and more particularly to a method, apparatus, electronic device, and computer-readable storage medium for generating dynamic images. Background Technology
[0002] With the development of computer technology, the application scope of smart terminals has been greatly expanded. For example, users can listen to music, play games, chat online, and take photos using smart terminals. Regarding the photography technology of smart terminals, their image resolution has reached tens of millions of pixels or more, offering high clarity and image quality comparable to professional cameras.
[0003] Currently, when taking photos with a smart device, in addition to using the built-in camera software to achieve traditional photo effects, you can also download an application (APP) from the network to achieve photo effects with additional functions, such as low light detection, beauty camera, and super pixel.
[0004] In existing technologies, some special effects can add stickers to images, and some stickers are sequential frames that can change over time. Generally, these stickers need to be created each time for use in different scenarios. This can result in a large number of stickers created using the same resources, consuming and wasting a lot of storage space. Summary of the Invention
[0005] In a first aspect, embodiments of this disclosure provide a method for generating dynamic images, including:
[0006] Retrieve the sequence of frames used to generate the dynamic images from the storage space;
[0007] Receive configuration instructions for the sequence frames to configure the playback attributes of the sequence frames;
[0008] The display method of the sequence frames is determined based on the playback attributes;
[0009] A dynamic image corresponding to the sequence frame is generated according to the display method.
[0010] Furthermore, receiving the configuration instructions for the sequence frames to configure the playback attributes of the sequence frames includes:
[0011] Receive a first configuration instruction, which indicates the number of times the sequence frame will be played and indicates that the sequence frame will disappear after it has finished playing.
[0012] Furthermore, receiving the configuration instructions for the sequence frames to configure the playback attributes of the sequence frames includes:
[0013] Receive a second configuration instruction, which indicates the number of times the sequence frame will be played and indicates that the sequence frame will remain at the last frame after it has finished playing.
[0014] Furthermore, receiving the configuration instructions for the sequence frames to configure the playback attributes of the sequence frames includes:
[0015] A third configuration instruction is received, which indicates the number of times the sequence frame is played and instructs the sequence frame to be played in a loop between specified frame intervals after it has finished playing.
[0016] Furthermore, receiving the configuration instructions for the sequence frames to configure the playback attributes of the sequence frames includes:
[0017] A fourth configuration instruction is received, which indicates the frames in the sequence of frames selected for generating the moving image.
[0018] Furthermore, after receiving the fourth configuration instruction, the process also includes:
[0019] Receive a fifth configuration instruction, which indicates the number of times the selected frame will be played and the playback order.
[0020] Furthermore, determining the display method of the sequence frames based on the playback attributes includes:
[0021] The playback number of the sequence frame and the processing method after playback end are determined based on the playback attributes.
[0022] Secondly, embodiments of this disclosure provide a dynamic image generation apparatus, comprising:
[0023] The sequence frame acquisition module is used to acquire sequence frames from the storage space for generating dynamic images;
[0024] A configuration instruction receiving module is used to receive configuration instructions for the sequence frames to configure the playback attributes of the sequence frames;
[0025] The display mode determination module is used to determine the display mode of the sequence frames based on the playback attributes;
[0026] A dynamic image generation module is used to generate a dynamic image corresponding to the sequence frame according to the display method.
[0027] Furthermore, the configuration instruction receiving module also includes:
[0028] The first configuration instruction receiving module is used to receive a first configuration instruction, which indicates the number of times the sequence frame is played and indicates that the sequence frame disappears after it has finished playing.
[0029] Furthermore, the configuration instruction receiving module also includes:
[0030] The second configuration instruction receiving module is used to receive a second configuration instruction, which indicates the number of times the sequence frame is played and indicates that the sequence frame will remain at the last frame after it has finished playing.
[0031] Furthermore, the configuration instruction receiving module also includes:
[0032] The third configuration instruction receiving module is used to receive a third configuration instruction, which indicates the number of times the sequence frame is played and instructs the sequence frame to be played in a loop between specified frame intervals after it has finished playing.
[0033] Furthermore, the configuration instruction receiving module also includes:
[0034] The fourth configuration instruction receiving module is used to receive a fourth configuration instruction, which indicates the frame selected from the sequence frames for generating the dynamic image.
[0035] Furthermore, the fourth configuration instruction receiving module also includes:
[0036] The fifth configuration instruction receiving module is used to receive a fifth configuration instruction, which indicates the number of times the selected frame will be played and the playback order.
[0037] Furthermore, the display mode determination module is also used for:
[0038] The playback number of the sequence frame and the processing method after playback end are determined based on the playback attributes.
[0039] Thirdly, embodiments of this disclosure provide an electronic device, including: at least one processor; and,
[0040] A memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform any of the motion image generation methods described in the first aspect above.
[0041] Fourthly, embodiments of this disclosure provide a non-transitory computer-readable storage medium, characterized in that the non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute any of the dynamic image generation methods described in the first aspect above.
[0042] This disclosure provides a method, apparatus, electronic device, and computer-readable storage medium for generating dynamic images. The method includes: obtaining a sequence of frames for generating dynamic images from storage space; receiving configuration instructions for the sequence of frames to configure playback attributes; determining a display mode for the sequence of frames based on the playback attributes; and generating a dynamic image corresponding to the sequence of frames based on the display mode. This method solves the technical problem of wasted storage space when generating multiple dynamic images using the same resources in the prior art.
[0043] The above description is merely an overview of the technical solution disclosed herein. In order to better understand the technical means of this disclosure and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 A flowchart illustrating an embodiment of the dynamic image generation method provided in this disclosure;
[0046] Figure 2 A schematic diagram of the structure of an embodiment of the dynamic image generation apparatus provided in this disclosure;
[0047] Figure 3 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present disclosure. Detailed Implementation
[0048] The following specific examples illustrate the implementation of this disclosure. Those skilled in the art can easily understand other advantages and effects of this disclosure from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. This disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this disclosure. It should be noted that, in the absence of conflict, the following embodiments and features in the embodiments can be combined with each other. Based on the embodiments in this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0049] It should be noted that various aspects of embodiments within the scope of the appended claims are described below. It will be apparent that the aspects described herein can be embodied in a wide variety of forms, and any particular structure and / or function described herein is merely illustrative. Based on this disclosure, those skilled in the art will understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects set forth herein can be used to implement the device and / or practice the method. Additionally, this device and / or method can be implemented using structures and / or functionalities other than one or more of the aspects set forth herein.
[0050] It should also be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of this disclosure. The drawings only show the components related to this disclosure and are not drawn according to the number, shape and size of the components in actual implementation. In actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0051] Furthermore, specific details are provided in the following description to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that the described aspects can be practiced without these specific details.
[0052] Figure 1 This is a flowchart illustrating an embodiment of the dynamic image generation method provided in this disclosure. The dynamic image generation method provided in this embodiment can be executed by a dynamic image generation device. This dynamic image generation device can be implemented as software, or as a combination of software and hardware. The dynamic image generation device can be integrated into a device within a dynamic image generation system, such as a dynamic image generation server or a dynamic image generation terminal device. Figure 1 As shown, the method includes the following steps:
[0053] Step S101: Obtain the sequence frames used to generate the dynamic image from the storage space;
[0054] In this disclosure, the moving image is composed of a sequence of frames, which is a sequence of multiple images arranged in playback order. These images are played according to a predetermined playback order, playback speed, and playback count to form the moving image. In this step, the moving image generation server or the moving image generation terminal device retrieves the sequence of frames used to generate the moving image from storage space. The storage space can be the local storage space of the moving image generation server or the moving image generation terminal device, or it can be storage space on the network. Typically, the moving image generation server or the moving image generation terminal device receives a storage space address input by the user. The user can input the storage space address through a human-machine interface. Typically, the user can select a path to the local storage space via a button, which is the address of the storage space; or the user can input a URL of the network storage space via an input field, which is the address of the storage space. After obtaining the storage space address, the moving image generation server or the moving image generation terminal device retrieves the sequence of frames used to generate the moving image from the storage space indicated by the storage space address. The sequence frames can be in the form of dynamic images, in which case the dynamic image generation server or dynamic image generation terminal device parses the dynamic image into multiple individual images; or the sequence frames can be multiple numbered individual images.
[0055] Step S102: Receive the configuration instruction of the sequence frame to configure the playback attributes of the sequence frame;
[0056] In this disclosure, a motion image generation server or a motion image generation terminal device receives configuration instructions for the sequence frames through a human-machine interface. The human-machine interface may be a button, an input bar, a selection bar, a drop-down menu, etc. The human-machine interface displays the supported configuration instructions. Typical configuration instructions may be the number of times the sequence frame is played, the processing method after the sequence frame is played, the specified sequence frame number, etc. These configuration instructions are combined to configure the playback attributes of the sequence frame.
[0057] Optionally, receiving the configuration instruction for the sequence frame to configure its playback attributes includes: receiving a first configuration instruction, which indicates the number of times the sequence frame will be played and indicates that the sequence frame will disappear after playback. The first configuration instruction includes two sub-configuration instructions, one configuring the number of times the sequence frame will be played, and the other configuring the processing method after the sequence frame finishes playing. Typically, the number of times the sequence frame will be played can be configured to be 1, and the sequence frame will disappear after playback; that is, the sequence frame will disappear from the screen after all individual frames in the sequence have been played once.
[0058] Optionally, receiving the configuration instruction for the sequence frame to configure the playback attributes of the sequence frame includes: receiving a second configuration instruction, the second configuration instruction indicating the number of times the sequence frame is played and indicating that the sequence frame will remain on the last frame after playback. The second configuration instruction includes two sub-configuration instructions, one configuring the number of times the sequence frame is played, and the other configuring the processing method after the sequence frame is played. Typically, the number of times the sequence frame is played can be configured to be 1, and the sequence frame will remain on the last frame after playback, that is, after all the individual frames in the sequence frame are played once, the last frame played in the sequence frame is displayed on the screen.
[0059] Optionally, receiving the configuration instruction for the sequence frame to configure the playback attributes of the sequence frame includes: receiving a third configuration instruction, the third configuration instruction indicating the number of times the sequence frame is played and indicating that the sequence frame will loop between specified frame intervals after playback. The third configuration instruction includes two sub-configuration instructions, one configuring the number of times the sequence frame is played and the other configuring the processing method after the sequence frame is played. Typically, the number of times the sequence frame is played can be configured to be 1, and after the sequence frame is played, it will loop between the interval of frame 1 and frame 5. That is, after all the individual frames in the sequence frame are played once, frames 1-5 will loop on the screen.
[0060] Optionally, receiving the configuration instruction for the sequence frames to configure the playback attributes of the sequence frames includes: receiving a fourth configuration instruction, the fourth configuration instruction indicating which frames in the sequence frames are selected to generate a motion picture. The third configuration instruction is only used to select certain frames in the sequence frames to generate a motion picture. Typically, if there are 100 frames in the sequence, the third configuration instruction can select any few frames from these 100 frames to form a motion picture. Typically, when only this instruction is configured, other playback attributes can use default values, such as the default value being to loop through all frames. For example, if the user selects frames 1-10 and 70-80 from the 100 frames, the selected frame sequence will loop through in the order of 1-10, 70-80, and this frame sequence includes 20 frames.
[0061] Optionally, after receiving the fourth configuration instruction, the process includes receiving a fifth configuration instruction, which indicates the playback count and playback order of the selected frames. The fifth configuration instruction can be combined with the fourth configuration instruction to configure the playback attributes of the selected sequence of frames. Typically, based on the previous example, the playback count can be selected as loop playback, and the playback order as 80-70, 10-1, thus achieving reverse playback of the aforementioned 20 frames.
[0062] It is understood that the above playback attributes may also include other playback attributes, such as playback speed. The above playback attributes are merely examples and do not constitute a limitation on this disclosure. In fact, any playback attribute can be implemented in the technical solution of this disclosure. In addition, all playback attributes can have default values. When the playback attribute is not set, the default attribute value can be used.
[0063] Step S103: Determine the display method of the sequence frames based on the playback attributes;
[0064] In this step, the display mode of the sequence frame is determined by comprehensively determining all playback attributes of the sequence frame based on the configuration instructions received in step S102. Optionally, determining the display mode of the sequence frame based on the playback attributes includes: determining the number of times the sequence frame is played and the processing method after playback ends based on the playback attributes.
[0065] Furthermore, in this step, the display mode of the sequence frames can be previewed on the display device of the motion image generation server or the motion image generation terminal device according to the playback attributes, and the display mode can be adjusted by returning to step S102, and the adjusted display mode can be previewed again in step S103.
[0066] Step S104: Generate a dynamic image corresponding to the sequence frame according to the display method.
[0067] Optionally, in this step, the playback attributes corresponding to the display mode are saved as a playback configuration file. When generating a dynamic image, only the configuration file needs to be saved. Typically, the configuration file includes the attribute values of the playback attributes and the storage location of the sequence frames. Typically, the playback attributes may include the number of playbacks, the processing method after playback, the playback frames, the playback order, the playback speed, etc. Each playback attribute includes a default value. If a playback attribute is not configured, its default value is saved in the configuration file. In this way, each time a different dynamic image is generated, only the configuration file needs to be saved, and the same sequence frames are used. During playback, the storage location and playback attributes of the sequence frames are obtained from the configuration file, and the dynamic image is played.
[0068] By following the steps above, multiple different animated images can be created by configuring different playback attributes of the same sequence frame, instead of creating multiple animated images separately. This saves both storage space and production time for the animated images.
[0069] This disclosure provides a method, apparatus, electronic device, and computer-readable storage medium for generating dynamic images. The method includes: obtaining a sequence of frames for generating dynamic images from storage space; receiving configuration instructions for the sequence of frames to configure playback attributes; determining a display mode for the sequence of frames based on the playback attributes; and generating a dynamic image corresponding to the sequence of frames based on the display mode. This method solves the technical problem of wasted storage space when generating multiple dynamic images using the same resources in the prior art.
[0070] Although the steps in the above method embodiments have been described in the above order, those skilled in the art should understand that the steps in the embodiments of this disclosure are not necessarily executed in the above order. They can also be executed in reverse, in parallel, or in other orders. Moreover, those skilled in the art can add other steps based on the above steps. These obvious variations or equivalent substitutions should also be included within the protection scope of this disclosure, and will not be elaborated here.
[0071] Figure 2 This is a schematic diagram of the structure of an embodiment of the dynamic image generation apparatus provided in this disclosure, as shown below. Figure 2 As shown, the device 200 includes: a sequence frame acquisition module 201, a configuration instruction receiving module 202, a display mode determination module 203, and a dynamic image generation module 204. Among them,
[0072] The sequence frame acquisition module 201 is used to acquire sequence frames for generating dynamic images from the storage space;
[0073] The configuration instruction receiving module 202 is used to receive the configuration instruction of the sequence frame to configure the playback attributes of the sequence frame;
[0074] Display mode determination module 203 is used to determine the display mode of the sequence frames based on the playback attributes;
[0075] The dynamic image generation module 204 is used to generate a dynamic image corresponding to the sequence frame according to the display method.
[0076] Furthermore, the configuration instruction receiving module 202 also includes:
[0077] The first configuration instruction receiving module is used to receive a first configuration instruction, which indicates the number of times the sequence frame is played and indicates that the sequence frame disappears after it has finished playing.
[0078] Furthermore, the configuration instruction receiving module 202 also includes:
[0079] The second configuration instruction receiving module is used to receive a second configuration instruction, which indicates the number of times the sequence frame is played and indicates that the sequence frame will remain at the last frame after it has finished playing.
[0080] Furthermore, the configuration instruction receiving module 202 also includes:
[0081] The third configuration instruction receiving module is used to receive a third configuration instruction, which indicates the number of times the sequence frame is played and instructs the sequence frame to be played in a loop between specified frame intervals after it has finished playing.
[0082] Furthermore, the configuration instruction receiving module 202 also includes:
[0083] The fourth configuration instruction receiving module is used to receive a fourth configuration instruction, which indicates the frame selected from the sequence frames for generating the dynamic image.
[0084] Furthermore, the fourth configuration instruction receiving module also includes:
[0085] The fifth configuration instruction receiving module is used to receive a fifth configuration instruction, which indicates the number of times the selected frame will be played and the playback order.
[0086] Furthermore, the display mode determination module 203 is also used for:
[0087] The playback number of the sequence frame and the processing method after playback end are determined based on the playback attributes.
[0088] Figure 2 The device shown can perform Figure 1 For the methods shown in the embodiments, the parts not described in detail in this embodiment can be referred to the following: Figure 1 The relevant descriptions of the illustrated embodiments are provided below. For the execution process and technical effects of this technical solution, please refer to [link / reference]. Figure 1 The descriptions in the illustrated embodiments will not be repeated here.
[0089] The following is for reference. Figure 3 This document illustrates a structural schematic diagram of an electronic device 300 suitable for implementing embodiments of the present disclosure. The electronic devices in these embodiments may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 3 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0090] like Figure 3 As shown, the electronic device 300 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. The RAM 303 also stores various programs and data required for the operation of the electronic device 300. The processing unit 301, ROM 302, and RAM 303 are interconnected via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0091] Typically, the following devices can be connected to I / O interface 305: input devices 306 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 307 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 308 including, for example, magnetic tapes, hard disks, etc.; and communication devices 309. Communication device 309 allows electronic device 300 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 3 An electronic device 300 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0092] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 309, or installed from a storage device 308, or installed from a ROM 302. When the computer program is executed by the processing device 301, it performs the functions defined in the methods of embodiments of this disclosure.
[0093] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0094] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0095] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: retrieve a sequence of frames for generating a dynamic image from storage space; receive configuration instructions for the sequence of frames to configure playback attributes of the sequence of frames; determine a display mode for the sequence of frames based on the playback attributes; and generate a dynamic image corresponding to the sequence of frames based on the display mode.
[0096] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0097] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0098] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.
[0099] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
Claims
1. A method for generating dynamic images, comprising: Retrieve the sequence of frames used to generate the dynamic images from the storage space; Receiving different configuration instructions for a sequence of frames in the form of a moving image to configure different playback attributes of the sequence of frames includes: receiving a fourth configuration instruction indicating which frames in the sequence of frames are selected for generating the moving image; and receiving a fifth configuration instruction indicating the number of times and the playback order of the selected frames; Different display modes of the sequence frames are determined according to different playback attributes, and the playback attributes corresponding to different display modes and the storage location of the sequence frames are saved as different playback configuration files; The sequence frame is obtained based on the storage location in the playback configuration file; different dynamic images are generated based on different playback configuration files and the same sequence frame.
2. The dynamic image generation method as described in claim 1, wherein receiving configuration instructions for the sequence frames to configure the playback attributes of the sequence frames includes: Receive a first configuration instruction, which indicates the number of times the sequence frame will be played and indicates that the sequence frame will disappear after it has finished playing.
3. The dynamic image generation method as described in claim 1, wherein receiving configuration instructions for the sequence frames to configure the playback attributes of the sequence frames includes: Receive a second configuration instruction, which indicates the number of times the sequence frame will be played and indicates that the sequence frame will remain at the last frame after it has finished playing.
4. The dynamic image generation method as described in claim 1, wherein receiving configuration instructions for the sequence frames to configure the playback attributes of the sequence frames includes: A third configuration instruction is received, which indicates the number of times the sequence frame is played and instructs the sequence frame to be played in a loop between specified frame intervals after it has finished playing.
5. The dynamic image generation method according to any one of claims 1-4, wherein determining the display mode of the sequence frames based on the playback attributes includes: The playback number of the sequence frame and the processing method after playback end are determined based on the playback attributes.
6. A dynamic image generation apparatus, comprising: The sequence frame acquisition module is used to acquire sequence frames from the storage space for generating dynamic images; A configuration instruction receiving module is configured to receive different configuration instructions for a sequence of frames in the form of a dynamic image to configure multiple playback attributes of the sequence of frames, including: receiving a fourth configuration instruction, the fourth configuration instruction indicating the frames in the sequence of frames selected for generating the dynamic image; and receiving a fifth configuration instruction, the fifth configuration instruction indicating the number of times the selected frames are played and the playback order; The display mode determination module is used to determine different display modes of the sequence frames according to different playback attributes, and save the playback attributes corresponding to different display modes and the storage location of the sequence frames as different playback configuration files; A sequence frame acquisition module is used to acquire the sequence frame based on the storage location in the playback configuration file; The dynamic image generation module is used to generate different dynamic images based on different playback configuration files and the same sequence of frames.
7. An electronic device, comprising: Memory, used to store computer-readable instructions; as well as A processor for executing the computer-readable instructions such that the processor, when running, implements the dynamic image generation method according to any one of claims 1-5.
8. A non-transitory computer-readable storage medium for storing computer-readable instructions that, when executed by a computer, cause the computer to perform the dynamic image generation method according to any one of claims 1-5.