1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-22 07:31:26 +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

@@ -88,7 +88,7 @@ int main( int argc, char** argv ){
namedWindow( "Tracking API", 1 );
Mat image;
Rect2d boundingBox;
Rect boundingBox;
bool paused = false;
//instantiates the specific Tracker
@@ -134,11 +134,7 @@ int main( int argc, char** argv ){
if( !initialized )
{
//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 )