ComfyUI Node
cv2.getTextSize
Raw wrapper of cv2.getTextSize(text, fontFace, fontScale, thickness). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.getTextSize
- size
- baseline
◄text►
◄fontFaceFONT_HERSHEY_SIMPLEX►
◄fontScale0.0000►
◄thickness0►
Categoryimage/CV/low-level/cv2 G
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | Input text string. | |
| fontFace | COMBO | FONT_HERSHEY_SIMPLEX | Font to use, see #HersheyFonts. |
| fontScale | FLOAT | 0.0000-1e+38–1e+38 | Font scale factor that is multiplied by the font-specific base size. |
| thickness | INT | 0-2147483648–2147483647 | Thickness of lines used to render the text. See #putText for details. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| size | CV_TUPLE | The size of a box that contains the specified text. Size (width, height) as ONE composite value - wire it straight into a cv2 size input (dsize, patchSize, winSize) or into 'CV Split Tuple'. |
| baseline | INT | — |