Skip to content

feat: Homography calibration + ByteTrack tracking pipeline#1

Merged
mechanic-Q merged 28 commits into
devfrom
feat/homography-calibration
May 18, 2026
Merged

feat: Homography calibration + ByteTrack tracking pipeline#1
mechanic-Q merged 28 commits into
devfrom
feat/homography-calibration

Conversation

@mechanic-Q

@mechanic-Q mechanic-Q commented May 18, 2026

Copy link
Copy Markdown
Owner

摘要

Phase 1: Homography 场地标定工具

  • utils/homography.py:场坐标变换、场地线绘制、鸟瞰图、JSON 持久化(8 个测试)
  • tools/calibrate_field.py:Streamlit 标定 UI
  • configs/homography/:标定结果存储目录

Phase 2: 追踪 + 场地坐标映射 Pipeline

  • inference/predict_track.py:ByteTrack 追踪 + 坐标映射 + CSV 导出 + 视频标注
  • tests/test_tracking.py:4 个测试(标定查找 + CSV 导出)
  • configs/models.py:DEFAULT_MODEL 改为 v3, DEFAULT_CONF 改为 0.35

验证

  • ✅ 26/26 测试通过(8 homography + 4 tracking + 14 existing)
  • ✅ 55-56min 视频:1500 帧追踪,107 条轨迹
  • ✅ 20-23min 视频:4378 帧追踪,266 条轨迹
  • ✅ 标定缺失时优雅降级(像素-only 输出)

下一步(待设计)

  • 物理过滤(速度/加速度/轨迹连续性)

lmr added 28 commits May 11, 2026 18:01
@mechanic-Q mechanic-Q changed the title feat: add Homography field calibration tool feat: Homography calibration + ByteTrack tracking pipeline May 18, 2026
@mechanic-Q mechanic-Q merged commit 47a257b into dev May 18, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant