//------------------------------------------------------------------------------ // // // This file was automatically generated by SWIG (http://www.swig.org). // Version 4.0.2 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //------------------------------------------------------------------------------ public class GestureEstimate { public static HandPoseEnum HandPoseFromLandmark(Point3fList kpts) { HandPoseEnum ret = (HandPoseEnum)GestureEstimatePINVOKE.HandPoseFromLandmark(Point3fList.getCPtr(kpts)); if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve(); return ret; } public static HandPoseEnum HandPoseDetect(float[] hand, int hand_kpts_num) { HandPoseEnum ret = (HandPoseEnum)GestureEstimatePINVOKE.HandPoseDetect(hand, hand_kpts_num); return ret; } public static string HandPoseEnumToString(HandPoseEnum pose) { string ret = GestureEstimatePINVOKE.HandPoseEnumToString((int)pose); return ret; } public static string ActionPoseEnumToString(ActionPoseEnum pose) { string ret = GestureEstimatePINVOKE.ActionPoseEnumToString((int)pose); return ret; } public static void set_kpt_version_qiao_shou_ya(KptVersion v) { GestureEstimatePINVOKE.set_kpt_version_qiao_shou_ya((int)v); } public static int onSmallMouse(float[] left_hand, int left_hand_kpts_num, float[] right_hand, int right_hand_kpts_num) { int ret = GestureEstimatePINVOKE.onSmallMouse(left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num); return ret; } 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) { int ret = GestureEstimatePINVOKE.onBigCat(pose, pose_kpts_num, left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num); return ret; } 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) { int ret = GestureEstimatePINVOKE.onShake(pose, pose_kpts_num, left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num); return ret; } 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) { int ret = GestureEstimatePINVOKE.onGoHome(pose, pose_kpts_num, left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num); return ret; } public static int onCloseOpen(float[] left_hand, int left_hand_kpts_num, float[] right_hand, int right_hand_kpts_num) { int ret = GestureEstimatePINVOKE.onCloseOpen(left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num); return ret; } public static int onWaveDoubleHand(float[] left_hand, int left_hand_kpts_num, float[] right_hand, int right_hand_kpts_num) { int ret = GestureEstimatePINVOKE.onWaveDoubleHand(left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num); return ret; } public static int onGood(float[] left_hand, int left_hand_kpts_num, float[] right_hand, int right_hand_kpts_num) { int ret = GestureEstimatePINVOKE.onGood(left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num); return ret; } 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) { int ret = GestureEstimatePINVOKE.onBeat(pose, pose_kpts_num, left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num); return ret; } public static void set_kpt_version(KptVersion v) { GestureEstimatePINVOKE.set_kpt_version((int)v); } public static void set_model_path(string model_dir) { GestureEstimatePINVOKE.set_model_path(model_dir); } 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) { Hand ret = (Hand)GestureEstimatePINVOKE.onHandsUp(pose, pose_kpts_num, left_hand, left_hand_kpts_num, right_hand, right_hand_kpts_num); return ret; } public static int onArmCross(float[] pose, int pose_kpts_num) { int ret = GestureEstimatePINVOKE.onArmCross(pose, pose_kpts_num); return ret; } public static Hand onLateralRaise(float[] pose, int pose_kpts_num) { Hand ret = (Hand)GestureEstimatePINVOKE.onLateralRaise(pose, pose_kpts_num); return ret; } public static ArmDownResult onArmDown(float[] pose, int pose_kpts_num) { ArmDownResult ret = new ArmDownResult(GestureEstimatePINVOKE.onArmDown(pose, pose_kpts_num), true); return ret; } public static ActionPoseEnum onAction(float[] pose, int pose_kpts_num) { ActionPoseEnum ret = (ActionPoseEnum)GestureEstimatePINVOKE.onAction(pose, pose_kpts_num); return ret; } }