git:https://github.com/linyi0604/Computer-Vision
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
141 # coding:utf-8 2 3 import cv2 4 5 img = cv2.imread("../data/mm1.jpg", cv2.IMREAD_GRAYSCALE) 6 7 img = cv2.putText(img, "hello world!", (50, 50), cv2.FONT_HERSHEY_SIMPLEX, 1.2, (0, 255, 0), 2) 8 """ 9 cv2.putText(图像, 文字, (x, y), 字体, 大小, (b, g, r), 宽度) 10 """ 11 12 cv2.imshow("", img) 13 cv2.waitKey() 14 cv2.destroyAllWindows()
转载于:https://www.cnblogs.com/Lin-Yi/p/9427736.html
最后
以上就是过时小霸王最近收集整理的关于python opencv3 向图像里写字的全部内容,更多相关python内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复