Package com.geniusscansdk.scanflow
Class ScanConfiguration.OcrConfiguration
- java.lang.Object
-
- com.geniusscansdk.scanflow.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.
-
Constructor Summary
Constructors Constructor Description OcrConfiguration()
-
-
-
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.
-
-