using System.Drawing; namespace yolov5_onnx.Mod { /// /// Object prediction. /// public class YoloPrediction { public YoloLabel Label { get; set; } //預測目標體標籤 public RectangleF Rectangle { get; set; } //預測的物體邊界框 public float Score { get; set; } //預測物體的信心分數 public YoloPrediction() { } //無參數的構造函數 public YoloPrediction(YoloLabel label, float confidence) : this(label) { Score = confidence; }//帶有標籤和信心度的構造函數 public YoloPrediction(YoloLabel label) { Label = label; } //帶有標籤的構造函數 } }