MoveNet single body pose detection from Google MediaPipe.
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"
}
}
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);
- Unity 2022.3+
- Discover more ML models on NatML Hub.
- See the NatML documentation.
- Join the NatML community on Discord.
- Contact us at hi@natml.ai.
Thank you very much!