Gives the Following Error:
Preparing data...
Data prepared
('Total faces: ', 23)
('Total labels: ', 23)
Predicting images...
Traceback (most recent call last):
File "OpenCV-Face-Recognition-Python.py", line 328, in
predicted_img1 = predict(test_img1)
File "OpenCV-Face-Recognition-Python.py", line 306, in predict
label, confidence = face_recognizer.predict(face)
TypeError: 'int' object is not iterable
You can view my forked code because I made some Changes.
Gives the Following Error: Preparing data... Data prepared ('Total faces: ', 23) ('Total labels: ', 23) Predicting images... Traceback (most recent call last): File "OpenCV-Face-Recognition-Python.py", line 328, in
predicted_img1 = predict(test_img1)
File "OpenCV-Face-Recognition-Python.py", line 306, in predict
label, confidence = face_recognizer.predict(face)
TypeError: 'int' object is not iterable
You can view my forked code because I made some Changes.