Aadhaar-UID-Masking-Tool
Aadhaar-UID-Masking-Tool copied to clipboard
It not working on mac
any solution fo mac?
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