diff --git a/app.py b/app.py index e6c8f60..53420ef 100644 --- a/app.py +++ b/app.py @@ -26,6 +26,10 @@ try: gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces, rejects, weights = face_cascade.detectMultiScale3(gray, 1.1, 4, outputRejectLevels = 1) + #Count faces is null dont anonimize file + if (len(faces) < 0): + continue + i = 0 for (x, y, w, h) in faces: confidence = float(weights[i])