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

    Extracts transaction data from receipt photos via OCR.

    Implements

    Index
    • Creates a ReceiptOcrService with the specified OCR language.

      Parameters

      • Optionallanguages: string

        Tesseract language codes (default: 'heb+eng').

      Returns default

    • Runs OCR on an image buffer and returns the recognized text. Preprocesses the image (upscale, greyscale, threshold) for accuracy.

      Parameters

      • imageBuffer: Buffer

        Raw image bytes (JPEG/PNG).

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

      Procedure with recognized text or failure.

    • Parses OCR text to extract receipt transaction fields. Delegates to the pure module function for SRP + testability. Retained as a static method for back-compat with existing callers.

      Parameters

      • text: string

        Raw OCR text from a receipt image.

      Returns Procedure<IReceiptData>

      Procedure with extracted IReceiptData fields.