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 :slightly_smiling_face:.

@prashant_ml
From where did I get this file to be put in place of( cascade_file_name_here)

You can either search for that particular xml file on google or it might have also been provided as content with this video also.