1.0.1 • Published 1 year ago

ai.natml.vision.ssd-lite v1.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

Single Shot Detector Lite

SSD Lite high performance general object detection.

Installing SSD Lite

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.ssd-lite": "1.0.1"
  }
}

Detecting Objects in an Image

First, create the SSD Lite predictor:

// Create the SSD Lite predictor
var predictor = await SSDLitePredictor.Create();

Then detect objects in the image:

// Create image feature
Texture2D image = ...;
// Detect objects
SSDLitePredictor.Detection[] detections = predictor.Predict(image);

Requirements

  • Unity 2021.2+

Quick Tips

Thank you very much!