没有名为Image windows anancond的模块

2024-05-28 23:20:07 发布

您现在位置:Python中文网/ 问答频道 /正文

 from PIL import Image
from pytesser import *

image_file = 'D:\plate.jpg'
im = Image.open(image_file)
text = image_to_string(im)
text = image_file_to_string(image_file)
text = image_file_to_string(image_file, graceful_errors=True)
print "=====output=======\n"
print text

我错了

^{pr2}$

尽管我已经正确地安装了安娜康达和枕头screenshot of package installed


Tags: totextfromimageimportstringpilopen
1条回答
网友
1楼 · 发布于 2024-05-28 23:20:07

你发布的代码没有错误。从错误消息来看,错误似乎在模块pytesser.py中,您可能使用Image(在第6行:-)而不导入它。在

相关问题 更多 >

    热门问题