Getting error in this code

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()

hey @annudhiman ,
can you please let me know what error are you getting ?

hey…thankyou so much…but i was accessing wrong file that’s why it was throwing an error. It is cleared now.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.