Streams

class hsi.Stream(iter, header)

Stream type

__iter__()

Implement iter(self).

__next__()

Implement next(self).

get_frame()

Get a single frame from the stream.

Returns:

A tuple containing the frame index and the frame data as a 2D Numpy array.

Return type:

tuple[hsi.FrameMeta, ndarray]

header()
stop()

Stop the stream.

class hsi.FrameMeta

Frame metadata.

dropped

Whether the original frame was dropped and replaced with a black frame.

seq

Frame sequence number.

timestamp

Frame timestamp in seconds. Monotonically increasing.