1
0

HumanDetectResultPerImage.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using RUSInferNet;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using AI.Common;
  9. using Rect = AI.Common.Rect;
  10. namespace HumanOrganSegDemo
  11. {
  12. public class HumanDetectResultPerImage
  13. {
  14. /// <summary>
  15. /// 一张图有多个部位检测,包括人体、人脸等
  16. /// </summary>
  17. public Dictionary<EnumHumanParts, Rect[]> BodyPartBoundBoxesAll;
  18. /// <summary>
  19. /// 目标对象的矩形框
  20. /// </summary>
  21. public Rect ObjectBoundingBox;
  22. /// <summary>
  23. /// 目标对象的关键点
  24. /// </summary>
  25. public BodyKeyPoints ObjectKeyPoints;
  26. /// <summary>
  27. /// 目标对象人体朝向向量(像素坐标系)
  28. /// </summary>
  29. public Point2D ObjectOrientationInPCS;
  30. /// <summary>
  31. /// 目标脏器的轮廓信息
  32. /// </summary>
  33. public ContourPoints ObjectOrganContours;
  34. /// <summary>
  35. /// 耗时统计
  36. /// </summary>
  37. public int TimeElapsed;
  38. public HumanDetectResultPerImage(Dictionary<EnumHumanParts, Rect[]> bodyPartBoundBoxes, Rect objectBoundingBox, BodyKeyPoints bodyKeyPoints, Point2D orientation, ContourPoints organContours, int timeElapsed)
  39. {
  40. BodyPartBoundBoxesAll = bodyPartBoundBoxes;
  41. ObjectBoundingBox = objectBoundingBox;
  42. ObjectKeyPoints = bodyKeyPoints;
  43. ObjectOrientationInPCS = orientation;
  44. ObjectOrganContours = organContours;
  45. TimeElapsed = timeElapsed;
  46. }
  47. }
  48. }