Skip to content

OCR and extraction

Every Lebanese ID. And the passport too.

Templated OCR for the documents your clients actually carry, machine readable zone parsing to ICAO 9303 for passports, Arabic and English in the same pipeline, and a recording of the extraction kept with the record.

Lebanese identity documents read
Every one
Passports read through the MRZ
ICAO 9303
Arabic and English, one pipeline
Both scripts
Card foundCROPPED · ICAO PASSPORTSTemplated OCRTHE TEMPLATE NAMES FIELDSFields readARABIC · ENGLISH · MRZOn the recordREADY FOR THE NEXT STEP

Field by field

From the document to the record, checked as it is read.

Every value lands on the client record with its source. The machine readable zone checks itself, the printed fields are checked against it, and Arabic is read as Arabic.

Four methods

Different documents need different reading.

Treating a passport, a Lebanese Civil ID and a civil extract with one generic model is how a vendor ends up with a support rate that looks broad and a field accuracy that is not.

1

MRZ, to ICAO 9303

The machine readable zone at the foot of a passport is fixed-width, uses a restricted character set, and carries check digits over the document number, the date of birth and the expiry date. So an MRZ read can be checked against itself, which printed text never can.

2

Templated OCR, per document

A Lebanese Civil ID, a driving licence and a civil extract each place their fields differently, in different scripts, fonts and artwork. Templated OCR built per document type knows where to look and what a valid value looks like there.

3

Arabic and English together

Arabic is right to left, letterforms change by position in the word, and diacritics carry meaning. An engine tuned only on Latin script produces plausible Arabic output that is subtly wrong. The Assentify extraction model reads both scripts.

4

Vision models, self-hosted

A fine-tuned vision language model runs on Assentify’s own infrastructure. Identity document contents never leave the deployment, and the model can be tuned on the documents you actually receive.

Before the model runs

Extraction quality is decided at capture.

The capture step guides the client until the document fills the frame, then takes the shot itself. A blurred frame turns an accurate model into an inaccurate result, so the platform does not leave the moment to chance.

A client who starts on a desktop can hand the capture to a phone with a QR code. Phone cameras beat laptop cameras by a wide margin, so first-try success rises.

Document captureReady

Coverage

Global identity documents, by market.

Coverage is usually counted in countries. What matters is whether the document your applicant is holding is covered.

Assentify templates identity documents market by market, alongside passports from any issuing state through the machine readable zone. That combination covers the two real cases in regional onboarding: a resident presenting a local card, and a non-resident or a traveller presenting a passport.

The capture step sets which countries and document types a flow accepts. Anything outside that set is reported as an unsupported document, and the dashboard counts it, so you can see whether your configured set matches your actual applicants.

Lebanese document set

  • Lebanese Civil IDTemplated
  • Lebanese passportTemplated
  • Lebanese driving licenceTemplated
  • Resident permitTemplated
  • Civil extract, ikhraj qaidTemplated
  • Palestinian refugee IDTemplated
  • Syrian refugee IDTemplated
  • Army cardTemplated

Documents by market

  • Saudi Arabia: Civil ID, resident permit, driving licenceRead
  • United Arab Emirates: Civil ID, resident permit, driving licenceRead
  • Kuwait: Civil ID, resident permit, driving licenceRead
  • France: Civil ID, resident permit, driving licenceRead
  • Pakistan: Civil ID, all variationsRead
  • Gambia: Civil ID, resident permitRead
  • Any market: Passports through the machine readable zoneRead

New templates are added per market as clients need them. For a document that is not on this list, ask whether it is templated today.

The regional difference

An engine that reads only Latin script reads half of Lebanon.

Regional documents are bilingual, and the Arabic side carries the name your regulator cares about. Read it correctly and the client record matches the civil register. Read it badly and it quietly does not.

Evidence

The extraction itself is recorded.

Assentify keeps a live audit video of the extraction process alongside the captured image, the artefact that settles a dispute.

Replayable capture

What the camera saw during extraction, kept with the interaction and viewable by an authorised reviewer.

Processed in country

In Lebanon the whole vision pipeline runs on Assentify Cloud with local GPU servers, so document contents never cross the border.

Branch Assisted Mode

At the counter, the same capability.

Document capture at a counter reads with the same templates. The step can hand the capture to a phone by QR code, default to mobile capture, or scan on mobile only.

  • The same published flow, with a member of staff holding the device
  • Allow Support, set on the flow in Flow Builder
  • The same reviewer queue, flags and decision buttons
  • One client record and one audit trail across channels
Branch Assisted Mode

Questions

OCR and extraction, answered

Ask us a question

Start

Send us the document you think will break it.

The worn card, the bad photocopy, the one with the handwritten correction. Extraction quality is decided on the difficult documents.