This project implements Codebook model to count people on a video.
- Numpy
- OpenCV
- Create a folder with your training samples. Add the path to this folder on
DIR_TRAIN
atribute oncodebook.py
file. - Create a folder with you testing samples. Adds the path to this folder on
DIR_TEST
atribute oncodebook.py
file
You can change hyperparameters used on Codebook
model on codebook.py
file.
- Train your codebooks running
train_codebooks.py
file.
$ python train_codebooks.py
- Create your foreground/background image file running
test_codebooks.py
file.
$ python test_codebooks.py
- Count the number of people on a specific file running
count_people.py
file. Change the constantFILE_NAME
to the path of the foreground/background image you are using.
$ python count_people.py
This project is licensed under the GPL-3.0 License - see the LICENSE.md file for details