Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ def draw_landmarks(img, landmarks):
|
|
| 47 |
height, width, _ = img.shape
|
| 48 |
for lm in landmarks.landmark:
|
| 49 |
cx, cy = int(lm.x * width), int(lm.y * height)
|
| 50 |
-
cv2.circle(img, (cx, cy),
|
| 51 |
|
| 52 |
for connection in POSE_CONNECTIONS:
|
| 53 |
start_idx, end_idx = connection
|
|
@@ -58,7 +58,7 @@ def draw_landmarks(img, landmarks):
|
|
| 58 |
start_coordinates = (int(start_point.x * width), int(start_point.y * height))
|
| 59 |
end_coordinates = (int(end_point.x * width), int(end_point.y * height))
|
| 60 |
|
| 61 |
-
cv2.line(img, start_coordinates, end_coordinates, (0, 255, 0),
|
| 62 |
|
| 63 |
return img
|
| 64 |
|
|
|
|
| 47 |
height, width, _ = img.shape
|
| 48 |
for lm in landmarks.landmark:
|
| 49 |
cx, cy = int(lm.x * width), int(lm.y * height)
|
| 50 |
+
cv2.circle(img, (cx, cy), 4, (0, 0, 255), -1)
|
| 51 |
|
| 52 |
for connection in POSE_CONNECTIONS:
|
| 53 |
start_idx, end_idx = connection
|
|
|
|
| 58 |
start_coordinates = (int(start_point.x * width), int(start_point.y * height))
|
| 59 |
end_coordinates = (int(end_point.x * width), int(end_point.y * height))
|
| 60 |
|
| 61 |
+
cv2.line(img, start_coordinates, end_coordinates, (0, 255, 0), 2)
|
| 62 |
|
| 63 |
return img
|
| 64 |
|