flutter_ocr_native library
Classes
- AadhaarDetails
- Parsed Aadhaar card details extracted from OCR text.
- ChequeDetails
- Parsed cheque details extracted from OCR text.
- DocumentDetails
- Unified document details model — same structure for all document types.
- DocumentNumberValidator
- Validates Indian document numbers — Aadhaar and PAN.
- DocumentTypeDetector
- Auto-detects document type from OCR text.
- DrivingLicenseDetails
- Parsed driving license details extracted from OCR text.
- OcrDetailsCard
- A card widget that displays parsed Aadhaar details in a structured format. Shows Name, Father/Husband, DOB, Gender, Address, and masked Aadhaar number.
- OcrDocumentSaver
- OcrDocumentViewer
- Full-screen document viewer with pinch-to-zoom and optional watermark.
- OcrImageCropper
- A full-screen image cropper widget with rotate support. Returns cropped image bytes when user confirms.
- OcrPlatformInterface
- OcrReader
- OcrResult
- OcrValidator
- OcrWatermark
- Configurable watermark to display below the document image.
- PassportDetails
- Parsed passport details extracted from OCR text.
- TextBlock
- TextElement
- TextLine
- VoterIdDetails
- Parsed Voter ID (EPIC) details extracted from OCR text.
- VoterIdDetailsCard
- A card widget that displays parsed Voter ID (EPIC) details in a structured format. Shows EPIC No., Name, and Address as primary fields.
Enums
- DetectedDocType
- Detected document types.
- OcrImageFormat
- Output image format for saving.