Variables | |
string | lang = "eng" |
string | filename = "../phototest.tif" |
string | libpath = "/usr/local/lib64/" |
string | libpath_w = "../vs2008/DLL_Release/" |
tuple | TESSDATA_PREFIX = os.environ.get('TESSDATA_PREFIX') |
string | libname = libpath_w+"libtesseract302.dll" |
string | libname_alt = "libtesseract302.dll" |
tuple | tesseract = ctypes.cdll.LoadLibrary(libname) |
tuple | tesseract_version = tesseract.TessVersion() |
tuple | api = tesseract.TessBaseAPICreate() |
tuple | rc = tesseract.TessBaseAPIInit3(api, TESSDATA_PREFIX, lang) |
tuple | text_out = tesseract.TessBaseAPIProcessPages(api, filename, None , 0) |
tuple | result_text = ctypes.string_at(text_out) |
tuple tesseract-c_api-demo.api = tesseract.TessBaseAPICreate() |
Definition at line 65 of file tesseract-c_api-demo.py.
string tesseract-c_api-demo.filename = "../phototest.tif" |
Definition at line 29 of file tesseract-c_api-demo.py.
string tesseract-c_api-demo.lang = "eng" |
Definition at line 28 of file tesseract-c_api-demo.py.
Definition at line 37 of file tesseract-c_api-demo.py.
string tesseract-c_api-demo.libname_alt = "libtesseract302.dll" |
Definition at line 38 of file tesseract-c_api-demo.py.
string tesseract-c_api-demo.libpath = "/usr/local/lib64/" |
Definition at line 30 of file tesseract-c_api-demo.py.
string tesseract-c_api-demo.libpath_w = "../vs2008/DLL_Release/" |
Definition at line 31 of file tesseract-c_api-demo.py.
tuple tesseract-c_api-demo.rc = tesseract.TessBaseAPIInit3(api, TESSDATA_PREFIX, lang) |
Definition at line 66 of file tesseract-c_api-demo.py.
Definition at line 73 of file tesseract-c_api-demo.py.
string tesseract-c_api-demo.TESSDATA_PREFIX = os.environ.get('TESSDATA_PREFIX') |
Definition at line 32 of file tesseract-c_api-demo.py.
tuple tesseract-c_api-demo.tesseract = ctypes.cdll.LoadLibrary(libname) |
Definition at line 45 of file tesseract-c_api-demo.py.
tuple tesseract-c_api-demo.tesseract_version = tesseract.TessVersion() |
Definition at line 56 of file tesseract-c_api-demo.py.
tuple tesseract-c_api-demo.text_out = tesseract.TessBaseAPIProcessPages(api, filename, None , 0) |
Definition at line 72 of file tesseract-c_api-demo.py.