Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Change this:

approx=cv2.approxPolyDP(c, 0.02,peri,True)

to:

approx=cv2.approxPolyDP(c, 0.02*peri, True)