CN108845849A - Animation processing method, device, computer equipment and storage medium - Google Patents
Animation processing method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN108845849A CN108845849A CN201810426876.0A CN201810426876A CN108845849A CN 108845849 A CN108845849 A CN 108845849A CN 201810426876 A CN201810426876 A CN 201810426876A CN 108845849 A CN108845849 A CN 108845849A
- Authority
- CN
- China
- Prior art keywords
- animation
- user
- event
- generated
- user information
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000000034 method Methods 0.000 claims abstract description 21
- 238000004590 computer program Methods 0.000 claims description 33
- 230000009471 action Effects 0.000 claims description 28
- 239000013589 supplement Substances 0.000 claims description 24
- 238000004364 calculation method Methods 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000011897 real-time detection Methods 0.000 description 5
- 230000015572 biosynthetic process Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 2
- 239000010931 gold Substances 0.000 description 2
- 229910052737 gold Inorganic materials 0.000 description 2
- 239000003550 marker Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 206010054949 Metaplasia Diseases 0.000 description 1
- 238000005284 basis set Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000015689 metaplastic ossification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000000047 product Substances 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001502 supplementing effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
Abstract
This application involves a kind of animation processing method, device, computer equipment and storage mediums.The method includes:Detect whether the event that there is triggering animation;When there is the event of triggering animation, then the event type of the event is obtained;Obtain the user information of the account of current login application program;Animation is generated according to the event type and the user information;Show animation generated.Animation is generated according to the user information of the account of current login application program and event type using this method, so that animation is related to the personal information of user, so that the pattern multiplicity of the animation, improves the intelligence of shown animation.
Description
Technical field
This application involves field of computer technology, more particularly to a kind of animation processing method, device, computer equipment and
Storage medium.
Background technique
With the development of human-computer interaction technology, in order to increase interest, research staff would generally add in the application
Animation effect.Such as in wechat, when printed words of the user in wechat chat interface input " happy birthday ", then it can go out on screen
The animation of existing cupcake pattern, so as to improve interest.
However, the processing mode of current animation is usually the content for obtaining service customer end and sending, deposited when in the content
In object content, then the animation corresponding with object content pre-set is shown, be merely able to show in the program
Pre-set animation causes animation style single, not smart enoughization.
Summary of the invention
Based on this, it is necessary to which in view of the above technical problems, providing one kind can be according to user information and event type intelligence
Metaplasia produces and shows the animation processing method of animation, device, computer equipment and storage medium.
A kind of animation processing method, the method includes:
Detect whether the event that there is triggering animation;
When there is the event of triggering animation, then the event type of the event is obtained;
Obtain the user information of the account of current login application program;
Animation is generated according to the event type and the user information;
Show animation generated.
The user information includes the account name of the account for logging in the application program in one of the embodiments,
Title, the current interface image of the application program, the current head portrait of the account of the login application program, login are described using journey
At least one of binding account of the account of sequence.
It is described in one of the embodiments, that animation is generated according to the event type and the user information, including:
When the event type is time trigger type, then current time is obtained;
Animation is generated according to the current time and the user information;
The display animation generated, including:
When the application program launching, then animation generated is shown.
It is described in one of the embodiments, to be generated and the user according to the event type and the user information
Corresponding animation, including:
When the event type is operation triggering type, then action name is obtained;
Animation is generated according to the action name and the user information.
It is described in one of the embodiments, to be generated and the user according to the action name and the user information
Corresponding animation, including:
When the action name is related to value, then the corresponding current value information of the user and user etc. are obtained
Grade;
Supplement value is calculated according to the current value information and user gradation;
Animation is generated according to supplement value and the user information.
In one of the embodiments, the method also includes:
Audio corresponding with the event type is obtained, and calculates the duration of the audio;
It is described animation is generated according to the event type and the user information after, further include:
According to the quantity of animation described in the duration calculation;
The display animation generated, including:
The audio is played, and animation generated is shown according to the quantity for the animation being calculated.
The display animation generated in one of the embodiments, including:
Obtain the coordinate of the dialog box in current display interface;
When the animation reaches at the corresponding position of the coordinate, then the animation is set to transparent;
When the animation removes at the corresponding position of the coordinate, then the animation is set to opaque.
A kind of video processing apparatus, described device include:
Detection module, for detecting whether there is the event of triggering animation;
Event type obtains module, for when there is the event of triggering animation, then obtaining the event type of the event;
User profile acquisition module, the user information of the account for obtaining current login application program;
Animation producing module, for generating animation according to the event type and the user information;
Animation display module, for showing animation generated.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
The step of device realizes any of the above-described the method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step of method described in any of the above embodiments is realized when row.
Above-mentioned animation processing method, device, computer equipment and storage medium, according to the account of current login application program
User information and event type generate animation so that animation is related to the personal information of user, thus the animation
Pattern multiplicity, improve the intelligence of shown animation.
Detailed description of the invention
Fig. 1 is the application scenario diagram of animation processing method in one embodiment;
Fig. 2 is the flow diagram of animation processing method in one embodiment;
Fig. 3 is the surface chart of the animation display interface in one embodiment;
Fig. 4 is the structural block diagram of video processing apparatus in one embodiment;
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Animation processing method provided by the present application can be applied in application environment as shown in Figure 1.Wherein, terminal with
Server is communicated by network, and application program is equipped in terminal.Terminal can be with real-time detection with the presence or absence of triggering animation
Event, if it is present obtaining the event type of the event, and in order to improve the intelligence of animation generated, Ke Yicong
It is stored with the user information that the account of current login application program is obtained in the server of a large number of users information, so as to basis
The user information of event type and login application program generates corresponding animation, and the animation of the generation includes text, picture or sound
Sound etc..When event type is operation triggering type, then the animation of the generation is directly displayed;When event type is time trigger class
When type, then the animation of the generation can be shown after application program launching.Optionally, in order to improve the formation efficiency of animation, eventually
It end can be from the user information of the local account for getting current login application program, without getting the use from server
Family information can reduce interaction in this way, to improve the formation efficiency of animation.Wherein, terminal can be, but not limited to be various
People's computer, laptop, smart phone, tablet computer and portable wearable device.Server can use independent clothes
The server cluster of business device either multiple servers composition is realized.
In one embodiment, as shown in Fig. 2, providing a kind of animation processing method, it is applied in Fig. 1 in this way
It is illustrated, includes the following steps for terminal:
S202:Detect whether the event that there is triggering animation.
Specifically, terminal can be with real-time detection with the presence or absence of the event of triggering animation, such as can be with the real-time detection date
No arrival or real-time detection whether there is predetermined registration operation.The mode that wherein whether the detection date reaches can detecte system
Whether the time reaches preset time, which may include festivals or holidays or user's relevant technical dates, wherein festivals or holidays
It may include Christmas Day, the Spring Festival, New Year's Day, user may include that user's birthday, user use application program relevant technical dates
Time etc.;Real-time detection then can be with the presence or absence of predetermined registration operation and carry out in application program research and development to specific functional module
It buries a little, to can a little get the action event by burying when user starts the operation.
S204:When there is the event of triggering animation, then the event type of event is obtained.
Specifically, after terminal detects the event for triggering animation, it can first judge the event type of the event, wherein the thing
The event type of part can be distinguished by way of marker or label, i.e., when terminal detects the event of animation, then
The type of event is got according to the marker, such as 1 indicates that event type is time trigger type, 0 identified time type is
Operation triggering type etc..Wherein the type of event may include time trigger type or operation triggering type, and wherein event triggers
Type is the event triggered according to preset time, such as festivals or holidays (such as saved as Christmas Day, the Spring Festival, New Year's Day etc. false
Day when) or user's birthday etc., terminal can get system time in real time, by the system time and preset holiday time or
User's birthday got etc. compares, if identical, will continue to generate corresponding animation.It is then for operation triggering type
According to the different operation of user animation generated, for example, when the user clicks obtain supplement value when, can be according to user
Clicking operation generate corresponding value and supplement animation,, can when the user clicks when archive operations in order to be interacted with user's formation
To generate corresponding archive animation according to the clicking operation of user, interacted in order to be formed with user, so as to improve animation
Intelligence.
S206:Obtain the user information of the account of current login application program.
Specifically, after detecting animation trigger event, event type and login application program can be got simultaneously
Account information.Wherein the user information may include that the user's name of the account of login application program, application program work as prezone
The current head portrait of the user of face image, login application program, the user of login application program binding account (such as QQ account,
At least one of wechat account, MSN account, Alipay account, Taobao are in account etc.).
Wherein, in order to enable accessed user information is more perfect, terminal can be communicated with server, thus from
The corresponding user information of account of current login application program is got in server, such as terminal can send to server and use
Family information acquisition request, the user information acquisition request carry account identification, such as name on account etc., and server receives this
After user information acquisition request, corresponding user information can be inquired according to account identification, and user information is back to terminal,
Wherein communication of the server with terminal can be using the form of encryption, to prevent criminal from getting user information.
In addition, in order to improve the efficiency of animation producing, terminal can be got and current login application program from local
The corresponding user information of account, such terminal do not need to interact with server, reduce interaction time, so as to reduce
The generation time of animation, improve the formation efficiency of animation.
S208:Animation corresponding to the user is generated according to event type and user information.
Specifically, terminal animation generated is generated according to event type and user information, so that being generated
Animation be relevant to the user of user, therefore animation can be made more to meet the habit of active user.
Wherein terminal can get the base model of animation according to event type first, then be obtained according to user information
To the filling type of animation, according to the base model of animation and filling type to generate corresponding animation.Wherein fill type
Can be related with the current interface image of the application program in user information, such as available current interface image, and obtain
The RGB information (red (Red), green (Green), blue (Blue) three primary colors) of each pixel, terminal statistics in current interface image
The number of the pixel of identical RGB information, and obtain the largest number of RGB informations, using the corresponding color of the RGB information as
Fill Color.The base model of animation includes multiple filling regions, and terminal can obtain multiple fill areas according to the pattern of animation
Domain, such as when base model is symmetrical image, then set identical for the filling type that symmetrical closed area is made, if base
When this pattern is asymmetric image, then each closed area is got as a filling type.
Optionally, there are a variety of RGB informations in current interface image, statistics obtains the corresponding pixel of each RGB information
Number, such as the quantity of pixel of corresponding first RGB information is the first quantity, the quantity of the pixel of the second RGB information
For the second quantity, the quantity of the pixel of third RGB information is third quantity, it is assumed that the first quantity is greater than the second quantity, and second
Quantity is greater than third quantity.It is wherein divided into three filling regions in the base model of animation, and gets each filling
The area in region passes through second by the corresponding maximum filling region of color filling area of the corresponding RGB information of the first quantity
The corresponding color filling size of the corresponding RGB information of quantity is intermediate filling region, passes through the corresponding RGB of third quantity
The corresponding the smallest filling region of color filling area of information.
S210:Show animation generated.
Specifically, when application program launching, then animation generated is shown, such as when animation trigger event is time touching
When sending out type, then application program can be opened after such time in user, then show animation generated.When animation triggers thing
When part is operation triggering, since user operates application program, then it represents that the application program has been started up, to work as
When detecting the operation of user, then animation generated can be directly displayed.
Above-mentioned animation processing method, according to the user information of the account of current login application program and event type next life
At animation, so that animation is related to the personal information of user, so that the pattern multiplicity of the animation, improves shown move
The intelligence of picture.
Event type includes time trigger type and operation triggering type in one of the embodiments,.To wherein
In one embodiment, animation is generated according to event type and user information, may include:When event type is time trigger class
When type, then current time is obtained;Animation is generated according to current time and user information.
Specifically, terminal is first it is detected that animation trigger event, judges whether system time is when presetting for example, passing through
Between, for example whether being user's birthday, whether being important festivals or holidays etc..Then the event type of the animation trigger event is got,
When the event type is time trigger type, as festivals or holidays or user's birthday and the spies such as event using application program
When different event, then the user information and present system time of user are got, according to the user information of user and current system
The system time generates corresponding animation.To show that animation generated includes then showing generated when application program launching
Animation.
Wherein preset time, which can be, is configured according to the area where user, such as terminal is available arrives terminal
Current geographical location information, wherein geographical location information can be the either basis determined according to the GPS information of terminal
What WIFI hot spot was positioned, such as when terminal is opened GPS and positioned, then it is directly obtained the location information of GPS,
Regional information of the current geographical location information of terminal as the area where user is got according to the location information of the GPS,
When terminal, which is not switched on GPS, to be positioned, then the mark of the available WIFI hot spot current connected to terminal, such as MAC
The mark of the WIFI hot spot is sent backstage location-server by address etc., and location-server gets the mark of the WIFI hot spot
Know, and the location information of the WIFI hot spot prestored in Query Location server, the location information of the WIFI hot spot is returned into end
End, thus the available regional information to current geographical location information as the area where user of terminal.Such as basis
Location judges that user was solar calendar birthday or lunar calendar birthday, so as to accurately generate and show on the day of user's birthday
Show animation.Or terminal can also judge the important festivals of user according to the area where user, such as when in China, then in
The time in the special red-letter day such as state is preset time, and in other countries, then being preset according to the custom time in red-letter day of other countries should
Preset time.Or when can be preset according to the language in area and application program used by a user where user to preset this
Between, for example, when user location be China, and use be English edition application program, then the preset time is still basis
Set by English-speaking country etc..
Wherein the user information of user may include the wechat account of the interface image of current application program, login application program
Number, the associated account numbers such as QQ account, wherein the interface image of current application program can directly be read from application program.User's
Head portrait can be got by associated account numbers such as the wechat account of login application program, QQ accounts, so as to according to surface chart
Image and accessed head portrait as in etc. generate animation, so that animation is related to user, are more bonded user's
Habit.It is generated in one of the embodiments, according to user information and the current time corresponding with the user dynamic
The step of picture is can be moved according to what the interface image of the application program of user and acquired head portrait and current time generated
Draw, for example, currently be user's birthday when, can be set birthday cake color be interface image color, the shape of birthday cake
For the shape etc. of user's head portrait, and can be equipped with corresponding birthday song etc., so that animation is more intelligent.
Wherein since according to the event of time trigger type, it does not need starting application program and can pre-generate animation,
So if not opening application program in preset time user, then animation can be pre-generated, and in user starts application journey
When sequence, the animation is shown.It, can be directly aobvious after generating animation and if having been switched on application program in preset time user
Show animation generated, or in application program launching next time, then shows animation produced.
In another embodiment, animation corresponding to the user is generated according to event type and user information, it can be with
Including:When event type is operation triggering type, then action name is obtained;It is generated according to action name and user information dynamic
It draws.
Specifically, terminal is first it is detected that animation trigger event, such as preset thing can be detected by way of burying a little
Whether part is triggered, such as checks value, archive, value -capture, the operation such as check earned value, then gets animation touching
The event type of hair event then can type according to the operation and user when the event type is operation triggering type
User information generate corresponding animation.
Wherein the user information of accessed user may include the interface image of current application program, log in using journey
The associated account numbers such as the wechat account of sequence, QQ account, wherein the skin of current application program can directly be read from application program,
By the available head portrait to user of the associated account numbers such as the wechat account of login application program, QQ account, so as to basis
Image and accessed head portrait in skin etc. generate animation, so that animation is related to user, are more bonded user
Habit, improve the intelligence of animation.It is generated in one of the embodiments, according to user information and the form of the animation
The step of animation corresponding with the user is can be according to the interface image and acquired head of the application program of user
The animation that the form of picture and animation generates, such as and according to the form of the name acquiring of action event to animation, such as work as operation
When event is entitled related to value, the available base model to animation is to fall gold coin, then can be according to acquired head
Picture and interface image generate corresponding filling type, such as wing etc. are filled outside base model gold coin, and can be furnished with phase
The sound answered improves the intelligence of animation.
In above-described embodiment, according to the difference of animation trigger event, the type of the event is got, and according to the class of event
Type and the user information of user generate corresponding animation, so that animation is consistent with user and corresponding event, mention
The high intelligence of animation.
Animation corresponding to the user is generated according to action name and user information in one of the embodiments, it can be with
Including:When action name is related to value, then the corresponding current value information of user and user gradation are obtained;According to current
Supplement value is calculated in value information and user gradation;Animation is generated according to supplement value and user information.
Specifically, when action name is related to value, the available value information current to user of terminal, wherein wrapping
Axiological idea and the value time limit for including user provide correspondence according to the grade of user, axiological idea and value time limit for user
Supplement value, and reminded by way of animation.Such as user wherein axiological idea be regular 1 month value also
It expires within 2 days, and there are also the value that a certain number of axiological ideas are current, then terminal judges user most according to the grade of user
Big obtainable supplement value, such as the maximum supplement value that can get is A, the supplement valence that terminal is then released according to this activity
Axiological idea that Value Types, user hold and the value time limit etc. are calculated closest to the maximum supplement value for supplementing value A,
I.e. the supplement value according to obtained by the maximum provides corresponding supplement value for user, and reminds user by animation.
In above-described embodiment, according to supplement axiological idea and use given by user's current value type, this activity
The value date for the value that family is held calculates the optimum combination mode of supplement value, and user is prompted by way of animation,
On the one hand the attention rate of user can be improved, optimal supplement value is on the other hand provided for user.
Animation processing method can also include in one of the embodiments,:Audio corresponding with event type is obtained, and
Calculate the duration of audio.After generating animation corresponding to the user according to event type and user information, it can also wrap
It includes:According to the quantity of duration calculation animation.Show animation generated, including:Audio is played, and dynamic according to what is be calculated
The quantity of picture shows animation generated.
Specifically, terminal can also play corresponding music while showing animation, such as when animation trigger event
When for time trigger type, available multimedia messages corresponding with the time, such as audio-frequency information, when preset time is user
When the birthday, then corresponding birthday song is obtained, when preset time is corresponding festivals or holidays, then gets corresponding festivals or holidays song
Song, and the duration of the audio is got, it is obtained first so as to the quantity of the animation according to required for duration calculation, such as terminal
The duration of audio is got, and obtains the preset movement speed of animation, it is dynamic needed for being obtained according to the duration and the movement speed
The quantity of picture, for example, animation be it is per second fall 10, i.e. movement speed is 10/second, and when audio is 30 seconds a length of, then required for it is dynamic
The quantity of picture is 10*30=300.It is the surface chart of the animation display interface in one embodiment referring to Fig. 3, Fig. 3, wherein when
Animation is then moved to another direction of screen above screen or when other directions of screen are shifted out, and in the shifting of animation
During dynamic, also playing has corresponding audio, such as the birthday song shows the animation, is to allow picture in this way
With animation to coordination.In another embodiment, when animation trigger event be operation triggering type when, then it is available to
The corresponding audio of the operation, and the quantity of the animation according to required for the duration calculation of the audio, concrete operations may refer to
Text, details are not described herein.
In above-described embodiment, by the quantity of the duration calculation animation of accessed audio, and the audio is being played
Corresponding animation is shown simultaneously, from not finishing playing also without animation and audio has finished playing or audio is broadcast
The case where single action picture does not finish playing is discharged into, ensure that the coordination of audio and animation.
Animation generated is shown in one of the embodiments, may include:Obtain the dialogue in current display interface
The coordinate of frame;When animation reaches at the corresponding position of coordinate, then animation is set to transparent;When animation removes the corresponding position of coordinate
When setting place, then animation is set to opaque.
Specifically, it may be blocked since there may be important display information in display interface with the movement of animation
The firmly important information the occurrence of in order to avoid this kind, when showing animation, is got in current interface first
The coordinate of dialog box, the acquisition of the coordinate of dialog box can be according to the activity component in system in current interface therein
In layout frame obtain, such as available to interface framework corresponding with current interface, (interface framework is in terminal for showing
The system module for showing and interacting, such as the Activity component in Android system.An application program in terminal can wrap
Include multiple interface frameworks.), then the corresponding layout frame of current interface in interface framework is got, it is corresponding right in layout frame to obtain
Frame is talked about, the coordinate of dialog box in current interface is obtained according to position of the dialog box in layout frame.When animation reaches the coordinate bit
When setting place, then it is set as see-through look, and when animation removes at position corresponding to coordinate, then it is still set as opaque.Example
Such as available current interface, and the position for showing dialog box is got from the current interface, when the animation reaches institute
It when stating at the position of display dialog box, is then shown in a transparent manner, when the animation removes the display dialog box
When at position, then the animation is shown in opaque mode, can prevent animation from sheltering from important content in this way.
Refering to Fig. 3, one of dialog box is avail information, when animation reaches the display area of the avail information, then
It is set as transparence, is otherwise opaque shape, can specifically be realized by way of preset function, i.e. the input of the function is
The location information of picture and the coordinate of dialog box, preset function by the corresponding coordinate of the location information for judging animation be whether with
The coordinate of dialog box is identical to judge whether animation reaches the position of dialog box, when animation reaches the position of the dialog box, then
Setting animation transparency is identified as transparent, so that explicit function can be directly obtained the relevant parameter of animation, and carries out
It has been shown that, when animation removes the position of the dialog box, then be arranged animation transparency be identified as it is opaque, so that explicit function can be with
It is directly obtained the relevant parameter of opaque animation, and is shown.Wherein the location information of animation can be goes out according to animation
Present the second time of the first time of display interface, the movement velocity of animation and animation in display interface is determined,
Wherein when animation appears in display interface for the first time, terminal gets system time at this time as first time, then obtains
Movement velocity to the movement velocity of animation, such as animation is 1 centimetre per second, then terminal is available makees to present system time
For the second time, calculate at the first time and the difference of the second time, by the product of the difference and movement velocity obtain moving away from
From, and edge coordinate when animation appears in the edge of display interface is got, according to the edge coordinate and move distance
The location information of animation is obtained, such as when animation is vertical decline, then the position of animation is the position apart from border movement distance
Set place.Optionally, it can also be obtained, such as available arrived and animation according to the layout frame in the activity component in system
Corresponding interface framework, and the corresponding layout frame of animation in interface framework is got, corresponding animation in layout frame is obtained, according to
Position of the animation in layout frame obtains the location information of animation.
In above-described embodiment, by obtaining the dialog box in current display interface, animation is shown, when animation reaches
It when showing at the position of dialog box, is then shown in a transparent manner, when at the position that animation removes display dialog box, then
Animation is shown in opaque mode, can prevent animation from sheltering from important content in this way.
It should be understood that although each step in the flow chart of Fig. 2 is successively shown according to the instruction of arrow, this
A little steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these steps
It executes there is no the limitation of stringent sequence, these steps can execute in other order.Moreover, at least part in Fig. 2
Step may include that perhaps these sub-steps of multiple stages or stage are executed in synchronization to multiple sub-steps
It completes, but can execute at different times, the execution sequence in these sub-steps or stage, which is also not necessarily, successively to be carried out,
But it can be executed in turn or alternately at least part of the sub-step or stage of other steps or other steps.
In one embodiment, as shown in figure 4, providing a kind of video processing apparatus, including:Detection module 100, event
Type acquisition module 200, User profile acquisition module 300, animation producing module 400 and animation display module 500, wherein:
Detection module 100, for detecting whether there is the event of triggering animation.
Event type obtains module 200, for when there is the event of triggering animation, then obtaining the event type of event.
User profile acquisition module 300, the user information of the account for obtaining current login application program.
Animation producing module 400, for generating animation according to event type and user information.
Animation display module 500, for showing animation generated.
User information may include the user's name of the account of login application program, application in one of the embodiments,
The binding account of the user of the current interface image of program, the current head portrait of the user of login application program, login application program
At least one of.
Animation producing module 400 may include in one of the embodiments,:
Time acquisition unit, for when event type is time trigger type, then obtaining current time.
First animation producing unit, for generating animation according to current time and user information;
Animation display module 500 is also used to when application program launching, then form animation generated.
Animation producing module 400 can also include in one of the embodiments,:
Action name acquiring unit, for when event type is operation triggering type, then obtaining action name.
Second animation producing unit, for generating animation according to action name and user information.
The second animation producing unit may include in one of the embodiments,:
Financing acquisition of information subelement, for when action name is related to value, then obtaining, user is corresponding to work as present value
Value information and user gradation.
Value calculation subelement is supplemented, for supplement value to be calculated according to current value information and user gradation.
Animation producing subelement, for generating animation according to supplement value and user information.
Device can also include in one of the embodiments,:
Duration calculation module for obtaining audio corresponding with event type, and calculates the duration of audio.
Animation quantity obtains module, for the quantity according to duration calculation animation.
Animation display module 500 is also used to play audio, and is generated according to the display of the quantity for the animation being calculated
Animation.
Animation display module 500 may include in one of the embodiments,:
Coordinate acquiring unit, for obtaining the coordinate of the dialog box in current display interface.
Transparency setting unit, for when animation reaches at the corresponding position of coordinate, being then set to animation transparent;When dynamic
When drawing at the corresponding position of removal coordinate, then animation is set to opaque.
Specific about video processing apparatus limits the restriction that may refer to above for animation processing method, herein not
It repeats again.Modules in above-mentioned video processing apparatus can be realized fully or partially through software, hardware and combinations thereof.On
Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form
In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure
Figure can be as shown in Figure 5.The computer equipment includes processor, the memory, network interface, display connected by system bus
Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited
Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey
Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with
Realize a kind of animation processing method.The display screen of the computer equipment can be liquid crystal display or electric ink display screen,
The input unit of the computer equipment can be the touch layer covered on display screen, be also possible to be arranged on computer equipment shell
Key, trace ball or Trackpad, can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with
Computer program, the processor realize following steps when executing computer program:Detect whether the event that there is triggering animation;When
When in the presence of the event for triggering animation, then the event type of event is obtained;Obtain user's letter of the account of current login application program
Breath;Animation is generated according to event type and user information;Show animation generated.
In one embodiment, it includes logging in apply journey that processor, which executes user information involved when computer program,
The user's name of the account of sequence, the current head portrait of the user of the current interface image of application program, login application program, login are answered
With at least one of the binding account of user of program.
In one embodiment, processor execute computer program when realized according to event type and user information
Animation corresponding to the user is generated, may include:When event type is time trigger type, then current time is obtained;According to
Current time and user information generate animation, and processor executes the display animation packet generated realized when computer program
It includes when application program launching, then shows animation generated.
In one embodiment, processor execute computer program when realized according to event type and user information
Animation corresponding to the user is generated, may include:When event type is operation triggering type, then action name is obtained;According to
Action name and user information generate animation.
In one embodiment, processor execute computer program when realized according to action name and user information
Animation corresponding to the user is generated, packet can include:When action name is related to value, then the corresponding current value of user is obtained
Information and user gradation;Supplement value is calculated according to current value information and user gradation;According to supplement value with
And user information generates animation.
In one embodiment, following steps are also realized when processor executes computer program:It obtains and event type pair
The audio answered, and calculate the duration of audio;Then processor execute computer program when realized according to event type and use
After family information generates animation corresponding to the user, can also include:According to the quantity of duration calculation animation;Then processor executes
The display realized when computer program animation generated may include:Audio is played, and according to the animation being calculated
Quantity show animation generated.
In one embodiment, processor executes the display animation generated realized when computer program, can wrap
It includes:Obtain the coordinate of the dialog box in current display interface;When animation reaches at the corresponding position of coordinate, then animation is set to
It is transparent;When animation removes at the corresponding position of coordinate, then animation is set to opaque.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program realizes following steps when being executed by processor:Detect whether the event that there is triggering animation;Animation is triggered when existing
When event, then the event type of event is obtained;Obtain the user information of the account of current login application program;According to event type
And user information generates animation;Show animation generated.
In one embodiment, involved user information includes logging in application when computer program is executed by processor
The user's name of the account of program, the current interface image of application program, the current head portrait of the user of login application program, login
At least one of binding account of the user of application program.
In one embodiment, that is realized when computer program is executed by processor believes according to event type and user
Breath generates animation corresponding to the user, may include:When event type is time trigger type, then current time is obtained;Root
Animation is generated according to current time and user information;The display realized when computer program is executed by processor is generated dynamic
It draws, including:When application program launching, then animation generated is shown.
In one embodiment, that is realized when computer program is executed by processor believes according to event type and user
Breath generates animation corresponding to the user, may include:When event type is operation triggering type, then action name is obtained;Root
Animation is generated according to action name and user information.
In one embodiment, that is realized when computer program is executed by processor believes according to action name and user
Breath generates animation corresponding to the user, and packet can include:When action name is related to value, then obtain that user is corresponding to work as present value
Value information and user gradation;Supplement value is calculated according to current value information and user gradation;It is worth according to supplement
And user information generates animation.
In one embodiment, following steps are also realized when computer program is executed by processor:Acquisition and event type
Corresponding audio, and calculate the duration of audio;Realized when then computer program is executed by processor according to event type with
And after user information generates animation corresponding to the user, can also include:According to the quantity of duration calculation animation;Then computer
The display realized when program is executed by processor animation generated may include:Audio is played, and according to being calculated
The quantity of animation show animation generated.
In one embodiment, the display realized when computer program is executed by processor animation generated, can be with
Including:Obtain the coordinate of the dialog box in current display interface;When animation reaches at the corresponding position of coordinate, then animation is set
It is transparent;When animation removes at the corresponding position of coordinate, then animation is set to opaque.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of animation processing method, the method includes:
Detect whether the event that there is triggering animation;
When there is the event of triggering animation, then the event type of the event is obtained;
Obtain the user information of the account of current login application program;
Animation is generated according to the event type and the user information;
Show animation generated.
2. the method according to claim 1, wherein the user information includes the login application program
The name on account of account, the application program current interface image, log in the application program account current head portrait,
Log at least one of the binding account of the account of the application program.
3. method according to claim 1 or 2, which is characterized in that described according to the event type and the user
Information generates animation, including:
When the event type is time trigger type, then current time is obtained;
Animation is generated according to the current time and the user information;
The display animation generated, including:
When the application program launching, then animation generated is shown.
4. according to the method described in claim 3, it is characterized in that, described according to the event type and the user information
Animation corresponding with the user is generated, including:
When the event type is operation triggering type, then action name is obtained;
Animation is generated according to the action name and the user information.
5. according to the method described in claim 4, it is characterized in that, described according to the action name and the user information
Animation corresponding with the user is generated, including:
When the action name is related to value, then the corresponding current value information of the user and user gradation are obtained;
Supplement value is calculated according to the current value information and user gradation;
Animation is generated according to supplement value and the user information.
6. the method according to claim 1, wherein the method also includes:
Audio corresponding with the event type is obtained, and calculates the duration of the audio;
It is described animation is generated according to the event type and the user information after, further include:
According to the quantity of animation described in the duration calculation;
The display animation generated, including:
The audio is played, and animation generated is shown according to the quantity for the animation being calculated.
7. the method according to claim 1, wherein display animation generated, including:
Obtain the coordinate of the dialog box in current display interface;
When the animation reaches at the corresponding position of the coordinate, then the animation is set to transparent;
When the animation removes at the corresponding position of the coordinate, then the animation is set to opaque.
8. a kind of video processing apparatus, which is characterized in that described device includes:
Detection module, for detecting whether there is the event of triggering animation;
Event type obtains module, for when there is the event of triggering animation, then obtaining the event type of the event;
User profile acquisition module, the user information of the account for obtaining current login application program;
Animation producing module, for generating animation according to the event type and the user information;
Animation display module, for showing animation generated.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810426876.0A CN108845849A (en) | 2018-05-07 | 2018-05-07 | Animation processing method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810426876.0A CN108845849A (en) | 2018-05-07 | 2018-05-07 | Animation processing method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108845849A true CN108845849A (en) | 2018-11-20 |
Family
ID=64212772
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810426876.0A Pending CN108845849A (en) | 2018-05-07 | 2018-05-07 | Animation processing method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108845849A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110175061A (en) * | 2019-05-20 | 2019-08-27 | 北京大米科技有限公司 | Exchange method, device and electronic equipment based on animation |
CN111309227A (en) * | 2020-02-03 | 2020-06-19 | 联想(北京)有限公司 | Animation production method and equipment and computer readable storage medium |
CN111324407A (en) * | 2020-01-23 | 2020-06-23 | 努比亚技术有限公司 | Animation display method, terminal and computer readable storage medium |
CN111625170A (en) * | 2020-06-15 | 2020-09-04 | 北京达佳互联信息技术有限公司 | Animation display method, electronic equipment and storage medium |
CN111813491A (en) * | 2020-08-19 | 2020-10-23 | 广州汽车集团股份有限公司 | Vehicle-mounted assistant anthropomorphic interaction method and device and automobile |
CN112395035A (en) * | 2020-11-30 | 2021-02-23 | 杭州安恒信息安全技术有限公司 | Animation playing method, device, equipment and medium based on 3D large screen |
CN112860357A (en) * | 2019-11-26 | 2021-05-28 | 上海哔哩哔哩科技有限公司 | Animation resource rendering method and device, computer equipment and storage medium |
CN114090167A (en) * | 2021-11-30 | 2022-02-25 | 东风汽车有限公司东风日产乘用车公司 | Festival color egg display method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201781557U (en) * | 2010-05-13 | 2011-03-30 | 康佳集团股份有限公司 | Video equipment |
CN103885944A (en) * | 2012-12-19 | 2014-06-25 | 上海爱相随信息科技有限公司 | Mobile internet client-side welcome guide system with seasonal characteristics |
CN106201161A (en) * | 2014-09-23 | 2016-12-07 | 北京三星通信技术研究有限公司 | The display packing of electronic equipment and system |
-
2018
- 2018-05-07 CN CN201810426876.0A patent/CN108845849A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201781557U (en) * | 2010-05-13 | 2011-03-30 | 康佳集团股份有限公司 | Video equipment |
CN103885944A (en) * | 2012-12-19 | 2014-06-25 | 上海爱相随信息科技有限公司 | Mobile internet client-side welcome guide system with seasonal characteristics |
CN106201161A (en) * | 2014-09-23 | 2016-12-07 | 北京三星通信技术研究有限公司 | The display packing of electronic equipment and system |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110175061A (en) * | 2019-05-20 | 2019-08-27 | 北京大米科技有限公司 | Exchange method, device and electronic equipment based on animation |
CN112860357A (en) * | 2019-11-26 | 2021-05-28 | 上海哔哩哔哩科技有限公司 | Animation resource rendering method and device, computer equipment and storage medium |
CN112860357B (en) * | 2019-11-26 | 2023-06-16 | 上海哔哩哔哩科技有限公司 | Animation resource rendering method and device, computer equipment and storage medium |
CN111324407A (en) * | 2020-01-23 | 2020-06-23 | 努比亚技术有限公司 | Animation display method, terminal and computer readable storage medium |
CN111309227A (en) * | 2020-02-03 | 2020-06-19 | 联想(北京)有限公司 | Animation production method and equipment and computer readable storage medium |
CN111625170A (en) * | 2020-06-15 | 2020-09-04 | 北京达佳互联信息技术有限公司 | Animation display method, electronic equipment and storage medium |
CN111813491A (en) * | 2020-08-19 | 2020-10-23 | 广州汽车集团股份有限公司 | Vehicle-mounted assistant anthropomorphic interaction method and device and automobile |
CN111813491B (en) * | 2020-08-19 | 2020-12-18 | 广州汽车集团股份有限公司 | Vehicle-mounted assistant anthropomorphic interaction method and device and automobile |
CN112395035A (en) * | 2020-11-30 | 2021-02-23 | 杭州安恒信息安全技术有限公司 | Animation playing method, device, equipment and medium based on 3D large screen |
CN112395035B (en) * | 2020-11-30 | 2023-05-26 | 杭州安恒信息安全技术有限公司 | Animation playing method, device, equipment and medium based on 3D large screen |
CN114090167A (en) * | 2021-11-30 | 2022-02-25 | 东风汽车有限公司东风日产乘用车公司 | Festival color egg display method, device, equipment and storage medium |
CN114090167B (en) * | 2021-11-30 | 2024-02-27 | 东风汽车有限公司东风日产乘用车公司 | Festival color egg display method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108845849A (en) | Animation processing method, device, computer equipment and storage medium | |
WO2020063319A1 (en) | Dynamic emoticon-generating method, computer-readable storage medium and computer device | |
CN110377851A (en) | Implementation method, device and the computer equipment of multistage linking combobox | |
WO2017202383A1 (en) | Animation generation method, terminal, and storage medium | |
CN108279964B (en) | Method and device for realizing covering layer rendering, intelligent equipment and storage medium | |
CN110456956A (en) | Screenshot method, device, computer equipment and storage medium | |
CN106802803A (en) | The method and apparatus of application data treatment | |
CN103902057B (en) | Webpage input method and device for mobile terminal device | |
CN108376094B (en) | Notification message display method and device, computer equipment and storage medium | |
CN109614601A (en) | Form processing method, device, equipment and readable medium based on web | |
CN107908336B (en) | Method for refreshing, device, storage medium and the terminal of list control | |
CN109144656A (en) | Method, apparatus, computer equipment and the storage medium of multielement layout | |
CN109144649A (en) | Display methods, device, terminal and the storage medium of icon | |
CN109600408A (en) | Resource sharing method, device, storage medium and computer equipment | |
CN109348299A (en) | Comment on answering method, device, equipment and storage medium | |
CN109634603B (en) | Method and device for making H5 page based on Canvas | |
CN110275665A (en) | A kind of operating method of touch panel, electronic equipment and storage medium | |
CN103164111A (en) | Electronic apparatus and operation method thereof | |
CN110475140A (en) | Barrage data processing method, device, computer readable storage medium and computer equipment | |
CN105988790B (en) | Information processing method, sending terminal and receiving terminal | |
CN110413922A (en) | Page info display methods, device, computer equipment and storage medium | |
CN111857718A (en) | List editing method, device, equipment and storage medium | |
CN107765966A (en) | Event triggering method, device, intelligent terminal and storage medium based on picture | |
CN111694493B (en) | Webpage screenshot method, computer equipment and readable storage medium | |
CN107179920A (en) | Network engine starts method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181120 |