Click or drag to resize

Cv2GetTextSize Method

returns bounding box of the text string

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public static Size GetTextSize(
	string text,
	HersheyFonts fontFace,
	double fontScale,
	int thickness,
	out int baseLine
)

Parameters

text
Type: SystemString
fontFace
Type: OpenCvSharpHersheyFonts
fontScale
Type: SystemDouble
thickness
Type: SystemInt32
baseLine
Type: SystemInt32

Return Value

Type: Size
See Also