Tracklets

Tracklets are produced by the ObjectTracker node. They provide tracking information of the tracked objects.

Reference

class depthai.Tracklets

Tracklets message. Carries object tracking information.

getData(self: object) → numpy.ndarray[numpy.uint8]

Get non-owning reference to internal buffer

Returns

Reference to internal buffer

getRaw(self: depthai.ADatatype)depthai.RawBuffer
getSequenceNum(self: depthai.Tracklets)int

Retrieves image sequence number

getTimestamp(self: depthai.Tracklets)datetime.timedelta

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

getTimestampDevice(self: depthai.Tracklets)datetime.timedelta

Retrieves image timestamp directly captured from device’s monotonic clock, not synchronized to host time. Used mostly for debugging

setData(*args, **kwargs)

Overloaded function.

  1. setData(self: depthai.Buffer, arg0: List[int]) -> None

Parameter data:

Copies data to internal buffer

  1. setData(self: depthai.Buffer, arg0: numpy.ndarray[numpy.uint8]) -> None

Parameter data:

Copies data to internal buffer

setSequenceNum(self: depthai.Tracklets, arg0: int)depthai.Tracklets

Retrieves image sequence number

setTimestamp(self: depthai.Tracklets, arg0: datetime.timedelta)depthai.Tracklets

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

setTimestampDevice(self: depthai.Tracklets, arg0: datetime.timedelta)depthai.Tracklets

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

property tracklets

Retrieve data for Tracklets.

Returns

Vector of object tracker data, carrying tracking information.

class dai::Tracklets : public dai::Buffer

Tracklets message. Carries object tracking information.

Public Functions

Tracklets()

Construct Tracklets message.

Tracklets(std::shared_ptr<RawTracklets> ptr)
~Tracklets() = default
std::chrono::time_point<std::chrono::steady_clock, std::chrono::steady_clock::duration> getTimestamp() const

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

std::chrono::time_point<std::chrono::steady_clock, std::chrono::steady_clock::duration> getTimestampDevice() const

Retrieves image timestamp directly captured from device’s monotonic clock, not synchronized to host time. Used mostly for debugging

int64_t getSequenceNum() const

Retrieves image sequence number

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

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

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

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

Tracklets &setSequenceNum(int64_t sequenceNum)

Retrieves image sequence number

Public Members

std::vector<Tracklet> &tracklets

Retrieve data for Tracklets.

Return

Vector of object tracker data, carrying tracking information.

Private Functions

std::shared_ptr<RawBuffer> serialize() const override

Private Members

RawTracklets &rawdata

Got questions?

Head over to Discussion Forum for technical support or any other questions you might have.