Commit 05ebf739 authored by Suleyman TURKMEN's avatar Suleyman TURKMEN

Update track_vot.cpp

parent 31bd7d98
...@@ -134,9 +134,9 @@ namespace cv ...@@ -134,9 +134,9 @@ namespace cv
printf("Error to open groundtruth.txt!!!"); printf("Error to open groundtruth.txt!!!");
//Make a list of datasets lengths //Make a list of datasets lengths
int currFrameID = 1; int currFrameID = 0;
if (currDatasetID == 0) if (currDatasetID == 0)
printf("VOT 2015 Dataset Initialization...\n"); printf("VOT Dataset Initialization...\n");
bool trFLG = true; bool trFLG = true;
do do
{ {
...@@ -174,7 +174,7 @@ namespace cv ...@@ -174,7 +174,7 @@ namespace cv
} }
else else
{ {
printf("Couldn't find a *list.txt* in VOT 2015 folder!!!"); printf("Couldn't find a *list.txt* in VOT Dataset folder!!!");
} }
namesList.close(); namesList.close();
...@@ -202,11 +202,12 @@ namespace cv ...@@ -202,11 +202,12 @@ namespace cv
if (id > 0 && id <= (int)data.size()) if (id > 0 && id <= (int)data.size())
{ {
activeDatasetID = id; activeDatasetID = id;
frameCounter = 0;
return true; return true;
} }
else else
{ {
printf("Dataset ID is out of range...\nAllowed IDs are: 1~%d\n", (int)data.size()); printf("Dataset ID is out of range...\nAllowed IDs are: 1~%d\n", (int)data.size());
return false; return false;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment