Skip to content

Installation

Gaurav14cs17 edited this page Jun 21, 2026 · 1 revision

Installation

From PyPI

pip install flashocr

With extras

pip install "flashocr[all]"       # Everything
pip install "flashocr[export]"    # ONNX export
pip install "flashocr[analytics]" # Benchmarking, plots

From source

git clone https://github.com/FlashVision/FlashOCR.git
cd FlashOCR
pip install -e ".[all]"

Docker

docker build -t flashocr -f docker/Dockerfile .
docker run --gpus all flashocr version

Verify

flashocr check
flashocr version

Requirements

  • Python >= 3.8
  • PyTorch >= 2.0
  • OpenCV >= 4.8

Clone this wiki locally