as_list#

deeptrack.utils.as_list(obj: any) list#

Ensure that the input is a list.

Converts the input to a list if it is iterable; otherwise, it wraps it in a list.

Parameters#

objAny

The object to be converted or wrapped in a list.

Returns#

list

The input object as a list.