Update app.py
Browse files
app.py
CHANGED
|
@@ -196,11 +196,9 @@ def calculate_and_display_angles(image1, return_angles=False):
|
|
| 196 |
# Get pose landmarks
|
| 197 |
results = pose.process(image_rgb)
|
| 198 |
|
|
|
|
|
|
|
| 199 |
if results.pose_landmarks:
|
| 200 |
-
# landmarks = results.pose_landmarks
|
| 201 |
-
########
|
| 202 |
-
return 'hi'
|
| 203 |
-
|
| 204 |
ang , locs = calculate_angles_landmarks(results.pose_landmarks)
|
| 205 |
|
| 206 |
#if only angles needed
|
|
|
|
| 196 |
# Get pose landmarks
|
| 197 |
results = pose.process(image_rgb)
|
| 198 |
|
| 199 |
+
return 'hi'
|
| 200 |
+
|
| 201 |
if results.pose_landmarks:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 202 |
ang , locs = calculate_angles_landmarks(results.pose_landmarks)
|
| 203 |
|
| 204 |
#if only angles needed
|