From a933e324b5dcaf6fa61f49f991d89a16bd194dd6 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Fri, 15 Sep 2023 09:58:22 -0700 Subject: [PATCH] Add export declaration for FaceDetector Fixes https://github.com/google/mediapipe/issues/4799 PiperOrigin-RevId: 565706741 --- mediapipe/tasks/web/vision/face_detector/face_detector.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mediapipe/tasks/web/vision/face_detector/face_detector.ts b/mediapipe/tasks/web/vision/face_detector/face_detector.ts index d9a69037fa..efbf118cab 100644 --- a/mediapipe/tasks/web/vision/face_detector/face_detector.ts +++ b/mediapipe/tasks/web/vision/face_detector/face_detector.ts @@ -50,6 +50,8 @@ export class FaceDetector extends VisionTaskRunner { /** * Initializes the Wasm runtime and creates a new face detector from the * provided options. + * + * @export * @param wasmFileset A configuration object that provides the location of the * Wasm binary and its loader. * @param faceDetectorOptions The options for the FaceDetector. Note that @@ -66,6 +68,8 @@ export class FaceDetector extends VisionTaskRunner { /** * Initializes the Wasm runtime and creates a new face detector based on the * provided model asset buffer. + * + * @export * @param wasmFileset A configuration object that provides the location of the * Wasm binary and its loader. * @param modelAssetBuffer A binary representation of the model. @@ -80,6 +84,8 @@ export class FaceDetector extends VisionTaskRunner { /** * Initializes the Wasm runtime and creates a new face detector based on the * path to the model asset. + * + * @export * @param wasmFileset A configuration object that provides the location of the * Wasm binary and its loader. * @param modelAssetPath The path to the model asset. @@ -118,6 +124,7 @@ export class FaceDetector extends VisionTaskRunner { * You can reset an option back to its default value by explicitly setting it * to `undefined`. * + * @export * @param options The options for the FaceDetector. */ override setOptions(options: FaceDetectorOptions): Promise { @@ -154,6 +161,7 @@ export class FaceDetector extends VisionTaskRunner { * synchronously for the response. Only use this method when the * FaceDetector is created with running mode `video`. * + * @export * @param videoFrame A video frame to process. * @param timestamp The timestamp of the current frame, in ms. * @param imageProcessingOptions the `ImageProcessingOptions` specifying how