Project 1
Input Image

Rotated Image

Rotation function
#Rotation function
def image_rotation(image, dimension, angle, scale):
(height, width) = dimension
rotationMatrix = cv2.getRotationMatrix2D((width/2,height/2), angle, scale)# point(x,y) is (width,height)
rotatedImage = cv2.warpAffine(image, rotationMatrix, (width, height))
return rotatedImage