Provided in the present invention is a video stabilization method that deeply integrates
optical flow and IMU data. The method comprises: acquiring and preprocessing data, computing
optical flow, computing historical data of an original
pose and a stable
pose, predicting a stable camera
pose, implementing video stabilization, and training a
deep learning model, wherein computing the
optical flow involves mixing the optical flow and translation of a camera between adjacent frames as parameters of a
translational motion of the camera and inputting the parameters into a
deep learning network; computing the historical data of the original pose and the stable pose and predicting the stable camera pose involve using an LSTM network to
train and predict stabilization
quaternion; and implementing video stabilization involves dividing a video frame into rectangular grids, transforming vertices of the grids by means of the
quaternion output by the
deep learning network, obtaining each pixel value in the video frame by means of performing quadratic interpolation on four vertices of the grid where the pixel value is located, and
processing each pixel value to obtain a stabilized video frame. The method of the present invention can adapt to complex motion scenarios and provide a highly stable
video output.