Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

the y axis points down in 2d opencv/numpy, so you need to subtract something, to make it go up:

y -= 5
cv2.rectangle(img,(x,y), (x+w,y+h),(0,255,255),5)