Patent ID: 8441485

Claim:
An apparatus for generating a video animation, comprising: a receiving unit, configured to receive a command sent by a user; a determining unit, configured to determine an action corresponding to the command according to the command, and determine the total number of frames corresponding to the action and a motion coefficient of each frame; a calculating unit, configured to calculate an offset of each control point in each frame according the motion coefficient of each frame; and a generating unit, configured to generate a video animation according to the offset of each control point in each frame and the total number of frames; wherein the action is a facial action, the control point is based on the contour of facial apparatuses, and the facial apparatus comprises at least one of eyes, eyebrows, mouth, and head; wherein the generating unit comprises, a coordinate calculating module, configured to calculate a target coordinate of each control point in each frame according to the offset of each control point in each frame, wherein the offset of the control point comprises an offset at a horizontal direction and an offset at a vertical direction, and the target coordinate of each control point is a target coordinate at a horizontal direction=a coordinate of a datum point at the horizontal direction+the offset at the horizontal direction, a target coordinate at a vertical direction=a coordinate of the datum point at the vertical direction+the offset at the vertical direction, when the action is an action of eyes, eyebrows, nodding head, shaking head or mouth, the datum point is the control point, when the action is an action of tilting head left and right, the datum point is a crossing point between an axis line of the head and a lower outline of the head, a video generating module, configured to generate the video animation according to the target coordinate of each control point in each frame and the total number of frames, wherein the action is the action of eyes or eyebrows, the calculating unit comprises, an eye part calculating module, configured to calculate an offset of eyes or eyebrows, wherein the offset at the horizontal direction=(A_x−Src_x)×m_eyeCoef, and the offset at the vertical direction=(A_y−Src_y)×m_eyeCoef, wherein (Src_x, Src_y) is an original coordinate of the control point, the original coordinate of the control point is a coordinate of the control point in an original picture obtained before the video animation is generated, wherein (A_x, A_y) is a coordinate of a crossing point between a plumb line and a datum line when the plumb line is drawn from the original coordinate of the control point to the datum line, when the action is the action of eyes, the datum line is a canthi link, and when the action is the action of eyebrows, the datum line is an axis line of the head; and wherein m_eyeCoef is the motion coefficient.