Socket
Socket
Sign inDemoInstall

ee-face-detection

Package Overview
Dependencies
114
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ee-face-detection

Detects faces in images and computes a focal point for the image. Helps you crop the right part of the image


Version published
Maintainers
2
Created

Readme

Source

ee-face-detection

Detects faces in images and returns a focal point. Is used to crop the right part of an image. You should use this in conjunction with the ee-image-worker package which has support for cropping using focal points.

The face-detector runs in a separate process & is multithreaded. Its really slow because it does a set of different detections on each image :(

installation

You have first to install native dependecies

ubuntu linux

sudo apt-get install libcv-dev libopencv-dev libhighgui-dev libjpeg-dev libpng-dev libwebp-dev libtiff-dev

mac

sudo brew install opencv
sudo port install jpeg libpng tiff webp

usage

var FaceDetection = require('ee-face-detection');


// create an instacne
var detector =  new FaceDetection();


// get focal point for an image
detector.detect(imageBuffer, function(err, focalPoint) {
    if (err) log('#Fail :(');
    else if (focalPoint) log('Yeah, we got it! x %s, y %s :)', focalPoint.x, focalPoint.y);
    else log('sorry, failed to detect any faces in this image ...'');
});

Keywords

FAQs

Last updated on 04 Aug 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc