Skip to content

Instantly share code, notes, and snippets.

View img_seq.py
import glob as gb
import uuid
from shutil import copyfile
emotions_list = ["neutral", "anger", "contempt", "disgust", "fear", "happy", "sadness", "surprise"]
emotions_folders = sorted(gb.glob("emotions/*")) #Returns a list of all folders with participant numbers
print len(emotions_folders)
def imageWithEmotionEtraction():
for x in emotions_folders:
participant = "%s" %x[-4:] #store current participant number
for sessions in sorted(gb.glob("%s/*" %x)):