Euler angles for Body
This commit is contained in:
2241
ModelUE4.py
2241
ModelUE4.py
File diff suppressed because it is too large
Load Diff
159
ModelUE4_apose.py
Normal file
159
ModelUE4_apose.py
Normal file
@@ -0,0 +1,159 @@
|
|||||||
|
def makexyzrotvis(x,y,z,rotx,roty,rotz,visible):
|
||||||
|
ret = {}
|
||||||
|
translation = {}
|
||||||
|
rotation = {}
|
||||||
|
scale = {}
|
||||||
|
translation["x"] = x
|
||||||
|
translation["y"] = y
|
||||||
|
translation["z"] = z
|
||||||
|
rotation["rotx"] = rotx
|
||||||
|
rotation["roty"] = roty
|
||||||
|
rotation["rotz"] = rotz
|
||||||
|
scale["x"] = 1.0
|
||||||
|
scale["y"] = 1.0
|
||||||
|
scale["z"] = 1.0
|
||||||
|
ret["visible"] = visible
|
||||||
|
ret["translation"] = translation
|
||||||
|
ret["rotation"] = rotation
|
||||||
|
ret["scale"] = scale
|
||||||
|
return ret
|
||||||
|
|
||||||
|
def bodyaposeworld(data):
|
||||||
|
data["root"] = makexyzrotvis(0., 0., 0., 0., 0., 0., 1.0)
|
||||||
|
data["pelvis"] = makexyzrotvis(0., -1.056, 96.751, 89.790634, 89.998116, 89.998116, 1.0)
|
||||||
|
data["spine_02"] = makexyzrotvis(0., -0.165, 107.556, 82.637939, 90.000107, 90.000107, 1.0)
|
||||||
|
data["spine_04"] = makexyzrotvis(0., -1.517, 126.763, 83.298508, -89.999939, -89.999939, 1.0)
|
||||||
|
data["spine_05"] = makexyzrotvis(0., -3.499, 140.030, 80.519157, -90., -90., 1.0)
|
||||||
|
data["clavicle_l"] = makexyzrotvis(3.782, -2.761, 152.201, -9.742390, -26.536825, -0.000003, 1.0)
|
||||||
|
data["shoulder_l"] = makexyzrotvis(17.700, -9.712, 149.530, -49.541229, -6.413618, 3.295939, 1.0)
|
||||||
|
data["elbow_l"] = makexyzrotvis(37.265, -11.911, 126.445, -33.187275, 30.848158, -28.515471, 1.0)
|
||||||
|
data["hand_l"] = makexyzrotvis(56.646, -0.335, 111.680, -35.172615, 32.751072, -105.931961, 1.0)
|
||||||
|
data["index_2_l"] = makexyzrotvis(63.042, 6.766, 103.815, -60.632530, 39.185219, -95.108459, 1.0)
|
||||||
|
data["index_3_l"] = makexyzrotvis(64.672, 8.095, 100.079, -72.604263, 41.145889, -95.530258, 1.0)
|
||||||
|
data["index_4_l"] = makexyzrotvis(65.436, 8.762, 96.840, -63.056412, 41.326263, -94.477684, 1.0)
|
||||||
|
data["middle_2_l"] = makexyzrotvis(64.490, 4.479, 103.481, -58.987339, 31.396336, -101.577202, 1.0)
|
||||||
|
data["middle_3_l"] = makexyzrotvis(66.531, 5.725, 99.504, -70.486740, 42.113358, -113.470406, 1.0)
|
||||||
|
data["middle_4_l"] = makexyzrotvis(67.435, 6.542, 96.065, -56.627937, 23.489927, -96.457565, 1.0)
|
||||||
|
data["pinky_2_l"] = makexyzrotvis(64.025, -0.159, 103.018, -57.221210, 8.494291, -103.297714, 1.0)
|
||||||
|
data["pinky_3_l"] = makexyzrotvis(65.937, 0.127, 100.015, -68.397072, 11.974680, -105.215523, 1.0)
|
||||||
|
data["pinky_4_l"] = makexyzrotvis(67.012, 0.355, 97.239, -68.031853, 22.739058, -114.804611, 1.0)
|
||||||
|
data["ring_2_l"] = makexyzrotvis(64.576, 2.083, 103.039, -60.143337, 23.882196, -110.450768, 1.0)
|
||||||
|
data["ring_3_l"] = makexyzrotvis(66.592, 2.975, 99.197, -72.950729, 34.323620, -119.597374, 1.0)
|
||||||
|
data["ring_4_l"] = makexyzrotvis(67.434, 3.550, 95.873, -60.028549, 26.871693, -112.741859, 1.0)
|
||||||
|
data["thumb_2_l"] = makexyzrotvis(57.478, 3.876, 107.639, -34.138702, 87.683189, -52.981850, 1.0)
|
||||||
|
data["thumb_3_l"] = makexyzrotvis(57.607, 7.077, 105.468, -52.094620, 85.939804, -51.473255, 1.0)
|
||||||
|
data["thumb_4_l"] = makexyzrotvis(57.784, 9.566, 102.262, -42.125023, 96.831261, -57.027554, 1.0)
|
||||||
|
data["lowerarm_twist_01_l"] = makexyzrotvis(47.323, -5.903, 118.782, -33.187275, 30.848158, -28.515471, 1.0)
|
||||||
|
data["upperarm_twist_01_l"] = makexyzrotvis(18.023, -9.748, 149.150, -49.541203, -6.413616, 3.295938, 1.0)
|
||||||
|
data["clavicle_r"] = makexyzrotvis(-3.782, -2.761, 152.201, 9.742397, 26.536829, 180., 1.0)
|
||||||
|
data["shoulder_r"] = makexyzrotvis(-17.700, -9.712, 149.530, 49.541229, 6.413619, -176.704056, 1.0)
|
||||||
|
data["elbow_r"] = makexyzrotvis(-37.265, -11.911, 126.445, 33.187275, -30.848154, 151.484512, 1.0)
|
||||||
|
data["hand_r"] = makexyzrotvis(-56.646, -0.335, 111.680, 35.172619, -32.751076, 74.068016, 1.0)
|
||||||
|
data["index_2_r"] = makexyzrotvis(-63.042, 6.766, 103.815, 60.632515, -39.185219, 84.891525, 1.0)
|
||||||
|
data["index_3_r"] = makexyzrotvis(-64.672, 8.095, 100.078, 72.604263, -41.145885, 84.469742, 1.0)
|
||||||
|
data["index_4_r"] = makexyzrotvis(-65.436, 8.762, 96.840, 63.056419, -41.326252, 85.522316, 1.0)
|
||||||
|
data["middle_2_r"] = makexyzrotvis(-64.490, 4.479, 103.482, 58.987339, -31.396345, 78.422768, 1.0)
|
||||||
|
data["middle_3_r"] = makexyzrotvis(-66.531, 5.725, 99.504, 70.486748, -42.113411, 66.529549, 1.0)
|
||||||
|
data["middle_4_r"] = makexyzrotvis(-67.435, 6.542, 96.065, 56.627953, -23.489948, 83.542404, 1.0)
|
||||||
|
data["pinky_2_r"] = makexyzrotvis(-64.025, -0.159, 103.017, 57.221222, -8.494291, 76.702271, 1.0)
|
||||||
|
data["pinky_3_r"] = makexyzrotvis(-65.937, 0.127, 100.015, 68.397110, -11.974666, 74.784508, 1.0)
|
||||||
|
data["pinky_4_r"] = makexyzrotvis(-67.013, 0.355, 97.239, 68.031822, -22.739044, 65.195419, 1.0)
|
||||||
|
data["ring_2_r"] = makexyzrotvis(-64.576, 2.083, 103.039, 60.143322, -23.882204, 69.549194, 1.0)
|
||||||
|
data["ring_3_r"] = makexyzrotvis(-66.592, 2.975, 99.197, 72.950775, -34.323681, 60.402596, 1.0)
|
||||||
|
data["ring_4_r"] = makexyzrotvis(-67.434, 3.550, 95.873, 60.028561, -26.871723, 67.258072, 1.0)
|
||||||
|
data["thumb_2_r"] = makexyzrotvis(-57.478, 3.877, 107.639, 34.138699, -87.683189, 127.018127, 1.0)
|
||||||
|
data["thumb_3_r"] = makexyzrotvis(-57.607, 7.077, 105.467, 52.094624, -85.939819, 128.526718, 1.0)
|
||||||
|
data["thumb_4_r"] = makexyzrotvis(-57.784, 9.566, 102.262, 42.125004, -96.831261, 122.972427, 1.0)
|
||||||
|
data["lowerarm_twist_01_r"] = makexyzrotvis(-47.324, -5.903, 118.782, 33.187271, -30.848154, 137.974152, 1.0)
|
||||||
|
data["upperarm_twist_01_r"] = makexyzrotvis(-18.023, -9.748, 149.150, 49.541218, 6.413617, 163.344009, 1.0)
|
||||||
|
data["head"] = makexyzrotvis(0., -5.876, 156.421, 75.972702, 89.999969, 89.999969, 1.0)
|
||||||
|
data["head_0"] = makexyzrotvis(0., -3.979, 165.516, 88.678833, -90.000290, -90.000290, 1.0)
|
||||||
|
data["hip_l"] = makexyzrotvis(9.006, -0.530, 95.300, 82.760597, 166.295837, 174.753387, 1.0)
|
||||||
|
data["knee_l"] = makexyzrotvis(14.218, -1.801, 53.067, 80.127579, 114.503563, 117.834335, 1.0)
|
||||||
|
data["calf_twist_01_l"] = makexyzrotvis(15.674, -4.996, 32.894, 79.251228, 113.356789, 117.027946, 1.0)
|
||||||
|
data["ankle_l"] = makexyzrotvis(17.076, -8.072, 13.466, 88.877769, 139.206955, 141.820786, 1.0)
|
||||||
|
data["ball_l"] = makexyzrotvis(17.909, 8.357, 2.812, -2.576805, 87.342842, 90.887283, 1.0)
|
||||||
|
data["thigh_twist_01_l"] = makexyzrotvis(11.711, -1.190, 73.382, 82.754990, 165.851181, 168.873581, 1.0)
|
||||||
|
data["hip_r"] = makexyzrotvis(-9.006, -0.530, 95.300, -82.760597, -166.295837, -5.246624, 1.0)
|
||||||
|
data["knee_r"] = makexyzrotvis(-14.218, -1.801, 53.067, -80.127579, -114.503563, -62.165585, 1.0)
|
||||||
|
data["calf_twist_01_r"] = makexyzrotvis(-15.674, -4.996, 32.893, -79.251190, -113.357056, -62.971889, 1.0)
|
||||||
|
data["ankle_r"] = makexyzrotvis(-17.076, -8.072, 13.466, -88.878120, -139.207230, -38.179173, 1.0)
|
||||||
|
data["ball_r"] = makexyzrotvis(-17.909, 8.357, 2.812, 2.576798, -87.342842, -89.112701, 1.0)
|
||||||
|
data["thigh_twist_01_r"] = makexyzrotvis(-11.711, -1.190, 73.382, -82.755020, -165.851059, -11.126723, 1.0)
|
||||||
|
data["ik_foot_root"] = makexyzrotvis(0., 0., 0., 0., 0., 0., 1.0)
|
||||||
|
data["ik_foot_l"] = makexyzrotvis(17.076, -8.072, 13.466, 88.877769, 139.207169, 141.820999, 1.0)
|
||||||
|
data["ik_foot_r"] = makexyzrotvis(-17.076, -8.072, 13.466, -88.877769, -139.207169, -38.178883, 1.0)
|
||||||
|
data["ik_hand_root"] = makexyzrotvis(0., 0., 0., 0., 0., 0., 1.0)
|
||||||
|
data["ik_hand_gun"] = makexyzrotvis(-56.646, -0.335, 111.680, 35.172623, -32.751068, 74.068031, 1.0)
|
||||||
|
data["ik_hand_l"] = makexyzrotvis(56.646, -0.335, 111.680, -35.172630, 32.751068, -105.931976, 1.0)
|
||||||
|
|
||||||
|
def bodyaposelocal(data):
|
||||||
|
data["root"] = makexyzrotvis(0., 0., 0., 0., 0., 0., 1.0)
|
||||||
|
data["pelvis"] = makexyzrotvis(0., -1.056, 96.751, 89.787849, 89.995300, 89.995300, 1.0)
|
||||||
|
data["spine_02"] = makexyzrotvis(10.809, 0.851, 0., 0., -14.063557, 0., 1.0)
|
||||||
|
data["spine_04"] = makexyzrotvis(18.875, -3.801, 0., 0., -14.063557, 0., 1.0)
|
||||||
|
data["spine_05"] = makexyzrotvis(13.407, -0.420, 0., 0., -2.779418, 0., 1.0)
|
||||||
|
data["clavicle_l"] = makexyzrotvis(11.884, 2.732, -3.782, -61.853577, -101.540916, 108.719162, 1.0)
|
||||||
|
data["shoulder_l"] = makexyzrotvis(15.785, 0., 0., -40.300545, 17.021019, 7.673903, 1.0)
|
||||||
|
data["elbow_l"] = makexyzrotvis(30.340, 0., 0., 10.397350, 30.360876, -3.613283, 1.0)
|
||||||
|
data["hand_l"] = makexyzrotvis(26.975, 0., 0., -2.499808, 0.412571, -76.356194, 1.0)
|
||||||
|
data["index_02_l"] = makexyzrotvis(12.068, -1.763, -2.109, 3.763789, -25.536919, 14.866977, 1.0)
|
||||||
|
data["index_03_l"] = makexyzrotvis(4.288, 0., 0., 0.475286, -11.986160, 1.337821, 1.0)
|
||||||
|
data["index_04_l"] = makexyzrotvis(3.394, 0., 0., -0.997269, 9.496333, 1.137367, 1.0)
|
||||||
|
data["middle_02_l"] = makexyzrotvis(12.244, -1.294, 0.571, 7.040565, -22.825857, 1.917856, 1.0)
|
||||||
|
data["middle_03_l"] = makexyzrotvis(4.640, 0., 0., -1.136837, -12.280714, -2.024954, 1.0)
|
||||||
|
data["middle_04_l"] = makexyzrotvis(3.649, 0., 0., 4.389954, 15.399755, 0.781444, 1.0)
|
||||||
|
data["pinky_02_l"] = makexyzrotvis(10.141, -2.263, 4.643, 18.933966, -20.185858, -18.724598, 1.0)
|
||||||
|
data["pinky_03_l"] = makexyzrotvis(3.571, 0., 0., 1.315686, -11.208060, 1.063832, 1.0)
|
||||||
|
data["pinky_04_l"] = makexyzrotvis(2.986, 0., 0., -3.869664, -1.038998, 0.445698, 1.0)
|
||||||
|
data["ring_02_l"] = makexyzrotvis(11.498, -1.754, 2.847, 10.989255, -23.292091, -13.510273, 1.0)
|
||||||
|
data["ring_03_l"] = makexyzrotvis(4.430, 0., 0., 1.669749, -13.315456, 0.301359, 1.0)
|
||||||
|
data["ring_04_l"] = makexyzrotvis(3.477, 0., 0., -2.987661, 12.899673, -0.360762, 1.0)
|
||||||
|
data["thumb_02_l"] = makexyzrotvis(4.762, -2.375, -2.538, -36.918968, -27.056177, 95.069138, 1.0)
|
||||||
|
data["thumb_03_l"] = makexyzrotvis(3.870, 0., 0., -9.833239, -15.151319, 1.613141, 1.0)
|
||||||
|
data["thumb_04_l"] = makexyzrotvis(4.062, 0., 0., -0.479192, 12.385657, 2.414767, 1.0)
|
||||||
|
data["lowerarm_twist_01_l"] = makexyzrotvis(14., 0., 0., 0., 0., 0., 1.0)
|
||||||
|
data["None"] = makexyzrotvis(77.885, 69.602, 43.869, 32.168755, 93.709030, -145.800354, 1.0)
|
||||||
|
data["upperarm_twist_01_l"] = makexyzrotvis(0.5, 0., 0., 0., 0., 0., 1.0)
|
||||||
|
data["clavicle_r"] = makexyzrotvis(11.884, 2.732, 3.782, -61.853588, 78.459053, 108.719177, 1.0)
|
||||||
|
data["shoulder_r"] = makexyzrotvis(-15.785, 0., 0., -40.300556, 17.021015, 7.673907, 1.0)
|
||||||
|
data["elbow_r"] = makexyzrotvis(-30.340, 0., 0., 10.397350, 30.360876, -3.613281, 1.0)
|
||||||
|
data["hand_r"] = makexyzrotvis(-26.975, 0., 0., -2.499808, 0.412573, -76.356194, 1.0)
|
||||||
|
data["index_02_r"] = makexyzrotvis(-12.068, 1.764, 2.109, 3.763789, -25.536919, 14.866971, 1.0)
|
||||||
|
data["index_03_r"] = makexyzrotvis(-4.288, 0., 0., 0.475299, -11.986152, 1.337820, 1.0)
|
||||||
|
data["index_04_r"] = makexyzrotvis(-3.394, 0., 0., -0.997269, 9.496332, 1.137365, 1.0)
|
||||||
|
data["middle_02_r"] = makexyzrotvis(-12.244, 1.294, -0.571, 7.040559, -22.825850, 1.917846, 1.0)
|
||||||
|
data["middle_03_r"] = makexyzrotvis(-4.641, 0., 0., -1.136837, -12.280720, -2.024957, 1.0)
|
||||||
|
data["middle_04_r"] = makexyzrotvis(-3.649, 0., 0., 4.389954, 15.399755, 0.781455, 1.0)
|
||||||
|
data["pinky_02_r"] = makexyzrotvis(-10.141, 2.263, -4.643, 18.933966, -20.185869, -18.724598, 1.0)
|
||||||
|
data["pinky_03_r"] = makexyzrotvis(-3.571, 0., 0., 1.315692, -11.208064, 1.063835, 1.0)
|
||||||
|
data["pinky_04_r"] = makexyzrotvis(-2.985, 0., 0., -3.869664, -1.038998, 0.445703, 1.0)
|
||||||
|
data["ring_02_r"] = makexyzrotvis(-11.498, 1.754, -2.847, 10.989241, -1.038998, -23.292084, 1.0)
|
||||||
|
data["ring_03_r"] = makexyzrotvis(-4.430, 0., 0., 1.669749, -13.315456, 0.301358, 1.0)
|
||||||
|
data["ring_04_r"] = makexyzrotvis(-3.477, 0., 0., -2.987661, 12.899678, -0.360764, 1.0)
|
||||||
|
data["thumb_02_r"] = makexyzrotvis(-4.762, 2.375, 2.538, -36.918968, -27.056177, 95.069130, 1.0)
|
||||||
|
data["thumb_03_r"] = makexyzrotvis(-3.870, 0., 0., -9.833239, -15.151324, 1.613143, 1.0)
|
||||||
|
data["thumb_04_r"] = makexyzrotvis(-4.062, 0., 0., -0.479199, 12.385653, 2.414763, 1.0)
|
||||||
|
data["lowerarm_twist_01_r"] = makexyzrotvis(-14., 0., 0., 0., 0., -13.510374, 1.0)
|
||||||
|
data["upperarm_twist_01_r"] = makexyzrotvis(-0.5, 0., 0., 0., 0., -19.951906, 1.0)
|
||||||
|
data["head"] = makexyzrotvis(16.559, 0.355, 0., 0., 23.508049, 0., 1.0)
|
||||||
|
data["head_0"] = makexyzrotvis(9.284, -0.364, 0., 0., -15.348654, 0., 1.0)
|
||||||
|
data["hip_l"] = makexyzrotvis(-1.449, 0.531, -9.006, 7.032287, 1.515470, 8.563468, 1.0)
|
||||||
|
data["knee_l"] = makexyzrotvis(-42.572, 0., 0., -1.787276, 7.613586, -5.735975, 1.0)
|
||||||
|
data["calf_twist_01_l"] = makexyzrotvis(-20.477, 0., 0., 0.219085, 0.872982, 0.323560, 1.0)
|
||||||
|
data["ankle_l"] = makexyzrotvis(-40.197, 0., 0., -3.704933, -8.059578, -0.415387, 1.0)
|
||||||
|
data["ball_l"] = makexyzrotvis(-10.454, 16.578, 0., -0.008954, 91.883591, 0.003945, 1.0)
|
||||||
|
data["thigh_twist_01_l"] = makexyzrotvis(-22.094, 0., 0., 0.000212, 0.056331, -5.438678, 1.0)
|
||||||
|
data["hip_r"] = makexyzrotvis(-1.449, 0.531, 9.006, 7.032294, -178.484528, 8.563469, 1.0)
|
||||||
|
data["knee_r"] = makexyzrotvis(42.572, 0., 0., -1.787276, 7.613586, -5.735975, 1.0)
|
||||||
|
data["calf_twist_01_r"] = makexyzrotvis(20.477, 0., 0., 0.219126, 0.872964, 0.323369, 1.0)
|
||||||
|
data["ankle_r"] = makexyzrotvis(40.197, 0., 0., -3.704927, -8.059580, -0.415387, 1.0)
|
||||||
|
data["ball_r"] = makexyzrotvis(10.454, -16.578, -0.08, -0.008948, 91.883591, 0.003944, 1.0)
|
||||||
|
data["thigh_twist_01_r"] = makexyzrotvis(22.094, 0., 0., 0.000164, 0.056341, -5.438870, 1.0)
|
||||||
|
data["ik_foot_root"] = makexyzrotvis(0., 0., 0., 0., 0., 0., 1.0)
|
||||||
|
data["ik_foot_l"] = makexyzrotvis(17.076, -8.072, 13.466, 88.877769, 139.207169, 141.820999, 1.0)
|
||||||
|
data["ik_foot_r"] = makexyzrotvis(-17.076, -8.072, 13.466, -88.877769, -139.207169, -38.178883, 1.0)
|
||||||
|
data["ik_hand_root"] = makexyzrotvis(0., 0., 0., 0., 0., 0., 1.0)
|
||||||
|
data["ik_hand_gun"] = makexyzrotvis(-56.64, -0.335, 111.680, 35.172623, -32.751068, 74.068031, 1.0)
|
||||||
|
data["ik_hand_l"] = makexyzrotvis(77.885, 69.602, 43.869, 32.168755, 93.709030, -145.800354, 1.0)
|
||||||
|
data["Non"] = makexyzrotvis(0., 0., 0., 0., 0., 0., 1.0)
|
||||||
1763
ModelUE4_old.py
Normal file
1763
ModelUE4_old.py
Normal file
File diff suppressed because it is too large
Load Diff
@@ -13,6 +13,10 @@ logging.basicConfig(filename="hpe_mp_class.log", level=logging.INFO, format=FORM
|
|||||||
logger = logging.getLogger("hpe_mp_class_logger")
|
logger = logging.getLogger("hpe_mp_class_logger")
|
||||||
|
|
||||||
from ModelUE4 import *
|
from ModelUE4 import *
|
||||||
|
from ModelUE4_apose import bodyaposelocal
|
||||||
|
from ModelUE4_apose import bodyaposeworld
|
||||||
|
from ModelUE4_old import bodyconvert
|
||||||
|
from ModelUE4_old import bodyconvertlocal
|
||||||
|
|
||||||
class hpe_mp_class():
|
class hpe_mp_class():
|
||||||
|
|
||||||
@@ -172,25 +176,27 @@ class hpe_mp_class():
|
|||||||
if world:
|
if world:
|
||||||
bodyaposeworld(data)
|
bodyaposeworld(data)
|
||||||
if self.holistic_use:
|
if self.holistic_use:
|
||||||
# poseslms = {}
|
poseslms = {}
|
||||||
# maxy = 0
|
maxy = 0
|
||||||
# if self.results_hol.pose_landmarks:
|
if self.results_hol.pose_landmarks:
|
||||||
# for id, lm in enumerate(self.results_hol.pose_landmarks.landmark):
|
for id, lm in enumerate(self.results_hol.pose_landmarks.landmark):
|
||||||
# poseslms[id] = lm
|
poseslms[id] = lm
|
||||||
# if lm.y > maxy:
|
if lm.y > maxy:
|
||||||
# maxy = lm.y
|
maxy = lm.y
|
||||||
#
|
|
||||||
|
bodyeuler(poseslms, data, self.coef)
|
||||||
|
|
||||||
# if old_world:
|
# if old_world:
|
||||||
# bodyconvert(poseslms, data, self.coef, maxy)
|
# bodyconvert(poseslms, data, self.coef, maxy)
|
||||||
# else:
|
# else:
|
||||||
# bodyconvertwithrot(poseslms, data, self.coef, maxy)
|
# bodyconvertwithrot(poseslms, data, self.coef, maxy)
|
||||||
#
|
|
||||||
rhandlms = {}
|
rhandlms = {}
|
||||||
if self.results_hol.right_hand_landmarks:
|
if self.results_hol.right_hand_landmarks:
|
||||||
for id, lm in enumerate(self.results_hol.right_hand_landmarks.landmark):
|
for id, lm in enumerate(self.results_hol.right_hand_landmarks.landmark):
|
||||||
rhandlms[id] = lm
|
rhandlms[id] = lm
|
||||||
|
|
||||||
rhandrot(rhandlms, data, self.coef)
|
rhandeuler(rhandlms, data, self.coef)
|
||||||
|
|
||||||
# if old_world:
|
# if old_world:
|
||||||
# rhandconvert(rhandlms, data, self.coef)
|
# rhandconvert(rhandlms, data, self.coef)
|
||||||
@@ -205,7 +211,7 @@ class hpe_mp_class():
|
|||||||
for id, lm in enumerate(self.results_hol.left_hand_landmarks.landmark):
|
for id, lm in enumerate(self.results_hol.left_hand_landmarks.landmark):
|
||||||
lhandlms[id] = lm
|
lhandlms[id] = lm
|
||||||
|
|
||||||
lhandrot(lhandlms,data,self.coef)
|
lhandeuler(lhandlms,data,self.coef)
|
||||||
|
|
||||||
# if old_world:
|
# if old_world:
|
||||||
# lhandconvert(lhandlms, data, self.coef)
|
# lhandconvert(lhandlms, data, self.coef)
|
||||||
|
|||||||
Reference in New Issue
Block a user