nodecv

1.1.2 • Public • Published

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

License

The MIT License (MIT)

/nodecv/

    Package Sidebar

    Install

    npm i nodecv

    Weekly Downloads

    22

    Version

    1.1.2

    License

    MIT

    Last publish

    Collaborators

    • jarekchen
    • xudafeng