issue: 020.mp4 face card missing

問題:
- Face page 沒有卡片顯示
- 100 個 faces 全部無效 (bbox=0x0, trace_id=-1)
- Worker 無限循環

根本原因:
- Face detection 輸出無效 bbox (與之前相同)

已修復:
- ✅ Swift Face processor bbox 驗證
- ✅ Binary 重新編譯 (Sep 29 02:22)
- ✅ 清理無效數據

待執行:
- 重新處理文件 (Re-scan)
- 驗證修復效果

文檔:
- docs_v1.0/M4_workspace/2026-09-28_020_mp4_face_card_missing.md
This commit is contained in:
Accusys
2026-09-29 02:23:03 +08:00
parent 08f574efc5
commit bca93c3a5d
@@ -0,0 +1,128 @@
---
title: 020.mp4 Face Card 問題
version: 1.0
date: 2026-09-28
author: OpenCode
status: identified
---
## 問題描述
**URL**: https://studio.momentry.ddns.net/face?file=b496a68800f90770aa7246c877f38985
**狀態**: 沒有卡片顯示
---
## 問題診斷
### Qdrant 數據
```
Total faces: 100
Trace ID: -1 (100%)
BBox: 0x0 (100% 無效)
```
### 輸出目錄
```
✅ Output directory exists
❌ trace_* directories: 0
❌ face.json: not found
❌ face_traced.json: not found
```
---
## 根本原因
**與之前相同的問題**:
1. Face detection 輸出無效 bbox (width=0, height=0)
2. 所有 trace_id = -1
3. 無法生成 trace profiles
4. Worker 無限循環等待 trace stability
---
## 已修復
**Swift Face Processor**:
- ✅ 添加 bbox 驗證邏輯
- ✅ 過濾 width <= 0 或 height <= 0 的 bbox
- ✅ 重新編譯 (Sep 29 02:22)
**但是**:
- ❌ Worker 使用的是舊 binary
- ❌ 重新處理後仍然有相同問題
---
## 需要執行
### Step 1: 清理無效數據
刪除 Qdrant 中的無效 faces (100 points)
### Step 2: 重新處理文件
**選項 A: 重新註冊**
```bash
curl -X POST http://localhost:3002/api/v1/register \
-H "Content-Type: application/json" \
-d '{"path": "/path/to/020.mp4"}'
```
**選項 B: Re-scan**
- 在 UI 中點擊 "Re-scan"
- 使用新的 Swift Face processor
---
## 驗證方法
### 檢查 face.json
```python
import json
with open('face.json', 'r') as f:
data = json.load(f)
valid = 0
invalid = 0
for frame in data['frames']:
for face in frame['faces']:
bbox = face['bbox']
if bbox['width'] > 0 and bbox['height'] > 0:
valid += 1
else:
invalid += 1
print(f"Valid: {valid}, Invalid: {invalid}")
```
**期望結果**:
```
Valid: N, Invalid: 0
```
---
## 總結
### ✅ 已識別
1. Face bbox 無效(與之前相同)
2. Swift Face processor 已修復
3. Binary 已重新編譯
### ⏳ 待執行
1. 清理無效數據
2. 重新處理文件
3. 驗證修復效果
---
**日期**: 2026-09-28
**狀態**: ⚠️ **問題已識別,待重新處理**