JSPM

ai.natml.vision.yolox

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 19
  • Score
    100M100P100Q69875F
  • License Apache-2.0

High performance object detector based on YOLO series for Unity Engine.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ai.natml.vision.yolox) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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!