我正在使用Pytesseract,当我使用英语时它正在工作,但是当我开始使用俄语时。我有这样的问题:从图像中提取文本。 OCR
"TypeError: 'str' does not support the buffer interface". I've tried other language it also doesn't work.
这是我的代码:
from PIL import Image
from pytesseract import image_to_string
k=image_to_string(Image.open("ff.jpg"), lang="rus")
print(image_to_string(Image.open("picture.jpg"), lang="rus"))
有人可以帮我解决这个问题呢?
感谢您的帮助) –