summaryrefslogtreecommitdiff
path: root/face-detection/01_face_capture_dataset.py
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-03-18 17:10:53 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-03-18 17:10:53 +0530
commite65971af1c75bf02e07cedeb0f1a66dc9e1a1690 (patch)
tree569ab43c8b96cd11ba55c47be89cb9b180838bf6 /face-detection/01_face_capture_dataset.py
parent0cacd048bf88549de4385d5bec3ed6edcf67859c (diff)
Adding face capture,training,recognition script
Diffstat (limited to 'face-detection/01_face_capture_dataset.py')
-rw-r--r--face-detection/01_face_capture_dataset.py4
1 files changed, 2 insertions, 2 deletions
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 <return>----')
-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()