DTWAIN_OCRCV_IMAGEFILEFORMAT
Description
Specifies the image format(s) that the OCR engine supports for OCR processing when either:
File type used in DTWAIN_AcquireFile or DTWAIN_AcquireFileEx is DTWAIN_TEXT or DTWAIN_TEXTMULTI is used or
• | DTWAIN_ExecuteOCR is called on an existing image file. |
The image formats will be one or more of the DTWAIN file formats below
File Type
|
Value
|
Description
|
|
|
|
DTWAIN_BMP
|
100
|
Windows Bitmap (BMP format)
|
DTWAIN_JPEG
|
200
|
JPEG (JFIF) Format
|
DTWAIN_PCX
|
300
|
Microsoft Paintbrush (PCX format)
|
DTWAIN_DCX
|
301
|
Multi-page PCX file
|
DTWAIN_TGA
|
400
|
Targa (TGA format)
|
DTWAIN_TIFFLZW
|
500
|
TIFF Using LZW compression
|
DTWAIN_TIFFNONE
|
600
|
Uncompressed TIFF
|
DTWAIN_TIFFG3
|
700
|
TIFF Using Group 3 Encoding (CCITT Group 3 Fax)
|
DTWAIN_TIFFG4
|
800
|
TIFF Using Group 4 Encoding (CCITT Group 4 Fax)
|
DTWAIN_TIFFPACKBITS
|
801
|
TIFF PACKBITS (Mac RLE Encoding)
|
DTWAIN_TIFFDEFLATE
|
802
|
TIFF Using zlib Deflate compression
|
DTWAIN_TIFFJPEG
|
803
|
TIFF Using JPEG compression
|
DTWAIN_TIFFNONEMULTI
|
900
|
Multi-page uncompressed TIFF
|
DTWAIN_TIFFG3MULTI
|
901
|
Multi-page TIFF Using Group 3 Encoding (CCITT Group 3 Fax)
|
DTWAIN_TIFFG4MULTI
|
902
|
Multi-page TIFF Using Group 4 Encoding (CCITT Group 4 Fax)
|
DTWAIN_TIFFPACKBITSMULTI
|
903
|
Multi-page TIFF PACKBITS (Mac RLE Encoding)
|
DTWAIN_TIFFDEFLATEMULTI
|
904
|
Multi-page TIFF Using zlib Deflate compression
|
DTWAIN_TIFFJPEGMULTI
|
905
|
Multi-page TIFF Using JPEG compression
|
DTWAIN_TIFFLZWMULTI
|
906
|
Multi-page TIFF Using LZW compression
|
DTWAIN_WMF
|
850
|
Windows Metafile (WMF) (32.bit DLL only)
|
DTWAIN_EMF
|
851
|
Windows Enhanced Metafile (EMF) (32 bit only)
|
DTWAIN_GIF
|
950
|
GIF Format
|
DTWAIN_PNG
|
1000
|
Portable Network Graphics (PNG)
|
DTWAIN_PSD
|
2000
|
Adobe Photoshop (PSD) (32 bit DLL only)
|
DTWAIN_PDF
|
250
|
Adobe Portable Document Format (PDF)
|
DTWAIN_PDFMULTI
|
251
|
Multi-page PDF file
|
DTWAIN_JPEG2000
|
3000
|
JPEG-2000 Format
|
DTWAIN_POSTSCRIPT1
|
4000
|
Adobe PostScript Level 1
|
DTWAIN_POSTSCRIPT2
|
4001
|
Adobe PostScript Level 2
|
DTWAIN_POSTSCRIPT3
|
4002
|
Adobe PostScript Level 3
|
DTWAIN_POSTSCRIPT1MULTI
|
4003
|
Multi-page PostScript Level 1
|
DTWAIN_POSTSCRIPT2MULTI
|
4004
|
Multi-page PostScript Level 2
|
DTWAIN_POSTSCRIPT3MULTI
|
4005
|
Multi-page PostScript Level 3
|
DTWAIN_OCRIMAGEFORMAT_AUTO
|
10000
|
OCR Engine can auto-detect the format*
|
*Available only when DTWAIN_ExecuteOCR is used.
Note that when acquiring an image using DTWAIN_AcquireFile or DTWAIN_AcquireFileEx, the text format is available if there is
one or more OCR engines installed. The image file format described by the current setting of
DTWAIN_OCRCV_IMAGEFILEFORMAT determines the file type that DTWAIN_AcquireFile will use as the temporary image file
used by the OCR engine when creating the text file.
For example, if the OCR engine supports TIFF G4 images, the application must set the current value of
DTWAIN_OCRCV_IMAGEFILEFORMAT to DTWAIN_TIFFG4 by calling DTWAIN_SetOCRCapValues. This must be done prior
to calling DTWAIN_AcquireFile.
Values
Array Type:
|
DTWAIN_ARRAYLONG
|
Default Value:
|
No Default.
|
Allowed Values:
|
One or more of the values defined above in the Description section.
|
Available Operations:
|
DTWAIN_CAPGET
DTWAIN_CAPGETDEFAULT
DTWAIN_CAPGETCURRENT
DTWAIN_CAPSET
DTWAIN_CAPRESET
|
Mandatory Capability:
|
Yes.
|
Functions
DTWAIN_GetOCRCapValues, DTWAIN_SetOCRCapValues
|