我们使用opencv的rectangle实现,示例程序点击
import cv2
image = cv2.imread('1.jpg')
cv2.rectangle(image, (xmin, ymin), (xmax, ymax), (0, 0, 255), 2)
cv2.imwrite('2.jpg', image)
我们使用opencv的rectangle实现,示例程序点击
import cv2
image = cv2.imread('1.jpg')
cv2.rectangle(image, (xmin, ymin), (xmax, ymax), (0, 0, 255), 2)
cv2.imwrite('2.jpg', image)