justadudewhohacks / justadudewhohacks/opencv4nodejs

Almost got opencv4nodejs up and running, but have file structure errors when starting the app

Open
#830 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
5.1k
Forks
826
PR merge metrics
No merged PRs in 30d

Description

I am getting stuck here, I have followed the instructions to a T, and there is some sort of mismatch in the file structure?
Are there certain versions of compatible packages that I should use together? I have disabled auto-build, I'm using a mac with an intel chip, I have unlinked Tesaract, installed OpenCV and opencv@2. I want to get a good face detection and face mesh for large groups of people in videos of course. But do it all with Nodejs. What I am using now runs in the browser and I can only get 4 people masked at the most. Love what you're doing here and I hope I can help in any way.

Also when I installed "opencv4nodejs" globally and tried locally. there are lots of warnings and a few errors, I'm not sure if that's just over logging or I'm breaking lots of things.

/node_modules/opencv4nodejs/lib/cv.js:47
throw err
^

Error: Cannot find module '/node_modules/opencv4nodejs/build/Release/opencv4nodejs'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/node_modules/opencv4nodejs/lib/cv.js:40:8)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

Contributor guide

Open the contributing guide

Research direction

Start with the installation instructions and the loading path in node_modules/opencv4nodejs/lib/cv.js, then investigate why build/Release/opencv4nodejs is missing on the reported macOS setup. Done means the package installs and loads without the Cannot find module error.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs
Domain
computer-vision
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.