Opencv Getperspectivetransform Python, warpPerspective () to apply the transformation with your desired output dimensions.