1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using RUSInferNet;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using AI.Common;
- using Rect = AI.Common.Rect;
- namespace HumanOrganSegDemo
- {
- public class HumanDetectResultPerImage
- {
- /// <summary>
- /// 一张图有多个部位检测,包括人体、人脸等
- /// </summary>
- public Dictionary<EnumHumanParts, Rect[]> BodyPartBoundBoxesAll;
- /// <summary>
- /// 目标对象的矩形框
- /// </summary>
- public Rect ObjectBoundingBox;
- /// <summary>
- /// 目标对象的关键点
- /// </summary>
- public BodyKeyPoints ObjectKeyPoints;
- /// <summary>
- /// 目标对象人体朝向向量(像素坐标系)
- /// </summary>
- public Point2D ObjectOrientationInPCS;
- /// <summary>
- /// 目标脏器的轮廓信息
- /// </summary>
- public ContourPoints ObjectOrganContours;
- /// <summary>
- /// 耗时统计
- /// </summary>
- public int TimeElapsed;
- public HumanDetectResultPerImage(Dictionary<EnumHumanParts, Rect[]> bodyPartBoundBoxes, Rect objectBoundingBox, BodyKeyPoints bodyKeyPoints, Point2D orientation, ContourPoints organContours, int timeElapsed)
- {
- BodyPartBoundBoxesAll = bodyPartBoundBoxes;
- ObjectBoundingBox = objectBoundingBox;
- ObjectKeyPoints = bodyKeyPoints;
- ObjectOrientationInPCS = orientation;
- ObjectOrganContours = organContours;
- TimeElapsed = timeElapsed;
- }
- }
- }
|