from __future__ import annotations from pathlib import Path from backends.base import OCRResult class CpuOCR: name = "cpu" def ocr(self, path: Path) -> OCRResult: raise NotImplementedError( f"RapidOCR CPU fallback is Phase 2 and must not auto-download weights (path={path})." )