captcha-solver

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

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "captcha-solver" with this command: npx skills add bombfuock/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

# 识别图片验证码
python solve.py --image captcha.png

# 解决reCaptcha
python solve.py --recaptcha "site_key" --url "page_url"

# 滑动验证码
python solve.py --slide background.png --template slider.png

配置 / Configuration

本地OCR

# 默认使用Tesseract
TESSERACT_CMD = "/usr/bin/tesseract"
LANG = "eng+chi_sim"  # 支持中英文

API服务 (可选)

# 2Captcha
API_2CAPTCHA = "your_api_key"

# Anti-Captcha  
API_ANTI_CAPTCHA = "your_api_key"

算法 / 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

简单文本识别

from solver import CaptchaSolver

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

滑动验证码

result = solver.solve_slide(bg_img, slider_img)
print(result)  # 输出滑动距离

reCaptcha

result = solver.solve_recaptcha(site_key, page_url)
print(result)  # 输出token

服务对比 / Service Comparison

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

注意事项 / Notes

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Music Creator

AI 音乐创作全流程技能。根据主题和风格创作歌词,通过 MiniMax AI 生成音乐和封面图,ASR 精准对齐歌词时序,生成带歌词同步的播放页面并部署。触发词:创作歌曲、写首歌、生成音乐、AI 音乐、music creator、帮我写首歌、创作音乐、做个音乐。

Registry SourceRecently Updated
General

睡眠质量分析技能

Identifies sleep stages including falling asleep, light sleep, deep sleep, and REM; monitors body movement, nighttime awakenings, and sleep apnea, suitable f...

Registry SourceRecently Updated
General

Report Expert

生成 HTML 报告页面并部署到 Cloudflare Pages 站点。涵盖设计系统、页面结构、索引管理、iframe 内嵌查看、自动部署全流程。触发词:写报告、发布报告、部署报告、生成报告页面、report publisher、报告专家、升级报告专家、更新报告技能、发布技能升级。

Registry SourceRecently Updated
General

AANA Private Data Guardrail Skill

Ensures private data is used only when necessary, authorized, minimized, and safe for tasks involving sensitive account, billing, health, legal, or personal...

Registry SourceRecently Updated