Creates a ReceiptOcrService with the specified OCR language.
Optionallanguages: string
Tesseract language codes (default: 'heb+eng').
Runs OCR on an image buffer and returns the recognized text. Preprocesses the image (upscale, greyscale, threshold) for accuracy.
Raw image bytes (JPEG/PNG).
Procedure with recognized text or failure.
StaticparseParses 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.
Raw OCR text from a receipt image.
Procedure with extracted IReceiptData fields.
Extracts transaction data from receipt photos via OCR.