🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

face-detector

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

face-detector

A simple module to detect recognizable faces in an image url or file(path)

1.0.4
latest
Source
npm
Version published
Weekly downloads
6
200%
Maintainers
1
Weekly downloads
 
Created
Source

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

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

const face = require('face-detector')

var imagePath = './image.jpg'

face.detect(imagePath,function(result){
  console.log(result)

})

Keywords

face

FAQs

Package last updated on 11 Jul 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