void cv::putText(
cv::Mat& img, // 待绘制的图像
const string& text, // 待绘制的文字
cv::Point origin, // 文本框的左下角
int fontFace, // 字体 (如cv::FONT_HERSHEY_PLAIN)
double fontScale, // 尺寸因子,值越大文字越大
cv::Scalar color, // 线条的颜色(RGB)
int thickness = 1, // 线条宽度
int lineType = 8, // 线型(4邻域或8邻域,默认8邻域)
bool bottomLeftOrigin = false // true='origin at lower left')
---------------------
Example:
cv2.putText(orig22, "near the border", (150,100), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (66, 30, 200), thickness=1,lineType=cv2.LINE_AA)
网友评论