Appearance
modules.vision.detection.drone_detection
Classes Diagram
Module Dependencies
Classes
DroneDetection
Handles drone detection using a YOLOv8 model with optional background threading.
Constructor
DroneDetection(self, model_type: str = 'yolo', model_path: Path = 'yolov8n.pt', enable: bool = True, enable_recording: bool = False, save_fp: Path = Path())
Members
enable
model
channels
_stop_event
_thread: threading.Thread | None
_stream: VideoSource | None
_frame_interval
fps
enable_recording
recording
results_queue
ipc_publisher
Methods
_run_detection(self, display: bool = True)
Internal method running detection loop in a thread.
get_last_results(self) → list[Results] | None
Retrieves the first available result.
is_empty(self) → bool
Tells if the results list is empty.
start(self, stream: VideoSource, display: bool = True)
Start detection in a background thread.
stop(self)
Stop the detection thread.
is_running(self) → bool
Check if detection thread is active.