Huoer9527/dsh-simpletex-ocr ↗★ 0

dsh-simpletex-ocr

SimpleTex 专用 OCR/公式识别工具 simpletex_recognize:task=formula 返回 LaTeX(含置信度),task=text 返回 Markdown,task=auto 按问题关键词路由。GUI 设置卡热配置 token/端点/上限。 适合需识别图片公式或文字的用户,需先配置 SimpleTex API Key。

패키지
dsh-simpletex-ocr
호환성
미검증
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 16.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Huoer9527/dsh-simpletex-ocr

配置

GUI 卡只管 API Key(写入凭证服务 SIMPLETEX_TOKEN)。

高级项(端点 / rec_mode / 大小上限 / 超时)用默认值即可;需要定制时编辑 ~/.dsh/profiles/web/settings.yaml:

simpletex-ocr:
  tokenEnv: SIMPLETEX_TOKEN                                     # 从哪个凭证名读 API Key
  endpointFormula: https://server.simpletex.cn/api/latex_ocr_turbo
  endpointText: https://server.simpletex.cn/api/simpletex_ocr
  recMode: auto
  enableImgRot: true
  maxBytes: 10485760                                            # 图片字节上限(10 MB)
  timeoutMs: 60000

Key 解析优先级:settings.yaml 里的 inline token → 凭证服务 SIMPLETEX_TOKEN(GUI 保存的就是这个)→ 启动环境变量。找不到 Key 时,第一次调用会给出明确报错,不会影响宿主。