DetectionBasedTracker (Bug #4410)


Added by Bruno Nascimento over 9 years ago. Updated over 9 years ago.


Status:Open Start date:2015-06-15
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Affected version:branch 'master' (3.0-dev) Operating System:Windows
Difficulty: HW Platform:x64
Pull request:

Description

Is there any reason why DetectionBasedTracker sample is only for LINUX and ANDROID?

Im also getting linker problems when I try to use it on windows, on another project.

Error 1 error LNK2019: unresolved external symbol "public: __thiscall cv::DetectionBasedTracker::Parameters::Parameters(void)" (??0Parameters@DetectionBasedTracker@cv@@QAE@XZ) referenced in function _main

When I try to use it on windows:
cv::DetectionBasedTracker::Parameters params;
cv::DetectionBasedTracker Detector( mainDetector, trackingDetector, params );
if ( !Detector.run() ) {
cerr << "Detector initialization failed" << endl;
delete detector;
exit( EXIT_FAILURE );
}


History

Updated by Alexander Alekhin over 9 years ago

DetectionBasedTracker should be available in MSVS2012/MSVS2013 builds and it is not available in MSVS2010 during hard dependency to std::thread ( C++11 features: http://en.cppreference.com/w/cpp/thread/thread )

Updated by Bruno Nascimento over 9 years ago

Im actually using MSVS2013, I only have this problem on x86 Debug mode. My x86 Release mode does not have this linker problem since its build as static.
Both my Debug and Release modes on x64, are also showing this kind on linker problems when using DetectionbasedTracker.
e.g.

Error 1 error LNK2001: unresolved external symbol "public: __cdecl cv::DetectionBasedTracker::Parameters::Parameters(void)" (??0Parameters@DetectionBasedTracker@cv@@QEAA@XZ) C:\Users\bnascimento\Projects\Tracking\main.obj Tracking

Updated by Alexander Alekhin over 9 years ago

Thanks for details update!

Implementation of DetectionBasedTracker is broken (nested class DetectionBasedTracker::Parameters is not exported).
Sample "dbt_face_detection.cpp" doesn't support Windows.

Updated by Maksim Shabunin over 9 years ago

Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/5023

Also available in: Atom PDF