我想使用pytesser,我想在系统中做同样的更改,这样我就可以将它作为一个模块从系统中的任何地方导入。我试着使用(Installing pytesser)上的建议,但这对我没有用。
发布于 2017-02-27 06:41:02
您可以使用
pip install pytesseract您应该使用PIL打开一个图像并输入pytesseract。PIL是的缩写。只是个图片库。
pytesseract是tesseract的包装物。
from PIL import Image
import pytesseract
im = Image.open('/home/xxxxxxx/Downloads/img.jpg')
text = pytesseract.image_to_string(im)
print (text)https://stackoverflow.com/questions/37630887
复制相似问题