Giter VIP home page Giter VIP logo

unified-face-landmark-and-gender-recognition's Introduction

Face Detection-Landmarks-Gender Recognition

License: MIT

Face Detection, landmark detection and gender classification in a unified workflow

Requirements

  1. keras
  2. dlib
  3. imutils
  4. cv2
  5. numpy
  6. sklearn
  7. scipy
  8. pandas
  9. pickle

Run

  1. Unzip pre-trained weights into model/ from here
  2. cd into src/ directory
  3. python deploy.py with the default settings
  4. python deploy.py --model 'DL' with Deep-learning based model for gender classification
  5. python deploy.py --model 'DL' --image 'Path to image' , sample images are present in '../data/'
  6. python deploy_video.py for video-camera based version with PCA trained Gender classifier

Note:

  1. Face landmarking is done using dlib
  2. Gender Classifier based on Deep Learning, and PCA are both trained on LFW deep funelled dataset
  3. Images in ../data/ with prefix '0_{}.jpg' are from LFW and '1_{}.jpg' from COCO dataset
  4. Deep Learning based method is two times(2x) slower than simpler model just using PCA, but Deep Learning based method for gender classification is more accurate. See performance of both the models on ../data/0_2.jpg for the image from same distribution(LFW), and ../data/1_1.jpg for image from a different distribution(COCO)
  5. The model works well with multiple images in a frame, see ../data/0_6.jpg

Credits

Adrian Rosebrock for imutils

unified-face-landmark-and-gender-recognition's People

Contributors

dhingratul avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

unified-face-landmark-and-gender-recognition's Issues

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.