This commit is contained in:
ValeryTyumen authored and Maksim Shabunin committed 2015-12-17 18:19:39 +03:00
1 parent 5cdf0e3e89
commit 297808e6b9
57 files changed
+950 -1052

No files matched your search

+9 -4
View File
@@ -63,12 +63,17 @@ int main(int argc, char** argv)
VideoCapture cap;
bool update_bg_model = true;
help();
if( argc < 2 )
CommandLineParser parser(argc, argv, "{help h||}{@input||}");
if (parser.has("help"))
{
help();
return 0;
}
string input = parser.get<std::string>("@input");
if (input.empty())
cap.open(0);
else
cap.open(std::string(argv[1]));
cap.open(input);
if( !cap.isOpened() )
{