This is an example of how to use opencv4nodejs in your web apps with express.js or any other serverside node.js framework. A minimalistic docker image is provided with opencv-3.4.1 and opencv_contrib-3.4.1 + node.js environment set up (opencv4nodejs globally installed).
docker-compose build
docker-compose up
~353mb (compressed size: ~124mb)
- ubuntu: 16.04
- nodejs: v9.8.0
- npm: v5.6.0
- opencv4nodejs: 3.3.1
If you want to build your own docker image or use a different OpenCV version, you can pull one of the OpenCV 3.x base images: https://hub.docker.com/u/justadudewhohacks/.