namespace YOLODetectProcessLib { /// /// 模型输出的结果 /// public struct DetectedObject : IDetectedObject { public int Label { get; set; } public float Confidence { get; set; } public Rect BoundingBox { get; set; } public DetectedObject(int label, float confidence) { Label = label; Confidence = confidence; BoundingBox = new Rect(0, 0, 0, 0); } public DetectedObject(int label, float confidence, Rect boundBox) { Label = label; Confidence = confidence; BoundingBox = boundBox; } } }