Configs2026年7月21日·1 分钟阅读

DeepSeek OCR — Context-Aware Document Optical Compression

High-accuracy document OCR system by DeepSeek that converts scanned documents and PDFs into structured text with layout-aware compression.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
DeepSeek OCR
直接安装命令
npx -y tokrepo@latest install 478ede2b-8523-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

DeepSeek OCR is an open-source document processing system from DeepSeek AI that goes beyond traditional OCR. It understands document layout, tables, and formatting context to produce structured, compressed text output suitable for downstream AI processing.

What DeepSeek OCR Does

  • Extracts text from scanned documents, PDFs, and images with high accuracy
  • Preserves document structure including tables, headers, and lists
  • Compresses extracted content to reduce token usage in LLM pipelines
  • Supports batch processing across multiple document formats
  • Outputs structured JSON with positional and semantic metadata

Architecture Overview

DeepSeek OCR uses a vision-language model fine-tuned on document understanding tasks. The pipeline first segments document pages into regions (text blocks, tables, figures), then applies specialized recognition models per region type. A compression stage reduces output length while preserving semantic content, making results efficient for LLM context windows.

Self-Hosting & Configuration

  • Requires Python 3.9+ with PyTorch and Transformers
  • GPU recommended for inference speed (works on CPU with reduced throughput)
  • Model weights are downloaded automatically on first run
  • Input formats include PDF, PNG, JPEG, and TIFF
  • Output format and compression level are configurable via CLI flags

Key Features

  • Layout-aware recognition that preserves document structure
  • Context-aware compression optimized for LLM consumption
  • Table extraction with row/column structure intact
  • Multi-language document support
  • Streaming output for large document batches

Comparison with Similar Tools

  • Surya — broad 90-language OCR; DeepSeek OCR focuses on structured output with compression
  • Marker — PDF-to-Markdown converter; DeepSeek OCR provides JSON output with positional data
  • Docling — document parsing for AI; DeepSeek OCR adds semantic compression
  • MinerU — extraction focused; DeepSeek OCR integrates compression for token efficiency

FAQ

Q: How does compression differ from simple summarization? A: Compression preserves all factual content and structure while removing redundancy, unlike summarization which may drop details.

Q: What languages are supported? A: English and Chinese are primary targets, with reasonable performance on other Latin-script languages.

Q: Can it handle handwritten text? A: The model is optimized for printed documents; handwriting recognition has limited accuracy.

Q: What GPU memory is required? A: Approximately 8 GB VRAM for the default model size; smaller variants available for constrained environments.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产