Public Types | Public Member Functions | Public Attributes | List of all members
dai::Tracklet Struct Reference

#include <RawTracklets.hpp>

Public Types

enum  TrackingStatus : std::int32_t { TrackingStatus::NEW, TrackingStatus::TRACKED, TrackingStatus::LOST, TrackingStatus::REMOVED }
 

Public Member Functions

 DEPTHAI_SERIALIZE (Tracklet, roi, id, label, age, status, srcImgDetection, spatialCoordinates)
 

Public Attributes

std::int32_t age = 0
 
std::int32_t id = 0
 
std::int32_t label = 0
 
Rect roi
 
Point3f spatialCoordinates
 
ImgDetection srcImgDetection
 
TrackingStatus status = TrackingStatus::LOST
 

Detailed Description

Tracklet structure

Contains tracklets from object tracker output.

Definition at line 18 of file RawTracklets.hpp.

Member Enumeration Documentation

◆ TrackingStatus

enum dai::Tracklet::TrackingStatus : std::int32_t
strong
Enumerator
NEW 

The object is newly added.

TRACKED 

The object is being tracked.

LOST 

The object gets lost now. The object can be tracked again automatically(long term tracking) or by specifying detected object manually(short term and zero term tracking).

REMOVED 

The object is removed.

Definition at line 19 of file RawTracklets.hpp.

Member Function Documentation

◆ DEPTHAI_SERIALIZE()

dai::Tracklet::DEPTHAI_SERIALIZE ( Tracklet  ,
roi  ,
id  ,
label  ,
age  ,
status  ,
srcImgDetection  ,
spatialCoordinates   
)

Member Data Documentation

◆ age

std::int32_t dai::Tracklet::age = 0

Number of frames it is being tracked for.

Definition at line 41 of file RawTracklets.hpp.

◆ id

std::int32_t dai::Tracklet::id = 0

Tracklet's ID.

Definition at line 33 of file RawTracklets.hpp.

◆ label

std::int32_t dai::Tracklet::label = 0

Tracklet's label ID.

Definition at line 37 of file RawTracklets.hpp.

◆ roi

Rect dai::Tracklet::roi

Tracked region of interest.

Definition at line 29 of file RawTracklets.hpp.

◆ spatialCoordinates

Point3f dai::Tracklet::spatialCoordinates

Spatial coordinates of tracklet.

Definition at line 54 of file RawTracklets.hpp.

◆ srcImgDetection

ImgDetection dai::Tracklet::srcImgDetection

Image detection that is tracked.

Definition at line 50 of file RawTracklets.hpp.

◆ status

TrackingStatus dai::Tracklet::status = TrackingStatus::LOST

Status of tracklet.

Definition at line 45 of file RawTracklets.hpp.


The documentation for this struct was generated from the following file:


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