Commit 722f7728 authored by Vladimir's avatar Vladimir

Fix: - Get dataset path form *args

parent a38145dc
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
//M*/ //M*/
#include "opencv2/datasets/track_vot.hpp" #include "opencv2/datasets/track_vot.hpp"
#include <opencv2/core.hpp> #include <opencv2/core.hpp>
#include <opencv2/highgui.hpp> #include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp> #include <opencv2/imgproc.hpp>
...@@ -73,7 +72,7 @@ int main(int argc, char *argv[]) ...@@ -73,7 +72,7 @@ int main(int argc, char *argv[])
} }
Ptr<TRACK_vot> dataset = TRACK_vot::create(); Ptr<TRACK_vot> dataset = TRACK_vot::create();
dataset->load("D:/opencv/VOT 2015"); dataset->load(path);
printf("Datasets number: %d\n", dataset->getDatasetsNum()); printf("Datasets number: %d\n", dataset->getDatasetsNum());
for (int i = 1; i <= dataset->getDatasetsNum(); i++) for (int i = 1; i <= dataset->getDatasetsNum(); i++)
printf("\tDataset #%d size: %d\n", i, dataset->getDatasetLength(i)); printf("\tDataset #%d size: %d\n", i, dataset->getDatasetLength(i));
......
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