@mediapipe/tasks-vision 0.1.0-alpha-5 → 0.1.0-alpha-6

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
@@ -2,6 +2,23 @@
2
2
 
3
3
  This package contains the vision tasks for MediaPipe.
4
4
 
5
+ ## Face Landmark Detection
6
+
7
+ The MediaPipe Face Landmarker task lets you detect the landmarks of faces in
8
+ an image. You can use this Task to localize key points of a face and render
9
+ visual effects over the faces.
10
+
11
+ ```
12
+ const vision = await FilesetResolver.forVisionTasks(
13
+ "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@latest/wasm"
14
+ );
15
+ const faceLandmarker = await FaceLandmarker.createFromModelPath(vision,
16
+ "model.task"
17
+ );
18
+ const image = document.getElementById("image") as HTMLImageElement;
19
+ const landmarks = faceLandmarker.detect(image);
20
+ ```
21
+
5
22
  ## Face Stylizer
6
23
 
7
24
  The MediaPipe Face Stylizer lets you perform face stylization on images.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediapipe/tasks-vision",
3
- "version": "0.1.0-alpha-5",
3
+ "version": "0.1.0-alpha-6",
4
4
  "description": "MediaPipe Vision Tasks",
5
5
  "main": "vision_bundle.js",
6
6
  "author": "mediapipe@google.com",
package/vision.d.ts CHANGED
@@ -269,7 +269,7 @@ export declare class FaceStylizer extends VisionTaskRunner {
269
269
  * FaceStylizer is created with the image running mode.
270
270
  *
271
271
  * The input image can be of any size. To ensure that the output image has
272
- * reasonable quailty, the stylized output image size is determined by the
272
+ * reasonable quality, the stylized output image size is determined by the
273
273
  * model output size.
274
274
  *
275
275
  * @param image An image to process.
@@ -293,7 +293,7 @@ export declare class FaceStylizer extends VisionTaskRunner {
293
293
  * first, then the specified rotation is applied to the crop.
294
294
  *
295
295
  * The input image can be of any size. To ensure that the output image has
296
- * reasonable quailty, the stylized output image size is the smaller of the
296
+ * reasonable quality, the stylized output image size is the smaller of the
297
297
  * model output size and the size of the 'regionOfInterest' specified in
298
298
  * 'imageProcessingOptions'.
299
299
  *
@@ -340,7 +340,7 @@ export declare class FaceStylizer extends VisionTaskRunner {
340
340
  * frame's timestamp (in milliseconds). The input timestamps must be
341
341
  * monotonically increasing.
342
342
  *
343
- * To ensure that the output image has reasonable quailty, the stylized
343
+ * To ensure that the output image has reasonable quality, the stylized
344
344
  * output image size is the smaller of the model output size and the size of
345
345
  * the 'regionOfInterest' specified in 'imageProcessingOptions'.
346
346
  *