Socket
Book a DemoInstallSign in
Socket

copterface

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

copterface

Created during a nodecopter hackday in Brighton. This script attempts to position an ar-drone so that is center any face detected using opencv in the center of it's field of vision. EXPERIMENTAL

latest
Source
npmnpm
Version
0.2.5
Version published
Maintainers
1
Created
Source

Copterface

Facial recognition for Parrot AR Drone 2.0 Build Status

Installing

npm install copterface

or checkout from github

git clone git@github.com:paulhayes/copterface.git

Running Example

node node_modules/copterface/example.js

Using the library

Add it to your node project

npm install copterface --save

Here'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.rects an array of normalized rects for each face identifed
  • info.image included 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.

FAQs

Package last updated on 09 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts