Skip to content

Commit

Permalink
optimized epsilon value for approxPolyDP
Browse files Browse the repository at this point in the history
  • Loading branch information
internaut committed Sep 2, 2014
1 parent a27462b commit 84b9f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ void Detect::findMarkerCandidates() {
{
PointVec contour = *it;
// Approximate to a polygon
float eps = contour.size() * 0.05f;
float eps = contour.size() * 0.1f;
cv::approxPolyDP(contour, approxCurve, eps, true);

// we are only interested in convex polygons that contain exactly four points
Expand Down

0 comments on commit 84b9f29

Please sign in to comment.