In this video i have shown you how you can rotate an image in Python using OpenCV module.
--------------------------------------------------------------------------------------------
import cv2
import os
file_path = os.path.join(os.getcwd(), "python-logo.png")
src =cv2.imread(file_path)
window_name = "Image"
image = cv2.rotate(src, cv2.cv2.ROTATE_90_CLOCKWISE)
cv2.imshow(window_name, image)
cv2.waitKey(0)
--------------------------------------------------------------------------------------------
Python program to Rotate Images in OpenCV
If you found the video valuable, please leave a like and subscribe ❤️ It helps the channel grow and helps me pumping out more such content.
#shorts
#python3 #programming #algorithm #programmintips #pythontips #codingtips #coding