Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 1.03 KB

File metadata and controls

46 lines (39 loc) · 1.03 KB

BlazePalm Detector

Palm detection from Google MediaPipe in Unity Engine.

Installing BlazePalm Detector

Add the following items to your Unity project's Packages/manifest.json:

{
  "scopedRegistries": [
    {
      "name": "NatML",
      "url": "https://registry.npmjs.com",
      "scopes": ["ai.natml"]
    }
  ],
  "dependencies": {
    "ai.natml.vision.blazepalm.detector": "1.0.1"
  }
}

Detecting Hands in an Image

First, create the detector:

// Create the BlazePalm detector
var detector = await BlazePalmDetector.Create();

Finally, detect hands in an image:

Texture2D image = ...;
// Detect hands in the image
BlazePalmDetector.Detection[] hands = detector.Predict(image);

Requirements

  • Unity 2021.2+

Quick Tips

Thank you very much!