Python 在Ubuntu 14.04上安装pytesser
我想使用pytesser OCR,我想在系统中进行相同的更改,以便可以从系统中的任何位置将其作为模块导入。 我尝试使用()上给出的建议,但对我无效。您可以使用Python 在Ubuntu 14.04上安装pytesser,python,ubuntu-12.04,pytesser,Python,Ubuntu 12.04,Pytesser,我想使用pytesser OCR,我想在系统中进行相同的更改,以便可以从系统中的任何位置将其作为模块导入。 我尝试使用()上给出的建议,但对我无效。您可以使用 pip install pytesseract 您应该使用PIL打开一个图像并向pytesseract提供数据。 PIL是Python图像库的缩写。只是一个图像库 pytesseract是tesseract的包装 from PIL import Image import pytesseract im = Image.open('/ho
pip install pytesseract
您应该使用PIL打开一个图像并向pytesseract提供数据。
PIL是Python图像库的缩写。只是一个图像库
pytesseract是tesseract的包装
from PIL import Image
import pytesseract
im = Image.open('/home/xxxxxxx/Downloads/img.jpg')
text = pytesseract.image_to_string(im)
print (text)
你可以用
pip install pytesseract
您应该使用PIL打开一个图像并向pytesseract提供数据。
PIL是Python图像库的缩写。只是一个图像库
pytesseract是tesseract的包装
from PIL import Image
import pytesseract
im = Image.open('/home/xxxxxxx/Downloads/img.jpg')
text = pytesseract.image_to_string(im)
print (text)
读这个。我认为pytesser只适用于windows。对于ubuntu,您必须安装pytesseract
。可以像这样完成“pip安装pytesseract”。读这个。我认为pytesser只适用于windows。对于ubuntu,您必须安装pytesseract
。可以像这样完成“pip安装pytesseract”。