UNPKG

smart-docs-parser

Version:
26 lines (25 loc) 689 B
import { CustomOCR } from "./OCR"; import { CustomParser } from "./DocumentParser"; interface DocumentDetails { document_type?: string; identification_number?: string; name?: string; fathers_name?: string; date_of_birth?: string; gender?: string; address?: string; } export interface ExtractDocumentDetailsFromImageRequest { document_url: string; document_type: string; ocr_library: string; custom_parser?: CustomParser; custom_ocr?: CustomOCR; timeout?: number; } export interface ExtractDocumentDetailsFromImageResponse { raw_text: Array<string>; is_document_valid: boolean; document_details: DocumentDetails; } export {};