2.0k 查看 · 0 喜欢 · 386 收藏 · 2026-06-24 更新
glmocr
触发条件:(1) 用户希望从图片/PDF/扫描文档中提取文本、表格、公式或结构化数据,(2) 用户提到“OCR”、“文字识别”、“文档解析”,(3) 用户拥有一份文档(截图、扫描页、发票、纸质文件、白板照片)并需要将其内容以结构化形式呈现,(4) 用户请求解析、数字化或从视觉文档中提取内容。通过调用GLM-OCR SDK (pip install glmocr) 通过智谱云API解析文档。无需GPU。返回结构化的JSON(带有标签的区域+边界框)和Markdown。代理可以通过CLI完全操作——不需要YAML文件。不适用于:实时摄像头流、音频转录或非文档图像(照片、插图)。
Trigger when: (1) User wants to extract text, tables, formulas, or structured data from images/PDFs/scanned documents, (2) User mentions "OCR", "文字识别", "文档解析", (3) User has a document (screenshot, scanned page, invoice, paper, whiteboard photo) and needs its content in structured form, (4) User asks to parse, digitize, or extract content from a visual document. Invokes the GLM-OCR SDK (pip install glmocr) to parse documents via Zhipu's cloud API. No GPU required. Returns structured JSON (regions with labels + bounding boxes) and Markdown. Agent can operate entirely via CLI — no YAML files needed. NOT for: real-time camera feeds, audio transcription, or non-document images (photos, illustrations).
触发词
- "OCR"
- "文字识别"
- "文档解析"
