Method Predict
Predict(Image<Bgr, byte>, MLMaskProcessingType)
Predicts objects in an image and returns a list of predictions. Used for both object detection and segmentation tasks.
Declaration
IReadOnlyList<YoloPrediction> Predict(Image<Bgr, byte> image, MLMaskProcessingType maskProcessingType)
Parameters
Type | Name | Description |
---|---|---|
Image<Bgr, byte> | image | The image to process. |
MLMaskProcessingType | maskProcessingType | The type of processing to apply to segmentation masks, if applicable. |
Returns
Type | Description |
---|---|
IReadOnlyList<YoloPrediction> | A read-only list of YoloPrediction representing the predictions for the image. |
Predict(DenseTensor<float>, Size, MLMaskProcessingType)
Predicts objects in an image tensor and returns a list of predictions. Used for both object detection and segmentation tasks.
Declaration
IReadOnlyList<YoloPrediction> Predict(DenseTensor<float> imageTensor, Size imageSize, MLMaskProcessingType maskProcessingType)
Parameters
Type | Name | Description |
---|---|---|
DenseTensor<float> | imageTensor | The image tensor for prediction. |
Size | imageSize | The size of the image being processed. |
MLMaskProcessingType | maskProcessingType | The type of processing to apply to segmentation masks, if applicable. |
Returns
Type | Description |
---|---|
IReadOnlyList<YoloPrediction> | A read-only list of YoloPrediction representing the predictions for the image tensor. |