Feature #3957
This commit is contained in:

committed by
Maksim Shabunin

parent
5cdf0e3e89
commit
297808e6b9
@@ -62,13 +62,18 @@ int process(vector<string> images)
|
||||
|
||||
int main(int ac, char** av)
|
||||
{
|
||||
|
||||
if (ac != 2)
|
||||
cv::CommandLineParser parser(ac, av, "{help h||}{@input||}");
|
||||
if (parser.has("help"))
|
||||
{
|
||||
help(av);
|
||||
return 0;
|
||||
}
|
||||
std::string arg = parser.get<std::string>("@input");
|
||||
if (arg.empty())
|
||||
{
|
||||
help(av);
|
||||
return 1;
|
||||
}
|
||||
std::string arg = av[1];
|
||||
vector<string> imagelist;
|
||||
|
||||
if (!readStringList(arg,imagelist))
|
||||
|
Reference in New Issue
Block a user