Every observer interested in listening to IVideoSource data must implement this interface, which defines the observer (subscriber) part of the observer design pattern (aka subscriber-publisher).
- Attention
- In Python: an intermediate node in a video processing pipeline should extend the
IObservableObserver
class (not available in C++) instead of IObservable and IObserver. Below is the source code for a sample processing node in Python.
from pygiftgrab import IObservableObserver
class MyProcNode(IObservableObserver):
def __init__(self):
super(MyProcNode, self).__init__()
def update(self, frame):
pass