mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-13 18:08:13 +00:00
12 lines
343 B
C#
12 lines
343 B
C#
|
|
using System.Collections.Generic;
|
|||
|
|
using Microsoft.ML.OnnxRuntime.Tensors;
|
|||
|
|
|
|||
|
|
namespace FasterRcnnSample
|
|||
|
|
{
|
|||
|
|
public interface IImageProcessor<T>
|
|||
|
|
{
|
|||
|
|
T PreprocessSourceImage(byte[] sourceImage);
|
|||
|
|
Tensor<float> GetTensorForImage(T image);
|
|||
|
|
byte[] ApplyPredictionsToImage(IList<Prediction> predictions, T image);
|
|||
|
|
}
|
|||
|
|
}
|