CN102074032A - Animation generating method and device based on picture sequence - Google Patents

Animation generating method and device based on picture sequence Download PDF

Info

Publication number
CN102074032A
CN102074032A CN2009102382777A CN200910238277A CN102074032A CN 102074032 A CN102074032 A CN 102074032A CN 2009102382777 A CN2009102382777 A CN 2009102382777A CN 200910238277 A CN200910238277 A CN 200910238277A CN 102074032 A CN102074032 A CN 102074032A
Authority
CN
China
Prior art keywords
area
interest
frame picture
pictures
sequence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2009102382777A
Other languages
Chinese (zh)
Inventor
沈季
吕精华
廖健
冯永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN2009102382777A priority Critical patent/CN102074032A/en
Publication of CN102074032A publication Critical patent/CN102074032A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses an animation generating method and device based on a picture sequence, wherein the method specifically comprises the steps of: determining a region of interest based on a frame picture in the given picture sequence; extracting target data of each frame of picture in the picture sequence according to the region of interest; and connecting the target data in series to obtain the animation according to the numbering sequence of the frame pictures. The invention can be used for generating the animation of the region of interest of the user on the premise of no waste of storage space.

Description

A kind of animation producing method and device based on sequence of pictures
Technical field
The present invention relates to image processing field, particularly relate to a kind of animation producing method and device based on sequence of pictures.
Background technology
Along with the progress of science and technology, animation incorporates life just gradually, greatly affects people's live and work mode.At present, animation has been widely used in fields such as video display stunt, commercial advertisement, recreation, Computer Assisted Instruction (CAI).
Animation is meant that by the static picture of many frames when playing continuously, naked eyes produce illusion because of vision, and take for the works of picture activity with certain speed (as per second 16 frames).In order to obtain movable picture, all trickle change can be arranged between each picture.Therefore, the existing cartoon method that generates generally is based on the conversion of sequence of pictures to animation sequence, also, picture one frame frame is stacked up, and forms animation sequence.
But in actual applications, tend to exist such situation, for the captions animation of having made (sequence of multiframe picture),, only need show that a zone in the picture wherein gets final product at some application scenario or specific program, for example, comprise several signs (logo) in the picture, and only comprise the area-of-interest at certain logo place in the animation that the user only wishes to generate, perhaps, the technician need reduce the data volume of current animation, to reduce the resource occupation of film titler etc.Then in the prior art, just need the captions producer to make a new animation again, to adapt to current demand; It will increase captions producer's workload greatly, and owing to make and need spend the more time, can't satisfy the demand of instant broadcast.
In a word, need the urgent technical matters that solves of those skilled in the art to be exactly: how a kind of animation producing method based on sequence of pictures can be provided,, generate the animation of user's area-of-interest in order under the prerequisite of not wasting the storage area.
Summary of the invention
Technical matters to be solved by this invention provides a kind of animation producing method and device based on sequence of pictures, in order under the prerequisite of not wasting the storage area, generates the animation of user's area-of-interest.
In order to address the above problem, the invention discloses a kind of animation producing method based on sequence of pictures, comprising:
Based on a certain frame picture in the given sequence of pictures, determine area-of-interest;
According to described area-of-interest, extract the target data of every frame picture in the described sequence of pictures;
According to frame picture number order, be connected in series the target data of described every frame picture, obtain animation.
Preferably, the step of described definite area-of-interest comprises:
Draw an area-of-interest in a certain frame picture in sequence of pictures;
Obtain the boundary coordinate value of this area-of-interest.
Preferably, the shape of described area-of-interest comprises rectangle and circle.
Preferably, when described area-of-interest was the rectangular area, the step of described definite area-of-interest comprised:
With the upper left corner coordinate figure and the lower right corner coordinate figure of this rectangular area of input, as the boundary coordinate value of this rectangular area.
Preferably, described extraction step comprises:
According to described boundary coordinate value, the every frame picture in the described sequence of pictures is carried out cutting;
With the image data after the cutting as target data.
The invention also discloses a kind of animation generating apparatus, comprising based on sequence of pictures:
Determination module is used for a certain frame picture based on given sequence of pictures, determines area-of-interest;
Extraction module is used for extracting the target data of every frame picture in the described sequence of pictures according to described area-of-interest;
Concatenation module is used for being connected in series the target data of described every frame picture according to frame picture number order, obtains animation.
Preferably, described determination module comprises:
Drawing unit is used for drawing an area-of-interest in a certain frame picture of sequence of pictures;
Acquiring unit is used to obtain the boundary coordinate value of this area-of-interest.
Preferably, described determination module comprises::
Input block is used for upper left corner coordinate figure and lower right corner coordinate figure with the rectangular area interested of input, as the boundary coordinate value of this rectangular area.
Preferably, described extraction module comprises:
The cutting unit is used for according to described boundary coordinate value, and the every frame picture in the described sequence of pictures is carried out cutting, and with the image data after the cutting as target data.
Compared with prior art, the present invention has the following advantages:
The present invention is according to described area-of-interest, extract the target data of every frame picture in the described sequence of pictures, and according to frame picture number order, be connected in series the target data of described every frame picture, obtain animation, since the present invention only with the data of area-of-interest in every frame picture as the animation data source, only the data of area-of-interest are carried out play operation, only offer user's area-of-interest, can realize the function of " finding is promptly required ", and can satisfy the demand of instant broadcast, therefore, the present invention need not the captions producer and makes a new sequence of pictures again, can avoid repeating to make the time that sequence of pictures spends;
In addition, the present invention only stores and play operation the data of area-of-interest, thereby can reduce the animation storage space, improves the fluency that animation is play.
Description of drawings
Fig. 1 is the process flow diagram of a kind of animation producing method embodiment 1 based on sequence of pictures of the present invention;
Fig. 2 is the process flow diagram of a kind of animation producing method embodiment 2 based on sequence of pictures of the present invention;
Fig. 3 is the process flow diagram of a kind of animation producing method embodiment 3 based on sequence of pictures of the present invention;
Fig. 4 is the structural drawing of a kind of animation generating apparatus embodiment based on sequence of pictures of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Existing animation producing method, consideration be the size of whole frame picture, thereby the data message data from picture in its entirety of animation, the data message that also is about to every frame picture is together in series and has just generated an animation.
Therefore, the inventor herein has creatively proposed one of core idea of the embodiment of the invention, it is just interested in certain zone among a series of pictures promptly to work as the user, and when not needing that picture whole are changed into animation, if only the data of user's area-of-interest in the frame picture are operated, also, the data of area-of-interest in every frame picture of animation, the animation of Sheng Chenging can either be met consumers' demand so, can not cause the waste of unnecessary time and space again.
With reference to Fig. 1, show the process flow diagram of a kind of animation producing method embodiment 1 based on sequence of pictures of the present invention, specifically can comprise:
Step 101, based on a certain frame picture in the given sequence of pictures, determine area-of-interest;
In the animation generative process, often comprise the multiframe picture in the given sequence of pictures, the present invention can select a certain frame wherein, determines described area-of-interest.
For example, given sequence of pictures has been described an expression shape change that dog sits roller-coaster, be respectively proud, self-confident, regret, panic, scream, expressions such as fear, carsickness, this sequence of pictures comprises 100 frame pictures, because the user is only interested in the dog in the picture, so when determining area-of-interest, this dog need be included.As for which frame in the selection 100 frame pictures, the user can select as required.Suppose that the user feels the fear expression typical case relatively of this dog, can select to carry out described definite operation in the frame picture (for example, 30-40 frame) at panic expression place.
Certainly, the selection mode of above-mentioned frame picture is just as example, and those skilled in the art can select the arbitrary frame picture in the given sequence of pictures to determine operation as required, and the present invention is not limited concrete selection mode.
In practice, the shape of described area-of-interest can be regular shape, as rectangle, circle, pentagram shape; Also can be for irregularly shaped, as people's shape of face, animal shape of face etc.Therefore, the present invention goes for close-shaped arbitrarily, and concrete area-of-interest shape is not limited.
Step 102, according to described area-of-interest, extract the target data of every frame picture in the described sequence of pictures;
This step is the area-of-interest of determining according to step 101, extracts the target data as the animation data source from every frame picture.For example, the original size of a frame picture is 800 * 600, area-of-interest be shaped as rectangle, its size (40 * 30) and position are definite, like this, and after opening a frame picture, can read and preserve the data of determining big or small rectangular area in described definite position, as the animation data source.
Step 103, according to frame picture number order, be connected in series the target data of described every frame picture, obtain animation sequence.
Suppose that this sequence of pictures comprises 100 frame pictures, this step can be according to frame picture numbering 1,2,3 ..., 100 orders are connected in series the target data information of every frame picture, form final animation.
The beading process that is appreciated that step 103 also can be embodied in the extraction operation of step 102, also, carries out the target data of every frame picture according to frame picture number order and extracts, and can generate animation.
For making those skilled in the art understand the present invention better, below be example with the sequence of 100 frame pictures, animation generative process of the present invention is described, specifically can comprise:
Step S1, based on a certain frame picture in the given sequence of pictures, determine area-of-interest;
Step S2,100 target data arrays of initialization A1, A2 ..., A100, initialization animation array B presets frame parameter i=2;
Step S3, according to described area-of-interest, extract the target data of the first frame picture, and be saved to A1;
If step S4 is i>100, execution in step S7 then, otherwise execution in step S5;
The target data of step S5, extraction i frame picture, and be saved to Ai;
Step S6, i=i+1, and return step S4;
Step S7, order merge A1, A2 ..., A100 obtains animation array B.
The present invention is according to described area-of-interest, extract the target data of every frame picture in the described sequence of pictures, and according to frame picture number order, be connected in series the target data of described every frame picture, obtain animation, since the present invention only with the data of area-of-interest in every frame picture as the animation data source, only the data of area-of-interest are carried out play operation, thereby, in prior art, the user has to tell this area-of-interest from the whole animation region of playing, and the present invention only offers user's area-of-interest, can realize the function of " finding is promptly required ";
In addition, with respect to prior art whole picture region is stored and play operation, the present invention only carries out aforesaid operations to the data of area-of-interest, thereby can reduce the animation storage space, improves the fluency that animation is play.
With reference to Fig. 2, show the process flow diagram of a kind of animation producing method embodiment 2 based on sequence of pictures of the present invention, specifically can comprise:
Step 201, in a certain frame picture of given sequence of pictures, draw an area-of-interest;
Since how area-of-interest can so, should obtain the zone of these shapes in practice for regular shape, irregularly shaped etc. close-shaped arbitrarily.
The inventor herein has noticed this point, adopts the drafting mode to obtain described close-shaped area-of-interest arbitrarily.A kind of example can for, set up a preview window, to make things convenient for arbitrary frame picture of the given sequence of pictures of user's preview, like this, when the frame picture of the careful satisfaction of user, can draw a zone in this frame picture, this regional shape can be regular shape, as rectangle, circle, pentagram shape; Also can be for irregularly shaped, as people's shape of face, animal shape of face etc.
Step 202, obtain the boundary coordinate value of this area-of-interest;
After drafting obtained area-of-interest, this step can be by calculating the boundary coordinate value of this area-of-interest.With the border circular areas is example, supposes that picture upper left corner coordinate figure is (0,0), can obtain the central coordinate of circle value earlier, then, according to central coordinate of circle value and the round coordinate figure of going up certain point, calculates this circular boundary coordinate.
Step 203, according to described boundary coordinate value, the every frame picture in the described sequence of pictures is carried out cutting;
This step is according to described boundary coordinate value, and the area-of-interest cutting of every frame picture is come out.The rectangular area of placing with the front is an example, step 202 has obtained four apex coordinates in upper and lower, left and right, suppose to be respectively A (a, b), B (c, b), C (a, d), D (c, d), so only need go out the position (row, column) of these four summits in whole frame picture, then, read image data according to the storage order of picture from corresponding position and get final product according to described four coordinate Calculation.
Step 204, with the image data after the cutting as target data;
Step 205, according to frame picture number order, be connected in series the target data of described every frame picture, obtain animation.
The drafting mode of present embodiment can be described various regular shapes according to user's request, and people's shape of face, animal shape of face etc. are irregularly shaped, thereby reach the purpose that is user-friendly to.
For embodiment 2, because it is similar substantially to embodiment 1 shown in Figure 1, so description is fairly simple, relevant part gets final product referring to the part explanation of embodiment 1.
With reference to Fig. 3, show the process flow diagram of a kind of animation producing method embodiment 3 based on sequence of pictures of the present invention, specifically can comprise:
The upper left corner coordinate figure and the lower right corner coordinate figure of step 301, the rectangular area interested that will import are as the boundary coordinate value of this rectangular area;
Step 302, according to described boundary coordinate value, the every frame picture in the described sequence of pictures is carried out cutting;
Step 303, with the image data after the cutting as target data;
Step 304, according to frame picture number order, be connected in series the target data of described every frame picture, obtain animation.
For a rectangle, as long as the upper left corner and the lower right corner determine that this rectangular area has just been determined by unique.Therefore, this enforcement is with the difference of implementing 2, adopts user's input mode to obtain the boundary coordinate value of rectangular area interested.
A kind of example can for, set up a preview window, to make things convenient for arbitrary frame picture of the given sequence of pictures of user's preview, simultaneously, this preview window provides the coordinate Presentation Function of each pixel in the picture.Like this, when the frame picture of the careful satisfaction of user, can at first write down the coordinate of interested two pixels in this frame picture, then, trigger the coordinate input function, for example, order by " the coordinate input " clicked under the menu, and in " coordinate input " window that ejects, import upper left corner coordinate figure and lower right corner coordinate figure.
Certainly, above-mentioned input mode is only as example, and those skilled in the art can also adopt other input mode as the case may be, for example, the original size of one frame picture is 800 * 600, and true origin (0,0) (also promptly requires rectangular area interested to overlap with former rectangular area in the upper left corner if think the zone of display centre 1/4 so, and area is original 1/4), so only need input upper left corner coordinate figure (200,150) and lower right corner coordinate figure (600,450) to get final product; And for example, think the zone of display centre 1/8, only need input upper left corner coordinate figure (300,225) and lower right corner coordinate figure (500,375) to get final product, the present invention is not limited concrete input mode.
For embodiment 3, because it is similar substantially to embodiment 2 shown in Figure 3, so description is fairly simple, relevant part gets final product referring to the part explanation of embodiment 2.
With reference to Fig. 4, show the structural drawing of a kind of animation generating apparatus embodiment based on sequence of pictures of the present invention, specifically can comprise:
Determination module 401 is used for a certain frame picture based on given sequence of pictures, determines area-of-interest;
In a preferred embodiment of the present invention, adopt the drafting mode to determine described area-of-interest, in this case, described determination module 401 may further include:
Drawing unit 411 is used for drawing an area-of-interest in a certain frame picture of sequence of pictures;
Acquiring unit 412 is used to obtain the boundary coordinate value of this area-of-interest.
Extraction module 402 is used for extracting the target data of every frame picture in the described sequence of pictures according to described area-of-interest;
In the present invention, preferably, adopt the cutting mode to carry out the extraction of described target data, at this moment, described extraction module 402 may further include:
Cutting unit 421 is used for according to described boundary coordinate value, and the every frame picture in the described sequence of pictures is carried out cutting, and with the image data after the cutting as target data.
Concatenation module 403 is used for being connected in series the target data of described every frame picture according to frame picture number order, obtains animation.
For a rectangle, as long as the upper left corner and the lower right corner determine that this rectangular area has just been determined by unique.Therefore, in another kind of preferred embodiment of the present invention, adopt user's input mode to determine described area-of-interest, in this case, described determination module 401 may further include::
Input block is used for upper left corner coordinate figure and lower right corner coordinate figure with the rectangular area interested of input, as the boundary coordinate value of this rectangular area.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device embodiment, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
The present invention goes for fields such as video display stunt, commercial advertisement, recreation, Computer Assisted Instruction (CAI), is used for based on sequence of pictures, makes the captions animation of user's area-of-interest for described movie and video programs.
More than to a kind of animation producing method and device provided by the present invention based on sequence of pictures, be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (9)

1. the animation producing method based on sequence of pictures is characterized in that, comprising:
Based on a certain frame picture in the given sequence of pictures, determine area-of-interest;
According to described area-of-interest, extract the target data of every frame picture in the described sequence of pictures;
According to frame picture number order, be connected in series the target data of described every frame picture, obtain animation.
2. the method for claim 1 is characterized in that, the step of described definite area-of-interest comprises:
Draw an area-of-interest in a certain frame picture in sequence of pictures;
Obtain the boundary coordinate value of this area-of-interest.
3. the method for claim 1 is characterized in that, the shape of described area-of-interest comprises rectangle and circle.
4. method as claimed in claim 3 is characterized in that, when described area-of-interest was the rectangular area, the step of described definite area-of-interest comprised:
With the upper left corner coordinate figure and the lower right corner coordinate figure of this rectangular area of input, as the boundary coordinate value of this rectangular area.
5. as claim 2 or 4 described methods, it is characterized in that described extraction step comprises:
According to described boundary coordinate value, the every frame picture in the described sequence of pictures is carried out cutting;
With the image data after the cutting as target data.
6. the animation generating apparatus based on sequence of pictures is characterized in that, comprising:
Determination module is used for a certain frame picture based on given sequence of pictures, determines area-of-interest;
Extraction module is used for extracting the target data of every frame picture in the described sequence of pictures according to described area-of-interest;
Concatenation module is used for being connected in series the target data of described every frame picture according to frame picture number order, obtains animation.
7. device as claimed in claim 6 is characterized in that, described determination module comprises:
Drawing unit is used for drawing an area-of-interest in a certain frame picture of sequence of pictures;
Acquiring unit is used to obtain the boundary coordinate value of this area-of-interest.
8. device as claimed in claim 6 is characterized in that, described determination module comprises::
Input block is used for upper left corner coordinate figure and lower right corner coordinate figure with the rectangular area interested of input, as the boundary coordinate value of this rectangular area.
9. as claim 7 or 8 described devices, it is characterized in that described extraction module comprises:
The cutting unit is used for according to described boundary coordinate value, and the every frame picture in the described sequence of pictures is carried out cutting, and with the image data after the cutting as target data.
CN2009102382777A 2009-11-24 2009-11-24 Animation generating method and device based on picture sequence Pending CN102074032A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102382777A CN102074032A (en) 2009-11-24 2009-11-24 Animation generating method and device based on picture sequence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102382777A CN102074032A (en) 2009-11-24 2009-11-24 Animation generating method and device based on picture sequence

Publications (1)

Publication Number Publication Date
CN102074032A true CN102074032A (en) 2011-05-25

Family

ID=44032561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102382777A Pending CN102074032A (en) 2009-11-24 2009-11-24 Animation generating method and device based on picture sequence

Country Status (1)

Country Link
CN (1) CN102074032A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663795A (en) * 2012-04-06 2012-09-12 谌方琦 2.5D character animation realization method based on webpage and system thereof
CN105809726A (en) * 2016-03-04 2016-07-27 大连米乐宏业科技有限公司 Method for converting static graph to dynamic graph

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051389A (en) * 2006-04-06 2007-10-10 欧姆龙株式会社 Moving image editing apparatus
CN101276476A (en) * 2008-05-14 2008-10-01 清华大学 Process for the separating prospect background of 2D cartoon animation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051389A (en) * 2006-04-06 2007-10-10 欧姆龙株式会社 Moving image editing apparatus
CN101276476A (en) * 2008-05-14 2008-10-01 清华大学 Process for the separating prospect background of 2D cartoon animation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
侯伟: "视频对象分割技术及应用", 《中国优秀硕士学位论文全文数据库-信息科技专辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663795A (en) * 2012-04-06 2012-09-12 谌方琦 2.5D character animation realization method based on webpage and system thereof
CN102663795B (en) * 2012-04-06 2014-11-19 谌方琦 2.5D character animation realization method based on webpage and system thereof
CN105809726A (en) * 2016-03-04 2016-07-27 大连米乐宏业科技有限公司 Method for converting static graph to dynamic graph
CN105809726B (en) * 2016-03-04 2018-07-03 大连米乐宏业科技有限公司 A kind of method that static map changes into Dynamic Graph

Similar Documents

Publication Publication Date Title
CN103092612B (en) Realize method and the electronic installation of Android operation system 3D desktop pinup picture
JP7270661B2 (en) Video processing method and apparatus, electronic equipment, storage medium and computer program
CN110708589B (en) Information sharing method and device, storage medium and electronic device
US20140280054A1 (en) Visual Post Builder
CN102074033B (en) A kind of animation method and device
CN111131876B (en) Control method, device and terminal for live video and computer readable storage medium
CN106162298B (en) Method and system for realizing bullet screen
CN103384253B (en) The play system and its construction method of multimedia interaction function are presented in video
CN113542624A (en) Method and device for generating commodity object explanation video
CN104822078B (en) The occlusion method and device of a kind of video caption
CN110996150A (en) Video fusion method, electronic device and storage medium
CN111986601B (en) Screen display method, device, terminal equipment and storage medium
CN105407384A (en) Method, device and system for identifying media player content by using two-dimensional code
CN111327842B (en) Rolling caption display method and device
CN105263038A (en) Method and apparatus for dynamic display of virtual auditorium
CN117576388A (en) Image processing method and device, storage medium and electronic equipment
CN115690664A (en) Image processing method and device, electronic equipment and storage medium
CN114025185B (en) Video playback method and device, electronic equipment and storage medium
CN106878760B (en) Draw and parse the method and device of present
CN102074032A (en) Animation generating method and device based on picture sequence
WO2020108248A1 (en) Video playback method and apparatus
CN102075689A (en) Character generator for rapidly making animation
CN114245193A (en) Display control method and device and electronic equipment
CN109933262B (en) GIF screen capturing method and device
CN113628306A (en) Text display method and device, electronic equipment and readable storage medium

Legal Events

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

Application publication date: 20110525