Dlib's correlation-based object tracker
Switch branches/tags
Nothing to show
Clone or download
Latest commit 897f312 Dec 4, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Update README.md Dec 4, 2018
multi_object_tracking.py Create multi_object_tracking.py Dec 4, 2018
object_tracking.py Update object_tracking.py Dec 4, 2018
video.mp4 Add files via upload Dec 2, 2018

README.md

correlation_object_tracker

Dlib's correlation-based object tracker: http://blog.dlib.net/2015/02/dlib-1813-released.html

The input is a bounding box of the object and then the tracker automatically tracks the object based on the correlation of pixels.

NOTE: SELECT THE BOUNDING BOX BY DRAGGING FROM TOP LEFT TO BOTTOM RIGHT OF THE OBJECT, OTHERWISE IT'LL THROW AN ERROR.

Usage:

Single object tracking:

python video_object_track.py -video video.mp4 -width 800 -height 600

Multi object tracking:

python multi_video_object_track.py -video video.mp4 -width 800 -height 600

The default width is 800 and height is 600.

Run the script, press 'p' to pause the video when you want, then select the bounding box(es) by dragging with the mouse and press 't' to start tracking. Press 't' again to stop tracking.

Controls:

  • Press 'p' to pause/unpause the video.
  • Press 's' to skip frames.
  • Press 't' to toggle tracking.
  • Press 'q' to quit.
  • Drag with mouse to select a bounding box.