Socket
Socket
Sign inDemoInstall

ai.natml.vision.mobilenet-v2

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ai.natml.vision.mobilenet-v2

Realtime image classification in Unity Engine.


Version published
Weekly downloads
357
decreased by-15%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

MobileNet v2

Realtime object classification machine learning model optimized for mobile applications.

Installing MobileNet v2

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.mobilenet-v2": "1.0.4"
  }
}

Classifying an Image

First, create the MobileNet v2 predictor:

// Create the MobileNet v2 predictor
var predictor = await MobileNetv2Predictor.Create();

Then make predictions on images:

// Given an image...
Texture2D image = ...;
// Classify the image
MobileNetv2Predictor.Label result = predictor.Predict(image);
// Use the result
Debug.Log($"Model predicted {result.label} with confidence {result.confidence}");

Requirements

  • Unity 2022.3+

Quick Tips

  • 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!

Keywords

FAQs

Last updated on 11 Aug 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