PicoDet Helper

[English]

  • 公共头文件: #include "brookesia/service_helper/media/picodet.hpp"

概述

本页用于查看 PicoDet helper 的 Doxygen API,包括模型、检测框、帧流接入、函数和事件类型。

API 参考

Header File

Classes

class PicoDet : public esp_brookesia::service::helper::Base<PicoDet>

Schema/type definitions for the PicoDet object-detection service.

struct AttachConfig

Parameters for Attach (passed as one JSON object; all fields optional).

Public Members

std::string frame_source = "VideoEncoder0"

Service publishing the frame event.

std::string frame_event = "StreamSinkFrameReady"

Frame event name on that service.

std::string display_output

Display output to present annotated frames to; empty = detection-only.

int detect_every_n_frames = 5

Inference decimation; 1 = detect on every frame.

struct Box

One detected object returned by Detect.

Public Members

int category = 0

Class index.

std::string label

Resolved class name (empty if the model has no labels).

double score = 0.0

Confidence in [0, 1].

std::vector<int> box

{left_up_x, left_up_y, right_down_x, right_down_y}.

struct Info

Loaded-model info returned by Open and GetInfo.

Public Members

bool opened = false

Whether a model is currently loaded.

int width = 0

Model input width in pixels.

int height = 0

Model input height in pixels.

std::vector<std::string> labels

Class names, index-aligned with Box::category.

struct OpenConfig

Parameters for Open (passed as one JSON object).

Public Members

std::string model_dir

Directory holding manifest.json + the .espdl file.

double score_thr = -1.0

Optional score-threshold override; < 0 keeps the manifest value.

double nms_thr = -1.0

Optional NMS-threshold override; < 0 keeps the manifest value.