Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,9 @@ def build_model(HIDDEN_UNITS=256, sequence_length=30, num_input_values=33*4, num
|
|
46 |
model.load_weights(load_dir)
|
47 |
|
48 |
return model
|
49 |
-
|
|
|
|
|
50 |
## Real Time Machine Learning and Computer Vision Processes
|
51 |
class VideoProcessor:
|
52 |
def __init__(self):
|
@@ -177,7 +179,11 @@ class VideoProcessor:
|
|
177 |
|
178 |
# Release video capture
|
179 |
cap.release()
|
|
|
|
|
180 |
|
|
|
|
|
181 |
# import streamlit as st
|
182 |
# import cv2
|
183 |
|
|
|
46 |
model.load_weights(load_dir)
|
47 |
|
48 |
return model
|
49 |
+
threshold1 = st.slider("Minimum Keypoint Detection Confidence", 0.00, 1.00, 0.50)
|
50 |
+
threshold2 = st.slider("Minimum Tracking Confidence", 0.00, 1.00, 0.50)
|
51 |
+
threshold3 = st.slider("Minimum Activity Classification Confidence", 0.00, 1.00, 0.50)
|
52 |
## Real Time Machine Learning and Computer Vision Processes
|
53 |
class VideoProcessor:
|
54 |
def __init__(self):
|
|
|
179 |
|
180 |
# Release video capture
|
181 |
cap.release()
|
182 |
+
# Create an instance of VideoProcessor
|
183 |
+
video_processor = VideoProcessor()
|
184 |
|
185 |
+
# Call the process_video_input method
|
186 |
+
video_processor.process_video_input(threshold1, threshold2, threshold3)
|
187 |
# import streamlit as st
|
188 |
# import cv2
|
189 |
|