Skip to content

Commit

Permalink
Add quotes to solve problems with tesseract datapaths containing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
michael.kuelper authored and michael.kuelper committed Mar 7, 2023
1 parent 01318af commit b48c3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guibot/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2019,7 +2019,7 @@ def __synchronize_backend(self, backend=None, category="text", reset=False):
if backend == "pytesseract":
import pytesseract
self.ocr = pytesseract
self.ocr_config = r"--tessdata-dir %s --oem %s --psm %s "
self.ocr_config = r"--tessdata-dir '%s' --oem %s --psm %s "
self.ocr_config %= (tessdata_path,
self.params["ocr"]["oem"].value,
self.params["ocr"]["psmode"].value)
Expand Down

0 comments on commit b48c3f4

Please sign in to comment.