Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -244,17 +244,4 @@ def get_mediapipe_pose(
|
|
| 244 |
min_detection_confidence = min_detection_confidence,
|
| 245 |
min_tracking_confidence = min_tracking_confidence
|
| 246 |
)
|
| 247 |
-
"""
|
| 248 |
-
This function extracts landmark coordinates for various body parts based on a feature name.
|
| 249 |
-
|
| 250 |
-
Args:
|
| 251 |
-
kp_results: The MediaPipe pose landmark results object.
|
| 252 |
-
dict_features: A dictionary containing landmark key names for different body parts.
|
| 253 |
-
feature: The name of the body part feature to extract (e.g., 'nose', 'left', 'right').
|
| 254 |
-
frame_width: The width of the image frame.
|
| 255 |
-
frame_height: The height of the image frame.
|
| 256 |
-
|
| 257 |
-
Returns:
|
| 258 |
-
A list containing the landmark coordinates (as NumPy arrays) or raises an error if the feature is invalid.
|
| 259 |
-
"""
|
| 260 |
return pose
|
|
|
|
| 244 |
min_detection_confidence = min_detection_confidence,
|
| 245 |
min_tracking_confidence = min_tracking_confidence
|
| 246 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 247 |
return pose
|