onnxruntime/samples/c_sharp/OpenVINO_EP/yolov3_object_detection/Prediction.cs
Ryan Lai 14fe3e8404 Merged PR 6115559: RI changes from Github into dmldev
No merge conflicts

Related work items: #33589561
2021-06-03 00:04:30 +00: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;
}
}
}