JSPM

face-detector

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q60798F
  • License GPL

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

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 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)

})