Click or drag to resize

Cv2PutText Method

renders text string in the image

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void PutText(
	InputOutputArray img,
	string text,
	Point org,
	HersheyFonts fontFace,
	double fontScale,
	Scalar color,
	int thickness = 1,
	LineTypes lineType = LineTypes.Link8,
	bool bottomLeftOrigin = false
)

Parameters

img
Type: OpenCvSharpInputOutputArray
Image.
text
Type: SystemString
Text string to be drawn.
org
Type: OpenCvSharpPoint
Bottom-left corner of the text string in the image.
fontFace
Type: OpenCvSharpHersheyFonts
Font type, see #HersheyFonts.
fontScale
Type: SystemDouble
Font scale factor that is multiplied by the font-specific base size.
color
Type: OpenCvSharpScalar
Text color.
thickness (Optional)
Type: SystemInt32
Thickness of the lines used to draw a text.
lineType (Optional)
Type: OpenCvSharpLineTypes
Line type. See #LineTypes
bottomLeftOrigin (Optional)
Type: SystemBoolean
When true, the image data origin is at the bottom-left corner. Otherwise, it is at the top-left corner.
See Also