cv2.putText
cv2.putText cv2.putText()的功能是在一个图片上写文字 cv2.putText(I,‘there 0 error(s):’,(50,150),cv2.FONT_HERSHEY_COMPLEX,6,(0,0,255),25)各参数依次是:图片,添加的文字,左上角坐标,字体,字体大小,颜色,字体粗细 参考链接:https://blog.csdn.net/GAN_player/article/details/78155283 示例代码 import cv2 o = cv2.imread(cs.bmp) cv2.imshow(original,o) #获取凸包 gray