Feature #3957
This commit is contained in:

committed by
Maksim Shabunin

parent
5cdf0e3e89
commit
297808e6b9
@@ -121,14 +121,20 @@ static void onTrackbar(int pos, void* ptr)
|
||||
// Main
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (argc != 2) {
|
||||
cout << "usage: " << argv[0] << " <image_list.txt>" << endl;
|
||||
cv::CommandLineParser parser(argc, argv, "{@input||image list}{help h||show help message}");
|
||||
if (parser.has("help"))
|
||||
{
|
||||
parser.printMessage();
|
||||
exit(0);
|
||||
}
|
||||
// Get the path to your CSV.
|
||||
string imgList = parser.get<string>("@input");
|
||||
if (imgList.empty())
|
||||
{
|
||||
parser.printMessage();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// Get the path to your CSV.
|
||||
string imgList = string(argv[1]);
|
||||
|
||||
// vector to hold the images
|
||||
vector<Mat> images;
|
||||
|
||||
|
Reference in New Issue
Block a user