Commit 680af983 authored by njean42's avatar njean42
Browse files

Avoid void areas (extra small panels).

parent 3c9d4116
......@@ -203,6 +203,9 @@ class Panel:
area1 = cv.contourArea(poly1)
area2 = cv.contourArea(poly2)
if max(area1,area2) == 0:
continue
areaRatio = min(area1,area2) / max(area1,area2)
if areaRatio < 0.1:
continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment