一、函数:
a.putText
函数:
(1)函数原型:
CV_EXPORTS_W void putText( InputOutputArray img, const String& text, Point org,
int fontFace, double fontScale, Scalar color, int thickness = 1,
int lineType = LINE_8, bool bottomLeftOrigin = false );
(2)函数作用:
putText
函数在图像img
上渲染指定的文本字符串。如果某些字符无法使用指定的字体渲染,则会被问号替代。
(3)参数说明:
img
:要绘制文本的图像。text
:要绘制的文本字符串。org
:文本字符串在图像中的起始点(左下角)。fontFace
:字体类型,见HersheyFonts
。fontScale
:字体缩放因子,乘以字体特定的基础大小。color
:文本颜色,使用Scalar