React Native OCR - v0.11.0
    Preparing search index...

    Function mergeContainedRegions

    • Drops layout regions already covered by a larger kept one, largest first. Visual regions never swallow anything: a caption inside a figure is still text to read.

      Type Parameters

      • L

      Parameters

      • regions: readonly ObjectDetection<"xyxy", L>[]

        The layout detector's regions.

      • visualLabels: readonly string[]

        Labels carrying no text, which never suppress another region.

      Returns ObjectDetection<"xyxy", L>[]

      The surviving regions, in the detector's original order.