My code is showing error
hey @mansi171299 ,
You haven’t created the face_cascade variable before to use it.
just do
cv2.cascadeclassifier(cascade_file_name_here)
This will do your task.
Thank You and Happy Learning .
You can either search for that particular xml file on google or it might have also been provided as content with this video also.