zhiqingstudy

Be a young person with knowledge and content

Opencv's api for drawing text is:
PutText (img, string, starting point, font, font size,...)
Img: specify which image to draw on
String: the string we want to output
Starting point: the specific starting point of the string
import cv2
import numpy as np

# 绘制一个黑色背景图
img=np.zeros((480,640,3),np.uint8)
# 绘制文本
cv2.putText(img,'hello world',(100,100),cv2.FONT_HERSHEY_PLAIN,5,(255,0,0))
# 显示
cv2.imshow('img',img)
cv2.waitKey(0)
comment
head sculpture
Code:
Related

Why you shouldn't stay at a job for more than 2 years?

3 harsh facts long-distance relationships

how to keep your girlfriend interested in a long-distance relationship




Unless otherwise specified, all content on this website is original. If the reprinted content infringes on your rights, please contact the administrator to delete it
Contact Email:2380712278@qq.com

Filing number:皖ICP备19012824号