OpenTLD Installation for Matalb 2012a (64 bit)
来源:互联网 发布:刘縯 刘邦 知乎 编辑:程序博客网 时间:2024/05/18 09:02
Tested on: Matlab 2012a, Microsoft VS 2010, Win 7 (64 bit), OpenCV 2.4.2
See below.
(1) Install and Compile OpenCV 2.4.2 , then set PATH variables to link to OpenCV DLLs. (how to? see here)
(2) Setup mex compiler in Matlab. Run “mex –setup”, and select VS 2010 compiler form the list.
(3) Check paths in “compile.m”, edit it. Mine looks like so:
include = ' -IE:\OpenCV\install\include\ -IE:\OpenCV\install\include\opencv';
libpath = 'E:\OpenCV\install\lib\';
files = dir(fullfile(libpath,'*.lib'));
(4) In TLD source, comment out the following lines in lk.cpp, fern.cpp and bb_overlap.cpp. Otherwise you will get an error.
#ifdef _CHAR16_T
#define CHAR16_T
#endif
(5) Run compile.m. If you get include errors, check PATH variables, and make sure “E:\OpenCV\install\bin;” included.
(6) Run run_TLD.m. If you get a 32-bit error, make sure your path ponits to the 64-bit version of OpenCV DLLs.
An example of errors--“lk.obj : error LNK2019: unresolved external symbol…”
BTW1, if you successfully compiled the mex files, but get a error like this:
"??? Unexpected Standard exception from MEX file……error: (-27) create() called for the missing output array in function create”
Error in ==>; tldTracking at 30
xFJ = lk(2,tld.img{I}.input,tld.img{J}.input,xFI,xFI); % track all points by
Lucas-Kanade tracker from frame I to frame J, estimate Forward-Backward error,
and NCC for each point
Error in ==>; tldProcessFrame at 25
[tBB tConf tValid tld] = tldTracking(tld,tld.bb(:,I-1),I-1,I); % frame-to-frame
tracking (MedianFlow)
Error in ==>; tldExample at 41
tld = tldProcessFrame(tld,i); % process frame i
Error in ==>; run_TLD at 43
[bb,conf] = tldExample(opt);
Please change the line 186 of lk,cpp from
cvCalcOpticalFlowPyrLK( IMG[J], IMG[I], PYR[J], PYR[I], points[1], points[2], nPts, cvSize(win_size,win_size), Level, 0 , 0, cvTermCriteria(CV_TERMCRIT_ITER|CV_TERMCRIT_EPS,20,0.03), CV_LKFLOW_INITIAL_GUESSES | CV_LKFLOW_PYR_A_READY | CV_LKFLOW_PYR_B_READY );
to
cvCalcOpticalFlowPyrLK( IMG[J], IMG[I], PYR[J], PYR[I], points[1], points[2], nPts, cvSize(win_size,win_size), Level, status , 0, cvTermCriteria(CV_TERMCRIT_ITER|CV_TERMCRIT_EPS,20,0.03), CV_LKFLOW_INITIAL_GUESSES | CV_LKFLOW_PYR_A_READY | CV_LKFLOW_PYR_B_READY );
BTW2, Some Matlab extensions are needed:
Image Acquisition Toolbox, Image Processing Toolbox, Signal Processing Toolbox, Statistics Toolbox
For other platforms, pls refer to the link: https://github.com/zk00006/OpenTLD/wiki/Installation
- OpenTLD Installation for Matalb 2012a (64 bit)
- 64bit win7 oracle11gR2 installation
- A record for OF installation
- Android Studio 安装No JVM Installation found. Please install a 64 bit JDK.解决方法
- JDK Self-Extracting Binary Installation for Linux (32-bit)
- PowerCenter - Installation and Configuration (8.6.1 for Windows 32Bit)
- javahl subclipse 64 bit installation on windows
- edX Ubuntu 12.04 64 bit Installation
- opentld
- matalb | || ~ & &&
- RCU 32bit for 64bit machine
- Matalb for 语句 操作大矩阵 优化
- matalb 用for循环对变量命名
- About the installation of HTK in ubuntu 16.04(64 bit)
- How To Configure SSH for a RAC Installation [ID 300548.1]
- Installation of Torque/Maui for a Beowulf Cluster
- A bit with a sexy Underwear for Women
- xgboost for windows10 64bit
- Matlab Cody (1)
- The H Index for Computer Science
- Eclipse Virgo
- [MATLAB] Simple TF-IDF implementation
- Compile OpenCV 2.4.2 for Win 7 (64 bit) by using CMake+VS 2010
- OpenTLD Installation for Matalb 2012a (64 bit)
- History of Best Paper Awards in AI, NLP, CV, PR, and ML
- 清华梦的粉碎 -- 写给清华大学的退学申请
- 对博士学位说永别
- 局部图像特征描述概述 by 樊彬
- Gartner报告:未来一年48项即将大热的技术趋势 (Hype Cycle for Emerging Technologies)
- 2013年各大小IT公司待遇
- 第十届机器学习及其应用研讨会 MLA’2012 Slides
- 21世纪初最有影响力的20篇计算机视觉期刊论文