文本提取失败来自图像pytesser

时间:2016-06-07 18:34:37

标签: python pytesser

文本提取问题。我是python中使用图像提取的新手。

from pytesser import *
import Image 

file = 'C:\\Image1.bmp'
image = Image.open(file)  # Open image object using PIL
print "1",image_to_string(image)     # Run tesseract.exe on image
print "2",image_file_to_string(file)

Text extraction works on Image1.
>> Text

Text extract does NOT work on Image2.
>> C)

建议请。 FindCaption Image1

0 个答案:

没有答案