Phani-1 commited on
Commit
d9cf81c
·
verified ·
1 Parent(s): 6205276

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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), 3, (0, 0, 255), -1)
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), 1)
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