From 96fdbc58e12748a2b47c024b6b4ba7a3edc5e55e Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Tue, 5 Aug 2025 10:09:12 +0300 Subject: [PATCH] Convert grayscale frames into color in nteractive calibration preview --- apps/interactive-calibration/frameProcessor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/interactive-calibration/frameProcessor.cpp b/apps/interactive-calibration/frameProcessor.cpp index aaeabe6fbb..6da0f1fabe 100644 --- a/apps/interactive-calibration/frameProcessor.cpp +++ b/apps/interactive-calibration/frameProcessor.cpp @@ -308,7 +308,10 @@ cv::Mat CalibProcessor::processFrame(const cv::Mat &frame) { cv::Mat frameCopy; cv::Mat frameCopyToSave; - frame.copyTo(frameCopy); + if (frame.channels() == 1) + cv::cvtColor(frame, frameCopy, cv::COLOR_GRAY2BGR); + else + frame.copyTo(frameCopy); bool isTemplateFound = false; mCurrentImagePoints.clear();