...
    cnt = 0
    font = cv2.FONT_HERSHEY_SIMPLEX
    for n in temp3_value:
        print(n)
        x = int(n['x'])
        y = int(n['y'])
        point = (x,y)
        cv2.circle(img, point, 1, (0,0,255), 4)
        cv2.putText(img, str(cnt), point, font, 0.5, (255, 255, 255), 1)
        cnt = cnt + 1
...

 

cv2.putText(img, str(cnt), point, font, 0.5, (255, 255, 255), 1)
参数分别为:原图,文字,文字坐标,字体,字体大小,字体颜色,字体粗细

相关文章:

  • 2021-07-17
  • 2022-12-23
  • 2021-08-15
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-01-17
猜你喜欢
  • 2021-10-24
  • 2021-09-25
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
相关资源
相似解决方案