Multimodal-OCR2 is an advanced, experimental optical character recognition and document analysis suite designed to extract high-fidelity text, reconstruct complex document layouts, and generate structured markdown from diverse visual inputs.
5
stars
36
commits
Python
primary language
Mar 23, 2026
updated
Multimodal-OCR2 is an advanced, experimental optical character recognition and document analysis suite designed to extract high-fidelity text, reconstruct complex document layouts, and generate structured markdown from diverse visual inputs. Built around a versatile collection of state-of-the-art vision-language models—including architectures based on Qwen2.5-VL, Qwen3-VL, and specialized document parsers like SmolDocling—this application excels at handling dense documents, multilingual texts, and real-world scene text. The suite features a custom-built, interactive web interface that allows users to seamlessly process standard documents, receipts, and screenshots. With built-in support for advanced parsing techniques (such as Docling integration for structured markdown export) and fully GPU-accelerated inference, Multimodal-OCR2 provides developers and researchers with a powerful environment for testing and refining next-generation document intelligence workflows.
FireRed-OCR, Nanonets-OCR-s, MonkeyOCR-Recognition, Thyme-RL, Typhoon-OCR-7B, and SmolDocling-256M-preview..txt file.├── examples/
│ ├── 1.jpg
│ ├── 2.jpg
│ ├── 3.jpg
│ ├── 4.jpg
│ └── 5.jpg
├── app.py
├── LICENSE
├── pre-requirements.txt
├── README.md
└── requirements.txt
To run Multimodal-OCR2 locally, you need to configure a Python environment with the following dependencies. Ensure you have a compatible CUDA-enabled GPU for optimal performance.
1. Install Pre-requirements Run the following command to update pip to the required version:
pip install pip>=23.0.0
2. Install Core Requirements
Install the necessary machine learning and UI libraries. You can place these in a requirements.txt file and run pip install -r requirements.txt. Note that this suite also requires docling_core for advanced markdown export.
git+https://github.com/huggingface/transformers.git@v4.57.6
git+https://github.com/huggingface/accelerate.git
git+https://github.com/huggingface/peft.git
transformers-stream-generator
huggingface_hub
qwen-vl-utils
sentencepiece
opencv-python
torch==2.8.0
docling-core
torchvision
matplotlib
requests
kernels
hf_xet
spaces
pillow
gradio
av
Once your environment is set up and the dependencies are installed, you can launch the application by running the main Python script:
python app.py
After the script initializes the interface, it will provide a local web address (usually http://127.0.0.1:7860/) which you can open in your browser to interact with the models. Note that the selected models will be downloaded and loaded into VRAM upon their first invocation.
36 commits
Python
100.0%
Multimodal-OCR2 is an advanced, experimental optical character recognition and document analysis suite designed to extract high-fidelity text, reconstruct complex document layouts, and generate structured markdown from diverse visual inputs.
5
stars
36
commits
Python
primary language
Mar 23, 2026
updated
Multimodal-OCR2 is an advanced, experimental optical character recognition and document analysis suite designed to extract high-fidelity text, reconstruct complex document layouts, and generate structured markdown from diverse visual inputs. Built around a versatile collection of state-of-the-art vision-language models—including architectures based on Qwen2.5-VL, Qwen3-VL, and specialized document parsers like SmolDocling—this application excels at handling dense documents, multilingual texts, and real-world scene text. The suite features a custom-built, interactive web interface that allows users to seamlessly process standard documents, receipts, and screenshots. With built-in support for advanced parsing techniques (such as Docling integration for structured markdown export) and fully GPU-accelerated inference, Multimodal-OCR2 provides developers and researchers with a powerful environment for testing and refining next-generation document intelligence workflows.
FireRed-OCR, Nanonets-OCR-s, MonkeyOCR-Recognition, Thyme-RL, Typhoon-OCR-7B, and SmolDocling-256M-preview..txt file.├── examples/
│ ├── 1.jpg
│ ├── 2.jpg
│ ├── 3.jpg
│ ├── 4.jpg
│ └── 5.jpg
├── app.py
├── LICENSE
├── pre-requirements.txt
├── README.md
└── requirements.txt
To run Multimodal-OCR2 locally, you need to configure a Python environment with the following dependencies. Ensure you have a compatible CUDA-enabled GPU for optimal performance.
1. Install Pre-requirements Run the following command to update pip to the required version:
pip install pip>=23.0.0
2. Install Core Requirements
Install the necessary machine learning and UI libraries. You can place these in a requirements.txt file and run pip install -r requirements.txt. Note that this suite also requires docling_core for advanced markdown export.
git+https://github.com/huggingface/transformers.git@v4.57.6
git+https://github.com/huggingface/accelerate.git
git+https://github.com/huggingface/peft.git
transformers-stream-generator
huggingface_hub
qwen-vl-utils
sentencepiece
opencv-python
torch==2.8.0
docling-core
torchvision
matplotlib
requests
kernels
hf_xet
spaces
pillow
gradio
av
Once your environment is set up and the dependencies are installed, you can launch the application by running the main Python script:
python app.py
After the script initializes the interface, it will provide a local web address (usually http://127.0.0.1:7860/) which you can open in your browser to interact with the models. Note that the selected models will be downloaded and loaded into VRAM upon their first invocation.
36 commits
Python
100.0%