openscan icon indicating copy to clipboard operation
openscan copied to clipboard

Make distTol proportional to ArcLength

Open ryanpeach opened this issue 10 years ago • 0 comments

This is what most websites advise. getPolys should look something like this:

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

where distRatio replaces distTol and is a double <= 1.

ryanpeach avatar Dec 04 '15 16:12 ryanpeach