/particle-filter

particle filter based object tracking

Primary LanguagePython

Particle Filter

This repo implements a particle filter based object tracking algorithm, file test.avi is a demo showing tracking box and particles, our implementation referenced paper 《An adaptive color-based particle filter》

Here is the pesudocode

pesudocode

Prerequisets

  • cv2
  • numpy

To run this code, just run main.py like python main.py, this will generate a series of pics in folder output, you can use some scripts to transform these pics into a video

You can tune parameters in file ParticleFilter.py, like particle nums, Gaussian distribution's params and color histogram's params etc.

Here is one frame in the tracking process

demo