Variable: ScanType
@arolariu/website / types/scans/Scan / ScanType
Variable: ScanType
constScanType:object
Defined in: types/scans/Scan.ts:48
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
BMP
readonlyBMP:"BMP"="BMP"
BMP image format
TIFF
readonlyTIFF:"TIFF"="TIFF"
TIFF image format
HEIF
readonlyHEIF:"HEIF"="HEIF"
HEIF image format
HEIC
readonlyHEIC:"HEIC"="HEIC"
HEIC 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, BMP, TIFF, HEIF, HEIC): 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?