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

    Type Alias OcrResult<L>

    The result of one OCR run. detections is always the flat list of recognized regions; blocks and regions carry the layout grouping (one 'ungrouped' block without a layout model); image is the frame all coordinates are relative to: the corrected page after any orientation or dewarp pass, or the input.

    type OcrResult<L = never> = {
        blocks: DocumentBlock<L>[];
        detections: OcrDetection[];
        image: ImageBuffer;
        regions: ObjectDetection<"xyxy", L>[];
    }

    Type Parameters

    • L = never

      The layout region class-label type.

    Index
    blocks: DocumentBlock<L>[]
    detections: OcrDetection[]
    image: ImageBuffer
    regions: ObjectDetection<"xyxy", L>[]