1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-20 12:55:15 +08:00

tracking: rework tracking API

- simplify Tracker API
- fix perf tests (don't measure video decoding)
This commit is contained in:
Alexander Alekhin
2020-10-27 21:18:18 +00:00
parent 2cb3f65131
commit 80c197590c
89 changed files with 3629 additions and 4334 deletions

View File

@@ -66,7 +66,7 @@ using namespace cv::datasets;
//#define RECORD_VIDEO_FLG
static Mat image;
static Rect2d boundingBox;
static Rect boundingBox;
static bool paused;
static bool selectObject = false;
static bool startSelection = false;
@@ -186,11 +186,7 @@ int main(int argc, char *argv[])
if (!initialized && selectObject)
{
//initializes the tracker
if (!tracker->init(frame, boundingBox))
{
cout << "***Could not initialize tracker...***\n";
return -1;
}
tracker->init(frame, boundingBox);
initialized = true;
}
else if (initialized)