RawImgDetections.hpp
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace dai {
8 
10 struct ImgDetection {
11  uint32_t label = 0;
12  float confidence = 0.f;
13  float xmin = 0.f;
14  float ymin = 0.f;
15  float xmax = 0.f;
16  float ymax = 0.f;
17 };
18 
19 DEPTHAI_SERIALIZE_EXT(ImgDetection, label, confidence, xmin, ymin, xmax, ymax);
20 
22 struct RawImgDetections : public RawBuffer {
23  std::vector<ImgDetection> detections;
24 
25  void serialize(std::vector<std::uint8_t>& metadata, DatatypeEnum& datatype) const override {
26  metadata = utility::serialize(*this);
27  datatype = DatatypeEnum::ImgDetections;
28  };
29 
30  DatatypeEnum getType() const override {
32  }
33 
35 };
36 
37 } // namespace dai
dai::ImgDetection::ymin
float ymin
Definition: RawImgDetections.hpp:14
dai::DatatypeEnum
DatatypeEnum
Definition: DatatypeEnum.hpp:7
dai::DEPTHAI_SERIALIZE_EXT
DEPTHAI_SERIALIZE_EXT(CameraSensorConfig, width, height, minFps, maxFps, fov, type)
dai::ImgDetection::xmin
float xmin
Definition: RawImgDetections.hpp:13
dai::utility::serialize
bool serialize(const T &obj, std::vector< std::uint8_t > &data)
Definition: Serialization.hpp:38
dai::RawImgDetections::serialize
void serialize(std::vector< std::uint8_t > &metadata, DatatypeEnum &datatype) const override
Definition: RawImgDetections.hpp:25
dai::RawBuffer::sequenceNum
int64_t sequenceNum
Definition: RawBuffer.hpp:16
dai::RawImgDetections::DEPTHAI_SERIALIZE
DEPTHAI_SERIALIZE(RawImgDetections, detections, RawBuffer::sequenceNum, RawBuffer::ts, RawBuffer::tsDevice)
dai::ImgDetection::ymax
float ymax
Definition: RawImgDetections.hpp:16
dai::RawImgDetections::getType
DatatypeEnum getType() const override
Definition: RawImgDetections.hpp:30
dai::RawBuffer::tsDevice
Timestamp tsDevice
Definition: RawBuffer.hpp:18
RawBuffer.hpp
dai::RawImgDetections::detections
std::vector< ImgDetection > detections
Definition: RawImgDetections.hpp:23
Serialization.hpp
dai::RawImgDetections
RawImgDetections structure.
Definition: RawImgDetections.hpp:22
dai::DatatypeEnum::ImgDetections
@ ImgDetections
dai::RawBuffer
RawBuffer structure.
Definition: RawBuffer.hpp:12
dai::ImgDetection::xmax
float xmax
Definition: RawImgDetections.hpp:15
dai::ImgDetection::label
uint32_t label
Definition: RawImgDetections.hpp:11
dai
Definition: CameraExposureOffset.hpp:6
dai::ImgDetection::confidence
float confidence
Definition: RawImgDetections.hpp:12
Point3f.hpp
dai::RawBuffer::ts
Timestamp ts
Definition: RawBuffer.hpp:17
dai::ImgDetection
ImgDetection structure.
Definition: RawImgDetections.hpp:10


depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19