Update app.py
Browse files
app.py
CHANGED
|
@@ -199,6 +199,8 @@ def calculate_and_display_angles(image1, return_angles=False):
|
|
| 199 |
if results.pose_landmarks:
|
| 200 |
# landmarks = results.pose_landmarks
|
| 201 |
########
|
|
|
|
|
|
|
| 202 |
ang , locs = calculate_angles_landmarks(results.pose_landmarks)
|
| 203 |
|
| 204 |
#if only angles needed
|
|
@@ -209,7 +211,6 @@ def calculate_and_display_angles(image1, return_angles=False):
|
|
| 209 |
mp_drawing = mp.solutions.drawing_utils
|
| 210 |
mp_drawing.draw_landmarks(image, results.pose_landmarks, mp_pose.POSE_CONNECTIONS)
|
| 211 |
|
| 212 |
-
return image
|
| 213 |
|
| 214 |
# Display the angle values at corresponding locations
|
| 215 |
def overlay_angle(angle, location, color=(0, 255, 0)):
|
|
|
|
| 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
|
|
|
|
| 211 |
mp_drawing = mp.solutions.drawing_utils
|
| 212 |
mp_drawing.draw_landmarks(image, results.pose_landmarks, mp_pose.POSE_CONNECTIONS)
|
| 213 |
|
|
|
|
| 214 |
|
| 215 |
# Display the angle values at corresponding locations
|
| 216 |
def overlay_angle(angle, location, color=(0, 255, 0)):
|