Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,9 +77,9 @@ def process_frame(frame):
77
 
78
  # Face recognition using LBPH
79
  label, confidence = face_recognizer.predict(roi_gray)
80
- name = "Unknown"
81
  if confidence < 100:
82
- name = known_names[label]
83
 
84
  # Format the result text as "Name is feeling Emotion"
85
  result_text = f"{name} is feeling {emotion}"
 
77
 
78
  # Face recognition using LBPH
79
  label, confidence = face_recognizer.predict(roi_gray)
80
+ name = "person"
81
  if confidence < 100:
82
+ name = "person"
83
 
84
  # Format the result text as "Name is feeling Emotion"
85
  result_text = f"{name} is feeling {emotion}"