This script automatically rotates DJI drone images so that North is at the top, based on the Gimbal Yaw Degree stored in the image metadata.
- Extracts Gimbal Yaw Degree (the camera's direction when the photo was taken).
- Computes the correct rotation using the formula:
Rotation Angle = 180 - Gimbal Yaw Degree
- Rotates the image accordingly so that North is correctly up.
⠀Requirements