Merge pull request #22147 from rogday:zoom_factor

Add zoom factor to interactive calibration tool

* add zoom factor

* address review comments
This commit is contained in:
rogday
2022-06-30 23:31:52 +03:00
committed by GitHub
parent 2a4926f417
commit b91f173680
6 changed files with 26 additions and 3 deletions
@@ -90,6 +90,7 @@ bool calib::parametersController::loadFromParser(cv::CommandLineParser &parser)
mCapParams.squareSize = parser.get<float>("sz");
mCapParams.templDst = parser.get<float>("dst");
mCapParams.saveFrames = parser.has("save_frames");
mCapParams.zoom = parser.get<float>("zoom");
if(!checkAssertion(mCapParams.squareSize > 0, "Distance between corners or circles must be positive"))
return false;