Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 1.12 KB

File metadata and controls

46 lines (40 loc) · 1.12 KB

MoveNet

MoveNet single body pose detection from Google MediaPipe.

Installing MoveNet

Add the following items to your Unity project's Packages/manifest.json:

{
  "scopedRegistries": [
    {
      "name": "NatML",
      "url": "https://registry.npmjs.com",
      "scopes": ["ai.natml"]
    }
  ],
  "dependencies": {
    "ai.natml.vision.movenet": "1.0.9"
  }
}

Predicting Pose in an Image

First, create the MoveNet predictor:

// Create the MoveNet predictor
var predictor = await MoveNetPredictor.Create();

Then detect the body pose in an image:

// Given an image
Texture2D image = ...;
// Detect the body pose
MoveNetPredictor.Pose pose = predictor.Predict(image);

Requirements

  • Unity 2022.3+

Quick Tips

Thank you very much!