12 lines
249 B
Python
12 lines
249 B
Python
from abc import ABC, abstractmethod
|
|
|
|
import numpy as np
|
|
|
|
from supervision.detection.core import Detections
|
|
|
|
|
|
class BaseAnnotator(ABC):
|
|
@abstractmethod
|
|
def annotate(self, scene: np.ndarray, detections: Detections) -> np.ndarray:
|
|
pass
|