Files
douyi_guaji_main/douyin/detection/detection_pkg
CodexandClaude Opus 4.7 e3daeab024 refactor(finder): 抽 check_have_fudai_with_ready_screenshot 中"逐像素扫描兜底"块到 finder_pixel_scan
将 183 行的"numpy 未命中时的原始逐像素检查"块抽到独立模块。
保留了原代码"找到后退出外层 while 循环"的 break 语义(在调用方
检查返回的 detected 后 break)。

finder.py: 726 → 553 行 (-173)
新增 finder_pixel_scan.py: 207 行

finder.py 跌破 600 行(1438 → 553,本会话累计削减 885 行 = -62%)

验证:
- pytest 1013 passed
- compile OK

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