mkhodary101 commited on
Commit
324be48
·
verified ·
1 Parent(s): b83bdcd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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" : detect_intrusion
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: