Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
dai::ImgDetections Class Reference

#include <ImgDetections.hpp>

Inheritance diagram for dai::ImgDetections:
Inheritance graph
[legend]

Public Member Functions

 ImgDetections ()
 Construct ImgDetections message. More...
 
 ImgDetections (std::shared_ptr< RawImgDetections > ptr)
 
ImgDetectionssetSequenceNum (int64_t sequenceNum)
 
ImgDetectionssetTimestamp (std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp)
 
ImgDetectionssetTimestampDevice (std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp)
 
virtual ~ImgDetections ()=default
 
- Public Member Functions inherited from dai::Buffer
 Buffer ()
 Creates Buffer message. More...
 
 Buffer (std::shared_ptr< dai::RawBuffer > ptr)
 
std::vector< std::uint8_t > & getData () const
 Get non-owning reference to internal buffer. More...
 
int64_t getSequenceNum () const
 
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > getTimestamp () const
 
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > getTimestampDevice () const
 
void setData (const std::vector< std::uint8_t > &data)
 
void setData (std::vector< std::uint8_t > &&data)
 
BuffersetSequenceNum (int64_t sequenceNum)
 
BuffersetTimestamp (std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp)
 
BuffersetTimestampDevice (std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp)
 
virtual ~Buffer ()=default
 
- Public Member Functions inherited from dai::ADatatype
 ADatatype (std::shared_ptr< RawBuffer > r)
 
std::shared_ptr< RawBuffergetRaw () const
 
virtual ~ADatatype ()=default
 

Public Attributes

std::vector< ImgDetection > & detections
 Detections. More...
 

Private Member Functions

std::shared_ptr< RawBufferserialize () const override
 

Private Attributes

RawImgDetectionsdets
 

Additional Inherited Members

- Protected Attributes inherited from dai::ADatatype
std::shared_ptr< RawBufferraw
 

Detailed Description

ImgDetections message. Carries normalized detection results

Definition at line 14 of file ImgDetections.hpp.

Constructor & Destructor Documentation

◆ ImgDetections() [1/2]

dai::ImgDetections::ImgDetections ( )

Construct ImgDetections message.

Definition at line 9 of file ImgDetections.cpp.

◆ ImgDetections() [2/2]

dai::ImgDetections::ImgDetections ( std::shared_ptr< RawImgDetections ptr)
explicit

Definition at line 10 of file ImgDetections.cpp.

◆ ~ImgDetections()

virtual dai::ImgDetections::~ImgDetections ( )
virtualdefault

Member Function Documentation

◆ serialize()

std::shared_ptr< RawBuffer > dai::ImgDetections::serialize ( ) const
overrideprivatevirtual

Reimplemented from dai::Buffer.

Definition at line 5 of file ImgDetections.cpp.

◆ setSequenceNum()

ImgDetections & dai::ImgDetections::setSequenceNum ( int64_t  sequenceNum)

Retrieves image sequence number

Definition at line 22 of file ImgDetections.cpp.

◆ setTimestamp()

ImgDetections & dai::ImgDetections::setTimestamp ( std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration >  timestamp)

Sets image timestamp related to dai::Clock::now()

Definition at line 14 of file ImgDetections.cpp.

◆ setTimestampDevice()

ImgDetections & dai::ImgDetections::setTimestampDevice ( std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration >  timestamp)

Sets image timestamp related to dai::Clock::now()

Definition at line 18 of file ImgDetections.cpp.

Member Data Documentation

◆ detections

std::vector<ImgDetection>& dai::ImgDetections::detections

Detections.

Definition at line 25 of file ImgDetections.hpp.

◆ dets

RawImgDetections& dai::ImgDetections::dets
private

Definition at line 16 of file ImgDetections.hpp.


The documentation for this class was generated from the following files:


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