mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-22 22:01:08 +00:00
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
12 lines
No EOL
343 B
C#
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);
|
|
}
|
|
} |