This application belongs to the field of
data processing technology and provides a
gimbal correction method, device, electronic device, storage medium, and program product. The embodiments of this application acquire an image
data stream including multiple consecutive frames of first image data. Based on a preset mapping table,
feature point matching is performed on the image
data stream to determine matching feature points, the target image data where the matching feature points are located, and the matching
gimbal information. Based on the matching
gimbal information of the matching feature points, the gimbal information deviation is determined. When the gimbal information deviation is greater than or equal to a first preset threshold, a differential
step number is determined. Based on the differential
step number, angle compensation is performed on the motor so that when the motor drives the gimbal to move, the gimbal reaches the target position.
Feature point matching can be performed on multiple consecutive frames of image
data stream in real time, and automatic compensation of the motor can be performed in real
time based on the matching feature points, realizing automated gimbal correction
processing during equipment patrol operations, applicable to various dynamic scenarios.