Buffer
Just a good old buffer. All other messages derive from theBuffer
class.Reference
class
depthai.Buffer(depthai.ADatatype)
method
method
method
getData(self) -> numpy.ndarray[numpy.uint8]: numpy.ndarray[numpy.uint8]
Get non-owning reference to internal buffer Returns: Reference to internal buffer
method
getSequenceNum(self: typing_extensions.Buffer) -> int: int
Retrieves image sequence number
method
getTimestamp(self: typing_extensions.Buffer) -> datetime.timedelta: datetime.timedelta
Retrieves timestamp related to dai::Clock::now()
method
getTimestampDevice(self: typing_extensions.Buffer) -> datetime.timedelta: datetime.timedelta
Retrieves timestamp directly captured from device's monotonic clock, not synchronized to host time. Used mostly for debugging
method
getVisualizationMessage(self: typing_extensions.Buffer) -> ImgAnnotations|ImgFrame|None: ImgAnnotations|ImgFrame|None
Get visualizable message Returns: Visualizable message, either ImgFrame, ImgAnnotations or std::monostate (None)
method
method
setSequenceNum(self: typing_extensions.Buffer, arg0: int)
Sets image sequence number
method
setTimestamp(self: typing_extensions.Buffer, arg0: datetime.timedelta)
Sets image timestamp related to dai::Clock::now()
method
setTimestampDevice(self: typing_extensions.Buffer, arg0: datetime.timedelta)
Sets image timestamp related to dai::Clock::now()
Need assistance?
Head over to Discussion Forum for technical support or any other questions you might have.