Public | Automated Build

Last pushed: a day ago
Short Description
_/node + node-opencv
Full Description


Note that the upstream node-opencv is not officially compatible with OpenCV 3+.

Stable siomiz/node-opencv:2.4.x is available.

Docker Automated Build Repository/Image for node:latest + opencv 3.2.0

Official Node.js "latest" image + OpenCV 3.2.0 (built from source, not a full stack) for npm install opencv to work.

onbuild tag is available.

(simpler way is to apt-get install libopencv-dev inside a node-based image)

Docker Pull Command
Source Repository

Comments (3)
2 years ago

I tried this out and npm install opencv failed:

docker run -it --rm -v `pwd`:/app siomiz/node-opencv bash

cd /app
npm install --save opencv


make: Entering directory '/app/node_modules/opencv/build'
  CXX(target) Release/
In file included from ../src/OpenCV.h:12:0,
                 from ../src/
../../nan/nan.h:324:27: error: redefinition of 'template<class T> v8::Local<T> Nan::imp::NanEnsureHandleOrPersistent(const v8::Local<T>&)'
   NAN_INLINE v8::Local<T> NanEnsureHandleOrPersistent(const v8::Local<T> &val) {