Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/macacajs/nodecv
Node.js binding to OpenCV
https://github.com/macacajs/nodecv
nodejs opencv
Last synced: about 1 month ago
JSON representation
Node.js binding to OpenCV
- Host: GitHub
- URL: https://github.com/macacajs/nodecv
- Owner: macacajs
- License: mit
- Created: 2017-04-09T14:58:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-04T12:08:06.000Z (over 6 years ago)
- Last Synced: 2024-04-14T11:54:20.171Z (7 months ago)
- Topics: nodejs, opencv
- Language: C++
- Homepage: https://macacajs.github.io/guide/computer-vision.html
- Size: 331 KB
- Stars: 55
- Watchers: 6
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE
Awesome Lists containing this project
README
# nodecv
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![node version][node-image]][node-url]
[![npm download][download-image]][download-url][npm-image]: https://img.shields.io/npm/v/nodecv.svg?style=flat-square
[npm-url]: https://npmjs.org/package/nodecv
[travis-image]: https://img.shields.io/travis/macacajs/nodecv.svg?style=flat-square
[travis-url]: https://travis-ci.org/macacajs/nodecv
[coveralls-image]: https://img.shields.io/coveralls/macacajs/nodecv.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/macacajs/nodecv?branch=master
[node-image]: https://img.shields.io/badge/node.js-%3E=_6-green.svg?style=flat-square
[node-url]: http://nodejs.org/download/
[download-image]: https://img.shields.io/npm/dm/nodecv.svg?style=flat-square
[download-url]: https://npmjs.org/package/nodecv> Node.js binding to [OpenCV](//github.com/opencv/opencv)
## Installment
```bash
$ npm i nodecv --save-dev
```## Usage
Image IO:
```javascript
nodecv.imread(imagePath, callback);
nodecv.imread(buffer, callback);
nodecv.imwrite(outputPath, mat);
```Image Dissimilarity:
```javascript
nodecv.imageDissimilarity(mat, mat, callback);
```Match:
```javascript
nodecv.matchTemplate(mat, mat, method, callback);
nodecv.findPairs(mat, mat, callback);
```Mat properties:
```javascript
im.width();
im.height();
im.size();
im.ellipse(x, y, width, height);
im.rectangle(x, y, width, height, color, thickness);
```Cascade detect:
``` javascript
const haarcascade = 'path/to/haarcascade.xml';
const cascade = new nodecv.CascadeClassifier(haarcascade);
cascade.detectMultiScale(mat, callback);
```NodeCV follow [Google's C++ style conventions](//google.github.io/styleguide/cppguide.html), and [[email protected]](http://docs.opencv.org/2.4.13.2/).
## Use As Service
[Deploy with Docker](//github.com/macacajs/nodecv-server)
![](http://wx3.sinaimg.cn/large/6d308bd9gy1fek6oa9i3vj21kw0zrn4y.jpg)
## Test
```bash
$ make test
```## Contributors
|[
xudafeng](https://github.com/xudafeng)
|[
Chenxin](https://github.com/Chenxin)
| :---: | :---: |This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto upated at `Fri May 04 2018 20:07:33 GMT+0800`.
## License
The MIT License (MIT)