Skip to main content

Module postprocessing

Module postprocessing 

Source
Expand description

Postprocessing operations for ML results

This module provides tile merging, confidence thresholding, polygon conversion, and GeoJSON export capabilities.

Functionsยง

apply_threshold
Applies confidence thresholding to a probability map
export_detections_geojson
Exports detections to GeoJSON format
export_segmentation_geojson
Exports a segmentation mask to GeoJSON
mask_to_polygons
Converts a binary mask to polygons using marching squares algorithm
merge_polygons
Merges overlapping polygons
simplify_polygons
Simplifies polygons using the Douglas-Peucker algorithm