| { | |
| "name": "ocr", | |
| "version": "2.0.0", | |
| "description": "通用 OCR 图片文字识别插件", | |
| "author": "System", | |
| "ui_path": "/tool/ocr", | |
| "requirements": [], | |
| "enabled": true, | |
| "category": "content_extraction", | |
| "capabilities": ["ocr", "image_text_extraction"], | |
| "governance": { | |
| "status": "active", | |
| "handling_decision": "正常使用", | |
| "dependency_risk": "依赖 paddleocr/paddlepaddle,首次加载模型较慢" | |
| }, | |
| "providers": [ | |
| { | |
| "name": "ppocrv6_det", | |
| "model_id": "PaddlePaddle/PP-OCRv6_medium_det_safetensors", | |
| "description": "PP-OCRv6 medium 文本检测模型", | |
| "status": "not_verified" | |
| }, | |
| { | |
| "name": "ppocrv6_rec", | |
| "model_id": "PaddlePaddle/PP-OCRv6_medium_rec_safetensors", | |
| "description": "PP-OCRv6 medium 文本识别模型", | |
| "status": "not_verified" | |
| } | |
| ], | |
| "ui": { | |
| "type": "static" | |
| }, | |
| "tools": [ | |
| { | |
| "name": "ocr_upload", | |
| "display_name": "OCR 上传识别", | |
| "purpose": "通过 multipart 上传图片并异步识别", | |
| "parameters": { | |
| "file": { | |
| "type": "file", | |
| "required": true, | |
| "description": "图片文件" | |
| } | |
| }, | |
| "risk_level": "low" | |
| }, | |
| { | |
| "name": "ocr_image_base64", | |
| "display_name": "OCR Base64 识别", | |
| "purpose": "从 Base64 图片中识别文字", | |
| "parameters": { | |
| "image_base64": { | |
| "type": "string", | |
| "required": true, | |
| "description": "图片 Base64" | |
| }, | |
| "suffix": { | |
| "type": "string", | |
| "required": false, | |
| "description": "文件后缀(默认 .jpg)" | |
| } | |
| }, | |
| "risk_level": "low" | |
| } | |
| ] | |
| } | |