Tracklets

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

Reference

class depthai.Tracklets
getData(self: object) → numpy.ndarray[numpy.uint8]
getRaw(self: depthai.ADatatype)depthai.RawBuffer
getSequenceNum(self: depthai.Tracklets)int
getTimestamp(self: depthai.Tracklets)datetime.timedelta
getTimestampDevice(self: depthai.Tracklets)datetime.timedelta
setData(*args, **kwargs)

Overloaded function.

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

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

setSequenceNum(self: depthai.Tracklets, arg0: int)depthai.Tracklets
setTimestamp(self: depthai.Tracklets, arg0: datetime.timedelta)depthai.Tracklets
setTimestampDevice(self: depthai.Tracklets, arg0: datetime.timedelta)depthai.Tracklets
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
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.