Giter VIP home page Giter VIP logo

face-detection's Introduction

Face Detection: Face detection implementation with dlib using HOG + SVM and CNN + Deep learning.

I was just looking for different face detection methods and found a useful library for it called : dlib python bindings

Most of tutorials will provide only one method of face detection which is HOG+SVM based.

While the HOG+SVM based face detector has been around for a while and has gathered a good amount of users I accidentally came across it while browsing through dlib’s github repository.

It's just a bunch of python scripts. Together they:

  1. Detect multiple faces using HOG + SVM method in real time as well as from image
  2. Detect multiple faces using CNN method in real time as well as from image
  3. Result comparison
  4. Face detection with deep learning models supported in CV2

The comparison of two different face detectors are as follows :

  • Dlib's get_frontal_face : based on HOG + SVM classifier

    • It's so much fast so can be used in real time
    • Unable to detecting faces at odd angles
    • Most of the computer vision engineers use
  • Dlib's cnn_face_detection_model_v1 : CNN architecture trained model mmod_human_face_detector.dat

    • It's very poor in speed and computation
    • Far better than dlib's inbuilt model as it's more accurate
    • Less popular

Dataset used to train model : http://dlib.net/files/data/

Installation

To start with project just follow the few steps

$ git clone https://github.com/keyurr2/face-detection.git
$ pip install -r requirements.txt
$ cd into <project-folder>
$ python <script-name> -i <image> -w <weightage>

NOTE: How to run each script is mentioned in script itself.

Screenshot

HOG+SVM vs CNN for Face Detection

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

face-detection's People

Contributors

keyurr2 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.