import cv2
cap=cv2.VideoCapture(0)
faceCascade=cv2.CascadeClassifier(r"Face2.xml")
try:
    while(cap.isOpened()):
        ret,frame=cap.read()
        gray=cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY)
        faces=faceCascade.detectMultiScale(gray,1.3,5)
        for (x,y,w,h) in faces:
            cv2.rectangle(frame,(x,y),(x+w,y+h),(0,255,255),2)
        cv2.imshow('cap',frame)
        if cv2.waitKey(1) & 0xFF==27:
            break
except:
    print("Video Feed Unavailable...")
cap.release()
cv2.destroyAllWindows()

3dbee59d3ec0b50fac9121ffbc586a514de7b823
<mask token>

<mask token>
try:
    while cap.isOpened():
        ret, frame = cap.read()
        gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
        faces = faceCascade.detectMultiScale(gray, 1.3, 5)
        for x, y, w, h in faces:
            cv2.rectangle(frame, (x, y), (x + w, y + h), (0, 255, 255), 2)
        cv2.imshow('cap', frame)
        if cv2.waitKey(1) & 255 == 27:
            break
except:
    print('Video Feed Unavailable...')
cap.release()
cv2.destroyAllWindows()

<mask token>
cap = cv2.VideoCapture(0)
faceCascade = cv2.CascadeClassifier('Face2.xml')
try:
    while cap.isOpened():
        ret, frame = cap.read()
        gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
        faces = faceCascade.detectMultiScale(gray, 1.3, 5)
        for x, y, w, h in faces:
            cv2.rectangle(frame, (x, y), (x + w, y + h), (0, 255, 255), 2)
        cv2.imshow('cap', frame)
        if cv2.waitKey(1) & 255 == 27:
            break
except:
    print('Video Feed Unavailable...')
cap.release()
cv2.destroyAllWindows()

import cv2
cap = cv2.VideoCapture(0)
faceCascade = cv2.CascadeClassifier('Face2.xml')
try:
    while cap.isOpened():
        ret, frame = cap.read()
        gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
        faces = faceCascade.detectMultiScale(gray, 1.3, 5)
        for x, y, w, h in faces:
            cv2.rectangle(frame, (x, y), (x + w, y + h), (0, 255, 255), 2)
        cv2.imshow('cap', frame)
        if cv2.waitKey(1) & 255 == 27:
            break
except:
    print('Video Feed Unavailable...')
cap.release()
cv2.destroyAllWindows()

import cv2
cap=cv2.VideoCapture(0)
faceCascade=cv2.CascadeClassifier(r"Face2.xml")
try:
    while(cap.isOpened()):
        ret,frame=cap.read()
        gray=cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY)
        faces=faceCascade.detectMultiScale(gray,1.3,5)
        for (x,y,w,h) in faces:
            cv2.rectangle(frame,(x,y),(x+w,y+h),(0,255,255),2)
        cv2.imshow('cap',frame)
        if cv2.waitKey(1) & 0xFF==27:
            break
except:
    print("Video Feed Unavailable...")
cap.release()
cv2.destroyAllWindows()
