I\'m trying to rectify an image in python. I have a Homography H (from a rotation matrix that rotates around the x, y and z axis) that looks like this for example: [
It says the image should be np.float32 or np.float64.
np.float32
np.float64
So convert the image first by img_cv2 = np.float32(img_cv2).
img_cv2 = np.float32(img_cv2)
Then apply the cv2.perspectiveTransform() and cv2.warpPerspective()
cv2.perspectiveTransform()
cv2.warpPerspective()
Check this tutorial for demo