Peter Braden cbd8a1cdb1 WIP
2012-01-23 23:49:12 -08:00
2012-01-23 23:37:59 -08:00
WIP
2012-01-23 23:49:12 -08:00
2012-01-23 23:21:51 -08:00
2012-01-23 23:43:12 -08:00
2012-01-14 09:14:00 -08:00
2012-01-19 16:41:29 -08:00
2012-01-19 18:23:16 -08:00
2012-01-23 23:32:50 -08:00
WIP
2012-01-18 01:37:09 -08:00
2012-01-23 23:43:12 -08:00
WIP
2012-01-23 19:04:33 -08:00

node-opencv

Build Status

OpenCV bindings for Node.js

Install

You'll need OpenCV installed. I'm using v2.2 because I couldn't get 2.3 to compile, but it should theoretically work with 2.3

Then:

    npm install opencv

Or to build the repo:

    node-waf configure && node-waf build

Examples

Face Detection

    var im = cv.readImage("./examples/test.jpg")

    im.faceDetect("./examples/haarcascade_frontalface_alt.xml", {}, function(err, faces){  
      for (var i=0;i<faces.length; i++){
        var x = faces[i]
        im.ellipse(x.x + x.width/2, x.y + x.height/2, x.width/2, x.height/2);
      }
      im.save('./out.jpg');   
             
    });

WIP

This is a WIP. I've never written C++ before so the code may be interesting - if I'm doing stuff wrong please feel free to correct me.

Description
OpenCV Bindings for node.js
Readme 11 MiB
Languages
C++ 80.9%
JavaScript 17.7%
Python 1.2%
Makefile 0.1%