Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -346,7 +346,7 @@ class LoiteringDetection:
|
|
346 |
if self.entry_time[id]['duration'] > self.loitering_threshold:
|
347 |
self.entry_time[id]['loitering'] = True
|
348 |
|
349 |
-
def
|
350 |
try:
|
351 |
model = self.load_model()
|
352 |
cap = cv2.VideoCapture(video_path)
|
|
|
346 |
if self.entry_time[id]['duration'] > self.loitering_threshold:
|
347 |
self.entry_time[id]['loitering'] = True
|
348 |
|
349 |
+
def loitering_detection(self, video_path): #edited from detect_loitering
|
350 |
try:
|
351 |
model = self.load_model()
|
352 |
cap = cv2.VideoCapture(video_path)
|