Palm landmark prediction with MediaPipe Hands 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.fxn", "ai.natml"]
}
],
"dependencies": {
"ai.natml.vision.blazepalm": "1.0.3"
}
}
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);
- Unity 2022.3+
- Join the NatML community on Discord.
- Discover more ML models on NatML Hub.
- See the NatML documentation.
- Contact us at hi@natml.ai.
Thank you very much!