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
ConstructorsConstructorDescriptionCreates a newOcrEnginePropertiesinstance.Creates a newOcrEnginePropertiesinstance based on anotherOcrEnginePropertiesinstance (copy constructor). -
Method Summary
Modifier and TypeMethodDescriptionGets list of languages required for provided images.final OcrEnginePropertiessetLanguages(List<String> requiredLanguages) Sets list of languages to be recognized in provided images.
-
Constructor Details
-
OcrEngineProperties
public OcrEngineProperties()Creates a newOcrEnginePropertiesinstance. -
OcrEngineProperties
Creates a newOcrEnginePropertiesinstance based on anotherOcrEnginePropertiesinstance (copy constructor).- Parameters:
-
other- the otherOcrEnginePropertiesinstance
-
-
Method Details
-
getLanguages
Gets list of languages required for provided images.- Returns:
-
Listof 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-Listof languages in string format - Returns:
-
the
OcrEnginePropertiesinstance
-