opencv4nodejs icon indicating copy to clipboard operation
opencv4nodejs copied to clipboard

extra modules check break demo

Open zivyuan opened this issue 3 years ago • 1 comments

https://github.com/justadudewhohacks/opencv4nodejs/blob/24bff921c8d9c78500228e4be2d7bcd36e7a3904/examples/matchFeatures.js#L34

cv.modules was undefined on my Mac, add a undefined check to fix this problem

if (cv.xmodules && cv.xmodules.xfeatures2d) {

zivyuan avatar Apr 09 '21 09:04 zivyuan

I did not xmodules define anywhere in the code, I had to define a new one in my fork the change

the fork: @u4/opencv4nodejs

UrielCh avatar Jan 19 '22 08:01 UrielCh