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

ModuleNotFoundError: No module named 'copy_reg\r' #5

Open HetagKoroev opened 4 years ago

HetagKoroev commented 4 years ago

When I try to run the file recognize_video.py, I get an error: Traceback (most recent call last): File "C:/Users/%username%/Desktop/face-recognition-using-deep-learning/recognize_video.py", line 22, in recognizer = pickle.loads(open("output/recognizer.pickle", "rb").read()) ModuleNotFoundError: No module named 'copy_reg\r'. 'copy_reg\r' - its a first line of text from 'recognizer.pickle' - file

s-abinash commented 3 years ago

Change this line: 22 in that file recognizer = pickle.loads(open("output/recognizer", "rb").read())

Nouman945 commented 3 years ago

I've changed the line 22 to recognizer = pickle.loads(open("output/recognizer", "rb").read())

but it's not working.

pranavi-ch commented 2 years ago

It worked, thanks a ton!