Class YoloDetector#

Nested Relationships#

Nested Types#

Class Documentation#

class YoloDetector#

Public Functions

YoloDetector()#
~YoloDetector()#
YoloDetector(const YoloDetector&) = delete#
auto operator=(const YoloDetector&) -> YoloDetector& = delete#
YoloDetector(YoloDetector&&) noexcept#
auto operator=(YoloDetector&&) noexcept -> YoloDetector&#
auto initialize(const YoloConfig &config) -> std::expected<void, OnnxError>#
auto is_initialized() const -> bool#
auto detect(std::span<const float> image_data, std::uint32_t width, std::uint32_t height) -> std::expected<DetectionResult, OnnxError>#
auto detect_from_gstreamer(gstreamer::GStreamerPipeline &pipeline, std::uint32_t timeout_ms = 5000) -> std::expected<DetectionResult, OnnxError>#

Public Static Functions

static auto get_coco_class_name(int class_id) -> std::string#
struct Impl#

Public Members

inference::OnnxInferenceEngine engine#
YoloConfig config#
bool initialized = {false}#