feat: Face JSON v2 schema - add schema_version, bbox x2/y2/center, keep embeddings, update clustering
This commit is contained in:
+185
-140
@@ -1,154 +1,199 @@
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"updated_at": "2026-10-26T17:18:56.139925+00:00",
|
||||
"updated_by": "admin",
|
||||
"vlm_prompts": {
|
||||
"rust_vlm_summary": {
|
||||
"system_prompt": "You are a helpful assistant that describes people in images.",
|
||||
"user_prompt": "Describe the person in this image. Focus on clothing, accessories, and distinctive features.",
|
||||
"max_tokens": 300,
|
||||
"description": "Face trace VLM prompt for person description"
|
||||
},
|
||||
"scene_vlm": {
|
||||
"system_prompt": "You are a helpful assistant that analyzes video scenes.",
|
||||
"user_prompt": "Describe this scene. What is happening? What objects and people are visible?",
|
||||
"max_tokens": 200,
|
||||
"description": "Scene analysis VLM prompt"
|
||||
}
|
||||
},
|
||||
"llm_config": {
|
||||
"chat": {
|
||||
"url": "http://localhost:8080/v1/chat/completions",
|
||||
"model": "gemma-4-12b-it",
|
||||
"timeout": 30
|
||||
},
|
||||
"summary": {
|
||||
"url": "http://localhost:8080/v1/chat/completions",
|
||||
"model": "gemma-4-12b-it",
|
||||
"timeout": 60
|
||||
}
|
||||
},
|
||||
"processor_config": {
|
||||
"FACE": {
|
||||
"timeout": 3600,
|
||||
"enabled": true,
|
||||
"tools": [
|
||||
{
|
||||
"name": "swift",
|
||||
"priority": 0,
|
||||
"enabled": true,
|
||||
"parameters": {}
|
||||
},
|
||||
{
|
||||
"name": "python",
|
||||
"priority": 2,
|
||||
"enabled": true,
|
||||
"parameters": {}
|
||||
}
|
||||
],
|
||||
"default_tool": "swift"
|
||||
},
|
||||
"FACE_TRACE": {
|
||||
"timeout": 3600,
|
||||
"enabled": true,
|
||||
"tools": [
|
||||
{
|
||||
"name": "rust",
|
||||
"priority": 0,
|
||||
"enabled": true,
|
||||
"parameters": {}
|
||||
},
|
||||
{
|
||||
"name": "python",
|
||||
"priority": 1,
|
||||
"enabled": true,
|
||||
"parameters": {}
|
||||
}
|
||||
],
|
||||
"default_tool": "rust"
|
||||
},
|
||||
"POSE": {
|
||||
"timeout": 3600,
|
||||
"enabled": true,
|
||||
"tools": [
|
||||
{
|
||||
"name": "swift",
|
||||
"priority": 0,
|
||||
"enabled": true,
|
||||
"parameters": {}
|
||||
},
|
||||
{
|
||||
"name": "rust",
|
||||
"priority": 1,
|
||||
"enabled": true,
|
||||
"parameters": {}
|
||||
},
|
||||
{
|
||||
"name": "mediapipe",
|
||||
"priority": 2,
|
||||
"enabled": true,
|
||||
"parameters": {
|
||||
"min_confidence": 0.5,
|
||||
"model_complexity": 2
|
||||
}
|
||||
}
|
||||
],
|
||||
"default_tool": "swift"
|
||||
},
|
||||
"CUT": {
|
||||
"timeout": 3600,
|
||||
"enabled": true,
|
||||
"tools": [
|
||||
{
|
||||
"name": "rust",
|
||||
"priority": 0,
|
||||
"enabled": true,
|
||||
"parameters": {}
|
||||
},
|
||||
{
|
||||
"name": "python",
|
||||
"priority": 2,
|
||||
"enabled": true,
|
||||
"parameters": {}
|
||||
}
|
||||
],
|
||||
"default_tool": "rust"
|
||||
},
|
||||
"ASRX": {
|
||||
"timeout": 3600,
|
||||
"enabled": true,
|
||||
"tools": [
|
||||
{
|
||||
"name": "swift",
|
||||
"priority": 0,
|
||||
"enabled": true,
|
||||
"parameters": {}
|
||||
}
|
||||
],
|
||||
"default_tool": "swift"
|
||||
},
|
||||
"OCR": {
|
||||
"timeout": 3600,
|
||||
"enabled": true,
|
||||
"tools": [
|
||||
{
|
||||
"name": "swift",
|
||||
"priority": 0,
|
||||
"enabled": true,
|
||||
"parameters": {}
|
||||
}
|
||||
],
|
||||
"default_tool": "swift"
|
||||
}
|
||||
},
|
||||
"filter_config": {
|
||||
"face": {
|
||||
"min_confidence": 0.5,
|
||||
"min_size": 30
|
||||
}
|
||||
},
|
||||
"llm_config": {
|
||||
"chat": {
|
||||
"model": "gemma-4-12b-it",
|
||||
"timeout": 30,
|
||||
"url": "http://localhost:8080/v1/chat/completions"
|
||||
},
|
||||
"summary": {
|
||||
"model": "gemma-4-12b-it",
|
||||
"timeout": 60,
|
||||
"url": "http://localhost:8080/v1/chat/completions"
|
||||
}
|
||||
"face_filter_defaults": {
|
||||
"min_confidence": 50.0,
|
||||
"min_size": 1,
|
||||
"min_capture_quality": 0.25
|
||||
},
|
||||
"processor_config": {
|
||||
"ASRX": {
|
||||
"default_tool": "swift",
|
||||
"enabled": true,
|
||||
"timeout": 3600,
|
||||
"tools": [
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "swift",
|
||||
"parameters": {},
|
||||
"priority": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"CUT": {
|
||||
"default_tool": "rust",
|
||||
"enabled": true,
|
||||
"timeout": 3600,
|
||||
"tools": [
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "rust",
|
||||
"parameters": {},
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "python",
|
||||
"parameters": {},
|
||||
"priority": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"FACE": {
|
||||
"default_tool": "swift",
|
||||
"enabled": true,
|
||||
"timeout": 3600,
|
||||
"tools": [
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "swift",
|
||||
"parameters": {},
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "python",
|
||||
"parameters": {},
|
||||
"priority": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"FACE_TRACE": {
|
||||
"default_tool": "rust",
|
||||
"enabled": true,
|
||||
"timeout": 3600,
|
||||
"tools": [
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "rust",
|
||||
"parameters": {},
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "python",
|
||||
"parameters": {},
|
||||
"priority": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"OCR": {
|
||||
"default_tool": "swift",
|
||||
"enabled": true,
|
||||
"timeout": 3600,
|
||||
"tools": [
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "swift",
|
||||
"parameters": {},
|
||||
"priority": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"POSE": {
|
||||
"default_tool": "swift",
|
||||
"enabled": true,
|
||||
"timeout": 3600,
|
||||
"tools": [
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "swift",
|
||||
"parameters": {},
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "rust",
|
||||
"parameters": {},
|
||||
"priority": 1
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "mediapipe",
|
||||
"parameters": {
|
||||
"min_confidence": 0.5,
|
||||
"model_complexity": 2
|
||||
},
|
||||
"priority": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
"paths": {
|
||||
"output_dir": "",
|
||||
"backup_dir": "",
|
||||
"scripts_dir": "",
|
||||
"cli_dir": "",
|
||||
"python_path": "",
|
||||
"ffmpeg_path": ""
|
||||
},
|
||||
"concurrency": {
|
||||
"max_concurrent_jobs": 0,
|
||||
"poll_interval": 0,
|
||||
"batch_size": 0,
|
||||
"processor_timeout_secs": 0
|
||||
},
|
||||
"feature_flags": {
|
||||
"cache_enabled": false,
|
||||
"auto_pipeline_enabled": false,
|
||||
"watcher_auto_register": false,
|
||||
"summary_enabled": false
|
||||
},
|
||||
"server": {
|
||||
"port": 0,
|
||||
"media_base_url": "",
|
||||
"serve_base_url": "",
|
||||
"storage_root": "",
|
||||
"timezone": ""
|
||||
},
|
||||
"admin_settings": {
|
||||
"session_timeout": 0,
|
||||
"max_login_attempts": 0,
|
||||
"api_key_expiry_days": 0,
|
||||
"system_stats_refresh_sec": 0,
|
||||
"preferred_language": ""
|
||||
},
|
||||
"search": {
|
||||
"vlm_max_results": 5,
|
||||
"vlm_min_score": 0,
|
||||
"vlm_min_score": 0.0,
|
||||
"vlm_output_language": "ja"
|
||||
},
|
||||
"system_config": {},
|
||||
"version": "1.0.0",
|
||||
"vlm_prompts": {
|
||||
"rust_vlm_summary": {
|
||||
"description": "Face trace VLM prompt for person description",
|
||||
"max_tokens": 300,
|
||||
"system_prompt": "You are a helpful assistant that describes people in images.",
|
||||
"user_prompt": "Describe the person in this image. Focus on clothing, accessories, and distinctive features."
|
||||
},
|
||||
"scene_vlm": {
|
||||
"description": "Scene analysis VLM prompt",
|
||||
"max_tokens": 200,
|
||||
"system_prompt": "You are a helpful assistant that analyzes video scenes.",
|
||||
"user_prompt": "Describe this scene. What is happening? What objects and people are visible?"
|
||||
}
|
||||
"pipeline": {
|
||||
"enabled": true,
|
||||
"max_concurrent_stages": 5,
|
||||
"default_timeout_secs": 7200,
|
||||
"flows": {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user