该函数是靠 确定对角线 来画矩形的。 cv2.rectangle(img, (bbox.left, bbox.top), (bbox.right, bbox.bottom), (0,0,255), 2)
cv2读入图像,然后分别输入左上角和右下角的像素坐标,(0,0,255)是设置线的颜色。
该函数是靠 确定对角线 来画矩形的。 cv2.rectangle(img, (bbox.left, bbox.top), (bbox.right, bbox.bottom), (0,0,255), 2)
cv2读入图像,然后分别输入左上角和右下角的像素坐标,(0,0,255)是设置线的颜色。