From 1cfdd6e1589e4416922ed6fb00b9cf713331eb97 Mon Sep 17 00:00:00 2001 From: psangappa <44270496+psangappa@users.noreply.github.com> Date: Sat, 2 Feb 2019 23:03:35 +0530 Subject: [PATCH] Update face_detect.py Fix for AttributeError: module 'cv2.cv2' has no attribute 'cv' --- face_detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/face_detect.py b/face_detect.py index 8c997f4..7f60ccc 100644 --- a/face_detect.py +++ b/face_detect.py @@ -18,7 +18,7 @@ scaleFactor=1.1, minNeighbors=5, minSize=(30, 30), - flags = cv2.cv.CV_HAAR_SCALE_IMAGE + flags = cv2.CASCADE_SCALE_IMAGE ) print("Found {0} faces!".format(len(faces)))