Final project for the Applied Estimation course at KTH. We use a Particle Filter estimation algorithm to track the head of "The Annoying Bird" charter in a scene of "Kalle Ankas Jul".
In this repository you will find the following files and folders:
-
annoying_bird.mov: The video we are going to analyze. -
computer_vision.py: Contains the implementation of the computer vision functions used to extract the measurements. -
particle_filter.py: Contains the implementation of the functions related to the Particle Filter. -
visualizer.py: Contains the implementation of the functions that invokes the Particle Filter on the video. -
simulate.py: The main function that runs the algorithm with the selected parameters. -
test_cv.py: tester script used to debugcomputer_vision.py. -
test_pf.py: tester script used to debugparticle_filter.py. -
test_vis.py: tester script used to debugvisualizer.py. -
frames/: folder where frames can be saved.
To run the project, open simulate.py and change the parameters at your pleasure.
Then, run the same file with
python3 ./simulate.py
Pressing spacebar the video will stops for 10 seconds. In this situations, you can press s key to take a screenshot, that will be saved in frames/.
Alex Pegoraro
Theresa Johansson