A KCF tracker implementation which uses cnn feature as core.
This project was inspired from tiago-cerveira/KCF-Tracker-CNN-Features.But change the backend from theano + lasagne to pytorch.And add muti-target tracing function.
- Support Muti-Target tracking
- Support tripwire and restricted zone checking
- Support CUDA accleration
- Use PyTorch as cnn backend
- Anaconda: Python 3.7.5
- numpy == any
- opencv == 3.4.5.20
- PyTorch == any
- CUDA == 9.1
- cuDNN == 9.1
python main.py <path of the video file>
tracker = KCFMultiTracker(True, True)
tracker.init(rois, frist_frame)
while not_ended:
success, result_rois = tracker.update(next_frame)
next_frame = get_next_frame()