Class ImgDetections

Inheritance Relationships

Base Types

Class Documentation

class ImgDetections : public dai::ImgDetectionsT<ImgDetection>, public dai::ProtoSerializable

ImgDetections message. Carries normalized detections and optional segmentation mask. The segmentation mask is stored as a single-channel INT8 2-d array, where the value represents the instance index in the list of detections. The value 255 is treated as a background pixel (no instance).

Public Types

using Base = ImgDetectionsT<dai::ImgDetection>

Public Functions

virtual ~ImgDetections() override
virtual void serialize(std::vector<std::uint8_t> &metadata, DatatypeEnum &datatype) const override
inline virtual DatatypeEnum getDatatype() const override

Get the datatype of this specific message.

Returns:

DatatypeEnum

DEPTHAI_SERIALIZE(ImgDetections, Base::Buffer::sequenceNum, Base::Buffer::ts, Base::Buffer::tsDevice, detections, transformation, segmentationMaskWidth, segmentationMaskHeight)

Public Members

std::vector<DetectionT> detections
size_t segmentationMaskHeight
size_t segmentationMaskWidth
std::optional<ImgTransformation> transformation