openCv generating selfie

check the error pls
https://drive.google.com/file/d/1WuMDusV8E6hjTbihMnNLUZvxU_X-nMVr/view?usp=sharing

hey @abhi_fame ,
your cascade classifier couldn’t read any face from the frame ,
and hence as a result as you have declared the face_section variable inside the for loop of faces , this variable doesn’t gets initialised and hence gives error that there is no such variable defined.

Try one thing , pass gray_frame to detectMultiScale instead of frame.

I hope this helps :slightly_smiling_face:.

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.