Class ScanConfiguration.OcrConfiguration

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    ScanConfiguration

    public static class ScanConfiguration.OcrConfiguration
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.List<java.lang.String> languages
      The language codes for which to run text recognition.
      java.io.File languagesDirectory
      Folder containing the language files used for text recognition.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • languages

        public java.util.List<java.lang.String> languages
        The language codes for which to run text recognition. The codes must match the provided language files, eg.: ["eng", "fra"] if both `eng.trainedata` and `fra.trainedata` are present in the language directory. Note that text recognition will take longer if multiple languages are specified.
      • languagesDirectory

        public java.io.File languagesDirectory
        Folder containing the language files used for text recognition. Language files can be downloaded from https://github.com/tesseract-ocr/tessdata_fast.
    • Constructor Detail

      • OcrConfiguration

        public OcrConfiguration()