def button(self, dst, label, enable):
dst.fill(255)
size = (dst.shape[1], dst.shape[0])
if enable:
color = (155, 155, 80)
else:
color = (224, 224, 224)
cv2.circle(dst, (size[0] / 2, size[1] / 2), min(size) / 2, color, -1)
(w, h) = self.getTextSize(label)
self.putText(dst, label, ((size[0] - w) / 2, (size[1] + h) / 2), (255,255,255))
cameracalibrator.py 文件源码
python
阅读 30
收藏 0
点赞 0
评论 0
评论列表
文章目录