sign_language_translator.vision.sign.sign module

class sign_language_translator.vision.sign.sign.Sign(sign, *args, **kwargs)[source][source]

Bases: ABC

abstract static concatenate(objects: Iterable[Sign]) Sign[source][source]

concatenate multiple signs in time dimension

abstract classmethod load(path: str, **kwargs) Sign[source][source]

read the sign from a path

abstract classmethod load_asset(label: str, archive_name: str | None = None, **kwargs) Sign[source][source]

load a sign asset from a dataset

abstract static name() str[source][source]

the string code of the sign format

abstract numpy(*args, **kwargs) ndarray[Any, dtype[_ScalarType_co]][source][source]

return the sign as a numpy array

abstract save(path: str, **kwargs) None[source][source]

save the sign to a path

abstract show(**kwargs) None[source][source]

display the sign

abstract torch(dtype: dtype | None = None, device: device | str | None = None) Tensor[source][source]

return the sign as a torch tensor

abstract transform(transformation: Callable)[source][source]

apply some transformation to the sign to change its appearance