Closed cherishman2005 closed 2 years ago
"opencv4nodejs": "^5.6.0"
/home/nodejs/face_detection/facemark.js:6
if (!cv.xmodules.face) {
^
TypeError: Cannot read property 'face' of undefined
at Object.<anonymous> (/home/nodejs/face_detection/facemark.js:6:18)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
Hi,
I have this problem too, It's strange, I did not find any reference to xmodules
, it the code, the module flag are indeed defined in modules
(without the x)
I had to add this code to make it works
I resolve it:
Error Message
Auto Build - Full Error Log
Manual Build - Environment Information
OpenCV version (example/facemark.js ): "opencv4nodejs": "^4.7.2"
With OpenCV-contrib? (extra modules): yes/no?
OS: Ubuntu16.04