Class OCREngineConfiguration


  • public final class OCREngineConfiguration
    extends java.lang.Object
    The OCR engine configuration
    • Constructor Summary

      Constructors 
      Constructor Description
      OCREngineConfiguration​(java.util.ArrayList<java.lang.String> languages, java.lang.String tessdataPath)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.ArrayList<java.lang.String> getLanguages()
      Lists of language codes that should match the tessdata files eg ["eng", "fra"] if both eng.trainedata and fra.trainedata are present in the tessdata folder
      java.lang.String getTessdataPath()
      Absolute path to the tessdata folder containing the languages files used for OCR
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OCREngineConfiguration

        public OCREngineConfiguration​(java.util.ArrayList<java.lang.String> languages,
                                      java.lang.String tessdataPath)
    • Method Detail

      • getLanguages

        public java.util.ArrayList<java.lang.String> getLanguages()
        Lists of language codes that should match the tessdata files eg ["eng", "fra"] if both eng.trainedata and fra.trainedata are present in the tessdata folder
      • getTessdataPath

        public java.lang.String getTessdataPath()
        Absolute path to the tessdata folder containing the languages files used for OCR
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object