change type signature

This commit is contained in:
Florian Förster 2025-10-09 10:50:32 +02:00
parent 554b14050c
commit 09818f79e6

View File

@ -2,10 +2,19 @@ import dataclasses as dc
from pathlib import Path
from typing import TypeAlias, TypedDict
import numpy as np
import numpy.typing as npt
Box: TypeAlias = tuple[tuple[float, float], tuple[float, float], float]
InferenceResult: TypeAlias = tuple[npt.NDArray, npt.NDArray, float, bool]
CsvData: TypeAlias = list[str | int]
@dc.dataclass(kw_only=True, slots=True)
class InferenceResult:
img: npt.NDArray[np.uint8]
anomaly_map_resized: npt.NDArray
anomaly_score: float
anomaly_label: bool
class SensorImages(TypedDict):