mtcnn is not a mandatory lib

This commit is contained in:
Sefik Ilkin Serengil 2021-05-27 16:43:48 +03:00 committed by GitHub
parent 024fe6843f
commit 3cd55fcf00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,8 @@
from mtcnn import MTCNN
import cv2
from deepface.detectors import FaceDetector
def build_model():
from mtcnn import MTCNN
face_detector = MTCNN()
return face_detector