Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Shift Rectangle up using Python?

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?