MediaPipe BlazePose for person detection in Unity Engine with NatML.
Add the following items to your Unity project's Packages/manifest.json
:
{
"scopedRegistries": [
{
"name": "NatML",
"url": "https://registry.npmjs.com",
"scopes": ["ai.fxn", "ai.natml"]
}
],
"dependencies": {
"ai.natml.vision.blazepose.detector": "1.0.3"
}
}
First, create the BlazePose detector:
// Create the BlazePose detector
var predictor = await BlazePoseDetector.Create();
Then detect pose rectangles in the image:
// Create image feature
Texture2D image = ...;
// Detect pose regions-of-interest in the image
BlazePoseDetector.Detection[] faces = predictor.Predict(image);
- Unity 2022.3+
- Join the NatML community on Discord.
- Discover more ML models on NatML Hub.
- See the NatML documentation.
- Contact us at [email protected].
Thank you very much!