flutter_ocr_native library

Classes

ChargeEntry
An initial charge entry.
DeviceSecurityResult
Result of OcrIntegrity.checkDeviceSecurity.
DisbursementEntry
A disbursement entry.
DocumentDetails
Unified document details model — same structure for all document types.
DocumentNumberValidator
Validates Indian document numbers — Aadhaar and PAN.
DocumentSearchPage
A standalone search page that includes document upload and search.
DocumentSearchService
Generic document search service. Allows searching within OCR-extracted text from any document type.
DocumentSearchWidget
A widget that provides search functionality for OCR-extracted document text.
DocumentTypeDetector
Auto-detects document type from OCR text.
ExtractedDate
Represents an extracted date.
ExtractedNumber
Represents an extracted number.
LoanStatementDetails
Loan Account Statement parser. Handles Housing Finance / NBFC loan statement formats like Aptus, HDFC Home Loans, etc. Extracts loan details, disbursements, charges, and EMI transaction history.
LoanTransaction
A loan transaction row (EMI due, payment, penalty, etc.).
OcrAuditRecord
Immutable audit record created at capture time.
OcrCaptureInstructions
Shows capture/upload instructions before document scanning. Guides users on best angle, lighting, and document clarity.
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.
OcrInstruction
Single instruction item.
OcrIntegrity
Tamper-detection, consistency checks, and audit trail for OCR data.
OcrReader
OcrResult
OcrValidator
OcrVerificationResult
Result of OcrIntegrity.verify.
OcrWatermark
Configurable watermark to display below the document image.
SearchMatch
Represents a search match with context.
SmartDocumentSearch
Smart Document Search - Universal intelligent search for ALL OCR documents.
SmartSearchPage
A full-page smart search screen.
SmartSearchResult
Result of a smart search query.
SmartSearchWidget
A user-friendly smart search widget that understands natural language queries.
SoaDetails
Statement of Account (SOA) — generic parser. Handles Indian bank SOA formats: header summary block + transaction table. Works on concatenated OCR text from all PDF pages.
SoaTransaction
A single transaction row from the statement.
TamperEvent
Tamper event — created when OcrIntegrity.verify fails. Persist immediately and report to your backend.
TextBlock
TextElement
TextLine

Enums

DetectedDocType
Detected document types.
OcrImageFormat
Output image format for saving.
SearchResultType
Result type for smart search.

Extensions

SmartSearchExtension on Map<String, String>
Extension to create SmartDocumentSearch from DocumentDetails.