@mediapipe/tasks-vision 0.10.12 → 0.10.13-rc.20240413

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
@@ -31,7 +31,7 @@ const vision = await FilesetResolver.forVisionTasks(
31
31
  "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
32
32
  );
33
33
  const faceLandmarker = await FaceLandmarker.createFromModelPath(vision,
34
- "https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/1/face_landmarker.task`"
34
+ "https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/1/face_landmarker.task"
35
35
  );
36
36
  const image = document.getElementById("image") as HTMLImageElement;
37
37
  const landmarks = faceLandmarker.detect(image);
@@ -93,6 +93,24 @@ const landmarks = handLandmarker.detect(image);
93
93
 
94
94
  For more information, refer to the [Hand Landmarker](https://developers.google.com/mediapipe/solutions/vision/hand_landmarker/web_js) documentation.
95
95
 
96
+
97
+ ## Holistic Landmarker
98
+
99
+ The MediaPipe Holistic Landmarker task task lets you combine components of the
100
+ pose, face, and hand landmarkers to create a complete landmarker for the human
101
+ body.
102
+
103
+ ```
104
+ const vision = await FilesetResolver.forVisionTasks(
105
+ "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
106
+ );
107
+ const holisticLandmarker = await HolisticLandmarker.createFromModelPath(vision,
108
+ "https://storage.googleapis.com/mediapipe-models/holistic_landmarker/holistic_landmarker/float16/1/hand_landmark.task"
109
+ );
110
+ const image = document.getElementById("image") as HTMLImageElement;
111
+ const landmarks = holisticLandmarker.detect(image);
112
+ ```
113
+
96
114
  ## Image Classifier
97
115
 
98
116
  The MediaPipe Image Classifier task lets you perform classification on images.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediapipe/tasks-vision",
3
- "version": "0.10.12",
3
+ "version": "0.10.13-rc.20240413",
4
4
  "description": "MediaPipe Vision Tasks",
5
5
  "main": "vision_bundle.cjs",
6
6
  "browser": "vision_bundle.mjs",
package/vision.d.ts CHANGED
@@ -1909,8 +1909,10 @@ export declare class ImageSegmenterResult {
1909
1909
 
1910
1910
  /**
1911
1911
  * Valid types of image sources which we can run our GraphRunner over.
1912
+ *
1913
+ * @deprecated Use TexImageSource instead.
1912
1914
  */
1913
- export declare type ImageSource = HTMLCanvasElement | HTMLVideoElement | HTMLImageElement | ImageData | ImageBitmap | VideoFrame;
1915
+ export declare type ImageSource = TexImageSource;
1914
1916
 
1915
1917
  /**
1916
1918
  * Performs interactive segmentation on images.