mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 11:21:39 +08:00
tracking: improve public API
Use ROI selector in python samples
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
#include <opencv2/videoio.hpp>
|
||||
#include <opencv2/highgui.hpp>
|
||||
#include <opencv2/imgproc.hpp>
|
||||
#include "samples_utility.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
@@ -143,7 +144,7 @@ int main(int argc, char *argv[])
|
||||
setMouseCallback("Tracking API", onMouse, 0);
|
||||
|
||||
//Create Tracker
|
||||
Ptr<Tracker> tracker = Tracker::create(tracker_algorithm);
|
||||
Ptr<Tracker> tracker = createTrackerByName(tracker_algorithm);
|
||||
if (tracker == NULL)
|
||||
{
|
||||
cout << "***Error in the instantiation of the tracker...***\n";
|
||||
|
Reference in New Issue
Block a user