Challenge

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
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.