import cv2
imgpath = 'd:/img.png'
x,y,x1,y1 = 641,165,752,278
img = cv2.imread(imgpath)
img.shape
linet = cv2.LINE_4
img = cv2.rectangle(img, (x, y), (x1, y1), (0, 0, 255), linet,2)
cv2.imshow('name', img)
cv2.waitKey()
cv2.destroyAllWindows()

Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
import cv2
imgpath = 'd:/img.png'
x,y,x1,y1 = 641,165,752,278
img = cv2.imread(imgpath)
img.shape
linet = cv2.LINE_4
img = cv2.rectangle(img, (x, y), (x1, y1), (0, 0, 255), linet,2)
cv2.imshow('name', img)
cv2.waitKey()
cv2.destroyAllWindows()
