Add export declaration for FaceDetector
Fixes https://github.com/google/mediapipe/issues/4799 PiperOrigin-RevId: 565706741
This commit is contained in:
parent
30590fe8d3
commit
a933e324b5
|
@ -50,6 +50,8 @@ export class FaceDetector extends VisionTaskRunner {
|
||||||
/**
|
/**
|
||||||
* Initializes the Wasm runtime and creates a new face detector from the
|
* Initializes the Wasm runtime and creates a new face detector from the
|
||||||
* provided options.
|
* provided options.
|
||||||
|
*
|
||||||
|
* @export
|
||||||
* @param wasmFileset A configuration object that provides the location of the
|
* @param wasmFileset A configuration object that provides the location of the
|
||||||
* Wasm binary and its loader.
|
* Wasm binary and its loader.
|
||||||
* @param faceDetectorOptions The options for the FaceDetector. Note that
|
* @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
|
* Initializes the Wasm runtime and creates a new face detector based on the
|
||||||
* provided model asset buffer.
|
* provided model asset buffer.
|
||||||
|
*
|
||||||
|
* @export
|
||||||
* @param wasmFileset A configuration object that provides the location of the
|
* @param wasmFileset A configuration object that provides the location of the
|
||||||
* Wasm binary and its loader.
|
* Wasm binary and its loader.
|
||||||
* @param modelAssetBuffer A binary representation of the model.
|
* @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
|
* Initializes the Wasm runtime and creates a new face detector based on the
|
||||||
* path to the model asset.
|
* path to the model asset.
|
||||||
|
*
|
||||||
|
* @export
|
||||||
* @param wasmFileset A configuration object that provides the location of the
|
* @param wasmFileset A configuration object that provides the location of the
|
||||||
* Wasm binary and its loader.
|
* Wasm binary and its loader.
|
||||||
* @param modelAssetPath The path to the model asset.
|
* @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
|
* You can reset an option back to its default value by explicitly setting it
|
||||||
* to `undefined`.
|
* to `undefined`.
|
||||||
*
|
*
|
||||||
|
* @export
|
||||||
* @param options The options for the FaceDetector.
|
* @param options The options for the FaceDetector.
|
||||||
*/
|
*/
|
||||||
override setOptions(options: FaceDetectorOptions): Promise<void> {
|
override setOptions(options: FaceDetectorOptions): Promise<void> {
|
||||||
|
@ -154,6 +161,7 @@ export class FaceDetector extends VisionTaskRunner {
|
||||||
* synchronously for the response. Only use this method when the
|
* synchronously for the response. Only use this method when the
|
||||||
* FaceDetector is created with running mode `video`.
|
* FaceDetector is created with running mode `video`.
|
||||||
*
|
*
|
||||||
|
* @export
|
||||||
* @param videoFrame A video frame to process.
|
* @param videoFrame A video frame to process.
|
||||||
* @param timestamp The timestamp of the current frame, in ms.
|
* @param timestamp The timestamp of the current frame, in ms.
|
||||||
* @param imageProcessingOptions the `ImageProcessingOptions` specifying how
|
* @param imageProcessingOptions the `ImageProcessingOptions` specifying how
|
||||||
|
|
Loading…
Reference in New Issue
Block a user