Variable: ScanType
@arolariu/website / types / ScanType
Variable: ScanType
constScanType:object
Defined in: types/scans/Scan.ts:46
Represents the document format type of a standalone scan.
Type Declaration
JPEG
readonlyJPEG:"JPEG"="JPEG"
JPEG image format
PNG
readonlyPNG:"PNG"="PNG"
PNG image format
PDF
readonlyPDF:"PDF"="PDF"
PDF document format
OTHER
readonlyOTHER:"OTHER"="OTHER"
Other or unsupported format
Remarks
Identifies the file format of uploaded documents for proper processing pipeline selection. Different formats require different OCR strategies and preprocessing steps.
Supported Formats:
- Image formats (JPEG, PNG): Direct OCR processing
- PDF: Multi-page document extraction with embedded text detection
- OTHER: Fallback processing with format detection
Example
const scan: Scan = {
scanType: ScanType.JPEG,
// ... other properties
};
// was this page useful?