0.2.5 • Published 8 years ago
copterface v0.2.5
Copterface
Facial recognition for Parrot AR Drone 2.0 
Installing
npm install copterfaceor checkout from github
git clone git@github.com:paulhayes/copterface.gitRunning Example
node node_modules/copterface/example.jsUsing the library
Add it to your node project
npm install copterface --saveHere's a simple example, showing how you can use copterface
const client = arDrone.createClient({imageSize:"160x90"});
const pngStream = client.getPngStream();
var copterface = new Copterface(pngStream,{},function(info){
console.log(info);
});
copterface.start();CopterFace(pngStream,options,callback)
options an object with the following optional key/value pairs :
outputImage( boolean ), whether to generate a debug png and include in the info object passed to callback.
callback an function that recieves the info object :
info.rectsan array of normalized rects for each face identifedinfo.imageincluded if the outputImage flag is set to true. This is a PNG object that has had it's pack method called and will be emitting 'data' and 'end' events.