DepthAI v2 has been superseded by DepthAI v3. You are viewing legacy documentation.

ON THIS PAGE

  • Buffer
  • Reference

Buffer

Just a good old buffer. All other messages derive from the Buffer 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
method
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
method
setTimestamp(self: typing_extensions.Buffer, arg0: datetime.timedelta)
Sets image timestamp related to dai::Clock::now()
method

Need assistance?

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