MCPcopy
hub / github.com/tensorflow/tfjs-models / FaceDetector

Interface FaceDetector

face-detection/src/face_detector.ts:24–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 * User-facing interface for all face pose detectors.
23 */
24export 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}

Callers 17

predictFunction · 0.65
blazeface_test.tsFile · 0.65
renderPredictionFunction · 0.65
expectTFJSFaceDetectorFunction · 0.65
tfjs_test.tsFile · 0.65
expectFaceDetectorFunction · 0.65
renderResultFunction · 0.65
renderResultFunction · 0.65
addExamplesMethod · 0.65
addExampleMethod · 0.65
fftMethod · 0.65
spectrogramCallbackMethod · 0.65

Implementers 4

MediaPipeFaceDetectorTfjsface-detection/src/tfjs/detector.ts
MediaPipeFaceDetectorMediaPipeface-detection/src/mediapipe/detector.
MediaPipeFaceMeshTfjsLandmarksDetectorface-landmarks-detection/src/tfjs/dete
MediaPipeFaceMeshMediaPipeLandmarksDetectorface-landmarks-detection/src/mediapipe

Calls

no outgoing calls

Tested by

no test coverage detected