class documentation

The base class for defining background detect algorithms.

Method __init__ Initialise and create the lock.
Method image_is_sample Label the current image as either background or sample.
Method set_background Use the input image to update the background data.
Class Variable display_name Undocumented
Property ready Whether the background detector is ready.
Property settings_ui A list of PropertyControl objects to create the settings in the UI.
def __init__(self, thing_server_interface: lt.ThingServerInterface): (source)

Initialise and create the lock.

def image_is_sample(self, image: np.ndarray) -> tuple[bool, str]: (source)

Label the current image as either background or sample.

Returns
tuple[bool, str]A tuple of the result (boolean), and explanation string. The explanation string is formatted so it can be added into a sentence such as An action was taken because the image is {message}.
def set_background(self, image: np.ndarray): (source)

Use the input image to update the background data.

Background data must be a Pydantic BaseModel.