Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Python interface for the Correlation Tracker #13

Merged
merged 6 commits into from
May 22, 2015

Conversation

patricksnape
Copy link
Contributor

This adds a very simple Python interface for the correlation tracker. It also handles adding the drectangle class and a small update to the GUI code so that drectangles can be visualized.

The word detector didn't make much sense!
The correlation tracker deals with the drectangle
(double rectangle) class which currently isn't wrapped. Therefore,
I add the drectangle class and refactor rectangles into their
own file. I also added a load of methods on rectangle that might
be useful such as intersection/contains/area etc.
This aids an API for the correlation based tracker that Davis
recently added to Dlib. I've made sure to allow overrides for
passing normal rectangles rather than drectangles (which isn't
currently supported in the Dlib C++ API). This is mostly
because I imagine people might initialize the tracking using
something like a bounding box from a detector (e.g.
load_frontal_face_detector).
Added the missing documentation for the correlation tracker.
Didn't realise that the tracker returned the side lobe ratio,
so fixed the API to return it properly.
This is useful for visualizing the tracking results.
This replicates the c++ example.
@davisking
Copy link
Owner

Awesome. I'll merge this in later tonight when I get home.

davisking added a commit that referenced this pull request May 22, 2015
Add a Python interface for the Correlation Tracker
@davisking davisking merged commit 03cfc68 into davisking:master May 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants