onnxruntime/samples/c_sharp/OpenVINO_EP/yolov3_object_detection/Prediction.cs
Xueyun Zhu d4106deeb6
Cherry pick outstanding changes into release branch (round 2) (#7921)
* [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>

* [js/web] update README.md (#7894)

* Add API_IMPL_* blocks around shared provider methods as they are C APIs (#7908)

* Missing logic for cuda nuget package (#7911)

Co-authored-by: Maajid khan <n.maajidkhan@gmail.com>
Co-authored-by: Yulong Wang <yulongw@microsoft.com>
Co-authored-by: Ryan Hill <38674843+RyanUnderhill@users.noreply.github.com>
2021-06-02 10:24:11 -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;
}
}
}