New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ee-face-detection

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by120%
Maintainers
2
Weekly downloads
 
Created
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

Package last updated on 04 Aug 2015

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc