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.

23 lines (22 loc) 622 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; fieldDescription?: string; userArray?: DocumentJsonImageModel[]; subFields?: DocumentJsonImageModel[]; } export interface DocumentResponse { idButton?: string; imageBase64: string; ocrResponse: string; }