You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure, I was trying to make some changes but not sure if it will work or not
import sys
Detect the operating system
platform_name = sys.platform
Adjust paths or assume tools are in system PATH
if platform_name.startswith("win"):
pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe"
poppler_path = r"C:\path\to\poppler\bin"
elif platform_name == "darwin": # macOS is identified as 'darwin'
pytesseract.pytesseract.tesseract_cmd = "tesseract"
poppler_path = None # Assume pdftoppm from Poppler is in system PATH
elif platform_name.startswith("linux"):
pytesseract.pytesseract.tesseract_cmd = "tesseract"
poppler_path = None # Assume pdftoppm from Poppler is in system PATH
any solution fo mac?
The text was updated successfully, but these errors were encountered: