文本提取问题。我是在 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)