mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
* C# sample: Faster R-CNN * Add link to new sample in samples README * Remove duplicate image
26 lines
No EOL
603 B
C#
26 lines
No EOL
603 B
C#
namespace Microsoft.ML.OnnxRuntime.FasterRcnnSample
|
|
{
|
|
public class Prediction
|
|
{
|
|
public Box Box { get; set; }
|
|
public string Label { get; set; }
|
|
public float Confidence { get; set; }
|
|
}
|
|
|
|
public class Box
|
|
{
|
|
public float Xmin { get; set; }
|
|
public float Ymin { get; set; }
|
|
public float Xmax { get; set; }
|
|
public float Ymax { get; set; }
|
|
|
|
public Box(float xmin, float ymin, float xmax, float ymax)
|
|
{
|
|
Xmin = xmin;
|
|
Ymin = ymin;
|
|
Xmax = xmax;
|
|
Ymax = ymax;
|
|
|
|
}
|
|
}
|
|
} |