Need help with lct-tracker?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

145 Stars 50 Forks 28 Commits 9 Opened issues


LCT2.0 in IJCV 2018

Services available


Need anything else?

Contributors list

# 250,017
28 commits

Adaptive Correlation Filters with Long-Term and Short-Term Memory for Object Tracking (IJCV 2018)

Chao Ma, Jia-Bin Huang, Xiaokang Yang, and Ming-Hsuan Yang

Project Webpage

Long-Term Correlation Tracking (CVPR 2015)

Chao Ma, Xiakang Yang, Chongyang Zhang, and Ming-Hsuan Yang

Note that this is LCT2.0, we made partial improvements in this version, where the randn fern classifier in LCT1.0 (CVPR 2015) is replaced by an SVM classifier, and the color channels are quantized as four bits for feature.


  1. Unzip code or clone it from

  2. Add the vl_feat toolbox in your current path

  3. If you don't have the object tracking benchmark (OTB) dataset yet, run 'download_videos.m' (it will automatically download the OTB-100 sequences)

  4. Run utility/compile.m to comile calcIIF.cpp and im2colstep.c. These files are tested with opencv3.0. Notice the compatibility issue if your opencv version is earlier than 3.0

  5. The source files "assignToBins1.c", "gradientMex.cpp", 'imResample.cpp' are from Pitor Dollar's toolbox. If the compiled files do not work on your system, get it from


The script 'runtracker' without parameters is to choose a video and test the proposed tracker. The start interface is 'runtracker'.

We also provide the interface 'run_lct2' to reproduce our results on OBT tracking benchmark

run_tracker Without any parameters, will ask you to choose a video, and track the objects, and show the results in an interactive figure. Press 'Esc' to stop the tracker early. You can navigate the video using the scrollbar at the bottom.

run_tracker VIDEO Allows you to select a VIDEO by its name. 'all' will run all videos and show average statistics. 'choose' will select one interactively.

For the actual tracking code, check out the 'tracker_lct' function.

Though it's not required, the code will make use of the MATLAB Parallel Computing Toolbox automatically if available.


[1] J. F. Henriques, R. Caseiro, P. Martins, J. Batista, "High-Speed Tracking with Kernelized Correlation Filters", TPAMI 2015.

[2] J. F. Henriques, R. Caseiro, P. Martins, J. Batista, "Exploiting the Circulant Structure of Tracking-by-detection with Kernels", ECCV 2012.

[3] Y. Wu, J. Lim, M.-H. Yang, "Online Object Tracking: A Benchmark", CVPR 2013. Website:

[4] P. Dollar, "Piotr's Image and Video Matlab Toolbox (PMT)". Website:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.