# Path: lib/fs.py
# def check_if_available(prg, msg):
# 
# Path: lib/ocr.py
# def image_file_to_string(fname):


import sys
import config as cfg
from lib import fs, ocr
#!/usr/bin/env python3

"""
Convert an image file to string.

How to install Tesseract:
* https://ubuntu.flowconsult.at/linux/ocr-tesseract-text-recognition-ubuntu-14-04/
"""




# Path: lib/fs.py
# def check_if_available(prg, msg):
# 
# Path: lib/ocr.py
# def image_file_to_string(fname):


# Path: ocr.py
import sys
import config as cfg
from lib import fs, ocr

#!/usr/bin/env python3

"""
Convert an image file to string.

How to install Tesseract:
* https://ubuntu.flowconsult.at/linux/ocr-tesseract-text-recognition-ubuntu-14-04/
"""




fs.check_if_available(cfg.TESSERACT, "Error: {} is not available!".format(cfg.TESSERACT))