unnecessary comments removed

This commit is contained in:
serengil 2020-11-29 22:04:12 +03:00
parent 6e4cf06738
commit 4d9e252d93

View File

@ -170,8 +170,6 @@ def detect_face(img, detector_backend = 'opencv', grayscale = False, enforce_det
home = str(Path.home()) home = str(Path.home())
#TODO: what if I directly call detect_face? In this case, initialize_detector hadn't been called before...
#if functions.preproces_face is called directly, then face_detector global variable might not been initialized. #if functions.preproces_face is called directly, then face_detector global variable might not been initialized.
if not "face_detector" in globals(): if not "face_detector" in globals():
initialize_detector(detector_backend = detector_backend) initialize_detector(detector_backend = detector_backend)