From 7d19ae4741de487fb785ea15cf5b7898d32ecff3 Mon Sep 17 00:00:00 2001 From: Accusys Date: Mon, 28 Sep 2026 02:01:25 +0800 Subject: [PATCH] feat: add OCR processor config (Apple Vision Swift CLI) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增: - 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 目的: - 統一處理器配置架構 - 支持配置驅動的工具選擇 --- config/processor_tools.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/config/processor_tools.json b/config/processor_tools.json index a4588a02..94a2f16b 100644 --- a/config/processor_tools.json +++ b/config/processor_tools.json @@ -98,6 +98,24 @@ ], "default_tool": "swift", "enabled": true + }, + "ocr": { + "tools": [ + { + "name": "swift", + "priority": 0, + "enabled": true, + "parameters": {} + }, + { + "name": "python", + "priority": 1, + "enabled": true, + "parameters": {} + } + ], + "default_tool": "swift", + "enabled": true } } }