This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
‘create’ is not a member of ‘cv::Tracker’ #38
Open
Description
I tried to install, apart from other packages, this packagen to get the "IntelROSProject" running.
But during "catkin_make" an error occurred which I put in the title.
Full error log:
/home/aha/catkin_ws/src/ros_object_analytics-0.3.0/object_analytics_nodelet/src/tracker/tracking.cpp: In member function ‘void object_analytics_nodelet::tracker::Tracking::rectifyTracker(const cv::Mat&, const Rect2d&)’:
/home/aha/catkin_ws/src/ros_object_analytics-0.3.0/object_analytics_nodelet/src/tracker/tracking.cpp:48:14: error: ‘create’ is not a member of ‘cv::Tracker’
tracker_ = cv::Tracker::create("MIL");
^
ros_object_analytics-0.3.0/object_analytics_nodelet/CMakeFiles/object_analytics_nodelet.dir/build.make:374: die Regel für Ziel „ros_object_analytics-0.3.0/object_analytics_nodelet/CMakeFiles/object_analytics_nodelet.dir/src/tracker/tracking.cpp.o“ scheiterte
make[2]: *** [ros_object_analytics-0.3.0/object_analytics_nodelet/CMakeFiles/object_analytics_nodelet.dir/src/tracker/tracking.cpp.o] Fehler 1
make[2]: *** Auf noch nicht beendete Prozesse wird gewartet …
CMakeFiles/Makefile2:7122: die Regel für Ziel „ros_object_analytics-0.3.0/object_analytics_nodelet/CMakeFiles/object_analytics_nodelet.dir/all“ scheiterte
make[1]: *** [ros_object_analytics-0.3.0/object_analytics_nodelet/CMakeFiles/object_analytics_nodelet.dir/all] Fehler 2
Makefile:127: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2
Invoking "make -j4 -l4" failed
Searched a bit in the web and found this question on stackoverflow. Which lead to a commit in the opencv code, where the part for creating a tracker has changed.
So I think your code needs some adjustment here?