1.0.9 • Published 9 months ago

ai.natml.vision.movenet v1.0.9

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

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!