1.0.3 • Published 8 months ago

ai.natml.vision.blazepalm v1.0.3

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

BlazePalm

Palm landmark prediction with MediaPipe Hands in Unity Engine.

Installing BlazePalm

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.blazepalm": "1.0.3"
  }
}

Predicting Hands in an Image

First, create the BlazePalm pipeline:

// Create the BlazePalm pipeline
var pipeline = await BlazePalmPipeline.Create();

Then detect hands in the image:

// Detect hands in the image
Texture2D image = ...;
BlazePalmPredictor.Hand[] hands = pipeline.Predict(image);

Requirements

  • Unity 2022.3+

Quick Tips

Thank you very much!