OpenCV Python cv2.perspectiveTransform
This implementation really needs to be changed in a future version. From the OpenCV docs for perspectiveTransform(): src – input two-channel (…) floating-point array Slant emphasis added by me. So we see from here that A is just a single-channel matrix, that is, two-dimensional. One row, two cols. You instead need a two-channel image, i.e., a three-dimensional matrix where the length of the … Read more