zk00006 / OpenTLD

OpenTLD is an open source library for real-time 2D tracking of a single object in video. This repository is no longer under development. For latest version see: http://www.tldvision.com/tld2.html
GNU General Public License v3.0
2.1k stars 1.27k forks source link

how to slove this problem ?? need help from rayryeng #24

Open radxu opened 13 years ago

radxu commented 13 years ago

hi, when run the code with Kalal's in matlab the step compile task has successfully finished,but happen a wrong in runing run_TLD see following: ??? Invalid MEX-file 'D:\TLD_Kalal\zk00006-OpenTLD-8a6934d\zk00006-OpenTLD-8a6934d\mex\lk.mexw32': 找不到指定的模块。

Error in ==> tldInit at 20 lk(0);

Error in ==> tldExample at 34 tld = tldInit(opt,[]); % train initial detector and initialize the 'tld' structure

Error in ==> run_TLD at 42 [bb,conf] = tldExample(opt);

i donnot kown why and how to solve it . in the mex folder there is a file lk.mexw32 which comes after taking compile task, so i donot the real reason of the problem!!!

feitianno3 commented 13 years ago

me too, wait best answer.

feitianno3 commented 13 years ago

now i meet a problem that the code(run_TLD.m) cannot run successfully. i have successfully finished operatoring before run_TLD.m file such as :

1) Install OpenCV2.2: compile OpenCV, set system PATH variable to link to OpenCV DLLs 2) Setup mex compiler in Matlab: run: mex -setup, select Visual Studio 2010 compiler from the list 3) Compilation of mex files: check paths in 'compile.m' file, run 'compile.m' 3.1) If you are using Matlab 2011a, in TLD source, comment out the following lines in lk.cpp, fern.cpp, and bb_overlap.cpp (Otherwise, you will get an error about int being undefined which is a no-no in 2010): after finishing the operatorion of compile.m file the command window show belowing: PC Compilation finished. but when i take the next step run_TLD.m a problem happens : ??? Invalid MEX-file 'D:\TLD_Kalal\zk00006-OpenTLD-8a6934d\zk00006-OpenTLD-8a6934d\mex \lk.mexw32': 找不到指定的模块。 Error in ==> tldInit at 20 lk(0); Error in ==> tldExample at 34 tld = tldInit(opt,[]); % train initial detector and initialize the 'tld' structure Error in ==> run_TLD at 42 [bb,conf] = tldExample(opt);

i can find a file in mex floder which is resulted after compile.m i am not clear the problem i need you help !

samjohnson commented 13 years ago

Hi,

I just solved this issue for a colleague of mine. The solution was to ensure that c:\OpenCV2.2\bin (or equivalent) is in your system PATH variable. If that does not work - or you are unsure how to do this - copy all of the .dll files from c:\OpenCV2.2\bin to the root OpenTLD folder. You can test this by typing 'lk(0)' at the MATLAB command line and it should return silently.

Hope this helps.

radxu commented 13 years ago

thankyou At 2011-09-30 18:54:16,"Sam Johnson" reply@reply.github.com wrote:

Hi,

I just solved this issue for a colleague of mine. The solution was to ensure that c:\OpenCV2.2\bin (or equivalent) is in your system PATH variable. If that does not work - or you are unsure how to do this - copy all of the .dll files from c:\OpenCV2.2\bin to the root OpenTLD folder. You can test this by typing 'lk(0)' at the MATLAB command line and it should return silently.

Hope this helps.

Reply to this email directly or view it on GitHub: https://github.com/zk00006/OpenTLD/issues/24#issuecomment-2248378

corinnedavid commented 12 years ago

Hi

I need some help I got to this point where typing 'lk(0)' at the MATLAB command line and it should return silently. work fine.

However running run_TDL.m I got the following error

Index exceeds matrix dimensions.

Error in tldInitFirstFrame (line 21) source.im0 = img_get(source,source.idx(1));

Error in tldExample (line 30) source = tldInitFirstFrame(tld,opt.source,opt.model.min_win); % get initial bounding box, return 'empty' if bounding box is too small

Error in run_TLD (line 42) [bb,conf] = tldExample(opt);

did all the steps of the installation: Win7 x64 Matlab R2010b, MS Visual Studio x64 download OpenCV-2.3.1-win-superpack.exe configure CMake compiler for VS2010 64 bit compiler

include = ' -IC:\opencv\build\include\opencv\ -IC:\opencv\build\include\'; libpath = 'C:\opencv\build\x64\vc10\lib\';

added the path C:\opencv\build\x64\vc10\bin

run compile.m compile fine