GestureEstimate.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. //------------------------------------------------------------------------------
  2. // <auto-generated />
  3. //
  4. // This file was automatically generated by SWIG (http://www.swig.org).
  5. // Version 4.0.2
  6. //
  7. // Do not make changes to this file unless you know what you are doing--modify
  8. // the SWIG interface file instead.
  9. //------------------------------------------------------------------------------
  10. public class GestureEstimate {
  11. public static HandPoseEnum HandPoseFromLandmark(Point3fList kpts) {
  12. HandPoseEnum ret = (HandPoseEnum)GestureEstimatePINVOKE.HandPoseFromLandmark(Point3fList.getCPtr(kpts));
  13. if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve();
  14. return ret;
  15. }
  16. public static HandPoseEnum HandPoseDetect(float[] hand, int hand_kpts_num) {
  17. HandPoseEnum ret = (HandPoseEnum)GestureEstimatePINVOKE.HandPoseDetect(hand, hand_kpts_num);
  18. return ret;
  19. }
  20. public static string HandPoseEnumToString(HandPoseEnum pose) {
  21. string ret = GestureEstimatePINVOKE.HandPoseEnumToString((int)pose);
  22. return ret;
  23. }
  24. public static string ActionPoseEnumToString(ActionPoseEnum pose) {
  25. string ret = GestureEstimatePINVOKE.ActionPoseEnumToString((int)pose);
  26. return ret;
  27. }
  28. public static void set_kpt_version_qiao_shou_ya(KptVersion v) {
  29. GestureEstimatePINVOKE.set_kpt_version_qiao_shou_ya((int)v);
  30. }
  31. public static int onSmallMouse(float[] left_hand, int left_hand_kpts_num, float[] right_hand, int right_hand_kpts_num) {
  32. int ret = GestureEstimatePINVOKE.onSmallMouse(left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num);
  33. return ret;
  34. }
  35. public static int onBigCat(float[] pose, int pose_kpts_num, float[] left_hand, int left_hand_kpts_num, float[] right_hand, int right_hand_kpts_num) {
  36. int ret = GestureEstimatePINVOKE.onBigCat(pose, pose_kpts_num, left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num);
  37. return ret;
  38. }
  39. public static int onShake(float[] pose, int pose_kpts_num, float[] left_hand, int left_hand_kpts_num, float[] right_hand, int right_hand_kpts_num) {
  40. int ret = GestureEstimatePINVOKE.onShake(pose, pose_kpts_num, left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num);
  41. return ret;
  42. }
  43. public static int onGoHome(float[] pose, int pose_kpts_num, float[] left_hand, int left_hand_kpts_num, float[] right_hand, int right_hand_kpts_num) {
  44. int ret = GestureEstimatePINVOKE.onGoHome(pose, pose_kpts_num, left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num);
  45. return ret;
  46. }
  47. public static int onCloseOpen(float[] left_hand, int left_hand_kpts_num, float[] right_hand, int right_hand_kpts_num) {
  48. int ret = GestureEstimatePINVOKE.onCloseOpen(left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num);
  49. return ret;
  50. }
  51. public static int onWaveDoubleHand(float[] left_hand, int left_hand_kpts_num, float[] right_hand, int right_hand_kpts_num) {
  52. int ret = GestureEstimatePINVOKE.onWaveDoubleHand(left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num);
  53. return ret;
  54. }
  55. public static int onGood(float[] left_hand, int left_hand_kpts_num, float[] right_hand, int right_hand_kpts_num) {
  56. int ret = GestureEstimatePINVOKE.onGood(left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num);
  57. return ret;
  58. }
  59. public static int onBeat(float[] pose, int pose_kpts_num, float[] left_hand, int left_hand_kpts_num, float[] right_hand, int right_hand_kpts_num) {
  60. int ret = GestureEstimatePINVOKE.onBeat(pose, pose_kpts_num, left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num);
  61. return ret;
  62. }
  63. public static void set_kpt_version(KptVersion v) {
  64. GestureEstimatePINVOKE.set_kpt_version((int)v);
  65. }
  66. public static void set_model_path(string model_dir) {
  67. GestureEstimatePINVOKE.set_model_path(model_dir);
  68. }
  69. public static Hand onHandsUp(float[] pose, int pose_kpts_num, float[] left_hand, int left_hand_kpts_num, float[] right_hand, int right_hand_kpts_num) {
  70. Hand ret = (Hand)GestureEstimatePINVOKE.onHandsUp(pose, pose_kpts_num, left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num);
  71. return ret;
  72. }
  73. public static int onArmCross(float[] pose, int pose_kpts_num) {
  74. int ret = GestureEstimatePINVOKE.onArmCross(pose, pose_kpts_num);
  75. return ret;
  76. }
  77. public static Hand onLateralRaise(float[] pose, int pose_kpts_num) {
  78. Hand ret = (Hand)GestureEstimatePINVOKE.onLateralRaise(pose, pose_kpts_num);
  79. return ret;
  80. }
  81. public static ArmDownResult onArmDown(float[] pose, int pose_kpts_num) {
  82. ArmDownResult ret = new ArmDownResult(GestureEstimatePINVOKE.onArmDown(pose, pose_kpts_num), true);
  83. return ret;
  84. }
  85. public static ActionPoseEnum onAction(float[] pose, int pose_kpts_num) {
  86. ActionPoseEnum ret = (ActionPoseEnum)GestureEstimatePINVOKE.onAction(pose, pose_kpts_num);
  87. return ret;
  88. }
  89. }