python_streamer::MyStreamer class

Contents

A simple FAST streamer which runs in its own thread.
This streamer reads a series of MHD images on disk.
This can be done easily with the ImageFileStreamer, but this is just an example.

Public functions

auto __init__(self) -> def
auto generateStream(self) -> def

Function documentation

def python_streamer::MyStreamer::__init__(self)

Constructor, remember to create the output port here

def python_streamer::MyStreamer::generateStream(self)

This method runs in its own thread.
Run you streaming loop here.
Remember to call self.addOutputData and self.frameAdded for each frame.
If these calls return and exception, it means the streaming should stop, thus you need to exit
your streaming loop