First time here? Check out the FAQ!
answered 2019-10-14 16:05:13 -0600
Change this:
approx=cv2.approxPolyDP(c, 0.02,peri,True)
to:
approx=cv2.approxPolyDP(c, 0.02*peri, True)