Community写作与编辑github.com

sunrisever/glm-ocr

AI-assisted GLM OCR toolkit for PDF/PPT/Image to Markdown | AI辅助的GLM OCR工具:PDF/PPT/图片转 Markdown

glm-ocr 是什么?

glm-ocr is a Claude Code agent skill that aI-assisted GLM OCR toolkit for PDF/PPT/Image to Markdown | AI辅助的GLM OCR工具:PDF/PPT/图片转 Markdown.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add sunrisever/glm-ocr

Installed? Explore more 写作与编辑 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

glm-ocr 是做什么的?

AI-assisted GLM OCR toolkit for converting PDF, PPT, and images to Markdown.

Features

  • Converts PDF, PPT, and image files to Markdown
  • Preserves table structures and formatting
  • Uses GLM AI for accurate text recognition
  • Supports batch processing via CLI

Usage

glm-ocr input.pdf -o output.md

Requirements

  • Python 3.8+
  • GLM API key configured in environment variable GLM_API_KEY

Installation

pip install glm-ocr

Configuration

Set your GLM API key:

export GLM_API_KEY='your-api-key-here'

Supported Platforms

  • Linux
  • macOS
  • Windows (via WSL)

How It Works

The tool sends document pages to the GLM AI model for OCR processing. It then reconstructs the text and tables into Markdown format, preserving the original layout as much as possible.

Example

Convert a PDF file:

glm-ocr report.pdf -o report.md

Convert an image:

glm-ocr screenshot.png -o notes.md

License

MIT

相关技能