···12 Perform OCR on a screenshot that contains text.
13 Returns a string with all words that could be found.
14 """
15- variants = perform_ocr_variants_on_screenshot(screenshot_path, False)[0]
16- if len(variants) != 1:
17- raise MachineError(f"Received wrong number of OCR results: {len(variants)}")
18- return variants[0]
192021def perform_ocr_variants_on_screenshot(
···12 Perform OCR on a screenshot that contains text.
13 Returns a string with all words that could be found.
14 """
15+ return perform_ocr_variants_on_screenshot(screenshot_path, False)[0]
000161718def perform_ocr_variants_on_screenshot(