1.0.3 • Published 7 months ago

ai.natml.vision.blazepose.detector v1.0.3

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

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!