CN105279779B - Import the treating method and apparatus of animation unit exception - Google Patents

Import the treating method and apparatus of animation unit exception Download PDF

Info

Publication number
CN105279779B
CN105279779B CN201510622224.0A CN201510622224A CN105279779B CN 105279779 B CN105279779 B CN 105279779B CN 201510622224 A CN201510622224 A CN 201510622224A CN 105279779 B CN105279779 B CN 105279779B
Authority
CN
China
Prior art keywords
animation
component
importing
frame
generation part
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
CN201510622224.0A
Other languages
Chinese (zh)
Other versions
CN105279779A (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.)
TVM Beijing Technology Co Ltd
Original Assignee
TVM Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TVM Beijing Technology Co Ltd filed Critical TVM Beijing Technology Co Ltd
Priority to CN201510622224.0A priority Critical patent/CN105279779B/en
Publication of CN105279779A publication Critical patent/CN105279779A/en
Application granted granted Critical
Publication of CN105279779B publication Critical patent/CN105279779B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind for the treatment of method and apparatus importing animation unit exception, belong to MultiMedia Field.The method includes:The animation that one includes multiple components is imported in Ventuz systems;Whether generation part is abnormal in animation after detection importing;When determining generation part exception, to each component in the multiple component, the frame where extracting the component in the animation after the importing forms the frame sequence of the component;The frame sequence of each obtained component is reconfigured to obtain the animation.Described device includes:Import modul, detection module, acquisition module and composite module.The invention enables components in the animation after reconfiguring correctly to arrange, ensure that import after animation can normal play, improve Ventuz system introducing animations display effect.

Description

Import the treating method and apparatus of animation unit exception
Technical field
The present invention relates to MultiMedia Field, more particularly to a kind for the treatment of method and apparatus importing animation unit exception.
Background technology
Ventuz (Wei Tusi) is a real-time picture material creation, editor and broadcasts control software.It is absorbed in height Hold the making of audio-visual content, including profession displaying, video wall installation, live scene display and interactive, multiple point touching application and The fields such as studio and broadcast.Ventuz designs are strong, using simplicity, can be applied to video wall, projection mapping, radio and television and exist Wire wrapping, and can realize that interactivity uses with almost all of interactive device.
Animation can be made using Ventuz systems, animation can also be imported in Ventuz systems and carry out edit-modify. But at present Ventuz system introducings animation when have a problem that, be exactly often occur it is out of order, after importing in Ventuz move The sequence for putting in order with importing preceding original animation frame for drawing frame is variant, so as to cause the display effect of animation in Ventuz systems Fruit is undesirable, and how to improve the display effect of Ventuz system introducing animations is also a urgent problem to be solved.
Invention content
In view of this, the present invention provides a kind for the treatment of method and apparatus importing animation unit exception, to improve The display effect of Ventuz system introducing animations.The technical solution is as follows:
On the one hand, the present invention provides it is a kind of import animation unit exception processing method, the method includes:
The animation that one includes multiple components is imported in Ventuz systems;
Whether generation part is abnormal in animation after detection importing;
When determining generation part exception, to each component in the multiple component, following arithmetic sequence public affairs are used Formula calculates the frame number where component described in the animation after the importing, and the frame is extracted in the animation after the importing Number corresponding each frame forms the frame sequence of the component:
Y=A+B*X;
Wherein, X is the frame number in the animation before the importing, and the X=0,1,2,3 ..., N-1, the N are described The totalframes of animation before importing, A are the frame number occurred for the first time in animation of the component after the importing, and B is described The step value that component repeats in each frame described in animation after importing, Y are that the X takes 0,1,2,3 ..., and N-1 is respectively worth Each frame number where component described in animation after the importing being calculated afterwards;
The frame sequence of each obtained component is reconfigured to obtain the animation.
Wherein, the frame sequence by each obtained component reconfigures to obtain the animation, including:
By the frame sequence of each obtained component, according to putting in order for multiple components described in animation before importing, into Row reconfigures to obtain the animation.
Wherein, whether generation part is abnormal in the animation after the detection imports, including:
Detection import after animation in component put in order whether the phase that puts in order with component in the animation before importing Together, if identical, it is determined that non-generation part is abnormal;If it is different, then determining that generation part is abnormal.
Wherein, the method further includes:
The animation obtained after being reconfigured described in being played in the Ventuz systems.
On the other hand, the present invention provides a kind of processing unit importing animation unit exception, described device includes:
Import modul, the animation for by one including multiple components import in Ventuz systems;
Detection module, for detecting the animation after importing, whether generation part is abnormal;
Acquisition module, for when determining generation part exception, to each component in the multiple component, using such as Lower arithmetic sequence formula calculates the frame number where component described in the animation after the importing, in the animation after the importing Extract the frame sequence that the corresponding each frame of the frame number forms the component:
Y=A+B*X;
Wherein, X is the frame number in the animation before the importing, and the X=0,1,2,3 ..., N-1, the N are described The totalframes of animation before importing, A are the frame number occurred for the first time in animation of the component after the importing, and B is described The step value that component repeats in each frame described in animation after importing, Y are that the X takes 0,1,2,3 ..., and N-1 is respectively worth Each frame number where component described in animation after the importing being calculated afterwards;
Composite module obtains the animation for reconfiguring the frame sequence of each obtained component.
Wherein, the composite module is used for:
By the frame sequence of each obtained component, according to putting in order for multiple components described in animation before importing, into Row reconfigures to obtain the animation.
Wherein, the detection module includes:
Detection unit, for detect import after animation in component put in order whether with component in the animation before importing Put in order it is identical, if identical, it is determined that non-generation part is abnormal;If it is different, then determining that generation part is abnormal.
Wherein, described device further includes:
Playing module, the animation for being obtained after being reconfigured described in the broadcasting in the Ventuz systems.
The advantageous effect that technical solution provided by the invention is brought is:The animation that one includes multiple components is imported In Ventuz systems;Whether generation part is abnormal in animation after detection importing;When determining generation part exception, to described more Each component in a component, the frame where extracting the component in the animation after the importing form the frame sequence of the component Row;The frame sequence of each obtained component is reconfigured to obtain the animation so that component in the animation after reconfiguring Can correctly arrange, ensure that import after animation can normal play, improve Ventuz system introducing animations display effect.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is a kind of process flow figure for importing animation unit exception that one embodiment of the invention provides;
Fig. 2 is a kind of process flow figure for importing animation unit exception that another embodiment of the present invention provides;
Fig. 3 is a kind of processing unit structure chart for importing animation unit exception that another embodiment of the present invention provides.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Referring to Fig. 1, one embodiment of the invention provides a kind of processing method importing animation unit exception, including:
101:The animation that one includes multiple components is imported in Ventuz systems;
Wherein, the number of component does not limit, and can be arranged as required to.For example, moving about person model deformation In picture, component may include face, body and four limbs etc..Putting in order for component can also be arranged as required to, such as from upper To putting in order as head, body and foot etc. for lower component.
102:Whether generation part is abnormal for animation after detection importing;
Wherein, unit exception is that the generation that puts in order of finger is chaotic.For example, an animation includes 100 frames, wherein Each frame all includes component 1,2 and 3, and the animation becomes 300 frames after importing Ventuz systems, and all only there are one portions for each frame Part, then the animation unit exception has occurred.
103:It is dynamic after the importing to each component in multiple component when determining generation part exception Frame where extracting the component in picture forms the frame sequence of the component;
104:The frame sequence of each obtained component is reconfigured to obtain the animation.
In the present embodiment, optionally, which reconfigures to obtain the animation, wraps It includes:
By the frame sequence of each obtained component, according to putting in order for multiple components described in animation before importing, into Row reconfigures to obtain the animation.
In the present embodiment, optionally, to each component in the multiple component, taken out in the animation after the importing Frame where taking out the component forms the frame sequence of the component, including:
To each component in the multiple component, calculated using following arithmetic sequence formula dynamic after the importing Frame number where component described in picture extracts the corresponding each frame of the frame number in the animation after the importing and forms the portion The frame sequence of part:
Y=A+B*X;
Wherein, X is the current frame number in the animation before the importing, and the X=0,1,2,3 ..., N-1, the N are The totalframes of animation before the importing, A are the frame number occurred for the first time in animation of the component after the importing, and B is The step value that component repeats in each frame described in animation after the importing, Y are that the X takes 0,1,2,3 ..., N-1 Each frame number where component described in animation after the importing being calculated after each value.
In the present embodiment, optionally, whether generation part is abnormal in the animation after the detection importing, including:
Detect import animation in component put in order whether in the animation before importing component put in order it is identical, If identical, it is determined that non-generation part is abnormal;If it is different, then determining that generation part is abnormal.
In the present embodiment, optionally, this method further includes:
The animation obtained after reconfiguring is played in the Ventuz systems.
The above method provided in this embodiment imports the animation that one includes multiple components in Ventuz systems;Detection Whether generation part is abnormal in animation after importing;When determining generation part exception, to each in the multiple component Component, the frame where extracting the component in the animation after the importing form the frame sequence of the component;It is each by what is obtained The frame sequence of a component reconfigures to obtain the animation so that component can be arranged correctly in the animation after reconfiguring, and be protected Demonstrate,proved import after animation can normal play, improve Ventuz system introducing animations display effect.
Referring to Fig. 2, another embodiment of the present invention provides a kind of processing method importing animation unit exception, including:
201:The animation that one includes multiple components is imported in Ventuz systems;
202:Whether generation part is abnormal for the animation that detection imports;
Wherein, optionally, this step can specifically include:
Detection import after animation in component put in order whether the phase that puts in order with component in the animation before importing Together, if identical, it is determined that non-generation part is abnormal;If it is different, then determining that generation part is abnormal.
203:When determining generation part exception in the animation after importing, to each component in multiple component, make The frame number in the animation after importing where the component is calculated with following arithmetic sequence formula;
Y=A+B*X;
Wherein, X is the current frame number in the animation before the importing, and the X=0,1,2,3 ..., N-1, the N are The totalframes of animation before the importing, A are the frame number occurred for the first time in animation of the component after the importing, and B is The step value that component repeats in each frame described in animation after the importing, Y are that the X takes 0,1,2,3 ..., N-1 Each frame number where component described in animation after the importing being calculated after each value.
204:The corresponding each frame of the frame number is extracted in animation after the importing, forms the frame sequence of the component;
205:By the frame sequence of each obtained component, put in order according to multiple component in animation before importing, It is reconfigured to obtain the animation;
206:The animation reconfigured is played in Ventuz systems.
For example, there are one animations, 150 frames are shared, interior per frame includes 4 components, is respectively from top to bottom:△,+,○, □.Become 600 frames after importing Ventuz systems and generation part is abnormal, the component there are one interior per frame, respectively △ ,+, Zero,, △ ,+, zero, ... is according to above-mentioned formula Y=A+B*X, wherein the step value of each component is B=4, before importing Animation in frame number X=0,1,2,3 ... ..149.
For component △, A=0, therefore, Y=0+4*X=1,5,9 ... 596, for component △ institutes in the animation after importing Each frame frame number.It is 1,5,9 that frame number is extracted from the animation after importing ..., and 597 each frame forms interim animation 1.
For component+, A=1, therefore, Y=1+4*X=2,6,10 ... 597, for component+place in the animation after importing Each frame frame number.It is 2,6,10 that frame number is extracted from the animation after importing ..., and 597 each frame forms interim animation 2.
For component zero, A=2, therefore, Y=2+4*X=3,7,11 ... 598, for zero institute of component in the animation after importing Each frame frame number.It is 3,7,11 that frame number is extracted from the animation after importing ..., and 598 each frame forms interim animation 3.
For component, A=3, therefore, Y=3+4*X=4,8,12 ... 599, for component institutes in the animation after importing Each frame frame number.It is 4,8,12 that frame number is extracted from the animation after importing ..., and 599 each frame forms interim animation 4.
By above-mentioned interim animation 1 to 4 according to △ from top to bottom ,+, zero, the sequence of re-start combination obtain it is new dynamic It draws, as unit exception treated animation, which is the animation that component correctly arranges, with the animation complete one before importing It causes, solves the problems, such as unit exception, ensure that the result of broadcast of animation after importing.
The above method provided in this embodiment imports the animation that one includes multiple components in Ventuz systems;Detection Whether generation part is abnormal in animation after importing;When determining generation part exception, to each in the multiple component Component, the frame where extracting the component in the animation after the importing form the frame sequence of the component;It is each by what is obtained The frame sequence of a component reconfigures to obtain the animation so that component can be arranged correctly in the animation after reconfiguring, and be protected Demonstrate,proved import after animation can normal play, improve Ventuz system introducing animations display effect.
Referring to Fig. 3, another embodiment of the present invention provides a kind of processing unit importing animation unit exception, including:
Import modul 301, the animation for by one including multiple components import in Ventuz systems;
Detection module 302, for detecting the animation after importing, whether generation part is abnormal;
Acquisition module 303, for when determining generation part exception, to each component in the multiple component, Frame where extracting the component in animation after the importing forms the frame sequence of the component;
Composite module 304 obtains the animation for reconfiguring the frame sequence of each obtained component.
In the present embodiment, optionally, composite module is used for:
By the frame sequence of each obtained component, according to putting in order for multiple components described in animation before importing, into Row reconfigures to obtain the animation.
In the present embodiment, optionally, the acquisition module is used for:
When determining generation part exception, to each component in the multiple component, following arithmetic sequence public affairs are used Formula calculates the frame number where component described in the animation after the importing, and the frame is extracted in the animation after the importing Number corresponding each frame forms the frame sequence of the component:
Y=A+B*X;
Wherein, X is the current frame number in the animation before the importing, and the X=0,1,2,3 ..., N-1, the N are The totalframes of animation before the importing, A are the frame number occurred for the first time in animation of the component after the importing, and B is The step value that component repeats in each frame described in animation after the importing, Y are that the X takes 0,1,2,3 ..., N-1 Each frame number where component described in animation after the importing being calculated after each value.
In the present embodiment, optionally, detection module includes:
Detection unit, for detect import after animation in component put in order whether with component in the animation before importing Put in order it is identical, if identical, it is determined that non-generation part is abnormal;If it is different, then determining that generation part is abnormal.
In the present embodiment, optionally, which further includes:
Playing module, for played in the Ventuz systems reconfigure after obtained animation.
Above-mentioned apparatus provided in this embodiment can execute the method provided in any of the above-described embodiment of the method, detailed process See the description in embodiment of the method, does not repeat herein.
Above-mentioned apparatus provided in this embodiment imports the animation that one includes multiple components in Ventuz systems;Detection Whether generation part is abnormal in animation after importing;When determining generation part exception, to each in the multiple component Component, the frame where extracting the component in the animation after the importing form the frame sequence of the component;It is each by what is obtained The frame sequence of a component reconfigures to obtain the animation so that component can be arranged correctly in the animation after reconfiguring, and be protected Demonstrate,proved import after animation can normal play, improve Ventuz system introducing animations display effect.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of processing method importing animation unit exception, which is characterized in that the method includes:
The animation that one includes multiple components is imported in Ventuz systems;
Whether generation part is abnormal in animation after detection importing;
When determining generation part exception, to each component in the multiple component, following arithmetic sequence formula meter is used The frame number where component described in the animation after the importing is calculated, the frame number pair is extracted in the animation after the importing Each frame answered forms the frame sequence of the component:
Y=A+B*X;
Wherein, X is the frame number in the animation before the importing, and the X=0,1,2,3 ..., N-1, the N are the importing The totalframes of preceding animation, A are the frame number occurred for the first time in animation of the component after the importing, and B is the importing The step value that component repeats in each frame described in animation afterwards, Y are that the X takes 0,1,2,3 ..., are counted after each values of N-1 Each frame number where component described in animation after the obtained importing;
The frame sequence of each obtained component is reconfigured to obtain the animation.
2. according to the method described in claim 1, it is characterized in that, the frame sequence by each obtained component group again Conjunction obtains the animation, including:
The frame sequence of each obtained component is subjected to weight according to putting in order for multiple components described in animation before importing Combination nova obtains the animation.
3. according to the method described in claim 1, it is characterized in that, whether generation part is different in the animation detected after importing Often, including:
Detection import after animation in component put in order whether in the animation before importing component put in order it is identical, such as Fruit is identical, it is determined that non-generation part is abnormal;If it is different, then determining that generation part is abnormal.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
The animation obtained after being reconfigured described in being played in the Ventuz systems.
5. a kind of processing unit importing animation unit exception, which is characterized in that described device includes:
Import modul, the animation for by one including multiple components import in Ventuz systems;
Detection module, for detecting the animation after importing, whether generation part is abnormal;
Acquisition module, for when determining generation part exception, to each component in the multiple component, using such as inferior Difference sequence formula calculates the frame number where component described in the animation after the importing, is extracted in the animation after the importing Go out the frame sequence that the corresponding each frame of the frame number forms the component:
Y=A+B*X;
Wherein, X is the frame number in the animation before the importing, and the X=0,1,2,3 ..., N-1, the N are the importing The totalframes of preceding animation, A are the frame number occurred for the first time in animation of the component after the importing, and B is the importing The step value that component repeats in each frame described in animation afterwards, Y are that the X takes 0,1,2,3 ..., are counted after each values of N-1 Each frame number where component described in animation after the obtained importing;
Composite module obtains the animation for reconfiguring the frame sequence of each obtained component.
6. device according to claim 5, which is characterized in that the composite module is used for:
The frame sequence of each obtained component is subjected to weight according to putting in order for multiple components described in animation before importing Combination nova obtains the animation.
7. device according to claim 5, which is characterized in that the detection module includes:
Detection unit, for detect import after animation in component put in order whether the row with component in the animation before importing Row sequence is identical, if identical, it is determined that non-generation part is abnormal;If it is different, then determining that generation part is abnormal.
8. device according to claim 5, which is characterized in that described device further includes:
Playing module, the animation for being obtained after being reconfigured described in the broadcasting in the Ventuz systems.
CN201510622224.0A 2015-09-25 2015-09-25 Import the treating method and apparatus of animation unit exception Expired - Fee Related CN105279779B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510622224.0A CN105279779B (en) 2015-09-25 2015-09-25 Import the treating method and apparatus of animation unit exception

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510622224.0A CN105279779B (en) 2015-09-25 2015-09-25 Import the treating method and apparatus of animation unit exception

Publications (2)

Publication Number Publication Date
CN105279779A CN105279779A (en) 2016-01-27
CN105279779B true CN105279779B (en) 2018-10-26

Family

ID=55148730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510622224.0A Expired - Fee Related CN105279779B (en) 2015-09-25 2015-09-25 Import the treating method and apparatus of animation unit exception

Country Status (1)

Country Link
CN (1) CN105279779B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103824003A (en) * 2013-10-31 2014-05-28 小米科技有限责任公司 Application program protecting method, device and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7812826B2 (en) * 2005-12-30 2010-10-12 Apple Inc. Portable electronic device with multi-touch input

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103824003A (en) * 2013-10-31 2014-05-28 小米科技有限责任公司 Application program protecting method, device and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
3ds Max模型与动画导入Virtools时遇到的问题以及解决方法;刘婧婧;《现代电影技术》;20101231;第35-41页 *

Also Published As

Publication number Publication date
CN105279779A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
JP5465620B2 (en) Video output apparatus, program and method for determining additional information area to be superimposed on video content
CN109120984A (en) Barrage display methods, device, terminal and server
CN104967903A (en) Video play detection method and device
JP6499324B2 (en) Method, client and computer storage medium for playing video
JP2011078098A (en) System and method for providing media content enhancement
CN110971847B (en) Screen display content superposition method and device, electronic equipment and storage medium
CN109286835A (en) Direct broadcasting room interactive element display methods, storage medium, equipment and system
CN105491396A (en) Multimedia information processing method and server
CN112954459A (en) Video data processing method and device
CN106909544A (en) A kind of data processing method and device
CN105279779B (en) Import the treating method and apparatus of animation unit exception
CN106604047A (en) Multi-video-stream video direct broadcasting method and device
CN107360467A (en) The method and device that transition plays between a kind of video
CN104244065B (en) A kind of method and device of captions processing
CN111667313A (en) Advertisement display method and device, client device and storage medium
CN106791920A (en) A kind of video data handling procedure and its equipment
CN102984601B (en) Camera video summarization generation system
CN105979336A (en) Startup advertisement processing method and device
CN104699374B (en) A kind of control method and electronic equipment
JP5266035B2 (en) Sign language video display device, sign language video display method, and program
CN104780463A (en) Display method and device of program menu
CN113938752A (en) Processing method and device
CN103716676B (en) The video program play method and device of intelligent television
CN104184988B (en) A kind of video data monitoring method and system
CN109640170B (en) Speed processing method of self-shooting video, terminal and 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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method and device for handling abnormal import animation parts

Effective date of registration: 20210104

Granted publication date: 20181026

Pledgee: Inner Mongolia Huipu Energy Co.,Ltd.

Pledgor: Tvmining (BEIJING) Technology Co., Ltd.

Registration number: Y2020990001518

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: 20181026

Termination date: 20210925