- 下载Tesseract-OCR并且安装配置路径下载地址
- pip install pytesseract
- 代码如下:
from PIL import Image
from pytesseract import *
def img_ocr(img_path):
pic = Image.open(img_path)
pic_gray = pic.convert(</
from PIL import Image
from pytesseract import *
def img_ocr(img_path):
pic = Image.open(img_path)
pic_gray = pic.convert(</