Socket
Socket
Sign inDemoInstall

ai.natml.vision.blazepose

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ai.natml.vision.blazepose

Pose detection with MediaPipe BlazePose.


Version published
Weekly downloads
372
decreased by-21.68%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

BlazePose

MediaPipe BlazePose for full-body pose detection in Unity Engine with NatML.

Installing BlazePose

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.blazepose": "1.0.2"
  }
}

Predicting Poses in an Image

First, create the BlazePose pipeline:

// Fetch the model data
var detectorModelData = await MLModelData.FromHub("@natml/blazepose-detector");
var predictorModelData = await MLModelData.FromHub("@natml/blazepose-landmark");
// Create the BlazePose pipeline
var pipeline = new BlazePosePipeline(detectorModelData, predictorModelData);

Then detect poses in the image:

// Create image feature
Texture2D image = ...;
// Detect poses in the image
BlazePosePredictor.Pose[] poses = pipeline.Predict(image);

Requirements

  • Unity 2022.3+

Quick Tips

Thank you very much!

Keywords

FAQs

Last updated on 03 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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