The invention discloses an adaptive optical anti-shake control method for a
camera module. The adaptive optical anti-shake control method comprises the following steps: S1, collecting real-time vibration data of the
camera module in a working process; s2, preprocessing the real-time vibration data to obtain
pose change information; s3, constructing a global search model, and defining an anti-shake compensation parameter search space; s4, performing multiple rounds of
global iteration by using an improved seagull optimization
algorithm, and determining a candidate parameter solution and a candidate region; s5, performing local sampling and iterative tuning by adopting a
Bayesian optimization algorithm to obtain an optimal anti-shake compensation parameter; s6, the optimal anti-shake compensation parameters are issued to a
camera module control unit, and an optical anti-shake
assembly is driven to adjust the position or angle of a lens group; and S7, carrying out quality evaluation on the compensated image, and triggering whether to carry out global search or local optimization again or not. According to the invention, by constructing an
adaptive optimization control mechanism, high-precision and low-
delay real-time optical anti-shake compensation of the camera module in a dynamic environment is realized.