[go: up one dir, main page]

CN110969683A - An animation generation method, device and electronic device - Google Patents

An animation generation method, device and electronic device Download PDF

Info

Publication number
CN110969683A
CN110969683A CN201811161928.2A CN201811161928A CN110969683A CN 110969683 A CN110969683 A CN 110969683A CN 201811161928 A CN201811161928 A CN 201811161928A CN 110969683 A CN110969683 A CN 110969683A
Authority
CN
China
Prior art keywords
image
image data
animation
displayed
drawing instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811161928.2A
Other languages
Chinese (zh)
Inventor
冉超群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811161928.2A priority Critical patent/CN110969683A/en
Publication of CN110969683A publication Critical patent/CN110969683A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/802D [Two Dimensional] animation, e.g. using sprites
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本发明公开了一种动画生成方法、装置及电子设备,所述方法包括:在显示模板动画中的第一图像时,从模板动画中提取出第一图像的下一帧需要显示的图像对应的第二图像数据,通过绘图指令对第二图像数据进行图像绘制,得到绘制后的第二图像,在显示第一图像的显示屏上显示第二图像。不需要对模板动画中的所有图像对应的图像数据都进行处理,而有选择提取出下一帧需要显示的图像对应的第二图像数据,通过绘图指令对第二图像数据进行图像绘制,得到绘制后的第二图像,在显示第一图像的显示屏上显示第二图像,则可实现动画效果。解决了现有技术中系统性能消耗大的技术问题,达到了降低系统能耗的技术效果。

Figure 201811161928

The invention discloses an animation generation method, device and electronic equipment. The method includes: when displaying a first image in a template animation, extracting from the template animation corresponding to an image to be displayed in the next frame of the first image For the second image data, image drawing is performed on the second image data through a drawing instruction to obtain a drawn second image, and the second image is displayed on the display screen displaying the first image. It is not necessary to process the image data corresponding to all the images in the template animation, but selectively extract the second image data corresponding to the image to be displayed in the next frame, and perform image drawing on the second image data through the drawing instruction to obtain the drawing. After the second image is displayed, the second image is displayed on the display screen displaying the first image, so that the animation effect can be realized. The technical problem of large system performance consumption in the prior art is solved, and the technical effect of reducing system energy consumption is achieved.

Figure 201811161928

Description

Animation generation method and device and electronic equipment
Technical Field
The invention relates to the technical field of electronic information, in particular to an animation generation method and device and electronic equipment.
Background
With the development of science and technology, various electronic devices are popularized in the aspects of people's life, especially mobile phones, computers, tablet computers and the like. The functions that people commonly use are functions of displaying information of electronic devices, such as displaying pictures, characters, etc., nowadays, electronic devices and applications in the electronic devices have more and more display effects, such as animations, videos, etc., to achieve the purpose of enriching the presentation of interfaces.
In the prior art, a system needs to refresh all images forming an animation effect to update so as to realize the animation effect, and the method for realizing the animation has high consumption on system performance.
Disclosure of Invention
In view of the above, the present invention has been made to provide an animation generation method, apparatus and electronic device that overcome the above problems or at least partially solve the above problems.
In a first aspect of the present invention, there is provided an animation generation method, including:
when a first image in a template animation is displayed, extracting second image data corresponding to an image to be displayed in the next frame of the first image from the template animation;
performing image drawing on the second image data through a drawing instruction to obtain a drawn second image;
displaying the second image on a display screen displaying the first image.
Optionally, the image drawing the second image data through the drawing instruction to obtain a drawn second image includes:
triggering a drawing instruction, and acquiring drawing parameters corresponding to the second image data according to the second image data;
and responding to the drawing instruction, and drawing the second image data according to the drawing parameters to obtain the second image.
Optionally, the image-rendering the second image data according to the rendering parameter to obtain the second image includes:
calling a drawing instruction corresponding to the second image data;
acquiring a target canvas corresponding to the second image data;
and responding to the drawing instruction, and drawing the second image data on the target canvas by using the drawing parameters.
Optionally, the obtaining of the canvas corresponding to the second image data specifically includes: selecting a target canvas corresponding to the second image data from the plurality of canvases that have been created.
Optionally, before the displaying the second image on the display screen displaying the first image, the method further includes:
rendering the second image.
In a second aspect of the present invention, there is provided an animation generation apparatus, comprising:
the method comprises the steps of obtaining an image database module, and extracting second image data corresponding to an image to be displayed in the next frame of a first image from template animation when the first image in the template animation is displayed;
the image drawing module is used for drawing the second image data through a drawing instruction to obtain a drawn second image;
and the display module is used for displaying the second image on a display screen for displaying the first image.
Optionally, the image rendering module is further configured to:
triggering a drawing instruction, and acquiring drawing parameters corresponding to the second image data according to the second image data;
and responding to the drawing instruction, and drawing the second image data according to the drawing parameters to obtain the second image.
Optionally, the image rendering module is further configured to:
calling a drawing instruction corresponding to the second image data;
acquiring a target canvas corresponding to the second image data;
and responding to the drawing instruction, and drawing the second image data on the target canvas by using the drawing parameters.
Optionally, the image rendering module is further configured to: selecting a target canvas corresponding to the second image data from the plurality of canvases that have been created.
Optionally, the apparatus further comprises:
a rendering module to render the second image prior to displaying the second image on the display screen displaying the first image.
In a third aspect of the invention, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any of the above.
In a fourth aspect of the invention, an electronic device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the above methods when executing the program.
The technical scheme provided in the embodiment of the application at least has the following technical effects or advantages:
the embodiment of the invention provides an animation generation method, an animation generation device and electronic equipment, wherein the method comprises the following steps: when a first image in the template animation is displayed, second image data corresponding to an image to be displayed in the next frame of the first image is extracted from the template animation, the second image data is subjected to image drawing through a drawing instruction to obtain a drawn second image, and the second image is displayed on a display screen displaying the first image. The image data corresponding to all the images in the template animation is not required to be processed, the second image data corresponding to the image to be displayed in the next frame is extracted and processed selectively, the system calculation amount is reduced, the system energy consumption is reduced, the second image data is subjected to image drawing through the drawing instruction to obtain the drawn second image, and the second image is displayed on the display screen displaying the first image, so that the animation effect can be realized. The technical problem of high performance consumption of a system for realizing the animation effect in the prior art is solved, and the technical effect of reducing the energy consumption of the system is achieved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a method for generating animation according to an embodiment of the present invention;
FIG. 2 is a block diagram of an animation generation apparatus 200 according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of an electronic device according to an embodiment of the present invention;
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As an alternative embodiment, the animation generating method provided by the present invention includes steps S100 to S300 as shown in fig. 1, and the steps S100 to S300 are described below with reference to fig. 1.
Step S100: when a first image in a template animation is displayed, second image data corresponding to an image to be displayed in the next frame of the first image is extracted from the template animation.
In an embodiment of the present invention, the template animation includes a plurality of frames of images. Specifically, when the first image in the template animation is displayed, an analog signal corresponding to an image to be displayed in the next frame is simultaneously acquired, and image data is obtained according to the analog signal, wherein the image data includes characteristics of the analog signal. Here, the analog signal may be sound.
In order to realize the animation effect, the system needs to refresh and update the images constituting the animation effect, wherein the animation effect is called the animation effect, and the template animation refers to an image sequence composed of the images constituting the animation effect. In the prior art, the frame rate of a system for refreshing a dynamic effect picture is fixed, the system needs to redraw and render image data corresponding to all images in a template animation in order to refresh the dynamic effect picture, the system has a large calculation amount, on one hand, the system consumes large energy, on the other hand, a pause phenomenon easily occurs when the system consumes large energy, and after the system generates the pause phenomenon, the system stops drawing and rendering the images, and at the moment, the pause phenomenon easily occurs on the dynamic effect picture.
However, in fact, on the one hand, when the animation is presented, not all images in all animation pictures are changed, and at this time, only the image data corresponding to the changed images need to be redrawn and rendered. On the other hand, when the frame rate is low and a good animation effect can be achieved, the image data corresponding to all the images in the template animation does not need to be redrawn and rendered, the image data corresponding to the partial images in the template animation can be selected to be redrawn and rendered, and the redrawn and rendered images are displayed according to the set frame rate, so that the animation effect can be achieved, and the system performance can be saved. Specifically, please refer to step S200.
Step S200: and performing image drawing on the second image data through a drawing instruction to obtain a drawn second image.
Drawing instructions are instructions that may cause a module that implements image drawing to be invoked.
In the embodiment of the present invention, a specific implementation manner of performing image rendering on the second image data through the drawing instruction to obtain a rendered second image is as follows: triggering a drawing instruction, and acquiring drawing parameters corresponding to the second image data according to the second image data; and responding to the drawing instruction, and drawing the second image data according to the drawing parameters to obtain the second image. Wherein the image rendering the second image data according to the rendering parameter to obtain the second image includes: calling a drawing instruction corresponding to the second image data; acquiring a target canvas corresponding to the second image data; and responding to the drawing instruction, and drawing the second image data on the target canvas by using the drawing parameters.
In the embodiment of the present invention, the canvas corresponding to the second image data is obtained, and a target canvas corresponding to the second image data is selected from the plurality of canvases that have been created. Here, the template animation includes a plurality of image data, each of which corresponds to one of the created canvases. The drawing instruction comprises the identification of the canvas corresponding to the second image data, and the drawing instruction acquires the target canvas corresponding to the second image data according to the identification.
As an embodiment, in an Android (Android) system, the drawing instruction may correspond to an abstract class of View in the Android system, the canvas may correspond to an abstract class of Layer in the Android system, the canvas corresponding to the second image data is selected by the drawing instruction, and a specific implementation manner in the Android system may be implemented by View.
Wherein both View and Layer act as canvas for realizing image drawing. Generally, views and layers are located in different levels in Android, views correspond to Java language program levels of the Android, layers correspond to C language program levels of the Android, and in the Android system, energy consumption for drawing images by using the layers is lower than that of drawing images by using views. For an Android system, in the prior art, a Layer is applied by calling a surfefinger class of which a service is responsible for drawing an Interface (User Interface, UI) of an Android application program, but the application of the Layer based on the surfefinger class generally applies for the number of the layers corresponding to the number of images according to the number of the images corresponding to image information transmitted into the surfefinger, and when the images are drawn, the layers simultaneously draw the images, so that energy consumption is high, and system blockage is easily caused.
In the embodiment of the present invention, the drawing parameters may be delivered via a network, or acquired in real time, or pre-stored in the system. Here, the drawing parameters include a rotation parameter, a translation parameter, a zoom parameter, a fade parameter, and the like. The rotation parameter is used for realizing the rotation dynamic effect of the dynamic effect picture, the translation parameter is used for realizing the dynamic effect of the translation motion of the dynamic effect picture, the zooming parameter is used for realizing the reduction or amplification dynamic effect of the dynamic effect picture, and the gradual change parameter is used for realizing the gradual change dynamic effect of the color, brightness or shape degree of the dynamic effect picture. Specifically, the second image data corresponding to each frame of image in the effective picture is changed according to the drawing parameters, so that the image is changed, and the animation effect is further realized.
Step S300: displaying the second image on a display screen displaying the first image.
By displaying the first image and then displaying the second image in the next frame, an animation effect can be produced on the display screen.
In an embodiment of the present invention, before displaying the second image on the display screen displaying the first image, the method further includes: rendering the second image.
As an embodiment, in the Android system, the second image may be rendered by a surfefinger class, and the rendered second image is displayed.
As an example, when the first image is a two-frame image in the animation, after the first image is displayed, a third frame image of the animation needs to be displayed. The template animation stores image data a corresponding to a third frame image, image data B corresponding to a fourth frame image, image data C corresponding to a fifth frame image, and the like. When the first image in the template animation is displayed, the image data a is extracted from the template animation as target image data (i.e., second image data), and image drawing and rendering are performed according to the image data a, so that a third frame image (i.e., the second image) to be displayed is obtained. When the second image is displayed, image data B is extracted from the template animation as target image data, image drawing and rendering are carried out according to the image data B, namely, a fourth frame image needing to be displayed is obtained, when the fourth frame image is displayed, image data C is extracted from the template animation as target image data, and image drawing and rendering are carried out according to the image data C, namely, a fifth frame image needing to be displayed is obtained. Thus, the animation effect is realized.
By adopting the scheme, when the first image in the template animation is displayed, the second image data corresponding to the image to be displayed in the next frame of the first image is extracted from the template animation, the second image data is subjected to image drawing through the drawing instruction to obtain the drawn second image, and the second image is displayed on the display screen displaying the first image. The image data corresponding to all the images in the template animation is not required to be processed, the second image data corresponding to the image to be displayed in the next frame is selectively extracted, the second image data is subjected to image drawing through the drawing instruction to obtain the drawn second image, and the second image is displayed on the display screen displaying the first image, so that the animation effect can be realized. The technical problem of large system performance consumption in the prior art is solved, and the technical effect of reducing the system energy consumption is achieved.
Aiming at the above embodiment to provide an animation generation method, the embodiment of the present application also provides an animation generation device 200 correspondingly. Referring to fig. 2, the apparatus includes:
the image obtaining database module 210 is configured to, when a first image in a template animation is displayed, extract second image data corresponding to an image to be displayed in a next frame of the first image from the template animation;
the image drawing module 220 is configured to perform image drawing on the second image data through a drawing instruction to obtain a drawn second image;
a display module 230, configured to display the second image on a display screen displaying the first image.
Optionally, the image drawing module 220 is further configured to:
triggering a drawing instruction, and acquiring drawing parameters corresponding to the second image data according to the second image data;
and responding to the drawing instruction, and drawing the second image data according to the drawing parameters to obtain the second image.
Optionally, the image drawing module 220 is further configured to:
calling a drawing instruction corresponding to the second image data;
acquiring a target canvas corresponding to the second image data;
and responding to the drawing instruction, and drawing the second image data on the target canvas by using the drawing parameters.
Optionally, the image drawing module 220 is further configured to: selecting a target canvas corresponding to the second image data from the plurality of canvases that have been created.
Optionally, the apparatus further comprises:
a rendering module to render the second image prior to displaying the second image on the display screen displaying the first image.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An embodiment of the present invention further provides an electronic device, as shown in fig. 3, including a memory 504, a processor 502, and a computer program stored on the memory 504 and executable on the processor 502, where the processor 502 implements the steps of any one of the animation generation methods described above when executing the program.
Where in fig. 3 a bus architecture (represented by bus 500) is shown, bus 500 may include any number of interconnected buses and bridges, and bus 500 links together various circuits including one or more processors, represented by processor 502, and memory, represented by memory 504. The bus 500 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 505 provides an interface between the bus 500 and the receiver 501 and transmitter 503. The receiver 501 and the transmitter 503 may be the same element, i.e. a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 502 is responsible for managing the bus 500 and general processing, and the memory 504 may be used for storing data used by the processor 502 in performing operations.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any one of the animation generation methods described above.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in an apparatus according to an embodiment of the invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses an animation generation method, which is characterized by comprising the following steps:
when a first image in a template animation is displayed, extracting second image data corresponding to an image to be displayed in the next frame of the first image from the template animation;
performing image drawing on the second image data through a drawing instruction to obtain a drawn second image;
displaying the second image on a display screen displaying the first image.
A2. The animation generation method as claimed in a1, wherein the image-rendering the second image data by the drawing instruction to obtain the rendered second image includes:
triggering a drawing instruction, and acquiring drawing parameters corresponding to the second image data according to the second image data;
and responding to the drawing instruction, and drawing the second image data according to the drawing parameters to obtain the second image.
A3. The animation generation method as claimed in a2, wherein the image-rendering the second image data according to the rendering parameter to obtain the second image includes:
calling a drawing instruction corresponding to the second image data;
acquiring a target canvas corresponding to the second image data;
and responding to the drawing instruction, and drawing the second image data on the target canvas by using the drawing parameters.
A4. The animation generation method according to a3, wherein the obtaining of the canvas corresponding to the second image data specifically includes: selecting a target canvas corresponding to the second image data from the plurality of canvases that have been created.
A5. The animation generation method of any of a1-a4, further comprising, prior to the displaying the second image on the display screen displaying the first image:
rendering the second image.
B6. An animation generation apparatus, characterized in that the apparatus comprises:
the method comprises the steps of obtaining an image database module, and extracting second image data corresponding to an image to be displayed in the next frame of a first image from template animation when the first image in the template animation is displayed;
the image drawing module is used for drawing the second image data through a drawing instruction to obtain a drawn second image;
and the display module is used for displaying the second image on a display screen for displaying the first image.
B7. The animation generation apparatus as claimed in B6, wherein the render image module is further configured to:
triggering a drawing instruction, and acquiring drawing parameters corresponding to the second image data according to the second image data;
and responding to the drawing instruction, and drawing the second image data according to the drawing parameters to obtain the second image.
B8. The animation generation apparatus as claimed in B7, wherein the render image module is further configured to:
calling a drawing instruction corresponding to the second image data;
acquiring a target canvas corresponding to the second image data;
and responding to the drawing instruction, and drawing the second image data on the target canvas by using the drawing parameters.
B9. The animation generation apparatus as claimed in B8, wherein the render image module is further configured to: selecting a target canvas corresponding to the second image data from the plurality of canvases that have been created.
B10. The animation generation apparatus of any of BB6-B9, the apparatus further comprising:
a rendering module to render the second image prior to displaying the second image on the display screen displaying the first image.
C11, a computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, carries out the steps of the method according to any one of claims a1-a 5.
D12, an electronic device, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any of claims a1-a5 when executing the program.

Claims (10)

1.一种动画生成方法,其特征在于,所述方法包括:1. an animation generation method, is characterized in that, described method comprises: 在显示模板动画中的第一图像时,从所述模板动画中提取出所述第一图像的下一帧需要显示的图像对应的第二图像数据;When displaying the first image in the template animation, extracting the second image data corresponding to the image to be displayed in the next frame of the first image from the template animation; 通过绘图指令对所述第二图像数据进行图像绘制,得到绘制后的第二图像;Perform image drawing on the second image data by drawing instructions to obtain a drawn second image; 在显示所述第一图像的显示屏上显示所述第二图像。The second image is displayed on the display screen displaying the first image. 2.如权利要求1所述的动画生成方法,其特征在于,所述通过绘图指令对所述第二图像数据进行图像绘制,得到绘制后的第二图像,包括:2. The animation generation method according to claim 1, wherein the image drawing is performed on the second image data through a drawing instruction to obtain the drawn second image, comprising: 触发绘图指令,根据所述第二图像数据,获取与所述第二图像数据对应的绘制参数;triggering a drawing instruction, and obtaining drawing parameters corresponding to the second image data according to the second image data; 响应所述绘图指令,根据所述绘制参数对所述第二图像数据进行图像绘制,获得所述第二图像。In response to the drawing instruction, image drawing is performed on the second image data according to the drawing parameters to obtain the second image. 3.如权利要求2所述的动画生成方法,其特征在于,所述根据所述绘制参数对所述第二图像数据进行图像绘制,获得所述第二图像,包括:3. The animation generation method according to claim 2, wherein the performing image drawing on the second image data according to the drawing parameters to obtain the second image comprises: 调用与所述第二图像数据对应的绘制指令;calling a drawing instruction corresponding to the second image data; 获取与所述第二图像数据对应的目标画布;obtaining a target canvas corresponding to the second image data; 响应所述绘制指令,利用所述绘制参数在所述目标画布上对所述第二图像数据进行图像绘制。In response to the drawing instruction, image drawing is performed on the second image data on the target canvas by using the drawing parameters. 4.如权利要求3所述的动画生成方法,其特征在于,所述获取与所述第二图像数据对应的画布,具体包括:从已创建的多个画布中选择与所述第二图像数据对应的目标画布。4. The animation generation method according to claim 3, wherein the acquiring a canvas corresponding to the second image data specifically comprises: selecting a canvas corresponding to the second image data from multiple created canvases The corresponding target canvas. 5.如权利要求1-4任一项所述的动画生成方法,其特征在于,在所述在显示所述第一图像的显示屏上显示所述第二图像之前,还包括:5. The animation generation method according to any one of claims 1-4, wherein before the displaying the second image on the display screen displaying the first image, the method further comprises: 对所述第二图像进行渲染。The second image is rendered. 6.一种动画生成装置,其特征在于,所述装置包括:6. An animation generation device, wherein the device comprises: 获取图像数据库模块,用于在显示模板动画中的第一图像时,从所述模板动画中提取出所述第一图像的下一帧需要显示的图像对应的第二图像数据;acquiring an image database module for extracting from the template animation the second image data corresponding to the image to be displayed in the next frame of the first image when the first image in the template animation is displayed; 绘制图像模块,用于通过绘图指令对所述第二图像数据进行图像绘制,得到绘制后的第二图像;an image drawing module, configured to perform image drawing on the second image data through drawing instructions to obtain a drawn second image; 显示模块,用于在显示所述第一图像的显示屏上显示所述第二图像。A display module, configured to display the second image on the display screen displaying the first image. 7.如权利要求6所述的动画生成装置,其特征在于,所述绘制图像模块还用于:7. The animation generating device according to claim 6, wherein the drawing image module is also used for: 触发绘图指令,根据所述第二图像数据,获取与所述第二图像数据对应的绘制参数;triggering a drawing instruction, and obtaining drawing parameters corresponding to the second image data according to the second image data; 响应所述绘图指令,根据所述绘制参数对所述第二图像数据进行图像绘制,获得所述第二图像。In response to the drawing instruction, image drawing is performed on the second image data according to the drawing parameters to obtain the second image. 8.如权利要求7所述的动画生成装置,其特征在于,所述绘制图像模块还用于:8. animation generation device as claimed in claim 7, is characterized in that, described drawing image module is also used for: 调用与所述第二图像数据对应的绘制指令;calling a drawing instruction corresponding to the second image data; 获取与所述第二图像数据对应的目标画布;obtaining a target canvas corresponding to the second image data; 响应所述绘制指令,利用所述绘制参数在所述目标画布上对所述第二图像数据进行图像绘制。In response to the drawing instruction, image drawing is performed on the second image data on the target canvas by using the drawing parameters. 9.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求1-5任一项所述方法的步骤。9. A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the steps of the method according to any one of claims 1-5 are implemented. 10.一种电子设备,其特征在于,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现权利要求1-5任一项所述方法的步骤。10. An electronic device, characterized in that it comprises a memory, a processor and a computer program stored on the memory and running on the processor, wherein any one of claims 1-5 is realized when the processor executes the program the steps of the method.
CN201811161928.2A 2018-09-30 2018-09-30 An animation generation method, device and electronic device Pending CN110969683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811161928.2A CN110969683A (en) 2018-09-30 2018-09-30 An animation generation method, device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811161928.2A CN110969683A (en) 2018-09-30 2018-09-30 An animation generation method, device and electronic device

Publications (1)

Publication Number Publication Date
CN110969683A true CN110969683A (en) 2020-04-07

Family

ID=70029331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811161928.2A Pending CN110969683A (en) 2018-09-30 2018-09-30 An animation generation method, device and electronic device

Country Status (1)

Country Link
CN (1) CN110969683A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013041568A (en) * 2011-08-17 2013-02-28 Square Enix Holdings Co Ltd Animation distribution server, animation reproduction device, control method, program, and recording medium
CN103606179A (en) * 2013-12-02 2014-02-26 珠海金山办公软件有限公司 Animation image display method and device
CN107015788A (en) * 2016-10-19 2017-08-04 阿里巴巴集团控股有限公司 Animation shows the method and apparatus of image on the mobile apparatus
CN108133506A (en) * 2016-12-01 2018-06-08 阿里巴巴集团控股有限公司 Realize the method, apparatus and system of lines dynamic effect
CN108242070A (en) * 2017-10-09 2018-07-03 北京车和家信息技术有限公司 Image rendering method, image rendering device and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013041568A (en) * 2011-08-17 2013-02-28 Square Enix Holdings Co Ltd Animation distribution server, animation reproduction device, control method, program, and recording medium
CN103606179A (en) * 2013-12-02 2014-02-26 珠海金山办公软件有限公司 Animation image display method and device
CN107015788A (en) * 2016-10-19 2017-08-04 阿里巴巴集团控股有限公司 Animation shows the method and apparatus of image on the mobile apparatus
CN108133506A (en) * 2016-12-01 2018-06-08 阿里巴巴集团控股有限公司 Realize the method, apparatus and system of lines dynamic effect
CN108242070A (en) * 2017-10-09 2018-07-03 北京车和家信息技术有限公司 Image rendering method, image rendering device and computer equipment

Similar Documents

Publication Publication Date Title
CN109670558B (en) Digital image completion using deep learning
US12210587B2 (en) Unsupervised super-resolution training data construction
US11551392B2 (en) Graphic drawing method and apparatus, device, and storage medium
CN108846791B (en) Rendering method and device of physical model and electronic equipment
US20140092012A1 (en) Adaptive tone map to a region of interest to yield a low dynamic range image
DE202017007296U1 (en) An electronic device comprising a curved display area
CN107943805A (en) A kind of animation renders and dissemination method, device
JP2022547594A (en) Joint rolling shutter correction and image deblurring
CN104346463A (en) Loading method and device of page label and browser client
CN109065001B (en) Image down-sampling method and device, terminal equipment and medium
CN107610149A (en) Image segmentation result edge optimization processing method, device and computing device
CN115661912A (en) Image processing method, model training method, electronic device and readable storage medium
CN105868246A (en) Picture display method and apparatus
EP4325427A1 (en) Electronic device for processing image and method for controlling same
US20250131167A1 (en) Prompt suggestions based on history and large language model knowledge
CN104462470A (en) Display method and device for dynamic image
CN104574473B (en) Method and device for generating dynamic effect on basis of static image
CN110288652A (en) Image processing method and device
CN113506361A (en) Three-dimensional mask display system and method based on small program
US11451721B2 (en) Interactive augmented reality (AR) based video creation from existing video
EP4546268A1 (en) Graphical interface processing method and apparatus
CN114782579B (en) Image rendering method, device and storage medium
CN110969683A (en) An animation generation method, device and electronic device
CN115272564B (en) Action video sending method, device, equipment and medium
US12400406B2 (en) Method and system for creating augmented reality filters on mobile devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200407