Feature Matching tutorial issue with Brute Force Matching (Bug #4088)


Added by Fred Perkins about 10 years ago. Updated over 9 years ago.


Status:New Start date:2014-12-27
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:python bindings
Target version:-
Affected version:branch 'master' (3.0-dev) Operating System:Mac OSX
Difficulty: HW Platform:x64
Pull request:

Description

When trying to run Brute-Force Matching with SIFT Descriptors and Ratio Test in the Feature Matching tutorial, I needed to update ‘sift = cv2.SIFT’ to instead read ‘sift = cv2.xfeatures2d.SIFT_create()”

After making that change and trying to run the example, I get the following error.

img3 = cv2.drawMatchesKnn(img1,kp1,img2,kp2,good,flags=2)
TypeError: Required argument 'outImg' (pos 6) not found

I’m not sure what is needed here instead of ‘flags=2’. Please advise.


Associated revisions

Revision 2e900481
Added by Vadim Pisarevsky over 9 years ago

Merge pull request #4088 from howtobeahacker:2.4

History

Updated by Vadim Pisarevsky almost 10 years ago

  • Category set to python bindings
  • Affected version changed from 2.4.9 (latest release) to branch 'master' (3.0-dev)

Updated by Maksim Shabunin over 9 years ago

Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4892

Also available in: Atom PDF