From e65971af1c75bf02e07cedeb0f1a66dc9e1a1690 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sat, 18 Mar 2023 17:10:53 +0530 Subject: Adding face capture,training,recognition script --- face-detection/01_face_capture_dataset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'face-detection/01_face_capture_dataset.py') diff --git a/face-detection/01_face_capture_dataset.py b/face-detection/01_face_capture_dataset.py index 327264c..8836ce6 100644 --- a/face-detection/01_face_capture_dataset.py +++ b/face-detection/01_face_capture_dataset.py @@ -6,7 +6,7 @@ cam.set(4, 480) # set video height face_detector = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') # For each person, enter one numeric face id face_id = input('\n----Enter User-id and press ----') -print("\n Initializing face capture. Look the camera and wait!") +print("\n [INFO] Initializing face capture. Look the camera and wait!") # Initialize individual sampling face count count = 0 while(True): @@ -25,6 +25,6 @@ while(True): elif count >= 30: # Take 30 face sample and stop video capture break # Do a bit of cleanup -print("\n Exiting Program and cleaning up stuff") +print("\n [INFO] Exiting Program and cleaning up stuff") cam.release() cv2.destroyAllWindows() -- cgit v1.2.3