From 05ebf73909c2b6ad1b20bffd14cc6228f1942ad0 Mon Sep 17 00:00:00 2001 From: Suleyman TURKMEN Date: Tue, 9 Jan 2018 18:20:53 +0300 Subject: [PATCH] Update track_vot.cpp --- modules/datasets/src/track_vot.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/datasets/src/track_vot.cpp b/modules/datasets/src/track_vot.cpp index 8c317e29a..907f78fad 100644 --- a/modules/datasets/src/track_vot.cpp +++ b/modules/datasets/src/track_vot.cpp @@ -134,9 +134,9 @@ namespace cv printf("Error to open groundtruth.txt!!!"); //Make a list of datasets lengths - int currFrameID = 1; + int currFrameID = 0; if (currDatasetID == 0) - printf("VOT 2015 Dataset Initialization...\n"); + printf("VOT Dataset Initialization...\n"); bool trFLG = true; do { @@ -174,7 +174,7 @@ namespace cv } 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(); @@ -202,11 +202,12 @@ namespace cv if (id > 0 && id <= (int)data.size()) { activeDatasetID = id; + frameCounter = 0; return true; } 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; } }