【问题标题】:How to Extraction Text from an captcha Image Using vb.net [closed]如何使用 vb.net 从验证码图像中提取文本 [关闭]
【发布时间】:2012-05-24 11:38:56
【问题描述】:

使用 vb.net 如何从验证码图像中提取文本

【问题讨论】:

  • 这里不是这样的。请阅读我们的FAQ 以了解此处接受哪些类型的答案。
  • 验证码图像的确切目的难道不是您不能(轻松)使用任何编程语言从它们获取文本并避免黑客攻击和垃圾邮件吗?我想我们在这里不是同一个团队...

标签: vb.net image extract captcha imagemagick.net


【解决方案1】:

您的一点研究可以大有帮助。为回答您的问题,有一项名为“验证码死亡”的服务 (http://www.deathbycaptcha.eu)。他们有一个 .NET API,而且非常可靠。

这是用于解码验证码的示例 C# 代码:

// Do not forget to reference DeathByCaptcha.dll in your project!
using DeathByCaptcha;

// Put your DBC credentials here.
// Use HttpClient class if you want to use HTTP API.
Client client = (Client) new SocketClient(USERNAME, PASSWORD);

// Put your CAPTCHA file name, stream, or vector of bytes,
// and desired timeout (in seconds) here:
Captcha captcha = client.Decode(CAPTCHA_FILE_NAME, TIMEOUT);
if (captcha.Solved && captcha.Correct) {
    Console.WriteLine("CAPTCHA {0}: {1}", captcha.Id, captcha.Text);

    // Report the CAPTCHA if solved incorrectly.
    // Make sure the CAPTCHA was in fact incorrectly solved!
    if ( ... ) {
        client.Report(captcha);
    }
}

// Repeat for other CAPTCHAs

容易翻译成VB

【讨论】:

  • 不,我想要不使用任何 API
  • 祝你好运。这是我发现的最便宜/最简单的解决方案,可以自动化我需要的东西。
猜你喜欢
  • 2022-08-19
  • 1970-01-01
  • 1970-01-01
  • 2011-09-03
  • 1970-01-01
  • 2021-08-30
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多