Document OCR

Extract structured fields from a Bhutanese CID, SRP, Work Permit or passport. The classifier detects the document type; every field it can't read comes back null rather than guessed.

const ocr = await client.ocr.scanDocument(frontImage, { backImage, type: 'cid' });
— run something above and the SDK call appears here —