iblrig.video_pyspin.process_camera

iblrig.video_pyspin.process_camera(func)[source]

Decorator to process a camera or a list of cameras.

This decorator allows a function to accept a single camera instance, a list of camera instances, or None. If None is provided, the decorator will iterate over all available cameras managed by the Cameras context manager and call the decorated function for each camera.

Parameters:

func (Callable) – The function to be decorated, which will be called with each camera instance.

Returns:

The wrapped function that processes the camera input.

Return type:

Callable

Parameters:

func (Callable[[...], Any])