pytesseract-no such file or directory error

前端 未结 3 1247
一个人的身影
一个人的身影 2020-12-05 23:18

I am using Ubuntu 14.04. I have the following code:

import Image
import pytesseract
im = Image.open(\'test.png\')
print pytesseract.image_to_string(im)
         


        
3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-06 00:00

    You need to install tesseract-ocr:

    sudo apt-get install tesseract-ocr
    

提交回复
热议问题