Update Samples

This commit is contained in:
Suleyman TURKMEN
2019-07-28 12:09:17 +03:00
committed by sturkmen72
parent 9ef5373776
commit f73395122c
72 changed files with 251 additions and 271 deletions
@@ -16,7 +16,7 @@ int main(int argc, char **argv)
" https://www.bogotobogo.com/python/OpenCV_Python/images/mean_shift_tracking/slow_traffic_small.mp4";
const string keys =
"{ h help | | print this help message }"
"{ @image |<none>| path to image file }";
"{ @image | vtest.avi | path to image file }";
CommandLineParser parser(argc, argv, keys);
parser.about(about);
if (parser.has("help"))
@@ -24,7 +24,7 @@ int main(int argc, char **argv)
parser.printMessage();
return 0;
}
string filename = parser.get<string>("@image");
string filename = samples::findFile(parser.get<string>("@image"));
if (!parser.check())
{
parser.printErrors();