我正在尝试对SIFT点使用仿射变换,并尝试使用CV2库拟合线。遇到错误。
---------------------------------------------------------------------------
error Traceback (most recent call last)
<ipython-input-30-a86b2f530eae> in <module>
21
22 # im_dst = cv2.polylines(im_dst,[np.int32(dst)],True,255,3, cv2.LINE_AA)
---> 23 im_dst = cv2.polylines(im_dst,[np.int32(dst)],True,255,3, cv2.LINE_AA)
24
25 else:
error: OpenCV(3.4.2) /tmp/build/80754af9/opencv-suite_1535558553474/work/modules/imgproc/src/drawing.cpp:2441: error: (-215:Assertion failed) p.checkVector(2, 4) >= 0 in function 'polylines'