Package Exports
- face-detector
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (face-detector) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
face-detector
A simple NPM module to detect recognizable faces in an image url or file(path). Opencv is a requirement.
Usage
Just import this module and use a function to detect faces from an image url or image path. The module will return the number of recognizable faces in a given image.
npm install face-detectorUsing a URL
const faceDetect = require('face-detector')
var imageUrl = 'https://avatars2.githubusercontent.com/u/5693297?v=3&s=400'
faceDetect.check(imageUrl,function(result){
console.log(result)
})Using a path
const faceDetect = require('face-detector')
var imagePath = './image.jpg'
faceDetect.check(imagePath,function(result){
console.log(result)
})