Learn Before
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
Tags
Python Programming Language
Data Science
Related
Loading in Assets in OpenCV
Displaying Images
Resizing Images
Rotating Images
Conceptual Breakdown of OpenCV Image Storage
Slicing / Copying Portions of the Image
Creating Text
Project Directory Structure for OpenCV
Shape Creation in OpenCV
Writing Images (OpenCV)
Live Video Feed Processing in OpenCV
Installing and Importing OpenCV