@mediapipe/tasks-vision 1.0.1 → 1.1.0-rc.20260918
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/LICENSE +218 -0
- package/NOTICE +32053 -0
- package/README.md +0 -0
- package/package.json +1 -1
- package/vision.d.ts +34 -0
- package/vision_bundle.cjs +1 -1
- package/vision_bundle.cjs.map +1 -1
- package/vision_bundle.js +1 -1
- package/vision_bundle.js.map +1 -0
- package/vision_bundle.mjs +1 -1
- package/vision_bundle.mjs.map +1 -1
- package/wasm/vision_wasm_internal.js +269 -181
- package/wasm/vision_wasm_internal.wasm +0 -0
- package/wasm/vision_wasm_module_internal.js +269 -181
- package/wasm/vision_wasm_module_internal.wasm +0 -0
- package/wasm/vision_wasm_nosimd_internal.js +269 -181
- package/wasm/vision_wasm_nosimd_internal.wasm +0 -0
package/README.md
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/vision.d.ts
CHANGED
|
@@ -766,6 +766,18 @@ export declare class FilesetResolver {
|
|
|
766
766
|
* tasks.
|
|
767
767
|
*/
|
|
768
768
|
static forGenAiTasks(basePath?: string, useModule?: boolean): Promise<WasmFileset>;
|
|
769
|
+
/**
|
|
770
|
+
* Creates a fileset for the MediaPipe Retrieval tasks.
|
|
771
|
+
*
|
|
772
|
+
* @export
|
|
773
|
+
* @param basePath An optional base path to specify the directory the Wasm
|
|
774
|
+
* files should be loaded from. If not specified, the Wasm files are
|
|
775
|
+
* loaded from the host's root directory.
|
|
776
|
+
* @param useModule Whether to use ES6 Modules for the Wasm files.
|
|
777
|
+
* @return A `WasmFileset` that can be used to initialize MediaPipe Retrieval
|
|
778
|
+
* tasks.
|
|
779
|
+
*/
|
|
780
|
+
static forRetrievalTasks(basePath?: string, useModule?: boolean): Promise<WasmFileset>;
|
|
769
781
|
/**
|
|
770
782
|
* Creates a fileset for the MediaPipe Text tasks.
|
|
771
783
|
*
|
|
@@ -778,6 +790,18 @@ export declare class FilesetResolver {
|
|
|
778
790
|
* tasks.
|
|
779
791
|
*/
|
|
780
792
|
static forTextTasks(basePath?: string, useModule?: boolean): Promise<WasmFileset>;
|
|
793
|
+
/**
|
|
794
|
+
* Creates a fileset for the MediaPipe LiteRT LM Text tasks.
|
|
795
|
+
*
|
|
796
|
+
* @export
|
|
797
|
+
* @param basePath An optional base path to specify the directory the Wasm
|
|
798
|
+
* files should be loaded from. If not specified, the Wasm files are
|
|
799
|
+
* loaded from the host's root directory.
|
|
800
|
+
* @param useModule Whether to use ES6 Modules for the Wasm files.
|
|
801
|
+
* @return A `WasmFileset` that can be used to initialize MediaPipe LiteRT LM
|
|
802
|
+
* Text tasks.
|
|
803
|
+
*/
|
|
804
|
+
static forLiteRtLmTextTasks(basePath?: string, useModule?: boolean): Promise<WasmFileset>;
|
|
781
805
|
/**
|
|
782
806
|
* Creates a fileset for the MediaPipe Vision tasks.
|
|
783
807
|
*
|
|
@@ -2147,6 +2171,11 @@ export declare interface Landmark {
|
|
|
2147
2171
|
z: number;
|
|
2148
2172
|
/** The likelihood of the landmark being visible within the image. */
|
|
2149
2173
|
visibility: number;
|
|
2174
|
+
/**
|
|
2175
|
+
* The likelihood of the landmark being present in the scene (within image
|
|
2176
|
+
* bounds). Unset when the model does not output a presence score.
|
|
2177
|
+
*/
|
|
2178
|
+
presence?: number;
|
|
2150
2179
|
}
|
|
2151
2180
|
|
|
2152
2181
|
/** Data that a user can use to specialize drawing options. */
|
|
@@ -2431,6 +2460,11 @@ export declare interface NormalizedLandmark {
|
|
|
2431
2460
|
z: number;
|
|
2432
2461
|
/** The likelihood of the landmark being visible within the image. */
|
|
2433
2462
|
visibility: number;
|
|
2463
|
+
/**
|
|
2464
|
+
* The likelihood of the landmark being present in the scene (within image
|
|
2465
|
+
* bounds). Unset when the model does not output a presence score.
|
|
2466
|
+
*/
|
|
2467
|
+
presence?: number;
|
|
2434
2468
|
}
|
|
2435
2469
|
|
|
2436
2470
|
/**
|