File size: 332 Bytes
f1ba785
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
"""Sequence-recognizer port; implementations may use GPU, CPU, ONNX, or Triton."""
from typing import Protocol

from .contracts import BeamCandidate, SemanticClass


class NumericRecognizer(Protocol):
    version: str

    def recognize(self, image_bytes: bytes, semantic_class: SemanticClass) -> list[BeamCandidate]: ...