Skip to content

Count the number of people in a video based on facial recognition

Notifications You must be signed in to change notification settings

rizasif/people-counter

Repository files navigation

People Counter

Count the number of people in a video based on facial recognition

Installation

An anaconda environment file is provided. Follow the foloowing steps to easily install all dependencies.

  1. Install anaconda here.
  2. Create the tensorflow environment via YML file provided within the project directory.
    conda env create -f anaconda/environment.yml
    
  3. Activate the environment
    # Ubuntu
    $ source activate tensorflow
    
    # Windows
    $ activate tensorflow
    

Running the program

Follow the steps to run the code:

  1. Place video file into /data folder.
  2. Edit 'VIDEO_NAME' variable in run.py file.
  3. Run the following command:
    python run.py
    
  4. Extract and place trained model files in /model folder. The files can be requested by emailing on contact@rizasif.com. This model is required for age and gender recognition.

Dependencies:

Note: These are provided in the anaconda environment so no need to install 1&2 separately.

  1. face_recognition
  2. Tensorflow
  3. Trained model: You can email me on contact@rizasif.com to receive the trained model for age and gender recognition.

About

Count the number of people in a video based on facial recognition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages