[img]https:/ /i.sstatic.net/eMLu1.png[/img]
Я пробовал использовать приведенные ниже коды, но выдает ошибку:
Код: Выделить всё
import pytesseract
from PIL import Image
img=Image.open(r'gif file path')
pytesseract.pytesseract.tesseract_cmd = 'C:/Program Files (x86)/Tesseract-
OCR/tesseract'
r=pytesseract.image_to_string(img)
print(r)
And
from PIL import Image
from pytesseract import image_to_string
img=Image.open('gif file path')
text=image_to_string(img)
print(text)
TesseractNotFoundError.
< /blockquote>
Пожалуйста, помогите получить текст с помощью Python.
Примечание: pytesseract > уже установлен.
Подробнее здесь: https://stackoverflow.com/questions/595 ... ytesseract