rotate image opencv python code example
Example 1: rotate image python
import skimage
import skimage.transform
rotated_img=skimage.transform.rotate(img,-60, resize=True)
Example 2: rotate image by specific angle opencv
from scipy import ndimage
#rotation angle in degree
rotated = ndimage.rotate(image_to_rotate, 45)