python实现图像识别功能

wanily40349 46 0 PDF 2021-01-04 03:01:21

本文实例为大家分享了python实现图像识别的具体代码,供大家参考,具体内容如下 #! /usr/bin/env python from PIL import Image import pytesseract \nurl='img/denggao.jpeg' image=Image.open(url) #image=image.convert('RGB') # RGB image=image.convert('L') # 灰度 image.load() text=pytesseract.image_to_string(image) print text #image.show() r'

用户评论
请输入评论内容
评分:
暂无评论