ai.natml.vision.yolox
v1.0.4
Published
High performance object detector based on YOLO series for Unity Engine.
Downloads
677
Maintainers
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
- Join the NatML community on Discord.
- Discover more ML models on NatML Hub.
- See the NatML documentation.
- Contact us at [email protected].
Thank you very much!