Files

14 lines
329 B
Python

"""Image passed to the detector — the ``Detector.detect`` input type."""
from __future__ import annotations
from dataclasses import dataclass
import numpy as np
@dataclass
class Frame:
image: np.ndarray # BGR, HxWx3, uint8 (OpenCV convention)
index: int = 0 # 0-based position in the sequence (informational)