Files
douyi_guaji_main/tests
CodexandClaude Opus 4.7 d24bc85902 refactor(detection): 拆出 finder.py numpy + 逐像素扫描(719→428,-291 行)
把 finder.py 中两个像素扫描兜底块抽到 template_match_helpers:
- numpy_pixel_scan:numpy 加速水平带扫描(126 行)
- per_pixel_scan_fallback:numpy 失败时的逐像素扫描(166 行)
- _is_target_pixel / _scan_one_row / _save_per_pixel_success:辅助函数

新增 10 个单元测试覆盖:无匹配 / 命中 / 无效 ROI / last_fudai_x 复用 /
异常吞噬 / 目标颜色范围判定。1320 → 1330 用例全过。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 04:59:38 +08:00
..