Here's what I'm using to draw the rectangle
cv2.rectangle(img,(x,y), (x+w,y+h),(0,255,255),5)
I want to move the rectangle upward by some pixels. How do I do that?
1 | initial version |
Here's what I'm using to draw the rectangle
cv2.rectangle(img,(x,y), (x+w,y+h),(0,255,255),5)
I want to move the rectangle upward by some pixels. How do I do that?