Comments (9)
Any solution for this issue ?
from node-opencv.
I have the same issue. I have OpenCV installed on my machine, but not pkg-config. I ended up reconstructing the flags directly in the binding.gyp, but it wasn't pretty. In fact, I couldn't get it to compile. Node-gyp stopped complaining, but the last error I had was a slew of warnings and two specific errors with matrix.cc
[lots of these conversion warnings...]
..\src\Matrix.cc(1109): warning C4244: 'initializing' : conversion from 'double
' to 'float', possible loss of data [C:\Tests\node_modules\opencv\build\binding.s
ln]
..\src\Matrix.cc(1139): error C3861: 'round': identifier not found [C:\Tests\node
_modules\opencv\build\binding.sln]
..\src\Matrix.cc(1140): error C3861: 'round': identifier not found [C:\Tests\node
_modules\opencv\build\binding.sln]
[followed by even more conversion warnings]
from node-opencv.
I just wanted to add this as maybe it might help someone. I've been trying to get it working on Windows 7 64bit. I seem to be able to get things to compile but I still get an error. I'll post the error below but maybe some of these steps can help you out. If your using 32bit try using 32bit sources instead.
Steps to install and compile on 64 windows7
Install opencv @ - (I used version 2.4.4)
http://opencv.org/downloads.html
Install python version 2.7 @
http://www.python.org/download/releases/2.7/install pkg-config by downloading the all in one bundle @ - (I used Gtk+ 3.6.4)
http://www.gtk.org/download/win64.php
Add the following to your path variables
C:\pkg-config\bin;C:\OpenCV\build\x64\vc11\bin;
Install visual-studio in 4 steps
First install Visual C++ 2010 Express
Second install Windows SDK for windows 7 and .net framework 4
Third install Visual Studio 2010 Service Pack 1
Fourth install Visual C++ 2010 Service Pack 1 Compiler
Download notcoffeetable/node-opencv fork
https://github.com/notcoffeetable/node-
opencv
Open windows sdk 7.1 command prompt <- need
This one specifically as it sets path information for kernel
Navigate to the directory containing the downloaded branch
Type node-gyp rebuild
You will get several warnings. If you get an error that says something about Round not being found in Matrix.h try this.
Edit ./src/Matrix.cpp add at the bottom
inline double round( double d ) { return floor( d + 0.5);}
Try node-gyp rebuild again. It should work with several warning.
To install just type npm install
Error trying to run node contour.js
module.js:356
Module._extensions[extension](this, filename);
^
Error: The specified module could not be found.
C:\Users\deadeyes\Desktop\nodeJS\node_opencv\node-opencv-master\build\Release\op
encv.node
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (C:\Users\deadeyes\Desktop\nodeJS\node_opencv\node-ope
ncv-master\lib\bindings.js:1:80)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
from node-opencv.
seyedaed, you ever get a solution to your error? I think I've got something similar going on.
from node-opencv.
Same here! Please help with this, thanks!
from node-opencv.
same errors related to opencv on node. Kindly help!
from node-opencv.
Same thing here, this is going to be a show-stopper.
from node-opencv.
Same issue as @subhendusc
from node-opencv.
Hi @seyedaed ....
Thanks for guidance. I have successfully install node-opencv over my windows 10
following is my walk-through to install this
- Download Install opencv @ - (I used version 2.4.4)
http://opencv.org/downloads.html
Put it in c:\opencv - Install python version 2.7 @
http://www.python.org/download/releases/2.7/
put it in c:\python27 - install pkg-config by downloading the all in one bundle @ - (I used Gtk+ 3.6.4)
http://www.gtk.org/download/win64.php
put it in c:\pkg-config - Add the following to your path variables
C:\pkg-config\bin;C:\OpenCV\build\x64\vc11\bin; - Install visual-studio in 4 steps
- First install Visual C++ 2010 Express
- Second install Windows SDK for windows 7 and .net framework 4
- Third install Visual Studio 2010 Service Pack 1
- Fourth install Visual C++ 2010 Service Pack 1 Compiler
- Download npeterbraden/node-opencv fork
git clone https://github.com/peterbraden/node-opencv - edit file src/Matrix.cpp
put "inline double round( double d ) { return floor( d + 0.5);}" below "cv::Rect* setRect(Local objRect, cv::Rect &result);" - run npm install
from node-opencv.
Related Issues (20)
- module import Error HOT 2
- [BUG]not a function HOT 3
- [BUG] npm install opencv `gyp` failed with exit code: 1
- npm install opencv `gyp` failed with exit code: 1
- [BUG] Unable to install "gyp ERR! stack Error: `make` failed with exit code: 2" HOT 4
- Update to more recent openCV version HOT 1
- [BUG] build error (on npm install) Windows 10 HOT 2
- [BUG] On RaspPi 3, nodejs, simply require opencv crash HOT 1
- A modest proposal about N-API
- Depth Map Example
- [BUG] Cannot Install opencv js with npm (windows 10/ubuntu 20.04) HOT 3
- [BUG] Unable to install on MacOS BigSur 12.2.3 HOT 2
- How to draw a rectangle what method?[BUG] HOT 3
- [BUG] FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.
- [BUG] Nodemon crashes when using cv.findContour() function
- Does interpolation work when using resize()?
- [BUG] OpenCV Not Working on MacOS Big Sur 11.6.4 HOT 2
- Template matching
- Can opencv-nodejs read h264 video?
- brew install opencv@2 Error: opencv@2 has been disabled because it is not supported upstream! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-opencv.