问题
I've built OpenCV from source along with the contrib modules. But when I include the tracking module with:
#include <opencv2/tracking.hpp>
or
#include <opencv2/tracking/tracking.hpp>
or
#include <opencv2/video/tracking.hpp>
and then try to use a tracker like this:
cv::Ptr<cv::Tracker> tracker;
I get an error saying that "Tracker is not a member of 'cv'".
What is the proper way to include the tracking API and how can I troubleshoot possible installation errors?
来源:https://stackoverflow.com/questions/55483682/opencv-c-tracking-api