Initialized with faces using OpenCV's Haar classifier. TODO: Extension to multiple faces in the video.
This is a C++ implementation of OpenTLD that was originally published in MATLAB by Zdenek Kalal. OpenTLD is used for tracking objects in video streams. What makes this algorithm outstanding is that it does not make use of any training data. This implementation is based solely on open source libraries, meaning that you do not need any commercial products to compile or run it.
A documentation of the internals as well as other possibly helpful information is contained in this master thesis.
cd build/bin
./opentld [video-file]
- OpenCV
- CMake
- libconfig++ (optional)
- Qt4 (optional)
OpenTLD uses CMake to create native build environments such as make, Eclipse, Microsoft Visual Studio. If you need help look at Running CMake.
You can use cmake-gui, if you need a graphical user interface.
Use CMake to build the project. You can use "cmake-gui", if you need a graphical user interface.
Gui
- Specify the source path (root path of the dictionary) and the binary path (where to build the program, out of source build recommended)
- Configure
- Select compiler
- Adjust the options (if needed)
- Configure
- Generate
Command line
If you have uncompressed the source in $OPENTLD, type in a console:
cd $OPENTLD
mkdir ../build
cd ../build
cmake ../$OPENTLD -DBUILD_QOPENTLD=ON -DUSE_SYSTEM_LIBS=OFFCMake options
BUILD_QOPENTLDbuild the graphical configuration dialog (requieres Qt)USE_SYSTEM_LIBSdon't use the included cvblob version but the installed version (requieres cvblob)
Navigate to the binary directory and build the solutions you want (You have to compile in RELEASE mode):
opentldbuild the projectINSTALLinstall the project
Note: vcomp.lib is necessary when you try to compile it with OpenMP support and the
Express versions of MSVC. This file is included in the Windows Server SDK.
Navigate with the terminal to the build directory
makebuild the projectmake installbuild and install the project
brew install pythonbrew install gfortraneasy_install numpybrew install cmakebrew install opencvcmakebuild the project
- Navigate with the terminal into the root dictionary of OpenTLD (OpenTLD/)
- Type
debuild -us -uc - Delete the temporary files in the source tree with
debuild clean