jaimin commited on
Commit
d04c369
1 Parent(s): f758bba

Update eyebrow_detection_modified_copy.py

Browse files
Files changed (1) hide show
  1. eyebrow_detection_modified_copy.py +2 -2
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("stress_detection/models/data")
42
- emotion_classifier = load_model("stress_detection/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("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 = []