-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: 'NoneType' object is not iterable #2
Comments
please provide full stack trace |
Line: name, min_dist = recognize_face(image, database) in "def extract_face_info(img, img_rgb, database,ear):" gives this error. Traceback (most recent call last): File "", line 1, in File "C:...\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile File "C:...\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile File "C:/.../Documents/Python Scripts/Facial/Facial-Recognition-using-Facenet-master/rec-feat.py", line 113, in File "C:/.../Documents/Python Scripts/Facial/Facial-Recognition-using-Facenet-master/rec-feat.py", line 104, in recognize File "C:/.../Documents/Python Scripts/Facial/Facial-Recognition-using-Facenet-master/rec-feat.py", line 60, in extract_face_info TypeError: 'NoneType' object is not iterable |
I am curious if this problem has been solved?So sad, I have encountered the same problem. |
check if your image is valid. i've faced the same problem, my problem was because there was a .DS_Store file on macOS. if not, check the image if there is a face on the image |
Traceback (most recent call last):
File "rec-feat.py", line 112, in
recognize()
File "rec-feat.py", line 103, in recognize
extract_face_info(img, img_rgb, database,ear)
File "rec-feat.py", line 59, in extract_face_info
name, min_dist = recognize_face(image, database)
TypeError: 'NoneType' object is not iterable
The text was updated successfully, but these errors were encountered: