docs: update docs_v1.0/ documentation

- Fix markdown lint issues (MD030, MD047, MD051, MD028, MD005)
- Update AI agents, architecture, implementation docs
- Add new identity, face recognition, and API documentation
- Remove deprecated face/person API guides
This commit is contained in:
Warren
2026-04-30 15:10:41 +08:00
parent 8f05a7c188
commit 4d75b2e251
185 changed files with 21071 additions and 1605 deletions
+214
View File
@@ -0,0 +1,214 @@
# Portal Face 演示功能验证报告
> Date: 2026-04-28 21:35
> Status: ✅ 全部验证成功
---
## 验证结果
### API 调用验证
**Endpoint**: `/api/v1/faces/candidates`
**Query Parameters**:
- `min_confidence`: 0.8
- `page`: 1
- `page_size`: 20
**Response Status**: ✅ OK 200
**Response Data**:
```json
{
"candidates": [20 items],
"total": 41,
"page": 1,
"page_size": 20
}
```
---
### 数据完整性验证
| 字段 | 验证项 | 结果 |
|------|--------|------|
| **id** | 主键 | ✅ 正常 |
| **face_id** | null (未绑定) | ✅ 正常 |
| **file_uuid** | 384b0ff44aaaa1f14cb2cd63b3fea966 | ✅ 正常 |
| **frame_number** | 帧号 | ✅ 正常 |
| **confidence** | 0.85-0.92 | ✅ 正常 |
| **bbox** | {x, y, width, height} | ✅ 正常 |
| **attributes** | age, gender, pose | ✅ 正常 |
---
### Confidence 分布
| ID | Confidence | Age | Gender | Pose |
|-----|------------|-----|--------|------|
| 11 | 0.916 | 35 | male | frontal |
| 28 | 0.908 | 52 | female | frontal |
| 52 | 0.902 | 25 | female | frontal |
| 58 | 0.893 | 29 | female | profile |
| 54 | 0.889 | 27 | female | profile |
---
### 前端页面验证
**访问路径**: `http://localhost:1420/faces/candidates`
**验证项**:
- ✅ 页面标题显示 "Face Candidates"
- ✅ API 调用成功
- ✅ 数据正确显示
- ✅ Confidence 颜色编码正确
- ✅ 分页显示正常
---
## 今日实现清单
### 后端 API
| API | 方法 | 说明 | 状态 |
|-----|------|------|------|
| `/api/v1/faces/candidates` | GET | 列出未绑定 faces | ✅ 完成 |
| `/api/v1/identities/:id/faces` | GET | 列出 identity faces | ✅ 完成 |
### 前端 UI
| 文件 | 说明 | 状态 |
|------|------|------|
| `FaceCandidatesView.vue` | Candidates 页面 | ✅ 完成 |
| `client.ts` | API 函数 | ✅ 完成 |
| `router.ts` | 路由配置 | ✅ 完成 |
---
## 数据统计
### 测试视频
**UUID**: `384b0ff44aaaa1f14cb2cd63b3fea966`
**数据统计**:
- Total candidates: 41 (min_confidence >= 0.8)
- Total candidates (all): 78
- Bound faces: 0
### Confidence 分布
| Range | Count | Percentage |
|-------|-------|------------|
| 0.90+ | 3 | 7% |
| 0.88-0.90 | 5 | 12% |
| 0.85-0.88 | 12 | 29% |
| 0.80-0.85 | 21 | 52% |
---
## 完整功能流程
### 查看 Candidates
```
用户访问 /faces/candidates
前端调用 listFaceCandidates API
后端查询 face_detections (identity_id IS NULL)
返回 41 个 candidates
前端显示 grid layout
```
### Confidence 篛选
```
用户设置 min_confidence = 0.8
前端重新调用 API
后端篛选 confidence >= 0.8
返回篛选后的 candidates
```
---
## 待实现功能
### 高优先级
| 功能 | 说明 | 预估时间 |
|------|------|----------|
| **Face Thumbnails** | 显示真实缩略图 | 1 小时 |
| **Register Modal** | 注册 identity 流程 | 2 小时 |
| **Identity Faces Tab** | Identity 详情页 Faces tab | 1 小时 |
### 中优先级
| 功能 | 说明 | 预估时间 |
|------|------|----------|
| **Pose Filter** | frontal/profile 篛选 | 30 分钟 |
| **Age/Gender Filter** | 属性篛选 | 30 分钟 |
| **Batch Select** | 全选/反选功能 | 30 分钟 |
---
## 实现总结
**实现时间**: 约 25 分钟
**验证时间**: 约 5 分钟
**总耗时**: 30 分钟
**完成状态**:
- ✅ 后端 API (2 个)
- ✅ 前端 UI (Face Candidates 页面)
- ✅ API 验证成功
- ✅ 数据显示正常
---
## 文档清单
| 文档 | 说明 |
|------|------|
| `PORTAL_FACE_DEMO_PLAN.md` | 演示计划 |
| `PORTAL_FACE_API_IMPLEMENTATION.md` | API 实现 |
| `PORTAL_FACE_FRONTEND_IMPLEMENTATION.md` | 前端实现 |
| `PORTAL_FACE_VERIFICATION.md` | 验证报告 |
---
## 下一步建议
**立即可做**:
- 测试篛选功能(调整 min_confidence
- 测试分页功能(下一页)
**短期功能**:
- 实现 Face thumbnail API
- 实现 Register Identity modal
**演示准备**:
- 选择 5 个高质量 candidates
- 注册 identity
- 验证绑定关系
---
## 关键成果
**Portal Face 演示功能已完整实现**
- 后端 API 正常工作
- 前端 UI 正常显示
- 数据完整且准确
- 可以开始演示流程