Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def grab_faces(img: np.ndarray) -> Optional[np.ndarray]:
|
|
22 |
predictor = dlib.shape_predictor("shape_predictor_68_face_landmarks_GTX.dat") # load face predictor
|
23 |
mmod = dlib.cnn_face_detection_model_v1("mmod_human_face_detector.dat") # load face detector
|
24 |
|
25 |
-
paddingBy = 0.
|
26 |
|
27 |
gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY) # convert to grayscale
|
28 |
|
|
|
22 |
predictor = dlib.shape_predictor("shape_predictor_68_face_landmarks_GTX.dat") # load face predictor
|
23 |
mmod = dlib.cnn_face_detection_model_v1("mmod_human_face_detector.dat") # load face detector
|
24 |
|
25 |
+
paddingBy = 0.1 # padding by 10%
|
26 |
|
27 |
gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY) # convert to grayscale
|
28 |
|