ImgDetections.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <chrono>
4 #include <unordered_map>
5 #include <vector>
6 
9 namespace dai {
10 
14 class ImgDetections : public Buffer {
15  std::shared_ptr<RawBuffer> serialize() const override;
17 
18  public:
20  ImgDetections();
21  explicit ImgDetections(std::shared_ptr<RawImgDetections> ptr);
22  virtual ~ImgDetections() = default;
23 
25  std::vector<ImgDetection>& detections;
26 
30  ImgDetections& setTimestamp(std::chrono::time_point<std::chrono::steady_clock, std::chrono::steady_clock::duration> timestamp);
31 
35  ImgDetections& setTimestampDevice(std::chrono::time_point<std::chrono::steady_clock, std::chrono::steady_clock::duration> timestamp);
36 
40  ImgDetections& setSequenceNum(int64_t sequenceNum);
41 };
42 
43 } // namespace dai
dai::ImgDetections::detections
std::vector< ImgDetection > & detections
Detections.
Definition: ImgDetections.hpp:25
dai::ImgDetections::ImgDetections
ImgDetections()
Construct ImgDetections message.
Definition: ImgDetections.cpp:9
dai::ImgDetections::setSequenceNum
ImgDetections & setSequenceNum(int64_t sequenceNum)
Definition: ImgDetections.cpp:22
dai::ImgDetections::~ImgDetections
virtual ~ImgDetections()=default
dai::ImgDetections::setTimestamp
ImgDetections & setTimestamp(std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp)
Definition: ImgDetections.cpp:14
dai::Buffer
Base message - buffer of binary data.
Definition: Buffer.hpp:13
RawImgDetections.hpp
dai::RawImgDetections
RawImgDetections structure.
Definition: RawImgDetections.hpp:22
dai::ImgDetections::serialize
std::shared_ptr< RawBuffer > serialize() const override
Definition: ImgDetections.cpp:5
dai::ImgDetections::dets
RawImgDetections & dets
Definition: ImgDetections.hpp:16
Buffer.hpp
dai::ImgDetections
Definition: ImgDetections.hpp:14
dai
Definition: CameraExposureOffset.hpp:6
dai::ImgDetections::setTimestampDevice
ImgDetections & setTimestampDevice(std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp)
Definition: ImgDetections.cpp:18


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