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

31 lines
1023 B
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-20-35-32
## 自动化测试
- `python3 -m compileall backend tests`
- `node --check frontend/app.js`
- `pytest -q`
## 接口验证
- 使用内置样例视频调用 `/api/segment`
- 检查第 40 帧的卡片叠加图存在黄色分割像素。
- 检查输出结果视频第 40 帧附近存在黄色叠加像素。
## 浏览器验证
- 打开页面、加载样例、运行分割。
- 点击下方“帧 40”。
- 确认右侧视频不再显示纯原图,而是带有分割叠加。
## 执行结果
- `python3 -m compileall backend tests`:通过。
- `node --check frontend/app.js`:通过。
- `pytest -q`5 passed。
- API 样例分割:返回 12 个结果关键帧,包含第 40 帧。
- 后端视频像素检查:结果视频第 39、40、41 帧分别检测到 4742、5851、5710 个黄色叠加像素。
- Chrome headless 页面验证:点击“帧 40”后右侧视频 `currentTime=3.3333``duration=6`,画面检测到 5824 个黄色叠加像素。