when I am testing this model on multiple faces at one time, it is slow to recognize faces and moreover I’m very frequently getting this error
Traceback (most recent call last):
File “face_recognition.py”, line 93, in
face_section = cv2.resize(face_section,(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’
[ WARN:0] terminating async callback
I couldn’t understand why this error is coming.
Some problem in cv2.reshape() ???
It doesn’t happen every time, How to resolve this for permanent.