Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

rotate picture in opencv2 python

# 90degree
image = cv2.rotate(src, cv2.cv2.ROTATE_90_CLOCKWISE)
# 180 degrees
image = cv2.rotate(src, cv2.ROTATE_180)
# 270 degrees
image = cv2.rotate(src, cv2.ROTATE_90_COUNTERCLOCKWISE)
 
PREVIOUS NEXT
Tagged: #rotate #picture #python
ADD COMMENT
Topic
Name
5+8 =