Python OpenCV 2.4.9 drawMatches/drawMatchesKnn

asked 2014-09-10 02:32:10 -0600

_chris gravatar image

I've been googling around all day trying to see if I can actually use these functions. Following this tutorial http://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_feature2d/py_matcher/py_matcher.html I get a bunch of matches back, but I can't visualise them as it says no module named drawMatchesKnn.

When I check help (cv2) there is indeed no module named drawMatches. I installed opencv with Homebrew. Is there anything I can do about this?

If I can't use those functions, is there any documentation on how I can manipulate the match objects that are returned?

edit retag flag offensive close merge delete

Comments

1

sorry, it's in 3.0 only (btw, those tutorials are for 3.0, too)

berak gravatar imageberak ( 2014-09-10 02:37:33 -0600 )edit

Actually the tutorials are just a MESS. They don't work as is in v2 or v3. Because drawMatchesKnn doesn't exist in v2, and cv2.SIFT() doesn't exists in v3. (you would need to compile with the extra contributions and call it cv2.xfeatures2d.SIFT_create().

So yeah the tutorials are not for 3.0, the tutorials are just broken

tiago gravatar imagetiago ( 2016-02-11 10:35:34 -0600 )edit

@tiago, those are not opencv's tutorials, but 3rd party.

berak gravatar imageberak ( 2016-02-11 10:45:25 -0600 )edit