remove: Portal project (Core Team 不再維護前端)

- 移除 portal/ 目錄 (Vue 3 + Tauri 前端)
- 更新 AGENTS.md 移除 Portal 相關說明
- 更新代碼註釋移除 Portal 引用
- 前端開發統一由 Studio Team 負責

參考: docs_v1.0/OPERATIONS/GUI_ARCHITECTURE_REVIEW.md
This commit is contained in:
Accusys
2026-09-30 18:59:40 +08:00
parent 144ec0768a
commit 4b694a1c2d
198 changed files with 3675 additions and 29374 deletions
+28 -2
View File
@@ -142,6 +142,17 @@ def build_trace_profiles(file_uuid=None, dry_run=False):
for fid in file_uuids:
print(f"\n--- {fid} ---")
# Load face.json for bbox lookup (fallback when Qdrant bbox is null)
face_json_path = os.path.join(OUTPUT_DIR, f"{fid}.face.json")
face_json_data = {}
if os.path.exists(face_json_path):
try:
with open(face_json_path) as f:
face_json_data = json.load(f)
print(f" Loaded face.json for bbox lookup")
except Exception as e:
print(f" Warning: Failed to load face.json: {e}")
# Scroll all points for this file with trace_id >= 0
points = scroll_all(
{
@@ -162,9 +173,24 @@ def build_trace_profiles(file_uuid=None, dry_run=False):
for p in points:
pl = p["payload"]
tid = pl.get("trace_id", 0)
frame_num = pl["frame"]
# Try to get bbox from Qdrant first, then fallback to face.json
bbox = pl.get("bbox", {})
if not bbox or (bbox.get("width", 0) == 0 and bbox.get("height", 0) == 0):
# Fallback: find matching face in face.json by frame number
if face_json_data:
for frame_data in face_json_data.get("frames", []):
if frame_data.get("frame") == frame_num:
for face in frame_data.get("faces", []):
if face.get("trace_id") == tid:
bbox = face.get("bbox", {})
break
break
traces[tid].append({
"frame": pl["frame"],
"bbox": pl.get("bbox", {}),
"frame": frame_num,
"bbox": bbox,
"confidence": pl.get("confidence", 0.0),
"capture_quality": pl.get("capture_quality", 0),
})