CN101441778B - Method for generating caption of cartoon leader and tail leader - Google Patents

Method for generating caption of cartoon leader and tail leader Download PDF

Info

Publication number
CN101441778B
CN101441778B CN2008102404413A CN200810240441A CN101441778B CN 101441778 B CN101441778 B CN 101441778B CN 2008102404413 A CN2008102404413 A CN 2008102404413A CN 200810240441 A CN200810240441 A CN 200810240441A CN 101441778 B CN101441778 B CN 101441778B
Authority
CN
China
Prior art keywords
animation
attribute
captions
display properties
row
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.)
Active
Application number
CN2008102404413A
Other languages
Chinese (zh)
Other versions
CN101441778A (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.)
Institute of Computing Technology of CAS
Original Assignee
Institute of Computing Technology of CAS
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 Institute of Computing Technology of CAS filed Critical Institute of Computing Technology of CAS
Priority to CN2008102404413A priority Critical patent/CN101441778B/en
Publication of CN101441778A publication Critical patent/CN101441778A/en
Application granted granted Critical
Publication of CN101441778B publication Critical patent/CN101441778B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method for generating animation head leader captions and tail leader captions, which comprises the following steps: 00) establishing a NarLog caption language source file of which each line comprises an attribute name and an attribute value; 10) performing syntactic analysis on each line of the Narlog caption language source file to identify the attribute type of the line; 20) if the attribute type is a display attribute, performing semantic computation on an animation attribute under the current context according to the display attribute of the current context so as to generate a script subroutine, deleting the animation attribute under the current context, and using the display attribute to update the context; 30) if the attribute type is the animation attribute, adding the animation attribute to the current context; and 40) making use of a Maya script editor to execute the generated subroutine so as to generate the captions through rendering. The method can solve the problem that handmade animations consume more manpower and financial resources, and can generate the animation head leader captions or the tail leader captions automatically.

Description

The generation method of a kind of animation head and run-out captions
Technical field
The present invention relates to the cartoon making automatic field, particularly relate to the generation method of a kind of animation head and run-out captions.
Background technology
The making of animation head and run-out captions is important link during digital cartoon is made, and existing method mostly rests on the home built aspect.The home built mode imports AfterEffects or Adobe Premiere with the model of making then by using the captions effect model that 3D MAX or Maya produce to be needed, and produces the captions type of various effects.This mode need expend more manpower and financial resources.Need to generate a large amount of animation fragments in the course of work of reality, thereby the making of captions just need save time as far as possible, clearly traditional working method can't satisfy the demands.
Therefore, press for the automatic generation method of a kind of animation head and run-out captions, make it can generate animation script automatically, thereby produce animation effect, improve the efficient that captions are made.
Summary of the invention
The technical problem to be solved in the present invention provides the method for a kind of automatic generation animation head and run-out, makes the manpower and financial resources of animation by hand with saving.
In order to realize the foregoing invention purpose, according to an aspect of the present invention, provide the generation method of a kind of animation head and run-out captions, comprise the following steps:
00) make up NarLog subtitle language source file, each row of wherein said Narlog subtitle language source file comprises attribute-name and property value;
10), discern the attribute classification of described row to each lang method analysis of advancing of Narlog subtitle language source file;
20) be display properties for described attribute classification, according to the display properties under the preamble border animation attributes under the preamble border carried out semanteme and calculate the generation script subroutine that the animation attributes of deletion under the preamble border upgraded described civilian border with described display properties;
30) be animation attributes for described attribute classification, described animation attributes is added to when the preamble border;
40) utilize the Maya script-editor to carry out the subroutine that is generated, play up and generate described captions.
Wherein, described step 00) also comprise step 01 after) import dictionary file, wherein said dictionary file comprises that the multilingual of described display properties and/or animation attributes describes;
Described step 30) also comprise step 31 after) according to described dictionary file, described display properties and/or described animation attributes be translated as be different from current another kind of language description.
Wherein, also comprise step 32 described step 30)) to the demonstration that standardizes of described subroutine.
Wherein, described standardization demonstration comprises the interpolation formats symbols.
Wherein, described formats symbols comprises tab and separator.
Wherein, each row of described Narlog subtitle language source file also comprises the animation name.
Wherein, described subroutine is used to control the material of captions, the special efficacy of captions, the font of captions, the capable pattern of captions, the panel of captions, the run-out of captions or the animation effect of video camera.
Technique effect of the present invention is, can solve the problem that animation expends more manpower and financial resources of making by hand.The present invention is provided with the captions of animation head and run-out by the Narlog subtitle language, can generate animation head or run-out captions automatically, and describes by predefined title cartoon, can produce terrified class, the light animation effect of class or solemn class.
Description of drawings
Fig. 1 is animation head and run-out captions product process figure according to an embodiment of the invention;
Fig. 2 is the synoptic diagram of captions according to an embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the method that animation head of the present invention and run-out captions are generated is further elaborated.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Problems of the prior art, essence are that prior art depends on to make by hand to a great extent and finish that at specific animated content, the editorial staff completes needs the long cycle from the selection to captions.Based on this, the present invention is on the basis of summing up a large amount of film and television captions, and the method that provides a kind of animation head and run-out captions to generate automatically is intended to describe by predefined title cartoon, generates animation script automatically, thereby produces animation effect.
The present invention is based on Maya software and realize that the degree of lip-rounding of virtual role generates and duplicates.Maya software is the up-and-coming youngster of three-dimensional animation software, is subjected to industry to welcome and dote on deeply.Maya is integrated state-of-the-art animation and digital effect technology, it not only comprises the function that general three peacekeeping visual effects are made, but also combines state-of-the-art modeling and motion match technology.MEL is the abbreviation of Maya EmbeddedLanguage (the built-in language of Maya), is a kind of powerful order and script, can directly control feature, process and the workflow of Maya by MEL.
For generating animation head and run-out automatically, the present invention has developed a kind of Narlog subtitle language, and automatically the Narlog subtitle language is translated as the MEL script that Maya can carry out, and carry out the MEL script and can in Maya, obtain the captions animation, play up output and can obtain final captions video.Key step is: at first import NarLog linguistic source file; To go into NarLog linguistic source file then and be read in the MEL interface function, the MEL script of output semantic equivalence, directly this MEL script of operation under the Maya environment.
According to embodiments of the invention, can realize common being fade-in fade-out, alignment, font pantograph, slip, perspective, font aura, animation effect such as color transformed.
For specifying the method that animation head of the present invention and run-out captions generate automatically, at first the Narlog subtitle language to the specific embodiment according to the present invention describes.
NarLog subtitle language source file is made up of " display properties " and " animation attributes " " OK " that key word led, and each row comprises ternary: animation name, attribute-name and property value." display properties " and " animation attributes " is reserved word, and " display properties " expresses the pattern when showing, " animation attributes " expressed and wanted content displayed.To describe the syntax of " display properties " row in the Narlog subtitle language below in detail:
Display properties (<animation name 〉, language,<natural number 〉),
Its expression NarLog linguistic source file with which kind of language is write;
| display properties (<animation name 〉, classifying content,<head | run-out 〉),
What it represented NarLog linguistic source file description is head or run-out;
| display properties (<animation name 〉, attribute as seen,<be | not 〉),
Whether its expression " attribute " will show on screen;
| display properties (<animation name 〉, the attribute font, Song in the<Chinese | Chinese is carefully black | ...);
| display properties (<animation name 〉, the attribute color,<redness | orange | yellow | green | cyan | blueness | purple | black);
| display properties (<animation name 〉, attribute font size,<natural number 〉);
| display properties (<animation name 〉, the attribute overstriking,<be | not 〉);
| display properties (<animation name 〉, the attribute italic,<be | not 〉);
| display properties (<animation name 〉, attribute level character-spacing,<floating number 〉),
Under the series arrangement mode, the attribute and first property value are presented in the delegation, individual neutral will be arranged between the two, and " attribute level character-spacing " promptly is used for representing the size of this neutral gear;
| display properties (<animation name 〉, line space,<floating number 〉),
" line space " expression row with capable between intrinsic gap size, be mainly used in a plurality of property values when showing in lines;
| display properties (<animation name 〉, the vertical character-spacing of attribute,<floating number 〉),
About, a left side is neat, under the right neat arrangement mode, the attribute and first property value show in lines, " the vertical character-spacing of attribute " is used for representing between two kinds size at interval;
| display properties (<animation name 〉, the attribute arrangement mode,<in proper order | and up and down | a left side is neat | right neat),
In proper order: the attribute and first property value are showing with delegation, all the other property values and the first property value left-justify, and all branch shows,
Up and down: the attribute and first property value show that in lines attribute and all properties value be align center all;
A left side is neat: the attribute and first property value show that in lines attribute and all properties value all occupy left-justify;
Right neat: the attribute and first property value show that in lines attribute and all properties value all occupy Right Aligns;
| display properties (<animation name 〉, mode appears in attribute,<close apparent | divide to show),
Close apparent: the content that a plurality of " animation attributes " expressed is presented in the screen,
Divide and show: the big content of each " animation attributes " table is presented at separately in the screen;
| display properties (<animation name 〉, the speed of being fade-in fade-out,<fast | slow | general),
The expression literal when showing by the speed that fades to the speed of fading out;
| display properties (<animation name 〉, last pulling rate degree,<fast | slow | general),
The credits present of run-out is upwards pulling, the speed of pulling rate degree in " going up the pulling rate degree " expression;
| display properties (<animation name 〉, head literal special efficacy,<luminous | flicker | amplify | shrink | amplify flicker | shrink flicker 〉),
The special dynamic effect of expression literal when showing;
| display properties (<animation name 〉, run-out literal special efficacy,<convex | evagination 〉),
The credits present of run-out is a plurality of " character names " row composition, " role " formation one row, and " name " forms row, and " run-out literal special efficacy " represents this two effect that is listed in when having an X-rayed arrangement;
| display properties (<animation name 〉, property value font, black matrix);
| display properties (<animation name 〉, property value color, black);
| display properties (<animation name 〉, the property value overstriking,<be | not 〉);
| display properties (<animation name 〉, the property value italic,<be | not 〉);
| display properties (<animation name 〉, property value font size,<natural number 〉);
| display properties (<animation name 〉, the horizontal character-spacing of property value,<floating number 〉);
| display properties (<animation name 〉, the vertical character-spacing of property value,<floating number 〉);
| display properties (<animation name 〉, frame count,<natural number 〉),
During demonstration one screen is made up of a plurality of frames, and " frame count " represents that how many frames have formed a screen;
| display properties (<animation name 〉, the panel level,<occupy left | left golden section | placed in the middle | right golden section | occupy right 〉),
The convex closure that is shown in all the elements in the screen forms a panel, and " panel level " described this panel and where be positioned at screen in the horizontal direction;
| display properties (<animation name 〉, panel is vertical, on<the residence | go up golden section | placed in the middle | following golden section | occupy down),
The convex closure that is shown in all the elements in the screen forms a panel, and " panel is vertical " described this panel and where be positioned at screen in vertical direction.
To describe the syntax of " animation attributes " row in the Narlog subtitle language below in detail:
| animation attributes (<animation name 〉, title,<character string 〉);
| animation attributes (<animation name 〉, original work,<character string 〉);
| animation attributes (<animation name 〉, director,<character string 〉);
| animation attributes (<animation name 〉, plot designer,<character string 〉);
| animation attributes (<animation name 〉, scene designer,<character string 〉);
| animation attributes (<animation name 〉, photographer,<character string 〉);
| animation attributes (<animation name 〉, design teacher,<character string 〉);
| animation attributes (<animation name 〉, role's feature hairstylist,<character string 〉);
| animation attributes (<animation name 〉, role modeling teacher,<character string 〉);
| animation attributes (<animation name 〉, role action designer,<character string 〉);
| animation attributes (<animation name 〉, dressmakers,<character string 〉);
| animation attributes (<animation name 〉, designed for music teacher,<character string 〉);
| animation attributes (<animation name 〉, dedicate<character string to 〉);
| animation attributes (<animation name 〉, creation unit,<character string 〉);
| animation attributes (<animation name 〉, creation time,<character string 〉);
| animation attributes (<animation name 〉, distribution unit,<character string 〉);
| animation attributes (<animation name 〉, all rights reserved,<character string 〉);
| animation attributes (<animation name 〉, classification,<children | common | the adult 〉);
| animation attributes (<animation name 〉, dub, (<main body 〉,<character string 〉));
| animation attributes (<animation name 〉, the end,<character string 〉).
Below in conjunction with example above-mentioned NarLog subtitle language is described:
As: display properties (Master Dongguo and wolf, the speed of being fade-in fade-out, slow) what represent is cartoon " Master Dongguo and wolf ", animation attributes is this moment faded out by fading to when showing, and speed is " slowly ".
As: (Xu Bingduo) expression is cartoon " Master Dongguo and wolf " to animation attributes for Master Dongguo and wolf, director, and wanting content displayed this moment is " director Xu Bingduo ".That determines in " animation attributes " wants content displayed to be arranged on the screen according to " display properties " at this moment to show, such as runic, and redness etc.
Above-mentioned is to the detailed description of the syntax of NarLog subtitle language, one of ordinary skill in the art will appreciate that, this monobasic of animation name is optional in each row of above-mentioned NarLog subtitle language.And each above-mentioned property column can not be all to appear in the specific embodiment simultaneously,, in specific embodiment, can select corresponding property column as required that is; And the also available other Languages except that Chinese of NarLog subtitle language is write.
NarLog linguistic source file can be write by multilingual as mentioned above.For supporting multilingual function, according to a preferred embodiment of the invention, the present invention also provides a kind of multilingual dictionary, describes comprising the multilingual to display properties and/or animation attributes.Only, one of ordinary skill in the art will appreciate that other Languages can add in the multilingual dictionary equally herein, with the explanation that makes an explanation of Chinese and English dictionary.In addition, dictionary entry can expand according to NarLog language description ability.
Be the part clauses and subclauses of this dictionary below, use:: separate, wherein exist:: the part of back is English:: the part of front is corresponding Chinese:
NKI animation body .NKI narration intelligence is produced with animation art seminar:: NKIAnimationOntology.An NKI Animation Picture
NKI animation body. all rights reserved:: NKIAnimationOntology.Copyright
NKI animation body. scene designer:: NKIAnimationOntology.Scene
NKI animation body. the creation unit:: NKIAnimationOntology.Producer
NKI animation body. the creation time:: NKIAnimationOntology.Date
NKI animation body. the director:: NKIAnimationOntology.Director
NKI animation body. design teacher:: NKIAnimationOntology.Juicer
NKI animation body. animation attributes:: NKIAnimationOntology.animation attr
NKI animation body. the distribution unit:: NKIAnimationOntology.Publisher
NKI animation body. classification:: NKIAnimationOntology.Rank
NKI animation body. divide to show:: NKIAnimationOntology.separate frame
NKI animation body. dressmakers:: NKIAnimationOntology.Costume
NKI animation body. close apparent:: NKIAnimationOntology.merged frame
NKI animation body. supervise:: NKIAnimationOntology.Supervisor
NKI animation body. the role action designer:: NKIAnimationOntology.Action
NKI animation body. role modeling teacher:: NKIAnimationOntology.Model Creator
NKI animation body. role's feature hairstylist:: NKIAnimationOntology.Close-Up
NKI animation body. placed in the middle:: NKIAnimationOntology.centered
NKI animation body. the end:: NKIAnimationOntology.End
NKI animation body. dub:: NKIAnimationOntology.Dubbing
NKI animation body. title:: NKIAnimationOntology.Title
NKI animation body. regular grade:: NKIAnimationOntology.General
NKI animation body. plot designer:: NKIAnimationOntology.Screenplay
NKI animation body. up and down:: NKIAnimationOntology.up down
NKI animation body. photographer:: NKIAnimationOntology.Cinematographer
NKI animation body. be:: NKIAnimationOntology.yes
NKI animation body. mode appears in attribute:: NKIAnimationOntology.attr frame
NKI animation body. attribute as seen:: NKIAnimationOntology.attr visibility
NKI animation body. the attribute arrangement mode:: NKIAnimationOntology.attr arrange
NKI animation body. property location:: NKIAnimationOntology.attr position
NKI animation body. the attribute color:: NKIAnimationOntology.attr color
NKI animation body. the property value overstriking:: NKIAnimationOntology.attrv bold
NKI animation body. the property value color:: NKIAnimationOntology.attrv color
NKI animation body. the property value font size:: NKIAnimationOntology.attrv fontsize
NKI animation body. the property value font:: NKIAnimationOntology.attrv font
NKI animation body. property value H character-spacing:: NKIAnimationOntology.attv h margin
NKI animation body. property value V character-spacing:: NKIAnimationOntology.attv v margin
NKI animation body. the attribute font size:: NKIAnimationOntology.attr fontsize
NKI animation body. the attribute font:: NKIAnimationOntology.attr font
NKI animation body. attribute H character-spacing:: NKIAnimationOntology.attr h margin
NKI animation body. attribute V character-spacing:: NKIAnimationOntology.attr v margin
NKI animation body. in proper order:: NKIAnimationOntology.sequential
NKI animation body. dedicate to:: NKIAnimationOntology.To
NKI animation body. display properties:: NKIAnimationOntology.display attr
NKI animation body. designed for music teacher:: NKIAnimationOntology.Music
NKI animation body. right neat:: NKIAnimationOntology.right aligned
NKI animation body. language:: NKIAnimationOntology.Language
NKI animation body. original work:: NKIAnimationOntology.Writer
NKI animation body. Chinese:: NKIAnimationOntology.Chinese
NKI animation body. a left side is neat:: NKIAnimationOntology.left aligned
The ∥ color
NKI animation body. redness:: NKIAnimationOntology.red
NKI animation body. orange:: NKIAnimationOntology.orange
NKI animation body. yellow:: NKIAnimationOntology.yellow
NKI animation body. green:: NKIAnimationOntology.green
NKI animation body. blueness:: NKIAnimationOntology.blue
NKI animation body. purple:: NKIAnimationOntology.pink
NKI animation body. black:: NKIAnimationOntology.black
The ∥ font
NKI animation body. Chinese is carefully black:: NKIAnimationOntology.xihei
NKI animation body. Song in the Chinese:: NKIAnimationOntology.zhongsong
Different films, the captions style is also different.Common captions style mainly contains three classes: thrilling terrified class, light class and solemn class.
Behind a large amount of film and television captions of research summary, find that this three classes captions style has following characteristics:
(1) thrilling terrified class: literal flashes out apace, and the sensation of passage of scintillation light is arranged, or literal slowly fades in, slowly amplify, slowly fade out, or shrinks with literal.
(2) light class: be mostly to be fade-in fade-out lentamente.
(3) solemn class: be mostly basic being fade-in fade-out, the speed GPRS of being fade-in fade-out is good, and it is sedate to seem, but can not be too dilatory.
In specific embodiment, can select different property columns according to the captions characteristics of above-mentioned different-style.
In order to realize top a few class captions styles, the invention provides routine interface, so that the NarLog subtitle language can adopt this routine interface to import among the Maya as carrier.Be specially at first these routine interfaces are imported Maya, with the real ginseng generation MEL script routine of the particular content in the NarLog subtitle language, move the animation effect that this MEL script routine then can generate to be needed again as routine interface.
The MEL routine interface includes, but are not limited to:
Proc TColor (float $R, float $G, float $B, string $SGName, string$speed_fade, string $flag): this interface is the material interface of captions.R, G, B three components of representative color respectively wherein, SGName is a title of playing up node, and speed_fade is the rolling speed that captions are set, and whether flag represents the type of captions, as being head, run-out etc.Material effects such as the transparent variation of this interface control word body, color, aura, and be fade-in fade-out.Because being fade-in fade-out of font is what the transparency change by the font material realized, thus except the color of font, aura etc. by the TColor () control, being fade-in fade-out of font also controlled among TColor ().
Proc TFX (string $speed_fade, string $FX, string $flag): this interface is the special efficacy interface of captions.Whether wherein speed_fade represents the rolling speed of captions, and FX represents the special efficacy of literal, and as luminous, amplification etc., flag represents the type of captions, as being head, run-out etc.The function of this interface be the control font amplification, dwindle, effect such as light.
Proc TText (string $Ttext, string $Ttype, string $Tsize, int $TBold, int$TIncline, float $Tlinegap, string $Tcolor): this interface is the font interface of captions, is used to control literal, font, spacing etc.Ttext wherein represents the content of the literal that shows, and Ttype represents font, as black matrix, regular script etc., Tsize represents the size of literal, and TBold represents whether be runic, and TIncline represents whether literal is italic, Tlinegap represents line space, and Tcolor represents the font color that is provided with.
Proc TStyle (int $Tstyle, float $h_gap, float $v_gap, int $starts[], int$ends[]): this interface is the capable pattern interface of captions, is used to control the pattern between the capable and row of captions, for example two row align centers, left-justify etc. up and down.Wherein Tstyle represents the mode of text alignment, as left-justify etc., h_gap represents the level interval between word and the word, and v_gap represents the vertical spacing between word and the word, starts[] literal line of the beginning that shows of expression multirow, ends[] literal line of the end that shows of expression multirow.
Proc TLayout (int, int, int, int$TmodeY): this interface is the panel interface of captions, is used to control the position of captions on screen.For example occupy in the middle of the screen or golden section line place up and down.Wherein TTstart represents the start time that panel shows, TTend represents the concluding time that panel shows, TmodeX represents the display mode of literal line with respect to transverse axis, and TmodeY represents the display mode of literal line with respect to the longitudinal axis.
Proc TEnd (int $END_starts[], int $END_ends[], float $H_gap, float$V_gap, string $end_FX): this interface is the run-out interface of captions.The effect of control run-out, effects such as font perspective, rotation.END_starts[wherein] literal line of the beginning that shows of expression multirow, END_ends[] literal line of the end that shows of expression multirow, H_gap represents the level interval between word and the word, and V_gap represents the vertical spacing between word and the word, and end_FX represents the special efficacy of literal.
Proc TCamera (string $speed, float $r, float $g, float $b): this interface is a camera interface, is used to control the animation of cameras effect.Especially for the captions rolling effect of run-out, realize by mobile camera here.Wherein speed represents the translational speed of video camera, and r, g, b represent three color components of the background of video camera respectively.
One of ordinary skill in the art will appreciate that by realizing the said procedure interface each parameter assignment under every kind of situation.For example proc TFX (string $speed_fade, string $FX, string$flag) in the be fade-in fade-out specific code of speed of control as follows:
∥ controls the speed of being fade-in fade-out
switch($speed_fade){
Case " slowly ":
int?$Time=160;
int?$Speed=$Time/3;
Int $Delay=$Time/10; ∥ delegation word fade out and another row the fading in of word between
The interval
break;
Case " soon ":
int?$Time=75;
int?$Speed=$Time/3;
Int $Delay=$Time/10; ∥ delegation word fade out and another row the fading in of word between
The interval
break;
Case " generally ":
int?$Time=120;
int?$Speed=$Time/3;
Int $Delay=$Time/10; ∥ delegation word fade out and another row the fading in of word between
The interval
break;
default:
int?$Time=120;
int?$Speed=$Time/3;
Int $Delay=$Time/10; ∥ delegation word fade out and another row the fading in of word between
The interval
break;
}∥end?switch?$speed_fade
According to a particular embodiment of the invention, introduce the data structure that may relate in the native system below, the Narlog subtitle language adopts the formal representation of following data structure in Maya.In an embodiment, " display properties " row and " animation attributes " row weave in.A plurality of " display properties " row has formed one on the whole and has shown civilian border, and this civilian border represents that with the Context structure value of " display properties " of current correspondence is being write down in each territory of Context.Each one of " animation attributes " line display is wanted content displayed, and is subjected to and only is subjected to the control of a Context according to nearest action scope principle.Comprising a Content structure chained list in the Context structure is used to represent to be subjected to " animation attributes " of this Context structure control all.
Carry out the automatic generation of captions, need through grammatical analysis, attribute handle, semanticly calculate, dictionary contrast translation, code generates with optimize, import routine and play up step such as generation.According to a specific embodiment of the present invention, shown in the process flow diagram of Fig. 1, the key step of the automatic generation of captions is as follows:
Step 1: make up NarLog subtitle language source file according to form as described above;
Step 2: initialization dictionary file.As previously mentioned, each entry format is a Chinese in the dictionary file:: English, wherein Chinese is English its appropriate translation, promptly importing each English corresponding Chinese relation, to be used for doing the translation of captions.
Step 3: read in the delegation of NarLog subtitle language source file then successively, carry out grammatical analysis, analyze and draw the tlv triple structure Content that comprises animation name, attribute-name and property value; According to the attribute classification of this row, whether what judge this line description is display properties, if then execution in step 4, if not execution in step 7 then.
Step 4: if the attribute of this row is " display properties ": then judge whether the Content structure chained list of Context structure is empty, if the Content structure chained list of Context structure is not empty, then execution in step 5, if be empty, then execution in step 6.
Step 5: under the currency of Context structure, Content structure chained list is carried out the semantic subroutine that the interface that provides is provided of calculating and generate.Particularly, from the territory of Context structure, obtain the value of " display properties ", this value is inserted in the corresponding suction parameter of each routine interface, generate script subroutine about the animation attributes under the preamble border through semantic calculating; Delete this Content structure chained list, execution in step 6 then.
Step 6: the Content structure that returns with the syntactic analysis phase of step 3 upgrades the corresponding field of Context structure to represent the change of " display properties ".
Step 7: whether the attribute of judging this row is " animation attributes ".
Step 8: if the attribute of this row is " animation attributes ", then the Content structure that the syntactic analysis phase of step 3 is returned adds on the Content chained list of Context structure.
Step 9: if the attribute of this row is not " animation attributes ", then show error report, and finish.
For example, display properties (Master Dongguo and wolf, property value color, yellow), display properties (Master Dongguo and wolf, property value font size, content such as 6), for following back to back animation attributes has been described the concrete scene that literal shows on screen, promptly font is yellow, font size is 6, therefore for ensuing animation attributes (Master Dongguo and wolf, original work, [bright] Malaysia and China tin) be converted into TText (" original work ", " new Wei of Chinese ", " 5 ", 0,0,0.2, " ColorYellow ", 0,6) and TText (" [bright] Malaysia and China tin ", " new Wei of Chinese ", " 6 ", 0,0,0.2, " ColorYellow ", 1,6).The effect that this example is finally played up out in Maya as shown in Figure 2.
Step 10: in order to handle the problem of multilingual demonstration, display properties and animation attributes are carried out translating based on the contrast of dictionary, convert the english phrase in the subroutine to corresponding Chinese phrase.
Step 11: for the standardization that shows, to the subroutine demonstration that standardizes, as adding formats symbols such as tab, separator.
Step 12: judge whether treated last column to NarLog subtitle language source file, if not, then forward step 3 to; If execution in step 13 then.
Step 13: utilize the script-editor of Maya to carry out the subroutine that is generated, play up and then can generate the captions effect that the present invention needs.
One of ordinary skill in the art will appreciate that and whether to select execution in step 2, step 10 or step 11 as required; And for the judgment processing of display properties and animation attributes, be at first to judge whether to handle again for display properties in this embodiment, can certainly judge at first that animation attributes handles accordingly again.
According to as above describing, can generate animation head or run-out captions automatically, and describe by predefined title cartoon, can produce the animation effect of terrified class, light class or solemn class.

Claims (6)

1. the generation method of animation head and run-out captions comprises the following steps:
00) makes up NarLog subtitle language source file, wherein said Narlog subtitle language source file is made up of " display properties " and " animation attributes " row that key word led, described row comprises the animation name, attribute-name and property value, " display properties " expresses the pattern when showing, " animation attributes " expresses content displayed, " display properties " row and " animation attributes " row weave in, a plurality of " display properties " row has formed one on the whole and has shown civilian border, this shows that civilian border represents with the Context structure, the value of " display properties " of current correspondence is being write down in each territory of Context structure, comprises a Content structure chained list in the Context structure and is used to represent to be subjected to " animation attributes " of this Context structure control all;
10) to each lang method analysis of advancing of Narlog subtitle language source file, draw the Content structure of animation name, attribute-name and property value that described row comprises, discern the attribute classification of described row, whether what judge described line description according to the attribute classification of described row is display properties, if the attribute of described row is " display properties ", then execution in step 20), if not execution in step 50 then);
20) if the attribute of described row is " display properties ", whether the Content structure chained list of then judging the Context structure is empty, if the Content structure chained list of Context structure is not empty, then execution in step 30), if be empty, then execution in step 40);
30) value of acquisition " display properties " from the territory of Context structure, Content structure chained list is carried out semanteme to be calculated, the value of " display properties " that obtain is inserted in the corresponding suction parameter of each routine interface, generation is about the script subroutine of " animation attributes " under the civilian border of current demonstration, delete this Content structure chained list, execution in step 40 then); 40) the Content structure that returns through grammatical analysis with the step 10) corresponding field that upgrades the Context structure is represented the change of " display properties ";
50) be not " display properties " for described attribute classification, judge then whether the attribute of described row is " animation attributes ", if the attribute of described row is " animation attributes ", then execution in step 60), if not execution in step 70 then);
60) if the attribute of described row is " animation attributes ", then the Content structure that step 10) is returned through grammatical analysis adds on the Content structure chained list of Context structure;
70) if the attribute of described row is " animation attributes ", then show error report, and finish;
80) judge whether treated last column to Narlog subtitle language source file, if not, then forward step 10) to, if then execution in step 90);
90) utilize the Maya script-editor to carry out the script subroutine that is generated, play up the generation captions.
2. method according to claim 1 is characterized in that,
Described step 00) also comprise step 01 after) import dictionary file, wherein said dictionary file comprises the multilingual description of described " display properties " and/or " animation attributes ";
Described step 70) also comprise step 71 after) according to described dictionary file, described " display properties " and/or described " animation attributes " be translated as be different from current another kind of language description.
3. method according to claim 1 and 2 is characterized in that,
Described step 70) also comprise step 72 after) to the demonstration that standardizes of described script subroutine.
4. method according to claim 3 is characterized in that, described standardization demonstration comprises the interpolation formats symbols.
5. method according to claim 4 is characterized in that described formats symbols comprises tab and separator.
6. method according to claim 1 and 2 is characterized in that, described script subroutine is used to control the material of captions, the special efficacy of captions, the font of captions, the capable pattern of captions, the panel of captions, the run-out of captions or the animation effect of video camera.
CN2008102404413A 2008-12-19 2008-12-19 Method for generating caption of cartoon leader and tail leader Active CN101441778B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102404413A CN101441778B (en) 2008-12-19 2008-12-19 Method for generating caption of cartoon leader and tail leader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102404413A CN101441778B (en) 2008-12-19 2008-12-19 Method for generating caption of cartoon leader and tail leader

Publications (2)

Publication Number Publication Date
CN101441778A CN101441778A (en) 2009-05-27
CN101441778B true CN101441778B (en) 2010-12-22

Family

ID=40726197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102404413A Active CN101441778B (en) 2008-12-19 2008-12-19 Method for generating caption of cartoon leader and tail leader

Country Status (1)

Country Link
CN (1) CN101441778B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5801104B2 (en) * 2011-06-06 2015-10-28 アビックス株式会社 Automatic production of short video works based on HTML documents
CN110119515B (en) * 2019-04-18 2020-11-20 珠海格力电器股份有限公司 Translation method, translation device, terminal and readable storage medium

Also Published As

Publication number Publication date
CN101441778A (en) 2009-05-27

Similar Documents

Publication Publication Date Title
CN102256049B (en) Automation story generates
US8223152B2 (en) Apparatus and method of authoring animation through storyboard
US20100083077A1 (en) Automated multimedia object models
CN106528174B (en) Flash rendering method and rendering engine based on cocos2dx
US20150007005A1 (en) Dynamic presentation prototyping and generation
CN102915328A (en) Method for editing rich text and rich text editor
WO1994028480A1 (en) Interactive multimedia development system and method
KR20080114725A (en) Apparatus and method for providing a sequence of video frames, apparatus and method for providing a scene model, scene model, apparatus and method for creating a menu structure and computer program
CN105843787A (en) Rich text editing method and system
CN111897615A (en) Method and system for realizing animation effect editing in interface
CN111930289A (en) Method and system for processing pictures and texts
US8223153B2 (en) Apparatus and method of authoring animation through storyboard
CN101441778B (en) Method for generating caption of cartoon leader and tail leader
Leete Microsoft Expression Blend Bible
Shen et al. Data player: Automatic generation of data videos with narration-animation interplay
CN106354496A (en) Quick edit system and edit method applied to converge data news in media industry
KR101022130B1 (en) Game scenario manufacturing system and manufacturing method thereof
CN104270673A (en) Virtual image and text real-time processing method and system for entertainment program
Grahn The media9 Package, v1. 25
JP2003264817A (en) Apparatus and method for providing data for carousel
Hoxter “We Roller Coaster Through...”: Screenwriting, Narrative Economy, and the Inscription of the Haptic in Tentpole Comic Book Movies
CN106652983A (en) Subtitling method and subtitling system
Yao The Influence of Digital Media Art on Animation Design
Grahn The movie15 package
Abadia et al. Assisted animated production creation and programme generation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant