Description
π Added
- Added
sv.filter_segments_by_distanceto keep the largest connected component and any nearby components within an absolute or relative distance threshold. This helps you clean up predictions from segmentation models like SAM, SAM2, YOLO...