This commit is contained in:
gocivici 2023-10-27 11:45:50 +03:00
parent 61697de659
commit 3b1838ebdc

View File

@ -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)