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

18 lines
724 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-21-20-13
## 后端改造
1. `_process_video` 每一帧都执行当前方法分割,用当前帧的 overlay 写入右侧结果视频。
2. `max_frames` 仅控制下方结果卡片保存数量,不再控制结果视频中哪些帧执行分割。
3.`compare` 方法:
- 抽样关键帧保存多方法结果。
- 结果视频仍使用该帧或非关键帧的 fusion overlay。
4. 移除“最近掩膜持续叠加”的逻辑,避免运动帧错位。
## 测试增强
- 对选中的关键帧,读取结果视频同一帧并与保存的 overlay 图比较,确保视频画面和下方卡片一致。
- 保留完整视频时长、fps 和多方法对比接口测试。