Skip to content

modules.audio.localization.data

Classes Diagram

Classes

MicInfo

@dataclass

A class to represent the information of a microphone.

Constructor

MicInfo(self, channel: int, xpos: float, ypos: float, orientation: float)

Members

channel: int
xpos: float
ypos: float
orientation: float

Methods

from_dict(data: dict) → MicInfo

@staticmethod

TimestampedData

@dataclass

A class to represent a timestamped data point.

Constructor

TimestampedData(self, timestamp: int, channel: int)

Members

timestamp: int
channel: int

AudioBuffer

@dataclass

Inherits from: TimestampedData

A class to represent an audio buffer, for ONLY ONE channel.

Constructor

AudioBuffer(self, timestamp: int, channel: int, data: np.ndarray)

Members

data: np.ndarray

InferenceResult

@dataclass

Inherits from: TimestampedData

A class to represent the result of an inference on drone presence.

Constructor

InferenceResult(self, timestamp: int, channel: int, confidence: float, drone: bool)

Members

confidence: float
drone: bool