t_size = cv2.getTextSize(label, cv2.FONT_HERSHEY_PLAIN, 0, 1)[0] #修改字符,原设置: 2,2 cv2.rectangle(img, (x1, y1), (x2, y2), color, 1) # 修改线框为1, 原设置:3 cv2.rectangle(img, (x1, y1), (x1 + t_size[0] + 3, y1 + t_size[1] + 4), color, -1) cv2.p...