AttenTech
Identity APIs

Thai National ID OCR

Extract and validate every field on a Thai national ID card in one call.

Get API AccessPrivate beta only
// OVERVIEW

How Thai National ID OCR works

Turn a photo or scan of a Thai national ID card into structured, validated data — Thai and English name, ID number, address, and dates — ready to drop into onboarding, KYC, or document-intake workflows you already run.

Full-field extraction

Thai and English name, ID number, address, date of birth, issue and expiry dates, and photo — pulled from a single image.

Format & checksum validation

Every ID number is checked against the Thai national ID checksum before it reaches your workflow, catching typos and forged numbers early.

Built for real-world capture

Tuned on phone-camera photos and flatbed scans, including glare, tilt, and low light — not just studio-quality samples.

ocr
attentechth.com/api/ocr/thai-id
01// extract a Thai national ID in one call
02import { OCR } from '@attentech/sdk'
03
04const ocr = new OCR({
05 region: 'th-bangkok',
06 pdpa: true,
07})
08
09const result = await ocr.extract({
10 document: 'thai_national_id',
11 image: idImage,
12})
13
14if (result.valid) {
15 const { nameTh, nameEn, idNumber, dob } = result.fields
16 save(result)
17}
// PROCESS

How Thai National ID OCR reads a card in under a second

A single image runs through a Thai-tuned OCR model, a checksum validator, and a structuring layer — so you get verified fields back, not just raw text to parse yourself.

NAME
ID NO.
ADDRESS
NATIONALITY
Capture
Extract
Validate
Structured Output

Ready to integrate Thai National ID OCR?

Get API access in days, or bring us in to run the full workflow for you — sovereignty by design at every step.

Get API AccessPrivate beta only