pytesser,PIL:IOError:[Errno 2]没有这样的文件或目录

时间:2016-04-19 11:20:57

标签: python python-imaging-library ovh pytesser

我正在尝试使用pytesser,但我在最后一行有错误:

  

OSError:[Errno 2]没有这样的文件或目录

我的代码是Python 2.7 version

try:
    import Image
except ImportError:
    from PIL import Image

import os   

from pytesseract import *
from pytesser import *

file = "fonts_test.png";
img = Image.open( file )
img.load()
print( image_to_string( img ) )

但是fonts_test.png存在于与我的代码相同的目录中。 这是pytesserPIL中的内部问题?

我在OVH共享服务器上使用此代码。我将pytesser安装在与我的代码相同的目录中。 OVH管理PIL

谢谢!

0 个答案:

没有答案