From 3b1838ebdc11c31dc8cd88b359823e0e71c472f1 Mon Sep 17 00:00:00 2001 From: gocivici Date: Fri, 27 Oct 2023 11:45:50 +0300 Subject: [PATCH] err fix --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 4ac2fbd..57d50d2 100644 --- a/main.py +++ b/main.py @@ -63,7 +63,7 @@ if cam.isOpened(): surpriseValue = predictions[0]["emotion"]["surprise"] fearPoint = max(fearValue,surpriseValue) print("FEAR:" + str(round(fearPoint,2))) - print("SURPRISE:" + str(round(surprisePoint,2))) + print("SURPRISE:" + str(round(surpriseValue,2))) imgGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) imgGray = cv2.equalizeHist(imgGray) cv2.imwrite('scared.jpg', imgGray)