mirror of
https://github.com/macaodha/batdetect2.git
synced 2025-06-29 14:41:58 +02:00
22 lines
371 B
Python
22 lines
371 B
Python
from typing import Dict, NamedTuple, Protocol
|
|
|
|
import numpy as np
|
|
|
|
__all__ = [
|
|
"BatDetect2Prediction",
|
|
]
|
|
|
|
|
|
class BatDetect2Prediction(NamedTuple):
|
|
start_time: float
|
|
end_time: float
|
|
low_freq: float
|
|
high_freq: float
|
|
detection_score: float
|
|
class_scores: Dict[str, float]
|
|
features: np.ndarray
|
|
|
|
|
|
class PostprocessorProtocol(Protocol):
|
|
pass
|