UNPKG

dta-vision-ocr

Version:

Biblioteca Angular com PO UI para extração de dados estruturados via OCR a partir de imagens ou PDFs, retornando JSON configurável com suporte a processamento em lote.

21 lines (20 loc) 549 B
export type FieldType = 'string' | 'number' | 'date' | 'object' | 'array'; export interface DocumentModel { imageReturn: boolean; idButton?: string; imageBase64: string; canUserSet: boolean; userFields?: DocumentJsonImageModel[]; } export interface DocumentJsonImageModel { isRequired?: boolean; fieldName: string; fieldType: FieldType; fieldLabel?: string; userArray?: DocumentJsonImageModel[]; } export interface DocumentResponse { idButton?: string; imageBase64: string; ocrResponse: string; }