opencv / 1.0.0 last updated a year ago created on Jan 19th 2012
Install
npm install --save opencv
Clone
git clone git@github.com:peterbraden/node-opencv.git
maintainers
versions
19 total
| 1.0.0 | a year ago | peterbraden |
| 0.7.0 | a year ago | peterbraden |
| 0.6.0 | a year ago | peterbraden |
| 0.5.0 | 2 years ago | peterbraden |
| 0.4.0 | 2 years ago | peterbraden |
| 0.3.1 | 2 years ago | peterbraden |
| 0.3.0 | 2 years ago | peterbraden |
| 0.2.0 | 2 years ago | peterbraden |
| 0.1.0 | 3 years ago | peterbraden |
| 0.0.12 | 3 years ago | peterbraden |
| 0.0.11 | 3 years ago | peterbraden |
| 0.0.10 | 3 years ago | peterbraden |
| 0.0.9 | 3 years ago | peterbraden |
| 0.0.8 | 3 years ago | peterbraden |
| 0.0.7 | 3 years ago | peterbraden |
| 0.0.4 | 3 years ago | peterbraden |
| 0.0.3 | 4 years ago | peterbraden |
| 0.0.2 | 4 years ago | peterbraden |
| 0.0.1 | 4 years ago | peterbraden |
readme
node-opencv
OpenCV bindings for Node.js. OpenCV is the defacto computer vision library - by interfacing with it natively in node, we get powerful real time vision in js.
People are using node-opencv to fly control quadrocoptors, detect faces from webcam images and annotate video streams. If you're using it for something cool, I'd love to hear about it!
Install
You'll need OpenCV 2.3.1 or newer installed before installing node-opencv.
Then:
Examples
Face Detection
API Documentation
Matrix
The matrix is the most useful base datastructure in OpenCV. Things like images are just matrices of pixels.
Creation
Or if you're thinking of a Matrix as an image:
Or you can use opencv to read in image files. Supported formats are in the OpenCV docs, but jpgs etc are supported.
If you need to pipe data into an image, you can use an ImageDataStream:
If however, you have a series of images, and you wish to stream them into a stream of Matrices, you can use an ImageStream. Thus:
Note: Each 'data' event into the ImageStream should be a complete image buffer.
Accessing Data
Save
or:
Image Processing
Simple Drawing
Object Detection
There is a shortcut method for Viola-Jones Haar Cascade object detection. This can be used for face detection etc.
For convenience in face recognition, cv.FACE_CASCADE is a cascade that can be used for frontal face recognition.
Also:
Contours
Using Contours
findContours returns a Contours collection object, not a native array. This object provides
functions for accessing, computing with, and altering the contours contained in it.
See relevant source code and examples
MIT License
The library is distributed under the MIT License - if for some reason that doesn't work for you please get in touch.
