Add slide and rotate interactive captcha solvers

New solver subsystem with independent models:
- GapDetectorCNN (1x128x256 grayscale → sigmoid) for slide gap detection
- RotationRegressor (3x128x128 RGB → sin/cos via tanh) for rotation angle prediction
- SlideSolver with 3-tier strategy: template match → edge detect → CNN fallback
- RotateSolver with ONNX sin/cos → atan2 inference
- Generators, training scripts, CLI commands, and slide track utility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hua
2026-03-11 18:07:06 +08:00
parent 90d6423551
commit 9b5f29083e
20 changed files with 1440 additions and 10 deletions

17
solvers/__init__.py Normal file
View File

@@ -0,0 +1,17 @@
"""
验证码求解器包
提供两种交互式验证码求解器:
- SlideSolver: 滑块验证码求解 (OpenCV 优先 + CNN 兜底)
- RotateSolver: 旋转验证码求解 (ONNX sin/cos 回归)
"""
from solvers.base import BaseSolver
from solvers.slide_solver import SlideSolver
from solvers.rotate_solver import RotateSolver
__all__ = [
"BaseSolver",
"SlideSolver",
"RotateSolver",
]