The invention discloses a video anti-shake method and
system based on multi-scale fusion and
adaptive smoothing, relates to the technical field of
video image processing, and aims to effectively solve the
image quality problem caused by shake in a video shooting process. Gradient histograms and
wavelet energy distribution characteristics of video frames are extracted through graying and normalization
processing, and the gradient histograms and the
wavelet energy distribution characteristics are input into a
jitter type recognition network to recognize translation, rotation and Z-axis
jitter probabilities. And further extracting motion,
frequency domain and edge features, and generating multi-
modal coupling features through combination of a
dynamic feature interaction network and a dot product attention mechanism. And constructing a motion trajectory by using the features, optimizing the trajectory by using a texture
perception double-layer
smoothing strategy, introducing an adaptive penalty term into a
dynamic planning cost function, and outputting a smooth motion compensation parameter. And finally,
processing the
boundary region through motion compensation and image extrapolation to generate an anti-shake video frame. Through multi-scale
feature fusion and a self-
adaptive smoothing strategy, the video anti-shake effect is effectively improved, and the method is suitable for complex scenes.