PreprocessObjectImage
- class savant.base.model.PreprocessObjectImage(module, class_name, kwargs=None, dev_mode=False, output_image=None)
Object image preprocessing function configuration.
- __call__(*args, **kwargs)
Calls resolved PyFunc implementation if its a subclass of
BasePyFuncCallableImpl
, otherwise no-op.
- check_reload()
Checks if reload is needed and reloads in case it is.
- property instance: BasePyFuncImpl
Returns resolved PyFunc implementation.
- load_user_code()
Load (or reload) the user module/class specified in the PyFunc fields. It’s necessary to call this at least once before starting the pipeline.