Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -326,11 +326,11 @@ def process_video(feature, video):
|
|
326 |
"People Tracking": PeopleTracking,
|
327 |
"Fall Detection": FallDetection,
|
328 |
"Fight Detection": FightDetection,
|
329 |
-
"Intrusion Detection" :
|
330 |
}
|
331 |
try:
|
332 |
detector = detectors[feature]()
|
333 |
-
method_name = feature.lower().replace(" ", "_")
|
334 |
output_path = getattr(detector, method_name)(video)
|
335 |
return f"{feature} completed successfully", output_path
|
336 |
except Exception as e:
|
|
|
326 |
"People Tracking": PeopleTracking,
|
327 |
"Fall Detection": FallDetection,
|
328 |
"Fight Detection": FightDetection,
|
329 |
+
"Intrusion Detection" : IntrusionDetection
|
330 |
}
|
331 |
try:
|
332 |
detector = detectors[feature]()
|
333 |
+
method_name = "detect_intrusion" if feature == "Intrusion Detection" else feature.lower().replace(" ", "_")
|
334 |
output_path = getattr(detector, method_name)(video)
|
335 |
return f"{feature} completed successfully", output_path
|
336 |
except Exception as e:
|