1
0
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:
Vladislav Sovrasov
2017-04-11 14:47:09 +03:00
parent 4317e27d6b
commit 3ac9e24254
27 changed files with 269 additions and 448 deletions

View File

@@ -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";