CoolAuthor:Dario Radečić
Title: Read Text from Image with One Line of Python Code
Site https://towardsdatascience.com/read-text-from-image-with-one-line-of-python-code-c22ede074cac
通过pytesseract和opencv-python我们可以读取图片中的文本,
安装opencv-python
pytesseract!pip3 install opencv-python!pip3 install pytesseract
mac经过上面两个步骤就解决了安装问题,windows鼓捣了一晚上我还是没有解决,惭愧。
各位可以参考原文 https://towardsdatascience.com/read-text-from-image-with-one-line-of-python-code-c22ede074cac
发扬艰苦奋斗自力更生精神,询问下百度谷歌两位大神
实战
importpytesseract
importcv2
img=