FED
FED
emotion_model = tf.keras.models.model_from_json(loaded_model_json)
print(emotion_model)
# load weights into new model
emotion_model.load_weights("C:/Users/Arathy/Desktop/FED7/emotion_model.h5")
cap.release()
cv2.destroyAllWindows()
emotion_dict
exdect
res = {}
for i in exdect:
res[i] = exdect.count(i)
print(res)
# count the values
value_list = list(res.values())
print(value_list)
key_list = list(res.keys())
print(key_list)
satisfied=["Surprised","Happy","Neutral"]
not_satisfied=["Angry","Disgusted","Fearful","Sad"]