getTextSize

Functionality

Calculates the width and height of a text string.

Inputs

  • fontFace_in – Font type, see cv::HersheyFonts.
  • fontScale_in – Scale factor that is multiplied by the font-specific base size.
  • text_in – Text string to be drawn.
  • thickness_in – Thickness of the lines used to draw a text.

Outputs

  • baseLine_out – Output parameter - y-coordinate of the baseline relative to the bottom-most text point.
  • retval_out – Return value.

Locals

Examples