Code Monkey home page Code Monkey logo

node-yolo's Introduction

Node.js Wrapper for YOLO/Darknet recognition framework

Darknet is an open source neural network framework written in C and CUDA. This project wraps this framework in a Node.js native addon.

Status

Currently, the wrapper implements a demo method to run a recognition from the webcam/video or an image file. Equivalent to

./darknet detector demo cfg/coco.data cfg/yolo.cfg yolo.weights
./darknet detect cfg/yolo.cfg yolo.weights data/dog.jpg

Prerequisites

Requires:

  • Modern Node and NPM versions (tested with latest LTS release Node v6.., npm 3.., supposed to work with the newer versions as well)

  • OpenCV (version 2, for example, 2.4.9.1) to be installed on your system.

    Installing with Brew on MacOS:

    brew install opencv@2
    sudo chown -R $(whoami):admin /usr/local
    brew link --force opencv@2
    
  • If you are on a mac: macOS 10.12 Sierra or newer, Apple LLVM version 8.0.0 (xcode 8.2, check version with clang -v). For GPU support, Nvidia CUDA Toolkit (you need to have Nvidia CUDA GPU graphic card)

First, you need to compile this fork of darknet with OpenCV support (optionally, with CUDA support):

git clone https://github.com/OrKoN/darknet
cd darknet
make OPENCV=1 # optionally GPU=1
make install # by default installed to /usr/local

After that you can process with the installation via NPM.

The fork is required because it contains a few important changes to the origin source code which allow using darknet with NodeJS:

  • Makefile is extended to build a static library (darknet.a).
  • Makefile is extended with install and uninstall commands which install the library globally so that this module can easily find and link it.
  • All darknet functions in header files are marked with extern "C" if they are included in a C++ program (such as a NodeJS module).

Installation

npm install @moovel/yolo --save

Usage

Either download your own cfg, data folders and .weight files from the darknet project or use the ones included in test folder (see also test/readme.md). You also can find there the examples from below.

Detect a video from camera or a file:

const darknet = require('@moovel/yolo');

darknet.detect({
  cfg: './cfg/yolo.cfg',
  weights: './yolo.weights',
  data: './cfg/coco.data',
  cameraIndex: 0, // optional, default: 0,
  video: './test.mp4', // optional, forces to use the video file instead of a camera
  thresh: 0.24, // optional, default: 0.24
  hierThresh: 0.5, // optional, default: 0.5
}, function(modified, original, detections, dimensions) {
  /**

  modified - raw frame with detections drawn, rgb24 format
  original - raw frame, as captured by the webcam/video, rgb24 format,
  detections - array of detections
  dimenstions - image width and height

  Example detections:

  [ { x: 0.8602103590965271,
      y: 0.20008485019207,
      w: 0.13895535469055176,
      h: 0.39782464504241943,
      prob: 0.2408987432718277,
      name: 'tvmonitor' },
    { x: 0.26072466373443604,
      y: 0.4977818727493286,
      w: 0.10842404514551163,
      h: 0.22796104848384857,
      prob: 0.3290732204914093,
      name: 'person' },
    { x: 0.2568981349468231,
      y: 0.5765896439552307,
      w: 0.12322483211755753,
      h: 0.2544059157371521,
      prob: 0.2738085687160492,
      name: 'chair' },
    { x: 0.6593853235244751,
      y: 0.8188746571540833,
      w: 0.06210440397262573,
      h: 0.100614033639431,
      prob: 0.3225017189979553,
      name: 'clock' } ]
  */
});

Detect on a single image:

const darknet = require('@moovel/yolo');

darknet.detectImage({
  cfg: './cfg/yolo.cfg',
  weights: './yolo.weights',
  data: './cfg/coco.data',
  image: './data/dog.jpg',
  thresh: 0.24, // optional, default: 0.24
  hierThresh: 0.5, // optional, default: 0.5,
}, function(modified, original, detections, dimensions) {
  /**

  modified - raw frame with detections drawn, rgb24 format
  original - raw frame, as captured by the webcam/video, rgb24 format,
  detections - array of detections
  dimenstions - image width and height

  Example detections:

  [ { x: 0.8602103590965271,
      y: 0.20008485019207,
      w: 0.13895535469055176,
      h: 0.39782464504241943,
      prob: 0.2408987432718277,
      name: 'tvmonitor' },
    { x: 0.26072466373443604,
      y: 0.4977818727493286,
      w: 0.10842404514551163,
      h: 0.22796104848384857,
      prob: 0.3290732204914093,
      name: 'person' },
    { x: 0.2568981349468231,
      y: 0.5765896439552307,
      w: 0.12322483211755753,
      h: 0.2544059157371521,
      prob: 0.2738085687160492,
      name: 'chair' },
    { x: 0.6593853235244751,
      y: 0.8188746571540833,
      w: 0.06210440397262573,
      h: 0.100614033639431,
      prob: 0.3225017189979553,
      name: 'clock' } ]
  */
});

After that you can convert the original frames with ffmpeg to an image. Play with the parameter bgr24/rgb24 if the color channels are swapped e.g. blueish image:

ffmpeg -f rawvideo -s 768x576 -pix_fmt bgr24 -i data.raw data.png

node-yolo's People

Contributors

b-g avatar joeyklee avatar orkon avatar tdurand avatar

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  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

node-yolo's Issues

Yolov3 Support?

hi, im using the new yolov3 , i trained the weights in V3 but trying to implement with node.js the interface don't know the convolutional layers of the v3 ( [yolo] layers) so it gives me an error, any chances to implement V3 in moovel?

Detections object not returning multiples of an object

For example if i use a photo containing 2 people the detections object is an array with only one object person parameter, using the detected person with the highest probability. But it still logs that two people were detected.

Is it possible to return the object with all people, their probability & x/y location.

I would be keen to contribute, if you could direct me. Is this a wrapper simply flattening the array or is it an issue with the YOLO build?

Saving output as image

Sorry if this isn't the correct place for this but it is a bit of a niche tool so there's no tmany people discussing this elsewhere!

I have managed to get this working and it's great, except for I can't seem to figure out how to convert the raw output into a useable image file - can someone point me in the right direction?

Thanks!@

Making a node service using wrapper.

I want to make a node service using your wrapper. I want to initialise the network once and use this network again and again whenever a request come for detection . How can i do this?

Also there is a lot of memory leak .

npm giving error

While executing npm install @moovel/yolo --save , I am getting the error below,

npm ERR! git clone [email protected]:moovel/yolo Cloning into bare repository '/home/aditi/.npm/_git-remotes/git-github-com-moovel-yolo-9b9adb62'...
npm ERR! git clone [email protected]:moovel/yolo Permission denied (publickey).
npm ERR! git clone [email protected]:moovel/yolo fatal: Could not read from remote repository.
npm ERR! git clone [email protected]:moovel/yolo
npm ERR! git clone [email protected]:moovel/yolo Please make sure you have the correct access rights
npm ERR! git clone [email protected]:moovel/yolo and the repository exists.
npm ERR! addLocal Could not install moovel/yolo
npm ERR! Error: ENOENT, stat 'moovel/yolo'
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]

npm ERR! System Linux 3.19.0-80-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "@moovel/yolo"
npm ERR! cwd /home/aditi/Desktop/node/darknet
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path moovel/yolo
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/aditi/Desktop/node/darknet/npm-debug.log
npm ERR! not ok code 0

What can be the reason for it?

Opencv version 3.2.0 not suitable.

I had opencv 3.2.0 in my system but i wasn't able to build this library with it and when i used opencv 3.0.0 it got built. Can you please mention in your documentation the proper version.

Also when I build a server using the network as static the request was processed correct when they were sequential but parallel request created error when running on CPU but were processed correctly when using GPU . Can you tell me what can be the reason?

detectImage() should IMO return a dimensions parameter like detect()

const darknet = require('../darknet');
const fs = require('fs');

darknet.detectImage({
  cfg: './cfg/yolo.cfg',
  weights: './yolo.weights',
  data: './cfg/coco.data',
  image: './test.jpg',
}, function(modified, original, detections, dimensions) {
  console.log(modified.length, original.length, detections, dimensions);
  fs.writeFileSync('./data.modified.raw', modified);
  // ffmpeg -f rawvideo -s 768x576 -pix_fmt bgr24 -i data.raw data.jpg
  fs.writeFileSync('./data.raw', original);
  // ffmpeg -f rawvideo -s 768x576 -pix_fmt bgr24 -i data.modified.raw data.jpg
});

Error when trying to install

Hello,
when trying to install the module by running npm install @moovel/yolo --save, I get the following error message:

make: Entering directory '/home/user/Projects/test_proj/node_modules/@moovel/yolo/build'
CXX(target) Release/obj.target/darknet/darknet.o
CXX(target) Release/obj.target/darknet/src/demo.o
SOLINK_MODULE(target) Release/obj.target/darknet.node
/usr/bin/ld: cannot find -lcudart
/usr/bin/ld: cannot find -lcublas
/usr/bin/ld: cannot find -lcurand
collect2: error: ld returned 1 exit status
darknet.target.mk:151: recipe for target 'Release/obj.target/darknet.node' failed
make: *** [Release/obj.target/darknet.node] Error 1
make: Leaving directory '/home/user/Projects/test_proj/node_modules/@moovel/yolo/build'
gyp ERR! build error
gyp ERR! stack Error: 'make' failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.0-101-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/user/Projects/test_proj/node_modules/@moovel/yolo
gyp ERR! node -v v8.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @moovel/[email protected] install: 'node-gyp rebuild'
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @moovel/[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! /home/user/.npm/_logs/2017-11-27T18_05_16_630Z-debug.log

Judging from the lines similar to /usr/bin/ld: cannot find -lcudart, I would there is a problem with CUDA, but this message even occurs when I set GPU=0 as a make option.

I would be very thankful for any help.

Segmentation Fault

Hello,
When trying to run the examples I get a Segmentation Fault.
Here is my conf: Hackintosh, macOS Sierra 10.12.6, clang 9.0.0

I tried to do a npm rebuild of the node_modules, with no more luck.

I also have some warnings ( when doing this npm rebuild:

yolo9000-test % npm rebuild     

> @moovel/[email protected] install /Users/bigx/repos/yolo9000-test/node_modules/@moovel/yolo
> node-gyp rebuild

  CXX(target) Release/obj.target/darknet/darknet.o
  CXX(target) Release/obj.target/darknet/src/demo.o
  SOLINK_MODULE(target) Release/darknet.node
clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
ld: warning: object file (/usr/local/lib/libdarknet.a(image.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(box.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(utils.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(detection_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(data.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(region_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(parser.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(network.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(option_list.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(activations.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(blas.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(convolutional_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(matrix.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(list.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(cost_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(tree.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(cuda.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(activation_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(avgpool_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(batchnorm_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(connected_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(crnn_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(crop_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(deconvolutional_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(dropout_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(gru_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(local_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(lstm_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(maxpool_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(normalization_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(reorg_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(rnn_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(route_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(shortcut_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(softmax_layer.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(col2im.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(gemm.o)) was built for newer OSX version (10.12) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libdarknet.a(im2col.o)) was built for newer OSX version (10.12) than being linked (10.7)
@moovel/[email protected] /Users/bigx/repos/yolo9000-test/node_modules/@moovel/yolo
[email protected] /Users/bigx/repos/yolo9000-test/node_modules/bindings
[email protected] /Users/bigx/repos/yolo9000-test/node_modules/nan

I don't know is the segfault and this are related, but I cannot run it.
Any idea?

Regards

Webrtc stream instead of camera feed ?

Is there possibly a way to achieve that ? I was able to get demo up with tensor flow but the frame rates are really low, and In my research this module pops up ! - Amazing work guys !
Now because the detection API of the TF demo is exposed over http POST request, I have to resort to traditional pooling for object detection . which works but has serious framerate issues.
I am not sure how to do this over a socket and if TF is efficient enough to work with the requirements.

This brings to my next question - is there a way I can use webrtc API in the browser to a locally running server running node-yolo ?

Can't install: `make OPENCV=1` yields errors

zwei:darknet-orkon-fork bene$ make OPENCV=1
mkdir -p obj
mkdir -p backup
mkdir -p results
gcc  -DOPENCV `pkg-config --cflags opencv`  -DGPU -I/usr/local/cuda/include/ -Wall -Wfatal-errors -fPIC -Ofast -DOPENCV -DGPU -c ./src/gemm.c -o obj/gemm.o
In file included from ./src/gemm.c:3:
./src/cuda.h:10:10: fatal error: 'cuda_runtime.h' file not found
#include "cuda_runtime.h"
         ^
1 error generated.
make: *** [obj/gemm.o] Error 1

I installed before openCV without CUDA

brew tap homebrew/science
brew install opencv3 --with-contrib --with-ffmpeg

Yolo Version

Excellent work sir! Is it based in darknet's Yolo V2 or V1?

Thanks for your efforts.

My respect!

Segmentation fault on Tests

I am running node darknetTest.js from test folder after successfully installing darknet and node-yolo bindings as described on Readme. But it gives segmentation fault. My opencv version is 3.3 and node version is v6.11.4

Can't run darknetImageTest.js

Hi!
I tried 1 more time install everything from scratch - starting from downloading your fork of darknet and then installing node yolo.

when I try to run node test/darknetImageTest.js I get the following error:

$ node test/darknetImageTest.js
Couldn't open file: ./cfg/coco.data
Abort trap: 6

if I sudo then:

$ sudo node test/darknetImageTest.js
Password:
/Users/leejoey/node-yolo/node_modules/bindings/bindings.js:83
        throw e
        ^

Error: dlopen(/Users/leejoey/node-yolo/build/Release/darknet.node, 1): Library not loaded: @rpath/libcudart.8.0.dylib
  Referenced from: /Users/leejoey/node-yolo/build/Release/darknet.node
  Reason: image not found
    at Error (native)
    at Object.Module._extensions..node (module.js:597:18)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at bindings (/Users/leejoey/node-yolo/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/Users/leejoey/node-yolo/darknet.js:1:96)
    at Module._compile (module.js:570:32)

any ideas?

Car detected as Parking Meter

I am attaching an image in which a car is detected as a parking meter whereas when using the original darknet library the result is correct. If i am using same cfg file, weight file and data file then why is this error coming.

predictions

How do I render the video to client side browser?

Hello I tried streaming the modified chunks to front end using sockets.io. Here's a code snippet.

on server side

darknet.detect({
  cfg: './cfg/yolo.cfg',
  weights: './yolo.weights',
  data: './cfg/coco.data',
  cameraIndex: 0,
  frameSkip: 0, // how many frames to skip, when calling the callback
}, function(modified, original, detections, dimensions) {
  getPipe(dimensions).write(modified);
  
  io.emit('data', modified);

});

on client side

socket.on('data', data => {
	console.log(data);
	image.src = `data:image/jpeg;base64,${data}`;
});

I'm receiving data in my client side console, but the images are not getting decoded for preview

How to change input format?

You have used a 'ImageDetectionWorker' for detecting object in an image in darknet.cc file as:

'class ImageDetectionWorker : public AsyncWorker {
public:
ImageDetectionWorker(Callback *callback, InputOptions opts)
: AsyncWorker(callback), opts(opts) {}'

I want to change the input format of this and i am not understanding where the opts() in the above code comes from. Can you given the reference??

What do after install

Ok I had installed opencv, your brach darknet and node-yolo.
After download the test file.
How to run ?
your project have few instruction.

git clone fails with current path

$ git clone [email protected]:OrKoN/darknet.git
Cloning into 'darknet'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

no problems when running:

git clone https://github.com/OrKoN/darknet

darknetImageTest.js -> missing dimensions parameter, wrong length of detections

If I run darknetImageTest.js I get the following output:

car: 53%
bicycle: 52%
dog: 56%
1327104 1327104 [ { x: 0.7353335022926331,
    y: 0.2186836153268814,
    w: 0.28237149119377136,
    h: 0.1671832948923111,
    prob: 0.5328023433685303,
    name: 'car' },
  ,
  { x: 0.28434550762176514,
    y: 0.6527453660964966,
    w: 0.2656731605529785,
    h: 0.570385754108429,
    prob: 0.5627787709236145,
    name: 'dog' } ] undefined

IMO there are two small issues:

  1. the dimensions parameter is undefined
  2. the length of the detections array is 2 but should be 3. "bicycle" was detected and is missing in detections.

Installation error

Hi, I have successfully built darknet and was moving on to installing this package, but the node-gyp compilation fails with the following error:

npm install

> @moovel/[email protected] install /home/ramindu/projects/darknet/darknet/node_modules/@moovel/yolo
> node-gyp rebuild

make: Entering directory '/home/ramindu/projects/darknet/darknet/node_modules/@moovel/yolo/build'
  CXX(target) Release/obj.target/darknet/darknet.o
../darknet.cc: In member function ‘virtual void ImageDetectionWorker::HandleOKCallback()’:
../darknet.cc:99:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
     callback->Call(argc, argv);
                              ^
In file included from ../darknet.cc:1:0:
../../../nan/nan.h:1568:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../darknet.cc: In instantiation of ‘void VideoDetectionWorker<T>::HandleProgressCallback(const T*, size_t) [with T = WorkerData; size_t = long unsigned int]’:
../darknet.cc:199:1:   required from here
../darknet.cc:47:21: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
     progressCb->Call(argc, argv);
     ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from ../darknet.cc:1:0:
../../../nan/nan.h:1568:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
  CXX(target) Release/obj.target/darknet/src/demo.o
../src/demo.cc:7:10: fatal error: darknet/network.h: No such file or directory
 #include "darknet/network.h"
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
darknet.target.mk:111: recipe for target 'Release/obj.target/darknet/src/demo.o' failed
make: *** [Release/obj.target/darknet/src/demo.o] Error 1
make: Leaving directory '/home/ramindu/projects/darknet/darknet/node_modules/@moovel/yolo/build'

My environment details are as follows:

node v6.11.4
npm  v3.5.2

What could be the issue here?

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.