1234567891011121314151617181920212223242526272829 |
-
- namespace YOLODetectProcessLib
- {
- /// <summary>
- /// 模型输出的结果
- /// </summary>
- 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;
- }
- }
- }
|