Error in converting image to text

I wanted to create a program that converts an image to text for my secret project. There is no problem in the code but in the path. Although I have created the path in system environmental variables it still gives an error.


Please do help me as this will be really helpful for my secret project

Are you sure that the file C:\Program Files (x86)\Tesseract-OCR\tesseract.exe exists on your system?

You may want to see Stack Overflow: How do I resolve a TesseractNotFoundError?.

Make sure the executable file is there.