| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- //------------------------------------------------------------------------------
- // <auto-generated />
- //
- // 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;
- }
- }
|