@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/README.md CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediapipe/tasks-vision",
3
- "version": "1.0.1",
3
+ "version": "1.1.0-rc.20260918",
4
4
  "description": "MediaPipe Vision Tasks. See the privacy notice at https://goo.gle/mediapipe-privacy.",
5
5
  "main": "vision_bundle.cjs",
6
6
  "browser": "vision_bundle.mjs",
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
  /**