Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想做的是图像识别
给定图像(5000 × 3500)尺寸(白色背景)
图像将具有几何图形以及字母数字
python会做识别。
只需使用该pytesseract库即可解决您的问题。
pytesseract
首先使用以下 pip 命令安装必要的库: pip install pytesseract, Pillow
pip install pytesseract, Pillow
成功完成此操作后,您可以运行以下代码。
try: from PIL import Image except ImportError: import Image import pytesseract print(pytesseract.image_to_string(Image.open('test.png')))