public class OCRBridge extends Object
Constructor and Description |
---|
OCRBridge() |
Modifier and Type | Method and Description |
---|---|
static String |
getTesseractDataPath()
Gets the path to the Tesseract language data
|
static void |
initialize(String tesseractLibraryPath,
String tesseractDataPath)
Initializes the Tesseract bridge with the path to the native libraries
and the path to the language data files.
|
static boolean |
isInitialized()
Determines whether the OCRBridge is initialized.
|
static boolean |
isLoaded()
Determines whether the OCRBridge is successfully loaded.
|
static void |
setTesseractDataPath(String tesseractDataPath)
Set the path to the Tesseract language data
|
public static void initialize(String tesseractLibraryPath, String tesseractDataPath) throws OCRException, IOException
tesseractLibraryPath
- the path to the native Tesseract librariestesseractDataPath
- the path to the Tesseract language data filesOCRException
IOException
public static boolean isLoaded()
true
if successfully loaded, false
otherwisepublic static boolean isInitialized()
true
if initialized, false
otherwisepublic static String getTesseractDataPath()
public static void setTesseractDataPath(String tesseractDataPath)
tesseractDataPath
- path to the Tesseract language data