Код Python для преобразования изображения в строку

#python-3.x

#python-3.x

Вопрос:

NameError: name 'pytesseract' is not defined

 from PIL import Image
from pytesseract import image_to_string
img=Image.open('hlo.png')
text=pytesseract.image_to_string(img)
print(text)
speech=gTTS(text=text,lang="en",slow=False) 
speech.save('hello.mp3')
  

Комментарии:

1. строка text=pytesseract.image_to_string(img) должна быть text=image_to_string(img)

2. Где находится импорт для gTTS?