We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 559fd12 commit 76f4b0bCopy full SHA for 76f4b0b
detectree2/models/outputs.py
@@ -503,7 +503,7 @@ def combine_and_average_polygons(gdfs, iou = 0.9):
503
match_confidence = row_match.Confidence_score if "Confidence_score" in combined_gdf.columns else None
504
505
intersection = polygon.intersection(match)
506
- if intersection.area / match.area > iou:
+ if intersection.area / (polygon.area + match.area - intersection.area) > iou:
507
significant_matches.append(match)
508
if match_confidence is not None:
509
significant_confidences.append(match_confidence)
0 commit comments