Spaces:
Running
Running
Download processor/app/processing/black_glove/contracts.py from Stouching-Robotics/DataFlowing: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/spaces/Stouching-Robotics/DataFlowing/resolve/main/processor/app/processing/black_glove/contracts.py
- Command line
-
hf download hf://spaces/Stouching-Robotics/DataFlowing/processor/app/processing/black_glove/contracts.py
-
curl -L -o contracts.py https://huggingface.co/spaces/Stouching-Robotics/DataFlowing/resolve/main/processor/app/processing/black_glove/contracts.py
394 Bytes
| """Small detection contract shared by the black-glove pipeline.""" | |
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| import numpy as np | |
| class DetectedHand: | |
| """One hand in image pixels, using the MediaPipe 21-point topology.""" | |
| landmarks: np.ndarray | |
| label: str = "Hand" | |
| score: float = 0.0 | |
| index: int = 0 | |
| conf: np.ndarray | None = None | |