Skip to content

Commit

Permalink
Add export declaration for FaceDetector
Browse files Browse the repository at this point in the history
Fixes #4799

PiperOrigin-RevId: 565706741
  • Loading branch information
schmidt-sebastian authored and copybara-github committed Sep 15, 2023
1 parent 30590fe commit a933e32
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mediapipe/tasks/web/vision/face_detector/face_detector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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<void> {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a933e32

Please sign in to comment.