- Overview
- Documents
Face Detection is a jQuery/Zepto plugin to detect faces on images, videos and canvases to get theirs coordinates.
Source: facedetection.jaysalvat.com
Dec 05, 2014 in Others 4469 views
Face Detection is a jQuery/Zepto plugin to detect faces on images, videos and canvases to get theirs coordinates.
Source: facedetection.jaysalvat.com
1. INCLUDE JS FILES
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="path/to/dist/jquery.facedetection.min.js"></script>
2. HTML
<img id="picture" src="img/face.jpg">
3. JAVASCRIPT
$('#picture').faceDetection({ complete: function (faces) { console.log(faces); } });
Results:
Returns an array of found faces object:
4. OPTIONS
complete — Callback function trigged after the detection is completed
complete: function (faces) { // ... }
error — Callback function trigged on errors
error: function (code, message) { // ... }
Tagged with:
face detection
jquery plugin
detect faces
faces on images
coordinates
canvases
face detection
zepto plugin
Related Articles