Commit Graph
16 Commits
Author SHA1 Message Date
Your Name 61d3ad5d83 fix pixel button detection for rgba screenshots 2026-06-24 00:47:55 +08:00
Your Name 55d38c46ec Fix fudai coupon misclick detection 2026-06-18 08:35:04 +08:00
Your Name 9b03556b7d expose fudai detail thresholds and regions 2026-06-05 15:36:10 +08:00
Your Name 37a2f94486 detect fudai detail body and dacheng task count 2026-06-04 12:27:14 +08:00
Your Name f07fbb305b fix false fudai detail pixel detection 2026-06-04 11:51:12 +08:00
Your Name dc6ae7d1e4 fix task count digit detection 2026-06-04 11:15:45 +08:00
Your Name 0c77bf9e0e Keep debug capture history for px and overview 2026-06-03 22:46:53 +08:00
Your Name 4797fa046e feat: expose fudai region coordinates in gui 2026-06-03 20:29:10 +08:00
Your Name 40f9812ab1 收口像素检测调试图输出 2026-06-03 12:05:27 +08:00
Your Name 3bcb5cb259 优化详情调试标注与截图复用 2026-06-03 11:36:47 +08:00
Your Name 42aa0f214d 修正调试图标注对齐 2026-06-03 10:47:39 +08:00
Your Name e51d37890a 精简像素调试图与日志 2026-06-03 02:11:45 +08:00
Your Name 1d37d57c90 修复福袋详情OCR v2与调试日志 2026-06-03 01:22:13 +08:00
CodexandClaude Sonnet 4.5 bb90e2983f fix(pil): 补充修复剩余 PIL Image 资源泄漏
覆盖 14 个文件中的 Image.open() 未正确关闭问题:
- fansclub_handler: 5 处(pic/pic_rgb/img 未 close)
- image_ops: 2 处(crop 后 pic 未 close)
- douyin_popups: 2 处(pic.convert 重赋值泄漏原始句柄)
- douyin_fudai: 1 处(open().convert() 链式调用泄漏)
- douyin_robot: 2 处(同上)
- save_files/direct_attend/finder/stage/find_open/detail/_common/ocr_preprocess: 各 1-2 处

统一修复模式:分离 open 与 convert,try/finally 确保原始句柄关闭。

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-23 22:49:50 +08:00
Codex 842dd254e3 fix: correct import path for check_detail_height in detect_fudai_detail_page
The relative import from .douyin_detection was looking in the
douyin/detection/pixel/ package, but douyin_detection.py lives
at douyin/detection/douyin_detection.py. This caused every fudai
detail page detection to fail with detection_exception, making the
system always treat successful detail page opens as misclicks.
2026-05-23 17:05:43 +08:00
CodexandClaude Opus 4.7 c0b8ff3ba6 拆分 douyin_pixel (1172 → 4 个子模块 + 33 行 shim)
把 douyin/detection/douyin_pixel.py 按职责拆成
douyin/detection/pixel/ 子包:

- _common (32)     _safe_open_screenshot_rgb
- popups (444)     优惠券 / 红包 / 抽奖结果弹窗检测
- buttons (340)    参与按钮 / 粉丝团加入红色区域检测
- stage (436)      直播间图标 / 福袋详情 / 综合阶段状态读取

原文件改为 33 行 re-export shim,9 个公共符号全部保留。
detect_fudai_detail_page 等 6 处外部引用、detect_attend_button_red_area
等 2 处外部引用全部不需修改。

回归:
- 5 个新文件 + shim compileall 通过
- pytest 353 passed / 1 skipped
- 旧 import 路径与新子包路径返回同一函数对象

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 16:37:06 +08:00