Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

cv2 rotate image

M = cv2.getRotationMatrix2D(center, angle, scale)
rotated = cv2.warpAffine(img, M, (w, h))
Comment

PREVIOUS NEXT
Code Example
Python :: get local ip 
Python :: python get line number x in file 
Python :: get absolute url 
Python :: duplicate in list 
Python :: time difference between two datetime.time 
Python :: fibonacci series using dynamic programmig approach 
Python :: get body from request python 
Python :: how to add to the end of an array python 
Python :: random python range 
Python :: check setuptools version python 
Python :: python area of rectangle 
Python :: unique value python 
Python :: create the dataframe column based on condition 
Python :: get weekday from date python 
Python :: tqdm in place 
Python :: substract list python 
Python :: python sys.argv 
Python :: how to show a progress spinner when python script is running 
Python :: python string cut last character 
Python :: read specific columns from csv in python pandas 
Python :: Filter with List Comprehension 
Python :: numpy random choice 
Python :: adding one element in dictionary python 
Python :: create button in pyqt 
Python :: python lists tuples sets dictionaries 
Python :: precision and recall from confusion matrix python 
Python :: python get 2d array output as matrix 
Python :: python funtion 
Python :: BURGERS2 
Python :: multiprocessing pool pass additional arguments 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =