Giter Club home page Giter Club logo

jointcascade_py's Introduction

Joint Cascade Face Detection and Alignment in Python

Implementing the joint cascade face detector on AFW dataset. And this implementation is based on landmark_py. All the things have benn tested on Ubuntu 14.04.

Dependencies


All of the following modules can be easily installed by pip

PIL
numpy
scipy
scikit-learn
OpenCV

Install script on Ubuntu 14.04

sudo aptitude install python-pip gfortran imagemagick
sudo pip install pillow numpy scipy sklearn
sudo aptitude install python-opencv

Demo on AFW


I have trained a model based on AFW(only contain 337 faces) with 5 non-face images for demo. You should train the model on a big dataset

  1. Download the AFW dataset here
  2. Replace the location of afw by yourself in afw.txt and neg.txt in config folder(Mine is /home/samuel/data)
  3. Change afw_config.py:dataPara:posList, negList by yourself
  • Train on AFW

python -W ignore ./demo_train.py ../config/afw_config.py

  • Detection with the Pretrained AFW Model

python -W ignore ./demo_detect.py ../config/afw_model/train.model ../config/pos.jpg

TODO


  1. Use the non-maximum suppression to find the best face rects instead to merge the rects via cv2.grouprects

References


  1. Face Alignment at 3000 FPS via Regressing Local Binary Features
  2. Joint Cascade Face Detection and Alignment

Contact


If you have any questions, please email [email protected] or creating an issue on GitHub.

jointcascade_py's People

Contributors

samuel1208 avatar

Watchers

 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.