Learn Before
Concept

Rotating Images

Image rotations are also very useful to help display images in a more helpful manner. i.e. if a photo is taken vertically but would display the key information more clearly in a landscape position, rotations can be helpful for that.

img = cv2.rotate(img, cv2.cv2.ROTATE_90_COUNTERCLOCKWISE)

There are many different options as to how you would want the image to rotate and thus can be used as seen necessary. Additionally, the .rotate() method can be used multiple times to achieve the desired result.

0

1

Updated 2021-06-11

Tags

Python Programming Language

Data Science