Skip to content

Commit

Permalink
Update emotion.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vipstone authored Jun 21, 2018
1 parent 38721b7 commit c03898e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions faceai/emotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

startTime = datetime.datetime.now()
emotion_classifier = load_model(
'E:\\Github\\faceai\\faceai\\classifier\\emotion_models\\simple_CNN.530-0.65.hdf5')
'classifier/emotion_models/simple_CNN.530-0.65.hdf5')
endTime = datetime.datetime.now()
print(endTime - startTime)

Expand All @@ -23,9 +23,9 @@
6: '平静'
}

img = cv2.imread("E:\\Github\\faceai\\faceai\\img\\emotion\\emotion.png")
img = cv2.imread("img/emotion/emotion.png")
face_classifier = cv2.CascadeClassifier(
"F:\\Python3.6.5\\Lib\\site-packages\\opencv-master\\data\\haarcascades\\haarcascade_frontalface_default.xml"
"C:\Python36\Lib\site-packages\opencv-master\data\haarcascades\haarcascade_frontalface_default.xml"
)
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = face_classifier.detectMultiScale(
Expand Down

0 comments on commit c03898e

Please sign in to comment.