git:https://github.com/linyi0604/Computer-Vision

 1 # 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()

 

相关文章:

  • 2021-06-17
  • 2022-12-23
  • 2021-06-28
  • 2022-02-25
  • 2021-12-05
  • 2022-12-23
  • 2021-07-06
  • 2021-07-05
猜你喜欢
  • 2021-07-11
  • 2022-02-06
  • 2021-07-18
  • 2022-12-23
  • 2021-08-01
  • 2021-10-01
  • 2022-12-23
相关资源
相似解决方案