0.10.22-rc.20250304 • Published 9 months ago

@mediapipe/tasks-vision v0.10.22-rc.20250304

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
9 months ago

MediaPipe Tasks Vision Package

This package contains the vision tasks for MediaPipe.

Face Detector

The MediaPipe Face Detector task lets you detect the presence and location of faces within images or videos.

const vision = await FilesetResolver.forVisionTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
);
const faceDetector = await FaceDetector.createFromModelPath(vision,
    "https://storage.googleapis.com/mediapipe-models/face_detector/blaze_face_short_range/float16/1/blaze_face_short_range.tflite"
);
const image = document.getElementById("image") as HTMLImageElement;
const detections = faceDetector.detect(image);

For more information, refer to the Face Detector documentation.

Face Landmarker

The MediaPipe Face Landmarker task lets you detect the landmarks of faces in an image. You can use this Task to localize key points of a face and render visual effects over the faces.

const vision = await FilesetResolver.forVisionTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
);
const faceLandmarker = await FaceLandmarker.createFromModelPath(vision,
    "https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/1/face_landmarker.task"
);
const image = document.getElementById("image") as HTMLImageElement;
const landmarks = faceLandmarker.detect(image);

For more information, refer to the Face Landmarker documentation.

Face Stylizer

The MediaPipe Face Stylizer lets you perform face stylization on images.

const vision = await FilesetResolver.forVisionTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
);
const faceStylizer = await FaceStylizer.createFromModelPath(vision,
    "https://storage.googleapis.com/mediapipe-models/face_stylizer/blaze_face_stylizer/float32/1/blaze_face_stylizer.task"
);
const image = document.getElementById("image") as HTMLImageElement;
const stylizedImage = faceStylizer.stylize(image);

Gesture Recognizer

The MediaPipe Gesture Recognizer task lets you recognize hand gestures in real time, and provides the recognized hand gesture results along with the landmarks of the detected hands. You can use this task to recognize specific hand gestures from a user, and invoke application features that correspond to those gestures.

const vision = await FilesetResolver.forVisionTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
);
const gestureRecognizer = await GestureRecognizer.createFromModelPath(vision,
    "https://storage.googleapis.com/mediapipe-models/gesture_recognizer/gesture_recognizer/float16/1/gesture_recognizer.task"
);
const image = document.getElementById("image") as HTMLImageElement;
const recognitions = gestureRecognizer.recognize(image);

For more information, refer to the Gesture Recognizer documentation.

Hand Landmarker

The MediaPipe Hand Landmarker task lets you detect the landmarks of the hands in an image. You can use this Task to localize key points of the hands and render visual effects over the hands.

const vision = await FilesetResolver.forVisionTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
);
const handLandmarker = await HandLandmarker.createFromModelPath(vision,
    "https://storage.googleapis.com/mediapipe-models/hand_landmarker/hand_landmarker/float16/1/hand_landmarker.task"
);
const image = document.getElementById("image") as HTMLImageElement;
const landmarks = handLandmarker.detect(image);

For more information, refer to the Hand Landmarker documentation.

Holistic Landmarker

The MediaPipe Holistic Landmarker task task lets you combine components of the pose, face, and hand landmarkers to create a complete landmarker for the human body.

const vision = await FilesetResolver.forVisionTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
);
const holisticLandmarker = await HolisticLandmarker.createFromModelPath(vision,
    "https://storage.googleapis.com/mediapipe-models/holistic_landmarker/holistic_landmarker/float16/1/hand_landmark.task"
);
const image = document.getElementById("image") as HTMLImageElement;
const landmarks = holisticLandmarker.detect(image);

Image Classifier

The MediaPipe Image Classifier task lets you perform classification on images. You can use this task to identify what an image represents among a set of categories defined at training time.

const vision = await FilesetResolver.forVisionTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
);
const imageClassifier = await ImageClassifier.createFromModelPath(vision,
    "https://storage.googleapis.com/mediapipe-models/image_classifier/efficientnet_lite0/float32/1/efficientnet_lite0.tflite"
);
const image = document.getElementById("image") as HTMLImageElement;
const classifications = imageClassifier.classify(image);

For more information, refer to the Image Classifier documentation.

Image Embedder

The MediaPipe Image Embedder extracts embeddings from an image.

const vision = await FilesetResolver.forVisionTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
);
const imageEmbedder = await ImageEmbedder.createFromModelPath(vision,
    "https://storage.googleapis.com/mediapipe-models/image_embedder/mobilenet_v3_small/float32/1/mobilenet_v3_small.tflite"
);
const image = document.getElementById("image") as HTMLImageElement;
const embeddings = imageSegmenter.embed(image);

Image Segmenter

The MediaPipe Image Segmenter lets you segment an image into categories.

const vision = await FilesetResolver.forVisionTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
);
const imageSegmenter = await ImageSegmenter.createFromModelPath(vision,
    "https://storage.googleapis.com/mediapipe-models/image_segmenter/deeplab_v3/float32/1/deeplab_v3.tflite"
);
const image = document.getElementById("image") as HTMLImageElement;
imageSegmenter.segment(image, (masks, width, height) => {
  ...
});

For more information, refer to the Image Segmenter documentation.

Interactive Segmenter

The MediaPipe Interactive Segmenter lets you select a region of interest to segment an image by.

const vision = await FilesetResolver.forVisionTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
);
const interactiveSegmenter = await InteractiveSegmenter.createFromModelPath(
    vision,
    "https://storage.googleapis.com/mediapipe-models/interactive_segmenter/magic_touch/float32/1/magic_touch.tflite"
);
const image = document.getElementById("image") as HTMLImageElement;
interactiveSegmenter.segment(image, { keypoint: { x: 0.1, y: 0.2 } },
    (masks, width, height) => { ... }
);

For more information, refer to the Interactive Segmenter documentation.

Object Detector

The MediaPipe Object Detector task lets you detect the presence and location of multiple classes of objects within images or videos.

const vision = await FilesetResolver.forVisionTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
);
const objectDetector = await ObjectDetector.createFromModelPath(vision,
    "https://storage.googleapis.com/mediapipe-models/object_detector/efficientdet_lite0/float16/1/efficientdet_lite0.tflite"
);
const image = document.getElementById("image") as HTMLImageElement;
const detections = objectDetector.detect(image);

For more information, refer to the Object Detector documentation.

Pose Landmarker

The MediaPipe Pose Landmarker task lets you detect the landmarks of body poses in an image. You can use this Task to localize key points of a pose and render visual effects over the body.

const vision = await FilesetResolver.forVisionTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
);
const poseLandmarker = await PoseLandmarker.createFromModelPath(vision,
    "https://storage.googleapis.com/mediapipe-models/pose_landmarker/pose_landmarker_lite/float16/1/pose_landmarker_lite.task
);
const image = document.getElementById("image") as HTMLImageElement;
const landmarks = poseLandmarker.detect(image);

For more information, refer to the Pose Landmarker documentation.

@everything-registry/sub-chunk-592sveltetfswf-visualizerinput-file-from-webcamkml-pipe-tsidmission-web-sdkhue-conductorinferencejsinfobip-rtc-extensionshand-landmarks-trackerintelliprove-streaming-sdklingo3dlivepeerar.jslivepeerjs-armanitasmediapipe-model-coremedad-lit@web-ar-studio/webar-engine-sdk@videosdk.live/videosdk-media-processor-web@vominhmanh/etik_ai_edge_tool@vonage/ml-transformers@virbela/track-processors@zicenter/kyndra-client@zicenter/kyndra-serveraframe-desktop-xr-handsgeoart-take-100easyproctoreasyproctor-hmlface-detection-react-hookfern-arfacefilter-testcustom-dreibloch@anov/core@ale-rainbow/virtual-background@amaspace-editor/editor-3d@cursorly/web-componentssonic-widgetsonic-widget-apixtrack-processorstrillion-widgetuse-media-modelsmtr-facemeshmtr-hair-segmentationmiva-proctor-sdkmind-armind-ar-custom-nocanvasopenvidu-browser-v2compatibilityreact-covideo-embedreact-hand-trackingreact-facetrackingphoto-validatorreact-proctoring-1glodrei@entrylabs/entry@goteam/face-api@hey-mirror/base@instructure/media-capture@ir-engine/engine@sermas/toolkit@my-curiosity/react-hand-draw@koi-rtc/avatar-sdk@maissaninc/kidjs@react-three/drei@nicetouch/drei@mohammadhariszia/drei@stoneagebr/identify-sdk-web@kortexa-ai/react-multimodal@nuralogix.ai/tf-face-tracker-worker-ts@nuralogix.ai/anura-web-core-sdk@srinivasprabhu/drei@new-objects/libs@needle-engine/facefilter@needle-tools/facefilter@seontechnologies/seon-id-verification@jaak.ai/face-detector@livekit/track-processors@kyleparrott/track-processors@paxapos/av-inputs@pexip/media-processor@sakamotoapp/core@saikumarasqwer/sdk-test@saikumarasqwer/sg
0.10.20-rc.20241212

12 months ago

0.10.20-rc.20241214

12 months ago

0.10.20-rc.20241213

12 months ago

0.10.20-rc.20241216

12 months ago

0.10.20-rc.20241215

12 months ago

0.10.19-rc.20241130

12 months ago

0.10.19-rc.20241129

12 months ago

0.10.18

1 year ago

0.10.19

12 months ago

0.10.20

12 months ago

0.10.21

10 months ago

0.10.21-rc.20241230

11 months ago

0.10.21-rc.20241231

11 months ago

0.10.21-rc.20241227

11 months ago

0.10.21-rc.20241228

11 months ago

0.10.21-rc.20241225

11 months ago

0.10.21-rc.20241226

11 months ago

0.10.21-rc.20241223

11 months ago

0.10.21-rc.20241224

11 months ago

0.10.19-rc.20241210

12 months ago

0.10.21-rc.20241221

11 months ago

0.10.19-rc.20241211

12 months ago

0.10.21-rc.20241222

11 months ago

0.10.21-rc.20241229

11 months ago

0.10.21-rc.20241220

11 months ago

0.10.19-rc.20241206

12 months ago

0.10.19-rc.20241207

12 months ago

0.10.19-rc.20241208

12 months ago

0.10.19-rc.20241209

12 months ago

0.10.19-rc.20241202

12 months ago

0.10.21-rc.20241217

12 months ago

0.10.19-rc.20241203

12 months ago

0.10.19-rc.20241204

12 months ago

0.10.19-rc.20241205

12 months ago

0.10.19-rc.20241201

12 months ago

0.10.21-rc.20241218

12 months ago

0.10.21-rc.20241219

11 months ago

0.10.21-rc.20250131

10 months ago

0.10.21-rc.20250129

10 months ago

0.10.21-rc.20250128

10 months ago

0.10.21-rc.20250121

10 months ago

0.10.21-rc.20250120

10 months ago

0.10.21-rc.20250123

10 months ago

0.10.21-rc.20250122

10 months ago

0.10.21-rc.20250125

10 months ago

0.10.21-rc.20250124

10 months ago

0.10.21-rc.20250127

10 months ago

0.10.21-rc.20250126

10 months ago

0.10.21-rc.20250130

10 months ago

0.10.21-rc.20250118

10 months ago

0.10.21-rc.20250117

11 months ago

0.10.21-rc.20250119

10 months ago

0.10.21-rc.20250110

11 months ago

0.10.21-rc.20250112

11 months ago

0.10.21-rc.20250111

11 months ago

0.10.21-rc.20250114

11 months ago

0.10.21-rc.20250113

11 months ago

0.10.21-rc.20250116

11 months ago

0.10.21-rc.20250115

11 months ago

0.10.21-rc.20250107

11 months ago

0.10.21-rc.20250106

11 months ago

0.10.21-rc.20250109

11 months ago

0.10.21-rc.20250108

11 months ago

0.10.21-rc.20250101

11 months ago

0.10.21-rc.20250103

11 months ago

0.10.21-rc.20250102

11 months ago

0.10.21-rc.20250105

11 months ago

0.10.21-rc.20250104

11 months ago

0.10.21-rc.20250206

10 months ago

0.10.21-rc.20250205

10 months ago

0.10.21-rc.20250202

10 months ago

0.10.21-rc.20250201

10 months ago

0.10.21-rc.20250204

10 months ago

0.10.21-rc.20250203

10 months ago

0.10.17

1 year ago

0.10.15

1 year ago

0.10.16

1 year ago

0.10.14

2 years ago

0.10.13

2 years ago

0.10.12

2 years ago

0.10.11

2 years ago

0.10.10

2 years ago

0.10.9

2 years ago

20230919.0.0

2 years ago

0.10.2

2 years ago

0.10.3

2 years ago

0.10.4

2 years ago

0.10.5

2 years ago

0.10.6

2 years ago

0.10.7

2 years ago

0.10.8

2 years ago

20230920.0.0

2 years ago

0.1.0-alpha-15

3 years ago

0.1.0-alpha-14

3 years ago

0.1.0-alpha-17

3 years ago

0.1.0-alpha-16

3 years ago

0.10.1

2 years ago

0.10.2-rc1

2 years ago

0.10.2-rc2

2 years ago

0.10.0

3 years ago

0.1.0-alpha-11

3 years ago

0.1.0-alpha-10

3 years ago

0.1.0-alpha-13

3 years ago

0.1.0-alpha-12

3 years ago

0.1.0-alpha-8

3 years ago

0.1.0-alpha-7

3 years ago

0.1.0-alpha-9

3 years ago

0.1.0-alpha-6

3 years ago

0.1.0-alpha-5

3 years ago

0.1.0-alpha-4

3 years ago

0.1.0-alpha-3

3 years ago

0.1.0-alpha-2

3 years ago

0.1.0-alpha-1

3 years ago