CN101616272B - Method for generating shadow captions based on region - Google Patents

Method for generating shadow captions based on region Download PDF

Info

Publication number
CN101616272B
CN101616272B CN200810115771A CN200810115771A CN101616272B CN 101616272 B CN101616272 B CN 101616272B CN 200810115771 A CN200810115771 A CN 200810115771A CN 200810115771 A CN200810115771 A CN 200810115771A CN 101616272 B CN101616272 B CN 101616272B
Authority
CN
China
Prior art keywords
shadow
blank
captions
placing
caption
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.)
Expired - Fee Related
Application number
CN200810115771A
Other languages
Chinese (zh)
Other versions
CN101616272A (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.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN200810115771A priority Critical patent/CN101616272B/en
Publication of CN101616272A publication Critical patent/CN101616272A/en
Application granted granted Critical
Publication of CN101616272B publication Critical patent/CN101616272B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a method for generating shadow captions based on a region, which comprises the following steps: according to the region, decomposing caption characters into character blocks and decomposing caption shadow into shadow blocks; placing the character blocks and the shadow blocks on different white boards respectively in a unique corresponding mode of texture coordinates; and superposing the white board for placing the character blocks and the white board for placing the shadow blocks so as to generate the shadow captions. The method for generating the shadow captions based on the regions is characterized in that after the white board for placing the character blocks and the white board for placing the shadow blocks are superposed, the method also comprises the step of realizing the stunt of the shadow caption by the movement of the white board for placing the character blocks and the movement of the white board for placing the shadow blocks. The method for generating the shadow captions based on the region achieves the effect of rapidly generating the shadow captions which have various forms.

Description

A kind of method that generates shadow captions based on the zone
Technical field
The present invention relates to multimedia technology field, particularly relate to a kind of method that generates shadow captions based on the zone.
Background technology
Video caption commonly used at present generates in the software, and the user can add shade for the literal in the captions, and the caption character behind the interpolation shade has produced a kind of effect of floating, and makes the third dimension of picture, stereovision strengthen.Simultaneously, the interpolation of shade makes that also the lines of caption character are more outstanding, helps captions more observably are presented in spectators at the moment.
In the caption editing device of Premiere, for the design of shade provides special the tool option, the user can also set shadow positions through the service area in the lower left corner in the editing machine as required for captions generate the shades of colour shade.Shade among the Premiere has three kinds of patterns: individual layer, solid, soft.The individual layer shade itself is the graph copying to former caption character, and keeps a definite position relation through position change and former caption character.The shade svelteness is convenient to user's operation.Solid shade then is that literal is linked to each other with straight line with the corresponding points of shade, thereby makes shade and literal be linked to be an integral body.Whole dash area is imbued with texture, gives solid strong sensation.Soft shadows is on the basis of individual layer shade, and dash area has been carried out soft processing, has increased dim sense.Be applicable to warm soft occasion.
Yet, generate in the software at existing video caption, need in same figure, edit caption character and caption shadow, editing process is consuming time longer, and hatching effect is more single.
Summary of the invention
The present invention provides a kind of and generates the method for shadow captions based on the zone, and it is consuming time longer to have solved in the prior art shadow captions editing process, and the more single problem of hatching effect.
For achieving the above object, the embodiment of the invention proposes a kind of method based on zone generation shadow captions, may further comprise the steps:
According to the zone caption character is decomposed into the literal piece, caption shadow is decomposed into shaded block;
Said literal piece is placed into respectively on the different blanks through the unique corresponding mode of texture coordinate with said shaded block;
The blank that the blank and the said shaded block of said literal piece placement are placed superposes, thereby generates shadow captions.
Said niche generates the method for shadow captions in the zone, it is characterized in that, after the said blank that the blank and the shaded block of the placement of literal piece are placed superposes, also comprises:
The motion of the blank of placing through said literal piece and the motion of the blank that said shaded block is placed realize the stunt of shadow captions.
Technical scheme of the present invention has the following advantages, because adopted the method that generates shadow captions based on the zone, thereby, reached quick generation shadow captions, the effect that shadow captions is various informative.
Description of drawings
Fig. 1 is for generating the method flow diagram of shadow captions among the present invention based on the zone;
Fig. 2 is for generating a kind of concrete implementation flow chart of shadow captions among the present invention based on the zone.
Embodiment
Below in conjunction with accompanying drawing and embodiment, specific embodiments of the invention describes in further detail: as shown in Figure 1, for generate the method flow diagram of shadow captions among the present invention based on the zone, may further comprise the steps:
Step 101 is decomposed into literal piece and shaded block with caption character and caption shadow respectively according to the zone.
According to the user shadow captions is generated the needs of effect, caption character can be by according to be decomposed into several literal pieces regionally; Correspondingly, caption shadow derives from the processed to caption character, therefore, and also can be by according to be decomposed into several shaded blocks regionally.
Step 102 is placed into the literal piece respectively on the different blanks through the unique corresponding mode of texture coordinate with shaded block.
Texture coordinate is the pinup picture coordinate again, is the user when the structure blank, adds the information of giving blank.In OPENGL and D3D, (U V) is provided with the texture coordinate of a point, and U is that transverse axis, V are the longitudinal axis to use two 0 to 1 floating point values.The upper left corner of texture is (0,0), and the lower right corner is (1,1).Literal piece and shaded block are placed on the blank that has generated after generating figure.Blank is a kind of editor's element in the caption editing software, in the editor space, does not have the plane rectangle of thickness to represent with one.Each blank size under initial condition is identical, and the position maybe be different, and the position of blank is represented through the space coordinates at blank center.After literal block graphics and shaded block figure are placed on the blank, become the texture on the blank, corresponding one by one through texture coordinate with separately blank.
Step 103, the blank that the blank and the shaded block of the placement of literal piece are placed superposes, thereby generates shadow captions.
The literal piece is with after shaded block is placed on the different blanks respectively, and each blank possibly be positioned at the diverse location of space coordinates.When each blank center was placed on the same point of space coordinates, each blank just was superimposed.After the stack, though literal piece and shaded block also on different blanks, because the existence of Alpha passage, can be formed the effect of the shade of word, the result of stack is the generation effect of shadow captions.The Alpha passage is one 8 a gray scale passage, and this passage comes the transparence information in the document image with 256 grades of gray scales, defines transparent, opaque and translucent area, and wherein, black expression full impregnated is bright, representes opaquely in vain, and the ash expression is translucent.
As shown in Figure 2, for generate a kind of concrete implementation flow chart of shadow captions among the present invention based on the zone, may further comprise the steps:
Step 201 is decomposed into literal piece and shaded block with caption character and caption shadow respectively according to the zone.
According to the user shadow captions is generated the needs of effect, caption character can be by according to be decomposed into several literal pieces regionally; Correspondingly, caption shadow also can be by according to be decomposed into several shaded blocks regionally.
Step 202 is placed into the literal piece respectively on the different blanks through the unique corresponding mode of texture coordinate with shaded block.
Literal piece and shaded block are placed on the blank that has generated after generating figure.Each blank size under initial condition is identical, and the position maybe be different.After literal block graphics and shaded block figure are placed on the blank, become the texture on the blank, corresponding one by one through texture coordinate with separately blank.
Step 203, the blank that the blank and the shaded block of the placement of literal piece are placed superposes.
The literal piece is with after shaded block is placed on the different blanks respectively, and each blank is superimposed, and realizes the mixed effect of caption character and caption shadow.
" stack " speech in the embodiment of the invention can refer to each blank by the identical position difference that becomes in position, and it is identical to refer to that also each blank becomes the position by the position difference.The generation effect of shadow captions realizes changing accordingly according to above-mentioned two kinds of situation.Each blank becomes the position not simultaneously by the position is identical, and the generation effect of shadow captions becomes dispersion by concentrating; Each blank becomes the position when identical by the position difference, and the generation effect of shadow captions is concentrated by disperseing to become.
The motion of the blank that step 204, the motion of the blank of placing through the literal piece and shaded block are placed, the stunt of realization shadow captions.
After the blank stack that blank that the literal piece is placed and shaded block are placed, can carry out motion separately, like stretching, distortion etc.Caption character on the blank and caption shadow are followed blank and are moved together, the shadow captions that realization has various special-effects, and like effects such as phantom, the different shading effect depends on the quantity and the motion mode under the support of stunt module of shade blank.
Technical scheme of the present invention has the following advantages, because adopted the method that generates shadow captions based on the zone, thereby, reached quick generation shadow captions, the effect that shadow captions is various informative.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium, comprise some instructions with so that a station terminal equipment (can be mobile phone, personal computer; Server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be looked protection scope of the present invention.

Claims (1)

1. the method based on zone generation shadow captions is characterized in that, may further comprise the steps:
According to the zone caption character is decomposed into the literal piece, caption shadow is decomposed into shaded block;
Said literal piece is placed into respectively on the different blanks through the unique corresponding mode of texture coordinate with said shaded block;
The blank that the blank and the said shaded block of said literal piece placement are placed superposes, thereby generates shadow captions;
After the said blank that the blank and the shaded block of the placement of literal piece are placed superposes, also comprise:
The motion of the blank of placing through said literal piece and the motion of the blank that said shaded block is placed realize the stunt of shadow captions.
CN200810115771A 2008-06-27 2008-06-27 Method for generating shadow captions based on region Expired - Fee Related CN101616272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810115771A CN101616272B (en) 2008-06-27 2008-06-27 Method for generating shadow captions based on region

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810115771A CN101616272B (en) 2008-06-27 2008-06-27 Method for generating shadow captions based on region

Publications (2)

Publication Number Publication Date
CN101616272A CN101616272A (en) 2009-12-30
CN101616272B true CN101616272B (en) 2012-10-10

Family

ID=41495633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810115771A Expired - Fee Related CN101616272B (en) 2008-06-27 2008-06-27 Method for generating shadow captions based on region

Country Status (1)

Country Link
CN (1) CN101616272B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402789B (en) * 2010-09-17 2014-06-18 腾讯科技(深圳)有限公司 Image drawing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0583101A2 (en) * 1992-07-29 1994-02-16 Canon Kabushiki Kaisha Character pattern forming method and apparatus
CN1095876A (en) * 1993-05-25 1994-11-30 王淑云 The manufacture method of trick captions advertisement

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0583101A2 (en) * 1992-07-29 1994-02-16 Canon Kabushiki Kaisha Character pattern forming method and apparatus
CN1095876A (en) * 1993-05-25 1994-11-30 王淑云 The manufacture method of trick captions advertisement

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JP特开2001-265314A 2001.09.28
JP特开2008-72237A 2008.03.27
JP特开平9-330074A 1997.12.22

Also Published As

Publication number Publication date
CN101616272A (en) 2009-12-30

Similar Documents

Publication Publication Date Title
JP4481166B2 (en) Method and system enabling real-time mixing of composite and video images by a user
CN115908644A (en) Animation processing method and device
CN101295407A (en) Videotext system and rendering method thereof
CN106408631B (en) Three-dimensional macro methods of exhibiting and system
CN106886353B (en) Display processing method and device of user interface
CN105718420A (en) Data-Processing Apparatus And Operation Method Thereof
CN112891946A (en) Game scene generation method and device, readable storage medium and electronic equipment
CN101616271B (en) Device for generating shadow captions based on area
CN101616269B (en) Method for generating shadow caption based on structure of characters
JP2009508234A (en) 2D / 3D combined rendering
CN101616274B (en) Device for generating shadow captions by texture coordinates
CN101616272B (en) Method for generating shadow captions based on region
CN111787240A (en) Video generation method, device and computer readable storage medium
CN102117347B (en) Three-dimensional editing method for LED lighting scenes
CN101616268A (en) A kind of method of utilizing texture coordinate to generate shadow captions
CN102932607A (en) Caption graphics and text information generation method and device
CN101616273B (en) Device for generating shadow captions based on structures of characters
CN107346558A (en) Accelerate the method for the direct lighting effect drafting of three-dimensional scenic using the space correlation of area source observability
CN201828965U (en) Synthetic cartoon display device based on multilayer transparent pictures
Pringle et al. Aspects of Quality in the Design and Production of Text
JP2003331313A (en) Image processing program
CN101593356A (en) A kind of graph rendering method
CN103839217A (en) Watermark image realization method
CN102402789B (en) Image drawing method and device
CN113181642B (en) Method and device for generating wall model with mixed materials

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121010

Termination date: 20170627