justadudewhohacks/opencv4nodejs

extra modules check break demo

zivyuan opened this issue · 1 comments

if (cv.xmodules.xfeatures2d) {

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

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

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