/opencv-express

Template for using opencv-3.4.1 + opencv-contrib with express.js and docker

Primary LanguageJavaScriptMIT LicenseMIT

opencv-express

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

Build the image:

docker-compose build

Run:

docker-compose up

Docker image:

~353mb (compressed size: ~124mb)

  • ubuntu: 16.04
  • nodejs: v9.8.0
  • npm: v5.6.0
  • opencv4nodejs: 3.3.1

Set up your own image:

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