Face Recognition Project - Generating Selfie Training Data using WebCam

I am getting this error:-
cv2.imshow(“Face Section”,face_section)
NameError: name ‘face_section’ is not defined
My code is written in:-


Plz help!!

Are you still facing this issue?
If yes. Try to initialize face_section = [] empty list before the for loop.

Thanks :slight_smile:

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.