Overview
facedetector is a javascript library for real-time face detection.
This library is based on the work of Martin Tschirsich's js-objectdetect.
Watch this video for a short demonstration.
facedetector is distributed under MIT license. The included *.js files are subject to their own licenses.
Functions
- Multiple faces can be detected
- Implemented a simple tracking algorithm
Example
Online realtime-face-detecting example here.
https://riversun.github.io/facedetector/example/index.html
Usage
var videoTag=document;var faceDetector = video: videoTag flipLeftRight: false flipUpsideDown: false ; faceDetector; faceDetector; faceDetector; //after getUserMedia faceDetector;
Run on node.js
You can import library with npm.
Install
npm install facedetector
Run on browser
Download actual files
<script src="FaceDetector.js"></script>