Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Make distTol proportional to ArcLength #21

Open
ryanpeach opened this issue Dec 4, 2015 · 0 comments
Open

Make distTol proportional to ArcLength #21

ryanpeach opened this issue Dec 4, 2015 · 0 comments

Comments

@ryanpeach
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant