Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -322,7 +322,17 @@ class VideoProcessor:
|
|
| 322 |
|
| 323 |
return output_frame
|
| 324 |
|
| 325 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 326 |
video_processor.process_video_input(threshold1, threshold2, threshold3)
|
| 327 |
# def process_uploaded_file(self, file):
|
| 328 |
# """
|
|
|
|
| 322 |
|
| 323 |
return output_frame
|
| 324 |
|
| 325 |
+
|
| 326 |
+
# Slider widgets
|
| 327 |
+
threshold1 = st.slider("Minimum Keypoint Detection Confidence", 0.00, 1.00, 0.50)
|
| 328 |
+
threshold2 = st.slider("Minimum Tracking Confidence", 0.00, 1.00, 0.50)
|
| 329 |
+
threshold3 = st.slider("Minimum Activity Classification Confidence", 0.00, 1.00, 0.50)
|
| 330 |
+
|
| 331 |
+
# Sidebar
|
| 332 |
+
st.sidebar.header("Settings")
|
| 333 |
+
st.sidebar.write("Adjust the confidence thresholds")
|
| 334 |
+
|
| 335 |
+
# Call process_video_input() method from VideoProcessor
|
| 336 |
video_processor.process_video_input(threshold1, threshold2, threshold3)
|
| 337 |
# def process_uploaded_file(self, file):
|
| 338 |
# """
|