BlazePose Detector
MediaPipe BlazePose for person detection in Unity Engine with NatML.
Installing BlazePose
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"
}
}
Detecting Poses in an Image
First, create the BlazePose detector:
var predictor = await BlazePoseDetector.Create();
Then detect pose rectangles in the image:
Texture2D image = ...;
BlazePoseDetector.Detection[] faces = predictor.Predict(image);
Requirements
Quick Tips
Thank you very much!