openscan
openscan copied to clipboard
Make distTol proportional to ArcLength
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.