diff --git a/applications/calibration-multi/src/main.cpp b/applications/calibration-multi/src/main.cpp index b8c62e758c509e4448a361b83ae2d294c5f5c8f5..7256c48fe115d13fa31b251f9be130a78621d7e2 100644 --- a/applications/calibration-multi/src/main.cpp +++ b/applications/calibration-multi/src/main.cpp @@ -376,11 +376,20 @@ void runCameraCalibration( ftl::Configurable* root, cv::drawMarker( rgb[i], points[i][1], Scalar(42, 42, 255), cv::MARKER_TILTED_CROSS, 25, 2); } + + // index cv::putText(rgb[i], "Camera " + std::to_string(i), Point2i(10, 30), cv::FONT_HERSHEY_COMPLEX_SMALL, 1.0, Scalar(64, 64, 255), 1); + // resolution + cv::putText(rgb[i], + "[" + std::to_string(rgb[i].size().width) + "x" + std::to_string(rgb[i].size().height) + "]", + Point2i(rgb[i].size().width-150, 30), + cv::FONT_HERSHEY_COMPLEX_SMALL, 1.0, Scalar(64, 64, 255), 1); + + // remaining frames cv::putText(rgb[i], std::to_string(std::max(0, (int) (n_views - calib.getViewsCount(i)))), Point2i(10, rgb[i].rows-10), diff --git a/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp b/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp index 5847967700d31c2059163781ffda5641331d388c..b5b2ae2dba9e0e35d85105b3d748e947604442df 100644 --- a/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp +++ b/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp @@ -165,7 +165,7 @@ void StereoVideoSource::init(const string &file) { return calib_->saveCalibration(fname); }); - host_->getNet()->bind("use_rectify", + host_->getNet()->bind("set_rectify", [this](bool enable){ bool retval = enable && calib_->setRectify(enable); updateParameters();