Python findFundamentalMat
I keep getting the error:
Traceback (most recent call last):
File "OpenCVTest.py", line 73, in <module>
(retval,mask) = cv.findFundamentalMat(c1,c2)
cv2.error: /tmp/homebrew-opencv-2.4.2-OdWH/OpenCV-2.4.2/modules/calib3d/src/fundam.cpp:1103: error: (-215) npoints >= 0 && points2.checkVector(2) == npoints && points1.type() == points2.type() in function findFundamentalMat
Where c1 and c2 are 8 by 2 ndarrays.
It works in cv, but not in cv2. Is this a bug or am I doing something wrong?
I am using OpenCV 2.4.2 in Python 2.7.3.
Thanks!
Did you check if their types are same ?
The point coordinates should be floating-point (single or double precision).
OMG, what a newbie mistake.. Yeah, you are right! They were int64, when they should have been float64. I assumed that they were float by default, but apparently not.
Thanks!
If it solves your problem, you can accept answer below and close this session.
Ok. Thanks!