Update app.py
Browse files
app.py
CHANGED
@@ -41,9 +41,9 @@ def normalize_values(points, disp):
|
|
41 |
def stress(video_path, duration):
|
42 |
global points, emotion_classifier
|
43 |
detector = dlib.get_frontal_face_detector()
|
44 |
-
predictor_path = "
|
45 |
predictor = dlib.shape_predictor(predictor_path)
|
46 |
-
emotion_classifier = load_model("
|
47 |
|
48 |
# Open video file
|
49 |
cap = cv2.VideoCapture(video_path)
|
|
|
41 |
def stress(video_path, duration):
|
42 |
global points, emotion_classifier
|
43 |
detector = dlib.get_frontal_face_detector()
|
44 |
+
predictor_path = "Stress/shape_predictor_68_face_landmarks.dat"
|
45 |
predictor = dlib.shape_predictor(predictor_path)
|
46 |
+
emotion_classifier = load_model("Stress/XCEPTION.102-0.66.hdf5", compile=False)
|
47 |
|
48 |
# Open video file
|
49 |
cap = cv2.VideoCapture(video_path)
|