dsh-ocr
通过 OpenAI/Anthropic 视觉 API 为 DSH 提供 OCR:ocr_recognize 工具(百分比坐标 + 双对角点框,低置信度自动区域重读),以及设置中的折叠设置卡片。
AI 分析
核心用途是为 Agent 提供高精度的视觉文字识别能力。适合需要处理图片文字、图表解析的任务,支持置信度阈值触发的局部自动重读优化。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:BaihaWhite/mcp-ds-ocr说明文档
阅读完整 README ↗配置项(dsh-settings 持久化,全局生效)
| 字段 | 说明 |
|---|---|
apiFormat | openai(POST {apiurl}/chat/completions,Bearer)或 anthropic(POST {apiurl}/v1/messages,x-api-key + anthropic-version,自动补 /v1) |
apiurl | 服务商 base URL |
apikey | 认证密钥(明文存于本机设置文件,请勿外传) |
model | 视觉模型名;「获取模型列表」拉取后可从旁侧下拉选择 |
threshold | 置信度阈值(默认 0.7),低于阈值触发区域重读 |
coordMode | both / percent / pixel |
retryEnabled | 是否自动区域重读(默认开) |
maxRounds | 重读最大轮数(1-3,默认 2) |