Files
dashboard/types/ocr.ts
T
Alberto-Audrix 32a36cceff
CI / lint-and-test (push) Canceled after 0s
first commit
2026-07-28 08:55:05 +07:00

25 lines
534 B
TypeScript

export type OcrDocumentStatus = 'Processing' | 'Needs Review' | 'Completed' | 'Failed';
export type OcrDocumentType =
| 'Laporan Timbang'
| 'Faktur Pakan'
| 'Catatan Harian'
| 'Tidak Dikenal';
export interface OcrDocument {
id: string;
fileName: string;
uploadedAt: Date;
status: OcrDocumentStatus;
documentType: OcrDocumentType;
accuracy: number; // Percentage
imageUrl: string;
extractedText: string;
}
export interface OcrStats {
processedToday: number;
avgAccuracy: number;
needsReview: number;
}