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).
This commit is contained in:
Vidip Singh 2025-01-15 19:17:29 +05:30
parent 96dab6ba71
commit 6ba8f4838b

View File

@ -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.