opencv4nodejs: cv.matchKnnFlannBased is not a constructor error

Hello,

first thank you for porting openCV to Node 😃

I’m trying to do this tuto : https://docs.opencv.org/trunk/dc/dc3/tutorial_py_matcher.html When trying to ā€œtranslateā€ the original code

flann = cv.FlannBasedMatcher(index_params,search_params)
matches = flann.knnMatch(des1,des2,k=2)

I guessed that I had to use cv.matchKnnFlannBased but I receive a not constructor error. var matches = new cv.matchKnnFlannBased(image1Computed, image2Computed, 2); Did I understood something wrong?

Thank you.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (10 by maintainers)

Most upvoted comments

I confirm that rebuilding from you last image works just fine. Thank you so much for your help!