aakashjhawar / face-recognition-using-deep-learning

Identify faces from video and images using OpenCV and Deep Learning
MIT License
127 stars 32 forks source link

recognizer.pickle #7

Open nahomneg opened 3 years ago

nahomneg commented 3 years ago

Thank you for this amazing repository. I have found out that directly cloning and running the code results in unexpected behaviors (sometimes crashes). This is a result of the .pickle extension being omitted on line that dumps the recognizer into the output folder. Please update line 26 of the train_model.py file to the following

f = open("output/recognizer.pickle", "wb")

Nouman945 commented 3 years ago

Hey. Did you find the solution?

nahomneg commented 3 years ago

Hey. Did you find the solution?

Yes it worked for me after changing line 26 to

f = open("output/recognizer.pickle", "wb")