I was writing a code to extract text from images using "pytesseract" library in Python. This is my code
text = pytesseract.image_to_string(Image.open("Figure_3.png"))
print(text)
fig, (ax1) = plt.subplots(1)
ax1.imshow("Figure3.png")
I just store the text in the image to a variable and display the original image.
I am getting the following error
TesseractNotFoundError: tesseract is not installed or it's not in your path
I have added Tesseract to my environment variable. I don't know where I have gone wrong. I don't have any problem in importing ass well.