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