OpenCV 4.5.3, C++, VS 2017, MFC, Win10
Using the example code in the OpenCV docs Using MultiTracker.
// create the tracker legacy::MultiTracker trackers; //... // initialize the tracker std::vector<Ptr<legacy::Tracker> > algorithms;
The docs have the next key line as
I don’t know where that createTrackerByName_legacy came from but I figure I could just use a Tracker.create() in its place like this
Ptr<legacy::Tracker> TBtracker = TrackerKCF::create();
But when I go to the push_back line
I get the VS2017 compile error
error C2664 > noexcept': cannot convert argument 1 from 'cv::Ptr<cv::tracking::TrackerKCF>' to 'std::nullptr_t'
> algorighms is a vector of Ptr<legacy::Tracker> > and TBtracker is a Ptr<legacy::Tracker> > and I am trying to push a Ptr<legacy::Tracker> into a vector of Ptr<legacy::Tracker>
Where would anyone say that I am going wrong that I am getting this compile error?