Palm detection from Google MediaPipe in Unity Engine.
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"
}
}
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);
- Unity 2021.2+
- Join the NatML community on Discord.
- Discover more ML models on NatML Hub.
- See the NatML documentation.
- Contact us at [email protected].
Thank you very much!