Function getTextSize

  • openCV 3 and 4 are not compatible

    Calculates the width and height of a text string. param text Input text string. param fontHeight Drawing font size by pixel unit. param thickness Thickness of lines used to render the text. See putText for details. param baseLine y-coordinate of the baseline relative to the bottom-most text point.

    Parameters

    • text: string

      Input text string.

    • fontFace: number

      Font to use, see HersheyFonts.

    • fontScale: number

      Font scale factor that is multiplied by the font-specific base size.

    • thickness: number

      Thickness of lines used to render the text. See putText for details.

    Returns {
        baseLine: number;
        size: Size;
    }

    • baseLine: number
    • size: Size