Socket
Socket
Sign inDemoInstall

ai.natml.vision.blazepalm.detector

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

5

Changelog.md

@@ -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.

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc