← 返回
未分类

Ollama GLM OCR技能

本地 OCR 解决方案,使用 Ollama 部署的 GLM-OCR 模型从图片中提取文字。
本地 OCR 解决方案,使用 Ollama 部署的 GLM-OCR 模型从图片中提取文字。
方豆
未分类 community v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 17
下载
💾 0
安装
1
版本
#latest

概述

GLM-OCR Skill (本地部署)

基于 Ollama 运行的 glm-ocr 模型,纯本地 OCR 工具,无需网络。

已安装

  • 模型: glm-ocr (通过 ollama pull glm-ocr 安装)
  • 大小: 2.2 GB
  • 状态: 已下载并可用

使用方法

命令行

ollama run glm-ocr "Text Recognition: /path/to/image.png"

Python API

import subprocess
result = subprocess.run(
    ["ollama", "run", "glm-ocr", f"Text Recognition: {image_path}"],
    capture_output=True, text=True
)
print(result.stdout)

示例

# 测试
ollama run glm-ocr "Text Recognition: /tmp/test-ocr.png"

# 你的实际图片
ollama run glm-ocr "Text Recognition: ~/Downloads/screenshot.png"

注意事项

  • 首次运行需要加载模型(约 2.2 GB)
  • MacBook Air M 系列可以流畅运行
  • 支持中英文混合、代码、文档图片

版本历史

共 1 个版本

  • v1.0.0 Initial release 当前
    2026-06-05 23:22 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,086 📥 814,897
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,385 📥 321,022
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 325,912