Method Parse
Parse(IReadOnlyCollection<NamedOnnxValue>, Size, YoloModelDescription, MLMaskProcessingType)
Parses the raw outputs from a Yolo model and converts them into a list of Yolo predictions.
Declaration
IReadOnlyList<YoloPrediction> Parse(IReadOnlyCollection<NamedOnnxValue> outputs, Size imageSize, YoloModelDescription model, MLMaskProcessingType maskProcessingType)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyCollection<NamedOnnxValue> | outputs | The raw outputs from the Yolo model as a collection of named ONNX values. |
Size | imageSize | The size of the image on which the prediction was performed. |
YoloModelDescription | model | The description of the Yolo model used for the prediction, containing information like dimensions, confidence threshold, and labels. |
MLMaskProcessingType | maskProcessingType | Specifies the type of processing to be applied to the segmentation masks, if applicable. |
Returns
Type | Description |
---|---|
IReadOnlyList<YoloPrediction> | A read-only list of YoloPrediction instances representing the parsed predictions. |