How to test OCR on Arabic and English invoices
A practical test for finance teams comparing invoice extraction, with results from 12 synthetic Arabic and bilingual invoices.
Published guide
Which invoices should you put in the test?
Keep a test set of invoices the team has never used to tune the extraction rules. Choose documents you are authorised to use and include the languages, layouts and scan quality that arrive in your business. For a team working in Arabic and English, test both languages, invoices that mix them, and amounts written with both Western and Arabic-Indic digits.
For each test invoice, ask a reviewer to record the expected invoice number, currency, VAT amount and amount due from the original. Compare the extracted values field by field. Count correct, missing and incorrect results, and log which invoices need review and how long the review takes.
What did the test find?
Our held-out sample had six Arabic invoices and six Arabic–English invoices. Six totals used Western digits and six used Arabic-Indic digits. The whole-page run got 15 of 48 fields correct. All 12 invoices needed review across those four fields.
We checked totals again by combining labelled OCR rows, readings of cropped regions and an arithmetic check. The workflow proposed a total only when one candidate matched a recognised subtotal plus VAT. It kept both new proposals for staff review. With nine totals still unresolved, 11 of 12 invoices needed review for the total alone.
| Method | Correct | Unresolved |
|---|---|---|
| Whole-page parsing | 1 of 12 | 11 of 12 |
| Whole-page parsing with totals check | 3 of 12 | 9 of 12 |
How should Finance check a proposed total?
On fictional bilingual invoice TEST-BI-03, the whole-page parser left the amount due blank. The recognised rows contained AED 714.12 for the subtotal, AED 35.71 for VAT and AED 749.83 for the amount due. The subtotal and VAT added up to the proposed amount due. The cropped readings repeated those same values.
Finance would still compare the proposed amount and currency with the original invoice before posting. Flag missing amounts, multiple plausible matches or mismatched totals for review. Show the relevant part of the invoice so the reviewer can see which line each figure came from.
When is the extraction ready for a pilot?
Agree which fields must be correct and how much review time the team can take on. Run the trial in parallel with the existing process so reviewers can compare results on approved examples before any new workflow writes to your finance system.
- Review the scores for each field and for each language and digit style used in your invoices.
- Check how many documents staff can complete, how many they must correct and how long each review takes.
- Keep the original invoice with each proposal and record the reviewer’s decision before forwarding the result for approval.