Created
August 24, 2017 19:53
-
-
Save Jian-Qiao/d30c760294c19ba5535f1df8bddbd7f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Facial_Data=[] | |
director=[] | |
filename=[] | |
n=0 | |
Face_Data=pickle.load(open('Face_Data.p','rb')) | |
for i in xrange(len(Face_Data)): | |
plt.imshow(Face_Data[i]) | |
plt.show() | |
label=input('Label this Face: 1=Disgust, 2=Happy, 3=Angry, 4=Fear, 5=Shame, 6=Doubt/Negative, 7=Concerned, 8=Neutral, 9=Surprised, 10=Sad') | |
Facial_Data.append([color.rgb2grey(Face_Data[i]),label]) | |
n+=1 | |
print 'This is the ',n,'th face, There are totally 493 face to label' | |
pickle.dump(Facial_Data,'Facial_Data.p') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment