【问题标题】:What image processing techniques would help to seprate numeric text from these images?哪些图像处理技术有助于将数字文本从这些图像中分离出来?
【发布时间】:2019-02-25 01:09:09
【问题描述】:

我一直在测试我在黑白验证码上的图像处理技能,我想尝试针对更复杂的验证码进行图像处理,如下所示:

type one

type 2

任何人都可以帮助我提供有关从这里去哪里的任何信息或资源。

【问题讨论】:

  • 欢迎来到 StackOverflow。请按照您创建此帐户时的建议阅读并遵循帮助文档中的发布指南。 On topichow to ask... the perfect question 在此处申请。 StackOverflow 不是设计、编码、研究或教程资源。

标签: python opencv image-processing ocr captcha


【解决方案1】:

您可以使用 Pytesser 或 Tesseract 作为 OCR。尝试谷歌“OCR - Python”,你会发现很多 Python - OCR 库或程序可以实现你想要的。

这是一个使用 pytesser 的示例:

from PIL import Image
from pytesser import *
temp_img = Image.open('your_image.jpg')
your_digit = image_to_string(temp_img)
print your_digit

【讨论】:

    猜你喜欢
    • 2013-04-07
    • 2020-09-03
    • 2021-12-05
    • 1970-01-01
    • 1970-01-01
    • 2012-04-11
    • 1970-01-01
    • 2018-11-11
    • 2020-11-07
    相关资源
    最近更新 更多