Testys commited on
Commit
aab7343
·
verified ·
1 Parent(s): ea86682

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -143,7 +143,7 @@ def process_for_stats_only(frame):
143
  t0 = time.perf_counter()
144
  try:
145
  # We still call the same detector, but we will ignore the processed frame it returns.
146
- _, indic = detector.process_frame(frame)
147
  except Exception as e:
148
  logging.error(f"Error processing frame: {e}")
149
  indic = {"drowsiness_level": "Error", "lighting": "Unknown", "details": {"Score": 0.0}}
 
143
  t0 = time.perf_counter()
144
  try:
145
  # We still call the same detector, but we will ignore the processed frame it returns.
146
+ _, indic = detector.analyse_frame(frame)
147
  except Exception as e:
148
  logging.error(f"Error processing frame: {e}")
149
  indic = {"drowsiness_level": "Error", "lighting": "Unknown", "details": {"Score": 0.0}}