diff --git a/FaceDetection/faceDetection.py b/FaceDetection/faceDetection.py index 33391b0..0010b91 100644 --- a/FaceDetection/faceDetection.py +++ b/FaceDetection/faceDetection.py @@ -17,7 +17,7 @@ while True: ret, img = cap.read() - img = cv2.flip(img, -1) + img = cv2.flip(img, 1) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = faceCascade.detectMultiScale( gray, diff --git a/FaceDetection/faceEyeDetection.py b/FaceDetection/faceEyeDetection.py index 88c9fb3..3bbb18c 100644 --- a/FaceDetection/faceEyeDetection.py +++ b/FaceDetection/faceEyeDetection.py @@ -19,7 +19,7 @@ while True: ret, img = cap.read() - img = cv2.flip(img, -1) + img = cv2.flip(img, 1) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = faceCascade.detectMultiScale( gray, diff --git a/FaceDetection/faceSmileDetection.py b/FaceDetection/faceSmileDetection.py index 734c7fa..4c61d4f 100644 --- a/FaceDetection/faceSmileDetection.py +++ b/FaceDetection/faceSmileDetection.py @@ -17,7 +17,7 @@ while True: ret, img = cap.read() - img = cv2.flip(img, -1) + img = cv2.flip(img, 1) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = faceCascade.detectMultiScale( gray, diff --git a/FaceDetection/faceSmileEyeDetection.py b/FaceDetection/faceSmileEyeDetection.py index 387aa81..4c36c0c 100644 --- a/FaceDetection/faceSmileEyeDetection.py +++ b/FaceDetection/faceSmileEyeDetection.py @@ -18,7 +18,7 @@ while True: ret, img = cap.read() - img = cv2.flip(img, -1) + img = cv2.flip(img, 1) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = faceCascade.detectMultiScale( gray, diff --git a/FacialRecognition/01_face_dataset.py b/FacialRecognition/01_face_dataset.py index deb51d4..6932e59 100644 --- a/FacialRecognition/01_face_dataset.py +++ b/FacialRecognition/01_face_dataset.py @@ -28,7 +28,7 @@ while(True): ret, img = cam.read() - img = cv2.flip(img, -1) # flip video image vertically + img = cv2.flip(img, 1) # flip video image vertically gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = face_detector.detectMultiScale(gray, 1.3, 5) diff --git a/FacialRecognition/03_face_recognition.py b/FacialRecognition/03_face_recognition.py index d8bd56b..8f29c62 100644 --- a/FacialRecognition/03_face_recognition.py +++ b/FacialRecognition/03_face_recognition.py @@ -37,7 +37,7 @@ while True: ret, img =cam.read() - img = cv2.flip(img, -1) # Flip vertically + img = cv2.flip(img, 1) # Flip vertically gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)