Nodes/comfyui_cv/cv2.getTextSize
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.getTextSize
    • size
    • baseline
    text
    fontFaceFONT_HERSHEY_SIMPLEX
    fontScale0.0000
    thickness0
    Categoryimage/CV/low-level/cv2 G

    Inputs (4)

    NameTypeDefaultDescription
    textSTRINGInput text string.
    fontFaceCOMBOFONT_HERSHEY_SIMPLEXFont to use, see #HersheyFonts.
    fontScaleFLOAT0.0000-1e+38–1e+38Font scale factor that is multiplied by the font-specific base size.
    thicknessINT0-2147483648–2147483647Thickness of lines used to render the text. See #putText for details.

    Outputs (2)

    NameTypeDescription
    sizeCV_TUPLEThe 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'.
    baselineINT