use*_*597 3 python ocr python-imaging-library
我有一张像这样的图片:

我想要一个写在白色上的黑色数字,以便我可以使用 OCR 来识别它。我怎样才能在Python中实现这一点?
非常感谢,
约翰。
您无需为 OCR 操作图像。例如,您可以只使用pytesser:
from PIL import Image
from pytesser import *
im = Image.open('wjNL6.jpg')
text = image_to_string(im)
print text
Run Code Online (Sandbox Code Playgroud)
输出:
0
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
20627 次 |
| 最近记录: |