Yes , its in the same folder … i made it sure earlier and there is a space in the file name …further more i changed the file name and tried its still not working
The error its showing is
"error Traceback (most recent call last)
error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\core\src\persistence.cpp:719: error: (-49:Unknown error code -49) Input file is invalid in function ‘cv::FileStorage::Impl::open’
The above exception was the direct cause of the following exception:
SystemError Traceback (most recent call last)
in
2 cap=cv2.VideoCapture(0)
3 #print(face_cascade.load(“haarcascade_frontalface_alt.xml”))
----> 4 face_cascade=cv2.CascadeClassifier(“haarcascade_frontalface_alt (1).xml”)
5 #cv2.data.haarcascades(“haarcascade_frontalface_alt (1).xml”)
6 while True:
SystemError: <class ‘cv2.CascadeClassifier’> returned a result with an error set"