简体   繁体   中英

How to use pytesseract in replit?

I want to convert image to text using pytesseract on Replit platform but how will I import tesseract.exe on repl? Can you please help me with that.

pytesseract.pytesseract.tesseract_cmd = r'C:\Users\USER\AppData\Local\Tesseract-OCR\tesseract.exe'

I'm not sure if your talking about Linux however as you did not specify that.

IF you are talking about Linux you should run install-pkg tesseract-ocr in the console and then pytesseract.pytesseract.tesseract_cmd = "tesseract". Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM