Face tracking using HMM and particle filtering based on facial contour and skin color.
You can launch the project with the main.py
script in the src
folder.
With the --source
argument you can specify the source of the video :
- Pre-loaded video sequence available ine the data folder, for example
--source sequence1
- Webcam live feed :
--source webcam
If you want to display the full particles and cercles, use the --fulldisplay
argument.
-
sequence 1 with full display :
python3 main.py --source sequence1 --fulldisplay
-
live webcam with standard display :
python3 main.py --source webcam
- You can play with the
particle_number
andstd
variables from themain.py
script to adjust the particule number and the standard deviation of the motion equation. - You can also play with the
threshold
variable in theobservation.py
script to play with the threshold of likelihood a particle must have to be considered as skin color.
This scripts runs on Python 3 using the following libraries :
- scikit-image
- opencv
- matplotlib
- numpy
- scipy
Pascal Jauffret, Alexis Rosuel & Duc-Vinh Tran