|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.qoppa.ocr.OCRBridge
public class OCRBridge
This class provides method to configure and use the Tesseract OCR engine. The OCR engine is implemented in native code, so this class provides methods to load the JNI libraries and tell the engine where data files are located.
| Constructor Summary | |
|---|---|
OCRBridge()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OCRBridge()
| Method Detail |
|---|
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 files
OCRException
IOExceptionpublic 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||