@mediapipe/tasks-vision 0.10.11-rc.20240305 → 0.10.11

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": "0.10.11-rc.20240305",
3
+ "version": "0.10.11",
4
4
  "description": "MediaPipe Vision Tasks",
5
5
  "main": "vision_bundle.cjs",
6
6
  "browser": "vision_bundle.mjs",
package/vision.d.ts CHANGED
@@ -855,6 +855,17 @@ export declare class FilesetResolver {
855
855
  * tasks.
856
856
  */
857
857
  static forAudioTasks(basePath?: string): Promise<WasmFileset>;
858
+ /**
859
+ * Creates a fileset for the MediaPipe GenAI tasks.
860
+ *
861
+ * @export
862
+ * @param basePath An optional base path to specify the directory the Wasm
863
+ * files should be loaded from. If not specified, the Wasm files are
864
+ * loaded from the host's root directory.
865
+ * @return A `WasmFileset` that can be used to initialize MediaPipe GenAI
866
+ * tasks.
867
+ */
868
+ static forGenAiTasks(basePath?: string): Promise<WasmFileset>;
858
869
  /**
859
870
  * Creates a fileset for the MediaPipe Text tasks.
860
871
  *
@@ -2117,6 +2128,8 @@ export declare interface Landmark {
2117
2128
  y: number;
2118
2129
  /** The z coordinates of the landmark. */
2119
2130
  z: number;
2131
+ /** The likelihood of the landmark being visible within the image. */
2132
+ visibility: number;
2120
2133
  }
2121
2134
 
2122
2135
  /** Data that a user can use to specialize drawing options. */
@@ -2399,6 +2412,8 @@ export declare interface NormalizedLandmark {
2399
2412
  y: number;
2400
2413
  /** The z coordinates of the normalized landmark. */
2401
2414
  z: number;
2415
+ /** The likelihood of the landmark being visible within the image. */
2416
+ visibility: number;
2402
2417
  }
2403
2418
 
2404
2419
  /**