Files
douyin_guaji-main/tools
Your Name 95b4517bdd feat: Enhance logging and parameter tracking capabilities
- Refactor `gui_core.py` to improve code readability and maintainability by adding line breaks for long statements.
- Introduce `inspect_lines.py` script for inspecting specific line ranges in files.
- Add `generate_param_locations.py` to scan the repository and generate a report of function definitions, argparse parameters, and tracking calls.
- Implement `param_usage_tool.py` for analyzing `param_usage.json` records and scanning code for tracking calls.
- Create `simulate_reservation_preempted_flow.py` and `simulate_reservation_preempted_flow_dynamic.py` to validate behavior of reservation logic under specific conditions.
- Add global parameter tracking feature in `run_cli.py` to enable detailed usage tracing.
2026-01-03 19:12:58 +08:00
..

tools/scan_coords.py — 坐标/ROI 扫描工具

用途

  • 扫描仓库中疑似硬编码坐标或裁剪区域(如 (100, 200)、(x1,y1,x2,y2))的代码行。
  • 输出 CSV 到 tools/coords_report.csv,便于人工或脚本进一步审查。

用法

python tools/scan_coords.py

输出

  • tools/coords_report.csv 包含字段:file,line,match,context。

注意

  • 本脚本使用简单正则匹配,可能存在误报/漏报,建议在生成报告后人工复核。
  • 可根据需要扩展正则或关键词列表以覆盖更多模式。