-
Notifications
You must be signed in to change notification settings - Fork 0
opencv CommandLineParser
Serbipunk edited this page Nov 4, 2022
·
1 revision
usage:
const string keys =
"{ h help | | print this help message }"
"{ @image |<none>| path to image file }";
CommandLineParser parser(argc, argv, keys);
// print help
if (parser.has("help"))
{
parser.printMessage();
return 0;
}
// get args
string filename = parser.get<string>("@image");
if (!parser.check())
{
parser.printErrors();
return 0;
}
test page footer