def draw_id(self, img):
# tag_width_px = self.p[0][0] - self.p[1][0]
text = str(self.id)
center = (int(self.c[0] - 15), int(self.c[1]))
font = cv2.FONT_HERSHEY_DUPLEX
color = (0, 255, 0)
thickness = 2
cv2.putText(img, text, center, font, 0.7, color, thickness)
评论列表
文章目录