Ask Your Question

Revision history [back]

Try to convert the points to tuples:

cv2.line(img, tuple(approx[0]), tuple(approx[1]),( 0, 0, 255),3)