VideoListener

class cscore.VideoListener(*args, **kwargs)

Bases: pybind11_object

An event listener. This calls back to a desigated callback function when an event matching the specified mask is generated by the library.

Overloaded function.

  1. __init__(self: cscore._cscore.VideoListener) -> None

  2. __init__(self: cscore._cscore.VideoListener, callback: Callable[[cscore._cscore.VideoEvent], None], eventMask: int, immediateNotify: bool) -> None

Create an event listener.

Parameters:
  • callback – Callback function

  • eventMask – Bitmask of VideoEvent::Kind values

  • immediateNotify – Whether callback should be immediately called with a representative set of events for the current library state.