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

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

Open
radxu opened this issue Sep 9, 2011 · 5 comments
Open

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

radxu opened this issue Sep 9, 2011 · 5 comments

Comments

@radxu
Copy link

radxu commented Sep 9, 2011

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
Copy link

me too, wait best answer.

@feitianno3
Copy link

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
Copy link

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
Copy link
Author

radxu commented Oct 10, 2011

thankyou
At 2011-09-30 18:54:16,"Sam Johnson" [email protected] 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:
#24 (comment)

@corinnedavid
Copy link

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

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

No branches or pull requests

4 participants