import cv2
import numpy as np
cap=cv2.VideoCapture(0)
face_cascade=cv2.CascadeClassifier(“Harcascade_face.xml”)
while True:
ret,frame=cap.read()
if(ret==False):
continue
cv2.imshow("Video Frame by Annu",frame)
faces=face_cascade.detectMultiScale(frame,1.3,5)
print(faces)
key_pressed=cv2.waitKey(1) & 0xFF
if key_pressed==ord('q') :
break
cap.release()
cv2.destroyAllWindows()