Ask Your Question

Problem with tracking.

asked 2018-05-15 08:18:40 -0500

vps gravatar image

updated 2018-12-29 17:59:32 -0500

Hi, I am using link text sample code. I have changed "#include <opencv2/tracking.hpp>" to "#include <opencv2/video/tracking.hpp>" because hpp file is present in the video folder.

Error   C2923   'cv::Ptr': 'Tracker' is not a valid template type argument for parameter 'T'    Trackers

opencv Version : 3.4.1

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-05-15 08:39:05 -0500

berak gravatar image

no, that's not the required fix.

instead you will need the opencv_contrib repo , rebuild the opencv libs with that, and keep the old header file.

edit flag offensive delete link more


So, this program will not work with opencv version 3.4.1 version and I can not use the opencv_contrib repo. Is there any way to work with 3.4.1 version for tracking algorithms?

vps gravatar imagevps ( 2018-05-15 08:43:34 -0500 )edit

" I can not use the opencv_contrib repo" -- why so ?

(it's not a version problem, the main opencv repo does not have the code)

berak gravatar imageberak ( 2018-05-15 08:47:50 -0500 )edit

Thank you. I will install opencv_contrib.

vps gravatar imagevps ( 2018-05-15 10:48:48 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-05-15 08:18:40 -0500

Seen: 105 times

Last updated: May 15 '18