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

    Type Alias Ocr<L>

    The OCR runner createOcr returns.

    type Ocr<L = never> = {
        dispose: () => void;
        runOcr: (
            input: ImageBuffer,
            options?: RunOcrOptions,
        ) => Promise<OcrResult<L>>;
        runOcrWorklet: (
            input: ImageBuffer,
            options?: RunOcrOptions,
        ) => OcrResult<L>;
    }

    Type Parameters

    • L = never

      The layout region class-label type.

    Index
    dispose: () => void

    Releases the model and every other native resource of the runner.

    runOcr: (input: ImageBuffer, options?: RunOcrOptions) => Promise<OcrResult<L>>

    Reads the text of an image on the runner's worklet runtime.

    Type Declaration

    runOcrWorklet: (input: ImageBuffer, options?: RunOcrOptions) => OcrResult<L>

    Synchronous version of runOcr, to be called on a worklet runtime.