| Package | Description |
|---|---|
| com.asprise.ocr |
| Modifier and Type | Method and Description |
|---|---|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.saveIntermediateImagesToDir(File dir)
Save intermediate images generated for debug purpose - don't specify or empty string to skip saving
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setCustomImagePreProcessing(String cmds)
set the image pre-processing type to Ocr.ImagePreProcessingType.CUSTOM and the corresponding custom commands.
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setDictCustomDictFile(File customDictFile)
Path to your custom dictionary (words are separated using line breaks).
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setDictCustomTemplatesFile(File customTemplatesFile)
Path to your custom templates (templates are separated using line breaks).
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setDictImportance(int importance)
Percentage measuring the importance of the dictionary (0: not at all; 100: extremely important; default: 10)
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setDictSkipBuiltInAll(boolean skip)
set to 'true' to skip using all built-in dicts.
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setDictSkipBuiltInDefault(boolean skip)
set to 'true' to skip using the default built in dict.
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setImagePreProcessingType(Ocr.ImagePreProcessingType type)
Sets the image pre-processing type
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setInputPdfDpi(int dpi)
The DPI to be used to render the PDF file; default is 300 if not specified
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setLimitToCharset(String chars)
recognizes only certain characters
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setLimitToCharsetDigitsOnly()
only recognizes '0123456789'
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setOutputSeparateWords(boolean enable)
whether to use word as the base unit for output; set to false to use the default unit: line.
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setPageType(Ocr.PageType pageType)
hints the page type to the OCR engine
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setPageType(String pageType)
hints the page type to the OCR engine
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setPdfImageForceBlackWhite(boolean enable)
true to convert image in PDF to black/white to save space false for keeping as is (default).
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setPdfOutputFile(File file)
Target pdf output file when output format is set to pdf
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setPdfOutputFile(String filePath)
Target pdf output file when output format is set to pdf
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setPdfOutputFontSans(boolean enable)
true to set PDF output font to Sans, false to Serif (default).
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setPdfOutputReturnNothing()
Return neither plain text nor xml when the output format is set to PDF.
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setPdfOutputReturnPlainText()
Return plain text when the output format is set to PDF.
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setPdfOutputReturnXml()
Return xml when the output format is set to PDF.
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setPdfTextVisible(boolean enable)
true to make text recognized visible on PDF or false for transparent (default).
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setSkipTableDetection(boolean skipTableDetection)
Whether table detection should be skipped.
|
Ocr.PropertyBuilder |
Ocr.PropertyBuilder.setTableDetectionMinSideLength(int minSideLength)
Sets the min side length of a table cell when table detection is enabled.
|
Copyright © 2015. All Rights Reserved.