| 22 | * User-facing interface for all face pose detectors. |
| 23 | */ |
| 24 | export interface FaceDetector { |
| 25 | /** |
| 26 | * Finds faces 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 `estimateFaces`. |
| 31 | */ |
| 32 | estimateFaces( |
| 33 | input: FaceDetectorInput, |
| 34 | estimationConfig?: MediaPipeFaceDetectorMediaPipeEstimationConfig| |
| 35 | MediaPipeFaceDetectorTfjsEstimationConfig): Promise<Face[]>; |
| 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