-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module opencv4nodejs/build/Release/opencv4nodejs #124
Comments
also getting this issue, did you find a solution? |
it maybe u require error |
Same error even after const cv = require('@u4/opencv4nodejs'); |
I give up this do not forget to ignore opencv.js for u tools for build |
Hi there, I am experiencing the same issue. |
yeah, have the same. It's possible to run it with Even when I change 🤷 |
Please help how to run on mac M1 , Node 16
opencv installed with:
brew install opencv@4
brew link --force opencv@4
export OPENCV_INCLUDE_DIR=/opt/homebrew/Cellar/opencv/4.8.1_5/include/opencv4
export OPENCV_LIB_DIR=/opt/homebrew/Cellar/opencv/4.8.1_5/lib
export OPENCV4NODEJS_DISABLE_AUTOBUILD=1
export OPENCV_BIN_DIR=/opt/homebrew/Cellar/opencv/4.8.1_5/bin
npm install @u4/opencv4nodejs : npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
added 117 packages, and audited 148 packages in 14s
used in code testopencv.js:
const cv = require('opencv4nodejs');
const mat = new cv.Mat(100, 100, cv.CV_8UC3, [0, 0, 0]);
console.log('OpenCV Matrix:', mat);
node testopencv.js causes error:
Cannot find module opencv4nodejs/build/Release/opencv4nodejs
...
at Object. (/node_modules/opencv4nodejs/lib/cv.js:40:8)
...
The text was updated successfully, but these errors were encountered: