supervision-js
    Preparing search index...

    Function mergeDetectionPolygonsByClass

    • Groups polygon detections by class and returns one union bounding-box detection per class. This intentionally converts the output to rectangles.

      Parameters

      • detections: readonly Detection[]
      • Optionaloptions: {
            createId?: (
                className: string | undefined,
                groupIndex: number,
            ) => string | number;
        }

      Returns Detection[]