PermissionError when trying to run pytesseract

Viewed 6

I am having this new error when trying to run pytesseract. My code and the error is listed below and any help would be greatly appreciated. I have looked at other posts with no luck.

I downloaded pytesseract from this github repo (the 64 bit version) and installed it into C:\Tesseract OCR

Code:

import pytesseract
pytesseract.pytesseract.tesseract_cmd = r'C:\Tesseract OCR'

screenshot = Image.open('screenshot.png')
found_text: str = pytesseract.image_to_string(screenshot)

Error:

PermissionError: [WinError 5] Access is denied
0 Answers
Related