Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,13 @@ import numpy as np
|
|
| 4 |
import streamlit as st
|
| 5 |
|
| 6 |
# Initialize MediaPipe Pose
|
|
|
|
| 7 |
mp_pose = mp.solutions.pose
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
mp_drawing = mp.solutions.drawing_utils
|
| 10 |
|
| 11 |
# Streamlit web interface
|
|
|
|
| 4 |
import streamlit as st
|
| 5 |
|
| 6 |
# Initialize MediaPipe Pose
|
| 7 |
+
# Initializing mediapipe pose class.
|
| 8 |
mp_pose = mp.solutions.pose
|
| 9 |
+
|
| 10 |
+
# Setting up the Pose function.
|
| 11 |
+
pose = mp_pose.Pose(static_image_mode=True, min_detection_confidence=0.3, model_complexity=2)
|
| 12 |
+
|
| 13 |
+
# Initializing mediapipe drawing class, useful for annotation.
|
| 14 |
mp_drawing = mp.solutions.drawing_utils
|
| 15 |
|
| 16 |
# Streamlit web interface
|