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