API reference
API reference
Select your platform
No SDKs available
No versions available

DetectionDto Struct

Compact detection produced by the GPU gather path.
Each instance contains the scaled rectangle, confidence, and class id for a single kept box after Non-Maximum Suppression. This payload is intentionally minimal so providers can read back only a few bytes per frame and avoid large CPU downloads of full model tensors.
Coordinates in Box are already scaled from the model’s input size into source texture space (x, y, w, h). Map ID to a human-readable label using your class-labels array (for example, those loaded by UnityInferenceEngineProvider). Scores are unitless confidences in [0,1] and are suitable for thresholding or UI display.

Fields

Axis-aligned rectangle in source texture space as (x, y, w, h).
The provider applies scaling from model input dimensions so consumers can directly overlay this on the original frame without additional normalization or aspect-ratio math.
Confidence score in the [0,1] range reflecting the model’s belief that this box contains the predicted class.
Use this to sort, filter, or annotate UI elements with a percentage value.
Zero-based class index emitted by the model for this detection.
Resolve to a descriptive label using the same labels table that was used at inference time to ensure consistent categories.