Program Terminates when there are more than 2 faces

Traceback (most recent call last):
File “FaceRecog.py”, line 76, in
face_selection=cv2.resize(face_selection,(100,100))
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:3718: error: (-215:Assertion failed) !ssize.empty() in function ‘cv::resize’
This is the error it shows

Hey @anukritigarg13, trying copying and pasting the code from

And than running it.

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.