mirror of
https://github.com/opencv/opencv.git
synced 2025-07-22 20:39:41 +08:00
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:
parent
96dab6ba71
commit
6ba8f4838b
@ -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
|
using the specified font are replaced by question marks. See #getTextSize for a text rendering code
|
||||||
example.
|
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 img Image.
|
||||||
@param text Text string to be drawn.
|
@param text Text string to be drawn.
|
||||||
@param org Bottom-left corner of the text string in the image.
|
@param org Bottom-left corner of the text string in the image.
|
||||||
|
Loading…
Reference in New Issue
Block a user