v2026.5.3
All Bundles
Bundle ONNX Runtime inference library for running pre-trained models. Supports object detection (YOLO), image classification (ResNet), segmentation (DeepLab), pose estimation (OpenPose), face recognition, and Phi-3 text generation. Compile with -lib onnx.

YoloResult

YOLO inference result containing raw output, shape, dimensions and classifications

Operations

GetClassifications #

Gets an array of classifications

method : public : GetClassifications() ~ YoloClassification[]

Return

TypeDescription
YoloClassificationarray of classifications

Example

each(cls in result->GetClassifications()) {
  "{$cls->GetName()} ({$cls->GetConfidence()})"->PrintLine();
};

GetDimensions #

Gets the image dimensions

method : public : GetDimensions() ~ Int[]

Return

TypeDescription
Intimage dimensions

GetImages #

Gets image byte

method : public : GetImages() ~ Byte[]

Return

TypeDescription
Byteimage bytes

GetLabels #

Gets the labels

method : public : GetLabels() ~ String[]

Return

TypeDescription
Stringlabels

GetOutput #

Gets the confidences results

method : public : GetOutput() ~ Float[]

Return

TypeDescription
Floatconfidences results

GetShape #

Gets the confidences shape

method : public : GetShape() ~ Int[]

Return

TypeDescription
Intconfidences shape

ToJson #

JSON representation

method : public : ToJson() ~ JsonElement

Return

TypeDescription
JsonElementJSON representation

ToString #

String representation

method : public : ToString() ~ String

Return

TypeDescription
Stringstring representation