In the code: Ptr<Tracker> OCVtracker = TrackerKCF::create();
This line gave me an error
Error C2653 ‘TrackerKCF’: is not a class or namespace name
Just to try I entered instead: Ptr<Tracker> OCVtracker = TrackerGOTURN::create();
and that worked. So I went to the tracking.hpp and see that the only tracker classes are for GOTURN, MIL, and DaSiamRPN .
I can’t find the contrib modules anywhere. As far as CMake is concerned I have all of the boxes checked for BUILD_opencv_ except for the _world and a couple of the _js… Trying to set the OPENCV_EXTRA_MODULES_PATH I can’t find any module that would insinuate contrib or tracking for that matter.
Do you happen to know if they changed the name of the contrib module to something else? I looked at the 3rdparty directory but, again, nothing jumped out.
I’ve downloaded the opencv_contrib-4.x.zip file, unzipped it, pointed to the
opencv_contrib>/modules
for the OPENCV_EXTRA_MODULES_PATH and configured and generated in CMake. I’m recompiling in VS 2017 as we speak.
I had done a rapid transition from OCV 2.4 to 4.5 and never caught the fact that they made contrib a separate download. I’m pretty sure this will solve my problem.
for smooth transition, and since you’re building from scratch anyway,
update your main opencv repo to 4.x, too
(also clean cmake artefacts / build folder!)
Well, my main OpenCV is currently 4.5.3. Are you saying go ahead and get 4.5.4?
I guess that I could but I’m always just trying to put out one fire or another and am paranoid about stopping to polish things while I am running around. Maybe soon