def __init__(self, args): init_logger('info') self.args = args self.config = OCRConfig() self.config.update(lang='eng') self.timeout = 40 self.connect()
def __init__(self, args): init_logger('info') self.args = args self.config = OCRConfig() self.config.update(lang=self.args.language) self.timeout = 60 self.connect()
def __init__(self, args): # see https://github.com/tesseract-ocr/tesseract/issues/2611 os.environ['OMP_THREAD_LIMIT'] = '1' init_logger('info') self.args = args self.config = OCRConfig() self.config.update(lang=self.args.language) self.timeout = 120 self.setup_finish_sleep = 900 self.connect()
def __init__(self, args=None, role='master', language='en'): init_logger('info') self.args = self.parse_args(args) self.ocr_config = self.__get_ocr_config() self.vm_config = VmConfig(ip=self.args.ip, role=role, language=language) host = self.__get_host() self.vnc_connection = VNCConnection(host)
def setup(self): init_logger('info')