码迷,mamicode.com
首页 > 其他好文 > 详细

Tesseract

时间:2018-10-27 00:23:22      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:sudo   har   imp   install   open   pytho   ESS   cal   ima   

  1. 定义
    • Tesseract是一个将图像翻译成文字的OCR库(光学文字识别,Optical Character Recognition)
  2. 安装
    • sudo apt-get install tesseract-ocr
  3. 在python中调用Tesseract
    • pip install pytesseract
  • 在python代码中
    import pytesseract
    from PIL import Image
    image = Image.open(jpg)
    pytesseract.image_to_string(image)

Tesseract

标签:sudo   har   imp   install   open   pytho   ESS   cal   ima   

原文地址:https://www.cnblogs.com/colden/p/9859130.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!