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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user