sign_language_translator.vision.landmarks.connections module
- class sign_language_translator.vision.landmarks.connections.BaseConnections[source]
Bases:
ABCA class containing information about the connections between landmarks generated from various models.
- abstract property connections: List[Connection]
indexes of landmarks that are connected
- property line_colors: List[Tuple[int, int, int]]
list of colors for each connection
- property line_indexes: List[Sequence[int]]
list of sequence of indexes that are connected with single line
- property line_labels: List[str]
list of labels for each connection
- property matplot3d_config: Dict[str, Any]
Configuration arguments for 3D matplotlib plot
- abstract property n_features: int
Total number of features per landmark
- abstract property n_landmarks: int
Total number of landmarks
- class sign_language_translator.vision.landmarks.connections.MediapipeConnections[source]
Bases:
BaseConnectionsRepresents the connections for the Mediapipe landmark model.
- property connections: List[Connection]
indexes of landmarks that are connected
- property n_features: int
Total number of features per landmark
- property n_landmarks: int
Total number of landmarks
- sign_language_translator.vision.landmarks.connections.get_connections(connections: str) BaseConnections[source]
Create a connections object based on the given string
- Parameters:
connections (str) – The name of the connections format to use.
- Returns:
The connections object.
- Return type:
- Raises:
ValueError – If the connections format is not recognized.