File size: 297 Bytes
2e237ce
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from abc import ABC, abstractmethod
from pathlib import Path


class OCRService(ABC):
    @abstractmethod
    def process_pdf_ocr(self, filename: str, namespace: str, language: str = "en") -> Path:
        pass

    @abstractmethod
    def get_supported_languages(self) -> list[str]:
        pass