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.
      java.util.EnumSet<ScanConfiguration.OcrOutputFormat> outputFormats
      The formats in which the OCR result is made available in the ScanFlow result.
    • 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 this repository.
      • outputFormats

        public java.util.EnumSet<ScanConfiguration.OcrOutputFormat> outputFormats
        The formats in which the OCR result is made available in the ScanFlow result. Default is everything.
    • Constructor Detail

      • OcrConfiguration

        public OcrConfiguration()