class documentation

class PicameraStreamOutput(Output): (source)

Constructor: PicameraStreamOutput(stream)

View In Hierarchy

An Output class that sends frames to a stream.

Method __init__ Create an output that puts frames in an MJPEGStream.
Method outputframe Add a frame to the stream's ringbuffer.
Instance Variable stream Undocumented
def __init__(self, stream: lt.outputs.MJPEGStream): (source)

Create an output that puts frames in an MJPEGStream.

Parameters
stream:lt.outputs.MJPEGStreamThe labthings MJPEGStream to send frames to.
def outputframe(self, frame: bytes, _keyframe: bool | None = True, _timestamp: int | None = None, _packet: Any = None, _audio: bool = False): (source)

Add a frame to the stream's ringbuffer.

Undocumented