Code Monkey home page Code Monkey logo

Comments (2)

fendiflexin avatar fendiflexin commented on August 17, 2024

The problem that I was facing had something to do with the opencv4nodejs autobuild.

I was able to solve this by manually building opencv4nodejs.

"opencv4nodejs": { "disableAutoBuild": "1", "OPENCV_INCLUDE_DIR": "C:\\opencv\\build\\include", "OPENCV_LIB_DIR": "C:\\opencv\\build\\x64\\vc15\\lib", "OPENCV_BIN_DIR": "C:\\opencv\\build\\x64\\vc14\\bin" },

"scripts": { "install": "build-opencv --incDir C:\\opencv\\build\\include --libDir C:\\opencv\\build\\x64\\vc15\\lib --binDir C:\\opencv\\build\\x64\\vc15\\bin --nobuild rebuild" }

Replace each path in the lines above with your own respective path to opencv and add them to your package.json file,
Then run, npm run install to build opencv4nodejs. After a successful build you can then run your application.

from opencv4nodejs.

yaoyuanrong avatar yaoyuanrong commented on August 17, 2024

i haven't solved it yet
package.json
{
"name": "signal",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"install": "build-opencv --incDir /usr/local/Cellar/opencv/4.5.5_2/include --libDir /usr/local/Cellar/opencv/4.5.5_2/lib --binDir /usr/local/Cellar/opencv/4.5.5_2/bin --nobuild rebuild"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"opencv4nodejs": "^5.6.0",
"ws": "^8.7.0"
},
"opencv4nodejs": {
"disableAutoBuild": 1,
"opencvIncludeDir": "/usr/local/Cellar/opencv/4.5.5_2/include",
"opencvLibDir": "/usr/local/Cellar/opencv/4.5.5_2/lib",
"opencvBinDir": "/usr/local/Cellar/opencv/4.5.5_2/bin"
}
}

image
node 16
npm 6

from opencv4nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.