ai.natml.vision.blazepalm.detector
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,2 +1,7 @@ | ||
## 1.0.1 | ||
+ Added `BlazePalmDetector.Create` static method for creating the detector. | ||
+ Removed `BlazePalmDetector` public constructor. Use `BlazePalmDetector.Create` method instead. | ||
+ Upgraded to NatML 1.1.3. | ||
## 1.0.0 | ||
+ First release. |
{ | ||
"name": "ai.natml.vision.blazepalm.detector", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"displayName": "BlazePalm Detector", | ||
@@ -8,3 +8,3 @@ "description": "Palm detection from Google MediaPipe in Unity Engine.", | ||
"dependencies": { | ||
"ai.natml.natml": "1.0.19" | ||
"ai.natml.natml": "1.1.3" | ||
}, | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"license": "Apache-2.0", | ||
"repository": "github:natml-hub/BlazePalm-Detector" | ||
"repository": "github:natml-hub/blazepalm-detector" | ||
} |
@@ -16,3 +16,3 @@ # BlazePalm Detector | ||
"dependencies": { | ||
"ai.natml.vision.blazepalm.detector": "1.0.0" | ||
"ai.natml.vision.blazepalm.detector": "1.0.1" | ||
} | ||
@@ -23,26 +23,13 @@ } | ||
## Detecting Hands in an Image | ||
First, create the predictor: | ||
First, create the detector: | ||
```csharp | ||
// Fetch the model data from NatML Hub | ||
var modelData = await MLModelData.FromHub("@natml/blazepalm-detector"); | ||
// Deserialize the model | ||
var model = modelData.Deserialize(); | ||
// Create the BlazePalm detector | ||
var detector = new BlazePalmDetector(model); | ||
var detector = await BlazePalmDetector.Create(); | ||
``` | ||
Then create an image feature: | ||
Finally, detect hands in an image: | ||
```csharp | ||
// With an image | ||
Texture2D image = ...; | ||
// Create an image feature | ||
var imageFeature = new MLImageFeature(image); | ||
(imageFeature.mean, imageFeature.std) = modelData.normalization; | ||
imageFeature.aspectMode = modelData.aspectMode; | ||
``` | ||
Finally, detect hands in the image: | ||
```csharp | ||
// Detect hands in the image | ||
BlazePalmDetector.Detection[] hands = detector.Predict(imageFeature); | ||
BlazePalmDetector.Detection[] hands = detector.Predict(image); | ||
``` | ||
@@ -56,8 +43,7 @@ | ||
## Quick Tips | ||
- Join the [NatML community on Discord](https://natml.ai/community). | ||
- Discover more ML models on [NatML Hub](https://hub.natml.ai). | ||
- See the [NatML documentation](https://docs.natml.ai/unity). | ||
- Join the [NatML community on Discord](https://hub.natml.ai/community). | ||
- Discuss [NatML on Unity Forums](https://forum.unity.com/threads/open-beta-natml-machine-learning-runtime.1109339/). | ||
- Contact us at [hi@natml.ai](mailto:hi@natml.ai). | ||
Thank you very much! |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
27037
46
+ Addedai.natml.hub@1.0.20(transitive)
+ Addedai.natml.natml@1.1.3(transitive)
- Removedai.natml.hub@1.0.12(transitive)
- Removedai.natml.natml@1.0.19(transitive)
Updatedai.natml.natml@1.1.3