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:
var predictor = await YOLOXPredictor.Create();
Then detect objects in the image:
Texture2D image = ...;
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
Quick Tips
Thank you very much!