Skip to content
Node.js binding to OpenCV
C++ JavaScript Python Makefile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib first commit Apr 9, 2017
src update threshold of pairs Dec 17, 2017
test add fixture image Apr 21, 2017
.dockerignore
.gitignore
.jshintignore first commit Apr 9, 2017
.jshintrc
.npmignore
.travis.yml
Dockerfile
HISTORY.md
LICENSE tweak project Aug 18, 2017
Makefile fix ci Apr 11, 2017
README.md update readme May 4, 2018
binding.gyp
entrypoint.sh add docker Apr 11, 2017
index.js first commit Apr 9, 2017
package.json update readme May 4, 2018
sources.list add docker Apr 11, 2017

README.md

nodecv

NPM version build status Test coverage node version npm download

Node.js binding to OpenCV

Installment

$ npm i nodecv --save-dev

Usage

Image IO:

nodecv.imread(imagePath, callback);
nodecv.imread(buffer, callback);
nodecv.imwrite(outputPath, mat);

Image Dissimilarity:

nodecv.imageDissimilarity(mat, mat, callback);

Match:

nodecv.matchTemplate(mat, mat, method, callback);
nodecv.findPairs(mat, mat, callback);

Mat properties:

im.width();
im.height();
im.size();
im.ellipse(x, y, width, height);
im.rectangle(x, y, width, height, color, thickness);

Cascade detect:

const haarcascade = 'path/to/haarcascade.xml';
const cascade = new nodecv.CascadeClassifier(haarcascade);
cascade.detectMultiScale(mat, callback);

NodeCV follow Google's C++ style conventions, and opencv@2.4.13.2.

Use As Service

Deploy with Docker

Test

$ make test

Contributors


xudafeng


Chenxin

This project follows the git-contributor spec, auto upated at Fri May 04 2018 20:07:33 GMT+0800.

License

The MIT License (MIT)

You can’t perform that action at this time.