Class OcrEngineProperties

java.lang.Object
com.itextpdf.pdfocr.OcrEngineProperties
Direct Known Subclasses:
Tesseract4OcrEngineProperties

public class OcrEngineProperties extends Object
This class contains additional properties for ocr engine.
  • Constructor Details

  • Method Details

    • getLanguages

      public final List<String> getLanguages()
      Gets list of languages required for provided images.
      Returns:
      List of languages
    • setLanguages

      public final OcrEngineProperties setLanguages (List<String> requiredLanguages)
      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