python 使用pytesseract 进行图片ocr识别

image

#! /usr/bin/env python
# -*- coding: utf-8 -*-#
# -------------------------------------------------------------------------------
# Name:         demo
# Author:       yunhgu
# Date:         2021/8/25 16:02
# Description: 
# -------------------------------------------------------------------------------
import pytesseract
from PIL import Image

img = Image.open(r"F:\pythonProject\图片OCR识别\20190414175438830.png")
content = pytesseract.image_to_string(img)
print(content)

image

posted @ 2021-09-22 16:05  不能说的秘密  阅读(100)  评论(0编辑  收藏  举报