From 6ba8f4838bc4c4974ee904564be33f588a0465f2 Mon Sep 17 00:00:00 2001 From: Vidip Singh <112854574+vidipsingh@users.noreply.github.com> Date: Wed, 15 Jan 2025 19:17:29 +0530 Subject: [PATCH] Added fontScale behavior description to putText() documentation - Updated the documentation of the putText function to clarify the behavior of the fontScale parameter. - Explained how fontScale affects text rendering: magnifying (>1), minimizing (<1), and mirroring (<0). --- modules/imgproc/include/opencv2/imgproc.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/imgproc/include/opencv2/imgproc.hpp b/modules/imgproc/include/opencv2/imgproc.hpp index bb0cab7426..2cbe17ccc0 100644 --- a/modules/imgproc/include/opencv2/imgproc.hpp +++ b/modules/imgproc/include/opencv2/imgproc.hpp @@ -4848,6 +4848,11 @@ The function cv::putText renders the specified text string in the image. Symbols using the specified font are replaced by question marks. See #getTextSize for a text rendering code example. +The `fontScale` parameter is a scale factor that is multiplied by the base font size: +- When scale > 1, the text is magnified. +- When 0 < scale < 1, the text is minimized. +- When scale < 0, the text is mirrored or reversed. + @param img Image. @param text Text string to be drawn. @param org Bottom-left corner of the text string in the image.