get_textpage_ocr() No OCR support: TESSDATA_PREFIX not set #2439
-
get_textpage_ocr() not work
!apt install tesseract-ocr RuntimeError: No OCR support: TESSDATA_PREFIX not set |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Shouldn't you use the command |
Beta Was this translation helpful? Give feedback.
Ah, and in PyMuPDF there is a variable being set in
__init__.py
that checks theos.environ
variable, so the above must happen before import fitz.