mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
used proper method
This commit is contained in:
parent
0e4bd80b80
commit
7da16d6f47
@ -496,7 +496,7 @@ using namespace std;
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
cv::CommandLineParser parser(argc, argv, keys);
|
||||
bool useCamera = parser.has("camera");
|
||||
bool useCamera = parser.get<bool>("camera");
|
||||
string file = parser.get<string>("file");
|
||||
bool showHelp = parser.get<bool>("help");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user