ai.natml.vision.blazepose.detector

1.0.3 • Public • Published

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:

// 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);

Requirements

  • Unity 2022.3+

Quick Tips

Thank you very much!

Package Sidebar

Install

npm i ai.natml.vision.blazepose.detector

Weekly Downloads

154

Version

1.0.3

License

Apache-2.0

Unpacked Size

28.1 kB

Total Files

15

Last publish

Collaborators

  • olokobayusuf