Aadhaar-UID-Masking-Tool icon indicating copy to clipboard operation
Aadhaar-UID-Masking-Tool copied to clipboard

It not working on mac

Open dssoft32 opened this issue 1 year ago • 1 comments

any solution fo mac?

dssoft32 avatar Dec 13 '24 06:12 dssoft32

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

Devansh80 avatar Dec 19 '24 06:12 Devansh80