| 22 | * User-facing interface for all hand pose detectors. |
| 23 | */ |
| 24 | export interface HandDetector { |
| 25 | /** |
| 26 | * Finds hands in the input image. |
| 27 | * |
| 28 | * @param input The image to classify. Can be a tensor, DOM element image, |
| 29 | * video, or canvas. |
| 30 | * @param estimationConfig common config for `estimateHands`. |
| 31 | */ |
| 32 | estimateHands( |
| 33 | input: HandDetectorInput, |
| 34 | estimationConfig?: MediaPipeHandsMediaPipeEstimationConfig| |
| 35 | MediaPipeHandsTfjsEstimationConfig): Promise<Hand[]>; |
| 36 | |
| 37 | /** |
| 38 | * Dispose the underlying models from memory. |
| 39 | */ |
| 40 | dispose(): void; |
| 41 | |
| 42 | /** |
| 43 | * Reset global states in the model. |
| 44 | */ |
| 45 | reset(): void; |
| 46 | } |
no outgoing calls
no test coverage detected