KSP: Multiple Object Tracker Using K-Shortest Paths
This code implements a multiple object tracker based on the k-shortest paths algorithm. Its input consists in a set of probabilistic occupancy maps, that is, for every time frame, a set of occupancy probabilities, one for each of the potential target locations. Such input data is usually produced by an object detector.
The KSP object tracking algorithm is able to track an unknown and varying number of objects. Unlike other related methods, it operates on the full set of potential target locations, and not just on the detections themselves. This characteristic allows it to handle missing detections and false positives well.
Installation and test
The program should compile on any modern GNU/Linux system. Its only external library requirement is the Boost library, which needs to be installed along with its headers. To compile the program, simply use the make command.
To run a simple test on occupancy maps provided in the archive just type
./ksp test.ksp
It will generate a result file ksp-out.dat in the current directory. An alternate output file name can be specified with the option -o.
Configuration file
The program relies on a configuration file that contains all the parameters needed for applying the tracker. Below is a description of the syntax of this file. Note that the lines starting with a character # are considered as comments and ignored.
An example configuration file named test.ksp is provided for convenience. It performs tracking on the probabilistic occupancy maps stored in the folder proba. Note that this data has been generated with the POM people detector.
Data sets
Some of the multi-camera video sequences, that we acquired to test our people detection and tracking algorithms are available for download.
Code
The code is available in the following repository:
https://github.com/cvlab-epfl/pyKSP
References
For more information about the KSP algorithm, please check the following article:
Please note that the publication lists from Infoscience integrated into the EPFL website, lab or people pages are frozen following the launch of the new version of platform. The owners of these pages are invited to recreate their publication list from Infoscience. For any assistance, please consult the Infoscience help or contact support.
Multiple Object Tracking using K-Shortest Paths Optimization
J. Berclaz; E. Turetken; F. Fleuret; P. Fua
IEEE Transactions on Pattern Analysis and Machine Intelligence. 2011. Vol. 33, p. 1806–1819. DOI : 10.1109/TPAMI.2011.21.License
The source code is available upon request for academic purposes only and is distributed under a proprietary non-commercial license. If you are interested in using this algorithm in a commercial product, you can contact us to purchase a commercial license.