Israeli Bank Importer - v1.44.5
    Preparing search index...

    Interface IReceiptOcr

    OCR surface consumed by the receipt-import sub-modules.

    Abstracts the single instance behaviour the consumers need from ReceiptOcrService, so they depend on this contract (Dependency Inversion) instead of the concrete tesseract-backed implementation.

    interface IReceiptOcr {
        recognize(imageBuffer: Buffer): Promise<Procedure<{ text: string }>>;
    }

    Implemented by

    Index
    • Recognizes text from raw image bytes.

      Parameters

      • imageBuffer: Buffer

        Raw image bytes (JPEG/PNG).

      Returns Promise<Procedure<{ text: string }>>

      Procedure with { text } on success, or a typed failure.