justadudewhohacks / justadudewhohacks/opencv4nodejs
TypeError: SIFTDetector is not a constructor
Open
- Dominant language
- C++
- Stars
- 5.1k
- Forks
- 826
- PR merge metrics
- No merged PRs in 30d
Description
**When i use SIFTDetector like:**
`const bf = new cv.BFMatcher(cv.NORM_L1, false);`
`const detector = new cv.SIFTDetector();`
`const matchFunc = (desc1, desc2) => bf.knnMatch(desc1, desc2,2);`
`const bfMatchIMG = matchFeatures({img1, img2, detector, matchFunc});`
**TypeError occurs:**
`TypeError: cv.SIFTDetector is not a constructor`
**Both of SIFTDetector and ORBDetector are defined in ./node_modules/opencv4nodejs/lib/typings/xxx.d.ts but only ORBDetector works fine.what wrong with it?**
**opencv4nodejs version: 5.6.0**
Contributor guide
Assessment
This issue has not been assessed yet.