How reading a document actually works
Three steps sit behind every extraction. First the image is cleaned: rotated upright, deskewed, shadows and noise reduced. Second the text is read, which is the OCR step, and the layout is understood so the system knows which text is a header, which is a table cell, which is a stamp. Third the values are matched to fields: invoice number, issue date, seller and buyer tax numbers, subtotal, VAT, total and line items. Cloud services from Google, Microsoft and AWS provide invoice-aware extraction, and we choose between them, an open-source stack and a model trained on your documents, based on your volumes, document variety and where your data must stay.
Arabic raises the difficulty. Letters change shape by position, diacritics are optional, numbers may be written in Arabic-Indic or Western digits, and lines mix right-to-left words with left-to-right codes and amounts. Vendor claims about Arabic support differ a lot between providers and document types, so we test candidate engines on a sample of your own documents before we recommend one. We do not quote a general accuracy figure, because the honest answer depends on your suppliers' paper, and we report results per field type instead.
