我想執行這條巨蟒樣本:http://docs.opencv.org/trunk/doc/py_tutorials/py_feature2d/py_feature_homography/py_feature_homography.html打開CV 3.0 findHomography引發錯誤
但它總是失敗的
M, mask = cv2.findHomography(src_pts, dst_pts, cv2.RANSAC, 5.0)
錯誤是:
OpenCV Error: Image step is wrong (Step must be a multiple of esz1) in setSize, file /home/jbd/src/opencv-3.0.0-beta/modules/core/src/matrix.cpp, line 297
terminate called after throwing an instance of 'cv::Exception'
what(): /home/jbd/src/opencv-3.0.0-beta/modules/core/src/matrix.cpp:297: error: (-13) Step must be a multiple of esz1 in function setSize
你認爲這是由於我的安裝?
事實上,它似乎不是由於findHomography但到: > cv2.perspectiveTransform 我不知道爲什麼 – jbdemonte