You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#detectMultiScale is the function that detects the image reguardless of if its scale ie size, this returns the coordinates of the rectangle that shows us the postion of the face
#to show the image ("the name of the window showing it",file)
26
+
cv2.imshow('Face Detector',img)
27
+
28
+
#write this code otherwise the window will just open and close in a brink of a second
29
+
cv2.waitKey()
30
+
"""
31
+
32
+
#Now its time for face detection in videos
33
+
34
+
#Capture video in real time , 0 here tells you its the default webcam
35
+
webcam=cv2.VideoCapture(0)
36
+
37
+
#we want it to run until we close the webcam
38
+
39
+
whileTrue:
40
+
#Reading the current frame
41
+
successful_frame_read, frame=webcam.read() #first variable is a boolean telling if capture was success or not and the second one actually has the image
This is my very first project on AI and ML with Python, This program uses the **haarcascade** algorithm, to detect the face in real time, We're using the trained data provided by OpenCV in their repostiory, in for testing process.
0 commit comments