Update app.py
#2
by
ravinder2024
- opened
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 = "
|
81 |
if confidence < 100:
|
82 |
-
name =
|
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}"
|