输出cv2.putText方法的doc文档
print(cv2.putText.__doc__)
输出
putText(img, text, org, fontFace, fontScale, color[, thickness[, lineType[, bottomLeftOrigin]]]) -> img
. @brief Draws a text string.
.
. The function cv::putText renders the specified text string in the image. Symbols that cannot be rendered
. using the specified font are replaced by question marks. See #getTextSize for a text rendering code
. example.
.
. @param img Image.
. @param text Text string to be drawn.
. @param org Bottom-left corner of the text string in the image.
. @param fontFace Font type, see #HersheyFonts.
. @param fontScale Font scale factor that is multiplied by the font-specific base size.
. @param color Text color.
. @param thickness Thickness of the lines used to draw a text.
. @param lineType Line type. See #LineTypes
. @param bottomLeftOrigin When true, the image data origin is at the bottom-left corner. Otherwise,
. it is at the top-left corner.
@brief绘制一个文本字符串。
。
。函数cv::putText在图像中呈现指定的文本字符串。无法呈现的符号
。使用指定的字体将被问号代替。查看#getTextSize获取文本渲染代码
。的例子。
。
。@param img的形象。
。要绘制的文本字符串。
。@param org图像中文本字符串的左下角。
。@param fontFace字体类型,见#HersheyFonts。
。@param fontScale字体比例系数乘以特定字体的基础大小。
。@param color文本颜色
。宽度用于绘制文本的线条的厚度。
。@param lineType行类型。看到#线型
。@param bottomLeftOrigin当为true时,图像的数据来源在左下角。否则,
。它在左上角
cap = cv2.VideoCapture(0).read()摄像头读取图片用法
功能:读取一帧的图片
参数:无
返回值:flag:bool值:True:读取到图片,
False:没有读取到图片
img_rd:一帧的图片