File size: 163 Bytes
83c00db
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
from abc import ABC, abstractmethod
from PIL import Image

class OCRModel(ABC):

    @abstractmethod
    def predict(self, image: Image.Image) -> str:
        pass