@mediapipe/tasks-vision 0.10.5 → 0.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vision.d.ts +9 -0
- package/vision_bundle.cjs +1 -1
- package/vision_bundle.cjs.map +1 -1
- package/vision_bundle.mjs +1 -1
- package/vision_bundle.mjs.map +1 -1
- package/wasm/vision_wasm_internal.js +5 -7
- package/wasm/vision_wasm_internal.wasm +0 -0
- package/wasm/vision_wasm_nosimd_internal.js +5 -7
- package/wasm/vision_wasm_nosimd_internal.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediapipe/tasks-vision",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.7",
|
|
4
4
|
"description": "MediaPipe Vision Tasks",
|
|
5
5
|
"main": "vision_bundle.cjs",
|
|
6
6
|
"browser": "vision_bundle.mjs",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"import": "./vision_bundle.mjs",
|
|
10
10
|
"require": "./vision_bundle.cjs",
|
|
11
11
|
"default": "./vision_bundle.mjs",
|
|
12
|
-
"types": "./
|
|
12
|
+
"types": "./vision.d.ts"
|
|
13
13
|
},
|
|
14
14
|
"author": "mediapipe@google.com",
|
|
15
15
|
"license": "Apache-2.0",
|
package/vision.d.ts
CHANGED
|
@@ -355,6 +355,8 @@ export declare class FaceDetector extends VisionTaskRunner {
|
|
|
355
355
|
/**
|
|
356
356
|
* Initializes the Wasm runtime and creates a new face detector from the
|
|
357
357
|
* provided options.
|
|
358
|
+
*
|
|
359
|
+
* @export
|
|
358
360
|
* @param wasmFileset A configuration object that provides the location of the
|
|
359
361
|
* Wasm binary and its loader.
|
|
360
362
|
* @param faceDetectorOptions The options for the FaceDetector. Note that
|
|
@@ -365,6 +367,8 @@ export declare class FaceDetector extends VisionTaskRunner {
|
|
|
365
367
|
/**
|
|
366
368
|
* Initializes the Wasm runtime and creates a new face detector based on the
|
|
367
369
|
* provided model asset buffer.
|
|
370
|
+
*
|
|
371
|
+
* @export
|
|
368
372
|
* @param wasmFileset A configuration object that provides the location of the
|
|
369
373
|
* Wasm binary and its loader.
|
|
370
374
|
* @param modelAssetBuffer A binary representation of the model.
|
|
@@ -373,6 +377,8 @@ export declare class FaceDetector extends VisionTaskRunner {
|
|
|
373
377
|
/**
|
|
374
378
|
* Initializes the Wasm runtime and creates a new face detector based on the
|
|
375
379
|
* path to the model asset.
|
|
380
|
+
*
|
|
381
|
+
* @export
|
|
376
382
|
* @param wasmFileset A configuration object that provides the location of the
|
|
377
383
|
* Wasm binary and its loader.
|
|
378
384
|
* @param modelAssetPath The path to the model asset.
|
|
@@ -386,6 +392,7 @@ export declare class FaceDetector extends VisionTaskRunner {
|
|
|
386
392
|
* You can reset an option back to its default value by explicitly setting it
|
|
387
393
|
* to `undefined`.
|
|
388
394
|
*
|
|
395
|
+
* @export
|
|
389
396
|
* @param options The options for the FaceDetector.
|
|
390
397
|
*/
|
|
391
398
|
setOptions(options: FaceDetectorOptions): Promise<void>;
|
|
@@ -394,6 +401,7 @@ export declare class FaceDetector extends VisionTaskRunner {
|
|
|
394
401
|
* synchronously for the response. Only use this method when the
|
|
395
402
|
* FaceDetector is created with running mode `image`.
|
|
396
403
|
*
|
|
404
|
+
* @export
|
|
397
405
|
* @param image An image to process.
|
|
398
406
|
* @param imageProcessingOptions the `ImageProcessingOptions` specifying how
|
|
399
407
|
* to process the input image before running inference.
|
|
@@ -405,6 +413,7 @@ export declare class FaceDetector extends VisionTaskRunner {
|
|
|
405
413
|
* synchronously for the response. Only use this method when the
|
|
406
414
|
* FaceDetector is created with running mode `video`.
|
|
407
415
|
*
|
|
416
|
+
* @export
|
|
408
417
|
* @param videoFrame A video frame to process.
|
|
409
418
|
* @param timestamp The timestamp of the current frame, in ms.
|
|
410
419
|
* @param imageProcessingOptions the `ImageProcessingOptions` specifying how
|