Update app.py
Browse files
app.py
CHANGED
|
@@ -200,7 +200,7 @@ def calculate_and_display_angles(image1, return_angles=False):
|
|
| 200 |
pose = mp_pose.Pose(min_detection_confidence=0.5, min_tracking_confidence=0.5)
|
| 201 |
|
| 202 |
image = image1#cv2.imread(image_path)
|
| 203 |
-
image_rgb = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
|
| 204 |
|
| 205 |
# Get pose landmarks
|
| 206 |
results = pose.process(image_rgb)
|
|
|
|
| 200 |
pose = mp_pose.Pose(min_detection_confidence=0.5, min_tracking_confidence=0.5)
|
| 201 |
|
| 202 |
image = image1#cv2.imread(image_path)
|
| 203 |
+
image_rgb = image1 #cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
|
| 204 |
|
| 205 |
# Get pose landmarks
|
| 206 |
results = pose.process(image_rgb)
|