-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgraph_de.py
37 lines (27 loc) · 808 Bytes
/
graph_de.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from face_emotion_recognition import video_capture
def graph_de(graph):
angry= []
sad = []
disgust = []
fear = []
happy = []
surprise = []
neutral = []
for i in range(len(graph)):
if graph[i] == 'angry':
angry.append(graph[i])
elif graph[i] == 'disgust':
digust.append(graph[i])
elif graph[i] == 'fear':
fear.append(graph[i])
elif graph[i] == 'happy':
happy.append(graph[i])
elif graph[i] == 'sad':
sad.append(graph[i])
elif graph[i] == 'surprise':
surprise.append(graph[i])
elif graph[i] == 'neutral':
neutral.append(graph[i])
else:
pass
return angry, disgust, fear, happy, sad, surprise, neutral