Back to Aurora Vision Studio website

You are here: Start » Filter Reference » OpenCV » Drawing » cvGetTextSize

cvGetTextSize


Module: OpenCV

Calculates the width and height of a text string.

Name Type Range Description
Input value inText String Text string to be drawn.
Input value inFontFace CvFontType Font type.
Input value inFontItalic Bool When true, text letters are slanted.
Input value inFontScale Real 0.0 - Font scale factor that is multiplied by the font-specific base size.
Input value inThickness Integer 1 - Thickness of the lines used to draw a text.
Output value outWidth Integer Width of text.
Output value outHeight Integer Height of text.
Output value outBaseline Integer y-coordinate of the baseline relative to the bottom-most text point.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError inText empty in cvGetTextSize.

Complexity Level

This filter is available on Basic Complexity Level.