Count the number of people in a video based on facial recognition
An anaconda environment file is provided. Follow the foloowing steps to easily install all dependencies.
- Install anaconda here.
- Create the tensorflow environment via YML file provided within the project directory.
conda env create -f anaconda/environment.yml
- Activate the environment
# Ubuntu $ source activate tensorflow # Windows $ activate tensorflow
Follow the steps to run the code:
- Place video file into
/data
folder. - Edit 'VIDEO_NAME' variable in
run.py
file. - Run the following command:
python run.py
- 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.
Note: These are provided in the anaconda environment so no need to install 1&2 separately.
- face_recognition
- Tensorflow
- Trained model: You can email me on contact@rizasif.com to receive the trained model for age and gender recognition.