File size: 319 Bytes
2edb151
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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})."
        )