Real-time compressive tracking code can not run on VS2013 with opencv2411

asked 2015-05-06 06:32:04 -0500

Sheng Liu gravatar image

Kaihua Zhang provide an advanced TLD algorithm and share the code.But I can not run it on VS2013 with opencv2411.VS can't open the file "opencv_core242.lib".Do I need install opencv242?Could you give me some advice?

edit retag flag offensive close merge delete

Comments

1

you probably should try to build it from source. (the existing binaries are dependant on a opencv 2.4.2 install)

(just copy any demo proj. you have, change the title, add the 2 cpp files)

berak gravatar imageberak ( 2015-05-06 06:36:26 -0500 )edit

if you got cmake, try this(put this into CmakeLists.txt next to the cpp files):

cmake_minimum_required(VERSION 2.8)
project(ct_example)

# Find OpenCV, you may need to set OpenCV_DIR variable
# to the absolute path to the directory containing OpenCVConfig.cmake file
# via the command line or GUI
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

# Declare the executable target built from your sources
add_executable(ct_example CompressiveTracker.cpp RunTracker.cpp)

# Link your application with OpenCV libraries
target_link_libraries(ct_example ${OpenCV_LIBS})
berak gravatar imageberak ( 2015-05-06 06:48:53 -0500 )edit

Thanks a lot!

Sheng Liu gravatar imageSheng Liu ( 2015-05-06 07:10:37 -0500 )edit

don't cheer, before it worked ;(

berak gravatar imageberak ( 2015-05-06 07:15:12 -0500 )edit

According to your directions, I created a new program and add the two cpp files. But the function "readImageSequenceFiles" have 4 errors.What should I do next?

Sheng Liu gravatar imageSheng Liu ( 2015-05-06 07:24:57 -0500 )edit

I just use the Cmake-gui.So I don't know the command in the CmakeLists.txt.

Sheng Liu gravatar imageSheng Liu ( 2015-05-06 07:26:42 -0500 )edit

the errors are ? (cmake-gui is ok as well)

berak gravatar imageberak ( 2015-05-06 07:37:02 -0500 )edit

3.IntelliSense: "char *" 类型的实参与 "LPCWSTR" 类型的形参不兼容 e:\2411vsgoongcheng\advancedTLD\advancedTLD\RunTracker.cpp 154 27 advancedTLD

Sheng Liu gravatar imageSheng Liu ( 2015-05-06 07:56:52 -0500 )edit
1

hehe ;)

idea : just use the other example from the website, which is using VideoCapture

(only RunTracker.cpp differs)

berak gravatar imageberak ( 2015-05-06 08:00:19 -0500 )edit

Hi break. Could you help me? I download the source code of OpenTLD-v1.4.0.After congiguring and generating it successfully, I encountered two problems. The one is I don't know how to use the file "opentld.exe" to open a video. The other problem is in the generated project I can not find the modules of opencv so many functions in opencv such as cascadeclassifier could not be used. How to use the opentld in ordinary opencv project? By the way the one you recommended I think is different from the TLD.

Sheng Liu gravatar imageSheng Liu ( 2015-05-09 01:34:40 -0500 )edit