Spaces:
Sleeping
Sleeping
Update eyebrow_detection_modified_copy.py
Browse files
eyebrow_detection_modified_copy.py
CHANGED
@@ -38,8 +38,8 @@ def normalize_values(points, disp):
|
|
38 |
def stress(video_path, duration):
|
39 |
global points, emotion_classifier
|
40 |
detector = dlib.get_frontal_face_detector()
|
41 |
-
predictor = dlib.shape_predictor("models/data")
|
42 |
-
emotion_classifier = load_model("models/_mini_XCEPTION.102-0.66.hdf5", compile=False)
|
43 |
|
44 |
cap = cv2.VideoCapture(video_path)
|
45 |
points = []
|
|
|
38 |
def stress(video_path, duration):
|
39 |
global points, emotion_classifier
|
40 |
detector = dlib.get_frontal_face_detector()
|
41 |
+
predictor = dlib.shape_predictor("Heartandstress/models/data")
|
42 |
+
emotion_classifier = load_model("Heartandstress/models/_mini_XCEPTION.102-0.66.hdf5", compile=False)
|
43 |
|
44 |
cap = cv2.VideoCapture(video_path)
|
45 |
points = []
|