First time here? Check out the FAQ!
answered 2015-08-21 15:50:20 -0600
Try to convert the points to tuples:
cv2.line(img, tuple(approx[0]), tuple(approx[1]),( 0, 0, 255),3)