Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/336.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在Ubuntu 14.04上安装pytesser_Python_Ubuntu 12.04_Pytesser - Fatal编程技术网

Python 在Ubuntu 14.04上安装pytesser

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

我想使用pytesser OCR,我想在系统中进行相同的更改,以便可以从系统中的任何位置将其作为模块导入。 我尝试使用()上给出的建议,但对我无效。

您可以使用

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”。