7.1.5. OCR

class BookBrowser.OCR.OcrEngine(data_path=PosixPath('/usr/local/stow/tesseract/data'))[source]

Bases: object

__init__(data_path=PosixPath('/usr/local/stow/tesseract/data'))[source]

Initialize self. See help(type(self)) for accurate signature.

_instance = None
_logger = <Logger BookBrowser.OCR.OcrEngine (WARNING)>
_rlock = <unlocked _thread.RLock object owner=0 count=0>
image_to_text(image, language, fake=False)[source]