mkhodary101 commited on
Commit
495054b
·
verified ·
1 Parent(s): a202a4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 detect_loitering(self, video_path):
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)