Spaces:
Sleeping
Sleeping
Update pages/1_Live_Detection.py
Browse files- pages/1_Live_Detection.py +27 -19
pages/1_Live_Detection.py
CHANGED
@@ -93,25 +93,33 @@ class VideoProcessor(VideoProcessorBase):
|
|
93 |
st.title("📹 Live Drowsiness Detection")
|
94 |
st.info("Press 'START' to activate your camera and begin monitoring.")
|
95 |
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
|
116 |
col1, col2 = st.columns([3, 1])
|
117 |
|
|
|
93 |
st.title("📹 Live Drowsiness Detection")
|
94 |
st.info("Press 'START' to activate your camera and begin monitoring.")
|
95 |
|
96 |
+
RTC_CONFIGURATION = RTCConfiguration({
|
97 |
+
"iceServers": [
|
98 |
+
{
|
99 |
+
"urls": ["stun:stun.relay.metered.ca:80"],
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"urls": ["turn:global.relay.metered.ca:80"],
|
103 |
+
"username": "086986a440b20fe48229738b",
|
104 |
+
"credential": "mOC7fVSg00zjlsTD",
|
105 |
+
},
|
106 |
+
{
|
107 |
+
"urls": ["turn:global.relay.metered.ca:80?transport=tcp"],
|
108 |
+
"username": "086986a440b20fe48229738b",
|
109 |
+
"credential": "mOC7fVSg00zjlsTD",
|
110 |
+
},
|
111 |
+
{
|
112 |
+
"urls": ["turn:global.relay.metered.ca:443"],
|
113 |
+
"username": "086986a440b20fe48229738b",
|
114 |
+
"credential": "mOC7fVSg00zjlsTD",
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"urls": ["turns:global.relay.metered.ca:443?transport=tcp"],
|
118 |
+
"username": "086986a440b20fe48229738b",
|
119 |
+
"credential": "mOC7fVSg00zjlsTD",
|
120 |
+
},
|
121 |
+
]
|
122 |
+
})
|
123 |
|
124 |
col1, col2 = st.columns([3, 1])
|
125 |
|