25 lines
534 B
TypeScript
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;
|
|
}
|