diff --git a/modules/aruco/samples/calibrate_camera.cpp b/modules/aruco/samples/calibrate_camera.cpp index f732967ea..f0cf77fdb 100644 --- a/modules/aruco/samples/calibrate_camera.cpp +++ b/modules/aruco/samples/calibrate_camera.cpp @@ -158,7 +158,7 @@ int main(int argc, char *argv[]) { } int markersX = parser.get("w"); - int markersY = parser.get("w"); + int markersY = parser.get("h"); float markerLength = parser.get("l"); float markerSeparation = parser.get("s"); int dictionaryId = parser.get("d"); diff --git a/modules/xfeatures2d/samples/surf_matcher.cpp b/modules/xfeatures2d/samples/surf_matcher.cpp index 1c367f17a..5e3d59248 100644 --- a/modules/xfeatures2d/samples/surf_matcher.cpp +++ b/modules/xfeatures2d/samples/surf_matcher.cpp @@ -137,11 +137,11 @@ static Mat drawGoodMatches( int main(int argc, char* argv[]) { const char* keys = - "{ h help | false | print help message }" + "{ h help | | print help message }" "{ l left | box.png | specify left image }" "{ r right | box_in_scene.png | specify right image }" "{ o output | SURF_output.jpg | specify output save path }" - "{ m cpu_mode | false | run without OpenCL }"; + "{ m cpu_mode | | run without OpenCL }"; CommandLineParser cmd(argc, argv, keys); if (cmd.has("help"))