Files
ISISeg/工程分析/测试方案-2026-05-18-19-41-29.md

1.1 KiB
Raw Blame History

测试方案

开始时间2026-05-18-19-41-29

测试项

  • bash scripts/generate_sample.sh
  • ffprobe 检查 storage/samples/synthetic_guidewire.mp4 编码。
  • pytest -q
  • curl -s http://127.0.0.1:8001/api/health
  • curl -s http://127.0.0.1:8001/api/samples
  • 使用样例视频调用 /api/segment,确认后端仍可读取视频。

验收标准

  • 样例视频编码为 H.264 或至少返回 codec_tag_string=avc1
  • 点击“加载样例”后左侧原始视频面板能显示视频画面。
  • 分割接口仍可处理样例视频。

执行结果

  • bash scripts/generate_sample.sh:通过,重新生成样例视频和样例图像。
  • ffprobe storage/samples/synthetic_guidewire.mp4:通过,返回 codec_name=h264codec_tag_string=avc1pix_fmt=yuv420p
  • pytest -q通过4 个测试全部通过。
  • /api/samples:通过,返回新的样例视频大小 638484 字节。
  • /api/segment 使用新样例视频:通过,返回 job_id=da013f73c636 和 3 帧分割结果。
  • git diff --check:通过,无空白格式错误。