Patent ID: 11968449
Assignee: ARASHI VISION INC.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC G  H | IPC G  H

Claim 12:
13. A portable terminal, comprising:
one or more processors;
a memory; and
one or more computer programs, stored in the memory and configured to be executed by the one or more processors, when the processor executes the computer program, the processor perform:
obtaining a current video frame of a camera video and gyroscope information of the current video frame, and calculating a first rotation matrix of a current pose of the camera;
conducting smoothing on the first rotation matrix, and calculating a third rotation matrix;
conducting viewpoint decomposition on the current video frame according to the third rotation matrix, and calculating a fourth rotation matrix;
conducting 3D rotation on the current video frame according to the fourth rotation matrix, and rebuilding an anti-shake video;
wherein the conducting smoothing on the first rotation matrix, and calculating a third rotation matrix specifically comprises:
conducting first smoothing on the first rotation matrix to obtain a second rotation matrix; and
calculating the third rotation matrix of the camera by limiting smoothing maximum amplitude value;
wherein a method of conducting first smoothing on the first rotation matrix to obtain the second rotation matrix specifically comprises: conducting first smoothing on a quaternion of the first rotation matrix with constrained least squares by employing N+1 windows, and calculating the second rotation matrix.