C#實現控制檯傳參呼叫YoloV5進行人體識別

꧁执笔小白꧂發表於2024-07-08

一、專案地址

二、程式碼解析

3、自定義人體資訊類

  該類用於在控制檯列印人體位置資訊

    /// <summary>
    /// 人體資訊
    /// </summary>
    public class BodyInfo
    {
        public int Left { get; set; } = 0;
        public int Top { get; set; } = 0;
        public int Right { get; set; } = 0;
        public int Bottom { get; set; } = 0;

        /// <summary>
        /// 機率
        /// </summary>
        public double Score { get; set; } = 0;

        public BodyInfo(int left, int top, int right, int bottom, double score)
        {
            Left = left;
            Top = top;
            Right = right;
            Bottom = bottom;
            Score = score;
        }
    }

2、

相關文章