KingMV / camshiftKalman

An object tracking project using camshift and Kalman Filter based on OpenCV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

camshiftKalman

An object tracking project using camshift and Kalman Filter based on OpenCV.

I implement this object tracking algorithm using camshift and Kalman Filter. Three features, hue,saturation and rotation invariant Local Binary Pattern, are used to model the tracking object. Kalman Filter is employed to smooth the motion trajectory and predict the next position when the object is occluded.

Requirements

Usage

For linux :

./camShiftKalman -m option -t option -v option

For windows :

(using cmd change directory to camShiftKalman)
cd path/to/this/drorectory
camShiftKalman -m option -t option -v option

Detail usage :

  -m, --useMouse=[true]    how to choose object to track
  -t, --featureType=[0]    0 -- HUE
  						   1 -- SATURATION_HUE (need to implement)
                           2 -- LBP_HUE (need to implement)
                           3 -- LBP_SATURATION_HUE
  -v, --videoName          the video to track

Screenshot

only show result on one video t1 t2 t3

If we choose another object t4 when the obejct can not be captured t5 when the object appears again t5

About

An object tracking project using camshift and Kalman Filter based on OpenCV


Languages

Language:HTML 77.1%Language:JavaScript 8.9%Language:C++ 7.0%Language:CSS 5.2%Language:Makefile 1.6%Language:QMake 0.2%Language:C 0.1%