Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Convert this:

cv::rectangle (InputOutputArray img, Point pt1, Point pt2, const Scalar &color, int thickness=1, int lineType=LINE_8, int shift=0)

to python 3

pt1 = (5, 5)
pt2 = (220, 220)
thickness = 2
cv.rectangle(img, pt1, pt2, (0,255,0), thickness)