onnxruntime/csharp/sample/Xamarin/FasterRcnnSample/FasterRcnnSample/IImageProcessor.cs
Scott McKay b5a652c578
Add Xamarin support (#9436)
Add Xamarin support to the ORT nuget packages.
  - Update C# code to support Xamarin builds for iOS and Android
  - refactor some things to split out common code
  - include iOS and Android ORT native shared library in native nuget package
2021-10-27 20:07:07 +10:00

12 lines
No EOL
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);
}
}