Class YoloDetector#

Class Documentation#

class YoloDetector#

Public Functions

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

Public Static Functions

static std::string_view get_coco_class_name(int class_id)#