Package io.scanbot.sdk.ocr.intelligence
Class OcrPdfGenerator
-
- All Implemented Interfaces:
public final class OcrPdfGenerator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceOcrPdfGenerator.GenerationIteratorControls generation process. OCR performed as iterator advances. GenerationIterator must be recycled after usage:
public interfaceOcrPdfGenerator.BitmapBinarizerApplies binarization filter to Bitmap.
-
Constructor Summary
Constructors Constructor Description OcrPdfGenerator(DocumentStoreStrategy documentStoreStrategy, PageFileStorage pageFileStorage, BlobStoreStrategy blobStoreStrategy, OcrPdfGenerator.BitmapBinarizer bitmapBinarizer, FileIOProcessor fileIOProcessor, ComposerCache composerCache)
-
Method Summary
Modifier and Type Method Description final OcrPdfGenerator.GenerationIteratorstartGeneration(Document document, ScanbotOcrEngine.EngineInput engineInput, Collection<Language> languages, OcrSettings ocrSettings)Starts generation of document into PDF file. -
-
Constructor Detail
-
OcrPdfGenerator
OcrPdfGenerator(DocumentStoreStrategy documentStoreStrategy, PageFileStorage pageFileStorage, BlobStoreStrategy blobStoreStrategy, OcrPdfGenerator.BitmapBinarizer bitmapBinarizer, FileIOProcessor fileIOProcessor, ComposerCache composerCache)
-
-
Method Detail
-
startGeneration
final OcrPdfGenerator.GenerationIterator startGeneration(Document document, ScanbotOcrEngine.EngineInput engineInput, Collection<Language> languages, OcrSettings ocrSettings)
Starts generation of document into PDF file. Returns GenerationIterator which performs OCR and generates document as it being advanced.
- Parameters:
document- Document to generationengineInput- ScanbotOcrEngine.EngineInput to generationlanguages- Languages to use for OCR.
-
-
-
-