Skip to content

Commit

Permalink
Compilation under Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
zk00006 committed Apr 13, 2011
1 parent e66daf4 commit 4649a5d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 27 deletions.
40 changes: 16 additions & 24 deletions README
Original file line number Diff line number Diff line change
@@ -1,37 +1,29 @@
TLD source code
===============

Join supporting discussion group at http://groups.google.com/group/opentld

This is the official source code to the TLD algorithm. TLD is an algorithm for tracking of unknown objects in unconstrained video streams. The object of interest is defined by a bounding box in a single frame. TLD simultaneously tracks the object, learns its appearance and detects it whenever it appears in the video.

You are allowed to use TLD under the terms of the GPL version 3.0. It means that any distributed project that includes or links any portion of TLD source code has to be released with the source code under the GPL version 3.0 license or later. The details of the license can be found in file LICENSE. If you wish to use this code or any of its part for commercial purposes contact zdenek.kalal@gmail.com.

Please cite our CVPR'10 paper if you use the code for academic purposes.

@article{Kalal2010,
- This is the official source code to the TLD tracker released under the GPL version 3.0.
- For commercial licenses contact the main author: zdenek.kalal@gmail.com.
- Join supporting discussion group at http://groups.google.com/group/opentld.
- Cite the following paper if you use the code for academic purposes.

@article{Kalal2010,
author = {Kalal, Z and Matas, J and Mikolajczyk, K},
journal = {Conference on Computer Vision and Pattern Recognition},
title = {{P-N Learning: Bootstrapping Binary Classifiers by Structural Constraints}},
year = {2010}
}
}


INSTALLATION
Installation
============

1. Windows
1.1 Install OpenCV2.2
a) make sure to compile opencv if you run on 64bit platform
b) make sure that system variable PATH includes the directory to the OpenCV DLLs
1.2 Check paths in 'compile.m' file
1.3 run 'compile.m', if you get errors go to OpenTLD discussion group
1.4 run 'run_TLD.m', TLD should track a motorbike
2. Mac
...
3. Linux
...

Tested on: Matlab R2010a, VS2010, Windows 7 (32-bit, 64-bit), OpenCV2.2
1.1 Install OpenCV
a) make sure to compile opencv
b) make sure that system variable PATH includes the directory to the OpenCV DLLs
1.2 Check paths in 'compile.m' file
1.3 run 'compile.m', if you get errors go to OpenTLD discussion group
1.4 run 'run_TLD.m', TLD should track a motorbike

Copyright 2011 Zdenek Kalal

(c) 2011 Zdenek Kalal, zdenek.kalal@gmail.com
24 changes: 21 additions & 3 deletions compile.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
if ismac
disp('Mac');

include = ' -I/opt/local/include/opencv/ -I/opt/local/include/'; % /opt/local -> /usr/local
libpath = '/opt/local/lib/'; % /opt/local -> /usr/local
include = ' -I/opt/local/include/opencv/ -I/opt/local/include/';
libpath = '/opt/local/lib/';

files = dir([libpath 'libopencv*.dylib']);

Expand All @@ -63,7 +63,25 @@

if isunix
disp('Unix');
% to come

include = ' -I/usr/local/include/opencv/ -I/usr/local/include/';
libpath = '/usr/local/lib/';

files = dir([libpath 'libopencv*.so.2.2']);

lib = [];
for i = 1:length(files),
lib = [lib ' ' libpath files(i).name];
end

eval(['mex lk.cpp -O' include lib]);
mex -O -c tld.cpp
mex -O fern.cpp tld.o
mex -O linkagemex.cpp
mex -O bb_overlap.cpp
mex -O warp.cpp
mex -O distance.cpp

end


Expand Down

0 comments on commit 4649a5d

Please sign in to comment.