Skip to content
Advertisement

OSError: [WinError 740] The requested operation requires elevation

I am having a simple code which has an image called “try.png” and I want to convert it from Image to Text using pytesseract but I am having some issues with the code.

JavaScript

But it’s giving me an error.

JavaScript

Any idea on how to over come this error

Advertisement

Answer

tesseract-ocr-setup-4.00.00dev.exe sounds like a setup exe and not the tesseract itself. Check if you have actually installed tesseract and if not launch the exe to install.

For Windows download the latest version from here: https://github.com/UB-Mannheim/tesseract/wiki

If you still get OSError: [WinError 740] The requested operation requires elevation try changing the tesseract executable to run as admin: Right Click tesseract.exe -> Properties -> Compability -> Check Run this program as an administrator -> OK .

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement