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

#include <SpatialImgDetections.hpp>

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

Public Member Functions

SpatialImgDetectionssetSequenceNum (int64_t sequenceNum)
 
SpatialImgDetectionssetTimestamp (std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp)
 
SpatialImgDetectionssetTimestampDevice (std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp)
 
 SpatialImgDetections ()
 
 SpatialImgDetections (std::shared_ptr< RawSpatialImgDetections > ptr)
 
virtual ~SpatialImgDetections ()=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< SpatialImgDetection > & detections
 

Private Member Functions

std::shared_ptr< RawBufferserialize () const override
 

Private Attributes

RawSpatialImgDetectionsdets
 

Additional Inherited Members

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

Detailed Description

SpatialImgDetections message. Carries detection results together with spatial location data

Definition at line 15 of file SpatialImgDetections.hpp.

Constructor & Destructor Documentation

◆ SpatialImgDetections() [1/2]

dai::SpatialImgDetections::SpatialImgDetections ( )

Construct SpatialImgDetections message.

Definition at line 9 of file SpatialImgDetections.cpp.

◆ SpatialImgDetections() [2/2]

dai::SpatialImgDetections::SpatialImgDetections ( std::shared_ptr< RawSpatialImgDetections ptr)
explicit

Definition at line 11 of file SpatialImgDetections.cpp.

◆ ~SpatialImgDetections()

virtual dai::SpatialImgDetections::~SpatialImgDetections ( )
virtualdefault

Member Function Documentation

◆ serialize()

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

Reimplemented from dai::Buffer.

Definition at line 5 of file SpatialImgDetections.cpp.

◆ setSequenceNum()

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

Retrieves image sequence number

Definition at line 23 of file SpatialImgDetections.cpp.

◆ setTimestamp()

SpatialImgDetections & dai::SpatialImgDetections::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 15 of file SpatialImgDetections.cpp.

◆ setTimestampDevice()

SpatialImgDetections & dai::SpatialImgDetections::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 19 of file SpatialImgDetections.cpp.

Member Data Documentation

◆ detections

std::vector<SpatialImgDetection>& dai::SpatialImgDetections::detections

Detection results.

Definition at line 30 of file SpatialImgDetections.hpp.

◆ dets

RawSpatialImgDetections& dai::SpatialImgDetections::dets
private

Definition at line 17 of file SpatialImgDetections.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