Commit 2ab24d70 authored by Dhananjaya Jayashanka's avatar Dhananjaya Jayashanka

updated videoAnalyzing(expressions).py

parent 113d5db4
......@@ -3,6 +3,7 @@ from keras.preprocessing import image
import matplotlib.pyplot as plt
import cv2
import numpy as np
from collections import Counter
Savedmodel = tf.keras.models.load_model('./emotion_lts.h5')
Savedmodel.summary()
......@@ -48,10 +49,20 @@ while(cap.isOpened()):
m=a[i]
ind=i
print('Expression Prediction:',objects[ind])
if cv2.waitKey(20) & 0XFF == ord('q'):
break
print(emotion_list)
w = Counter(emotion_list)
print(w)
cap.release()
cv2.destroyAllWindows()
\ No newline at end of file
cv2.destroyAllWindows()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment