tesseract
3.05.02
|
Go to the source code of this file.
Namespaces | |
tesseract-c_api-demo | |
Variables | |
string | tesseract-c_api-demo.lang = "eng" |
string | tesseract-c_api-demo.filename = "../phototest.tif" |
string | tesseract-c_api-demo.libpath = "/usr/local/lib64/" |
string | tesseract-c_api-demo.libpath_w = "../vs2010/DLL_Release/" |
tesseract-c_api-demo.TESSDATA_PREFIX = os.environ.get('TESSDATA_PREFIX') | |
string | tesseract-c_api-demo.libname = libpath_w + "libtesseract302.dll" |
string | tesseract-c_api-demo.libname_alt = "libtesseract302.dll" |
tesseract-c_api-demo.tesseract = ctypes.cdll.LoadLibrary(libname) | |
tesseract-c_api-demo.restype | |
tesseract-c_api-demo.tesseract_version = tesseract.TessVersion()[:4] | |
tesseract-c_api-demo.api = tesseract.TessBaseAPICreate() | |
tesseract-c_api-demo.rc = tesseract.TessBaseAPIInit3(api, TESSDATA_PREFIX, lang); | |
tesseract-c_api-demo.text_out = tesseract.TessBaseAPIProcessPages(api, filename, None , 0); | |
tesseract-c_api-demo.result_text = ctypes.string_at(text_out) | |