mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
Merge pull request #22257 from rogday:save_frames_fix
This commit is contained in:
commit
728545468c
@ -89,7 +89,7 @@ bool calib::parametersController::loadFromParser(cv::CommandLineParser &parser)
|
|||||||
mCapParams.captureDelay = parser.get<float>("d");
|
mCapParams.captureDelay = parser.get<float>("d");
|
||||||
mCapParams.squareSize = parser.get<float>("sz");
|
mCapParams.squareSize = parser.get<float>("sz");
|
||||||
mCapParams.templDst = parser.get<float>("dst");
|
mCapParams.templDst = parser.get<float>("dst");
|
||||||
mCapParams.saveFrames = parser.has("save_frames");
|
mCapParams.saveFrames = parser.get<bool>("save_frames");
|
||||||
mCapParams.zoom = parser.get<float>("zoom");
|
mCapParams.zoom = parser.get<float>("zoom");
|
||||||
|
|
||||||
if(!checkAssertion(mCapParams.squareSize > 0, "Distance between corners or circles must be positive"))
|
if(!checkAssertion(mCapParams.squareSize > 0, "Distance between corners or circles must be positive"))
|
||||||
|
Loading…
Reference in New Issue
Block a user