Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geraldoramos/face-detector
A simple module to detect faces from an image URL or file (path)
https://github.com/geraldoramos/face-detector
avatar-validator face-detection face-detector face-recognition face-recognizer opencv
Last synced: 2 months ago
JSON representation
A simple module to detect faces from an image URL or file (path)
- Host: GitHub
- URL: https://github.com/geraldoramos/face-detector
- Owner: geraldoramos
- License: gpl-3.0
- Created: 2017-07-11T22:15:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-11T22:51:32.000Z (over 7 years ago)
- Last Synced: 2024-10-07T20:48:46.896Z (3 months ago)
- Topics: avatar-validator, face-detection, face-detector, face-recognition, face-recognizer, opencv
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# face-detector
A simple NPM module to detect faces. The module will return the number of recognizable faces from a given image URL or path.Opencv is required.
# Usage
**Install the Module**
```
npm install face-detector
```**Example Using an URL**
```javascript
const face = require('face-detector')var imageUrl = 'https://avatars2.githubusercontent.com/u/5693297?v=3&s=400'
face.detect(imageUrl,function(result){
console.log(result)})
```**Example Using a Path**
```javascript
const face = require('face-detector')var imagePath = './image.jpg'
face.detect(imagePath,function(result){
console.log(result)})
```