Coder Social home page Coder Social logo

estherjk / face-detection-node-opencv Goto Github PK

View Code? Open in Web Editor NEW
476.0 26.0 180.0 8 KB

Real-time face detection using OpenCV, Node.js, and WebSockets

Home Page: http://youtu.be/v2SY0naPBFw

License: MIT License

JavaScript 83.32% HTML 12.26% CSS 4.42%

face-detection-node-opencv's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

face-detection-node-opencv's Issues

error in installing node opencv

How did you installed node opencv ?
when i am trying to install node opencv in my laptop it is giving me lots of error, primarily this error
"node-pre-gyp install --fallback-to-build"
Did you get any error during node opencv installation ?

Cannot access camera

Cannot access camera on Mac Pro running Mac OS Sierra. Here's the error output. Any clues?

node server.js
OpenCV: AVFoundation didn't find any attached Video Input Devices!
OpenCV: camera failed to properly initialize!
/private/var/www/face-detection-node-opencv/server/lib/routes/socket.js:14
var camera = new cv.VideoCapture(0);
             ^

Error: Camera could not be opened
    at Error (native)
    at Object.<anonymous> (/private/var/www/face-detection-node-opencv/server/lib/routes/socket.js:14:14)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/private/var/www/face-detection-node-opencv/server/server.js:26:21)
    at Module._compile (module.js:409:26)

Video lag

The video lags after 20 seconds. When you move your head, it takes a couple of seconds before it reflects on the canvas.

No video displaying

Hi,
thank you for your code and work! I saw your video, seems really good.

I've have search for similar project, to be able to understand how to send pictures to opencv, detect face (later recognize) and display live feed of the video... exactly what you did.

i've been trying to make it run on raspberry pi, with usb camera. But it's not working ;(

I run the "npm install" in server, everything is OK.
Then i run "sudo node server.js", and it seems to work.

But when i use my browser 2 things:

  1. no video is displaying ("Loading....")
  2. i can see that my camera is not used (not launch)

Do you have an idea from where it could come?

Thanks for your help!!

Localhost disconnects automatically when a socket tries to connect

XMLHttpRequest cannot load http://localhost/socket.io/?EIO=3&transport=polling&t=LLEzHd_. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. The response had HTTP status code 404.

This error pops out in the dev console.

If i change the port to 3000 Then in the console , a Get message is logged
HTTP server listening on port 3000
GET /favicon.ico 304 7.527 ms - -

[RPI2B] Camera could not be opened

When I launch sudo node server.js on my Raspberry Pi 2 B, I got an error:

socket.js:14
var camera = new cv.VideoCapture(0);
             ^
Error: Camera could not be opened
    at Error (native)
    at Object.<anonymous> (/home/x/face-detection-node-opencv/server/lib/routes/socket.js:14:14)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/home/x/face-detection-node-opencv/server/server.js:26:21)
    at Module._compile (module.js:460:26)

I tried with both open-cv 2.4.1 compiled on the RPI and installed from apt-get.

Any idea?

Error Running Script

Agastya-Darma-MacBook-Pro:server gedeagas$ node server.js
module.js:327
throw err;
^

Error: Cannot find module 'opencv'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/Users/gedeagas/Make/face-detection-node-opencv/server/lib/routes/socket.js:1:72)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
Agastya-Darma-MacBook-Pro:server gedeagas$

Can't install OpenCV

C:\Users\Administrator\Downloads\face-detection-node-opencv-master\face-detectio
n-node-opencv-master\server>npm install
npm WARN installMany node-pre-gyp was bundled with [email protected], but bundled pac
kage wasn't found in unpacked tree
\

[email protected] install C:\Users\Administrator\Downloads\face-detection-node-open
cv-master\face-detection-node-opencv-master\server\node_modules\opencv
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download: https://node-opencv.s3.amazonaws.com/opencv
/v5.0.0/Release/node-v46-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (
node-v46 ABI) (falling back to source compile with node-gyp)

C:\Users\Administrator\Downloads\face-detection-node-opencv-master\face-detectio
n-node-opencv-master\server\node_modules\opencv>if not defined npm_config_node_g
yp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_
modules\node-gyp\bin\node-gyp.js" clean ) else (node "" clean )

C:\Users\Administrator\Downloads\face-detection-node-opencv-master\face-detectio
n-node-opencv-master\server\node_modules\opencv>if not defined npm_config_node_g
yp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_
modules\node-gyp\bin\node-gyp.js" configure --fallback-to-build --module=C:\User
s\Administrator\Downloads\face-detection-node-opencv-master\face-detection-node-
opencv-master\server\node_modules\opencv\build\opencv\v5.0.0\Release\node-v46-wi
n32-x64\opencv.node --module_name=opencv --module_path=C:\Users\Administrator\Do
wnloads\face-detection-node-opencv-master\face-detection-node-opencv-master\serv
er\node_modules\opencv\build\opencv\v5.0.0\Release\node-v46-win32-x64 ) else (n
ode "" configure --fallback-to-build --module=C:\Users\Administrator\Downloads\f
ace-detection-node-opencv-master\face-detection-node-opencv-master\server\node_m
odules\opencv\build\opencv\v5.0.0\Release\node-v46-win32-x64\opencv.node --modul
e_name=opencv --module_path=C:\Users\Administrator\Downloads\face-detection-node
-opencv-master\face-detection-node-opencv-master\server\node_modules\opencv\buil
d\opencv\v5.0.0\Release\node-v46-win32-x64 )
C:\Users\Administrator\Downloads\face-detection-node-opencv-master\face-detectio
n-node-opencv-master\server\node_modules\opencv\utils\find-opencv.js:39
throw new Error("ERROR: OPENCV_DIR doesn't seem to be defined");
^

Error: ERROR: OPENCV_DIR doesn't seem to be defined
at C:\Users\Administrator\Downloads\face-detection-node-opencv-master\face-d
etection-node-opencv-master\server\node_modules\opencv\utils\find-opencv.js:39:1
9
at ChildProcess.exithandler (child_process.js:204:7)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:829:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
gyp: Call to 'node utils/find-opencv.js --libs' returned exit status 1 while in
binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_module
s\npm\node_modules\node-gyp\lib\configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess.handle.onexit (internal/child_proces
s.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej
s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--f
allback-to-build" "--module=C:\Users\Administrator\Downloads\face-detection-
node-opencv-master\face-detection-node-opencv-master\server\node_modules\ope
ncv\build\opencv\v5.0.0\Release\node-v46-win32-x64\opencv.node" "--module

name=opencv" "--module_path=C:\Users\Administrator\Downloads\face-detection-
node-opencv-master\face-detection-node-opencv-master\server\node_modules\ope
ncv\build\opencv\v5.0.0\Release\node-v46-win32-x64"
gyp ERR! cwd C:\Users\Administrator\Downloads\face-detection-node-opencv-master
face-detection-node-opencv-master\server\node_modules\opencv
gyp ERR! node -v v4.5.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallb
ack-to-build --module=C:\Users\Administrator\Downloads\face-detection-node-openc
v-master\face-detection-node-opencv-master\server\node_modules\opencv\build\open
cv\v5.0.0\Release\node-v46-win32-x64\opencv.node --module_name=opencv --module_p
ath=C:\Users\Administrator\Downloads\face-detection-node-opencv-master\face-dete
ction-node-opencv-master\server\node_modules\opencv\build\opencv\v5.0.0\Release
node-v46-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\Administrator
Downloads\face-detection-node-opencv-master\face-detection-node-opencv-master\se
rver\node_modules\opencv\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:829:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/chi
ld_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Admi
nistrator\Downloads\face-detection-node-opencv-master\face-detection-node-ope
ncv-master\server\node_modules\opencv\node_modules\node-pre-gyp\bin\node-
pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Administrator\Downloads\face-detection-node-openc
v-master\face-detection-node-opencv-master\server\node_modules\opencv
node-pre-gyp ERR! node -v v4.5.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.30
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users
Administrator\Downloads\face-detection-node-opencv-master\face-detection-node-op
encv-master\server\node_modules\opencv\build\opencv\v5.0.0\Release\node-v46-win3
2-x64\opencv.node --module_name=opencv --module_path=C:\Users\Administrator\Down
loads\face-detection-node-opencv-master\face-detection-node-opencv-master\server
\node_modules\opencv\build\opencv\v5.0.0\Release\node-v46-win32-x64' (1)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallb
ack-to-build'.
npm ERR! This is most likely a problem with the opencv package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs opencv
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls opencv
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Administrator\Downloads\face-detection-node-opencv-master
face-detection-node-opencv-master\server\npm-debug.log

C:\Users\Administrator\Downloads\face-detection-node-opencv-master\face-detectio
n-node-opencv-master\server>

Can not do document.getElementID from other js beside app.js

Thanks for sharing the code. I just taking some steps in node opencv. The problem is when I want to have a slider in index.html and get the value of the slider to socket.js to control how blur the background can be. The 'document is not define' keeps pop up in socket.js but I can get the slider value in app.js. Please help!!

npm installing opencv failed

Hi, I know this topic has been discussed everywhere but I cannot get anything to work and I really need some help.

Windows 10
npm 5.4.2

I am trying to get https://github.com/paulhayes/copterface to work for my Ar-Drone

Followed the steps
npm install ar-drone
npm install opencv

No luck what so ever, pre built binaries not found for [email protected] and a whole lot of other errors.

Is there a guide to make this work? I've read a hundred forums here and elsewhere regarding this but it's impossible to make work since the information on this topic is so scattered.

ERROR


[email protected] install C:\Users\User\AppData\Roaming\npm\node_modules\opencv
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://node-opencv.s3.amazonaws.com/opencv/v6.0.0/Release/node-v48-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v48 ABI) (falling back to source compile with node-gyp)
C:\Users\User\AppData\Roaming\npm\node_modules\opencv\utils\find-opencv.js:57
throw new Error("ERROR: couldn't read the lib directory " + err);
^

Error: ERROR: couldn't read the lib directory Error: ENOENT: no such file or directory, scandir 'C:\opencv\build\x64\vc14\lib'
at C:\Users\User\AppData\Roaming\npm\node_modules\opencv\utils\find-opencv.js:57:23
at FSReqWrap.oncomplete (fs.js:123:15)
gyp: Call to 'node utils/find-opencv.js --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:336:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\User\AppData\Roaming\npm\node_modules\opencv\build\opencv\v6.0.0\Release\node-v48-win32-x64\opencv.node" "--module_name=opencv" "--module_path=C:\Users\User\AppData\Roaming\npm\node_modules\opencv\build\opencv\v6.0.0\Release\node-v48-win32-x64"
gyp ERR! cwd C:\Users\User\AppData\Roaming\npm\node_modules\opencv
gyp ERR! node -v v6.10.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\User\AppData\Roaming\npm\node_modules\opencv\build\opencv\v6.0.0\Release\node-v48-win32-x64\opencv.node --module_name=opencv --module_path=C:\Users\User\AppData\Roaming\npm\node_modules\opencv\build\opencv\v6.0.0\Release\node-v48-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\User\AppData\Roaming\npm\node_modules\opencv\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:886:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 10.0.15063
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\User\AppData\Roaming\npm\node_modules\opencv\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\User\AppData\Roaming\npm\node_modules\opencv
node-pre-gyp ERR! node -v v6.10.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.38
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\User\AppData\Roaming\npm\node_modules\opencv\build\opencv\v6.0.0\Release\node-v48-win32-x64\opencv.node --module_name=opencv --module_path=C:\Users\User\AppData\Roaming\npm\node_modules\opencv\build\opencv\v6.0.0\Release\node-v48-win32-x64' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Roaming\npm-cache_logs\2017-10-06T15_46_47_034Z-debug.log


Any help would be greatly appreciated.

HIGHGUI ERROR: V4L

Hello,

I do have a Problem running your code on my raspberry pi3.
I installed:
Node.js v0.12.15
OpenCV v2.4.13 (compiled on the Rasperry without error)
These two were necessary to run the npm install which also worked fine.

However, when I run the server.js script with node, I get the following Error as soon as I open the localhost website:
``
`
root@raspberrypi:/home/pi/face-detection-node-opencv/server# node server.js
/dev/video0 does not support memory mapping
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
Unable to stop the stream.: Bad file descriptor
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
HTTP server listening on port 8080
GET /favicon.ico 200 18.167 ms - 410
HIGHGUI ERROR: V4L: Initial Capture Error: Unable to load initial memory buffers.
OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/core/src/array.cpp, line 2482
HIGHGUI ERROR: V4L: Initial Capture Error: Unable to load initial memory buffers.
/home/pi/face-detection-node-opencv/server/lib/routes/socket.js:24
if (err) throw err;
^
Error: /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/core/src/array.cpp:2482: error: (-206) Unrecognized or unsupported array type in function cvGetMat

at Error (native)

`
``

The results I got by using google didn't help me too much.
I tried installing the v4l2 driver but I guess it is included with raspbian anyway and doesn't help.

Any idea on that?
Would be really appreciated

Opencv error

I downloaded your code on my ubuntu 12.04. I try to compile and run it by following your instructions.
I have installed node.js, opencv, npm and xampp.

When i run the server "node server.js" and try to connect from localhost, i get no image and after some seconds, i get the error below:

"Opencv Error: Bad flag (parameter or structure field) (Unrecignized or unsupported array type) in cvGetMat

terminate called after throwing an instance of 'cv:Exception' "

Could you please help me?

Error: Cannot find module './lib/config/server'

got this error when I'm run

$ node server.js

module.js:472
throw err;
^
Error:
Cannot find module './lib/config/server'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/home/zahar/workplace/openCV/node/face-detection-node-opencv/server/server.js:7:20)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)

cant run

root@gansta-System-Product-Name:/home/gansta/Downloads/myface/js/face-detection-node-opencv/server# node server.js
module.js:549
throw err;
^

Error: Cannot find module '/home/gansta/Downloads/myface/js/face-detection-node-opencv/server/node_modules/opencv/build/opencv/v6.0.0/Release/node-v57-linux-x64/opencv.node'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/home/gansta/Downloads/myface/js/face-detection-node-opencv/server/node_modules/opencv/lib/bindings.js:4:15)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
root@gansta-System-Product-Name:/home/gansta/Downloads/myface/js/face-detection-node-opencv/server#

but other opencv-node apps worked

Save capture to file ?

Hello,

Would it be possible to save the broadcast in a file at the same time for example a .mp4 or .avi ? :)

cannot view the video on localhost

Hi the code is running fine without errors but I cannot see anything on my local host. There is just a box and that;s it. Need help

I am using opencv 3.1

server.js doesnt run

I did npm install and it installed sucessfully.
`npm WARN installMany node-pre-gyp was bundled with [email protected], but bundled package wasn't found in unpacked tree
\

[email protected] install /home/zee/face-detection-node-opencv/server/node_modules/opencv
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download: https://node-opencv.s3.amazonaws.com/opencv/v5.0.0/Release/node-v46-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v46 ABI) (falling back to source compile with node-gyp)
make: Entering directory /home/zee/face-detection-node-opencv/server/node_modules/opencv/build' CXX(target) Release/obj.target/opencv/src/init.o CXX(target) Release/obj.target/opencv/src/Matrix.o CXX(target) Release/obj.target/opencv/src/OpenCV.o CXX(target) Release/obj.target/opencv/src/CascadeClassifierWrap.o CXX(target) Release/obj.target/opencv/src/Contours.o CXX(target) Release/obj.target/opencv/src/Point.o CXX(target) Release/obj.target/opencv/src/VideoCaptureWrap.o CXX(target) Release/obj.target/opencv/src/CamShift.o CXX(target) Release/obj.target/opencv/src/HighGUI.o CXX(target) Release/obj.target/opencv/src/FaceRecognizer.o CXX(target) Release/obj.target/opencv/src/Features2d.o CXX(target) Release/obj.target/opencv/src/BackgroundSubtractor.o CXX(target) Release/obj.target/opencv/src/Constants.o CXX(target) Release/obj.target/opencv/src/Calib3D.o CXX(target) Release/obj.target/opencv/src/ImgProc.o CXX(target) Release/obj.target/opencv/src/Stereo.o CXX(target) Release/obj.target/opencv/src/LDAWrap.o SOLINK_MODULE(target) Release/obj.target/opencv.node COPY Release/opencv.node COPY /home/zee/face-detection-node-opencv/server/node_modules/opencv/build/opencv/v5.0.0/Release/node-v46-linux-x64/opencv.node TOUCH Release/obj.target/action_after_build.stamp CXX(target) Release/obj.target/test_nativemat/test/nativemat.o SOLINK_MODULE(target) Release/obj.target/test_nativemat.node COPY Release/test_nativemat.node make: Leaving directory/home/zee/face-detection-node-opencv/server/node_modules/opencv/build'
[email protected] node_modules/opencv
├── [email protected]
├── [email protected]
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])`

When I run node server.js it gives me the following error
`events.js:141
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE :::8080
at Object.exports._errnoException (util.js:873:11)
at exports._exceptionWithHostPort (util.js:896:20)
at Server._listen2 (net.js:1250:14)
at listen (net.js:1286:10)
at Server.listen (net.js:1382:5)
at Object. (/home/zee/face-detection-node-opencv/server/server.js:20:8)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
`

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.