Yuliang-Liu/MonkeyOCR
A lightweight LMM-based Document Parsing Model
What it solves
MonkeyOCR is designed to solve the complexities of document parsing, specifically the challenge of converting PDFs and images into structured formats like Markdown. It aims to replace cumbersome multi-tool pipelines and the inefficiency of using massive multimodal models for full-page processing by providing a more streamlined, high-performance approach to recognizing text, formulas, and tables.
How it works
The project utilizes a Structure-Recognition-Relation (SRR) triplet paradigm. This approach simplifies the parsing process by focusing on three core components: identifying the structure of the document, recognizing the content within those structures, and determining the relationship between different blocks of content. It supports both English and Chinese documents and offers different model sizes (e.g., 1.2B and 3B parameters) to balance speed and accuracy.
Who it’s for
This tool is intended for developers and researchers who need to convert complex documents (PDFs or images) into structured, machine-readable text, especially those working with multilingual (English and Chinese) documents containing mathematical formulas and tables.
Highlights
- High Performance: Outperforms several closed-source and large open-source VLMs (like GPT-4o and Gemini 2.0-Flash) on the OmniDocBench benchmark.
- Flexible Deployment: Supports a wide range of GPUs (from 4060 to H800) and provides Docker deployment options.
- Comprehensive Output: Generates processed Markdown files, layout PDFs, and detailed intermediate JSON results containing block coordinates and relationships.
- Efficient Scaling: The 1.2B model provides a significant speed increase (approx. 36%) over the 3B version with minimal performance loss.
Related
- Project
- Project
- Project
- Project
- Project