The invention relates to the technical field of image and video anti-shake, and discloses a
hybrid anti-shake method and
system combining optical anti-shake and electronic anti-shake. The
hybrid anti-shake method is applied to a
hybrid anti-shake unit, and specifically comprises the following steps: S11, acquiring
original data of angular velocities and linear accelerations of a terminal device in three axial directions acquired by a multi-axis IMU, and acquiring actual displacement vectors of a
position sensor and an
image sensor in the terminal device during optical anti-shake execution; and establishing a uniform
timestamp to carry out precision synchronous alignment on the data of the multi-axis IMU, the optical anti-shake
position sensor and the
image sensor, and generating a motion track
estimation feature. According to the method, the actual displacement feedback of the optical anti-shake
position sensor is used as an independent sensing source, hardware-level high-precision synchronous fusion is carried out on the independent sensing source, the multi-axis IMU and the image data to construct the motion model, intentional motion and non-intentional shake are accurately distinguished from the source, and the problems of rough
motion sensing and weak cooperative basis are solved.