Sorry, complete newbie question here.....I installed tesseract, tesseract-lang both via homebrew, also via the terminal (using conda install https://anaconda.org/conda-forge/tesseract ). In the terminal it looks like it is installed as I get this message when I try to reinstall it;
~ % conda install -c conda-forge tesseract
Collecting package metadata (current_repodata.json): done
Solving environment: done
All requested packages already installed.
However, when I run this code;
from PIL import Image
import pytesseract
import numpy as np
filename = 'example_image_01.png'
img1 = np.array(Image.open(filename))
text = pytesseract.image_to_string(img1)
print(text)
Anaconda returns;
ModuleNotFoundError: No module named 'pytesseract'
I have also tried it with just tesseract but to no avail.
Anyone have any suggestions given I am relatively inexperienced as I am still learning python.
Thanks, Trevor