来自 PIL 导入图像 导入 pytesseract
print(pytesseract.image_to_string(Image.open('sample.png')))
以上是我使用pytesseract识别文本的代码 但它显示错误作为附加图像 我该怎么办?