feat: add OCR processor config (Apple Vision Swift CLI)
新增: - OCR 處理器配置 - Swift CLI 優先 (Apple Vision) 工具優先級: 1. swift (priority=0, enabled=true) - Apple Vision OCR 2. python (priority=1, enabled=true) - Python 備用 ToolSelector: - 已支持 swift_ocr 和 ocr_processor.py 目的: - 統一處理器配置架構 - 支持配置驅動的工具選擇
This commit is contained in:
@@ -98,6 +98,24 @@
|
|||||||
],
|
],
|
||||||
"default_tool": "swift",
|
"default_tool": "swift",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
|
},
|
||||||
|
"ocr": {
|
||||||
|
"tools": [
|
||||||
|
{
|
||||||
|
"name": "swift",
|
||||||
|
"priority": 0,
|
||||||
|
"enabled": true,
|
||||||
|
"parameters": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "python",
|
||||||
|
"priority": 1,
|
||||||
|
"enabled": true,
|
||||||
|
"parameters": {}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default_tool": "swift",
|
||||||
|
"enabled": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user