feat: pending identity sorting, face detail modal, video player fps, processor counts
This commit is contained in:
@@ -301,6 +301,73 @@ id, face_id, file_uuid, frame_number, confidence, bbox, attributes
|
||||
|
||||
---
|
||||
|
||||
## 10. Unregister API
|
||||
|
||||
### POST /api/v1/unregister
|
||||
|
||||
**Auth**: Required
|
||||
|
||||
Delete a registered file from the system. Supports single file by UUID, or batch by directory + regex pattern.
|
||||
|
||||
| Field | Type | Required | Default | Description |
|
||||
|-------|------|----------|---------|-------------|
|
||||
| `file_uuid` | string | * | — | Single file UUID to delete |
|
||||
| `file_path` | string | * | — | Directory path (for batch delete) |
|
||||
| `pattern` | string | * | — | Regex pattern (requires `file_path`) |
|
||||
| `delete_output_files` | boolean | No | `true` | Also delete processor output JSON files |
|
||||
|
||||
**Response (200)**:
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"file_uuid": "8703db16...",
|
||||
"message": "File ... unregistered successfully.",
|
||||
"deleted_face_detections": 0,
|
||||
"deleted_processor_results": 0,
|
||||
"deleted_chunks": 0,
|
||||
"deleted_qdrant_vectors": 1,
|
||||
"deleted_redis_keys": 1,
|
||||
"deleted_output_files": 10
|
||||
}
|
||||
```
|
||||
|
||||
**Error**: `400` (missing params), `404` (UUID not found), `401` (bad API key)
|
||||
|
||||
---
|
||||
|
||||
## 11. Process API
|
||||
|
||||
### POST /api/v1/file/{uuid}/process
|
||||
|
||||
Trigger processing pipeline for a registered file. Runs asynchronously.
|
||||
|
||||
| Field | Type | Required | Default | Description |
|
||||
|-------|------|----------|---------|-------------|
|
||||
| `processors` | string[] | No | all | Processors: `cut`, `asr`, `asrx`, `yolo`, `ocr`, `face`, `pose`, `visual_chunk`, `story`, `5w1h` |
|
||||
| `rules` | string[] | No | all | Rule names (currently unused) |
|
||||
|
||||
**Response (200)**:
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"job_id": 42,
|
||||
"file_uuid": "3a6c1865...",
|
||||
"status": "processing",
|
||||
"pids": [12345, 12346],
|
||||
"message": "Processing triggered for video.mp4"
|
||||
}
|
||||
```
|
||||
|
||||
### GET /api/v1/progress/{uuid}
|
||||
|
||||
Real-time processing progress.
|
||||
|
||||
### GET /api/v1/jobs
|
||||
|
||||
List all processing jobs.
|
||||
|
||||
---
|
||||
|
||||
## API Response Key 摘要
|
||||
|
||||
| 端點 | Response Key | 備註 |
|
||||
|
||||
Reference in New Issue
Block a user