Ask Your Question

Revision history [back]

How to automatically align an image using OpenCV in Python

I have dozens of images of this coin at various rotations (34, 120, 170 degrees). What would be the easiest and best way in Python to automatically straighten the images so they are "aligned" as shown in the image below?

image description