本文实例讲述了Python3实现获取图片文字里中文的方法。分享给大家供大家参考,具体如下:
一、运行环境
(1) win10
(2) pycharm
(3) python 3.5
(4) pillow与pytesseract库安装:
pip3 install pillow
pip3 install pytesseract
(5) 识别引擎tesseract-ocr ,下载之后解压安装,下载地址:https://www.jb51.net/softs/538925.html
二、 运行代码
# -*- coding: utf-8 -*-
from PIL import Image
impo