onnxruntime/samples/c_sharp/OpenVINO_EP/yolov3_object_detection/Prediction.cs
Maajid khan e41e042de6
[OpenVINO-EP] Adding OpenVINO-EP samples to Msft Repo (#7826)
* Added ONNX_OV_EP samples

->Added cpp, python and csharp samples
using OpenVINO Execution Provider.

Signed-off-by: MaajidKhan <n.maajidkhan@gmail.com>
2021-05-28 08:35:41 -07:00

31 lines
No EOL
647 B
C#

/*
Copyright (C) 2021, Intel Corporation
SPDX-License-Identifier: Apache-2.0
*/
namespace yolov3
{
public class Prediction
{
public Box Box { get; set; }
public string Class { get; set; }
public float Score { 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;
}
}
}