返回顶部
c

captcha-solver验证码识别

验证码识别与解决 - 本地OCR识别 + 第三方API / CAPTCHA Recognition and Solving - Local OCR + Third-party APIs

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
728
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

captcha-solver

验证码识别与解决 / CAPTCHA Solver

自动识别和解决各类验证码 / Automatically recognize and solve various CAPTCHAs

支持类型 / Supported Types

本地OCR识别 / Local OCR (免费/Free)

  • - 🔤 简单文本验证码 / Simple text CAPTCHA
  • 🔢 数字验证码 / Numeric CAPTCHA
  • ➕ 数学运算验证码 / Math CAPTCHA
  • 🖼️ 滑动验证码(缺口检测) / Slide CAPTCHA (gap detection)

API解决 / API Solving (付费/APIs)

  • - reCAPTCHA v2/v3
  • hCaptcha
  • Cloudflare Turnstile
  • 2Captcha / Anti-Captcha

使用方法 / Usage

bash

识别图片验证码


python solve.py --image captcha.png

解决reCaptcha

python solve.py --recaptcha sitekey --url pageurl

滑动验证码

python solve.py --slide background.png --template slider.png

配置 / Configuration

本地OCR

python

默认使用Tesseract

TESSERACT_CMD = /usr/bin/tesseract LANG = eng+chi_sim # 支持中英文

API服务 (可选)

python

2Captcha

API2CAPTCHA = yourapi_key

Anti-Captcha

APIANTICAPTCHA = yourapikey

算法 / Algorithms

1. 图像预处理

  • - 灰度转换 / Grayscale
  • 二值化 / Binarization
  • 去噪 / Denoising
  • 锐化 / Sharpening

2. 字符分割

  • - 连通域分析 / Connected component analysis
  • 投影法 / Projection method

3. 字符识别

  • - 模板匹配 / Template matching
  • 机器学习 / ML-based OCR

4. 滑动验证码

  • - 边缘检测 / Edge detection
  • 缺口定位 / Gap localization
  • 轨迹生成 / Trajectory generation

示例 / Examples

简单文本识别

python from solver import CaptchaSolver

solver = CaptchaSolver()
result = solver.solve_image(captcha.png)
print(result) # 输出识别的字符

滑动验证码

python result = solver.solveslide(bgimg, slider_img) print(result) # 输出滑动距离

reCaptcha

python result = solver.solverecaptcha(sitekey, page_url) print(result) # 输出token

服务对比 / Service Comparison

服务价格成功率速度
本地OCR免费60-80%
2Captcha
$2.99/1000 | 95%+ | 慢 | | Anti-Captcha | $2.00/1000 | 95%+ | 中 |

注意事项 / Notes

  1. 1. 优先使用本地OCR,失败再调用API
  2. 遵守网站使用条款
  3. 不要用于非法用途

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 captcha-solver-1776207933 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 captcha-solver-1776207933 技能

通过命令行安装

skillhub install captcha-solver-1776207933

下载

⬇ 下载 captcha-solver v1.0.0(免费)

文件大小: 5.46 KB | 发布时间: 2026-4-15 12:33

v1.0.0 最新 2026-4-15 12:33
Initial release of captcha-solver.

- Supports automatic recognition and solving of various CAPTCHAs using local OCR and third-party APIs.
- Handles simple text, numeric, math, and slide CAPTCHAs locally (Tesseract-based).
- Integrates with APIs (reCAPTCHA, hCaptcha, Cloudflare Turnstile, 2Captcha, Anti-Captcha) for advanced solving.
- Provides configurable options for OCR and API services.
- Includes image processing steps and algorithm details.
- Features example usage for all supported types.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部