Package com.itextpdf.pdfocr
Class OcrEngineProperties
java.lang.Object
com.itextpdf.pdfocr.OcrEngineProperties
- Direct Known Subclasses:
-
Tesseract4OcrEngineProperties
This class contains additional properties for ocr engine.
-
Constructor Summary
ConstructorDescriptionCreates a newOcrEngineProperties
instance.Creates a newOcrEngineProperties
instance based on anotherOcrEngineProperties
instance (copy constructor). -
Method Summary
Modifier and TypeMethodDescriptionGets list of languages required for provided images.final OcrEngineProperties
setLanguages
(List<String> requiredLanguages) Sets list of languages to be recognized in provided images.
-
Constructor Details
-
OcrEngineProperties
public OcrEngineProperties()Creates a newOcrEngineProperties
instance. -
OcrEngineProperties
Creates a newOcrEngineProperties
instance based on anotherOcrEngineProperties
instance (copy constructor).- Parameters:
-
other
- the otherOcrEngineProperties
instance
-
-
Method Details
-
getLanguages
Gets list of languages required for provided images.- Returns:
-
List
of languages
-
setLanguages
Sets list of languages to be recognized in provided images. Consult with documentation of specific engine implementations to check on which format to give the language in.- Parameters:
-
requiredLanguages
-List
of languages in string format - Returns:
-
the
OcrEngineProperties
instance
-