CN106920270A - Animation processing method and device - Google Patents

Animation processing method and device Download PDF

Info

Publication number
CN106920270A
CN106920270A CN201510990530.XA CN201510990530A CN106920270A CN 106920270 A CN106920270 A CN 106920270A CN 201510990530 A CN201510990530 A CN 201510990530A CN 106920270 A CN106920270 A CN 106920270A
Authority
CN
China
Prior art keywords
animation
bitmap
information
polar plot
label
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.)
Granted
Application number
CN201510990530.XA
Other languages
Chinese (zh)
Other versions
CN106920270B (en
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.)
Burson Marsteller Network Game Development (shenzhen) Co Ltd
Original Assignee
Burson Marsteller Network Game Development (shenzhen) 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 Burson Marsteller Network Game Development (shenzhen) Co Ltd filed Critical Burson Marsteller Network Game Development (shenzhen) Co Ltd
Priority to CN201510990530.XA priority Critical patent/CN106920270B/en
Publication of CN106920270A publication Critical patent/CN106920270A/en
Application granted granted Critical
Publication of CN106920270B publication Critical patent/CN106920270B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation

Abstract

The present invention relates to a kind of animation processing method, including:Loading animation file;The animation file is parsed, animation information and the view data for generating image is obtained;When described image data are used to generate polar plot, polar plot object is set up according to described image data, and set up bitmap object corresponding with the polar plot object;Pixel in the polar plot object is copied in the bitmap object;The bitmap object is saved as into bitmap;Animation is shown in cartoon scene according to the animation information and the bitmap for preserving.Animation effect in realizing animation file in cartoon scene, improves the speed that polar plot is converted into bitmap, and the animation effect of animation file can be in the scene realized according to bitmap, so as to improve the efficiency of cartoon making in cartoon scene.

Description

Animation processing method and device
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of animation processing method and device.
Background technology
With the development of image processing techniques, animation industry is also more and more ripe.In traditional animation industry, , it is necessary to the polar plot in animation file is converted into bitmap after art designing produces animation file, then by bitmap Using in the cartoon making to scene.And traditional bitmap-converted needs manual identification polar plot, and by vector Figure conversion saves as bitmap manually, and the speed of manual switch is slower, so that making animation in the scene Inefficiency.
The content of the invention
Based on this, it is necessary to for the problem of the inefficiency that animation is made in scene, there is provided at a kind of animation Reason method and apparatus.
A kind of animation processing method, including:
Loading animation file;
The animation file is parsed, animation information and the view data for generating image is obtained;
When described image data are used to generate polar plot, polar plot object is set up according to described image data, And set up bitmap object corresponding with the polar plot object;
Pixel in the polar plot object is copied in the bitmap object;
The bitmap object is saved as into bitmap;
Animation is shown in cartoon scene according to the animation information and the bitmap for preserving.
Wherein in one embodiment, the parsing animation file obtains animation information and for generating The view data of image includes:
Each frame of the traversal parsing animation file;Each frame include graphical label, display label, Remove label and single frames end-tag;
When graphical label is resolved to, the view data in the graphical label is extracted;
When display label is resolved to, extracts the image display information in the display label and record in animation In information;
When removal label is resolved to, extracts the image removal information removed in label and simultaneously record in animation In information;
When single frames end-tag is resolved to, the parsing of next frame is carried out, until the animation file is parsed Finish.
It is described when described image data are used to generate polar plot wherein in one embodiment, according to described Before view data sets up polar plot object, and foundation bitmap object corresponding with the polar plot object, also Including:
Judge to be identified with the presence or absence of bitmap in described image data, if in the presence of judgement described image data are used In generation bitmap, if not existing, judge that described image data are used to generate polar plot.
It is described to set up polar plot object according to described image data and include wherein in one embodiment:
Extract the vertex information and filling information of polar plot in view data;
The framework of polar plot object is drawn according to the vertex information;
The content of the polar plot object is filled in the framework of the polar plot object according to the filling information To generate the polar plot object.
Wherein in one embodiment, it is described according to the animation information and preserve bitmap in cartoon scene Displaying animation includes:
Animation configuration file is generated according to the animation information;
Extract the bitmap of the preservation, according to animation configuration file by the bitmap of the preservation in cartoon scene Displaying animation.
Above-mentioned animation processing method, parses to animation file, obtain animation file in animation information and View data for generating image, when view data is for generating polar plot, then according to view data Polar plot object is drawn, bitmap object is set up by the method for copying pixel in polar plot object, by bitmap pair As being converted into bitmap and preserving, animation is shown in cartoon scene according to animation information and the bitmap for being preserved.This Sample, the animation effect in realizing animation file in cartoon scene, improves and for polar plot to be converted into bitmap Speed, the animation effect of animation file can be in the scene realized according to bitmap, so as to improve animation The efficiency of cartoon making in scape.
A kind of video processing apparatus, including:
Load-on module, for loading animation file;
Parsing module, for parsing the animation file, obtains animation information and the image for generating image Data;
Identification module, for when described image data are used to generate polar plot, being built according to described image data Vertical polar plot object, and set up bitmap object corresponding with the polar plot object;Copy the polar plot pair Pixel as in is in the bitmap object;
Preserving module, for the bitmap object to be saved as into bitmap;
Animation producing and output module, for according to the animation information and preserve bitmap in cartoon scene Displaying animation.
Wherein in one embodiment, the parsing module is additionally operable to each of the traversal parsing animation file Frame;Each frame includes graphical label, display label, removes label and single frames end-tag;Work as solution When analysing graphical label, the view data in the graphical label is extracted;When display label is resolved to, carry Take the image display information in the display label and record in animation information;When removal label is resolved to, The image removed in label is extracted to remove information and record in animation information;Terminate when single frames is resolved to During label, the parsing of next frame is carried out, until animation file parsing is finished.
Wherein in one embodiment, the identification module is additionally operable to judge to whether there is in described image data Bitmap is identified, if in the presence of, judge that described image data are used to generate bitmap, if not existing, judge institute View data is stated for generating polar plot.
Wherein in one embodiment, the identification module is additionally operable to extract the summit of polar plot in view data Information and filling information;The framework of polar plot object is drawn according to the vertex information;According to the filling letter Breath fills the content of the polar plot object to generate the polar plot pair in the framework of the polar plot object As.
Wherein in one embodiment, also include:
Configuration file generation module, for generating animation configuration file according to the animation information;
The animation producing and output module are additionally operable to extract the bitmap of the preservation, according to animation configuration file The bitmap of the preservation is shown into animation in cartoon scene.
Above-mentioned video processing apparatus, parse to animation file, obtain animation file in animation information and View data for generating image, when view data is for generating polar plot, then according to view data Polar plot object is drawn, bitmap object is set up by the method for copying pixel in polar plot object, by bitmap pair As being converted into bitmap and preserving, animation is shown in cartoon scene according to animation information and the bitmap for being preserved.This Sample, the animation effect in realizing animation file in cartoon scene, improves and for polar plot to be converted into bitmap Speed, the animation effect of animation file can be in the scene realized according to bitmap, so as in improve scene The efficiency of cartoon making.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of animation processing method in one embodiment;
Fig. 2 is to set up the schematic flow sheet of polar plot object step in one embodiment;
Fig. 3 be one embodiment in cartoon scene show animated steps schematic flow sheet;
Fig. 4 is the schematic flow sheet of animation processing method in one embodiment;
Fig. 5 is the structured flowchart of video processing apparatus in one embodiment;
Fig. 6 is the structured flowchart of video processing apparatus in another embodiment.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, below in conjunction with accompanying drawing and reality Example is applied, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only Only it is used to explain the present invention, is not intended to limit the present invention.
As shown in figure 1, in one embodiment, there is provided a kind of animation processing method, the method can be applicable to In desktop computer or server, operation has animation process program on desktop computer or server, by this Animation process program implements the animation processing method.The method specifically includes following steps:
Step 102, loads animation file.
Specifically, animation file refer to using made by animation soft out to realize certain animation effect File.The form of animation file can be specifically swf (Shock Wave Format, shock wave form) texts Part.When desktop computer detects the instruction of loading animation file, selected animation file is added Carry.
Step 104, parses animation file, obtains animation information and the view data for generating image.
Specifically, after desktop computer loading animation file, start to parse animation file, lead to Cross parsing and extract the animation information in animation file and the view data for generating image.Wrapped in animation file Include bitmap and polar plot.Bitmap is also known as dot matrix image or drawing image, is by being referred to as pixel (picture element) A single point composition.Polar plot is also referred to as the image or Drawing image of object-oriented, is mathematically defined as A series of points connected by line.For generating the view data of image according to the species of generated image, specifically The view data for generating bitmap and two kinds of the view data for generating polar plot can be divided into.Animation is believed Breath is to represent positional information of the image in animation in animation file.
In one embodiment, step 104 includes:Each frame of traversal parsing animation file;In each frame Including graphical label, display label, remove label and single frames end-tag;When graphical label is resolved to, Extract the view data in graphical label;When display label is resolved to, the image extracted in display label shows Show information and record in animation information;When removal label is resolved to, the figure removed in label is extracted As removing information and recording in animation information;When single frames end-tag is resolved to, the solution of next frame is carried out Analysis, until animation file parsing is finished.
Specifically, desktop computer obtains animation file information, animation file letter when animation file is parsed Breath can specifically include frame frequency, totalframes, wide and high information, and record in animation information.Desk-top meter Calculation machine according to totalframes according to certain order to animation file in each frame parse, each frame includes Graphical label, display label, the removal label such as label and single frames end-tag.Include using in graphical label In the view data of generation image.
The display information of image is generated in display label comprising view data in display mark and graphical label, When display mark is resolved to, display information is recorded.Display mark can be numeral, character or keyword etc.. Display information can specifically include display level in animation of image identification, image, picture position parameter, Level influenceed when image rotation parameter, image tilt parameters, color parameter and image mask etc..Wherein Picture position parameter, image rotation parameter and image tilt parameters recorded in matrix, and matrix can be specifically The matrix of 3*3.Removing label includes removing mark and the required letter for removing level in display image information Breath, when removal mark is resolved to, record removes the information of level.It can be numeral, character to remove mark Or keyword etc..Single frames end mark is included in single frames end-tag, when single frames end mark is resolved to, The display information and removal information that iterative resolution is recorded are stored sequentially in array according to record parsing, afterwards Then start to parse next frame.Single frames end-tag can be numeral, character or keyword etc..
Step 106, when view data is used to generate polar plot, polar plot object is set up according to view data, And set up bitmap object corresponding with polar plot object.
Specifically, by judging to whether there is polar plot characteristic information or bitmap characteristic information in view data To determine whether the view data is for generating polar plot.If not existing polar plot feature in view data There is bitmap characteristic information in information, then judge that view data is for generating bitmap, then directly protecting bitmap Deposit;If there is polar plot characteristic information in view data or in the absence of bitmap characteristic information, process decision chart picture Data are for generating polar plot, then to set up polar plot object according to view data, and set up and polar plot pair As corresponding bitmap object.Polar plot object and bitmap object are the centres for polar plot to be converted to bitmap Variable.Characteristic information can be specifically numeral or character.Such as, polar plot is represented with 1, position is represented with 0 Figure.
In one embodiment, after the view data in extracting image tag, desktop computer judges figure As, with the presence or absence of bitmap mark, bitmap mark is the unique mark for distinguishing bitmap in data.And polar plot Without mark.If by judging, there is bitmap mark in view data, then judge that view data is used to give birth to Into bitmap;If identified in the absence of bitmap in view data, judge that view data is used to generate polar plot, Need to polar plot is converted into bitmap.
Step 108, the pixel in copy polar plot object is in bitmap object.
Specifically, after desktop computer establishes polar plot object using view data, by polar plot object In pixel copied, and during the pixel that will be copied to pastes the corresponding bitmap object of polar plot object, To generate bitmap according to the bitmap object.
Step 110, bitmap is saved as by bitmap object.
Specifically, desktop computer will copy the bitmap object of polar plot object pixel and be converted to corresponding position Figure, and for bitmap assignment bit map is identified, by the bitmap-converted with bitmap mark for the file of corresponding format is protected It is stored under specific catalogue.By bitmap-converted for corresponding format file when, can according to bitmap identify it is right File is named.File format can be the forms such as png, jpeg or bmp.
Step 112, animation is shown according to animation information and the bitmap for preserving in cartoon scene.
Specifically, desktop computer extracts the bitmap or bitmap file of all preservations, is existed according to animation information Animation file is reduced in cartoon scene, with the animation effect in realizing animation file in cartoon scene, and Show animation in cartoon scene.Cartoon scene is the occasion and scene of cartoon role activity and performance.Animation Scape can be specifically the animation in cartoon scene and animation in game movie scene, animated film Any one in scape.
In the present embodiment, animation file is parsed, obtain animation file in animation information and for giving birth to Into the view data of image, by judging that view data is for generating polar plot, then according to view data Polar plot object is drawn, bitmap object is set up by the method for copying pixel in polar plot object, by bitmap pair As being converted into bitmap and preserving, animation is shown in cartoon scene according to animation information and the bitmap for being preserved.This Sample, the animation effect in realizing animation file in cartoon scene, improves and for polar plot to be converted into bitmap Speed, the animation effect of animation file can be in the scene realized according to bitmap, so as in improve scene The efficiency of cartoon making.
As shown in Fig. 2 in one embodiment, step 104 specifically includes following steps:
Step 202, extracts the vertex information and filling information of polar plot in view data.
Specifically, when it is for generating polar plot to judge view data, desktop computer is then from view data The middle vertex information and filling information for extracting polar plot.Polar plot is that series of points is coupled together the frame to be formed Content is filled in frame and framework to be formed, these points are exactly the summit of polar plot.Filling information is exactly framework The information of middle filled content.
Step 204, the framework of polar plot object is drawn according to vertex information.
Specifically, vertex information can be specifically the positional information on summit, and desktop computer is according to vertex information Summit is drawn out, then the summit that will be drawn out is connected with line, after summit is connected with line, is formed The framework of polar plot object.
Step 206, the content of polar plot object is filled with life according to filling information in the framework of polar plot object Into polar plot object.
Specifically, filling information includes the colouring information of content in the framework of polar plot object.Desk-top calculating Machine draws the content of polar plot object using filling information in the framework of polar plot object, is drawing vector After the content of figure, the object vector of completion is formd.
In the present embodiment, the content of polar plot is drawn out by setting up polar plot object, it is to avoid in image Change the content of polar plot in transfer process, the accuracy that image is changed is improve by setting up object vector.
As shown in figure 3, in one embodiment, step 112 is comprised the following steps:
Step 302, animation configuration file is generated according to animation information.
Specifically, desktop computer is extracted in the animation information recorded during parsing animation file, including animation The information of file, the display information of the corresponding image of each frame and removal information etc., believe according to recorded animation Breath generation animation configuration file.Animation is made up of multiple continuous pictures, and multiple continuous pictures are Formed according to the corresponding image mosaic of each frame.Animation configuration file specifically include picture mosaic information configuration file and Animation information configuration file.Picture mosaic configuration file is the positional information for recording image in picture.Animation information Configuration file is the order for recording multiple continuous pictures.Picture mosaic information configuration text is first generated according to animation information Part, animation information configuration file is formed further according to picture mosaic information configuration file.
Step 304, extract preserve bitmap, according to animation configuration file will preserve bitmap in cartoon scene Displaying animation.
Specifically, desktop computer extracts all bitmaps for preserving, first according to picture mosaic information configuration file by position Figure splicing generation plurality of pictures, is forming dynamic according to the order exhibiting pictures of picture in animation information configuration file Draw, and the animation of formation is shown in cartoon scene.
In the present embodiment, animation configuration file is generated according to the animation information that gets in animation file, can be with Animation effect in reducing animation file in cartoon scene according to animation configuration file, improves in animation The accuracy rate of the animation effect in animation file is reduced in scape.
As shown in figure 4, in one embodiment, there is provided a kind of animation processing method, following step is specifically included Suddenly:
Step 402, loads animation file, in obtaining animation file information and recorded animation information.
Animation file is parsed, with obtaining animation file information and recorded animation information.
Specifically, when being parsed to animation file, the data of animation file are parsed, reads frame frequency therein, total Frame number, width, high information, and animation file is parsed frame by frame to parse the label of every frame animation, when When being resolved to graphical label in animation file frame, step 404 is performed;Marked when being resolved to display label and removing During label, step 412 is performed;When single frames end-tag is resolved to, step 414 is performed.
Step 404, the graphical label in parsing animation file frame, and extract the view data in graphical label.
Whether step 406, judge view data for generating polar plot;If so, performing step 408;If it is not, Then judge that view data is used to generate bitmap, perform step 410.
Step 408, sets up polar plot object, and set up bitmap corresponding with polar plot object according to view data Object, pixel in copy polar plot object in bitmap object generating bitmap.
Step 410, bitmap is preserved.
Specifically, the view data in graphical label is judged is for generating bitmap, then without to bitmap Changed, directly preserved bitmap;View data in image tag is judged be for generating polar plot, After polar plot is converted into bitmap, the bitmap that will be changed is preserved, and is turned with all polar plots in treating animation file After changing bitmap into, animation is reduced according to the bitmap for preserving.
Step 412, display label in parsing animation file frame and remove label, and extracts display label During image display information and the image removed in label remove information and recorded animation information.
Specifically, when label is parsed, when display mark is resolved to, the label for being parsed is display label; When removal mark is resolved to, label is removed during the label for being parsed.Display label or removal mark specifically may be used Being at least one of numeral, character and keyword.
Step 414, the single frames end-tag in parsing animation file frame.
Specifically, when label is parsed, when end mark is resolved to, the label for being parsed is that single frames terminates Label.End mark can be specifically at least one of numeral, character and keyword.
Step 416, judges whether animation file parses and finishes.If so, then performing step 418;If it is not, then Perform at least one of step 404, step 412 and step 414.
When judge animation file not yet parse finish when, then in performing step 404, step 412 and step 414 At least one step.
Step 418, animation configuration file is generated according to animation information.
Step 420, extract preserve bitmap, according to animation configuration file will preserve bitmap in cartoon scene Displaying animation.
In the present embodiment, the storage of animation file is loaded and obtained to animation file in animation information, Parsed frame by frame to animation file, specifically the label in frame is parsed, by judging figure mark Whether polar plot is converted into bitmap for generating polar plot by the view data in label, it is ensured that by animation text All polar plots are converted into bitmap in part, improve the conversion accuracy of polar plot;Shown by parsing Label and remove image display information and image in label and remove information, and recorded animation information, pass through Animation information can determine position of the bitmap in animation, improve the quality of reduction animation;When being resolved to list During frame end label, determine the need for carrying out next frame by judging whether animation file parses to finish Parsing, to ensure the complete parsing to animation file;After judging to determine that animation file parsing is finished, root Animation configuration file is generated according to animation information, all bitmaps are configured to by cartoon scene according to animation configuration file In, the degree of accuracy that animation effect in animation file is reduced in cartoon scene is improve, improve cartoon making Efficiency.
As shown in figure 5, in one embodiment, there is provided a kind of video processing apparatus 500, the device includes: Load-on module 502, parsing module 504, identification module 506, preserving module 508, animation producing and output Module 510.
Load-on module 502, for loading animation file.
Parsing module 504, for parsing animation file, obtains animation information and the picture number for generating image According to.
Identification module 506, for judging view data whether for generating polar plot;If so, according to picture number According to setting up polar plot object, and set up bitmap object corresponding with polar plot object;In copy polar plot object Pixel in bitmap object.
Preserving module 508, for bitmap object to be saved as into bitmap.
Animation producing and output module 510, for being opened up in cartoon scene according to animation information and the bitmap for preserving Show animation.
In the present embodiment, animation file is parsed, obtain animation file in animation information and for giving birth to Into the view data of image, by judging that view data is for generating polar plot, then according to view data Polar plot object is drawn, bitmap object is set up by the method for copying pixel in polar plot object, by bitmap pair As being converted into bitmap and preserving, animation is shown in cartoon scene according to animation information and the bitmap for being preserved.This Sample, the animation effect in realizing animation file in cartoon scene, improves and for polar plot to be converted into bitmap Speed, the animation effect of animation file can be in the scene realized according to bitmap, so as in improve scene The efficiency of cartoon making.
In one embodiment, parsing module 504 is additionally operable to each frame of traversal parsing animation file;It is each Frame includes graphical label, display label, removes label and single frames end-tag;When being resolved to graphical label When, the view data in the graphical label is extracted, whether execution is described judges the graph data for giving birth to The step of into polar plot;When being resolved to display label and removing label, image display information and image are extracted Removal information is simultaneously recorded in animation information;When single frames end-tag is resolved to, the parsing of next frame is carried out.
In the present embodiment, by parsing each frame, the animation information of each frame corresponding image is got, When reducing the animation effect of animation file, can be reduced according to each frame, be improve reduction animation file The accuracy rate of middle animation effect.
In one embodiment, identification module 506 is additionally operable to judge to be identified with the presence or absence of bitmap in view data, If in the presence of, judge that view data is used to generate bitmap, if not existing, judge that view data is used to generate Polar plot.
In the present embodiment, it is as data genaration come process decision chart by being identified with the presence or absence of bitmap in view data No is polar plot, and polar plot is converted into bitmap, it is to avoid the image that all view data are generated is entered Row conversion, improves conversion speed, it is to avoid waste the calculation resources consumed during conversion.
In one embodiment, identification module 506 is additionally operable to extract the vertex information of polar plot in view data And filling information;The framework of polar plot object is drawn according to vertex information;According to filling information in polar plot pair The content of polar plot object is filled in the framework of elephant to generate polar plot object.
In the present embodiment, accurately drawn for the corresponding vector of polar plot by vertex information and filling information Object, and bitmap is changed according to object vector, improve the accuracy that polar plot is converted into bitmap, it is to avoid by The situation changed with image and change picture material.
As shown in fig. 6, in one embodiment, video processing apparatus 500 also include:Configuration file is generated Module 512.
Configuration file generation module 512, for generating animation configuration file according to animation information.
Animation producing and output module 510 are additionally operable to extract the bitmap for preserving, and will be protected according to animation configuration file The bitmap deposited shows animation in cartoon scene.
In the present embodiment, animation configuration file is generated according to the animation information that gets in animation file, can be with Animation effect in reducing animation file in cartoon scene according to animation configuration file, improves in animation The accuracy rate of the animation effect in animation file is reduced in scape.
Each technical characteristic of embodiment described above can be combined arbitrarily, not right to make description succinct The all possible combination of each technical characteristic in above-described embodiment is all described, as long as however, these skills The combination of art feature does not exist contradiction, is all considered to be the scope of this specification record.
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, But can not therefore be construed as limiting the scope of the patent.It should be pointed out that for this area For those of ordinary skill, without departing from the inventive concept of the premise, some deformations can also be made and changed Enter, these belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be with appended power Profit requires to be defined.

Claims (10)

1. a kind of animation processing method, including:
Loading animation file;
The animation file is parsed, animation information and the view data for generating image is obtained;
When described image data are used to generate polar plot, polar plot object is set up according to described image data, And set up bitmap object corresponding with the polar plot object;
Pixel in the polar plot object is copied in the bitmap object;
The bitmap object is saved as into bitmap;
Animation is shown in cartoon scene according to the animation information and the bitmap for preserving.
2. animation processing method according to claim 1, it is characterised in that the parsing animation File, obtains animation information and includes for generating the view data of image:
Each frame of the traversal parsing animation file;Each frame include graphical label, display label, Remove label and single frames end-tag;
When graphical label is resolved to, the view data in the graphical label is extracted;
When display label is resolved to, extracts the image display information in the display label and record in animation In information;
When removal label is resolved to, extracts the image removal information removed in label and simultaneously record in animation In information;
When single frames end-tag is resolved to, the parsing of next frame is carried out, until the animation file is parsed Finish.
3. animation processing method according to claim 1, it is characterised in that described when described image number According to for generating during polar plot, polar plot object is set up according to described image data, and set up and the vector Before the corresponding bitmap object of figure object, also include:
Judge to be identified with the presence or absence of bitmap in described image data, if in the presence of judgement described image data are used In generation bitmap, if not existing, judge that described image data are used to generate polar plot.
4. animation processing method according to claim 1, it is characterised in that described according to described image Data set up polar plot object to be included:
Extract the vertex information and filling information of polar plot in view data;
The framework of polar plot object is drawn according to the vertex information;
The content of the polar plot object is filled in the framework of the polar plot object according to the filling information To generate the polar plot object.
5. animation processing method according to claim 1, it is characterised in that described according to the animation Information and the bitmap for preserving show that animation includes in cartoon scene:
Animation configuration file is generated according to the animation information;
Extract the bitmap of the preservation, according to animation configuration file by the bitmap of the preservation in cartoon scene Displaying animation.
6. a kind of video processing apparatus, it is characterised in that including:
Load-on module, for loading animation file;
Parsing module, for parsing the animation file, obtains animation information and the image for generating image Data;
Identification module, for when described image data are used to generate polar plot, being built according to described image data Vertical polar plot object, and set up bitmap object corresponding with the polar plot object;Copy the polar plot pair Pixel as in is in the bitmap object;
Preserving module, for the bitmap object to be saved as into bitmap;
Animation producing and output module, for according to the animation information and preserve bitmap in cartoon scene Displaying animation.
7. video processing apparatus according to claim 6, it is characterised in that the parsing module is also used In each frame of the traversal parsing animation file;Each frame include graphical label, display label, Remove label and single frames end-tag;When graphical label is resolved to, the image in the graphical label is extracted Data;When display label is resolved to, extracts the image display information in the display label and record dynamic In picture information;When removal label is resolved to, extracts the image removal information removed in label and simultaneously record In animation information;When single frames end-tag is resolved to, the parsing of next frame is carried out, until will be described dynamic Document analysis are drawn to finish.
8. video processing apparatus according to claim 6, it is characterised in that the identification module is also used Identified with the presence or absence of bitmap in described image data are judged, if in the presence of judgement described image data are used for Generation bitmap, if not existing, judges that described image data are used to generate polar plot.
9. video processing apparatus according to claim 6, it is characterised in that the identification module is also used The vertex information and filling information of polar plot in view data is extracted;Vector is drawn according to the vertex information The framework of figure object;The polar plot is filled in the framework of the polar plot object according to the filling information The content of object is generating the polar plot object.
10. video processing apparatus according to claim 6, it is characterised in that also include:
Configuration file generation module, for generating animation configuration file according to the animation information;
The animation producing and output module are additionally operable to extract the bitmap of the preservation, according to animation configuration file The bitmap of the preservation is shown into animation in cartoon scene.
CN201510990530.XA 2015-12-24 2015-12-24 Animation processing method and device Active CN106920270B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510990530.XA CN106920270B (en) 2015-12-24 2015-12-24 Animation processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510990530.XA CN106920270B (en) 2015-12-24 2015-12-24 Animation processing method and device

Publications (2)

Publication Number Publication Date
CN106920270A true CN106920270A (en) 2017-07-04
CN106920270B CN106920270B (en) 2021-06-25

Family

ID=59458720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510990530.XA Active CN106920270B (en) 2015-12-24 2015-12-24 Animation processing method and device

Country Status (1)

Country Link
CN (1) CN106920270B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189524A (en) * 2018-08-09 2019-01-11 北京金山安全软件有限公司 Image resource generation method and device
CN109389661A (en) * 2017-08-04 2019-02-26 阿里健康信息技术有限公司 A kind of animation file method for transformation and device
CN111324405A (en) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 Character display method and device and electronic equipment
CN113920234A (en) * 2021-12-13 2022-01-11 杭州安恒信息技术股份有限公司 Method and related device for converting SVG animation into GIF

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470893A (en) * 2007-12-26 2009-07-01 中国科学院声学研究所 Vector graphic display acceleration method based on bitmap caching
US20090189902A1 (en) * 2008-01-29 2009-07-30 International Business Machines Corporation Generation of a Vector Graphic from a Hand-Drawn Diagram
CN101593354A (en) * 2009-07-01 2009-12-02 上海可鲁系统软件有限公司 A kind of method that redraws and device of two-dimension vector graphics
US20100172594A1 (en) * 2007-06-28 2010-07-08 Telefonaktiebolaget L M Ericsson (Publ) Data System and Method
CN102368247A (en) * 2011-09-16 2012-03-07 杭州典能科技有限公司 Method for executing SWF (Small Web Format) file on handheld terminal
CN102592261A (en) * 2011-12-30 2012-07-18 上海居冠软件有限公司 Vector diagram showing method and system
CN102651140A (en) * 2011-02-23 2012-08-29 腾讯科技(深圳)有限公司 Method and device for image rendering
US8411115B1 (en) * 2006-10-23 2013-04-02 Adobe Systems Incorporated Scaling raster objects in a graphical development enviroment using nine-slice scaling
CN103729190A (en) * 2013-12-31 2014-04-16 天津华永无线科技有限公司 Method for displaying unified parsing of multiple media on mobile terminal
US20140300630A1 (en) * 2007-08-06 2014-10-09 Apple Inc. Background Removal Tool for a Presentation Application
CN104933747A (en) * 2015-06-10 2015-09-23 北京奇虎科技有限公司 Method and device for converting vector animation into bitmap animation

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8411115B1 (en) * 2006-10-23 2013-04-02 Adobe Systems Incorporated Scaling raster objects in a graphical development enviroment using nine-slice scaling
US20100172594A1 (en) * 2007-06-28 2010-07-08 Telefonaktiebolaget L M Ericsson (Publ) Data System and Method
US20140300630A1 (en) * 2007-08-06 2014-10-09 Apple Inc. Background Removal Tool for a Presentation Application
CN101470893A (en) * 2007-12-26 2009-07-01 中国科学院声学研究所 Vector graphic display acceleration method based on bitmap caching
US20090189902A1 (en) * 2008-01-29 2009-07-30 International Business Machines Corporation Generation of a Vector Graphic from a Hand-Drawn Diagram
CN101593354A (en) * 2009-07-01 2009-12-02 上海可鲁系统软件有限公司 A kind of method that redraws and device of two-dimension vector graphics
CN102651140A (en) * 2011-02-23 2012-08-29 腾讯科技(深圳)有限公司 Method and device for image rendering
CN102368247A (en) * 2011-09-16 2012-03-07 杭州典能科技有限公司 Method for executing SWF (Small Web Format) file on handheld terminal
CN102592261A (en) * 2011-12-30 2012-07-18 上海居冠软件有限公司 Vector diagram showing method and system
CN103729190A (en) * 2013-12-31 2014-04-16 天津华永无线科技有限公司 Method for displaying unified parsing of multiple media on mobile terminal
CN104933747A (en) * 2015-06-10 2015-09-23 北京奇虎科技有限公司 Method and device for converting vector animation into bitmap animation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CARL WEMOBILEDEV: "Android微信上的SVG", 《HTTPS://MP.WEIXIN.QQ.COM/S?__BIZ=MZAWNDY1ODY2OQ==&MID=207863967&IDX=1&SN=3D7B07D528F38E9F812E8DF7DF1E3322&UTM_SOURCE=ANDROIDWEEKLY.IO&UTM_MEDIUM=WEBSITE》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109389661A (en) * 2017-08-04 2019-02-26 阿里健康信息技术有限公司 A kind of animation file method for transformation and device
CN109189524A (en) * 2018-08-09 2019-01-11 北京金山安全软件有限公司 Image resource generation method and device
CN111324405A (en) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 Character display method and device and electronic equipment
CN113920234A (en) * 2021-12-13 2022-01-11 杭州安恒信息技术股份有限公司 Method and related device for converting SVG animation into GIF

Also Published As

Publication number Publication date
CN106920270B (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN109803180B (en) Video preview generation method and device, computer equipment and storage medium
CN109272043B (en) Training data generation method and system for optical character recognition and electronic equipment
CN108090400B (en) Image text recognition method and device
CN106920270A (en) Animation processing method and device
CN105719243B (en) Image processing apparatus and method
CN103176986A (en) Method for converting flash animation data into hypertext markup language (HTML) 5 data
CN106855996B (en) Gray-scale image coloring method and device based on convolutional neural network
CN105549817B (en) The generation method of font packet, the methods of exhibiting of device and figure, device
KR102600475B1 (en) Deep learning-based data augmentation method for product defect detection learning
CN106651992A (en) Method and system for optimizing Android resource picture
US11275935B2 (en) Patent analysis applications and corresponding user interface features
CN113569852A (en) Training method and device of semantic segmentation model, electronic equipment and storage medium
JP5526874B2 (en) Image processing apparatus and image processing program
CN107204024A (en) Handle the method and device of sequence of pictures frame
CN108877030A (en) Image processing method, device, terminal and computer readable storage medium
CN114579796B (en) Machine reading understanding method and device
CN108804652B (en) Method and device for generating cover picture, storage medium and electronic device
CN110796716A (en) Image coloring method based on multiple residual error networks and regularized transfer learning
CN116052195A (en) Document parsing method, device, terminal equipment and computer readable storage medium
CN113038184B (en) Data processing method, device, equipment and storage medium
CN112927321B (en) Intelligent image design method, device, equipment and storage medium based on neural network
CN107862316A (en) Convolution algorithm method and device
CN114917583A (en) Animation style game background generation method and platform based on generation confrontation network
CN107977593A (en) Image processing apparatus and image processing method
CN113657279A (en) Bill image layout analysis method and device

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
GR01 Patent grant
GR01 Patent grant