Giter Site home page Giter Site logo

sivanspsiva / people-tracking-with-age-and-gender-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sivaprasadnsp/people-tracking-with-age-and-gender-detection

0.0 1.0 0.0 91.06 MB

A combination between people tracking and age and gender detection

Python 100.00%

people-tracking-with-age-and-gender-detection's Introduction

People-tracking-with-Age-and-Gender-detection

A combination between people tracking and age and gender detection

alt text

Abstract

  • Combining people tracking with age and gender detection is a good idea for many and many applications in real life scenarios such as caffe store management to gather the information of customers for further analysis, or in/out people control for security purposes in buildings ...
  • This is just a small step of putting the state-of-the-art image processing techniques together.

Method

  • Firstly, faces are detected in the frame using the famous caffe model res10_300x300_ssd_iter_140000.caffemodel.
  • Secondly, age and gender of every person is predicted also using caffe models age_net and gender_net.
  • Each person is then assigned an ID and tracked over time, even when they are out of the frame for not so long (5 seconds), whenever they come back in the frame, their ID will remain the same.
  • A picture of the person is then saved with the information of him/her.

Requirements

  • Python 3.5
  • cv2
  • imutils

Implementation

  • Run python object_tracker.py (sorry for the name, it should be people_tracker but I was too lazy to change it :))

Result

  • I can get 16fps in my Core i5 desktop with the solution of 640x480.
  • Basically, the available age and gender models are fairly accurate, I've just turned 25 two days ago :).
  • If you want to train your own models for age and gender detection, have a look at https://github.com/dpressel/rude-carnie.

References

A great thank to those who have done fantastic work

Notes

  • Inform me in case you have any problem with running the code.
  • Any related idea is welcome at [email protected]

UPDATE

  • Age and gender detection don't need to be performed every frame. Instead, we can detect every 5 or 10 frames to improve the speed of the program.

people-tracking-with-age-and-gender-detection's People

Contributors

habom2310 avatar

Watchers

James Cloos 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.