Ask Your Question
0

Problem with tracking.

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

vps gravatar image

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

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: 
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
0

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

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

Comments

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 -0600 )edit
1

" 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 -0600 )edit

Thank you. I will install opencv_contrib.

vps gravatar imagevps ( 2018-05-15 10:48:48 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 610 times

Last updated: May 15 '18