mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-11 12:43:17 +08:00
identify all supported tiff version by leptonica
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@931 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
9041990be5
commit
fced05f419
@ -962,8 +962,9 @@ PERF_COUNT_START("ProcessPages")
|
||||
Pix *pix;
|
||||
pix = pixRead(filename);
|
||||
format = pixGetInputFormat(pix);
|
||||
if (format == IFF_TIFF || format == IFF_TIFF_G4 ||
|
||||
format == IFF_TIFF_G3 || format == IFF_TIFF_PACKBITS)
|
||||
if (format == IFF_TIFF || format == IFF_TIFF_PACKBITS ||
|
||||
format == IFF_TIFF_RLE || format == IFF_TIFF_G3 ||
|
||||
format == IFF_TIFF_G4 || format == IFF_TIFF_LZW || IFF_TIFF_ZIP)
|
||||
tiffGetCount(fp, &npages);
|
||||
fclose(fp);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user