vuba.StreamGUI

class vuba.StreamGUI(stream, *args, **kwargs)[source]

Class for creating interfaces for manipulation of images from video feeds.

Parameters
  • stream (Iterable) – An iterator to a camera stream. This can be a generator that will continuously pull frames from a capture device for example.

  • title (str) – Title of the interface window.

Returns

gui – Class object for creating the interactive window.

Return type

StreamGUI

Notes

Upon execution of the interface through StreamGUI.run, this interface will continuously pull frames from the provided stream and display them in the interactive window.

Examples

Please see the following example scripts for some typical applications of this class:

  • examples/interfaces/binary_threshold_viewer_with_drawing_camera.py

__init__(stream, *args, **kwargs)[source]

Methods

__init__(stream, *args, **kwargs)

method(func)

Add a main processing function to be executed on every trackbar call.

run()

Launch the interactive window.

trackbar(name, id, min, max)

Add a trackbar to the interactive window.

values()

Retrieve all current trackbar values from the interface.