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

    Type Alias DocumentBlock<L>

    One assembled document block: a layout region (or an ungrouped catch-all) with its OCR lines in reading order and their texts joined by newlines. All coordinates are in the OcrResult image frame.

    type DocumentBlock<L> = {
        bbox: BoundingBox<"xyxy">;
        isTable: boolean;
        layoutConfidence: number;
        lines: readonly OcrDetection[];
        regionType: L | "ungrouped";
        tableHtml?: string;
        text: string;
    }

    Type Parameters

    • L

      The layout region class-label type.

    Index
    bbox: BoundingBox<"xyxy">
    isTable: boolean
    layoutConfidence: number

    The layout model's confidence for the region (1 for 'ungrouped').

    lines: readonly OcrDetection[]
    regionType: L | "ungrouped"
    tableHtml?: string

    The recognized table structure HTML with OCR text filled into its cells.

    text: string