Esta página se muestra en inglés. Una traducción al español está en curso.
ConfigsJul 21, 2026·2 min de lectura

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.

Listo para agents

Instalación lista para agent

Este activo puede instalarse después de elegir el runtime, revisar el plan y ejecutar el comando correspondiente.

Native · 98/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Established
Entrada
DeepSeek OCR
Comando de instalación directa
npx -y tokrepo@latest install 478ede2b-8523-11f1-9bc6-00163e2b0d79 --target codex

Ejecutar después de confirmar el plan con 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

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados