Skip to content

oguzhanmeteozturk/BlobTracking

 
 

Repository files navigation

A background subtraction based tracking algorithm using OpenCV. It depends on OpenCv (http://opencv.org/) and Boost libraries (http://www.boost.org/).

Usage

In order to run the tracker, use the following command:

Windows

BlobTracker.exe -d config.cfg

Linux

./BlobTracker -d config.cfg

Config Params

config.cfg has all the configurations for running the tracker, here are the few things that you would have to change.

  * "Input_Video_Directory"   		---> where the video files are stored
  * "Input_Video_Name_List"   		---> name of the video files (comma separated)
  * "Input_Camera_ID_List"	  		---> camera id for internal usage( use sequential numbers)
  * "Start_Frame_Index"		  		---> starting frame for the video to be processed (0 to start from the beginning)
  * "Number_Of_Frames"		  		---> number of frames to be tracked (-1 for the entire video)

  * "OutPut_Video_Directory"  		---> where the output files will be stored (also the track outputs in text format)
  * "Log_File_Name"			  		---> name of the log file (log file will be generated in the output folder)
  * "Display_Intermediate_Result"   ---> whether to display intermediate output on the dialog box or not
  * "Save_Intermediate_Result"		---> whether to save the intermediate results on the output directory

  * "Down_Scale_Image"				---> whether to downscale the image by a factor or 2 or not (use it for speed)

  * "FG_Train_Frames"				---> number of frames used for training the background model

Output

Output videos will be created in the specified output folder ("OutPut_Video_Directory").

  * input_file_name.extension_BT.avi contains the learned background video
  * input_file_name.extension_FG.avi shows the foreground region

  * input_file_name.extension_record.txt stores the tracking results in the following format:[ frameNumber, xCentroid, yCentroid, width, height, objectId, timestamp(seconds) ]

Contact

[1] Santhoshkumar Sunderrajan( santhosh@ece.ucsb.edu) Website: http://vision.ece.ucsb.edu/~santhosh/

Bibtex

If you use the code in any of your research works, please cite the following papers:

@inproceedings{sunderrajan2013context,
  title={Context-Aware Graph Modeling for Object Search and Retrieval in a Wide Area Camera Network},
  author={Sunderrajan, Santhoshkumar and Xu, Jiejun and Manjunath, BS},
  booktitle={Proc. International Conference on Distributed Smart Cameras},
  year={2013}
}

@article{xu2013graph,
  title={Graph-Based Topic-Focused Retrieval in Distributed Camera Network},
  author={Xu, Jiejun and Jagadeesh, Vignesh and Ni, Zefeng and Sunderrajan, Santhoshkumar and Manjunath, BS},
  year={2013},
  publisher={IEEE}
}

@article{sunderrajanucsb,
  title={UCSB UCR VCG TRECVID 2012},
  author={Sunderrajan, Santhoshkumar and Hasan, Mahmudul and Pourian, Niloufar and Zhu, Yingying and Manjunath, BS and Chowdhury, Amit Roy}
}

About

A background subtraction based tracking algorithm using OpenCV.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 94.2%
  • C 4.6%
  • Makefile 1.2%