
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
captcha-recognizer
Advanced tools
简体中文 | English
Captcha-Recognizer是一个易用的通用滑块验证码识别库,通过深度学习训练通用的缺口检测模型,基于训练的结果,识别出验证码中的滑块缺口位置,并返回缺口的坐标与可信度。
Python >= 3.6.0
opencv-python
shapely
onnxruntime
Works on Linux, Windows, MacOS
pip install captcha-recognizer
请移步: captcha-api
支持以下类型验证码的识别
示例图 4
尺寸 672*390
识别效果示例图4
示例图 8
尺寸 305*156
识别效果示例图 8
from captcha_recognizer.slider import Slider
# source传入待识别图片,支持数据类型为 Union[str, Path, bytes, np.ndarray]
# show为布尔值,默认值为False, 为True表示展示图片识别效果,线上环境请缺省,或设置为False
box, confidence = Slider().identify(source=f'images_example/example8.png', show=True)
print(f'缺口坐标: {box}')
print('置信度', confidence)
某些种类的滑块验证码,滑块初始位置存在一定偏移,以下面图中的滑块初始位置为例:
示例图 9
如示例图9中:
通常某一类的滑块验证码,滑块偏移量是固定的,可直接通过截图工具或测量工具获取 如果是动态的偏移量,可通过 identify_offset 方法获取偏移量
from captcha_recognizer.slider import Slider
offset, confidence = Slider().identify_offset(source='example.png')
print(f'偏移量: {offset}')
print('置信度', confidence)
某些验证码,前端渲染时会对图片进行缩放,因此实际的滑块距离也要按照图片缩放比例进行计算。
示例图 10
兼容版本1:
opencv-python==4.12.0.88
numpy==2.2.6
兼容版本2:
opencv-python==4.8.0.74
numpy==1.23.0
更多兼容的版本请自行尝试
DeepWiki文档内可通过底部AI对话框进行交流,自由了解本项目。
本项目不针对任何一家验证码厂商,项目所有内容仅供学习交流使用,不用于其他任何目的,严禁用于非法用途。
MIT license
1.0.2 (2026-01-28)
1.0.1 (2025-09-29)
1.0.0 (2025-09-23)
1.0.0-Beta1 (2025-09-15)
1.0.0-Beta (2025-09-15)
0.10.0 (2025-08-19)
0.9.0 (2025-08-19)
0.9.0-Beta (2025-08-06)
0.8.0 (2025-07-16)
0.7.3 (2025-06-24)
0.7.2 (2025-05-30)
0.7.1 (2025-03-24)
0.7.0 (2025-02-12)
0.6.0 (2024-11-13)
0.5.0 (2024-11-06)
0.4.0 (2024-10-10)
0.3.3 (2024-09-29)
0.3.2 (2024-09-24)
0.3.1 (2024-09-24)
0.3.0 (2024-09-23)
0.2.1 (2024-09-10)
0.2.0 (2024-09-10)
0.1.6 (2024-09-06)
0.1.5 (2024-09-06)
0.1.4 (2024-08-30)
0.1.3 (2024-08-26)
0.1.2 (2024-08-26)
0.1.1 (2024-08-26)
0.1.0 (2024-08-23)
FAQs
We found that captcha-recognizer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.