| 24 | * User-facing interface for all pose detectors. |
| 25 | */ |
| 26 | export interface PoseDetector { |
| 27 | /** |
| 28 | * Estimate poses for an image or video frame. |
| 29 | * @param image An image or video frame. |
| 30 | * @param config Optional. See `EstimationConfig` for available options. |
| 31 | * @param timestamp Optional. In milliseconds. This is useful when image is |
| 32 | * a tensor, which doesn't have timestamp info. Or to override timestamp |
| 33 | * in a video. |
| 34 | * @returns An array of poses, each pose contains an array of `Keypoint`s. |
| 35 | */ |
| 36 | estimatePoses( |
| 37 | image: PoseDetectorInput, |
| 38 | config?: PoseNetEstimationConfig|BlazePoseTfjsEstimationConfig| |
| 39 | BlazePoseMediaPipeEstimationConfig|MoveNetEstimationConfig, |
| 40 | timestamp?: number): Promise<Pose[]>; |
| 41 | |
| 42 | /** |
| 43 | * Dispose the underlying models from memory. |
| 44 | */ |
| 45 | dispose(): void; |
| 46 | |
| 47 | /** |
| 48 | * Reset global states in the model. |
| 49 | */ |
| 50 | reset(): void; |
| 51 | } |
no outgoing calls
no test coverage detected