Ask Your Question

How do you use OpenCV TLD from Python?

asked 2014-12-05 18:04:55 -0500

Cerin gravatar image

According to the release docs for OpenCV 3.0.0, it includes an implementation of the Tracking-Detection-Learning algorithm. There's even some very basic docs for the C++ code.

I downloaded and compiled the 3.0.0-beta, including the Python wrapper, and it seems to have succeeded, and although I can run most of the Python samples (some appear to be broken and/or not updated for 3.0.0), I can't find any way to access and TLD functionality through the Python wrapper. I can't even find references to it in the code.

Is it actually included in the 3.0.0 release, and if so, how do I access it?

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted

answered 2015-08-28 05:44:03 -0500

tonicze gravatar image

There is no wrapper available (yet?) for TLD. What you could do is to wrap the C++ library with some Python code. For example: Cython or Python C API

edit flag offensive delete link more


cython won't work with opencv (heavily c++ based)

berak gravatar imageberak ( 2015-08-28 05:48:16 -0500 )edit

answered 2014-12-07 04:43:36 -0500

Viatorus gravatar image

Have a look here:

In the final release it should be also included.

edit flag offensive delete link more

answered 2016-02-03 22:28:00 -0500

ILA gravatar image


I've built and installed the contrib version of the 3.1.0. Are there still no wrappers for Python for TLD or has anything changed?

edit flag offensive delete link more


Hey @ILA did you manage to find any Python wrappers?

dtbaker gravatar imagedtbaker ( 2016-04-06 21:52:25 -0500 )edit

answered 2016-06-27 18:19:35 -0500

74gee gravatar image
edit flag offensive delete link more

answered 2014-12-08 23:02:19 -0500

Petty gravatar image

Grab the "contrib" repository and follow the instructions on how to add it to your build.

edit flag offensive delete link more

Question Tools


Asked: 2014-12-05 18:04:55 -0500

Seen: 2,227 times

Last updated: Aug 28 '15