1.0.4 • Published 9 months ago

ai.natml.vision.yolox v1.0.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

YOLOX

YOLOX high performance general object detection.

Installing YOLOX

Add the following items to your Unity project's Packages/manifest.json:

{
  "scopedRegistries": [
    {
      "name": "NatML",
      "url": "https://registry.npmjs.com",
      "scopes": ["ai.natml", "ai.fxn"]
    }
  ],
  "dependencies": {
    "ai.natml.vision.yolox": "1.0.4"
  }
}

Detecting Objects in an Image

First, create the YOLOX predictor:

// Create the YOLOX predictor
var predictor = await YOLOXPredictor.Create();

Then detect objects in the image:

// Given an image
Texture2D image = ...;
// Detect objects
YOLOXPredictor.Detection[] detections = predictor.Predict(image);

The detection rects are provided in normalized coordinates in range [0.0, 1.0]. The score is also normalized in range [0.0, 1.0].


Requirements

  • Unity 2021.2+

Quick Tips

Thank you very much!