Upload miner.py
Browse files
miner.py
CHANGED
|
@@ -112,9 +112,8 @@ class Miner:
|
|
| 112 |
if not hasattr(detection, "keypoints") or detection.keypoints is None:
|
| 113 |
continue
|
| 114 |
frame_keypoints: list[tuple[int, int]] = []
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
for x, y in person_points:
|
| 118 |
frame_keypoints.append((int(x), int(y)))
|
| 119 |
if len(frame_keypoints) < n_keypoints:
|
| 120 |
frame_keypoints.extend(
|
|
|
|
| 112 |
if not hasattr(detection, "keypoints") or detection.keypoints is None:
|
| 113 |
continue
|
| 114 |
frame_keypoints: list[tuple[int, int]] = []
|
| 115 |
+
for part_points in detection.keypoints.data:
|
| 116 |
+
for x, y, _ in part_points:
|
|
|
|
| 117 |
frame_keypoints.append((int(x), int(y)))
|
| 118 |
if len(frame_keypoints) < n_keypoints:
|
| 119 |
frame_keypoints.extend(
|