Update app.py
Browse files
app.py
CHANGED
@@ -123,7 +123,7 @@ def extract_features(landmarks, face):
|
|
123 |
features = [math.dist(landmarks[33], landmark) for landmark in landmarks] + [face[2] - face[0], face[3] - face[1]]
|
124 |
return features
|
125 |
|
126 |
-
def image_processing(
|
127 |
return proc_image(img, detector) if recog else img
|
128 |
|
129 |
def video_frame_callback(frame):
|
|
|
123 |
features = [math.dist(landmarks[33], landmark) for landmark in landmarks] + [face[2] - face[0], face[3] - face[1]]
|
124 |
return features
|
125 |
|
126 |
+
def image_processing(img):
|
127 |
return proc_image(img, detector) if recog else img
|
128 |
|
129 |
def video_frame_callback(frame):
|