Files
ISISeg/工程分析/测试方案-2026-05-18-21-20-13.md

31 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 测试方案
开始时间2026-05-18-21-20-13
## 自动化测试
- `python3 -m compileall backend tests`
- `node --check frontend/app.js`
- `pytest -q`
## 接口验证
- 使用内置样例视频调用 `/api/segment`
- 检查结果视频时长仍为 6 秒。
- 检查第 25、55、70 帧附近有当前帧分割叠加。
## 浏览器验证
- 加载样例并运行分割。
- 点击第 25、55、70 帧。
- 确认右侧视频与下方对应卡片更一致,不再使用旧掩膜造成明显错位。
## 执行结果
- `python3 -m compileall backend tests`:通过。
- `node --check frontend/app.js`:通过。
- `pytest -q`5 passed。
- API 样例分割:结果视频仍为 6 秒,关键帧为 `[0, 5, 15, 20, 25, 30, 40, 45, 50, 55, 65, 70]`
- 第 25、55、70 帧:右侧视频帧与下方卡片 overlay 的平均像素差分别为 `3.184``3.45``3.464`,属于 H.264 压缩误差级别。
- Chrome headless 页面验证:点击第 25、55、70 帧后,右侧时间分别为 `2.0833``4.5833``5.8333` 秒,并检测到稳定黄色叠加像素。